@ckeditor/ckeditor5-track-changes 46.1.1 → 47.0.0-alpha.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 +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.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 +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.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.d.ts +3 -3
- 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,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0xbda74a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x655e17,_0x1ebe2b){super(),this['id']=_0x1ebe2b['id'],this['type']=_0x1ebe2b['type'],this['subType']=_0x1ebe2b['subType']||null,this['author']=_0x1ebe2b['author'],this['creator']=_0x1ebe2b['creator']||_0x1ebe2b['author'],this['isExternal']=Boolean(_0x1ebe2b['attributes']&&_0x1ebe2b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1ebe2b['originalSuggestionId']||null,this['_model']=_0x655e17,this['_onAccept']=_0x1ebe2b['onAccept'],this['_onDiscard']=_0x1ebe2b['onDiscard'],this['_onAttributesChange']=_0x1ebe2b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1ebe2b['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 _0x19705a=this;for(;_0x19705a['previous'];)_0x19705a=_0x19705a['previous'];return _0x19705a;}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'](_0x484e12){this['_markerNames']['add'](_0x484e12);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x305996=>this['_model']['markers']['get'](_0x305996))['filter'](_0x56011f=>_0x56011f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x352840=>{for(const _0x5df55a of this['getMarkers']())_0x352840['removeMarker'](_0x5df55a);}),this['_markerNames']['clear']();}['removeMarker'](_0x32759c){this['_model']['change'](_0x19ea19=>{_0x19ea19['removeMarker'](_0x32759c);}),this['_markerNames']['delete'](_0x32759c);}['addRange'](_0xc6c8ff){const _0x5611e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5611e3),this['_model']['change'](_0x3d4e73=>{_0x3d4e73['addMarker'](_0x5611e3,{'range':_0xc6c8ff,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43edae){for(const _0x2f5573 of this['getRanges']())if(_0x2f5573['isIntersecting'](_0x43edae))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5cae5b=>_0x5cae5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x827f36,_0x17b9c6)=>[..._0x827f36,..._0x17b9c6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4c27f2=this['getRanges']();if(0x1!=_0x4c27f2['length'])return null;const _0x3fbcae=_0x4c27f2[0x0],_0x39b333=_0x3fbcae['start']['nodeAfter'],_0x52e710=_0x3fbcae['end']['nodeBefore'];return _0x39b333 instanceof _0x5c743f?_0x39b333!=_0x52e710?null:_0x39b333: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 _0x31f7d3=[];let _0xc02908=this['head'];for(;_0xc02908;)_0x31f7d3['push'](_0xc02908),_0xc02908=_0xc02908['next'];return _0x31f7d3;}['setAttribute'](_0x17828f,_0x236853){const _0x13e7e1=_0xb1c432(this['attributes']);_0x118c5d(_0x13e7e1,_0x17828f,_0x236853),_0x35d560(_0x13e7e1,this['attributes'])||(this['attributes']=_0x13e7e1,this['_onAttributesChange'](_0x13e7e1));}['removeAttribute'](_0x52b87d){const _0x660595=_0xb1c432(this['attributes']);_0x2db481(_0x660595,_0x52b87d),_0x35d560(_0x660595,this['attributes'])||(this['attributes']=_0x660595,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 _0x5bc718()['substr'](0x1,0x5);}}function o(_0x1f237d,_0x274cfd,_0x32fd47){const _0x4b17ed=_0x1f237d['t'],t=_0x1f237d['t'];switch(_0x274cfd){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',_0x32fd47);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32fd47);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32fd47);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32fd47);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32fd47);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',_0x32fd47);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32fd47);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',_0x32fd47);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32fd47);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32fd47);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32fd47);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32fd47);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32fd47);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x32fd47);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32fd47);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32fd47);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32fd47);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32fd47);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32fd47);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32fd47);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32fd47);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32fd47);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32fd47);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32fd47);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x32fd47);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'},_0x32fd47);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x32fd47);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x32fd47);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32fd47);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32fd47);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32fd47);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32fd47);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32fd47);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32fd47);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32fd47);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32fd47);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'},_0x32fd47);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x32fd47);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32fd47);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32fd47);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'},_0x32fd47);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x32fd47);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 _0x4b17ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x32fd47);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4b17ed({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x32fd47);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x32fd47);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'},_0x32fd47);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'},_0x32fd47);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'},_0x32fd47);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x274cfd;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3eb9fc,_0x320d63){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3eb9fc,this['_locale']=_0x320d63;}['getDescriptions'](_0x91bf4f){const _0x594417=[],_0x6015df=new Set(),_0x15deb9=new Set();for(let _0x41e8ce=0x0;_0x41e8ce<_0x91bf4f['length'];_0x41e8ce++){const _0x3e2273=_0x91bf4f[_0x41e8ce];if(!_0x3e2273['isInContent'])continue;const _0x213da0=this['_handleCustomCallbackDescription'](_0x3e2273);if(_0x213da0){if(null!=_0x3e2273['subType']){if(_0x6015df['has'](_0x3e2273['subType']))continue;_0x6015df['add'](_0x3e2273['subType']);}_0x594417['push'](_0x213da0);}else{if('attribute'==_0x3e2273['type']){const _0x3ac72a=_0x3e2273['data']['key'];if(_0x15deb9['has'](_0x3ac72a))continue;_0x15deb9['add'](_0x3e2273['data']['key']),_0x3ac72a==m?this['_handleRenameSuggestionDescription'](_0x594417,_0x3e2273):this['_handleAttributeSuggestionDescription'](_0x594417,_0x3e2273);continue;}'insertion'!=_0x3e2273['type']&&'deletion'!=_0x3e2273['type']||this['_handleInsertRemoveSuggestionDescription'](_0x594417,_0x3e2273,_0x91bf4f[_0x41e8ce+0x1]);}}return this['_resolveDescriptionItems'](_0x594417);}['registerDescriptionCallback'](_0x319534){this['_customCallbacks']['push'](_0x319534);}['registerElementLabel'](_0x2cce0a,_0x38940a,_0x1b5db5=_0x40c02c['normal']){'function'==typeof _0x2cce0a?_0x1021dd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2cce0a,'label':_0x38940a,'priority':_0x1b5db5}):this['_itemLabels']['set'](_0x2cce0a,_0x38940a);}['registerAttributeLabel'](_0xd4a9a6,_0x4ed510){this['_attributeLabels']['set'](_0xd4a9a6,_0x4ed510);}['getItemLabel'](_0x3c0332,_0x4d81ac=0x1){let _0x4722b2;for(const _0x1924b7 of this['_itemLabelsCallbacks'])if(_0x1924b7['matchingCallback'](_0x3c0332)){_0x4722b2=_0x1924b7['label'];break;}return _0x4722b2||(_0x4722b2=this['_itemLabels']['get'](_0x3c0332['name'])),_0x4722b2?_0x4722b2(_0x4d81ac):0x1!==_0x4d81ac?_0x4d81ac+'\x20'+_0x3c0332['name']+'s':''+_0x3c0332['name'];}['_addDescriptionItems'](_0x3a32a5,_0x1d7146){const _0x2bcecd=_0x1d7146['getFirstRange']()['getWalker'](),_0xa40202='insertion'==_0x1d7146['type']?'add':'remove';for(const _0x50f875 of _0x2bcecd){const _0x5f1583=_0x50f875['item'],_0x40fdb9=_0x3a32a5[_0x3a32a5['length']-0x1];if(_0x5f1583['is']('$textProxy'))_0x40fdb9&&_0x40fdb9['type']['indexOf']('Container')>-0x1&&_0x3a32a5['pop'](),_0x40fdb9&&'text'==_0x40fdb9['type']?_0x40fdb9[_0xa40202]+=_0x5f1583['data']:_0x3a32a5['push']({'type':'text','add':'add'==_0xa40202?_0x5f1583['data']:'','remove':'remove'==_0xa40202?_0x5f1583['data']:''});else{if(this['_schema']['isObject'](_0x5f1583)){const _0xa4ac46=_0x5f1583;if(_0x40fdb9&&_0x40fdb9['type']['indexOf']('Container')>-0x1&&_0x3a32a5['pop'](),'elementEnd'==_0x50f875['type'])continue;_0x40fdb9&&_0x40fdb9['type']==_0xa40202+'Object'&&_0x40fdb9['element']['name']==_0xa4ac46['name']?_0x40fdb9['quantity']++:_0x3a32a5['push']({'type':_0xa40202+'Object','element':_0xa4ac46,'quantity':0x1}),_0x2bcecd['skip'](_0x4c073b=>!('elementEnd'==_0x4c073b['type']&&_0x4c073b['item']==_0x5f1583));}else{if(this['_schema']['checkChild'](_0x5f1583,'$text')||_0x5f1583['is']('element','softBreak')){const _0x433535=_0x5f1583;if('add'==_0xa40202&&'elementStart'==_0x50f875['type']||'remove'==_0xa40202&&'elementEnd'==_0x50f875['type'])continue;if(_0x40fdb9&&-0x1==_0x40fdb9['type']['indexOf']('Container')){'text'==_0x40fdb9['type']&&(_0x40fdb9[_0xa40202]+='\x0a');continue;}let _0x2c6db0;if(_0x2c6db0='add'==_0xa40202?_0x433535['nextSibling']&&!this['_schema']['isObject'](_0x433535['nextSibling'])?_0x433535['nextSibling']:null:_0x433535['previousSibling']&&!this['_schema']['isObject'](_0x433535['previousSibling'])?_0x433535['previousSibling']:null,_0x433535['isEmpty']||_0x2c6db0&&_0x2c6db0['isEmpty']){const _0x350b10=_0x2c6db0&&_0x2c6db0['isEmpty']?_0x2c6db0:_0x433535;_0x40fdb9&&_0x40fdb9['type']==_0xa40202+'EmptyContainer'&&_0x40fdb9['element']['name']==_0x350b10['name']?_0x40fdb9['quantity']++:_0x3a32a5['push']({'type':_0xa40202+'EmptyContainer','element':_0x350b10,'quantity':0x1});}else _0x3a32a5['push']({'type':_0xa40202+'Container','element':_0x433535});}}}}}['_resolveDescriptionItems'](_0x49d6ff){const _0x4bbb7c=this['_locale'],_0xc98e18=[],_0x2f3219=[],_0x2a4053=[];for(const _0x5158df of _0x49d6ff)switch(_0x5158df['type']){case'text':if(_0x5158df['add']=_0x5158df['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5158df['remove']=_0x5158df['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5158df['add']&&''!=_0x5158df['remove']){_0xc98e18['push']({'type':'replace','content':o(_0x4bbb7c,'REPLACE_TEXT',['\x22'+_0x5158df['remove']+'\x22','\x22'+_0x5158df['add']+'\x22'])});continue;}if(null!=_0x5158df['add']['match'](/^ +$/)){_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0',o(_0x4bbb7c,'ELEMENT_SPACE',_0x5158df['add']['length']))});continue;}if(null!=_0x5158df['remove']['match'](/^ +$/)){_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0',o(_0x4bbb7c,'ELEMENT_SPACE',_0x5158df['remove']['length']))});continue;}if(''!=_0x5158df['add']){_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0','\x22'+_0x5158df['add']+'\x22')});continue;}_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0','\x22'+_0x5158df['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Insert:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Remove:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'addContainer':_0xc98e18['push']({'type':'insertion','content':o(_0x4bbb7c,'*Split:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'removeContainer':_0xc98e18['push']({'type':'deletion','content':o(_0x4bbb7c,'*Merge:*\x20%0',this['getItemLabel'](_0x5158df['element'],_0x5158df['quantity']))});continue;case'addFormat':_0x2f3219['push'](_0x5158df['key']);continue;case'removeFormat':_0x2a4053['push'](_0x5158df['key']);continue;default:_0xc98e18['push'](_0x5158df);}if(_0x2f3219['length']){const _0x4aee22=_0x2f3219['map'](_0x327d6c=>this['_attributeLabels']['has'](_0x327d6c)?this['_attributeLabels']['get'](_0x327d6c):_0x327d6c)['join'](',\x20');_0xc98e18['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4aee22)});}if(_0x2a4053['length']){const _0x5d2247=_0x2a4053['map'](_0x2e647e=>this['_attributeLabels']['has'](_0x2e647e)?this['_attributeLabels']['get'](_0x2e647e):_0x2e647e)['join'](',\x20');_0xc98e18['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5d2247)});}return _0xc98e18;}['_handleCustomCallbackDescription'](_0x5cce0f){for(const _0x442ba3 of this['_customCallbacks']){const _0x449416=_0x442ba3(_0x5cce0f);if(_0x449416&&'type'in _0x449416)return _0x449416;}}['_handleAttributeSuggestionDescription'](_0x5ca8c,_0x4e8a8b){const _0x1119f5=_0x4e8a8b['data'],_0x2e07a7=void 0x0===_0x1119f5['newValue']?'removeFormat':'addFormat';_0x5ca8c['push']({'type':_0x2e07a7,'key':_0x1119f5['key']});}['_handleRenameSuggestionDescription'](_0x5fb470,_0x31d781){_0x5fb470['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x31d781['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4597d3,_0xfb5fd8,_0x549cd6){if(this['_addDescriptionItems'](_0x4597d3,_0xfb5fd8),_0x549cd6&&_0x549cd6['getFirstRange']()&&!_0xfb5fd8['getFirstRange']()['end']['isEqual'](_0x549cd6['getFirstRange']()['start'])){const _0x5b2ad9=_0x4597d3[_0x4597d3['length']-0x1],_0x58ab69='insertion'==_0xfb5fd8['type']?'add':'remove';_0x5b2ad9&&'text'==_0x5b2ad9['type']&&(_0x5b2ad9[_0x58ab69]+='\x0a');}}}class O extends _0x27a926{['afterInit'](){const _0x4e1a75=this['editor'],_0x33a7e0=_0x4e1a75['plugins']['get']('TrackChangesEditing');_0x4e1a75['commands']['get']('showAIAssistant')&&_0x33a7e0['enableCommand']('showAIAssistant');}}class E extends _0x27a926{['afterInit'](){const _0x1f9f94=this['editor'],_0xfc9a50=_0x1f9f94['locale'];if(!_0x1f9f94['plugins']['has']('AlignmentEditing'))return;const _0x16c636=_0x1f9f94['plugins']['get']('TrackChangesEditing');_0x16c636['enableDefaultAttributesIntegration']('alignment'),_0x16c636['registerBlockAttribute']('alignment'),_0x16c636['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xfc9a50,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b6d16=this['editor'],_0x137e65=_0x2b6d16['locale'];_0x2b6d16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18b239=>{if('formatBlock'!=_0x18b239['type'])return;const {data:_0x268503}=_0x18b239;if(_0x268503&&'alignment'==_0x268503['commandName']){const _0x4890b4=_0x268503['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x137e65,'*Format:*\x20%0',function(_0x3d6d52){switch(_0x3d6d52){case'left':return o(_0x137e65,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x137e65,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x137e65,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x137e65,'FORMAT_JUSTIFY_TEXT');}}(_0x4890b4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x27a926{['afterInit'](){const _0x5b5e8a=this['editor'],_0x1adf47=_0x5b5e8a['plugins']['get']('TrackChangesEditing'),_0x3bfd63=_0x5b5e8a['locale'];for(const _0x4a5c2c of ti){if(!_0x5b5e8a['plugins']['has'](_0x4a5c2c))continue;const _0x2120ed=_0x4a5c2c['slice'](0x0,-0x7)['toLowerCase'](),_0x1ce610='FORMAT_'+_0x2120ed['toUpperCase']();_0x1adf47['enableDefaultAttributesIntegration'](_0x2120ed),_0x1adf47['registerInlineAttribute'](_0x2120ed),_0x1adf47['descriptionFactory']['registerAttributeLabel'](_0x2120ed,o(_0x3bfd63,_0x1ce610));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x584337=this['editor'],_0xff79b4=_0x584337['locale'],_0x53c5fe=_0x584337['plugins']['get']('TrackChangesEditing');function _0x59d06b(_0xb09407,_0x2b59ea){_0x53c5fe['descriptionFactory']['registerDescriptionCallback'](_0x4d1487=>{if('formatInline'!=_0x4d1487['type'])return;const {data:_0x4cc6ea}=_0x4d1487;return _0x4cc6ea&&_0x4cc6ea['commandName']===_0xb09407?_0x4cc6ea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xff79b4,'*Format:*\x20%0',_0x2b59ea)}:{'type':'format','content':o(_0xff79b4,'*Remove\x20format:*\x20%0',_0x2b59ea)}:void 0x0;});}_0x59d06b('bold',o(_0xff79b4,'FORMAT_BOLD')),_0x59d06b('italic',o(_0xff79b4,'FORMAT_ITALIC')),_0x59d06b('underline',o(_0xff79b4,'FORMAT_UNDERLINE')),_0x59d06b('code',o(_0xff79b4,'FORMAT_CODE')),_0x59d06b('strikethrough',o(_0xff79b4,'FORMAT_STRIKETHROUGH')),_0x59d06b('subscript',o(_0xff79b4,'FORMAT_SUBSCRIPT')),_0x59d06b('superscript',o(_0xff79b4,'FORMAT_SUPERSCRIPT'));}}class U extends _0x27a926{['afterInit'](){const _0x5cef69=this['editor'],_0xa22fab=_0x5cef69['locale'];if(!_0x5cef69['plugins']['has']('BlockQuoteEditing'))return;const _0x3a82f0=_0x5cef69['plugins']['get']('TrackChangesEditing'),_0x5c90c2=this['editor']['commands']['get']('blockQuote');_0x3a82f0['enableCommand']('blockQuote',(_0x4470ec,_0x561569={})=>{const _0x5b0792=this['editor']['model']['document']['selection'],_0x1a4543=_0x561569&&void 0x0!==_0x561569['forceValue']?_0x561569['forceValue']:!_0x5c90c2['value'];let _0xa69e91=[];if(_0x1a4543){const _0x81343a=Array['from'](_0x5b0792['getSelectedBlocks']())['filter'](_0x19f4d5=>oo(_0x19f4d5)||function(_0x23fafc,_0x1f6fb5){const _0x2d8dd6=_0x1f6fb5['checkChild'](_0x23fafc['parent'],'blockQuote'),_0x3e13a8=_0x1f6fb5['checkChild'](['$root','blockQuote'],_0x23fafc);return _0x2d8dd6&&_0x3e13a8;}(_0x19f4d5,this['editor']['model']['schema']));_0xa69e91=to(_0x81343a,_0x5cef69['model']);}else{const _0x1e053c=Array['from'](_0x5b0792['getSelectedBlocks']())['filter'](_0x5d3ad1=>oo(_0x5d3ad1));_0xa69e91=to(_0x1e053c,_0x5cef69['model']);}_0x5cef69['model']['change'](()=>{for(const _0x5f0760 of _0xa69e91)_0x3a82f0['markBlockFormat'](_0x5f0760,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a4543}]});});}),_0x3a82f0['descriptionFactory']['registerDescriptionCallback'](_0x1586ec=>{const {data:_0x5b7192}=_0x1586ec;if(_0x5b7192&&'blockQuote'==_0x5b7192['commandName']){const _0x5bd1df=o(_0xa22fab,'ELEMENT_BLOCK_QUOTE');return _0x5b7192['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa22fab,'*Set\x20format:*\x20%0',_0x5bd1df)}:{'type':'format','content':o(_0xa22fab,'*Remove\x20format:*\x20%0',_0x5bd1df)};}});}}function oo(_0x1da8c8){return'blockQuote'==_0x1da8c8['parent']['name'];}class V extends _0x27a926{['afterInit'](){const _0x13311d=this['editor'],_0xe1345c=_0x13311d['locale'],_0xa96f78=_0x13311d['plugins']['get']('TrackChangesEditing');_0x13311d['plugins']['has']('BookmarkEditing')&&(_0xa96f78['enableCommand']('insertBookmark'),_0xa96f78['enableDefaultAttributesIntegration']('updateBookmark'),_0xa96f78['registerBlockAttribute']('bookmarkId'),_0xa96f78['descriptionFactory']['registerDescriptionCallback'](_0x5c0cff=>{if('insertion'!=_0x5c0cff['type']&&'deletion'!=_0x5c0cff['type']&&'attribute'!=_0x5c0cff['type'])return;const _0x32829e=_0x5c0cff['getContainedElement']();if(null==_0x32829e)return;if(!_0x32829e['is']('element','bookmark'))return;const _0x2a0b2d=_0x32829e['getAttribute']('bookmarkId');if('insertion'==_0x5c0cff['type'])return{'type':'insertion','content':o(_0xe1345c,'*Insert:*\x20%0','\x22'+_0x2a0b2d+'\x22\x20'+o(_0xe1345c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5c0cff['type'])return{'type':'deletion','content':o(_0xe1345c,'*Remove:*\x20%0','\x22'+_0x2a0b2d+'\x22\x20'+o(_0xe1345c,'ELEMENT_BOOKMARK'))};const {data:_0x3fc328}=_0x5c0cff;if(!_0x3fc328||'bookmarkId'!=_0x3fc328['key'])return;return{'type':'format','content':o(_0xe1345c,'*Set\x20bookmark:*\x20%0','\x22'+_0x3fc328['newValue']+'\x22')};}));}}class F extends _0x27a926{['afterInit'](){const _0x4e421b=this['editor'];_0x4e421b['plugins']['has']('CaseChange')&&(_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e421b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x27a926{['afterInit'](){const _0xb590f1=this['editor'];_0xb590f1['commands']['get']('ckbox')&&_0xb590f1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x27a926{['afterInit'](){const _0x15ab95=this['editor'];if(!_0x15ab95['plugins']['has']('CodeBlock'))return;const _0x138fa0=_0x15ab95['plugins']['get']('TrackChangesEditing'),_0x37287d=_0x15ab95['locale'],_0x1a74fd=_0x15ab95['config']['get']('codeBlock')['languages'],_0x3cf07b=_0x15ab95['commands']['get']('codeBlock');_0x138fa0['enableCommand']('indentCodeBlock'),_0x138fa0['enableCommand']('outdentCodeBlock'),_0x138fa0['enableCommand']('codeBlock',(_0x8f9880,_0x777f39={})=>{const _0x4591c6=_0x15ab95['model'],_0x48a960=_0x15ab95['model']['document']['selection'],_0x4f6236=_0x777f39&&void 0x0!==_0x777f39['forceValue']?_0x777f39['forceValue']:!_0x3cf07b['value'];let _0x44eab8;_0x777f39['language']||(_0x777f39['language']=_0x1a74fd[0x0]['language']),_0x44eab8=_0x4f6236?Array['from'](_0x48a960['getSelectedBlocks']())['filter'](_0xf62c45=>co(_0xf62c45)||function(_0x586bdd,_0xed9ded){if(_0x586bdd['is']('rootElement')||_0xed9ded['isLimit'](_0x586bdd))return!0x1;return _0xed9ded['checkChild'](_0x586bdd['parent'],'codeBlock');}(_0xf62c45,_0x4591c6['schema'])):Array['from'](_0x48a960['getSelectedBlocks']())['filter'](_0x21d7a4=>co(_0x21d7a4));const _0x4a10ab=to(_0x44eab8,_0x4591c6);_0x4591c6['change'](()=>{for(const _0x3303fb of _0x4a10ab)_0x138fa0['markBlockFormat'](_0x3303fb,{'commandName':'codeBlock','commandParams':[{..._0x777f39,'forceValue':_0x4f6236}],'formatGroupId':'blockName'});});}),(_0x138fa0['descriptionFactory']['registerElementLabel']('codeBlock',_0xe913b5=>o(_0x37287d,'ELEMENT_CODE_BLOCK',_0xe913b5)),_0x138fa0['descriptionFactory']['registerDescriptionCallback'](_0x2a06ec=>{if('formatBlock'!=_0x2a06ec['type'])return;const _0x379327=_0x37287d['t'],{data:_0x209314}=_0x2a06ec;if(!_0x209314||'codeBlock'!=_0x209314['commandName'])return;const _0x265d54=_0x209314['commandParams'][0x0]['language'],_0x2d8664=_0x379327(_0x1a74fd['find'](_0xa0b566=>_0xa0b566['language']===_0x265d54)['label'])['toLowerCase']();return _0x209314['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37287d,'*Set\x20format:*\x20%0',o(_0x37287d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2d8664+')')}:{'type':'format','content':o(_0x37287d,'*Remove\x20format:*\x20%0',o(_0x37287d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4c2059){return'codeBlock'==_0x4c2059['name'];}class J extends _0x27a926{['afterInit'](){const _0x540d9e=this['editor'];if(!_0x540d9e['plugins']['has']('CommentsEditing'))return;_0x540d9e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x741b8f,_0x2182bf,_0x18dc26){const _0x4cf4e1=[];for(const _0x32de67 of _0x2182bf['getItems']())_0x32de67['hasAttribute'](_0x741b8f)&&_0x4cf4e1['push'](_0x18dc26['createRangeOn'](_0x32de67));return _0x4cf4e1;}function De(_0x1913d6,_0x236807,{showActiveMarker:_0x4197b6=!0x0}={}){const _0x339044=_0x1913d6['plugins']['get']('TrackChangesEditing');return(_0x46bb8d,_0x19cd49,_0x2757b5)=>{if(!_0x2757b5['consumable']['test'](_0x19cd49['markerRange'],_0x46bb8d['name']))return;const _0x1ec826=_0x19cd49['markerRange']['getWalker'](),_0x3ae725=_0x19cd49['markerRange']['start'],_0x1160f=_0x1913d6['model']['schema'];let _0x34866e=null,_0x31d07b=null,_0x2676e8=!0x1,_0x49ae31=!0x1;for(const _0x451ab1 of _0x1ec826){const _0x54ec4e=_0x451ab1['item'];_0x2676e8=_0x2676e8||_0x1160f['isContent'](_0x54ec4e);const _0x30abc0=_0x2757b5['mapper']['toViewElement'](_0x54ec4e);if(_0x30abc0&&_0x30abc0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x451ab1['type']&&(_0x1160f['isBlock'](_0x54ec4e)&&!_0x1160f['isLimit'](_0x54ec4e)&&(_0x54ec4e['nextSibling']||_0x3ae725['isAtEnd']?_0x34866e&&_0x34866e['parent']==_0x54ec4e||(_0x34866e=_0x54ec4e,_0x5ad231(_0x451ab1['previousPosition']),_0x49ae31=!0x0):_0x31d07b=_0x31d07b||_0x451ab1['previousPosition']));}function _0x5ad231(_0x5447f4){const {id:_0x1c6882,authorId:_0x253a67}=_0x339044['_splitMarkerName'](_0x19cd49['markerName']),_0x49b0fa=_0x2757b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x236807,'data-suggestion':_0x1c6882,'data-author-id':_0x253a67}),_0x46ca88=_0x2757b5['mapper']['toViewPosition'](_0x5447f4);_0x4197b6&&_0x339044['activeMarkers']['includes'](_0x19cd49['markerName'])&&_0x2757b5['writer']['addClass']('ck-suggestion-marker--active',_0x49b0fa),_0x2757b5['writer']['insert'](_0x46ca88,_0x49b0fa),_0x2757b5['mapper']['bindElementToMarker'](_0x49b0fa,_0x19cd49['markerName']);}_0x2676e8||_0x49ae31||!_0x31d07b||_0x5ad231(_0x31d07b);};}class K extends _0x27a926{static get['requires'](){return[_0x56b950];}['init'](){const _0xafcfcd=this['editor'],_0x3cefdf=_0xafcfcd['plugins']['get']('TrackChangesEditing');_0x3cefdf['enableCommand']('delete');const _0xd5056e=_0xafcfcd['commands']['get']('deleteForward');_0x3cefdf['enableCommand']('deleteForward',(_0x398bdb,_0x57b4c6={})=>{const _0x3743e1=_0xafcfcd['model']['createSelection'](_0xafcfcd['model']['document']['selection']);_0x3743e1['isCollapsed']&&_0xafcfcd['model']['modifySelection'](_0x3743e1,{'direction':'forward','unit':_0x57b4c6['unit']});const _0x3aaaad=_0x3743e1['getFirstRange'](),_0x41ce5c=_0x3561c8['fromRange'](_0x3aaaad);let _0x5b458c;_0x398bdb(_0x57b4c6),_0x5b458c='$graveyard'==_0x41ce5c['root']['rootName']?_0xafcfcd['model']['createRange'](_0x3aaaad['start']):_0xafcfcd['model']['createRange'](_0x41ce5c['start'],_0x41ce5c['end']),_0x41ce5c['detach'](),_0xafcfcd['model']['enqueueChange'](_0xd5056e['buffer']['batch'],_0x26c4f2=>{_0xd5056e['buffer']['lock'](),_0x26c4f2['setSelection'](_0x26c4f2['createRange'](_0x5b458c['end'])),_0xd5056e['buffer']['unlock']();});}),_0xafcfcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xafcfcd,'merge'),{'priority':'high'}),_0xafcfcd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4099a5,_0x26f459,_0x41d259)=>{_0x41d259['options']['showSuggestionHighlights']&&De(_0xafcfcd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4099a5,_0x26f459,_0x41d259);},{'priority':'high'}),_0xafcfcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5c1578,_0x2f5dae,_0x4ab4f0)=>{const _0x1842c5=_0x4ab4f0['mapper']['markerNameToElements'](_0x2f5dae['markerName']);if(_0x1842c5){for(const _0x58e3aa of _0x1842c5)_0x58e3aa['is']('uiElement')&&(_0x4ab4f0['mapper']['unbindElementFromMarkerName'](_0x58e3aa,_0x2f5dae['markerName']),_0x4ab4f0['writer']['remove'](_0x58e3aa));}},{'priority':'high'});}}class H extends _0x27a926{['afterInit'](){const _0x32c839=this['editor'];if(!_0x32c839['plugins']['has']('ListEditing'))return;const _0x5a1b64=_0x32c839['locale'],_0x555631=_0x32c839['plugins']['get']('TrackChangesEditing'),_0x4d6020=_0x32c839['plugins']['has']('TodoListEditing'),_0x38180b=!!_0x32c839['config']['get']('list.multiBlock');function _0x552dce(_0x234b53){return{'type':'format','content':''+o(_0x5a1b64,'*Set\x20format:*\x20%0',_0x234b53)};}function _0x5b442a(_0xd4cdd2){return{'type':'format','content':''+o(_0x5a1b64,'*Remove\x20format:*\x20%0',_0xd4cdd2)};}_0x555631['enableDefaultAttributesIntegration']('numberedList'),_0x555631['enableDefaultAttributesIntegration']('bulletedList'),_0x555631['enableDefaultAttributesIntegration']('customNumberedList'),_0x555631['enableDefaultAttributesIntegration']('customBulletedList'),_0x555631['enableDefaultAttributesIntegration']('indentList'),_0x555631['enableDefaultAttributesIntegration']('outdentList'),_0x555631['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x555631['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x555631['registerBlockAttribute']('listItemId'),_0x555631['registerBlockAttribute']('listType'),_0x555631['registerBlockAttribute']('listIndent'),_0x38180b&&(_0x555631['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x555631['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d6020&&(_0x555631['enableDefaultAttributesIntegration']('todoList'),_0x555631['enableDefaultAttributesIntegration']('checkTodoList'),_0x555631['registerBlockAttribute']('todoListChecked'),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x2d54f5=>{const {data:_0xd31570}=_0x2d54f5;if(_0xd31570&&'todoListChecked'==_0xd31570['key'])return{'type':'format','content':_0xd31570['newValue']?o(_0x5a1b64,'*Check\x20item*'):o(_0x5a1b64,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x342091=>{if(_0x342091['batch']['isUndo'])return!0x1;let _0x21233d=!0x1;const _0x6b4c56=_0x555631['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323536=>'todoListChecked'===_0x555631['_getAttributeKey'](_0x323536));for(const _0x4b32bc of _0x6b4c56){'todo'!=_0x4b32bc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x555631['_findSuggestions'](_0x4b32bc['getFirstRange'](),'attribute')['find'](_0x3f5084=>'listType'===_0x555631['_getAttributeKey'](_0x3f5084['suggestion']))||(_0x342091['removeMarker'](_0x4b32bc['getFirstMarker']()),_0x21233d=!0x0));}return _0x21233d;})),_0x555631['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a1b64,'FORMAT_INDENT'));const _0x3e3a86={'type':'format','content':''};_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x992fad=>{const {data:_0x5e4ef3}=_0x992fad;if(!_0x5e4ef3||'listType'!=_0x5e4ef3['key'])return;let _0x4b9cd1=_0x992fad['head'];for(;_0x4b9cd1;){if(_0x4b9cd1['data']&&(('listStyle'==_0x4b9cd1['data']['key']||'listMarkerStyle'==_0x4b9cd1['data']['key'])&&(_0x4b9cd1['data']['newValue']&&'default'!=_0x4b9cd1['data']['newValue']||'default'!=_0x4b9cd1['data']['oldValue']&&!_0x5e4ef3['newValue'])||!_0x38180b&&_0x4b9cd1['data']['key']==m))return _0x3e3a86;_0x4b9cd1=_0x4b9cd1['next'];}if(null==_0x5e4ef3['newValue'])switch(_0x5e4ef3['oldValue']){case'bulleted':return _0x5b442a(o(_0x5a1b64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b442a(o(_0x5a1b64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b442a(o(_0x5a1b64,'ELEMENT_TODO_LIST'));}switch(_0x5e4ef3['newValue']){case'bulleted':return _0x552dce(o(_0x5a1b64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x552dce(o(_0x5a1b64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x552dce(o(_0x5a1b64,'ELEMENT_TODO_LIST'));}}),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x8815e8=>{const {data:_0x5714e7}=_0x8815e8;if(_0x5714e7&&'listIndent'==_0x5714e7['key'])return null==_0x5714e7['newValue']||null==_0x5714e7['oldValue']&&0x0==_0x5714e7['newValue']?_0x3e3a86:void 0x0;}),_0x555631['descriptionFactory']['registerDescriptionCallback'](_0x5385c0=>{if('attribute'!=_0x5385c0['type'])return;const {data:_0x1740de}=_0x5385c0;if(!_0x1740de||'listItemId'!=_0x1740de['key'])return;const _0x49716d=Te(_0x5385c0);return'newValue'==_0x49716d?{'type':'format','content':o(_0x5a1b64,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49716d?{'type':'format','content':o(_0x5a1b64,'*Split:*\x20list\x20item')}:_0x3e3a86;}),_0x32c839['model']['document']['registerPostFixer'](_0x3b2e50=>this['listItemIdFixer'](_0x3b2e50)),_0x32c839['model']['document']['registerPostFixer'](_0x3d2cec=>this['noTrackChangesFixer'](_0x3d2cec)),_0x32c839['model']['document']['on']('change:data',(_0x1a9fb9,_0x4454f1)=>{if(_0x4454f1['isUndo']||!_0x4454f1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x552752){if(_0x552752['batch']['isUndo']||!_0x552752['batch']['isLocal'])return!0x1;let _0x3fc072=!0x1;const _0x3c1b80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x367e4b=>_0x367e4b['data']&&'listItemId'==_0x367e4b['data']['key'])['filter'](_0x2aead0=>_0x2aead0['data']['newValue']&&_0x2aead0['data']['oldValue']);for(const _0xd0666b of _0x3c1b80)Te(_0xd0666b)||(_0x552752['removeMarker'](_0xd0666b['getFirstMarker']()),_0x3fc072=!0x0);return _0x3fc072;}['noTrackChangesFixer'](_0x1dd685){if(_0x1dd685['batch']['isUndo']||!_0x1dd685['batch']['isLocal'])return!0x1;const _0x4d9813=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d9813['trackChangesCommand']['value'])return!0x1;let _0x3bcb29=!0x1;const _0x254c39=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x7573f8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x164d68=>'attribute'==_0x164d68['type'])['filter'](_0x46fbf7=>_0x254c39['includes'](_0x46fbf7['attributeKey']));if(0x0==_0x7573f8['length'])return _0x3bcb29;for(const _0x3f422c of _0x7573f8){const _0x3d59f0=_0x4d9813['_findSuggestions'](_0x3f422c['range'],'attribute')['filter'](_0x1a5c51=>!_0x1a5c51['meta']['isNextTo'])['map'](_0x30e1ca=>_0x30e1ca['suggestion'])['filter'](_0x1a2e38=>{const _0x14dd05=_0x4d9813['_getAttributeKey'](_0x1a2e38);return _0x254c39['includes'](_0x14dd05);});if(_0x3d59f0['length']){for(const _0x11d15a of _0x3d59f0)_0x1dd685['removeMarker'](_0x11d15a['getFirstMarker']());_0x3bcb29=!0x0;}}return _0x3bcb29;}['assureChains'](){const _0x426622=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322fab=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe1dd6d;const _0x3a5bcd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e9565=>{if(_0x2e9565['data']['oldRange']||!_0x2e9565['data']['newRange'])return null;if(!_0x2e9565['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2a6752}=_0x426622['_splitMarkerName'](_0x2e9565['name']);if(!_0x426622['hasSuggestion'](_0x2a6752))return null;const _0x3589fe=_0x426622['getSuggestion'](_0x2a6752);return _0x322fab['includes'](_0x3589fe['data']['key']);})['map'](_0x51bb27=>{const {id:_0x4aa4a3}=_0x426622['_splitMarkerName'](_0x51bb27['name']),_0x4e5b19=_0x426622['getSuggestion'](_0x4aa4a3);return _0xe1dd6d=_0x4e5b19['attributes']['groupId'],_0x4e5b19['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a5bcd['size'])return;const _0x24bed9=_0x426622['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e526a=>'attribute'==_0x3e526a['type']&&_0x3e526a['data']&&_0x322fab['includes'](_0x3e526a['data']['key'])&&_0x3e526a['attributes']['groupId']!=_0xe1dd6d)['map'](_0x5c78fe=>({'listItem':_0x5c78fe['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5c78fe['attributes']['groupId']})),_0x17947c=new Set();for(const {groupId:_0x54986b,listItem:_0x13c626}of _0x24bed9)_0x3a5bcd['has'](_0x13c626)&&_0x17947c['add'](_0x54986b);for(const _0x1a0be8 of _0x426622['getSuggestions']())_0x17947c['has'](_0x1a0be8['attributes']['groupId'])&&_0x1a0be8['setAttribute']('groupId',_0xe1dd6d);}['_supportLegacySuggestions'](){const _0x210bd2=this['editor'],_0x336bf7=_0x210bd2['locale'],_0xfb1356=_0x210bd2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xfb1356['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d7840,_0x419b81){const _0x55122c=[];for(let _0x288fcb of _0x5d7840)_0x288fcb['start']['nodeAfter']===_0x288fcb['end']['parent']&&(_0x288fcb=_0x210bd2['model']['createRange'](_0x210bd2['model']['createPositionAt'](_0x288fcb['start']['nodeAfter'],0x0))),_0x55122c['push'](_0x288fcb);_0x210bd2['model']['change'](_0x2605b6=>{const _0x4690a2=_0x210bd2['model']['document']['selection'],_0x11d389=Array['from'](_0x4690a2['getRanges']())['map'](_0x21ca36=>_0x3561c8['fromRange'](_0x21ca36));_0x2605b6['setSelection'](_0x55122c),_0x210bd2['commands']['get'](_0x419b81['commandName'])['refresh'](),_0x419b81['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x210bd2['execute'](_0x419b81['commandName'],..._0x419b81['commandParams']),_0x2605b6['setSelection'](_0x11d389);for(const _0x2e5dd3 of _0x11d389)_0x2e5dd3['detach']();});}),_0xfb1356['descriptionFactory']['registerElementLabel'](function(_0x277ce3){const _0x2b4dba=!_0x210bd2['model']['schema']['isObject'](_0x277ce3),_0x47cea7=_0x277ce3['previousSibling'],_0x22a1bf=_0x277ce3['nextSibling'],_0x4f656b=_0x277ce3['getAttribute']('listItemId'),_0x5b35a5=!_0x47cea7||_0x47cea7['getAttribute']('listItemId')!==_0x4f656b,_0x350d92=!_0x22a1bf||_0x22a1bf['getAttribute']('listItemId')!==_0x4f656b;return _0x2b4dba&&Boolean(_0x4f656b)&&_0x5b35a5&&_0x350d92;},_0x2781e8=>o(_0x336bf7,'ELEMENT_LIST_ITEM',_0x2781e8));}['_registerLegacyDescription'](){const _0x36f43b=this['editor'],_0xc49226=_0x36f43b['locale'];function _0x553344(_0x3aa621){const _0x101322=_0x36f43b['commands']['get']('bulletedList')['value'],_0x2b70ba=_0x36f43b['commands']['get']('numberedList')['value'];return'numberedList'===_0x3aa621?_0x101322:_0x2b70ba;}_0x36f43b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12938a){if('formatBlock'!=_0x12938a['type'])return;const {data:_0x34c404}=_0x12938a;if(!_0x34c404)return;let _0x76f2d9,_0xa5e04e,_0x440c65,_0x561188;switch(_0x34c404['commandName']){case'bulletedList':_0x440c65=_0x34c404['commandParams'][0x0]['forceValue'],_0x561188=_0x553344(_0x34c404['commandName']),_0x76f2d9=_0x440c65?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x561188&&_0x36f43b['config']['get']('list.multiBlock')||(_0x76f2d9='*Change\x20to:*\x20%0'),_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x440c65=_0x34c404['commandParams'][0x0]['forceValue'],_0x561188=_0x553344(_0x34c404['commandName']),_0x76f2d9=_0x440c65?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x561188&&_0x36f43b['config']['get']('list.multiBlock')||(_0x76f2d9='*Change\x20to:*\x20%0'),_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x76f2d9='*Indent:*\x20%0',_0xa5e04e={'type':'format','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x76f2d9=function(_0x43ed1e){const _0x4c65e9=_0x43ed1e['getFirstRange']();let _0x233f68=_0x4c65e9['start']['nodeAfter'];for(;_0x233f68&&_0x4c65e9['containsItem'](_0x233f68);){if(_0x233f68['getAttribute']('listIndent')>0x0)return!0x1;_0x233f68=_0x233f68['nextSibling'];}return!0x0;}(_0x12938a)?o(_0xc49226,'*Format:*\x20remove\x20from\x20%0',o(_0xc49226,function(_0x52dd3e){return'ELEMENT_'+_0x52dd3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12938a))):o(_0xc49226,'*Outdent:*\x20%0',o(_0xc49226,'ELEMENT_LIST_ITEM')),_0xa5e04e={'type':'format','content':_0x76f2d9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34c404['multipleBlocks']&&(_0x76f2d9='*Merge:*\x20%0',_0xa5e04e={'type':'deletion','content':o(_0xc49226,_0x76f2d9,o(_0xc49226,'ELEMENT_LIST_ITEM'))});}return _0xa5e04e;});}}function Te(_0x1b0749){let _0x42bc09=_0x1b0749['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x42bc09;){const _0x4e202a=_0x42bc09['getAttribute']('listItemId');if(!_0x4e202a)return!0x1;if(_0x4e202a==_0x1b0749['data']['newValue'])return'newValue';if(_0x4e202a==_0x1b0749['data']['oldValue'])return'oldValue';_0x42bc09=_0x42bc09['previousSibling'];}return!0x1;}class q extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf38589=this['editor']['config']['get']('list.properties'),_0x2b97ab=this['editor']['plugins']['get']('TrackChangesEditing');_0xf38589['styles']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listStyle'),_0x2b97ab['registerBlockAttribute']('listStyle')),_0xf38589['reversed']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listReversed'),_0x2b97ab['registerBlockAttribute']('listReversed')),_0xf38589['startIndex']&&(_0x2b97ab['enableDefaultAttributesIntegration']('listStart'),_0x2b97ab['registerBlockAttribute']('listStart'));const _0x1d80a9={'type':'format','content':''};_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4e868a=this['editor']['locale'];_0x2b97ab['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4e868a,'FORMAT_LIST_REVERSED')),_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](_0x802216=>{const {data:_0x5cbdb3}=_0x802216;if(_0x5cbdb3&&'listReversed'==_0x5cbdb3['key'])return null==_0x5cbdb3['newValue']||0x0==_0x5cbdb3['newValue']&&null==_0x5cbdb3['oldValue']?_0x1d80a9:void 0x0;}),_0x2b97ab['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4e868a,'FORMAT_LIST_START')),_0x2b97ab['descriptionFactory']['registerDescriptionCallback'](_0x17685e=>{const {data:_0x3897f0}=_0x17685e;if(_0x3897f0&&'listStart'==_0x3897f0['key'])return null==_0x3897f0['newValue']||0x1==_0x3897f0['newValue']&&null==_0x3897f0['oldValue']?_0x1d80a9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e7f92=>{if(_0x3e7f92['batch']['isUndo'])return!0x1;let _0x2dacec=!0x1;const _0x3da0ae=_0x2b97ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4de687=>{const _0x15553f=_0x2b97ab['_getAttributeKey'](_0x4de687);return'listStart'==_0x15553f||'listReversed'==_0x15553f;});for(const _0x225e62 of _0x3da0ae){const _0x71382a=_0x225e62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x71382a||'customNumbered'==_0x71382a)continue;_0x2b97ab['_findSuggestions'](_0x225e62['getFirstRange'](),'attribute')['find'](_0x218dcd=>'listType'==_0x2b97ab['_getAttributeKey'](_0x218dcd['suggestion']))||(_0x3e7f92['removeMarker'](_0x225e62['getFirstMarker']()),_0x2dacec=!0x0);}return _0x2dacec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49afe9){const _0x4beb1f=this['editor']['locale'],{data:_0x567b95}=_0x49afe9,_0x435b5f={'type':'format','content':''};if(!_0x567b95||'listStyle'!=_0x567b95['key'])return;if(!_0x567b95['oldValue'])return'default'==_0x567b95['newValue']?_0x435b5f:{'type':'format','content':''+o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['newValue'])))};if(!_0x567b95['newValue']){if('default'==_0x567b95['oldValue'])return _0x435b5f;let _0x67ff18=_0x49afe9['head'];for(;_0x67ff18;){if(_0x67ff18['data']&&'listType'==_0x67ff18['data']['key']&&_0x67ff18['data']['newValue'])return _0x435b5f;_0x67ff18=_0x67ff18['next'];}return{'type':'format','content':''+o(_0x4beb1f,'*Remove\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['oldValue'])))};}if('default'!=_0x567b95['newValue'])return{'type':'format','content':''+o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,this['_getTranslationKeyForListStyle'](_0x567b95['newValue'])))};let _0x4f93e9=_0x49afe9['head'];for(;_0x4f93e9;){if(_0x4f93e9['data']&&'listType'==_0x4f93e9['data']['key']&&_0x4f93e9['data']['newValue']&&_0x4f93e9['data']['oldValue'])return _0x435b5f;_0x4f93e9=_0x4f93e9['next'];}return{'type':'format','content':o(_0x4beb1f,'*Set\x20format:*\x20%0',o(_0x4beb1f,'ELEMENT_'+_0x49afe9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2343e4=this['editor'],_0x2f397d=_0x2343e4['locale'];_0x2343e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b67ae=>{if('formatBlock'!=_0x2b67ae['type'])return;const {data:_0x2459df}=_0x2b67ae;if(!_0x2459df)return;let _0x40ccb2,_0x1f1880;switch(_0x2459df['commandName']){case'listStyle':_0x40ccb2='*Change\x20to:*\x20%0',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2,o(_0x2f397d,this['_getTranslationKeyForListStyle'](_0x2459df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40ccb2=_0x2459df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2)};break;case'listStart':_0x40ccb2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f1880={'type':'format','content':o(_0x2f397d,_0x40ccb2,_0x2459df['commandParams'][0x0]['startIndex'])};}return _0x1f1880;});}['_getTranslationKeyForListStyle'](_0x3dc44f){return'ELEMENT_'+function(_0x5bcc12){if(Se['includes'](_0x5bcc12))return'bulleted';if(_e['includes'](_0x5bcc12))return'numbered';return null;}(_0x3dc44f)['toUpperCase']()+'_LIST_'+_0x3dc44f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x27a926{['afterInit'](){const _0x19af56=this['editor'];_0x19af56['commands']['get']('emoji')&&_0x19af56['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x27a926{static get['requires'](){return[_0x3941f8];}['init'](){const _0x29d4f0=this['editor'],_0x19a1e7=_0x29d4f0['plugins']['get']('TrackChangesEditing'),_0xb307e6=_0x29d4f0['commands']['get']('enter');_0x19a1e7['enableCommand']('enter',()=>{_0x29d4f0['model']['change'](_0x22c756=>{const _0x111e0c=_0x29d4f0['model']['document']['selection'],_0x517f8c=_0x111e0c['getFirstPosition'](),_0x3a4cf7=_0x3561c8['fromRange'](_0x111e0c['getFirstRange']());if(_0xb307e6['enterBlock'](_0x22c756)){const _0x45ed86=_0x29d4f0['model']['createPositionAt'](_0x517f8c['parent']['nextSibling'],0x0),_0x49f3b9=_0x22c756['createRange'](_0x517f8c,_0x45ed86);_0x19a1e7['markInsertion'](_0x49f3b9);}else _0x22c756['setSelection'](_0x22c756['createRange'](_0x3a4cf7['end']));_0x3a4cf7['detach'](),_0xb307e6['fire']('afterExecute',{'writer':_0x22c756});});}),_0x29d4f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x29d4f0,'split'),{'priority':'high'}),_0x29d4f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3551c7,_0x28c453,_0x36508a)=>{const _0x34f932=_0x36508a['mapper']['markerNameToElements'](_0x28c453['markerName']);if(_0x34f932){for(const _0x21fff2 of _0x34f932)_0x21fff2['hasClass']('ck-suggestion-marker-split')&&(_0x36508a['mapper']['unbindElementFromMarkerName'](_0x21fff2,_0x28c453['markerName']),_0x36508a['writer']['remove'](_0x21fff2));}},{'priority':'high'}),_0x29d4f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x354a11,_0x43ab69,_0x2b9a15)=>{_0x2b9a15['options']['showSuggestionHighlights']&&De(_0x29d4f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x354a11,_0x43ab69,_0x2b9a15);},{'priority':'high'});}}class Q extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2c2664=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c2664['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2c2664['enableCommand']('findNext'),_0x2c2664['enableCommand']('findPrevious'),_0x2c2664['enableCommand']('replace'),_0x2c2664['enableCommand']('replaceAll');}['handleFindCommand'](_0x227aa9,_0x28b172,_0x4d2ecf={}){const _0x37f658=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x227aa9(_0x30ab8b=>{let _0xaace1c=('string'==typeof _0x28b172?_0x37f658['findByTextCallback'](_0x28b172,_0x4d2ecf):_0x28b172)(_0x30ab8b);Array['isArray'](_0xaace1c)&&(_0xaace1c={'results':_0xaace1c,'searchText':'string'==typeof _0x28b172?_0x28b172:''});const _0x2ff5e7=_0xaace1c['results']['filter'](_0x4b238f=>!0x1===this['_isInDeletionRange'](_0x4b238f,_0x30ab8b['item']));return{..._0xaace1c,'results':_0x2ff5e7};},_0x4d2ecf);}['_isInDeletionRange'](_0x5af967,_0x2eefda){const _0x3684d0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2eefda,_0x5af967['start']),this['editor']['model']['createPositionAt'](_0x2eefda,_0x5af967['end']));for(const _0x3485e6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3684d0['getIntersection'](_0x3485e6['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x27a926{['afterInit'](){const _0x4e8fb5=this['editor']['locale'],_0x4be767=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e4169,commandName:_0x242b4e}of eo)this['editor']['plugins']['has'](_0x2e4169)&&(_0x4be767['enableDefaultAttributesIntegration'](_0x242b4e),_0x4be767['registerInlineAttribute'](_0x242b4e));_0x4be767['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4e8fb5,'FORMAT_FONT_SIZE')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4e8fb5,'FORMAT_FONT_FAMILY')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4e8fb5,'FORMAT_FONT_COLOR')),_0x4be767['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4e8fb5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x143697=this['editor'],_0x2bc9f3=_0x143697['locale'];_0x143697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ad810=>{const _0xb9e43e=_0x2bc9f3['t'];if('formatInline'!=_0x3ad810['type'])return;const {data:_0x2e2629}=_0x3ad810;if(null!=_0x2e2629){if('fontSize'==_0x2e2629['commandName']){const _0x140661=_0x2e2629['commandParams'][0x0]['value'];if(_0x140661){const _0x41f0f5=_0xb9e43e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c1278=>_0x4c1278['model']==_0x140661)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20size:*\x20%0',_0x41f0f5)};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e2629['commandName']){const _0x5dbd0e=_0x2e2629['commandParams'][0x0]['value'];return _0x5dbd0e?{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20family:*\x20%0',_0x5dbd0e)}:{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e2629['commandName']){const _0x2639df=_0x2e2629['commandParams'][0x0]['value'];if(_0x2639df){const _0x1693c8=_0x1c29fc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x365837=>_0x365837['model']==_0x2639df);let _0x53e7d5=_0x2639df,_0x3ea545='';return _0x1693c8&&(_0x53e7d5=_0x1693c8['label'],_0x3ea545=_0xb9e43e(_0x53e7d5)['toLowerCase']()),{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20color:*\x20%0',_0x3ea545)['trim'](),'color':{'value':_0x2639df,'title':_0x3ea545||_0x53e7d5}};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e2629['commandName']){const _0x45b813=_0x2e2629['commandParams'][0x0]['value'];if(_0x45b813){const _0x3789a7=_0x1c29fc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41fb0f=>_0x41fb0f['model']==_0x45b813);let _0x278496=_0x45b813,_0x3d5714='';return _0x3789a7&&(_0x278496=_0x3789a7['label'],_0x3d5714=_0xb9e43e(_0x278496)['toLowerCase']()),{'type':'format','content':o(_0x2bc9f3,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d5714)['trim'](),'color':{'value':_0x45b813,'title':_0x3d5714||_0x278496}};}return{'type':'format','content':o(_0x2bc9f3,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x27a926{['afterInit'](){const _0x33d690=this['editor'],_0x126ab3=_0x33d690['plugins']['get']('TrackChangesEditing'),_0x5a0ba0=_0x33d690['commands']['get']('copyFormat'),_0x278e3c=_0x33d690['commands']['get']('pasteFormat');_0x5a0ba0&&_0x278e3c&&(_0x126ab3['enableDefaultAttributesIntegration']('pasteFormat'),_0x126ab3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38a174=this['editor'],_0x3443fb=_0x38a174['locale'];_0x38a174['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469f95=>{if('formatBlock'!=_0x469f95['type']&&'formatInline'!=_0x469f95['type'])return;const {data:_0x33b7cd}=_0x469f95;if(_0x33b7cd&&'pasteFormat'===_0x33b7cd['commandName']){const _0x38cd8c=[],_0x5c3de6=_0x33b7cd['commandParams'][0x0];for(const [_0x36d205,_0x9b1833]of Object['entries'](_0x5c3de6))_0x38cd8c['push'](ro(_0x38a174,_0x36d205,_0x9b1833));return _0x38cd8c['length']?{'type':'format','content':o(_0x3443fb,'*Set\x20format\x20to:*\x20%0',_0x38cd8c['join'](',\x20'))}:{'type':'format','content':o(_0x3443fb,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2d5987,_0x527cc1,_0x224305){const _0x3aee90=_0x2d5987['locale']['t'],_0x4cc173=_0x527cc1['split'](/(?=[A-Z])/)['join']('\x20'),_0x5c4edc=_0x3aee90(_0x4cc173['charAt'](0x0)['toUpperCase']()+_0x4cc173['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x224305)return _0x5c4edc;if('fontColor'===_0x527cc1||'fontBackgroundColor'===_0x527cc1){const _0x338cc0=_0x1c29fc(_0x2d5987['config']['get']('fontColor.colors'))['find'](_0x2f1856=>_0x2f1856['model']==_0x224305);return _0x5c4edc+'\x20('+(_0x338cc0?_0x3aee90(_0x338cc0['label'])['toLowerCase']():_0x224305)+')';}if('fontSize'===_0x527cc1&&isNaN(parseFloat(_0x224305))){const _0xa7e832=_0x2d5987['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d5987['config']['get']('fontSize.options'))['find'](_0x8a474a=>_0x8a474a['model']==_0x224305);return _0x5c4edc+'\x20('+(_0xa7e832?_0x3aee90(_0xa7e832['title'])['toLowerCase']():_0x224305)+')';}return _0x5c4edc+'\x20('+_0x224305+')';}class Z extends _0x27a926{['_headingOptions'];['afterInit'](){const _0x29fa8a=this['editor'];if(!_0x29fa8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29fa8a['config']['get']('heading.options');const _0x12c5c5=_0x29fa8a['locale'],_0x58ea98=_0x29fa8a['plugins']['get']('TrackChangesEditing');_0x58ea98['enableDefaultAttributesIntegration']('heading');for(const _0x3c9acf of this['_headingOptions'])'paragraph'!=_0x3c9acf['model']&&_0x58ea98['descriptionFactory']['registerElementLabel'](_0x3c9acf['model'],_0x1c9c46=>{const _0x54fc89=this['_getHeadingLevel'](_0x3c9acf['model']);return null!==_0x54fc89?_0x29d6bd(_0x1c9c46,_0x54fc89):_0x2ed4a4(_0x1c9c46,_0x3c9acf['title']);});function _0x29d6bd(_0x535692,_0x4d6979){return o(_0x12c5c5,'ELEMENT_HEADING',[_0x535692,_0x4d6979]);}function _0x2ed4a4(_0xe32ed8,_0x1d1641){return o(_0x12c5c5,'ELEMENT_HEADING_CUSTOM',[_0xe32ed8,_0x1d1641]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12afd8=this['editor'],_0x767967=_0x12afd8['locale'];function _0x7ee438(_0x8b45c4,_0xe69aad){return o(_0x767967,'ELEMENT_HEADING_CUSTOM',[_0x8b45c4,_0xe69aad]);}_0x12afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5713a9=>{if('formatBlock'!=_0x5713a9['type'])return;const {data:_0xfe9391}=_0x5713a9;if(_0xfe9391&&'heading'==_0xfe9391['commandName']){const _0x2c21dc=_0xfe9391['commandParams'][0x0]['value'],_0x1e2936=this['_getHeadingLevel'](_0x2c21dc);if(null!==_0x1e2936)return{'type':'format','content':o(_0x767967,'*Change\x20to:*\x20%0',(_0x1e4d9c=0x1,_0x26d40e=_0x1e2936,o(_0x767967,'ELEMENT_HEADING',[_0x1e4d9c,_0x26d40e])))};const _0x5ee42d=this['_headingOptions']['find'](_0x7f9f25=>_0x7f9f25['model']===_0x2c21dc)['title'];return{'type':'format','content':o(_0x767967,'*Change\x20to:*\x20%0',_0x7ee438(0x1,_0x5ee42d))};}var _0x1e4d9c,_0x26d40e;});}['_getHeadingLevel'](_0x3b3eed){const _0x132300=_0x3b3eed['match'](/^heading(\d+)/);if(_0x132300)return _0x132300[0x1];const _0x2e175c=this['_headingOptions']?.['find'](_0x441a1b=>_0x441a1b['model']==_0x3b3eed);if(_0x2e175c&&_0x2e175c['view']){const _0x2fcc20=_0x2e175c['view'],_0x40362d=(_0x2fcc20['name']??_0x2fcc20)['match'](/^h(\d+)/);if(_0x40362d)return _0x40362d[0x1];}return null;}}class tt extends _0x27a926{['afterInit'](){const _0x3735ec=this['editor'];if(!_0x3735ec['plugins']['has']('HighlightEditing'))return;const _0x3773d1=_0x3735ec['plugins']['get']('TrackChangesEditing'),_0x237118=_0x3735ec['locale'];_0x3773d1['enableDefaultAttributesIntegration']('highlight'),_0x3773d1['registerInlineAttribute']('highlight'),_0x3773d1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x237118,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d1ba=this['editor'],_0x1fc59c=_0xa9d1ba['locale'];_0xa9d1ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f0dc0=>{if('formatInline'!=_0x3f0dc0['type'])return;const {data:_0xffded}=_0x3f0dc0;if(_0xffded&&'highlight'==_0xffded['commandName']){const _0x3eef23=_0x1fc59c['t'],_0x4d545d=_0xffded['commandParams'][0x0]['value'];if(_0x4d545d){const _0x56f447=_0xa9d1ba['config']['get']('highlight.options')['find'](_0x42e757=>_0x42e757['model']==_0x4d545d),_0x117ca5=_0x3eef23(_0x56f447['title'])['toLowerCase']();return{'type':'format','content':o(_0x1fc59c,'*Set\x20highlight:*\x20%0',_0x117ca5),'color':{'value':_0x56f447['color'],'title':_0x56f447['title']}};}return{'type':'format','content':o(_0x1fc59c,'*Remove\x20highlight*',o(_0x1fc59c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x27a926{['afterInit'](){const _0x3b1265=this['editor'];if(!_0x3b1265['plugins']['has']('HorizontalLineEditing'))return;_0x3b1265['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x244eac=_0x3b1265['plugins']['get']('TrackChangesEditing'),_0x1d36d2=_0x3b1265['locale'];_0x244eac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2248ba=>o(_0x1d36d2,'ELEMENT_HORIZONTAL_LINE',_0x2248ba)),_0x3b1265['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b61c4,{writer:_0x497733,options:_0x5499b9})=>{if(!_0x5499b9['showSuggestionHighlights'])return null;const _0x1cb0f2=_0x497733['createContainerElement']('div'),_0x4cfbca=_0x497733['createEmptyElement']('hr');return _0x497733['addClass']('ck-horizontal-line',_0x1cb0f2),_0x497733['insert'](_0x497733['createPositionAt'](_0x1cb0f2,0x0),_0x4cfbca),_0x1cb0f2;},'converterPriority':'high'});}}class nt extends _0x27a926{['afterInit'](){const _0x18a1ac=this['editor'];if(!_0x18a1ac['plugins']['has']('HtmlEmbed'))return;const _0x317b94=_0x18a1ac['plugins']['get']('TrackChangesEditing'),_0x125a60=_0x18a1ac['locale'];_0x317b94['descriptionFactory']['registerElementLabel']('rawHtml',_0x3bbbf4=>o(_0x125a60,'ELEMENT_HTML_EMBED',_0x3bbbf4)),_0x317b94['enableDefaultAttributesIntegration']('htmlEmbed'),_0x317b94['registerBlockAttribute']('value'),_0x317b94['descriptionFactory']['registerDescriptionCallback'](_0x5d0fe2=>{if('attribute'!=_0x5d0fe2['type'])return;const {data:_0x1e8076}=_0x5d0fe2;if(_0x1e8076&&'value'==_0x1e8076['key']&&_0x5d0fe2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a5477=o(_0x125a60,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x125a60,'*Change\x20%0\x20content*',_0x2a5477)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef5423=this['editor'],_0x1d6aa5=_0xef5423['locale'];_0xef5423['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x234e7a=>{if('formatBlock'!=_0x234e7a['type'])return;const {data:_0x448d6b}=_0x234e7a;if(_0x448d6b&&'htmlEmbed'==_0x448d6b['commandName']){const _0x3d5bff=o(_0x1d6aa5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d6aa5,'*Change\x20%0\x20content*',_0x3d5bff)};}});}}class et extends _0x27a926{['afterInit'](){const _0x1114e3=this['editor'];if(!_0x1114e3['plugins']['has']('ImageEditing'))return;const _0x5a293c=_0x1114e3['plugins']['get']('TrackChangesEditing'),_0x3d5a57=_0x1114e3['plugins']['get']('ImageUtils'),_0x55cb07=_0x1114e3['locale'];_0x5a293c['enableCommand']('insertImage'),_0x5a293c['descriptionFactory']['registerElementLabel']('imageBlock',_0x29d9c3=>o(_0x55cb07,'ELEMENT_IMAGE',_0x29d9c3)),_0x5a293c['descriptionFactory']['registerElementLabel']('imageInline',_0xec7696=>o(_0x55cb07,'ELEMENT_INLINE_IMAGE',_0xec7696)),_0x5a293c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x55cb07,'ELEMENT_CAPTION')),_0x1114e3['plugins']['has']('ImageUploadEditing')&&_0x5a293c['enableCommand']('uploadImage'),_0x1114e3['plugins']['has']('ImageBlockEditing')&&_0x1114e3['plugins']['has']('ImageInlineEditing')&&(_0x5a293c['enableCommand']('imageTypeInline',(_0x285d32,_0x474244)=>{const _0x40e560=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']);_0x1114e3['model']['change'](()=>{_0x5a293c['markBlockFormat'](_0x40e560,{'commandName':'imageTypeInline','commandParams':[_0x474244]},[],'convertBlockImageToInline');});}),_0x5a293c['enableCommand']('imageTypeBlock',(_0xbc90b3,_0x39df7e)=>{_0x1114e3['model']['change'](_0x4cd552=>{let _0x3b0825=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x232383=_0x4cd552['createRangeOn'](_0x3b0825);const _0x4b6eaa=_0x311b31['fromPosition'](_0x232383['start'],'toPrevious'),_0x16a578=_0x311b31['fromPosition'](_0x232383['end'],'toNext');_0x5a293c['forceDefaultExecution'](()=>_0xbc90b3(_0x39df7e)),_0x3b0825=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x232383=_0x4cd552['createRangeOn'](_0x3b0825);const _0x445b5c=_0x4cd552['createRange'](_0x4b6eaa,_0x16a578);_0x4b6eaa['detach'](),_0x16a578['detach'](),_0x5a293c['markBlockFormat'](_0x3b0825,{'commandName':'imageTypeInline','commandParams':[_0x39df7e]},[],'convertInlineImageToBlock'),_0x445b5c['start']['isBefore'](_0x232383['start'])&&_0x5a293c['markInsertion'](_0x4cd552['createRange'](_0x445b5c['start'],_0x232383['start']),'convertInlineImageToBlock'),_0x232383['end']['isBefore'](_0x445b5c['end'])&&_0x5a293c['markInsertion'](_0x4cd552['createRange'](_0x232383['end'],_0x445b5c['end']),'convertInlineImageToBlock');});}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5a293c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3d5f1b])=>{const _0x27b63d=_0x5a293c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xb47295=_0x3d5f1b['start'],_0x344099=_0x3d5f1b['end'];const _0x26a9b9=_0x1114e3['model']['schema']['getNearestSelectionRange'](_0xb47295,'backward'),_0x371fc9=_0x1114e3['model']['schema']['getNearestSelectionRange'](_0x344099,'forward');_0x26a9b9['isCollapsed']&&(_0xb47295=_0x26a9b9['start']),_0x371fc9['isCollapsed']&&(_0x344099=_0x371fc9['end']),_0x27b63d([_0x1114e3['model']['createRange'](_0xb47295,_0x344099)]);}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15a5b9),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15a5b9)),_0x1114e3['plugins']['has']('ImageCaptionEditing')&&(_0x5a293c['enableCommand']('toggleImageCaption',(_0x2ec76e,_0x3b62e1)=>{const _0x18287b=_0x1114e3['plugins']['get']('ImageCaptionUtils');let _0x1c26a9=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x5f2648=_0x18287b['getCaptionFromImageModelElement'](_0x1c26a9);_0x1114e3['model']['change'](()=>{if(_0x5f2648)return void _0x5a293c['markDeletion'](_0x1114e3['model']['createRangeOn'](_0x5f2648));const _0x138dc1=_0x3d5a57['isBlockImage'](_0x1c26a9);_0x2ec76e(_0x3b62e1),_0x1c26a9=_0x3d5a57['getClosestSelectedImageElement'](_0x1114e3['model']['document']['selection']),_0x5f2648=_0x18287b['getCaptionFromImageModelElement'](_0x1c26a9),_0x5a293c['markInsertion'](_0x1114e3['model']['createRangeOn'](_0x5f2648),_0x138dc1?null:'imageCaption');});}),_0x5a293c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15a5b9));const _0x531901=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b0ee1(_0x3b574a,_0x56be64){const _0x2844fb=_0x531901['findIndex'](({type:_0x16a5cc,subType:_0x416c92})=>_0x3b574a['type']==_0x16a5cc&&_0x3b574a['subType']==_0x416c92),_0x1d6997=_0x531901['findIndex'](({type:_0x338438,subType:_0x33b33})=>_0x56be64['type']==_0x338438&&_0x56be64['subType']==_0x33b33);if(_0x2844fb<0x0||_0x1d6997<0x0)return!0x1;const _0x328ffc=_0x3b574a['getFirstRange'](),_0xf583c6=_0x56be64['getFirstRange']();if((0x0==_0x2844fb||0x1==_0x2844fb)&&0x2==_0x1d6997&&_0x328ffc['isIntersecting'](_0xf583c6))return!0x0;if(0x2==_0x2844fb&&0x3==_0x1d6997){const _0x4d1355=_0x5a293c['_findSuggestions'](_0x328ffc,'insertion')['filter'](({suggestion:_0x1a8904,meta:_0x417be7})=>_0x417be7['isOwn']&&'convertInlineImageToBlock'==_0x1a8904['subType']);if(_0x4d1355['length']>0x1&&_0xf583c6['end']['isEqual'](_0x328ffc['start']))return!0x0;if(0x1==_0x4d1355['length']&&(_0x328ffc['start']['isEqual'](_0xf583c6['end'])||_0x328ffc['end']['isEqual'](_0xf583c6['start'])))return!0x0;}if(0x3==_0x2844fb&&0x3==_0x1d6997&&_0x328ffc['start']['isBefore'](_0xf583c6['start'])){const _0x7545bc=_0x328ffc['end']['nodeAfter'],_0x1339fd=_0xf583c6['start']['nodeBefore'];return _0x3d5a57['isBlockImage'](_0x7545bc)&&_0x7545bc===_0x1339fd;}return!0x1;}function _0x15a5b9(_0x40728c,_0xeb638){return _0x5b0ee1(_0x40728c,_0xeb638)?[_0x40728c,_0xeb638]:_0x5b0ee1(_0xeb638,_0x40728c)?[_0xeb638,_0x40728c]:null;}_0x1114e3['plugins']['has']('ImageResize')&&(_0x5a293c['enableDefaultAttributesIntegration']('resizeImage'),_0x5a293c['registerBlockAttribute']('resizedWidth'),_0x5a293c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x55cb07,'FORMAT_IMAGE_SIZE'))),_0x1114e3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5a293c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5a293c['registerBlockAttribute']('alt')),_0x1114e3['plugins']['has']('PictureEditing')&&(_0x5a293c['registerBlockAttribute']('sources'),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x326fcb=>{if('attribute'!=_0x326fcb['type'])return;const {data:_0x5d74cf}=_0x326fcb;return _0x5d74cf&&'sources'==_0x5d74cf['key']?{'type':'format','content':''}:void 0x0;})),_0x1114e3['plugins']['has']('ImageSizeAttributes')&&(_0x5a293c['registerBlockAttribute']('width'),_0x5a293c['registerBlockAttribute']('height'),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x2c9340=>{if('attribute'!=_0x2c9340['type'])return;const {data:_0x2ab6e0}=_0x2c9340;return!_0x2ab6e0||'width'!=_0x2ab6e0['key']&&'height'!=_0x2ab6e0['key']?void 0x0:{'type':'format','content':''};})),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x286aa4=>{if(!!_0x531901['find'](({type:_0x5e3170,subType:_0x40d767})=>_0x286aa4['type']==_0x5e3170&&_0x286aa4['subType']==_0x40d767))return _0x286aa4['previous']?{}:void 0x0;}),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x375552=>{if('insertion'==_0x375552['type']||'deletion'==_0x375552['type']){const _0x2783fc=_0x375552['getContainedElement']();if(_0x2783fc&&_0x2783fc['is']('element','caption'))return{'type':'insertion'==_0x375552['type']?'addObject':'removeObject','element':_0x2783fc,'quantity':0x1};}}),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x26278b=>'formatBlock'==_0x26278b['type']&&'convertInlineImageToBlock'==_0x26278b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26278b['type']&&'convertBlockImageToInline'==_0x26278b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5a293c['descriptionFactory']['registerDescriptionCallback'](_0x58efd8=>{if('attribute'!=_0x58efd8['type'])return;const {data:_0x25f404}=_0x58efd8;if(!_0x25f404||'alt'!=_0x25f404['key'])return;const _0x47f654=_0x25f404['newValue'];return _0x47f654?{'type':'format','content':o(_0x55cb07,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47f654+'\x22')}:{'type':'format','content':o(_0x55cb07,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0ae5=this['editor'],_0x161587=_0x3e0ae5['locale'];_0x3e0ae5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x846502=>{if('formatBlock'!=_0x846502['type']&&'formatInline'!=_0x846502['type'])return;const {data:_0x1321c4}=_0x846502;if(_0x1321c4){if('imageTextAlternative'==_0x1321c4['commandName']){const _0x90a119=_0x1321c4['commandParams'][0x0]['newValue'];return _0x90a119?{'type':'format','content':o(_0x161587,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x90a119+'\x22')}:{'type':'format','content':o(_0x161587,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1321c4['commandName']){const _0x18603e=_0x1321c4['commandParams'][0x0]['width'];return _0x18603e?{'type':'format','content':o(_0x161587,'*Set\x20image\x20width:*\x20%0',_0x18603e)}:{'type':'format','content':o(_0x161587,'*Reset\x20image\x20width*')};}}});}}class st extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a3e2d=this['editor']['locale'],_0x1bceaf=this['editor']['plugins']['get']('TrackChangesEditing');_0x1bceaf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1bceaf['registerBlockAttribute']('src'),_0x1bceaf['descriptionFactory']['registerDescriptionCallback'](_0x2c4f53=>{if('attribute'!=_0x2c4f53['type'])return;const {data:_0x184ef3}=_0x2c4f53;return _0x184ef3&&'src'==_0x184ef3['key']?_0x184ef3['newValue']&&_0x184ef3['oldValue']?{'type':'format','content':o(_0x1a3e2d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x341ef0=this['editor']['plugins']['get']('TrackChangesEditing');_0x341ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x341ef0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x341ef0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19a67c=this['editor'],_0x11070c=_0x19a67c['locale'];_0x19a67c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445f0a=>{if('formatBlock'!=_0x445f0a['type']&&'formatInline'!=_0x445f0a['type'])return;const {data:_0x4c3e3b}=_0x445f0a;if(!_0x4c3e3b||'replaceImageSource'!=_0x4c3e3b['commandName'])return;return{'type':'format','content':o(_0x11070c,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x27a926{['afterInit'](){const _0x308941=this['editor'];if(!_0x308941['plugins']['has']('ImageStyleEditing'))return;const _0x5bc288=_0x308941['plugins']['get']('TrackChangesEditing'),_0x56a65f=_0x308941['plugins']['get']('ImageUtils'),_0x55acda={};_0x5bc288['enableCommand']('imageStyle',(_0xd1c193,_0x772089)=>{const _0x5c1d80=_0x308941['plugins']['get']('Users')['me'],_0x1ef926=_0x308941['commands']['get']('imageStyle');let _0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),_0x459794=_0x308941['model']['createRangeOn'](_0x542089),_0x59edfa=_0x1ef926['value'];if(_0x59edfa==_0x772089['value'])return;const _0x42d1c1={'commandName':'imageStyle','commandParams':[_0x772089],'formatGroupId':_0x5bc718()};_0x308941['model']['change'](()=>{if(_0x5bc288['getSuggestions']()['filter'](_0x2d0492=>_0x2d0492['isInContent']&&_0x5c1d80==_0x2d0492['author']&&('formatBlock'==_0x2d0492['type']||'formatInline'==_0x2d0492['type'])&&('imageStylePreApply'==_0x2d0492['subType']||'imageStylePostApply'==_0x2d0492['subType'])&&_0x2d0492['getFirstRange']()['isEqual'](_0x459794))['forEach'](_0x2cc1d7=>_0x5bc288['discardSuggestion'](_0x2cc1d7['head'])),_0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),_0x459794=_0x308941['model']['createRangeOn'](_0x542089),_0x1ef926['refresh'](),_0x308941['commands']['get']('imageTypeInline')['refresh'](),_0x308941['commands']['get']('imageTypeBlock')['refresh'](),_0x59edfa=_0x1ef926['value'],_0x59edfa!=_0x772089['value'])return _0x56a65f['isInlineImage'](_0x542089)&&_0x1ef926['shouldConvertImageType'](_0x772089['value'],_0x542089)?(_0xd1c193({..._0x772089,'setImageSizes':!0x1}),_0x542089=_0x56a65f['getClosestSelectedImageElement'](_0x308941['model']['document']['selection']),void _0x5bc288['markBlockFormat'](_0x542089,{..._0x42d1c1,'commandReversedParams':[{'value':_0x59edfa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56a65f['isBlockImage'](_0x542089)?_0x5bc288['markBlockFormat'](_0x542089,_0x42d1c1,[],'imageStylePostApply'):_0x5bc288['markInlineFormat'](_0x459794,_0x42d1c1,'imageStylePostApply'));});});for(const _0x3e6c7c of _0x308941['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55acda[_0x3e6c7c['name']]=_0x3e6c7c['title']['toLowerCase']();_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x6af972])=>{_0x56a65f['setImageNaturalSizeAttributes'](_0x6af972['getContainedElement']());}),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5aa68d,_0x4828b6)=>{_0x5bc288['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5aa68d,{'commandName':_0x4828b6['commandName'],'commandParams':_0x4828b6['commandReversedParams']});}),_0x5bc288['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4cc29e,_0x37146e){if(_0x486487(_0x4cc29e,_0x37146e))return[_0x4cc29e,_0x37146e];if(_0x486487(_0x37146e,_0x4cc29e))return[_0x37146e,_0x4cc29e];return null;});const _0x5289a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x486487(_0x3d525c,_0x46de41){const _0x2d57b4=_0x5289a5['findIndex'](({type:_0x5b1299,subType:_0x2ca923})=>_0x3d525c['type']==_0x5b1299&&_0x3d525c['subType']==_0x2ca923),_0x3e3a9f=_0x5289a5['findIndex'](({type:_0x54d1fa,subType:_0x19a911})=>_0x46de41['type']==_0x54d1fa&&_0x46de41['subType']==_0x19a911);if(_0x2d57b4<0x0||_0x3e3a9f<0x0)return!0x1;const _0x319d31=_0x3d525c['getFirstRange'](),_0x1600c5=_0x46de41['getFirstRange']();if((0x0==_0x2d57b4||0x1==_0x2d57b4)&&0x2==_0x3e3a9f&&_0x319d31['isIntersecting'](_0x1600c5))return!0x0;if(0x2==_0x2d57b4&&0x3==_0x3e3a9f){const _0x5c6585=_0x5bc288['_findSuggestions'](_0x319d31,'insertion')['filter'](({suggestion:_0x3f1e14,meta:_0xfdc919})=>_0xfdc919['isOwn']&&'convertInlineImageToBlock'==_0x3f1e14['subType']);if(_0x5c6585['length']>0x1&&_0x1600c5['end']['isEqual'](_0x319d31['start']))return!0x0;if(0x1==_0x5c6585['length']&&(_0x319d31['start']['isEqual'](_0x1600c5['end'])||_0x319d31['end']['isEqual'](_0x1600c5['start'])))return!0x0;}if(0x3==_0x2d57b4&&0x3==_0x3e3a9f&&_0x319d31['start']['isBefore'](_0x1600c5['start'])){const _0x2c833b=_0x319d31['end']['nodeAfter'],_0x1e1e74=_0x1600c5['start']['nodeBefore'];return _0x56a65f['isBlockImage'](_0x2c833b)&&_0x2c833b===_0x1e1e74;}return!0x1;}_0x308941['model']['document']['registerPostFixer'](()=>{let _0x1f18d4=!0x1;const _0x3f9dce=Array['from'](_0x308941['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29469b,data:_0x2eed38}of _0x3f9dce){const {group:_0x477c90,type:_0x3a7c67,subType:_0x44de89,id:_0x268201}=_0x5bc288['_splitMarkerName'](_0x29469b);if('suggestion'==_0x477c90&&_0x5bc288['hasSuggestion'](_0x268201)){if('formatBlock'==_0x3a7c67&&('imageStylePreApply'==_0x44de89||'imageStylePostApply'==_0x44de89)){const _0x5d1c99=_0x5bc288['getSuggestion'](_0x268201);if(_0x2eed38['newRange']){const _0x4b480f=_0x5d1c99['getFirstRange']()['getContainedElement']();if(_0x56a65f['isBlockImage'](_0x4b480f))continue;_0x5bc288['discardSuggestion'](_0x5d1c99),_0x1f18d4=!0x0;}}if('insertion'==_0x3a7c67&&'imageCaption'==_0x44de89&&!_0x2eed38['newRange']){const _0x19782d=_0x5bc288['getSuggestion'](_0x268201);_0x19782d['next']&&_0x19782d['next']['isInContent']&&(_0x5bc288['discardSuggestion'](_0x19782d['next']),_0x1f18d4=!0x0);}}}return _0x1f18d4;}),this['_registerLegacyDescription'](_0x55acda);}['_registerLegacyDescription'](_0x407f99){const _0x1735f1=this['editor'],_0x3f2cf9=_0x1735f1['locale'];_0x1735f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf0f6e8=>{if('formatBlock'!=_0xf0f6e8['type']&&'formatInline'!=_0xf0f6e8['type'])return;const {data:_0x5e3fe2}=_0xf0f6e8;if(!_0x5e3fe2||'imageStyle'!=_0x5e3fe2['commandName'])return;const _0x3bcad9=_0x5e3fe2['commandParams'][0x0]['value'];return _0x336483('side'===_0x3bcad9?o(_0x3f2cf9,'FORMAT_SIDE_IMAGE'):_0x407f99[_0x3bcad9]||_0x3bcad9);function _0x336483(_0xa0e3dc){return{'type':'format','content':o(_0x3f2cf9,'*Format:*\x20%0',_0xa0e3dc)};}});}}class rt extends _0x27a926{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2cca2c){super(_0x2cca2c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c26a6=this['editor'],_0x3d56be=_0x3c26a6['commands']['get']('importWord'),_0x2ed0dc=_0x3c26a6['commands']['get']('trackChanges');_0x3d56be&&(_0x3d56be['on']('execute',(_0x5818ff,[,_0x45edc9])=>{this['_trackChangesValueDuringImport']=_0x2ed0dc['value'],_0x45edc9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d56be,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d56be,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ed0dc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c26a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x455d70,_0x2d22d6){const {suggestions:_0x131fb9}=_0x2d22d6,_0x1470cf=this['editor']['commands']['get']('trackChanges'),_0x5c5fb2=_0x1470cf['value'];this['_trackChangesValueDuringImport']!==_0x5c5fb2&&(_0x1470cf['execute'](),this['_trackChangesExecuted']=!0x0),_0x131fb9&&_0x131fb9['forEach'](({id:_0x38b632,type:_0x370b5a,author:_0x1f479e,created_at:_0x9a765})=>{const _0xa35137={'id':_0x38b632,'type':_0x370b5a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1f479e,'createdAt':_0x9a765?new Date(_0x9a765):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa35137);});}}class at extends _0x27a926{['afterInit'](){const _0x4045cc=this['editor'],_0x1ca2a3=_0x4045cc['plugins']['get']('TrackChangesEditing');if(_0x4045cc['plugins']['has']('IndentEditing')&&(_0x1ca2a3['enableCommand']('indent'),_0x1ca2a3['enableCommand']('outdent')),_0x4045cc['plugins']['has']('IndentBlock')){for(const _0x28218a of['indentBlock','outdentBlock'])_0x1ca2a3['enableDefaultAttributesIntegration'](_0x28218a);}const _0x3b72b6=_0x4045cc['locale'];_0x1ca2a3['registerBlockAttribute']('blockIndent'),_0x1ca2a3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3b72b6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f1b8=this['editor'],_0x6fc18b=_0x39f1b8['locale'],_0x386392=_0x39f1b8['plugins']['get']('TrackChangesEditing');_0x386392['descriptionFactory']['registerDescriptionCallback'](_0x148707=>{if('formatBlock'!=_0x148707['type'])return;const {data:_0x472f6b}=_0x148707;if(!_0x472f6b)return;if('indentBlock'!=_0x472f6b['commandName']&&'outdentBlock'!=_0x472f6b['commandName'])return;const _0x58b105=_0x148707['getItems']()[0x0],_0x47c432=_0x386392['descriptionFactory']['getItemLabel'](_0x58b105);return'indentBlock'==_0x472f6b['commandName']?{'type':'format','content':o(_0x6fc18b,'*Indent:*\x20%0',_0x47c432)}:'outdentBlock'==_0x472f6b['commandName']?{'type':'format','content':o(_0x6fc18b,'*Outdent:*\x20%0',_0x47c432)}:void 0x0;});}}class ct extends _0x27a926{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x27a926{['afterInit'](){const _0x4f64ec=this['editor'];if(!_0x4f64ec['plugins']['has']('LinkEditing'))return;const _0x511c7e=_0x4f64ec['plugins']['get']('TrackChangesEditing'),_0x166d3c=_0x4f64ec['commands']['get']('link');_0x511c7e['enableDefaultAttributesIntegration']('link'),_0x511c7e['enableDefaultAttributesIntegration']('unlink'),_0x511c7e['registerInlineAttribute']('linkHref');for(const _0x1dab11 of _0x166d3c['manualDecorators'])_0x511c7e['registerInlineAttribute'](_0x1dab11['id']),_0x511c7e['descriptionFactory']['registerAttributeLabel'](_0x1dab11['id'],'link\x20('+_0x1dab11['label']['toLowerCase']()+')');_0x511c7e['descriptionFactory']['registerDescriptionCallback'](_0x3e4bae=>{if('attribute'!=_0x3e4bae['type'])return;const {data:_0x433c44}=_0x3e4bae;if(!_0x433c44||'linkHref'!=_0x433c44['key'])return;const _0x15abb3=_0x433c44['newValue'],_0xfdefe1=_0x4f64ec['locale'];return{'type':'format','content':null==_0x15abb3?o(_0xfdefe1,'*Remove\x20link*'):o(_0xfdefe1,'*Set\x20link:*\x20%0','\x22'+_0x15abb3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec168=this['editor'],_0x7abdb3=_0x2ec168['locale'];_0x2ec168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539f2f=>{if('formatInline'!=_0x539f2f['type'])return;const {data:_0x3fae4b}=_0x539f2f;if(_0x3fae4b){if('link'==_0x3fae4b['commandName']){const _0x5de75f=_0x3fae4b['commandParams'][0x0];return{'type':'format','content':o(_0x7abdb3,'*Set\x20link:*\x20%0','\x22'+_0x5de75f+'\x22')};}return'unlink'==_0x3fae4b['commandName']?{'type':'format','content':o(_0x7abdb3,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x27a926{['afterInit'](){const _0x3bb248=this['editor'],_0x16891f=_0x3bb248['locale'];if(!_0x3bb248['plugins']['has']('LegacyListEditing'))return;const _0x5d79df=_0x3bb248['plugins']['get']('TrackChangesEditing'),_0x436d37=_0x3bb248['plugins']['has']('LegacyTodoListEditing');function _0x4c7012(_0x28794d){return()=>{const _0x5b20b0=_0x3bb248['model']['document']['selection'],_0x4aef1f=_0x3bb248['commands']['get'](_0x28794d);if(_0x4aef1f['value'])return void _0x3bb248['execute']('paragraph',{});const _0x4927fc=_0x28794d['slice'](0x0,-0x4),_0x9cdd3e=function(_0x14a226,_0x26d52b,_0x2a376d){let _0x393211=Array['from'](_0x14a226)['filter'](_0x39f70c=>function(_0x7d27b0,_0x47e1ae){return _0x47e1ae['checkChild'](_0x7d27b0['parent'],'listItem')&&!_0x47e1ae['isObject'](_0x7d27b0);}(_0x39f70c,_0x2a376d));_0x393211=_0x393211['filter'](_0x4f433a=>!_0x4f433a['is']('element','listItem')||_0x4f433a['getAttribute']('listType')!=_0x26d52b);const _0x45a78f=new Set();for(const _0x1af444 of _0x393211)_0x1af444['is']('element','listItem')?_0x45a78f['add'](Le(_0x1af444)):_0x45a78f['add'](_0x1af444);return Array['from'](_0x45a78f);}(_0x5b20b0['getSelectedBlocks'](),_0x4927fc,_0x3bb248['model']['schema']);_0x3bb248['model']['change'](()=>{for(const _0x18d537 of _0x9cdd3e)_0x5d79df['markBlockFormat'](_0x18d537,{'commandName':_0x28794d,'commandParams':[{'forceValue':!_0x4aef1f['value']}],'formatGroupId':'blockName'},Ee(_0x18d537));});};}function _0x43699a(_0x271715){return()=>{const _0x21f05c=function(_0x44cc0e){let _0xde3afd=Array['from'](_0x44cc0e);const _0x1d43c5=_0xde3afd['findIndex'](_0xa46a84=>'listItem'!=_0xa46a84['name']);return _0x1d43c5>-0x1&&(_0xde3afd=_0xde3afd['slice'](0x0,_0x1d43c5)),_0xde3afd;}(_0x3bb248['model']['document']['selection']['getSelectedBlocks']()),_0x59e4c7=_0x3bb248['model']['createRange'](_0x3bb248['model']['createPositionAt'](_0x21f05c[0x0],'before'),_0x3bb248['model']['createPositionAt'](_0x21f05c[_0x21f05c['length']-0x1],'end'));_0x3bb248['model']['change'](()=>{_0x5d79df['markBlockFormat'](_0x59e4c7,{'commandName':_0x271715,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3cca93){const _0x986493=new Set();for(const _0x4e71a6 of _0x3cca93){let _0xbad80c=_0x4e71a6['nextSibling'];for(;_0xbad80c&&_0xbad80c['getAttribute']('listIndent')>_0x4e71a6['getAttribute']('listIndent');)_0x986493['add'](_0xbad80c),_0xbad80c=_0xbad80c['nextSibling'];}return Array['from'](_0x986493);}(_0x21f05c));});};}_0x5d79df['enableCommand']('numberedList',_0x4c7012('numberedList')),_0x5d79df['enableCommand']('bulletedList',_0x4c7012('bulletedList')),_0x436d37&&_0x5d79df['enableCommand']('todoList',_0x4c7012('todoList')),_0x5d79df['enableCommand']('indentList',_0x43699a('indentList')),_0x5d79df['enableCommand']('outdentList',_0x43699a('outdentList')),_0x436d37&&_0x5d79df['enableCommand']('checkTodoList',()=>{const _0xb6776b=_0x3bb248['commands']['get']('checkTodoList'),_0xe2a273=Array['from'](_0xb6776b['_selectedElements']);_0xe2a273['filter'](_0x39e77e=>_0x39e77e['getAttribute']('todoListChecked')!=_0xb6776b['value']),_0x3bb248['model']['change'](()=>{for(const _0x439259 of _0xe2a273)_0x5d79df['markBlockFormat'](_0x439259,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb6776b['value']}]});});}),_0x5d79df['descriptionFactory']['registerElementLabel']('listItem',_0x341ac0=>o(_0x16891f,'ELEMENT_LIST_ITEM',_0x341ac0)),_0x5d79df['descriptionFactory']['registerDescriptionCallback'](_0x3c98b2=>{if('formatBlock'!=_0x3c98b2['type']&&'formatInline'!=_0x3c98b2['type'])return;const {data:_0x89bec7}=_0x3c98b2;if(_0x89bec7){if('numberedList'==_0x89bec7['commandName']||'bulletedList'==_0x89bec7['commandName']||'todoList'==_0x89bec7['commandName'])switch(_0x89bec7['commandName']['replace']('List','')){case'bulleted':return _0x256596(o(_0x16891f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x256596(o(_0x16891f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x256596(o(_0x16891f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x89bec7['commandName'])return{'type':'format','content':o(_0x16891f,'*Indent:*\x20%0',o(_0x16891f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x89bec7['commandName'])return{'type':'format','content':o(_0x16891f,'*Outdent:*\x20%0',o(_0x16891f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x89bec7['commandName'])return _0x89bec7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16891f,'*Check\x20item*')}:{'type':'format','content':o(_0x16891f,'*Uncheck\x20item*')};}function _0x256596(_0x51c543){return{'type':'format','content':o(_0x16891f,'*Change\x20to:*\x20%0',_0x51c543)};}});}}function Le(_0x170e4c){const _0x5549b8=_0x170e4c['getAttribute']('listIndent');if(0x0==_0x5549b8)return _0x170e4c;let _0x195864=_0x170e4c;for(;_0x170e4c['previousSibling']&&_0x170e4c['previousSibling']['is']('element','listItem');){const _0x324b57=_0x170e4c['previousSibling']['getAttribute']('listIndent');if(_0x324b57==_0x5549b8)_0x195864=_0x170e4c['previousSibling'];else{if(_0x324b57<_0x5549b8)break;}_0x170e4c=_0x170e4c['previousSibling'];}return _0x195864;}function Ee(_0x3c54ed){const _0x533ad9=[];if(_0x3c54ed['is']('element','listItem')&&_0x3c54ed['getAttribute']('listIndent')>0x0){let _0x1591af=_0x3c54ed['nextSibling'];for(;_0x1591af&&'listItem'==_0x1591af['name']&&_0x1591af['getAttribute']('listIndent')==_0x3c54ed['getAttribute']('listIndent');)_0x533ad9['push'](_0x1591af),_0x1591af=_0x1591af['nextSibling'];}return _0x533ad9;}class ht extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x10ab40=this['editor']['config']['get']('list.properties'),_0x2ed310=this['editor']['plugins']['get']('TrackChangesEditing');_0x10ab40['styles']&&_0x2ed310['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x10ab40['reversed']&&_0x2ed310['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x10ab40['startIndex']&&_0x2ed310['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2ed310['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4cea3b,_0x5a81bc={}){const _0x2972f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x179c16=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2972f6['markMultiRangeBlockFormat'](_0x179c16,{'commandName':'listStyle','commandParams':[{'type':_0x5a81bc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x575516,_0x1295dd={}){const _0x3c51fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3282b=this['_getSuggestionBlocks'](_0x4a9e50=>_0x4a9e50['is']('element','listItem')&&'numbered'===_0x4a9e50['getAttribute']('listType'));if(_0xe3282b['length']<0x1)return;const _0x4bdbed=_0xe3282b['map'](_0x1a912a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a912a,'before'),this['editor']['model']['createPositionAt'](_0x1a912a,0x0)));this['editor']['model']['change'](()=>{_0x3c51fa['markMultiRangeBlockFormat'](_0x4bdbed,{'commandName':'listReversed','commandParams':[{'reversed':_0x1295dd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4c16dc,_0x419575={}){const _0x4c62e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x281578=this['_getSuggestionBlocks'](_0x22a055=>_0x22a055['is']('element','listItem')&&'numbered'===_0x22a055['getAttribute']('listType'));if(_0x281578['length']<0x1)return;const _0x48e35a=_0x281578['map'](_0x265755=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x265755,'before'),this['editor']['model']['createPositionAt'](_0x265755,0x0)));this['editor']['model']['change'](()=>{_0x4c62e6['markMultiRangeBlockFormat'](_0x48e35a,{'commandName':'listStart','commandParams':[{'startIndex':_0x419575['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40f36d){if('formatBlock'!=_0x40f36d['type']&&'formatInline'!=_0x40f36d['type'])return;const _0x38b92f=this['editor']['locale'],{data:_0x463a43}=_0x40f36d;if(!_0x463a43)return;let _0xd06480,_0x204095;switch(_0x463a43['commandName']){case'listStyle':_0xd06480='*Change\x20to:*\x20%0',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480,o(_0x38b92f,this['_getTranslationKeyForListStyle'](_0x463a43['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd06480=_0x463a43['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480)};break;case'listStart':_0xd06480='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x204095={'type':'format','content':o(_0x38b92f,_0xd06480,_0x463a43['commandParams'][0x0]['startIndex'])};}return _0x204095;}['_getSuggestionBlocksForListStyle'](){const _0x49b07a=this['editor']['plugins']['get']('LegacyListUtils');let _0x154918=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x154918[0x0]?.['is']('element','listItem')&&_0x154918['unshift'](..._0x49b07a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x154918[_0x154918['length']-0x1]?.['is']('element','listItem')&&_0x154918['push'](..._0x49b07a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x154918=[...new Set(_0x154918)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x154918=_0x154918['filter'](_0x26c599=>_0x26c599['is']('element','listItem'))),_0x154918;}['_getSuggestionBlocks'](_0x25024f){const _0x71fbf4=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ef53a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25024f)['map'](_0x3e080f=>{const _0x1371be=this['editor']['model']['createPositionAt'](_0x3e080f,0x0);return[..._0x71fbf4['getSiblingNodes'](_0x1371be,'backward'),..._0x71fbf4['getSiblingNodes'](_0x1371be,'forward')];})['flat']();return _0x3ef53a=[...new Set(_0x3ef53a)],_0x3ef53a;}['_getTranslationKeyForListStyle'](_0x5d857a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d857a)||'default')['toUpperCase']()+'_LIST_'+_0x5d857a['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x27a926{['afterInit'](){const _0x554228=this['editor'];if(!_0x554228['plugins']['has']('MediaEmbedEditing'))return;const _0x42b3e3=_0x554228['plugins']['get']('TrackChangesEditing'),_0x5b8e13=_0x554228['locale'];_0x42b3e3['enableCommand']('mediaEmbed'),_0x42b3e3['descriptionFactory']['registerElementLabel']('media',_0x54d884=>o(_0x5b8e13,'ELEMENT_MEDIA',_0x54d884)),_0x554228['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4085b3,{writer:_0x316c49,options:_0x3db616})=>{if(_0x3db616['showSuggestionHighlights'])return _0x316c49['createEmptyElement']('div');},'converterPriority':'high'}),_0x554228['data']['downcastDispatcher']['on']('attribute:url:media',(_0x36d61c,_0x4f8762,_0x416522)=>{_0x416522['options']['showSuggestionHighlights']&&_0x36d61c['stop']();},{'priority':'high'});}}class lt extends _0x27a926{['afterInit'](){const _0x3a5f68=this['editor'];_0x3a5f68['plugins']['has']('MentionEditing')&&_0x3a5f68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x27a926{['afterInit'](){const _0x5a6335=this['editor'];if(!_0x5a6335['plugins']['has']('MergeFieldsEditing'))return;const _0x1b05cd=_0x5a6335['plugins']['get']('TrackChangesEditing'),_0x1bc0a3=_0x5a6335['locale'];_0x1b05cd['enableCommand']('insertMergeField'),_0x1b05cd['enableCommand']('insertMergeFieldBlock'),_0x1b05cd['enableCommand']('insertMergeFieldImage'),_0x1b05cd['descriptionFactory']['registerElementLabel']('mergeField',_0x1d8cfe=>o(_0x1bc0a3,'ELEMENT_MERGE_FIELD',_0x1d8cfe)),_0x1b05cd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x151b95=>o(_0x1bc0a3,'ELEMENT_MERGE_FIELD',_0x151b95)),_0x1b05cd['descriptionFactory']['registerDescriptionCallback'](_0x2a550c=>{if('insertion'!=_0x2a550c['type']&&'deletion'!=_0x2a550c['type'])return;const _0x43d8ec=_0x2a550c['getContainedElement']();if(null==_0x43d8ec)return;const _0x49314f=_0x5a6335['plugins']['get']('MergeFieldsEditing');let _0x10a72a;switch(_0x49314f['getMergeFieldType'](_0x43d8ec)){case null:return;case'image':{const _0x4d748d=_0x49314f['unwrapAffixes'](_0x43d8ec['getAttribute']('src'));_0x10a72a=_0x49314f['getLabel'](_0x4d748d)||_0x4d748d;break;}default:{const _0xbaec6d=_0x43d8ec['getAttribute']('id');_0x10a72a=_0x49314f['getLabel'](_0xbaec6d)||_0xbaec6d;break;}}return'insertion'==_0x2a550c['type']?{'type':'insertion','content':o(_0x1bc0a3,'*Insert:*\x20%0','\x22'+_0x10a72a+'\x22\x20'+o(_0x1bc0a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1bc0a3,'*Remove:*\x20%0','\x22'+_0x10a72a+'\x22\x20'+o(_0x1bc0a3,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x27a926{['afterInit'](){const _0x15930c=this['editor'],_0x5a7915=_0x15930c['plugins']['get']('TrackChangesEditing');_0x15930c['plugins']['has']('MultiLevelList')&&(_0x5a7915['enableDefaultAttributesIntegration']('multiLevelList'),_0x5a7915['registerBlockAttribute']('listMarkerStyle'),_0x5a7915['descriptionFactory']['registerDescriptionCallback'](_0x5029b5=>this['handleDescriptions'](_0x5029b5)));}['handleDescriptions'](_0x28f47e){const _0x3de7ae=this['editor']['locale'],{data:_0x5b5401}=_0x28f47e,_0x1622ee={'type':'format','content':''};if(_0x5b5401&&'listMarkerStyle'==_0x5b5401['key']){if(!_0x5b5401['oldValue'])return{'type':'format','content':o(_0x3de7ae,'*Set\x20format:*\x20%0',o(_0x3de7ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5401['newValue']+')'};if(!_0x5b5401['newValue']){let _0x1fb3cc=_0x28f47e['head'];for(;_0x1fb3cc;){if(_0x1fb3cc['data']&&'listType'==_0x1fb3cc['data']['key']&&_0x1fb3cc['data']['newValue'])return _0x1622ee;_0x1fb3cc=_0x1fb3cc['next'];}return{'type':'format','content':o(_0x3de7ae,'*Remove\x20format:*\x20%0',o(_0x3de7ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b5401['oldValue']+')'};}}}}class pt extends _0x27a926{['afterInit'](){const _0x41c42d=this['editor'];if(!_0x41c42d['plugins']['has']('PageBreakEditing'))return;_0x41c42d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a20ed=_0x41c42d['plugins']['get']('TrackChangesEditing'),_0x4b1fc5=_0x41c42d['locale'];_0x5a20ed['descriptionFactory']['registerElementLabel']('pageBreak',_0x196927=>o(_0x4b1fc5,'ELEMENT_PAGE_BREAK',_0x196927));}}class kt extends _0x27a926{['afterInit'](){const _0x232327=this['editor'];if(!_0x232327['plugins']['has']('Paragraph'))return;const _0x41bffc=_0x232327['locale'],_0x5cc5fb=_0x232327['plugins']['get']('TrackChangesEditing');_0x5cc5fb['descriptionFactory']['registerElementLabel']('paragraph',_0x5cbdc3=>o(_0x41bffc,'ELEMENT_PARAGRAPH',_0x5cbdc3)),_0x5cc5fb['enableDefaultAttributesIntegration']('paragraph'),_0x5cc5fb['enableCommand']('insertParagraph'),_0x232327['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x232327),{'priority':'highest'}),_0x232327['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x37c5dc,_0x54bb25,_0x2f07ba)=>{_0x2f07ba['options']['showSuggestionHighlights']&&nr(_0x232327,{'showActiveMarker':!0x1})(_0x37c5dc,_0x54bb25,_0x2f07ba);},{'priority':'highest'});const _0x22fa60=_0x5cc5fb['descriptionFactory'];_0x22fa60['registerDescriptionCallback'](_0x26a1ec=>{if('insertion'!==_0x26a1ec['type'])return;const {start:_0x593deb,end:_0x818109}=_0x26a1ec['getFirstRange']();if(!_0x593deb['isTouching'](_0x818109)||!_0x593deb['nodeAfter'])return;const _0x7d52a4=_0x232327['model']['schema'],_0x11aae9=_0x593deb['nodeAfter'];return _0x7d52a4['isBlock'](_0x11aae9)&&!_0x7d52a4['isLimit'](_0x11aae9)&&_0x7d52a4['checkChild'](_0x11aae9,'$text')?{'type':'insertion','content':o(_0x41bffc,'*Insert:*\x20%0',_0x22fa60['getItemLabel'](_0x11aae9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53852c=this['editor'],_0x531c96=_0x53852c['locale'];_0x53852c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aac33=>{if('formatBlock'!=_0x2aac33['type'])return;const {data:_0x13643a}=_0x2aac33;return _0x13643a&&'paragraph'==_0x13643a['commandName']?{'type':'format','content':o(_0x531c96,'*Change\x20to:*\x20%0',o(_0x531c96,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1b4c87,{showActiveMarker:_0xbd6009=!0x0}={}){return(_0x4cf788,_0x4bc00c,_0x6bca92)=>{const _0x54088b=_0x1b4c87['plugins']['get']('TrackChangesEditing'),_0x40c655=_0x4bc00c['markerRange']['start'],_0x3c44c9=_0x4bc00c['markerRange']['end'],_0x1a0d9e=_0x1b4c87['model']['schema'];if(!_0x40c655['isTouching'](_0x3c44c9)||!_0x40c655['nodeAfter'])return;const _0x625e15=_0x40c655['nodeAfter'];if(_0x1a0d9e['isBlock'](_0x625e15)&&!_0x1a0d9e['isLimit'](_0x625e15)&&_0x1a0d9e['checkChild'](_0x625e15,'$text')){if(!_0x6bca92['consumable']['consume'](_0x4bc00c['markerRange'],_0x4cf788['name']))return;const {id:_0x53cfd6,authorId:_0x559327}=_0x54088b['_splitMarkerName'](_0x4bc00c['markerName']),_0x4edb33=_0x6bca92['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x53cfd6,'data-author-id':_0x559327}),_0x5b2b02=_0x6bca92['mapper']['toViewPosition'](_0x3c44c9);_0xbd6009&&_0x54088b['activeMarkers']['includes'](_0x4bc00c['markerName'])&&_0x6bca92['writer']['addClass']('ck-suggestion-marker--active',_0x4edb33),_0x6bca92['writer']['insert'](_0x5b2b02,_0x4edb33),_0x6bca92['mapper']['bindElementToMarker'](_0x4edb33,_0x4bc00c['markerName']);}};}class wt extends _0x27a926{['afterInit'](){const _0x38e638=this['editor'];_0x38e638['commands']['get']('replaceSource')&&_0x38e638['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x27a926{['afterInit'](){const _0x2b53a2=this['editor'];if(!_0x2b53a2['plugins']['has']('RemoveFormatEditing'))return;_0x2b53a2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53c149=this['editor'];_0x53c149['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f61a9=>{if('formatBlock'!=_0x1f61a9['type']&&'formatInline'!=_0x1f61a9['type'])return;const {data:_0x5023c8}=_0x1f61a9;return _0x5023c8&&'removeFormat'==_0x5023c8['commandName']?{'type':'format','content':o(_0x53c149['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x27a926{['afterInit'](){const _0x3ff557=this['editor'];if(!_0x3ff557['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f7cad=_0x3ff557['plugins']['get']('TrackChangesEditing');_0x3f7cad['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f7cad['enableCommand']('goToNextRestrictedEditingException');const _0x2c6089=_0x3ff557['plugins']['get']('RestrictedEditingModeEditing');_0x2c6089['enableCommand']('trackChanges'),_0x2c6089['enableCommand']('acceptSuggestion'),_0x2c6089['enableCommand']('discardSuggestion'),_0x2c6089['enableCommand']('acceptAllSuggestions'),_0x2c6089['enableCommand']('discardAllSuggestions'),_0x2c6089['enableCommand']('acceptSelectedSuggestions'),_0x2c6089['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x27a926{['afterInit'](){const _0x1842e9=this['editor'];if(!_0x1842e9['plugins']['has']('ShiftEnter'))return;const _0x43e6fb=_0x1842e9['plugins']['get']('TrackChangesEditing');_0x43e6fb['enableCommand']('shiftEnter'),_0x1842e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1842e9),{'priority':'high'}),_0x1842e9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1842e9),{'priority':'high'}),_0x1842e9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d5103,_0x34b305,_0x542b67)=>{_0x542b67['options']['showSuggestionHighlights']&&je(_0x1842e9,{'showActiveMarker':!0x1})(_0x3d5103,_0x34b305,_0x542b67);}),_0x43e6fb['descriptionFactory']['registerElementLabel']('softBreak',_0x128327=>o(_0x1842e9['locale'],'ELEMENT_LINE_BREAK',_0x128327));}}function je(_0x41e0e2,{showActiveMarker:_0x39a028=!0x0}={}){return(_0x46af32,_0x1dd784,_0xefa4a6)=>{const _0x328f22=_0x41e0e2['plugins']['get']('TrackChangesEditing');if(!_0xefa4a6['consumable']['test'](_0x1dd784['markerRange'],_0x46af32['name']))return;const _0x17bdde=_0x41e0e2['model'];for(const _0x56bed8 of _0x1dd784['markerRange']['getItems']()){if(!_0x56bed8['is']('element','softBreak'))continue;const _0x259106='deletion'==_0x1dd784['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5ee074,authorId:_0x31bef9}=_0x328f22['_splitMarkerName'](_0x1dd784['markerName']),_0x377ff9=_0xefa4a6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x259106,'data-suggestion':_0x5ee074,'data-author-id':_0x31bef9}),_0x1da3f2=_0xefa4a6['mapper']['toViewPosition'](_0x17bdde['createPositionBefore'](_0x56bed8));_0x39a028&&_0x328f22['activeMarkers']['includes'](_0x1dd784['markerName'])&&_0xefa4a6['writer']['addClass']('ck-suggestion-marker--active',_0x377ff9),_0xefa4a6['writer']['insert'](_0x1da3f2,_0x377ff9),_0xefa4a6['mapper']['bindElementToMarker'](_0x377ff9,_0x1dd784['markerName']);}};}class St extends _0x27a926{['afterInit'](){const _0x466d82=this['editor'],_0x325579=_0x466d82['model'],_0x828c96=_0x466d82['locale'];if(!_0x466d82['plugins']['has']('StandardEditingModeEditing'))return;const _0x2773a3=_0x466d82['plugins']['get']('TrackChangesEditing'),_0x4926e4='restrictedEditingException',_0x2324f0=_0x466d82['commands']['get'](_0x4926e4);_0x2773a3['enableCommand'](_0x4926e4,(_0x513641,_0x1da296={})=>{const _0x25fa12=_0x325579['document']['selection'];if(_0x25fa12['isCollapsed'])return void _0x513641(_0x1da296);const _0x398541=void 0x0!==_0x1da296['forceValue']?_0x1da296['forceValue']:!_0x2324f0['value'];_0x325579['change'](()=>{const _0x1f0fb1=Array['from'](_0x25fa12['getRanges']());for(const _0x458129 of _0x1f0fb1){const _0x9b35b2=_0x398541?[_0x458129]:io(_0x4926e4,_0x458129,_0x325579);for(const _0x3eb046 of _0x9b35b2)_0x2773a3['markInlineFormat'](_0x3eb046,{'commandName':_0x4926e4,'commandParams':[{'forceValue':_0x398541}]});}});}),_0x2773a3['descriptionFactory']['registerDescriptionCallback'](_0x33d19b=>{if('formatBlock'!=_0x33d19b['type']&&'formatInline'!=_0x33d19b['type'])return;const {data:_0x1dfd90}=_0x33d19b;return _0x1dfd90&&_0x1dfd90['commandName']==_0x4926e4?_0x1dfd90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x828c96,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x828c96,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27a926{['afterInit'](){const _0x474e97=this['editor'];if(!_0x474e97['plugins']['has']('Style')||!_0x474e97['plugins']['has']('DataSchema'))return;const _0x136936=_0x474e97['plugins']['get']('TrackChangesEditing'),_0x3cbf39=_0x474e97['locale'],_0x382196=_0x474e97['config']['get']('style')||{},_0x5da8e7=_0x474e97['plugins']['get']('GeneralHtmlSupport'),_0x2b378e=_0x474e97['plugins']['get']('StyleUtils')['normalizeConfig'](_0x474e97['plugins']['get']('DataSchema'),_0x382196['definitions']);_0x136936['enableDefaultAttributesIntegration']('style');const _0x5a378f=new Set();for(const _0x5dca31 of _0x2b378e['block']){const _0x911d03=_0x5da8e7['getGhsAttributeNameForElement'](_0x5dca31['element']);_0x5a378f['add'](_0x911d03);}const _0x327382=new Set();for(const _0x5cf4d4 of _0x2b378e['inline']){const _0x55b7a0=_0x5da8e7['getGhsAttributeNameForElement'](_0x5cf4d4['element']);_0x327382['add'](_0x55b7a0);for(const _0x5a421f of _0x5cf4d4['ghsAttributes'])_0x327382['add'](_0x5a421f);}for(const _0x511503 of _0x5a378f)_0x136936['registerBlockAttribute'](_0x511503),_0x136936['descriptionFactory']['registerAttributeLabel'](_0x511503,o(_0x3cbf39,'FORMAT_STYLE'));for(const _0x4f2e7d of _0x327382)_0x136936['registerInlineAttribute'](_0x4f2e7d),_0x136936['descriptionFactory']['registerAttributeLabel'](_0x4f2e7d,o(_0x3cbf39,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3df9fd=this['editor'],_0x4684f4=_0x3df9fd['locale'];_0x3df9fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87017b=>{if('formatBlock'!=_0x87017b['type']&&'formatInline'!=_0x87017b['type'])return;const {data:_0x4ae886}=_0x87017b;return _0x4ae886&&'style'===_0x4ae886['commandName']?_0x4ae886['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4684f4,'*Set\x20format:*\x20%0',_0x4ae886['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4684f4,'*Remove\x20format:*\x20%0',_0x4ae886['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x27a926{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cd920){super(_0x3cd920),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1228af=this['editor'],_0x42dc1f=_0x1228af['model']['document']['selection'];if(!_0x1228af['plugins']['has']('TableEditing'))return;const _0x277693=_0x1228af['locale'],_0x24d96d=_0x1228af['plugins']['get']('TrackChangesEditing'),_0x4e927d=_0x1228af['plugins']['get']('TableUtils');_0x24d96d['descriptionFactory']['registerElementLabel']('table',_0x3bf3f7=>o(_0x277693,'ELEMENT_TABLE',_0x3bf3f7)),this['_setupColumnsRowsFixing'](),_0x24d96d['enableCommand']('insertTable'),_0x24d96d['enableCommand']('selectTableRow'),_0x24d96d['enableCommand']('selectTableColumn');for(const _0x513cdf of['insertTableRowAbove','insertTableRowBelow']){const _0x2e7ce0=_0x1228af['commands']['get'](_0x513cdf);_0x24d96d['enableCommand'](_0x513cdf,_0x575232=>{_0x1228af['model']['change'](_0x2f4cd9=>{_0x575232();const _0x5d76a9='above'===_0x2e7ce0['order'],_0x22da50=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x402771=_0x4e927d['getRowIndexes'](_0x22da50),_0x70cd7=_0x5d76a9?_0x402771['first']-0x1:_0x402771['last']+0x1,_0x547025=_0x22da50[0x0]['findAncestor']('table'),_0x29af56=_0x4e927d['createTableWalker'](_0x547025,{'startRow':_0x70cd7,'endRow':_0x70cd7}),_0x3447d2=Array['from'](_0x29af56)['map'](_0x1ceca4=>_0x2f4cd9['createRangeOn'](_0x1ceca4['cell']));_0x24d96d['markMultiRangeInsertion'](_0x3447d2,'tableRow');});});}for(const _0xf3a6ea of['insertTableColumnLeft','insertTableColumnRight']){const _0x13ac1a=_0x1228af['commands']['get'](_0xf3a6ea);_0x24d96d['enableCommand'](_0xf3a6ea,_0x559099=>{_0x1228af['model']['change'](_0x38d301=>{_0x559099();const _0x5731f6='left'===_0x13ac1a['order'],_0xc27429=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x15a270=_0x4e927d['getColumnIndexes'](_0xc27429),_0x53cecd=_0x5731f6?_0x15a270['first']-0x1:_0x15a270['last']+0x1,_0x10a6e8=_0xc27429[0x0]['findAncestor']('table'),_0x2d2468=_0x4e927d['createTableWalker'](_0x10a6e8,{'startRow':0x0,'column':_0x53cecd,'includeAllSlots':!0x1}),_0x42e36d=Array['from'](_0x2d2468)['map'](_0x40a60b=>_0x38d301['createRangeOn'](_0x40a60b['cell']));_0x24d96d['markMultiRangeInsertion'](_0x42e36d,'tableColumn');});});}for(const _0x1c128f of['removeTableRow','removeTableColumn']){const _0xa4db8f=_0x1c128f['substr'](0xb),_0x2764ad=_0xa4db8f['toLowerCase'](),_0x16dde0=_0x2764ad['substr'](0x0,0x3)+'span',_0x51f727='table'+_0xa4db8f,_0x26471d='min'+_0xa4db8f,_0x112335='max'+_0xa4db8f;_0x24d96d['enableCommand'](_0x1c128f,()=>{_0x1228af['model']['change'](_0x300902=>{const _0x1d5312=_0x4e927d['getSelectionAffectedTableCells'](_0x42dc1f),_0x4c4f42=_0x1d5312[0x0]['findAncestor']('table');let _0x727463;if('removeTableRow'==_0x1c128f){const _0x2c1c10=_0x4e927d['getRowIndexes'](_0x1d5312);_0x727463={'startRow':_0x2c1c10['first'],'endRow':_0x2c1c10['last'],'includeAllSlots':!0x0};}else{const _0x2d6ae4=_0x4e927d['getColumnIndexes'](_0x1d5312);_0x727463={'startColumn':_0x2d6ae4['first'],'endColumn':_0x2d6ae4['last'],'includeAllSlots':!0x0};}const _0x9470fa=_0x4e927d['createTableWalker'](_0x4c4f42,_0x727463),_0x2cbfdc=Array['from'](_0x9470fa)['map'](({cell:_0xe6a847})=>_0xe6a847),_0x611fcf=Ne(_0x2cbfdc['filter'](_0x3b7ccd=>_0x3b7ccd['hasAttribute'](_0x16dde0))),_0x20f582=Ne(_0x2cbfdc['filter'](_0x534902=>!_0x534902['hasAttribute'](_0x16dde0)))['map'](_0x13a044=>_0x300902['createRangeOn'](_0x13a044)),_0x53eebb=_0x24d96d['markMultiRangeDeletion'](_0x20f582,_0x51f727);if(_0x53eebb&&('tableRow'==_0x53eebb['subType']||'tableColumn'==_0x53eebb['subType'])){const _0x838172=this['_getSuggestionCoords'](_0x53eebb);for(const _0x588d36 of _0x611fcf){const _0x1cb359=_0x300902['createRangeOn'](_0x588d36),_0x3f88ad=_0x4e927d['getCellLocation'](_0x588d36),_0x2c3ed9=_0x588d36['getAttribute'](_0x16dde0)-0x1,_0x43a9ff=_0x838172[_0x26471d],_0x50e534=_0x838172[_0x112335];_0x43a9ff<=_0x3f88ad[_0x2764ad]&&_0x3f88ad[_0x2764ad]+_0x2c3ed9<=_0x50e534&&_0x53eebb['addRange'](_0x1cb359);}}});});}function _0x276831(_0x3f940a){const _0x503775=Array['from'](_0x42dc1f['getRanges']())['map'](_0x1ce72c=>_0x3561c8['fromRange'](_0x1ce72c));_0x1228af['model']['change'](_0x524b74=>{const _0x5bddd1=_0x524b74['batch'];_0x3f940a=_0x3f940a['filter'](_0x1081a1=>'$graveyard'!=_0x1081a1['root']['rootName']),_0x524b74['setSelection'](_0x3f940a),_0x1228af['commands']['get']('removeTableRow')['refresh'](),_0x1228af['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1228af['model']['enqueueChange'](()=>{_0x1228af['model']['enqueueChange'](_0x5bddd1,_0x5969e9=>{const _0x586040=_0x503775['filter'](_0x321911=>'$graveyard'!=_0x321911['root']['rootName']);_0x586040['length']>0x0&&_0x5969e9['setSelection'](_0x586040);for(const _0x1c0ecf of _0x503775)_0x1c0ecf['detach']();});});});}function _0xdeb36e(_0x48e97a){_0x1228af['model']['change'](_0x3a9241=>{const _0x46edb6=Array['from'](_0x42dc1f['getRanges']())['map'](_0x2a25b5=>_0x3561c8['fromRange'](_0x2a25b5)),_0x3c89ba=[];for(const _0x3bf1c7 of _0x48e97a)for(const _0x5e591f of _0x3bf1c7['getItems']({'shallow':!0x0}))_0x3c89ba['push'](_0x5e591f);for(const _0x1b8920 of _0x3c89ba)'$graveyard'!=_0x1b8920['root']['rootName']&&(_0x3a9241['setSelection'](_0x3a9241['createPositionAt'](_0x1b8920,0x0)),_0x1228af['commands']['get']('removeTableColumn')['refresh'](),_0x1228af['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ac13a=_0x46edb6['filter'](_0x50671c=>'$graveyard'!=_0x50671c['root']['rootName']);_0x5ac13a['length']>0x0&&_0x3a9241['setSelection'](_0x5ac13a);for(const _0x12a420 of _0x46edb6)_0x12a420['detach']();});}function _0x1167c6(_0x5d8b26,_0x3907c7){return _0x3907c7['every'](_0x545b8d=>_0x5d8b26['some'](_0x2c60f2=>_0x2c60f2['end']['isEqual'](_0x545b8d['start'])||_0x545b8d['end']['isEqual'](_0x2c60f2['start'])));}function _0x54a11b(_0x136df8,_0xe65fb9){return!_0x136df8['some'](_0xc5d70c=>_0xe65fb9['some'](_0x39013e=>_0xc5d70c['isIntersecting'](_0x39013e)))&&_0x136df8['some'](_0x4cb45a=>_0xe65fb9['some'](_0x2936de=>_0x4cb45a['end']['isTouching'](_0x2936de['start'])));}_0x1228af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x224bf0,_0x56a48a,_0x1ed12f)=>{if(!_0x1ed12f['options']['showSuggestionHighlights'])return;const _0x334d7f=_0x56a48a['item'];if(!_0x334d7f||!_0x334d7f['is']('element','tableCell'))return;const _0x35d06c=_0x1ed12f['mapper']['toViewElement'](_0x334d7f);if(_0x35d06c){const {id:_0x255df7,authorId:_0x77b443}=_0x24d96d['_splitMarkerName'](_0x56a48a['markerName']);_0xe7bb02(_0x35d06c,_0x1ed12f['writer'],(_0x4e4117,_0x2591ce,_0x3579a9)=>{_0x3579a9['addClass'](_0xad3d62(_0x2591ce['classes']),_0x4e4117),_0x3579a9['setAttribute']('data-suggestion-id',_0x255df7,_0x4e4117),_0x3579a9['setAttribute']('data-author-id',_0x77b443,_0x4e4117);},(_0x271265,_0x4b9f80,_0x5eaa55)=>{_0x5eaa55['removeClass'](_0xad3d62(_0x4b9f80['classes']),_0x271265),_0x5eaa55['removeAttribute']('data-suggestion-id',_0x271265),_0x5eaa55['removeAttribute']('data-author-id',_0x271265);});}},{'priority':'highest'}),_0x24d96d['descriptionFactory']['registerDescriptionCallback'](_0x436894=>{if('insertion'!=_0x436894['type']&&'deletion'!=_0x436894['type'])return;const _0xf0fe48=_0x436894['getContainedElement']();if(null!=_0xf0fe48&&_0xf0fe48['is']('element','table')){if('insertion'==_0x436894['type']){const _0x2b4ece=_0x436894['getItems']()['filter'](_0x118865=>_0x118865['is']('$textProxy'))['map'](_0x1e9f42=>_0x1e9f42['data']);if(_0x2b4ece['length'])return{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b4ece['join']('\x20')+'\x22'))};}if('deletion'==_0x436894['type']){const _0x350dd0=_0x436894['getItems']()['filter'](_0x4b5d86=>_0x4b5d86['is']('$textProxy'))['map'](_0x30e200=>_0x30e200['data']);if(_0x350dd0['length'])return{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x350dd0['join']('\x20')+'\x22'))};}}}),_0x24d96d['descriptionFactory']['registerDescriptionCallback'](_0x5981a0=>{if('tableRow'==_0x5981a0['subType']){const _0x5d440d=_0x5981a0['getItems']()['filter'](_0x39560e=>_0x39560e['is']('$textProxy'))['map'](_0x38ca29=>_0x38ca29['data']),_0x19fc19=this['_getSuggestionCoords'](_0x5981a0),_0x13a0b6=_0x19fc19['maxRow']-_0x19fc19['minRow']+0x1;if('insertion'==_0x5981a0['type'])return _0x5d440d['length']?{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13a0b6,'\x22'+_0x5d440d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW',_0x13a0b6))};if('deletion'==_0x5981a0['type'])return _0x5d440d['length']?{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x13a0b6,'\x22'+_0x5d440d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_ROW',_0x13a0b6))};}if('tableColumn'==_0x5981a0['subType']){const _0x544135=_0x5981a0['getItems']()['filter'](_0x2ad5de=>_0x2ad5de['is']('$textProxy'))['map'](_0x30a0bd=>_0x30a0bd['data']),_0x5e68bb=this['_getSuggestionCoords'](_0x5981a0),_0x371eea=_0x5e68bb['maxColumn']-_0x5e68bb['minColumn']+0x1;if('insertion'==_0x5981a0['type'])return _0x544135['length']?{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371eea,'\x22'+_0x544135['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x277693,'*Insert:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN',_0x371eea))};if('deletion'==_0x5981a0['type'])return _0x544135['length']?{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371eea,'\x22'+_0x544135['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x277693,'*Remove:*\x20%0',o(_0x277693,'ELEMENT_TABLE_COLUMN',_0x371eea))};}}),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x276831),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x276831),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xdeb36e),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xdeb36e),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1167c6),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1167c6),_0x24d96d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x54a11b),_0x24d96d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x54a11b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ea3df=this['editor'],_0x1c1da4=_0x1ea3df['model']['document']['selection'];return(_0x12102e,_0x156c02)=>{_0x1ea3df['model']['change'](_0x2b512e=>{const {commandName:_0x94f0d,commandParams:_0x2c6e65}=_0x156c02;let _0x312d76=_0x12102e[0x0]['end']['nodeBefore'];_0x2c6e65&&_0x2c6e65[0x0]&&!0x1===_0x2c6e65[0x0]['forceValue']&&(_0x312d76=_0x12102e[0x0]['start']['nodeAfter']);const _0x178608=_0x2b512e['createRangeIn'](_0x312d76);if('$graveyard'==_0x178608['root']['rootName'])return;const _0x2cc4dd=Array['from'](_0x1c1da4['getRanges']())['map'](_0x45b62a=>_0x3561c8['fromRange'](_0x45b62a));_0x2b512e['setSelection'](_0x178608),_0x1ea3df['commands']['get'](_0x94f0d)['refresh'](),_0x2c6e65['push']({'forceDefaultExecution':!0x0}),_0x1ea3df['execute'](_0x94f0d,..._0x2c6e65);const _0x3f69cc=_0x2cc4dd['filter'](_0x306afa=>'$graveyard'!=_0x306afa['root']['rootName']);_0x3f69cc['length']>0x0&&_0x2b512e['setSelection'](_0x3f69cc);for(const _0x3a8621 of _0x2cc4dd)_0x3a8621['detach']();});};}['_getCoordsForCells'](_0x5012cb){const _0x4fc178=this['editor']['plugins']['get']('TableUtils');let _0x4df15c=Number['MAX_SAFE_INTEGER'],_0x5c909a=Number['MIN_SAFE_INTEGER'],_0x24eb22=Number['MAX_SAFE_INTEGER'],_0x11318b=Number['MIN_SAFE_INTEGER'];for(const _0xb5aaa7 of _0x5012cb){if('$graveyard'==_0xb5aaa7['root']['rootName'])continue;const {row:_0x15c21e,column:_0xf9eedd}=_0x4fc178['getCellLocation'](_0xb5aaa7),_0x1fbd4c=_0xb5aaa7['hasAttribute']('rowspan')?_0xb5aaa7['getAttribute']('rowspan')-0x1:0x0,_0x40281=_0xb5aaa7['hasAttribute']('colspan')?_0xb5aaa7['getAttribute']('colspan')-0x1:0x0;_0x4df15c=_0x15c21e<_0x4df15c?_0x15c21e:_0x4df15c,_0x5c909a=_0x15c21e+_0x1fbd4c>_0x5c909a?_0x15c21e+_0x1fbd4c:_0x5c909a,_0x24eb22=_0xf9eedd<_0x24eb22?_0xf9eedd:_0x24eb22,_0x11318b=_0xf9eedd+_0x40281>_0x11318b?_0xf9eedd+_0x40281:_0x11318b;}return{'minRow':_0x4df15c,'maxRow':_0x5c909a,'minColumn':_0x24eb22,'maxColumn':_0x11318b};}['_setupColumnsRowsFixing'](){const _0x846e8b=this['editor'],_0x2f0b2a=_0x846e8b['plugins']['get']('TrackChangesEditing'),_0x4d8b11=_0x846e8b['plugins']['get']('TableUtils');_0x846e8b['model']['document']['on']('change:data',()=>{const _0x2286f1=Array['from'](_0x846e8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1744a1,data:_0x1a776e}of _0x2286f1){const {group:_0x2d73e1,id:_0x3d6e88,subType:_0x5e4977}=_0x2f0b2a['_splitMarkerName'](_0x1744a1);if('suggestion'!=_0x2d73e1)continue;if(null!=_0x1a776e['oldRange'])continue;const _0x19fd86=_0x2f0b2a['getSuggestion'](_0x3d6e88);this['_tablePostFixingSubtypes']['includes'](_0x5e4977)&&this['_tableSuggestions']['add'](_0x19fd86);}},{'priority':'low'});const _0x1523d5=(_0x3d9bf3,_0x3533f1)=>{let _0x2e0d63=!0x1;const _0x27e466=_0x3533f1['createRangeOn'](_0x3d9bf3),_0x1b6182=_0x3d9bf3['findAncestor']('table'),_0x110413=_0x4d8b11['getCellLocation'](_0x3d9bf3);for(const _0x5410a3 of this['_tableSuggestions']){const _0x118cdf=_0x5410a3['subType'],_0xa8f918=_0x118cdf['startsWith']('tablePaste'),_0x45fc20=_0x118cdf['substr'](_0xa8f918?0xa:0x5),_0x4a502d=_0x45fc20['toLowerCase'](),_0x5065e9=_0x4a502d['substr'](0x0,0x3)+'span',_0x4058eb='min'+_0x45fc20,_0x240f38='max'+_0x45fc20;if(!_0x5410a3['isInContent'])continue;if(_0x1b6182!=_0x5410a3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5410a3['isIntersectingWithRange'](_0x27e466))continue;const _0xb0b282=_0x3d9bf3['hasAttribute'](_0x5065e9)?_0x3d9bf3['getAttribute'](_0x5065e9)-0x1:0x0,_0x3e5327=this['_getSuggestionCoords'](_0x5410a3),_0x3a17f4=_0x3e5327[_0x4058eb],_0x3e84f9=_0x3e5327[_0x240f38];_0x3a17f4<=_0x110413[_0x4a502d]&&_0x110413[_0x4a502d]+_0xb0b282<=_0x3e84f9&&(_0x5410a3['addRange'](_0x27e466),_0x2e0d63=!0x0);}return _0x2e0d63;};_0x846e8b['model']['document']['registerPostFixer'](_0x277ca9=>{let _0x5ec65a=!0x1;for(const _0x3dee15 of _0x846e8b['model']['document']['differ']['getChanges']())if('insert'==_0x3dee15['type']){if('tableRow'==_0x3dee15['name']){for(const _0x2bc78b of _0x3dee15['position']['nodeAfter']['getChildren']())_0x5ec65a=_0x5ec65a||_0x1523d5(_0x2bc78b,_0x277ca9);}else'tableCell'==_0x3dee15['name']&&(_0x5ec65a=_0x5ec65a||_0x1523d5(_0x3dee15['position']['nodeAfter'],_0x277ca9));}return _0x5ec65a;});}['_getSuggestionCoords'](_0x832caf){return this['_getCoordsForCells'](_0x832caf['getRanges']()['map'](_0x1b6717=>_0x1b6717['start']['nodeAfter']));}}function Ne(_0x17c2d3){return Array['from'](new Set(_0x17c2d3)['values']());}class _t extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x5621a3=this['editor'],_0x579060=_0x5621a3['model']['document']['selection'],_0x12283b=_0x5621a3['locale'];if(!_0x5621a3['plugins']['has']('TableEditing'))return;const _0x3dac7a=_0x5621a3['plugins']['get']('TrackChangesEditing'),_0x5ac7cb=_0x5621a3['plugins']['get']('TableUtils'),_0x28c3a2=_0x5621a3['plugins']['get'](At);_0x28c3a2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3dac7a['enableCommand']('mergeTableCells',()=>{const _0x5b6a13=_0x5ac7cb['getSelectionAffectedTableCells'](_0x5621a3['model']['document']['selection']);_0x5621a3['model']['change'](()=>{_0x3dac7a['markMultiRangeBlockFormat'](_0x5b6a13,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5621a3['commands']['get']('mergeTableCells')['on']('execute',(_0xa9a069,_0x1f92b7)=>{_0x5621a3['commands']['get']('trackChanges')['value']&&(_0x1f92b7['length']>0x0&&_0x1f92b7[_0x1f92b7['length']-0x1]&&_0x1f92b7[_0x1f92b7['length']-0x1]['forceDefaultExecution']||_0x3dac7a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa9a069['stop']());},{'priority':'highest'});for(const _0x14796a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x549673=_0x5621a3['commands']['get'](_0x14796a);_0x3dac7a['enableCommand'](_0x14796a,()=>{const _0x355463=_0x5621a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x545211=>_0x545211['is']('element','tableCell')),_0x2338bb=_0x549673['value'];_0x5621a3['model']['change'](()=>{_0x3dac7a['markMultiRangeBlockFormat']([_0x355463,_0x2338bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a0f37 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31808c=_0x5621a3['commands']['get'](_0x5a0f37);_0x3dac7a['enableCommand'](_0x5a0f37,()=>{const _0xaea77c=_0x5ac7cb['getSelectionAffectedTableCells'](_0x5621a3['model']['document']['selection'])[0x0],_0x13d228=_0xaea77c['findAncestor']('table'),{column:_0x6f5599,row:_0x2b4222}=_0x5ac7cb['getCellLocation'](_0xaea77c);let _0x3aa9e3=[];if('horizontally'==_0x31808c['direction']){const _0x1ef062=_0x5ac7cb['createTableWalker'](_0x13d228,{'startRow':_0x2b4222,'endRow':_0x2b4222,'includeAllSlots':!0x0});_0x3aa9e3=Array['from'](_0x1ef062)['map'](_0x2919e7=>_0x2919e7['cell']);}else{const _0x4086a0=_0x5ac7cb['createTableWalker'](_0x13d228,{'column':_0x6f5599,'includeAllSlots':!0x0});_0x3aa9e3=Array['from'](_0x4086a0)['map'](_0x39281a=>_0x39281a['cell']);}_0x5621a3['model']['change'](_0x56fda1=>{_0x3dac7a['markBlockFormat'](_0x56fda1['createRangeOn'](_0xaea77c),{'commandName':_0x5a0f37,'commandParams':[]},_0x3aa9e3,_0x5a0f37);});});}_0x3dac7a['descriptionFactory']['registerDescriptionCallback'](_0x5036ac=>{if('formatBlock'!=_0x5036ac['type']&&'formatInline'!=_0x5036ac['type'])return;const {data:_0x178963}=_0x5036ac;return _0x178963&&'mergeTableCells'==_0x178963['commandName']?{'type':'format','content':o(_0x12283b,'*Merge\x20cells*')}:void 0x0;}),_0x3dac7a['descriptionFactory']['registerDescriptionCallback'](_0x3d175c=>{if('formatBlock'!=_0x3d175c['type']&&'formatInline'!=_0x3d175c['type'])return;const {data:_0x31a7f0}=_0x3d175c;return _0x31a7f0?'splitTableCellVertically'==_0x31a7f0['commandName']?{'type':'format','content':o(_0x12283b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x31a7f0['commandName']?{'type':'format','content':o(_0x12283b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3d4e6a=_0x28c3a2['_acceptFormatSuggestionCallbackFactory']();for(const _0x6c58ba of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6c58ba,'accept',_0x3d4e6a);for(const _0x2f275c of['splitTableCellVertically','splitTableCellHorizontally'])_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f275c,'accept',_0x3d4e6a);_0x3dac7a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x31416c=>{_0x5621a3['model']['change'](_0x5f4723=>{const _0x3dc7c0=Array['from'](_0x579060['getRanges']())['map'](_0x1e55f6=>_0x3561c8['fromRange'](_0x1e55f6));_0x5f4723['setSelection'](_0x31416c),_0x5621a3['commands']['get']('mergeTableCells')['refresh'](),_0x5621a3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c7b5c=_0x3dc7c0['filter'](_0x35ea59=>'$graveyard'!=_0x35ea59['root']['rootName']);_0x1c7b5c['length']>0x0&&_0x5f4723['setSelection'](_0x1c7b5c);for(const _0x57bd92 of _0x3dc7c0)_0x57bd92['detach']();});});for(const _0x515976 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5c15da=_0x5621a3['commands']['get'](_0x515976);_0x5c15da['on']('set:isEnabled',(_0x2e7541,_0x58b995,_0x54d5ee)=>{if(_0x54d5ee){const _0x30d2e3=_0x5621a3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d73eb=>_0x2d73eb['is']('element','tableCell'));this['_areMergableCells'](_0x5c15da['value'],_0x30d2e3)||(_0x2e7541['return']=!0x1,_0x2e7541['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a0311=this['editor']['commands']['get']('mergeTableCells'),_0x214b64=this['editor']['plugins']['get']('TableUtils');if(!_0x4a0311['isEnabled'])return!0x1;const _0x4115d7=_0x214b64['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5c0464 of _0x4115d7)for(const _0x48c977 of _0x4115d7)if(_0x5c0464!=_0x48c977&&!this['_areMergableCells'](_0x5c0464,_0x48c977))return!0x1;return!0x0;}['_areMergableCells'](_0x2167d3,_0x475d4d){const _0x511e34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50c972=this['editor']['model']['createRangeOn'](_0x2167d3),_0x2f16c8=this['editor']['model']['createRangeOn'](_0x475d4d),_0x36ff5c=new Set(),_0x3f55a3=new Set();for(const _0x36cffb of _0x511e34['getSuggestions']())if(('insertion'==_0x36cffb['type']||'deletion'==_0x36cffb['type']||'mergeTableCells'==_0x36cffb['subType'])&&_0x36cffb['isInContent']){for(const _0xbe03bc of _0x36cffb['getRanges']())_0xbe03bc['containsRange'](_0x50c972,!0x0)&&_0x36ff5c['add'](_0x36cffb['type']+':'+_0x36cffb['author']['id']),_0xbe03bc['containsRange'](_0x2f16c8,!0x0)&&_0x3f55a3['add'](_0x36cffb['type']+':'+_0x36cffb['author']['id']);}if(_0x36ff5c['size']!=_0x3f55a3['size'])return!0x1;for(const _0x373459 of _0x36ff5c)if(!_0x3f55a3['has'](_0x373459))return!0x1;return!0x0;}}class Ct extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x3bb529=this['editor'];if(!_0x3bb529['plugins']['has']('TableEditing'))return;const _0x125688=_0x3bb529['locale'],_0x1e4820=_0x3bb529['plugins']['get']('TrackChangesEditing');_0x1e4820['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1e4820['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1e4820['registerBlockAttribute']('headingRows'),_0x1e4820['registerBlockAttribute']('headingColumns'),_0x1e4820['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x125688,'FORMAT_HEADER_ROW')),_0x1e4820['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x125688,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b986d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ff8a0=this['editor']['plugins']['get']('TableUtils'),_0x138cfd=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x16867c({showActiveMarker:_0x1add2e=!0x0,setDataAttribute:_0x2d6014=!0x0}={}){return(_0x3bebf7,_0x5069b7,_0x176445)=>{const {type:_0x54a3f9,id:_0x5576a8}=_0x2b986d['_splitMarkerName'](_0x5069b7['markerName']),_0x41b5dd=_0x2b986d['getSuggestion'](_0x5576a8),_0xffce72=_0x41b5dd['data'];if('formatBlock'!=_0x41b5dd['type']||!_0xffce72||'setTableColumnHeader'!=_0xffce72['commandName'])return;if(_0x5069b7['item'])return void _0x3bebf7['stop']();if(!_0x176445['consumable']['consume'](_0x5069b7['markerRange'],_0x3bebf7['name']))return;const _0x1be030=_0x5069b7['markerRange']['start']['nodeAfter'],_0x5a187b=_0x5069b7['markerRange']['end']['nodeBefore'],_0x585d20=_0x1be030['parent']['parent'],{column:_0x253f93}=_0x4ff8a0['getCellLocation'](_0x1be030),{column:_0xda3448}=_0x4ff8a0['getCellLocation'](_0x5a187b);for(let _0x4b976b=_0x253f93;_0x4b976b<=_0xda3448;_0x4b976b++){const _0x3db148=_0x4ff8a0['createTableWalker'](_0x585d20,{'column':_0x4b976b,'includeAllSlots':!0x1});for(const _0x3c055f of _0x3db148){const _0x401f81=_0x3c055f['cell'],_0xad70b7=_0x176445['mapper']['toViewElement'](_0x401f81);_0x176445['writer']['addClass']('ck-suggestion-marker-'+_0x54a3f9,_0xad70b7),_0x2d6014&&_0x176445['writer']['setAttribute']('data-suggestion',_0x5576a8,_0xad70b7),_0x176445['mapper']['bindElementToMarker'](_0xad70b7,_0x5069b7['markerName']),_0x1add2e&&(_0x2b986d['activeMarkers']['includes'](_0x5069b7['markerName'])?_0x176445['writer']['addClass']('ck-suggestion-marker--active',_0xad70b7):_0x176445['writer']['removeClass']('ck-suggestion-marker--active',_0xad70b7));}}};}_0x2b986d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x138cfd),_0x2b986d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x138cfd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x16867c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a13fa,_0x5b3641,_0x1bc6c4)=>{_0x1bc6c4['options']['showSuggestionHighlights']&&_0x16867c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a13fa,_0x5b3641,_0x1bc6c4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x287457,_0x134103,_0x22b289)=>{const {type:_0x1b621f,id:_0x5a2d87}=_0x2b986d['_splitMarkerName'](_0x134103['markerName']),_0xb1c091=_0x2b986d['getSuggestion'](_0x5a2d87),_0x447e0c=_0xb1c091['data'];if('formatBlock'!=_0xb1c091['type']||!_0x447e0c||'setTableColumnHeader'!=_0x447e0c['commandName'])return;const _0x26de05=_0x22b289['mapper']['markerNameToElements'](_0x134103['markerName']);if(_0x26de05){for(const _0x169082 of _0x26de05)_0x22b289['writer']['removeClass']('ck-suggestion-marker-'+_0x1b621f,_0x169082),_0x22b289['writer']['removeClass']('ck-suggestion-marker--active',_0x169082),_0x22b289['writer']['removeAttribute']('data-suggestion',_0x169082),_0x22b289['mapper']['unbindElementFromMarkerName'](_0x169082,_0x134103['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28ed0b=this['editor'],_0x4fb4d8=_0x28ed0b['locale'];function _0x511d16(_0x21117b){return{'type':'format','content':o(_0x4fb4d8,'*Format:*\x20%0',_0x21117b)};}_0x28ed0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ece7=>{if('formatBlock'!=_0x11ece7['type'])return;const {data:_0x1e9a2b}=_0x11ece7;if(_0x1e9a2b){if('setTableRowHeader'==_0x1e9a2b['commandName']){const _0x43ba20=_0x1e9a2b['commandParams'][0x0]['forceValue'];return _0x511d16(o(_0x4fb4d8,_0x43ba20?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1e9a2b['commandName']){const _0x33483b=_0x1e9a2b['commandParams'][0x0]['forceValue'];return _0x511d16(o(_0x4fb4d8,_0x33483b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x27a926{['afterInit'](){const _0x45c721=this['editor'],_0x563201=_0x45c721['locale'],_0x2c8509=_0x45c721['plugins']['get']('TrackChangesEditing');function _0x3e4ee2(_0x144a28){return{'type':'format','content':''+o(_0x563201,'*Set\x20table\x20type:*\x20%0',_0x144a28)};}_0x45c721['plugins']['has']('TableLayout')&&(_0x2c8509['enableCommand']('insertTableLayout'),_0x2c8509['enableDefaultAttributesIntegration']('tableType'),_0x2c8509['registerBlockAttribute']('tableType'),_0x2c8509['descriptionFactory']['registerElementLabel'](_0x4fc255=>_0x4fc255['is']('element','table')&&'layout'===_0x4fc255['getAttribute']('tableType'),_0x6f8ea0=>o(_0x563201,'ELEMENT_LAYOUT_TABLE',_0x6f8ea0)),_0x2c8509['descriptionFactory']['registerDescriptionCallback'](_0x1aaec5=>{const {data:_0x5247d2}=_0x1aaec5;if(_0x5247d2&&'tableType'==_0x5247d2['key'])switch(_0x5247d2['newValue']){case'layout':return _0x3e4ee2(o(_0x563201,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3e4ee2(o(_0x563201,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x4484c3=>[_0x4484c3,null]));class Nt extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x5b3ce3=this['editor'];if(!_0x5b3ce3['plugins']['has']('TableClipboard'))return;const _0x394baf=_0x5b3ce3['plugins']['get']('TrackChangesEditing'),_0x56a324=_0x5b3ce3['plugins']['get']('TableUtils'),_0x2ece4b=_0x5b3ce3['plugins']['get'](At),_0x3ef65a=_0x5b3ce3['plugins']['get']('TableClipboard'),_0x5da144=_0x5b3ce3['plugins']['get']('TableSelection'),_0x3dee73=_0x5b3ce3['plugins']['get'](_0x1ff713);_0x2ece4b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b3ce3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b3ce3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3e0051=null,_0x53f74e=!0x1;_0x3dee73['on']('contentInsertion',(_0x2bb244,_0x41e285)=>{_0x53f74e='paste'===_0x41e285['method'];}),_0x5b3ce3['model']['on']('insertContent',(_0x48399c,_0x1c20bf)=>{if(!_0x53f74e&&null===_0x5da144['getSelectedTableCells']())return;const [_0x3c9db6,_0x4cbf39]=_0x1c20bf,_0x2dbb38=_0x1c20bf[_0x1c20bf['length']-0x1];_0x2dbb38&&_0x2dbb38['forceDefaultExecution']||_0x394baf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x443241,_0x3ca675,_0x58a0d8,_0x41c261,_0x1a3720){if(_0x3ca675&&!_0x3ca675['is']('documentSelection'))return!0x1;const _0x48992b=_0x1a3720['getTableIfOnlyTableInContent'](_0x443241,_0x58a0d8);if(!_0x48992b||!Ue(_0x48992b,void 0x0,_0x41c261))return!0x1;const _0xd417aa=_0x41c261['getSelectionAffectedTableCells'](_0x58a0d8['document']['selection']);if(!_0xd417aa['length'])return!0x1;const _0x317b85=_0xd417aa[0x0]['findAncestor']('table'),_0xbafd29=_0x41c261['getRowIndexes'](_0xd417aa),_0x39c904=_0x41c261['getColumnIndexes'](_0xd417aa),_0x4d2a41={'startRow':_0xbafd29['first'],'endRow':_0xbafd29['last'],'startColumn':_0x39c904['first'],'endColumn':_0x39c904['last']};return 0x1==_0xd417aa['length']&&(_0x4d2a41['endRow']+=_0x41c261['getRows'](_0x48992b)-0x1,_0x4d2a41['endColumn']+=_0x41c261['getColumns'](_0x48992b)-0x1),Ue(_0x317b85,_0x4d2a41,_0x41c261);}(_0x3c9db6,_0x4cbf39,_0x5b3ce3['model'],_0x56a324,_0x3ef65a)&&(_0x48399c['stop'](),_0x3e0051={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b3ce3['model']['change'](()=>{_0x5b3ce3['model']['insertContent'](_0x1c20bf[0x0],_0x1c20bf[0x1],_0x1c20bf[0x2],{'forceDefaultExecution':!0x0});const _0x3cd8a1=_0x5bc718(),{rowInsertionRanges:_0x2dc5aa,columnInsertionRanges:_0x1cee5f,insertionRanges:_0x1f8c2d,deletionRanges:_0x2dba34,cells:_0x5e6a43}=_0x3e0051;_0x2dc5aa['length']&&_0x394baf['markMultiRangeInsertion'](_0x2dc5aa,'tablePasteRow',{'tablePasteChainId':_0x3cd8a1}),_0x1cee5f['length']&&_0x394baf['markMultiRangeInsertion'](_0x1cee5f,'tablePasteColumn',{'tablePasteChainId':_0x3cd8a1}),_0x1f8c2d['length']&&(_0x394baf['markMultiRangeInsertion'](_0x1f8c2d,'tablePaste',{'tablePasteChainId':_0x3cd8a1,'skipNestingCheck':!0x0}),_0x1f8c2d['forEach'](_0x1a158b=>_0x1a158b['detach']?.())),_0x2dba34['length']&&(_0x394baf['markMultiRangeDeletion'](_0x2dba34,'tablePaste',{'tablePasteChainId':_0x3cd8a1,'skipNestingCheck':!0x0}),_0x2dba34['forEach'](_0x39d64d=>_0x39d64d['detach']?.()));const _0x456abc=_0x394baf['markMultiRangeBlockFormat'](_0x5e6a43['map'](({element:_0x1ea966})=>_0x1ea966),{'formatGroupId':_0x5bc718()},[],'tablePasteCell',{'tablePasteChainId':_0x3cd8a1});if(_0x456abc){const _0x5793f3=_0x456abc['getMarkers'](),_0x26326f=[];for(const {element:_0x23da42,attributes:_0x562dfc}of _0x5e6a43){if(!_0x562dfc)continue;const _0x59d41e=_0x5b3ce3['model']['createRangeOn'](_0x23da42),_0x41e839=_0x5793f3['find'](_0x41c360=>_0x41c360['getRange']()['isEqual'](_0x59d41e));_0x41e839&&_0x26326f['push']([_0x41e839['name'],_0x562dfc]);}_0x26326f['length']&&_0x456abc['setAttribute']('markerAttributes',Object['fromEntries'](_0x26326f));}_0x3e0051=null;}));},{'priority':_0x40c02c['high']+0xa}),_0x3dee73['on']('contentInsertion',()=>{_0x53f74e=!0x1;},{'priority':'lowest'}),_0x5b3ce3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x65655c,_0x16dbf4)=>{const [_0x47f531,_0x201318,,_0x1b38a1]=_0x16dbf4;if(!_0x3e0051)return;_0x65655c['stop']();const _0x37a7c2=_0x47f531['cell'],_0x3df770=_0x201318,_0x512ac2=Oe(_0x37a7c2),_0x587ed8=Oe(_0x3df770);_0x65655c['return']=_0x37a7c2;let _0x405b38=null,_0x589d45=null;if(_0x587ed8||_0x512ac2){if(_0x512ac2&&!_0x587ed8){_0x1b38a1['remove'](_0x37a7c2['getChild'](0x0));for(const _0x54981f of Array['from'](_0x3df770['getChildren']()))_0x1b38a1['insert'](_0x54981f,_0x37a7c2,'end');const _0x247852=_0x3e0051['rowInsertionIndexes']['includes'](_0x47f531['row']),_0x2bb8a4=_0x3e0051['columnInsertionIndexes']['includes'](_0x47f531['column']);_0x247852||_0x2bb8a4||(_0x405b38=_0x3561c8['fromRange'](_0x1b38a1['createRangeIn'](_0x37a7c2)));}else _0x587ed8&&!_0x512ac2&&(_0x589d45=_0x1b38a1['createRangeIn'](_0x37a7c2));}else{const _0x2c3d37=_0x1b38a1['createElement']('tableCellSuggestion'),_0x27d58f=_0x1b38a1['createElement']('tableCellSuggestion');_0x1b38a1['wrap'](_0x1b38a1['createRangeIn'](_0x37a7c2),_0x27d58f),_0x1b38a1['insert'](_0x2c3d37,_0x37a7c2,0x0);for(const _0x317767 of Array['from'](_0x3df770['getChildren']()))_0x1b38a1['insert'](_0x317767,_0x2c3d37,'end');_0x405b38=_0x3561c8['fromRange'](_0x1b38a1['createRangeOn'](_0x2c3d37)),_0x589d45=_0x3561c8['fromRange'](_0x1b38a1['createRangeOn'](_0x27d58f));}const _0x13e8ba=Array['from'](_0x3df770['getAttributes']())['filter'](([_0x2cd26a])=>Be['includes'](_0x2cd26a));_0x3e0051['cells']['push']({'element':_0x37a7c2,'attributes':_0x13e8ba['length']?Object['fromEntries'](_0x13e8ba):null}),_0x405b38&&_0x3e0051['insertionRanges']['push'](_0x405b38),_0x589d45&&_0x3e0051['deletionRanges']['push'](_0x589d45);},{'priority':'high'}),_0x56a324['on']('insertColumns',(_0x590e87,_0x3b8d4e)=>{const [_0x3c94da,_0x3d84ac={}]=_0x3b8d4e;if(!_0x3e0051)return;const _0x231785=_0x3d84ac['at']||0x0,_0x60c0ba=_0x3d84ac['columns']||0x1;_0x3e0051['columnInsertionIndexes']=new Array(_0x60c0ba)['fill'](_0x231785)['map']((_0x12a156,_0x556359)=>_0x12a156+_0x556359);for(const {cell:_0x42115a}of _0x56a324['createTableWalker'](_0x3c94da,{'startColumn':_0x231785,'endColumn':_0x231785+_0x60c0ba-0x1}))_0x3e0051['columnInsertionRanges']['push'](_0x5b3ce3['model']['createRangeOn'](_0x42115a));},{'priority':'low'}),_0x56a324['on']('insertRows',(_0x5ddbb8,_0x493b9b)=>{const [_0x1ae6fc,_0x42c4b4={}]=_0x493b9b;if(!_0x3e0051)return;const _0x256ead=_0x42c4b4['at']||0x0,_0x167f29=_0x42c4b4['rows']||0x1;_0x3e0051['rowInsertionIndexes']=new Array(_0x167f29)['fill'](_0x256ead)['map']((_0x36f7a2,_0x579ee8)=>_0x36f7a2+_0x579ee8);for(const {cell:_0x4a6825}of _0x56a324['createTableWalker'](_0x1ae6fc,{'startRow':_0x256ead,'endRow':_0x256ead+_0x167f29-0x1}))_0x3e0051['rowInsertionRanges']['push'](_0x5b3ce3['model']['createRangeOn'](_0x4a6825));},{'priority':'low'}),_0x394baf['descriptionFactory']['registerDescriptionCallback'](_0xf0d724=>{if(_0xf0d724['subType']&&_0xf0d724['subType']['startsWith']('tablePaste'))return _0xf0d724['previous']?{}:{'type':'insertion','content':o(_0x5b3ce3['locale'],'*Replace\x20table\x20cells*')};});const _0x28d18d=()=>!0x1;for(const _0x2e04f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion',_0x2e04f2,'join',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('deletion',_0x2e04f2,'join',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e04f2,'join',_0x28d18d);_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x28d18d),_0x394baf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1c22c6,_0x57063c,_0x36fdcd)=>{const _0x30fbc=_0x1c22c6['map'](_0x2eb1da=>_0x2eb1da['getContainedElement']())['filter'](_0x124a76=>_0x124a76),_0x3bf724=new Map(_0x30fbc['map'](_0x208430=>[_0x208430,null]));if(_0x3e0051){for(const {element:_0x1117c3,attributes:_0x5cd870}of _0x3e0051['cells'])_0x5cd870&&_0x3bf724['set'](_0x1117c3,_0x5cd870);}else{if(_0x36fdcd&&_0x36fdcd['markerAttributes'])for(const [_0x404610,_0x3b1e32]of Object['entries'](_0x36fdcd['markerAttributes'])){const _0x5c663c=_0x5b3ce3['model']['markers']['get'](_0x404610),_0x3c7098=_0x5c663c?_0x5c663c['getRange']()['getContainedElement']():null;_0x3c7098&&_0x3bf724['set'](_0x3c7098,_0x3b1e32);}}_0x5b3ce3['model']['change'](_0x3ea3f2=>{for(const [_0x2fad8f,_0x354e0e]of _0x3bf724)_0x3ea3f2['setAttributes']({...xe,..._0x354e0e},_0x2fad8f);});});const _0x2c378f=(_0x5b742a,_0x507f08)=>{_0x394baf['_suggestionFactory']['registerCustomCallback'](_0x5b742a,'tablePaste',_0x507f08,(_0x10367a,_0x22f866,_0x56885c)=>{_0x5b3ce3['model']['change'](_0x4055dc=>{const _0x13abba=[];for(const _0x34a266 of _0x10367a){const _0x53df32=_0x34a266['start']['nodeAfter'];_0x53df32['is']('element','tableCellSuggestion')&&_0x13abba['push'](_0x53df32);}_0x394baf['_suggestionFactory']['getSuggestionCallback'](_0x5b742a,null,_0x507f08)(_0x10367a,_0x22f866,_0x56885c);for(const _0x4021c2 of _0x13abba)'$graveyard'!=_0x4021c2['root']['rootName']&&_0x4055dc['unwrap'](_0x4021c2);});});};_0x2c378f('insertion','accept'),_0x2c378f('insertion','discard'),_0x2c378f('deletion','accept'),_0x2c378f('deletion','discard'),_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xaf88bd=>{const _0x544718=_0xaf88bd['map'](_0x271f3e=>_0x271f3e['getContainedElement']()),_0x3f963f=_0x544718[0x0]['findAncestor']('table'),{minRow:_0x398d54,maxRow:_0x56b2da}=_0x2ece4b['_getCoordsForCells'](_0x544718);_0x56a324['removeRows'](_0x3f963f,{'at':_0x398d54,'rows':_0x56b2da-_0x398d54+0x1});}),_0x394baf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1db21a=>{const _0x2a4e42=_0x1db21a['map'](_0x3cee12=>_0x3cee12['getContainedElement']()),_0x340191=_0x2a4e42[0x0]['findAncestor']('table'),{minColumn:_0x55e150,maxColumn:_0x490d5a}=_0x2ece4b['_getCoordsForCells'](_0x2a4e42);_0x56a324['removeColumns'](_0x340191,{'at':_0x55e150,'columns':_0x490d5a-_0x55e150+0x1});});const _0x427dd8=(_0x4c1047,_0x2cf254)=>{if(!_0x2cf254['subType']||!_0x2cf254['subType']['startsWith']('tablePaste'))return;const _0x16cd26=_0x2cf254['attributes']['tablePasteChainId'],_0x429658=_0x394baf['getSuggestions']()['filter'](_0x2cc313=>_0x2cc313['isInContent']&&_0x2cc313['attributes']&&_0x2cc313['attributes']['tablePasteChainId']==_0x16cd26);_0x429658['length']&&_0x2cf254['getAllAdjacentSuggestions']()['length']!=_0x429658['length']&&_0x429658['reduce']((_0xd002ef,_0x1bd9f8)=>(_0xd002ef['next']=_0x1bd9f8,_0x1bd9f8['previous']=_0xd002ef,_0x1bd9f8));};function _0x55265f(_0x300251,_0x1aff23=!0x0){const {id:_0x2214c0,authorId:_0x4233a5}=_0x394baf['_splitMarkerName'](_0x300251['markerName']),_0x17c1df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x586ae6=_0x394baf['activeMarkers']['includes'](_0x300251['markerName']);return _0x586ae6&&_0x17c1df['push']('ck-suggestion-marker--active'),{'classes':_0x17c1df,'attributes':{'data-suggestion':_0x2214c0,'data-author-id':_0x4233a5},'priority':_0x586ae6&&_0x1aff23?0xbc2:0xbb8};}_0x394baf['on']('suggestionLoaded',_0x427dd8,{'priority':'high'}),_0x394baf['on']('suggestionUnloaded',_0x427dd8,{'priority':'high'}),_0x5b3ce3['model']['document']['registerPostFixer'](()=>{let _0x147f00=!0x1;const _0x58c75e=Array['from'](_0x5b3ce3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b8958,data:_0x32c9d6}of _0x58c75e){const {group:_0x31fd43,type:_0x2f33cb,id:_0x3c5c01}=_0x394baf['_splitMarkerName'](_0x3b8958);if('suggestion'!=_0x31fd43||'deletion'!=_0x2f33cb||_0x32c9d6['oldRange'])continue;if(!_0x394baf['hasSuggestion'](_0x3c5c01))continue;const _0xefc7fa=_0x394baf['getSuggestion'](_0x3c5c01)['getRanges'](),_0x3e2fa6=_0x5b3ce3['plugins']['get']('Users')['me'];for(const _0x2ca059 of _0x394baf['getSuggestions']()){if(!_0x2ca059['isInContent']||_0x2ca059['author']!=_0x3e2fa6)continue;if('formatBlock'!=_0x2ca059['type']||'tablePasteCell'!=_0x2ca059['subType'])continue;if(_0x2ca059['getRanges']()['every'](_0x280ba5=>_0xefc7fa['some'](_0x2bc0de=>_0x2bc0de['containsRange'](_0x280ba5,!0x0)))){for(const _0x4889f8 of _0x2ca059['getAllAdjacentSuggestions']())_0x4889f8['isInContent']&&(_0x4889f8['discard'](),_0x147f00=!0x0);}}}return _0x147f00;}),_0x5b3ce3['model']['document']['registerPostFixer'](_0x27e59d=>{const _0x4ce61a=_0x5b3ce3['commands']['get']('redo');if(!_0x4ce61a||!_0x4ce61a['_createdBatches']['has'](_0x27e59d['batch']))return!0x1;let _0x338f39=!0x1;const _0x2f84ab=_0x5b3ce3['plugins']['get']('Users')['me'],_0x41c0f4=_0x5b3ce3['model']['document']['differ']['getChanges'](),_0x36efa4=Array['from'](_0x5b3ce3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38d309,data:_0xee571f})=>{const {group:_0x4b7a31,subType:_0x165a6e,authorId:_0xb9965d}=_0x394baf['_splitMarkerName'](_0x38d309);return'suggestion'==_0x4b7a31&&'tablePaste'==_0x165a6e&&_0xb9965d==_0x2f84ab['id']&&!_0xee571f['oldRange'];});for(const _0x170c58 of _0x41c0f4){if('insert'!=_0x170c58['type']||'tableCellSuggestion'!=_0x170c58['name']||0x1!=_0x170c58['length'])continue;const _0x22a744=_0x27e59d['createRange'](_0x170c58['position'],_0x170c58['position']['getShiftedBy'](0x1));if(!_0x36efa4['find'](({data:_0x403136})=>_0x403136['newRange']['isEqual'](_0x22a744))){for(const {name:_0x499593,data:_0x364ac7}of _0x36efa4)if(_0x22a744['containsRange'](_0x364ac7['newRange'])){_0x27e59d['updateMarker'](_0x499593,{'range':_0x22a744}),_0x338f39=!0x0;break;}}}return _0x338f39;}),_0x5b3ce3['model']['document']['registerPostFixer'](_0x39a413=>{let _0x43ffa5=!0x1;const _0x54b469=_0x5b3ce3['plugins']['get']('Users')['me'],_0x5d6255=_0x394baf['getSuggestions']()['filter'](_0x804e27=>_0x804e27['isInContent']&&_0x804e27['author']==_0x54b469),_0x2ed0d3=new Set(),_0x29cd41=new Set();for(const _0xa8057c of _0x5d6255)if('tablePaste'==_0xa8057c['subType'])for(const _0x3f8a5c of _0xa8057c['getMarkers']()){const _0x5a1ba0=_0x3f8a5c['getRange']()['getContainedElement']();if(_0x5a1ba0){if(_0x5a1ba0['is']('element','tableCellSuggestion')&&Oe(_0x5a1ba0)){_0xa8057c['removeMarker'](_0x3f8a5c['name']),_0x2ed0d3['add'](_0x5a1ba0),_0x43ffa5=!0x0;const _0x52e468=_0x5a1ba0['nextSibling'],_0x570227=_0x5a1ba0['previousSibling'],_0x5c3dbd=_0x52e468&&_0x52e468['is']('element','tableCellSuggestion'),_0x15e3ca=_0x570227&&_0x570227['is']('element','tableCellSuggestion');_0x5c3dbd&&!_0x2ed0d3['has'](_0x52e468)&&_0x29cd41['add'](_0x52e468),_0x15e3ca&&!_0x2ed0d3['has'](_0x570227)&&_0x29cd41['add'](_0x570227);}else _0x5a1ba0['is']('element','paragraph')&&_0x5a1ba0['isEmpty']&&(_0xa8057c['removeMarker'](_0x3f8a5c['name']),_0x43ffa5=!0x0);}}else{if('tablePasteCell'==_0xa8057c['subType']){if(!_0xa8057c['attributes']||!_0xa8057c['attributes']['tablePasteChainId'])continue;const _0x632f75=_0xa8057c['attributes']['markerAttributes'];if(_0x632f75&&Object['keys'](_0x632f75)['length'])continue;const _0x5be21d=_0xa8057c['attributes']['tablePasteChainId'];let _0x4a23c1=!0x0,_0x5d5d11=!0x0;for(const _0x4ff2e0 of _0x5d6255)if(_0x4ff2e0['subType']&&_0x4ff2e0['subType']['startsWith']('tablePaste')){if(!_0x4ff2e0['attributes']['tablePasteChainId']){_0x5d5d11=!0x1;break;}if(_0x4ff2e0['id']!=_0xa8057c['id']&&_0x4ff2e0['attributes']['tablePasteChainId']==_0x5be21d){_0x4a23c1=!0x1;break;}}_0x5d5d11&&_0x4a23c1&&(_0xa8057c['removeMarkers'](),_0x43ffa5=!0x0);}}for(const _0x3ee97a of _0x2ed0d3)_0x39a413['remove'](_0x3ee97a);for(const _0x567a42 of _0x29cd41)_0x39a413['unwrap'](_0x567a42);return _0x43ffa5;}),_0x5b3ce3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x401534=>_0x55265f(_0x401534),'converterPriority':'high'}),_0x5b3ce3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57315c,_0x4d2d51)=>_0x4d2d51['options']['showSuggestionHighlights']?_0x55265f(_0x57315c,!0x1):null,'converterPriority':'high'});const _0x1430c9=_0x5b3ce3['editing']['view'];this['listenTo'](_0x1430c9['document'],'clipboardOutput',(_0x5e251e,_0xdb32c)=>{const _0x449dc5=[];for(const _0x35e070 of _0x1430c9['createRangeIn'](_0xdb32c['content'])['getItems']())_0x35e070['is']('element','suggestion-td')&&_0x449dc5['push'](_0x35e070);_0x1430c9['change'](_0x917295=>{for(const _0x4a388f of _0x449dc5)_0x917295['move'](_0x917295['createRangeIn'](_0x4a388f),_0x917295['createPositionBefore'](_0x4a388f)),_0x917295['remove'](_0x4a388f);});});}}function Oe(_0x4cad0b){if(_0x4cad0b['isEmpty'])return!0x0;const _0x1bed03=_0x4cad0b['getChild'](0x0);return _0x1bed03['is']('element','paragraph')&&_0x1bed03['isEmpty'];}function Ue(_0x290bb3,_0x28a05b={},_0x2067e6){for(const {isAnchor:_0x40120f,cellHeight:_0x4a5dc2,cellWidth:_0x26b297}of _0x2067e6['createTableWalker'](_0x290bb3,{'includeAllSlots':!0x0,..._0x28a05b}))if(!_0x40120f||0x1!=_0x4a5dc2||0x1!=_0x26b297)return!0x1;return!0x0;}class Dt extends _0x27a926{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x498367=this['editor']['plugins']['get']('TrackChangesEditing');_0x498367['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x498367['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x498367['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x498367['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x498367['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x498367['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1dfd7a,_0x5b57d8){const _0x7f75cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa92a2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x535ad6=_0x5b57d8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d121a=_0xa92a2['getColumnGroupElement'](_0x535ad6);let _0x51fd67=_0x3d121a?_0xa92a2['getTableColumnsWidths'](_0x3d121a):null,_0x23ef2a=_0x535ad6['getAttribute']('tableWidth')||null;const _0x47bc84=_0x5b57d8['tableWidth']||_0x23ef2a,_0x193097=_0x5b57d8['columnWidths']||_0x51fd67,_0x2ec0bc=this['editor']['plugins']['get']('Users')['me'];for(const _0x381a96 of _0x7f75cf['getSuggestions']()){const _0x445737=_0x381a96['getContainedElement']();if('resizeTable'===_0x381a96['subType']&&_0x445737===_0x535ad6){_0x381a96['author']!==_0x2ec0bc&&_0x381a96['discard']();const _0x1e6eda=_0x381a96['data']['commandParams'];_0x23ef2a=_0x1e6eda[0x0]['tableWidth'],_0x51fd67=_0x1e6eda[0x0]['columnWidths'];break;}}_0x1dfd7a({'table':_0x535ad6,'tableWidth':_0x47bc84,'columnWidths':_0x193097}),_0x7f75cf['markBlockFormat'](_0x535ad6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x23ef2a,'columnWidths':_0x51fd67}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x195983){if('formatBlock'!=_0x195983['type']&&'formatInline'!=_0x195983['type'])return;const {data:_0x31eb7d}=_0x195983;if(_0x31eb7d&&'resizeTable'===_0x31eb7d['formatGroupId']){const _0x1e7dee='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e7dee)};}}}class $t extends _0x27a926{['afterInit'](){const _0x40396c=this['editor'];_0x40396c['plugins']['has']('Template')&&_0x40396c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x27a926{['afterInit'](){const _0x1cc4db=this['editor'];if(!_0x1cc4db['commands']['get']('insertTableOfContents'))return;_0x1cc4db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3e5b41=_0x1cc4db['plugins']['get']('TrackChangesEditing'),_0x6f212b=_0x1cc4db['locale'];_0x3e5b41['descriptionFactory']['registerElementLabel']('tableOfContents',_0x189515=>o(_0x6f212b,'ELEMENT_TABLE_OF_CONTENTS',_0x189515));}}class Bt extends _0x27a926{['afterInit'](){const _0x42b4bf=this['editor'];if(!_0x42b4bf['plugins']['has']('Title'))return;const _0x4dc4b7=_0x42b4bf['plugins']['get']('TrackChangesEditing');_0x4dc4b7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x42b4bf['locale'],'ELEMENT_TITLE')),_0x42b4bf['model']['document']['registerPostFixer'](_0x34140e=>{let _0xd0c510=!0x1;const _0x215c50=Array['from'](_0x42b4bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54a2e5,data:_0x59969e}of _0x215c50){const {group:_0x1d325b}=_0x4dc4b7['_splitMarkerName'](_0x54a2e5);if('suggestion'!==_0x1d325b||!_0x59969e['newRange'])continue;const _0x2f4c2c=_0x59969e['newRange'],_0x3e9f5=_0x2f4c2c['end']['nodeBefore'];if(!_0x3e9f5||!_0x3e9f5['is']('element','title-content'))continue;if(!_0x2f4c2c['start']['isTouching'](_0x2f4c2c['end']))continue;const _0x30cb5b=_0x42b4bf['model']['schema']['getNearestSelectionRange'](_0x2f4c2c['end'],'forward');if(_0x30cb5b&&_0x30cb5b['isCollapsed']){const _0x23eec9=_0x34140e['createRange'](_0x2f4c2c['start'],_0x30cb5b['start']);_0x23eec9['isEqual'](_0x2f4c2c)||(_0x34140e['updateMarker'](_0x54a2e5,{'range':_0x23eec9}),_0xd0c510=!0x0);}_0xd0c510||(_0x34140e['removeMarker'](_0x54a2e5),_0xd0c510=!0x0);}return _0xd0c510;});}}class Tt extends _0x27a926{['afterInit'](){const _0x113e37=this['editor'],_0x1803d6=_0x113e37['plugins']['get']('TrackChangesEditing');_0x113e37['plugins']['has']('Uploadcare')&&(_0x1803d6['enableCommand']('uploadcare'),_0x113e37['plugins']['has']('UploadcareImageEdit')&&(_0x1803d6['enableCommand']('uploadcareImageEdit'),_0x1803d6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1803d6['registerBlockAttribute']('uploadcareImageId'),_0x1803d6['descriptionFactory']['registerDescriptionCallback'](_0xd5fea5=>{if('attribute'!=_0xd5fea5['type'])return;const {data:_0x1ec885}=_0xd5fea5;return _0x1ec885&&'uploadcareImageId'==_0x1ec885['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x27a926{['afterInit'](){const _0x59f501=this['editor'],_0x1c6b1c=_0x59f501['plugins']['get']('TrackChangesEditing');_0x59f501['plugins']['has']('UndoEditing')&&(_0x1c6b1c['enableCommand']('undo'),_0x1c6b1c['enableCommand']('redo'));}}class Ot extends _0x27a926{static get['requires'](){return[At];}['afterInit'](){const _0x2a55bd=this['editor'];if(!_0x2a55bd['plugins']['has']('TableCaptionEditing'))return;_0x2a55bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x27a926{['tableProperties'];['tableCellProperties'];constructor(_0x2c4fc9){super(_0x2c4fc9),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 _0xf505ae=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45c6b9 of this['tableProperties'])_0xf505ae['enableCommand'](_0x45c6b9,(_0x17e52d,_0x547c41)=>{const _0x195e27=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45c6b9,[_0x195e27],this['tableProperties'],'tableProperties',_0x17e52d,_0x547c41);});_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xf505ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x20295f,_0x510fce)=>this['handleDiscardAction'](this['tableProperties'],_0x20295f,_0x510fce)),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1ef755 of this['tableCellProperties'])_0xf505ae['enableCommand'](_0x1ef755,(_0x418098,_0x3dc73d)=>{const _0x1984b0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1ef755,_0x1984b0,this['tableCellProperties'],'tableCellProperties',_0x418098,_0x3dc73d);});_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xf505ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x51f7ee,_0x5e476a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x51f7ee,_0x5e476a)),_0xf505ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xf505ae['descriptionFactory']['registerDescriptionCallback'](_0x468daf=>this['handleSuggestionDescription'](_0x468daf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x268d24,_0x28e886,_0x3cdb24,_0x4f3567,_0x28febc,_0x253a3){const _0x23fd82=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x253a3['batch'],()=>{for(const _0x424896 of _0x28e886){if(this['_getSuggestion'](_0x424896,_0x4f3567))_0x28febc(_0x253a3);else{const _0x1b1497={};for(const _0x552ddb of _0x3cdb24){const _0x470f07=_0x424896['getAttribute'](_0x552ddb);void 0x0!==_0x470f07&&(_0x1b1497[_0x552ddb]=_0x470f07);}_0x28febc(_0x253a3),_0x23fd82['markBlockFormat'](_0x424896,{'commandParams':[_0x1b1497]},[],_0x4f3567);}}});}['handleDiscardAction'](_0x460539,_0x4e63ad,_0xc6a2c0){const _0x240f5f=_0x4e63ad[0x0]['start']['nodeAfter'],_0x13b892=_0xc6a2c0['commandParams'][0x0];this['editor']['model']['change'](_0x278f02=>{for(const _0x4ceb10 of _0x460539)void 0x0!==_0x13b892[_0x4ceb10]?_0x278f02['setAttribute'](_0x4ceb10,_0x13b892[_0x4ceb10],_0x240f5f):_0x278f02['removeAttribute'](_0x4ceb10,_0x240f5f);});}['handleSuggestionDescription'](_0x58799c){if(_0x58799c['data'])switch(_0x58799c['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'](_0x55be90,_0x1ad161){const _0xf5b9ae=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x466eab of _0xf5b9ae['getSuggestions']({'skipNotAttached':!0x0})){const _0x364584=_0x466eab['getContainedElement']();if(_0x466eab['subType']===_0x1ad161&&_0x364584===_0x55be90)return _0x466eab;}return null;}['_registerTablePropertiesAttributes'](){const _0xd95430=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac9f3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11af0a of _0x5ac9f3){const _0x32bee4=_0x11af0a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xd95430['registerBlockAttribute'](_0x11af0a),_0xd95430['descriptionFactory']['registerAttributeLabel'](_0x11af0a,o(this['editor']['locale'],'FORMAT_'+_0x32bee4));}}}class Rt extends _0x27a926{['afterInit'](){const _0x5e678b=this['editor'];if(!_0x5e678b['plugins']['has']('LineHeight'))return;const _0x78177f=_0x5e678b['plugins']['get']('TrackChangesEditing'),_0x11f6ec=_0x5e678b['locale'];_0x78177f['enableDefaultAttributesIntegration']('lineHeight'),_0x78177f['registerBlockAttribute']('lineHeight'),_0x78177f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x11f6ec,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x27a926{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3c175c,_0x2edee7,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25d1ff){super(_0x25d1ff),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34b7a7,_0x44ef2e,_0x14c499,_0x24886d)=>{this['_model']['change'](()=>{for(const _0x3b76a4 of[..._0x24886d,..._0x14c499])this['_model']['markers']['has'](_0x3b76a4)&&_0x25d1ff['editing']['reconvertMarker'](_0x3b76a4);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x25d1ff['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(),_0x25d1ff['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x25d1ff['config']['get']('trackChanges.trackFormatChanges'),_0x25d1ff['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x25d1ff['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x25d1ff,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2dd451=this['editor'],_0x15a612=(_0x1fdbe2,_0x3009dd)=>{if('attribute'!=_0x1fdbe2)return'ck-suggestion-marker-'+_0x1fdbe2;const _0x142112=_0x3009dd['split']('|')[0x0];return this['_isBlockAttribute'](_0x142112)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2dd451['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x92b750=>{const {id:_0x36c5e2,authorId:_0x5eceb5,type:_0x4218b2,subType:_0x3f0962}=this['_splitMarkerName'](_0x92b750['markerName']),_0x12951b=['ck-suggestion-marker',_0x15a612(_0x4218b2,_0x3f0962)];let _0x2b15fb=0xbb8;return this['activeMarkers']['includes'](_0x92b750['markerName'])&&(_0x12951b['push']('ck-suggestion-marker--active'),_0x2b15fb=0xbc2),'deletion'==_0x4218b2&&(_0x2b15fb+=0x5),{'classes':_0x12951b,'attributes':{'data-suggestion':_0x36c5e2,'data-author-id':_0x5eceb5},'priority':_0x2b15fb};}}),_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x342635=>{_0x342635['on']('addMarker:suggestion',(_0x1afe68,_0x585011,_0x3325cb)=>{if(!_0x3325cb['options']['showSuggestionHighlights'])return;const _0x508932=_0x585011['item'];if(!_0x508932)return;const _0x235964=_0x3325cb['mapper']['toViewElement'](_0x508932);_0x2dd451['model']['schema']['isObject'](_0x508932)&&_0x235964&&!_0x235964['getCustomProperty']('widget')&&_0x235964['is']('containerElement')&&_0x19a0f9(_0x235964,_0x3325cb['writer']);},{'priority':'high'});}),_0x2dd451['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d5450,_0x10c7d7)=>{if(!_0x10c7d7['options']['showSuggestionHighlights'])return null;const {id:_0x285594,authorId:_0x2d7efb,type:_0x5cd30e,subType:_0x42ffd1}=this['_splitMarkerName'](_0x5d5450['markerName']);return{'classes':['ck-suggestion-marker',_0x15a612(_0x5cd30e,_0x42ffd1)],'priority':0xbb8,'attributes':{'data-suggestion':_0x285594,'data-author-id':_0x2d7efb}};}});const _0x4759ff=({showActiveMarkers:_0x3c31bc=!0x0,isAttributeSuggestion:_0x298aba=!0x1}={})=>(_0x897d0a,_0x4af116,_0x3fbfa7)=>{if(!_0x4af116['item'])return;const {id:_0x254e14,authorId:_0x3995ee}=this['_splitMarkerName'](_0x4af116['markerName']);if(_0x298aba){const _0x4ade98=this['_suggestions']['get'](_0x254e14),_0x487671=this['_getAttributeKey'](_0x4ade98);if(!this['_isBlockAttribute'](_0x487671))return;}if(_0x4af116['item']['is']('selection'))return void _0x3fbfa7['consumable']['consume'](_0x4af116['item'],_0x897d0a['name']);const _0x5c4e99=_0x3fbfa7['mapper']['toViewElement'](_0x4af116['item']);if(_0x4af116['item']['is']('element')&&_0x2dd451['model']['schema']['isBlock'](_0x4af116['item'])&&!_0x5c4e99['getCustomProperty']('addHighlight')){_0x3fbfa7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c4e99),_0x3fbfa7['writer']['setAttribute']('data-suggestion',_0x254e14,_0x5c4e99),_0x3fbfa7['writer']['setAttribute']('data-author-id',_0x3995ee,_0x5c4e99),_0x3fbfa7['mapper']['bindElementToMarker'](_0x5c4e99,_0x4af116['markerName']),_0x3c31bc&&(this['activeMarkers']['includes'](_0x4af116['markerName'])?_0x3fbfa7['writer']['addClass']('ck-suggestion-marker--active',_0x5c4e99):_0x3fbfa7['writer']['removeClass']('ck-suggestion-marker--active',_0x5c4e99));for(const _0x8373b0 of _0x2dd451['model']['createRangeIn'](_0x4af116['item'])['getItems']())_0x3fbfa7['consumable']['consume'](_0x8373b0,_0x897d0a['name']);_0x3fbfa7['consumable']['consume'](_0x4af116['item'],_0x897d0a['name']);}};_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x37ee72=>{_0x37ee72['on']('addMarker:suggestion:formatBlock',(_0x454ffe,_0x15bdec,_0x5e5b14)=>{_0x5e5b14['options']['showSuggestionHighlights']&&_0x4759ff({'showActiveMarkers':!0x1})(_0x454ffe,_0x15bdec,_0x5e5b14);},{'priority':'highest'});}),_0x2dd451['conversion']['for']('dataDowncast')['add'](_0x4a6eea=>{_0x4a6eea['on']('addMarker:suggestion:attribute',(_0x326483,_0xf96f1f,_0x4b8ec4)=>{_0x4b8ec4['options']['showSuggestionHighlights']&&_0x4759ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x326483,_0xf96f1f,_0x4b8ec4);},{'priority':'highest'});}),_0x2dd451['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e0544,_0x5b2929)=>{if(_0x5b2929['options']['showSuggestionHighlights']){const {id:_0x2795e0,authorId:_0x3c317f}=this['_splitMarkerName'](_0x2e0544);return _0x2e0544['includes'](':split')||_0x2e0544['includes'](':merge')?{'group':'suggestion','name':_0x2e0544['substr'](0xb),'attributes':{'data-suggestion':_0x2795e0,'data-author-id':_0x3c317f}}:null;}return{'group':'suggestion','name':_0x2e0544['substr'](0xb)};}}),_0x2dd451['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x307d06,{writer:_0x5c34a9})=>{let _0x58c2c4='suggestion:'+_0x307d06['getAttribute']('suggestion-type')+':'+_0x307d06['getAttribute']('id');return _0x307d06['getAttribute']('marker-count')&&(_0x58c2c4+=':'+_0x307d06['getAttribute']('marker-count')),_0x5c34a9['createElement']('$marker',{'data-name':_0x58c2c4});}}),_0x2dd451['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x1f8e78=>{_0x1f8e78['on']('addMarker:suggestion:formatBlock',_0x4759ff(),{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x5c4428=>{_0x5c4428['on']('addMarker:suggestion:attribute',_0x4759ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0x2fd311=>{_0x2fd311['on']('removeMarker:suggestion:formatBlock',(_0x2c672f,_0x243995,_0x405ede)=>{const _0x12a994=_0x405ede['mapper']['markerNameToElements'](_0x243995['markerName']);if(_0x12a994){for(const _0x1e1688 of _0x12a994)_0x1e1688['getCustomProperty']('addHighlight')||(_0x405ede['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e1688),_0x405ede['writer']['removeAttribute']('data-suggestion',_0x1e1688),_0x405ede['writer']['removeAttribute']('data-author-id',_0x1e1688),_0x405ede['mapper']['unbindElementFromMarkerName'](_0x1e1688,_0x243995['markerName']));}},{'priority':'high'});}),_0x2dd451['conversion']['for']('editingDowncast')['add'](_0xe0114c=>{_0xe0114c['on']('removeMarker:suggestion:attribute',(_0x491075,_0x3e5b56,_0x35dbb9)=>{const _0x50dba3=_0x35dbb9['mapper']['markerNameToElements'](_0x3e5b56['markerName']);if(!_0x50dba3)return;const {id:_0x760e1d}=this['_splitMarkerName'](_0x3e5b56['markerName']),_0xe7eab5=this['_suggestions']['get'](_0x760e1d),_0x11bbce=this['_getAttributeKey'](_0xe7eab5);if(this['_isBlockAttribute'](_0x11bbce)){for(const _0x211340 of _0x50dba3)_0x211340['getCustomProperty']('addHighlight')||(_0x35dbb9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x211340),_0x35dbb9['writer']['removeAttribute']('data-suggestion',_0x211340),_0x35dbb9['writer']['removeAttribute']('data-author-id',_0x211340),_0x35dbb9['mapper']['unbindElementFromMarkerName'](_0x211340,_0x3e5b56['markerName']));}},{'priority':'high'});}),_0x2dd451['model']['document']['registerPostFixer'](_0x280392=>{let _0x92339d=!0x1;const _0x1bf10d=Array['from'](_0x2dd451['model']['document']['differ']['getChangedMarkers']()),_0x2b02f0=new Set();for(const {name:_0x3be4b4,data:_0x56733f}of _0x1bf10d){const {group:_0x563b36,type:_0x1ebf20,subType:_0x38a399,id:_0x5455ef}=this['_splitMarkerName'](_0x3be4b4);if('suggestion'!==_0x563b36)continue;const _0x16e677=_0x38a399?'suggestion:'+_0x1ebf20+':'+_0x38a399+':'+_0x5455ef:'suggestion:'+_0x1ebf20+':'+_0x5455ef,_0x2c2aa3=_0x2dd451['model']['markers']['getMarkersGroup'](_0x16e677),_0x3d1b40=_0x2dd451['model']['markers']['get'](_0x3be4b4),_0x46a882=this['_suggestions']['get'](_0x5455ef);if(null!=_0x56733f['newRange']){'formatInline'==_0x1ebf20&&(_0x92339d=_0x92339d||Gt(_0x56733f['newRange'],_0x3be4b4,_0x280392,_0x2dd451['model']['schema']));const _0x2ee383='attribute'==_0x1ebf20&&this['_isBlockAttribute'](_0x38a399['split']('|')[0x0]),_0x81b61a='attribute'==_0x1ebf20&&this['_isInlineAttribute'](_0x38a399['split']('|')[0x0]);if(_0x56733f['newRange']['isCollapsed']||'$graveyard'==_0x56733f['newRange']['root']['rootName']||'formatBlock'==_0x1ebf20&&!Jt(_0x56733f['newRange'])||_0x2ee383&&!Jt(_0x56733f['newRange'])||_0x81b61a&&Kt(_0x56733f['newRange'])||'deletion'==_0x1ebf20&&Kt(_0x56733f['newRange'])||_0x3d1b40&&Ht(_0x3d1b40,_0x2c2aa3))_0x280392['removeMarker'](_0x3be4b4),_0x92339d=!0x0;else{if(!_0x46a882||!_0x46a882['isInContent'])continue;if(_0x56733f['newRange']&&_0x56733f['oldRange']&&_0x56733f['newRange']['isEqual'](_0x56733f['oldRange']))continue;_0x2b02f0['add'](_0x46a882);}}}return _0x2b02f0['size']>0x0&&(_0x92339d=!!this['_joinWithAdjacentSuggestions'](_0x2b02f0)||_0x92339d),_0x92339d;}),_0x2dd451['model']['document']['registerPostFixer'](_0x4dc6f6=>{let _0xd69378=!0x1;for(const _0x204972 of _0x2dd451['model']['document']['differ']['getChanges']())if('insert'==_0x204972['type'])for(const _0x19eae9 of this['_suggestions']['values']()){if(_0x19eae9['isMultiRange']||!_0x19eae9['isInContent'])continue;const _0x3e9d89='formatBlock'==_0x19eae9['type'],_0x206aab=this['_getAttributeKey'](_0x19eae9),_0x503676=_0x206aab&&this['_isBlockAttribute'](_0x206aab);if(!_0x3e9d89&&!_0x503676)continue;const _0x5b2ab0=_0x19eae9['getFirstRange']();if(_0x5b2ab0['start']['parent']!=_0x5b2ab0['end']['parent']&&!_0x5b2ab0['end']['isAtEnd']){const _0x3dec90=_0x2dd451['model']['createPositionAt'](_0x5b2ab0['start']['nodeAfter'],'end'),_0x4b6570=_0x2dd451['model']['createRange'](_0x5b2ab0['start'],_0x3dec90);_0x4dc6f6['updateMarker'](_0x19eae9['getFirstMarker'](),{'range':_0x4b6570}),_0xd69378=!0x0;}}return _0xd69378;}),_0x2dd451['model']['document']['registerPostFixer'](_0xaff412=>this['_processAttributeChanges'](_0xaff412)),_0x2dd451['model']['document']['registerPostFixer'](_0x24ceae=>!_0x24ceae['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24ceae)),_0x2dd451['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2dd451['model']['document']['on']('change:data',(_0x3d1d06,_0x9697e5)=>{if(!_0x9697e5['isLocal']||_0x9697e5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x57937d=_0x2dd451['model']['document']['differ']['getChanges']();if(0x0==_0x57937d['length'])return;const _0x285569=[],_0xb17488=_0x57937d['filter'](_0x595824=>'attribute'==_0x595824['type']),_0x12955f=_0x57937d['filter'](_0x3b6359=>'insert'==_0x3b6359['type']&&'$text'!=_0x3b6359['name']);for(const _0x1b72b6 of _0xb17488)this['_isRegisteredAttribute'](_0x1b72b6['attributeKey'])&&_0x285569['push']({'key':_0x1b72b6['attributeKey'],'newValue':_0x1b72b6['attributeNewValue'],'oldValue':_0x1b72b6['attributeOldValue'],'range':qt(_0x1b72b6['range'],_0x2dd451['model'])});for(const _0x3d6c2b of _0x12955f){if('rename'!=_0x3d6c2b['action']&&'refresh'!=_0x3d6c2b['action'])continue;const _0xf6837c=zt(_0x3d6c2b['position']['nodeAfter'],_0x2dd451['model']),_0x394cc8=_0x3d6c2b['before'];'rename'==_0x3d6c2b['action']&&_0x285569['push']({'key':m,'newValue':_0x3d6c2b['name'],'oldValue':_0x394cc8['name'],'range':_0xf6837c});for(const [_0x557de9,_0x2f7ac3]of _0x394cc8['attributes']){if(!this['_isRegisteredAttribute'](_0x557de9))continue;const _0x667164=_0x3d6c2b['attributes']['get'](_0x557de9);_0x2f7ac3!==_0x667164&&_0x285569['push']({'key':_0x557de9,'newValue':_0x667164,'oldValue':_0x2f7ac3,'range':_0xf6837c});}for(const [_0x114f58,_0x505b9f]of _0x3d6c2b['attributes'])this['_isRegisteredAttribute'](_0x114f58)&&(_0x394cc8['attributes']['has'](_0x114f58)||_0x285569['push']({'key':_0x114f58,'newValue':_0x505b9f,'oldValue':null,'range':_0xf6837c}));}0x0!=_0x285569['length']&&_0x2dd451['model']['enqueueChange'](_0x9697e5,_0x55421e=>{const _0x507176=_0x5bc718();for(const {range:_0x20abf4,key:_0x2a742f,oldValue:_0x8ff81a,newValue:_0x490245}of _0x285569)this['markAttributeChange'](_0x20abf4,_0x2a742f,_0x8ff81a,_0x490245,{'groupId':_0x507176});this['_reduceExistingSuggestions'](_0x55421e,_0x285569);});},{'priority':'lowest'}),_0x2dd451['model']['markers']['on']('update:suggestion',(_0x3b699c,_0x5475b3,_0xcae11b)=>{if(null==_0xcae11b){const {id:_0x5d9113}=this['_splitMarkerName'](_0x5475b3['name']),_0xfc892e=this['_suggestions']['get'](_0x5d9113);_0xfc892e&&_0xfc892e['addMarkerName'](_0x5475b3['name']);}}),_0x2dd451['model']['document']['on']('change:data',()=>{const _0x306bea=Array['from'](_0x2dd451['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5d5eb8=>'suggestion'===this['_splitMarkerName'](_0x5d5eb8['name'])['group']);if(0x0===_0x306bea['length'])return;_0x306bea['sort']((_0x363c44,_0x365956)=>{const _0x292a12=_0x363c44['data']['oldRange'],_0x5bb865=_0x365956['data']['oldRange'];return null===_0x292a12&&null===_0x5bb865?0x0:null===_0x292a12&&null!==_0x5bb865?-0x1:null!==_0x292a12&&null===_0x5bb865?0x1:_0x292a12['start']['isBefore'](_0x5bb865['start'])?-0x1:0x1;});const _0x46879f=new Set(),_0xf5b411=new Set();for(const {name:_0x5e0c67,data:_0x4036ac}of _0x306bea){const {id:_0x571ed8}=this['_splitMarkerName'](_0x5e0c67);if(null===_0x4036ac['oldRange']){const _0xebe38e=this['_handleNewSuggestionMarker'](_0x5e0c67);_0xf5b411['add'](_0xebe38e);}else{const _0x55dcb6=this['_suggestions']['get'](_0x571ed8);null!==_0x4036ac['newRange']||_0x55dcb6['isInContent']?(_0x46879f['add'](_0x55dcb6['head']),_0xf5b411['add'](_0x55dcb6)):this['_removeSuggestion'](_0x55dcb6);}}_0xf5b411['size']>0x0&&this['_refreshSuggestionsChain'](_0xf5b411);for(const _0x291f5c of _0x46879f)this['fire']('suggestionChanged',_0x291f5c);}),_0x2dd451['model']['on']('applyOperation',(_0x57562a,_0xe7120d)=>{const _0x555dd6=_0xe7120d[0x0];if(!this['_suggestions']['size'])return;if(!_0x555dd6['isDocumentOperation'])return;if(_0x555dd6['batch']['isUndo']||!_0x555dd6['batch']['isLocal'])return;let _0x2f021b,_0xae8f27;switch(_0x555dd6['type']){case'insert':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['position']),_0xae8f27=_0x2f021b['getShiftedBy'](_0x555dd6['howMany']);break;case'split':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['splitPosition']),_0xae8f27=_0x2dd451['model']['createPositionAt'](_0x555dd6['moveTargetPosition']);break;case'move':_0x2f021b=_0x2dd451['model']['createPositionAt'](_0x555dd6['targetPosition']),_0xae8f27=_0x2f021b['getShiftedBy'](_0x555dd6['howMany']);break;default:return;}const _0x327ac3=_0x2dd451['model']['createRange'](_0x2f021b,_0xae8f27);_0x2dd451['model']['change'](()=>{for(const {suggestion:_0x5bee1e,meta:_0xffe7be}of this['_findSuggestions'](_0x327ac3)){if(_0x5bee1e['isMultiRange'])continue;if('formatInline'==_0x5bee1e['type'])continue;const _0x2994c1=this['_getAttributeKey'](_0x5bee1e);if(_0x2994c1&&this['_isBlockAttribute'](_0x2994c1)&&'split'!=_0x555dd6['type'])continue;const _0x103e1a=_0x5bee1e['data']&&_0x5bee1e['data']['multipleBlocks'];('formatBlock'!=_0x5bee1e['type']||'split'==_0x555dd6['type']&&!_0x103e1a)&&(_0xffe7be['containsRangeInObject']||'insertion'==_0x5bee1e['type']&&_0xffe7be['isOwn']||_0x5bee1e['getFirstRange']()['containsRange'](_0x327ac3)&&this['_breakSuggestionMarker'](_0x5bee1e,_0x2f021b,_0xae8f27));}});},{'priority':'lowest'}),_0x2dd451['model']['on']('deleteContent',(_0x387046,_0x3ae1d2)=>{const _0x24a85f=_0x3ae1d2[0x0],_0x1a213c=_0x3ae1d2[0x1];if(_0x1a213c&&_0x1a213c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x24a85f['isCollapsed'])return;const _0x1e6948=_0x2dd451['model']['schema'],{start:_0x4f1a0f,end:_0x425c77}=_0x24a85f['getFirstRange'](),_0x2687ff=_0x4f1a0f['nodeAfter']&&_0x1e6948['isLimit'](_0x4f1a0f['nodeAfter'])?null:_0x1e6948['getNearestSelectionRange'](_0x4f1a0f,'forward'),_0x3f5b8c=_0x425c77['nodeBefore']&&_0x1e6948['isLimit'](_0x425c77['nodeBefore'])?null:_0x1e6948['getNearestSelectionRange'](_0x425c77,'backward'),_0xa15ed8=_0x2dd451['model']['createRange'](_0x2687ff?_0x2687ff['start']:_0x4f1a0f,_0x3f5b8c?_0x3f5b8c['end']:_0x425c77);_0x2dd451['model']['change'](_0x43c033=>{this['markDeletion'](_0xa15ed8);const _0x3034f4=_0x2dd451['model']['schema']['getNearestSelectionRange'](_0xa15ed8['start']);_0x24a85f['is']('documentSelection')?_0x43c033['setSelection'](_0x3034f4):_0x24a85f['setTo'](_0x3034f4);}),_0x387046['stop']();},{'priority':_0x40c02c['normal']+0xa}),_0x2dd451['model']['on']('insertContent',(_0x46bd31,_0x556430)=>{const _0x34f27e=_0x556430[_0x556430['length']-0x1];_0x34f27e&&_0x34f27e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2dd451['model']['change'](()=>{let _0x700590=_0x2dd451['model']['insertContent'](_0x556430[0x0],_0x556430[0x1],_0x556430[0x2],{'forceDefaultExecution':!0x0});if(!_0x700590)return;_0x46bd31['return']=_0x700590['clone']();const _0x324b33=_0x700590['end']['nodeBefore'],_0x56cc5c=_0x2dd451['model']['schema'];_0x324b33&&_0x56cc5c['isBlock'](_0x324b33)&&!_0x56cc5c['isObject'](_0x324b33)&&(_0x700590=_0x2dd451['model']['createRange'](_0x700590['start'],_0x2dd451['model']['createPositionAt'](_0x324b33,'end'))),this['markInsertion'](_0x700590);}),_0x46bd31['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6f6eb6=new D(_0x2dd451,this['_suggestions']);_0x2dd451['commands']['add']('acceptSuggestion',_0x6f6eb6),this['enableCommand']('acceptSuggestion');const _0x167a0c=new $(_0x2dd451,this['_suggestions']);_0x2dd451['commands']['add']('discardSuggestion',_0x167a0c),this['enableCommand']('discardSuggestion'),_0x2dd451['commands']['add']('acceptAllSuggestions',new M(_0x2dd451,_0x6f6eb6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2dd451['commands']['add']('discardAllSuggestions',new M(_0x2dd451,_0x167a0c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2dd451['commands']['add']('acceptSelectedSuggestions',new B(_0x2dd451,_0x6f6eb6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2dd451['commands']['add']('discardSelectedSuggestions',new B(_0x2dd451,_0x167a0c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4fa387=_0x2dd451['plugins']['get']('CommentsRepository');this['listenTo'](_0x4fa387,'addComment',(_0x28bf3a,{threadId:_0x2eb3b4})=>{const _0x3d1c65=this['_suggestions']['get'](_0x2eb3b4);_0x3d1c65&&_0x3d1c65['commentThread']&&0x1===_0x3d1c65['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb3b4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4fa387,'removeComment',(_0x406ebd,{threadId:_0x3adfa5})=>{const _0x149c31=this['_suggestions']['get'](_0x3adfa5);_0x149c31&&_0x149c31['commentThread']&&!_0x149c31['commentThread']['length']&&this['_updateSuggestionData'](_0x3adfa5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ad91c){const _0x1c4ec7=_0x10e6cd([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x55ca1c=0x6b0f5e6f,_0xa2c0a2=0x6b082d1f^_0x55ca1c,_0x6feb96=window[_0x10e6cd([0x44,0x61,0x74,0x65])][_0x10e6cd([0x6e,0x6f,0x77])](),_0x2057c6=_0x2ad91c[_0x10e6cd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40984a=new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44f87f=>{_0x2057c6[_0x10e6cd([0x6f,0x6e,0x63,0x65])](_0x10e6cd([0x72,0x65,0x61,0x64,0x79]),_0x44f87f);}),_0x41df08={[_0x10e6cd([0x6b,0x74,0x79])]:_0x10e6cd([0x45,0x43]),[_0x10e6cd([0x75,0x73,0x65])]:_0x10e6cd([0x73,0x69,0x67]),[_0x10e6cd([0x63,0x72,0x76])]:_0x10e6cd([0x50,0x2d,0x32,0x35,0x36]),[_0x10e6cd([0x78])]:_0x10e6cd([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]),[_0x10e6cd([0x79])]:_0x10e6cd([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]),[_0x10e6cd([0x61,0x6c,0x67])]:_0x10e6cd([0x45,0x53,0x32,0x35,0x36])},_0x14a864=_0x2057c6[_0x10e6cd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10e6cd([0x67,0x65,0x74])](_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35dda9(){let _0xca07f3,_0x517e1a=null,_0x2e2f4a=null;try{if(_0x14a864==_0x10e6cd([0x47,0x50,0x4c]))return _0x10e6cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xca07f3=_0x3e6490(),!_0xca07f3)return _0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xca07f3[_0x10e6cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e2f4a=_0x46558d(_0xca07f3[_0x10e6cd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xca07f3[_0x10e6cd([0x6a,0x74,0x69])])),await _0x45aefc()?_0x38c276()?_0x2a7294()?_0x10e6cd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c30fd()?(_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e6cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x517e1a=_0x52223e(_0x10e6cd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10e6cd([0x74,0x72,0x69,0x61,0x6c])&&(_0x517e1a=_0x52223e(_0x10e6cd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x18b448()):_0x10e6cd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10e6cd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10e6cd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a7294(){const _0xbced5a=[_0x10e6cd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10e6cd([0x74,0x72,0x69,0x61,0x6c])][_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6feb96/0x3e8:0xe10*_0xa2c0a2;return _0xca07f3[_0x10e6cd([0x65,0x78,0x70])]<_0xbced5a;}function _0x38c276(){const _0x37b07b=_0xca07f3[_0x10e6cd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37b07b)return!0x1;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x2a])))return!0x0;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x54,0x43])))return!0x0;if(_0x37b07b[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x52,0x54,0x43]))){if(_0x3a3fe2())return!0x0;if(_0x52405c()||_0x45188e())return!0x0;}return!0x1;}function _0x3c30fd(){const _0x9f88d3=_0xca07f3[_0x10e6cd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9f88d3||0x0==_0x9f88d3[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7b4177}=new URL(window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9f88d3[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b4177))return!0x0;const _0x18a063=_0x7b4177[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e]));return _0x9f88d3[_0x10e6cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37adad=>_0x37adad[_0x10e6cd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e6cd([0x2a])))[_0x10e6cd([0x6d,0x61,0x70])](_0x39e8c8=>_0x39e8c8[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e])))[_0x10e6cd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e5c4=>_0x18e5c4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x18a063[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10e6cd([0x6d,0x61,0x70])](_0x3dd9b6=>Array(_0x18a063[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3dd9b6[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10e6cd([0x66,0x69,0x6c,0x6c])](_0x3dd9b6[0x0]===_0x10e6cd([0x2a])?_0x10e6cd([0x2a]):'')[_0x10e6cd([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3dd9b6))[_0x10e6cd([0x73,0x6f,0x6d,0x65])](_0x56aaf8=>_0x18a063[_0x10e6cd([0x65,0x76,0x65,0x72,0x79])]((_0x212a8b,_0x2cb358)=>_0x56aaf8[_0x2cb358]===_0x212a8b||_0x56aaf8[_0x2cb358]===_0x10e6cd([0x2a])));}function _0x18b448(){return _0x517e1a&&_0x2e2f4a?new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1caf68,_0xc90990)=>{_0x517e1a[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x1caf68,_0xc90990),_0x2e2f4a[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x2a9055=>{_0x2a9055!=_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])&&_0x1caf68(_0x2a9055);},_0xc90990);}):_0x517e1a||_0x2e2f4a||_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46558d(_0x1c52c2,_0x779cd0){return new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd1a4=>{if(_0xbc3781())return _0x5cd1a4(_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]));_0x4829a7(),_0x2057c6[_0x10e6cd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b35bf=!0x1;const _0x8acfcf=_0x5bc718();function _0x5a57f3(_0x572488){return!!_0x572488&&(typeof _0x572488===_0x10e6cd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x572488===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x572488[_0x10e6cd([0x74,0x68,0x65,0x6e])]===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x572488[_0x10e6cd([0x63,0x61,0x74,0x63,0x68])]===_0x10e6cd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x589d68(_0x343b10){_0x9dceff(_0x343b10)[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x8726f8=>{if(!_0x8726f8||_0x8726f8[_0x10e6cd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10e6cd([0x6f,0x6b]))return _0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c550b(_0x53bd34(_0x8acfcf+_0x779cd0))!=_0x8726f8[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10e6cd([0x56,0x61,0x6c,0x69,0x64]);})[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x4cfc49=>(_0x5a76e5(),_0x4cfc49),()=>{const _0x93bb37=_0x186fab();return null==_0x93bb37?(_0x5a76e5(),_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])):_0x10e6cd(_0x6feb96-_0x93bb37>(0x4f03da6f^_0x55ca1c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x5cd1a4)[_0x10e6cd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e753c=0x6b39b0ef^_0x55ca1c;function _0x5a76e5(){const _0xf25f16=_0x10e6cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c550b(_0x53bd34(_0x1c52c2)),_0x116ce3=_0x5564b5(_0x4c550b(window[_0x10e6cd([0x4d,0x61,0x74,0x68])][_0x10e6cd([0x63,0x65,0x69,0x6c])](_0x6feb96/_0x5e753c)));window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e6cd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf25f16,_0x116ce3);}function _0x186fab(){const _0x23ec32=_0x10e6cd([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c550b(_0x53bd34(_0x1c52c2)),_0xa4d872=window[_0x10e6cd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10e6cd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23ec32);return _0xa4d872?window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5564b5(_0xa4d872),0x10)*_0x5e753c:null;}function _0x9dceff(_0x577048){return new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1235f5,_0x29bfb5)=>{_0x577048[_0x10e6cd([0x74,0x68,0x65,0x6e])](_0x1235f5,_0x29bfb5),window[_0x10e6cd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29bfb5,0x6b0e8aaf^_0x55ca1c);});}}_0x2057c6[_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5451f3,_0x45ac0a)=>{if(_0x45ac0a[0x0]!=_0x1c52c2)return _0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45ac0a[0x1]={..._0x45ac0a[0x1],[_0x10e6cd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8acfcf};},{[_0x10e6cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e6cd([0x68,0x69,0x67,0x68])}),_0x2057c6[_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9b2841=>{_0x5a57f3(_0x9b2841[_0x10e6cd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b35bf=!0x0,_0x589d68(_0x9b2841[_0x10e6cd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10e6cd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10e6cd([0x6c,0x6f,0x77])}),_0x40984a[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>{_0x2b35bf||_0x5cd1a4(_0x10e6cd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbc3781(){return _0x2057c6[_0x10e6cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e6cd([0x76,0x69,0x65,0x77])][_0x10e6cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10e6cd([0x61,0x75,0x74,0x6f]);}function _0x4829a7(){_0x2057c6[_0x10e6cd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10e6cd([0x76,0x69,0x65,0x77])][_0x10e6cd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10e6cd([0x61,0x75,0x74,0x6f]);}}function _0x52223e(_0x426a3a){const _0x43eecf=[new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4435b1=>setTimeout(_0x4435b1,0x6b0660a3^_0x55ca1c)),_0x40984a[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fb969=>{let _0x3c7e2a=0x0;_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x6f,0x6e])](_0x10e6cd([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bca6c,_0x46187e)=>{_0x46187e[0x0][_0x10e6cd([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c7e2a++,_0x3c7e2a==(0x6b0f5f97^_0x55ca1c)&&(_0x4fb969(),_0x5bca6c[_0x10e6cd([0x6f,0x66,0x66])]());});}))];return window[_0x10e6cd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10e6cd([0x72,0x61,0x63,0x65])](_0x43eecf)[_0x10e6cd([0x74,0x68,0x65,0x6e])](()=>_0x426a3a);}async function _0x22b010(){await _0x40984a,_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2eee9f,_0x2057c6[_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c])][_0x10e6cd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2eee9f,_0x2057c6[_0x10e6cd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10e6cd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a3fe2(){return _0x1fa100(_0x10e6cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1dd7f7(_0x10e6cd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x10e6cd([0x73,0x74,0x61,0x74,0x65])]==_0x10e6cd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x52405c(){return _0x1fa100(_0x10e6cd([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 _0x45188e(){return _0x1fa100(_0x10e6cd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd60bdf(_0x598523){const _0x7963ba=_0x52229b();_0x2057c6[_0x7963ba]=_0x10e6cd([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x598523,_0x598523!=_0x10e6cd([0x56,0x61,0x6c,0x69,0x64])&&_0x22b010();}function _0x52229b(){const _0x154a39=window[_0x10e6cd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10e6cd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10e6cd([0x6e,0x6f,0x77])]())[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10e6cd([0x2e]),'');let _0x5d98ca=_0x10e6cd([0x67]);for(let _0x104e07=0x0;_0x104e07<_0x154a39[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104e07+=0x2){let _0x43f508=window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x154a39[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x104e07,_0x104e07+0x2));_0x43f508>=_0x1c4ec7[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43f508-=_0x1c4ec7[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d98ca+=_0x1c4ec7[_0x43f508];}return _0x5d98ca;}function _0x3e6490(){const _0x35635a=_0x14a864[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e]));if(0x3!=_0x35635a[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x566bb4(_0x35635a[0x1]);function _0x566bb4(_0x389e7d){const _0x3725d7=_0x10a2ea(_0x389e7d);return _0x3725d7&&_0x295da8()?_0x3725d7:null;function _0x295da8(){const _0x1e89b4=_0x3725d7[_0x10e6cd([0x6a,0x74,0x69])],_0x48cfb9=window[_0x10e6cd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e89b4[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e89b4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e06d0={..._0x3725d7,[_0x10e6cd([0x6a,0x74,0x69])]:_0x1e89b4[_0x10e6cd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e89b4[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e06d0[_0x10e6cd([0x76,0x63])],_0x53bd34(_0x1e06d0)==_0x48cfb9;}}}async function _0x45aefc(){let _0x42dd77=!0x0;try{const _0x3d4e10=_0x14a864[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])](_0x10e6cd([0x2e])),[_0x29a8f3,_0x4c34f4,_0x3109ff]=_0x3d4e10;return _0x1aa1fc(_0x29a8f3),await _0x46edc9(_0x29a8f3,_0x4c34f4,_0x3109ff),_0x42dd77;}catch{return!0x1;}function _0x1aa1fc(_0x14edfa){const _0x515db3=_0x10a2ea(_0x14edfa);_0x515db3&&_0x515db3[_0x10e6cd([0x61,0x6c,0x67])]==_0x10e6cd([0x45,0x53,0x32,0x35,0x36])||(_0x42dd77=!0x1);}async function _0x46edc9(_0x4f5efb,_0x3499ab,_0x5d1237){const _0x4ae11d=window[_0x10e6cd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10e6cd([0x66,0x72,0x6f,0x6d])](_0x49ecbd(_0x5d1237),_0x1c103d=>_0x1c103d[_0x10e6cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e29cd=new window[(_0x10e6cd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10e6cd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f5efb+_0x10e6cd([0x2e])+_0x3499ab),_0x5c7894=window[_0x10e6cd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10e6cd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c7894)return;const _0x1df0fa=await _0x5c7894[_0x10e6cd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10e6cd([0x6a,0x77,0x6b]),_0x41df08,{[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x45,0x43,0x44,0x53,0x41]),[_0x10e6cd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10e6cd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c7894[_0x10e6cd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x45,0x43,0x44,0x53,0x41]),[_0x10e6cd([0x68,0x61,0x73,0x68])]:{[_0x10e6cd([0x6e,0x61,0x6d,0x65])]:_0x10e6cd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1df0fa,_0x4ae11d,_0x1e29cd)||(_0x42dd77=!0x1);}}function _0x10a2ea(_0x20578d){return _0x20578d[_0x10e6cd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10e6cd([0x65,0x79]))?JSON[_0x10e6cd([0x70,0x61,0x72,0x73,0x65])](_0x49ecbd(_0x20578d)):null;}function _0x49ecbd(_0x2874c0){return window[_0x10e6cd([0x61,0x74,0x6f,0x62])](_0x2874c0[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10e6cd([0x2b]))[_0x10e6cd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10e6cd([0x2f])));}function _0x53bd34(_0x338023){let _0xaf2583=0x1505;function _0x35a6a1(_0x3e8c0c){for(let _0x1a387f=0x0;_0x1a387f<_0x3e8c0c[_0x10e6cd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a387f++){const _0x49c683=_0x3e8c0c[_0x10e6cd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a387f);_0xaf2583=(_0xaf2583<<0x5)+_0xaf2583+_0x49c683,_0xaf2583&=_0xaf2583;}}function _0x4fc5d6(_0x19be3e){Array[_0x10e6cd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19be3e)?_0x19be3e[_0x10e6cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fc5d6):_0x19be3e&&typeof _0x19be3e==_0x10e6cd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10e6cd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19be3e)[_0x10e6cd([0x73,0x6f,0x72,0x74])]()[_0x10e6cd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41ec8c,_0x28a371])=>{_0x35a6a1(_0x41ec8c),_0x4fc5d6(_0x28a371);}):_0x35a6a1(window[_0x10e6cd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19be3e));}return _0x4fc5d6(_0x338023),_0xaf2583>>>0x0;}function _0x4c550b(_0x797ad7){return _0x797ad7[_0x10e6cd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10e6cd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10e6cd([0x30]));}function _0x5564b5(_0x357971){return _0x357971[_0x10e6cd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10e6cd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10e6cd([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fa100(_0x5509cb){return _0x2057c6[_0x10e6cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10e6cd([0x68,0x61,0x73])](_0x5509cb);}function _0x1dd7f7(_0x24d0f1){return _0x2057c6[_0x10e6cd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x10e6cd([0x67,0x65,0x74])](_0x24d0f1);}function _0x2eee9f(){}function _0x10e6cd(_0x9d72e){return _0x9d72e['map'](_0x52c404=>String['fromCharCode'](_0x52c404))['join']('');}_0xd60bdf(await _0x35dda9());}(this);}set['adapter'](_0x46579f){if(this['_adapter'])throw new _0x24f8f4('track-changes-adapter-already-set',this);this['_adapter']=_0x46579f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a58fc=!0x1,toJSON:_0x1e554d=!0x1}={}){const _0x619605=[];for(const _0x27f962 of this['_suggestions']['values']())_0x1a58fc&&!_0x27f962['isInContent']||_0x619605['push'](_0x27f962);return _0x1e554d?_0x619605['map'](_0x18f526=>_0x18f526['toJSON']()):_0x619605;}['getSuggestion'](_0xbe4da6){const _0x426f19=this['_suggestions']['get'](_0xbe4da6);if(!_0x426f19)throw new _0x24f8f4('track-changes-suggestion-not-found',this);return _0x426f19;}['hasSuggestion'](_0x2a616e){return this['_suggestions']['has'](_0x2a616e);}['addSuggestionData'](_0x4dbaf5){const {authorId:_0x5a4c17,id:_0x17561f,originalSuggestionId:_0x1568e0,attributes:_0x40a8fd}=_0x4dbaf5,[_0x2f90ff,_0x122b38]=_0x4dbaf5['type']['split'](':'),_0x3b109c=this['_suggestions']['get'](_0x17561f)||this['_createSuggestion'](_0x2f90ff,_0x122b38,_0x17561f,_0x5a4c17,_0x40a8fd,_0x1568e0);if(this['_addThreadToSuggestion'](_0x3b109c),this['_checkSuggestionCorrectness'](_0x3b109c,_0x2f90ff,_0x122b38||null,_0x5a4c17),_0x3b109c['createdAt']=_0x4dbaf5['createdAt'],_0x3b109c['_isDataLoaded']=!0x0,_0x40a8fd&&_0x40a8fd['@external']){const _0x1df892=_0x40a8fd['@external'],_0x1fc0dc=this['_getExternalAuthor'](_0x1df892['authorName']);_0x3b109c['authoredAt']=_0x1df892['createdAt'],_0x3b109c['author']=_0x1fc0dc,_0x3b109c['isExternal']=!0x0;}else _0x3b109c['authoredAt']=_0x4dbaf5['createdAt'];switch(_0x4dbaf5['data']&&(_0x3b109c['data']=_0x4dbaf5['data']),_0x4dbaf5['attributes']&&(_0x3b109c['attributes']=_0x4dbaf5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b109c['_saved']=!0x0),this['_suggestionState']['get'](_0x3b109c)){case'notReady':this['_suggestionState']['set'](_0x3b109c,'dataReady');break;case'markerReady':_0x3b109c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b109c])),this['_refreshSuggestionsChain'](new Set([_0x3b109c])),this['_suggestionState']['set'](_0x3b109c,'ready'),this['fire']('suggestionLoaded',_0x3b109c)):this['_suggestionState']['set'](_0x3b109c,'removed');}return _0x3b109c;}['acceptSuggestion'](_0x1865a9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3bba23 of _0x1865a9['getAllAdjacentSuggestions']())_0x3bba23['accept']();});});}['discardSuggestion'](_0xe03195){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d4de3 of _0xe03195['getAllAdjacentSuggestions']())_0x4d4de3['discard']();});});}['enableCommand'](_0x211005,_0x3caa2c){const _0x2e176b=this['editor']['commands']['get'](_0x211005);if(!_0x2e176b)throw new _0x24f8f4('track-changes-command-not-found',this,{'commandName':_0x211005});if(this['_enabledCommands']['has'](_0x2e176b))throw new _0x24f8f4('track-changes-enable-command-twice',this,{'commandName':_0x211005});this['_enabledCommands']['add'](_0x2e176b),_0x3caa2c&&_0x2e176b['on']('execute',(_0x328cb1,_0x87e34)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x87e34['length']>0x0&&_0x87e34[_0x87e34['length']-0x1]&&_0x87e34[_0x87e34['length']-0x1]['forceDefaultExecution']?_0x87e34['pop']():(_0x328cb1['return']=_0x3caa2c((..._0x398fa6)=>_0x2e176b['execute'](..._0x398fa6,{'forceDefaultExecution':!0x0}),..._0x87e34),_0x328cb1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2918d5){let _0x473e3f,_0x2675f8;const _0x11d362=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x473e3f=_0x2918d5();}catch(_0x503f55){_0x2675f8=_0x503f55;}return _0x11d362||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2675f8&&_0x24f8f4['rethrowUnexpectedError'](_0x2675f8,this),_0x473e3f;}['markInsertion'](_0x5848b9,_0x40f024=null,_0x354d2d={}){if(_0x5848b9['isCollapsed'])return null;const _0x5cb509=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x354d2d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2661,meta:_0x3b18db}of this['_findSuggestions'](_0x5848b9,'insertion'))if(_0x3b18db['isOwn']){if(!_0x3b18db['isNextTo']){if(_0x3b18db['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x4d2661,_0x354d2d))continue;return _0x4d2661;}if(Xt(_0x4d2661,_0x354d2d))return _0x4d2661;this['_breakSuggestionMarker'](_0x4d2661,_0x5848b9['start'],_0x5848b9['end']);break;}if(_0x40f024==_0x4d2661['subType']&&Xt(_0x4d2661,_0x354d2d)){const _0x261050=_0x4d2661['getFirstRange']();return _0x261050['start']['isEqual'](_0x5848b9['end'])?this['_setSuggestionRange'](_0x4d2661,this['_model']['createRange'](_0x5848b9['start'],_0x261050['end'])):this['_setSuggestionRange'](_0x4d2661,this['_model']['createRange'](_0x261050['start'],_0x5848b9['end'])),_0x4d2661;}}const _0xfee0fc=_0x5bc718(),_0x2cde8b=_0x5cb509['id'],_0x2de96c=_0x40f024?'insertion:'+_0x40f024:'insertion',_0x348796=this['_setSuggestionData']({'id':_0xfee0fc,'type':_0x2de96c,'createdAt':new Date(),'authorId':_0x2cde8b,'attributes':_0x354d2d});return this['_addSuggestionMarker'](_0x2de96c,_0xfee0fc,_0x2cde8b,_0x5848b9),_0x348796;}['markMultiRangeInsertion'](_0x16723c,_0x2a41d3='multi',_0x2f7375={}){const _0x7e7047=this['editor']['plugins']['get']('Users')['me'],_0x7e3660=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a41d3,'join');this['_trackingSessionId']&&(_0x2f7375['trackingSessionId']=this['_trackingSessionId']);for(const _0x2cdf35 of this['getSuggestions']())if(_0x2cdf35['author']['id']==_0x7e7047['id']&&'insertion'==_0x2cdf35['type']&&_0x2cdf35['subType']==_0x2a41d3&&Xt(_0x2cdf35,_0x2f7375)&&(_0x7e3660(_0x2cdf35['getRanges'](),_0x16723c)||_0x7e3660(_0x16723c,_0x2cdf35['getRanges']()))){for(const _0x13c676 of _0x16723c)_0x2cdf35['addRange'](_0x13c676);return _0x2cdf35;}for(const {suggestion:_0x201133,meta:_0x1bee3d}of this['_findSuggestions'](_0x16723c,'insertion')){if(!_0x1bee3d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1bee3d['containsRangeInObject'])continue;if(!Xt(_0x201133,_0x2f7375))continue;let _0x41f64b=!0x0;for(const _0x192fb8 of _0x201133['getRanges']())for(const _0x1b9309 of _0x16723c)if(!_0x192fb8['containsRange'](_0x1b9309)){_0x41f64b=!0x1;break;}if(_0x41f64b)return _0x201133;}const _0x5e1922=_0x5bc718(),_0x29e19d=_0x7e7047['id'],_0x33de4b='insertion:'+_0x2a41d3,_0x34b817=this['_setSuggestionData']({'id':_0x5e1922,'type':_0x33de4b,'createdAt':new Date(),'authorId':_0x29e19d,'attributes':_0x2f7375});for(const _0x20d4f3 of _0x16723c)this['_addSuggestionMarker'](_0x33de4b,_0x5e1922,_0x29e19d,_0x20d4f3,T['getMultiRangeId']());return _0x34b817;}['markInlineFormat'](_0x1e631b,_0x5d0df1,_0x50ec0f=null,_0x5c8e48={}){if(_0x50ec0f=_0x50ec0f||Lt(_0x5d0df1),_0x1e631b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5c8e48['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x237078=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50ec0f,'accept');return this['forceDefaultExecution'](()=>_0x237078([_0x1e631b],_0x5d0df1,_0x5c8e48)),null;}const _0x3ab47b=this['editor']['plugins']['get']('Users')['me'],_0x225a0d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11c641,meta:_0x2555b7}of this['_findSuggestions'](_0x1e631b,'insertion'))_0x2555b7['isOwn']&&!_0x2555b7['isInsideObject']&&_0x225a0d['push'](..._0x11c641['getRanges']());}const _0x4f36bb=function(_0x2308b6,_0x58b05e){const _0x26fc96=[];for(const _0x4d4f4c of _0x58b05e){const _0x56c5bf=_0x2308b6['getIntersection'](_0x4d4f4c);_0x56c5bf&&_0x26fc96['push'](_0x56c5bf);}return _0x26fc96;}(_0x1e631b,_0x225a0d),_0x2cabd2=function(_0x55afb3,_0x4019be){const _0x3ffcb0=[_0x55afb3];for(const _0x5292bc of _0x4019be){let _0x20881a=0x0;for(;_0x20881a<_0x3ffcb0['length'];){const _0x3afb07=_0x3ffcb0[_0x20881a]['getDifference'](_0x5292bc);_0x3ffcb0['splice'](_0x20881a,0x1,..._0x3afb07),_0x20881a+=_0x3afb07['length'];}}return _0x3ffcb0;}(_0x1e631b,_0x225a0d);_0x4f36bb['length']&&this['_model']['change'](()=>{for(const _0x3ce231 of _0x4f36bb){const _0x3b39f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x50ec0f,'accept');this['forceDefaultExecution'](()=>_0x3b39f5([_0x3ce231],_0x5d0df1,_0x5c8e48));}});for(const _0x434846 of _0x2cabd2){let _0x447532=null,_0x20d3c9=_0x434846['start'],_0x21eb11=_0x434846['end'];for(const {suggestion:_0x13d99e,meta:_0x15f77b}of this['_findSuggestions'](_0x434846,'formatInline')){if(!_0x15f77b['isOwn'])continue;if(_0x13d99e['subType']!=_0x50ec0f)continue;if(!Xt(_0x13d99e,_0x5c8e48))continue;const _0x4f1a57=_0x13d99e['getFirstRange']();if(_0x4f1a57['containsRange'](_0x434846,!0x0))return null;_0x20d3c9=_0x20d3c9['isBefore'](_0x4f1a57['start'])?_0x20d3c9:_0x4f1a57['start'],_0x21eb11=_0x21eb11['isAfter'](_0x4f1a57['end'])?_0x21eb11:_0x4f1a57['end'],_0x447532?_0x4f1a57['start']['isBefore'](_0x447532['getFirstRange']()['start'])?(_0x447532['removeMarkers'](),_0x447532=_0x13d99e):_0x13d99e['removeMarkers']():_0x447532=_0x13d99e;}const _0x1031a7=this['_model']['createRange'](_0x20d3c9,_0x21eb11);if(_0x447532)this['_setSuggestionRange'](_0x447532,_0x1031a7);else{const _0x64005b=_0x5bc718(),_0x3c244c=_0x3ab47b['id'];this['_setSuggestionData']({'id':_0x64005b,'type':'formatInline:'+_0x50ec0f,'data':_0x5d0df1,'createdAt':new Date(),'authorId':_0x3c244c,'attributes':_0x5c8e48}),this['_addSuggestionMarker']('formatInline:'+_0x50ec0f,_0x64005b,_0x3c244c,_0x1031a7);}}return null;}['markBlockFormat'](_0x4cef2d,_0x4031fe,_0x437b08=[],_0x314c25=null,_0x153cd1={}){_0x4031fe['formatGroupId']||(_0x4031fe['formatGroupId']=_0x4031fe['commandName']),_0x4031fe['multipleBlocks']=_0x4cef2d['is']('range'),_0x314c25=_0x314c25||Lt(_0x4031fe);const _0x152bf7=_0x437b08['map'](_0x59fc87=>zt(_0x59fc87,this['_model'])),_0x497cc9=_0x4cef2d['is']('range')?_0x4cef2d:zt(_0x4cef2d,this['_model']);if(this['_trackingSessionId']&&(_0x153cd1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b0809=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x314c25,'accept');return this['forceDefaultExecution'](()=>_0x5b0809([_0x497cc9],_0x4031fe,_0x153cd1)),null;}_0x152bf7['push'](_0x497cc9);let _0x296cfe=!0x0;for(const _0x4a7b72 of _0x152bf7)if(!this['_rangeIsInLocalUserInsertion'](_0x4a7b72)){_0x296cfe=!0x1;break;}if(_0x296cfe&&'always'!==this['_trackFormatChanges']){const _0x357a1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x314c25,'accept');return this['forceDefaultExecution'](()=>_0x357a1f([_0x497cc9],_0x4031fe,_0x153cd1)),null;}let _0x410bd3=null,_0x1a5af5=_0x497cc9['start'],_0x1a8738=_0x497cc9['end'];for(const {suggestion:_0x275c90,meta:_0x454d32}of this['_findSuggestions'](_0x497cc9,'formatBlock')){if(!_0x454d32['isOwn'])continue;if(_0x454d32['isNextTo']||_0x454d32['containsRangeInObject']||_0x454d32['isInsideObject'])continue;if(_0x275c90['data']['formatGroupId']!=_0x4031fe['formatGroupId'])continue;if(!Xt(_0x275c90,_0x153cd1))continue;const _0x51d7a7=_0x275c90['getFirstRange']();if(_0x275c90['subType']==_0x314c25){if(_0x51d7a7['containsRange'](_0x497cc9,!0x0))return null;_0x1a5af5=_0x1a5af5['isBefore'](_0x51d7a7['start'])?_0x1a5af5:_0x51d7a7['start'],_0x1a8738=_0x1a8738['isAfter'](_0x51d7a7['end'])?_0x1a8738:_0x51d7a7['end'],_0x410bd3?_0x51d7a7['start']['isBefore'](_0x410bd3['getFirstRange']()['start'])?(_0x410bd3['removeMarkers'](),_0x410bd3=_0x275c90):_0x275c90['removeMarkers']():_0x410bd3=_0x275c90;}else{const _0x3beed7=_0x497cc9['getIntersection'](_0x51d7a7);this['_cutOutSuggestionMarker'](_0x275c90,_0x3beed7);}}const _0x31623b=this['editor']['plugins']['get']('Users')['me'],_0x117aa9=_0x5bc718(),_0x2ae7ae=_0x31623b['id'];if(_0x410bd3)return this['_setSuggestionRange'](_0x410bd3,this['_model']['createRange'](_0x1a5af5,_0x1a8738)),_0x410bd3;{const _0x4015a7=this['_setSuggestionData']({'id':_0x117aa9,'type':'formatBlock:'+_0x314c25,'data':_0x4031fe,'createdAt':new Date(),'authorId':_0x2ae7ae,'attributes':_0x153cd1});return this['_addSuggestionMarker']('formatBlock:'+_0x314c25,_0x117aa9,_0x2ae7ae,this['_model']['createRange'](_0x1a5af5,_0x1a8738)),_0x4015a7;}}['markMultiRangeBlockFormat'](_0x329d11,_0x2c1549,_0x1b890c=[],_0x53005c=null,_0x2e4b9b={}){_0x2c1549['formatGroupId']||(_0x2c1549['formatGroupId']=_0x2c1549['commandName']);const _0x5d99ec=_0x329d11[0x0];_0x2c1549['multipleBlocks']=_0x5d99ec['is']('range'),_0x53005c=_0x53005c||Lt(_0x2c1549);const _0x589e0d=_0x1b890c['map'](_0x2a6118=>zt(_0x2a6118,this['_model'])),_0x2f60bc=_0x5d99ec['is']('range')?_0x329d11:_0x329d11['map'](_0x3e5a5f=>zt(_0x3e5a5f,this['_model']));if(this['_trackingSessionId']&&(_0x2e4b9b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a3765=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'accept');return this['forceDefaultExecution'](()=>_0x1a3765(_0x2f60bc,_0x2c1549,_0x2e4b9b)),null;}_0x589e0d['push'](..._0x2f60bc);let _0x23c08d=!0x0;for(const _0x55f741 of _0x589e0d)if(!this['_rangeIsInLocalUserInsertion'](_0x55f741)){_0x23c08d=!0x1;break;}if(_0x23c08d&&'always'!==this['_trackFormatChanges']){const _0x50b490=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'accept');return this['forceDefaultExecution'](()=>_0x50b490(_0x2f60bc,_0x2c1549,_0x2e4b9b)),null;}const _0x4f4a6e=this['editor']['plugins']['get']('Users')['me'];for(const _0x50890a of this['getSuggestions']()){const _0x3f0a40=_0x50890a['data'];if(_0x50890a['author']['id']!=_0x4f4a6e['id'])continue;if('formatBlock'!=_0x50890a['type']||_0x3f0a40['formatGroupId']!=_0x2c1549['formatGroupId'])continue;if(!Xt(_0x50890a,_0x2e4b9b))continue;const _0x320502=_0x50890a['subType']==_0x53005c;for(let _0x27f70d=0x0;_0x27f70d<_0x2f60bc['length'];_0x27f70d++){const _0x57f4be=_0x2f60bc[_0x27f70d];for(const _0x1c9b67 of _0x50890a['getMarkers']()){const _0x5ebd10=_0x1c9b67['getRange']();if(_0x57f4be['isEqual'](_0x5ebd10)){_0x320502?(_0x2f60bc['splice'](_0x27f70d,0x1),_0x27f70d--):_0x50890a['removeMarker'](_0x1c9b67['name']);break;}}}}if(0x0==_0x2f60bc['length'])return null;const _0x40f97d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53005c,'join');for(const _0x7f0ce3 of this['getSuggestions']()){const _0x36039e=_0x7f0ce3['data'];if(_0x7f0ce3['author']['id']==_0x4f4a6e['id']&&('formatBlock'==_0x7f0ce3['type']&&_0x36039e['formatGroupId']==_0x2c1549['formatGroupId']&&_0x7f0ce3['subType']==_0x53005c&&Xt(_0x7f0ce3,_0x2e4b9b)&&(_0x40f97d(_0x7f0ce3['getRanges'](),_0x2f60bc)||_0x40f97d(_0x2f60bc,_0x7f0ce3['getRanges']())))){for(const _0x3460b7 of _0x2f60bc)_0x7f0ce3['addRange'](_0x3460b7);return _0x7f0ce3;}}const _0x106dd2=_0x5bc718(),_0x540d98=_0x4f4a6e['id'],_0x231866='formatBlock:'+_0x53005c,_0x25cfc4=this['_setSuggestionData']({'id':_0x106dd2,'type':_0x231866,'data':_0x2c1549,'createdAt':new Date(),'authorId':_0x540d98,'attributes':_0x2e4b9b});for(const _0x43c5ae of _0x2f60bc)this['_addSuggestionMarker'](_0x231866,_0x106dd2,_0x540d98,_0x43c5ae,T['getMultiRangeId']());return _0x25cfc4;}['markDeletion'](_0x59f242,_0x588d15=null,_0xb78fca={}){if(_0x59f242['isCollapsed'])return null;const _0x538b61=this['editor']['plugins']['get']('Users')['me'],_0x1e7527=new _0x3561c8(_0x59f242['start'],_0x59f242['end']);this['_trackingSessionId']&&(_0xb78fca['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46c515,meta:_0x5c711e}of this['_findSuggestions'](_0x1e7527,'insertion'))if(_0x5c711e['isOwn']&&!_0x5c711e['isNextTo']){if(_0x46c515['isMultiRange']){const _0x14b02d=_0x46c515['getRanges']()['filter'](_0x2d5647=>'$graveyard'!=_0x2d5647['root']['rootName']);_0x14b02d['every'](_0x326f27=>_0x1e7527['containsRange'](_0x326f27,!0x0))&&_0x46c515['discard']();if(_0x14b02d['some'](_0x146163=>_0x146163['containsRange'](_0x1e7527,!0x0))){const _0x2bd981=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x588d15,'accept');return this['forceDefaultExecution'](()=>_0x2bd981([_0x1e7527],null,_0xb78fca)),null;}}else{const _0x54a02e=_0x1e7527['getIntersection'](_0x46c515['getFirstRange']());null!==_0x54a02e&&_0x46c515['_onDiscard']([_0x54a02e],null,_0xb78fca);}}if(_0x1e7527['detach'](),_0x1e7527['isCollapsed']||'$graveyard'==_0x1e7527['root']['rootName'])return null;let _0x1152e6=null,_0x51dd68=_0x1e7527['start'],_0x5b5b51=_0x1e7527['end'];const _0x2831e1=this['_findSuggestions'](_0x1e7527,'deletion');for(const {suggestion:_0xf2fb23,meta:_0x217f09}of _0x2831e1){const _0x10bc30=this['_model']['createRange'](_0x51dd68,_0x5b5b51);if(_0x217f09['isOwn']&&(this['_mergeNestedSuggestions']||!_0x217f09['containsRangeInObject']&&!_0x217f09['isInsideObject'])){if(_0xf2fb23['isMultiRange']){if(!Xt(_0xf2fb23,_0xb78fca))continue;let _0x228205=!0x0;for(const _0x138979 of _0xf2fb23['getRanges']()){if(_0x138979['containsRange'](_0x10bc30,!0x0))return _0xf2fb23;_0x10bc30['containsRange'](_0x138979)||(_0x228205=!0x1);}_0x228205&&_0xf2fb23['discard']();}else{const _0x315557=_0xf2fb23['getFirstRange']();if(_0x315557['containsRange'](_0x10bc30,!0x0))return _0xf2fb23;if(!Xt(_0xf2fb23,_0xb78fca)){_0x10bc30['containsRange'](_0x315557)?_0xf2fb23['removeMarkers']():_0x315557['containsPosition'](_0x51dd68)?_0x51dd68=_0x315557['end']:_0x315557['containsPosition'](_0x5b5b51)&&(_0x5b5b51=_0x315557['start']);continue;}_0x51dd68=_0x51dd68['isBefore'](_0x315557['start'])?_0x51dd68:_0x315557['start'],_0x5b5b51=_0x5b5b51['isAfter'](_0x315557['end'])?_0x5b5b51:_0x315557['end'],_0xb78fca=Object['assign']({},_0xf2fb23['attributes']),_0x1152e6?_0x315557['start']['isBefore'](_0x1152e6['getFirstRange']()['start'])?(_0x1152e6['removeMarkers'](),_0x1152e6=_0xf2fb23):_0xf2fb23['removeMarkers']():_0x1152e6=_0xf2fb23;}}}if(_0x1152e6)return this['_setSuggestionRange'](_0x1152e6,this['_model']['createRange'](_0x51dd68,_0x5b5b51)),_0x1152e6;{const _0x1b1e52=_0x5bc718(),_0x1addf1=this['_model']['createRange'](_0x51dd68,_0x5b5b51),_0x54e409=_0x538b61['id'],_0x1e6a35=_0x588d15?'deletion:'+_0x588d15:'deletion',_0x17e983=this['_setSuggestionData']({'id':_0x1b1e52,'type':_0x1e6a35,'createdAt':new Date(),'authorId':_0x54e409,'attributes':_0xb78fca});return this['_addSuggestionMarker'](_0x1e6a35,_0x1b1e52,_0x54e409,_0x1addf1),_0x17e983;}}['markMultiRangeDeletion'](_0x467f15,_0x440294='multi',_0x561e9e={}){const _0x3a15d1=this['editor']['plugins']['get']('Users')['me'],_0x2df505=_0x467f15['map'](_0x1335e3=>new _0x3561c8(_0x1335e3['start'],_0x1335e3['end'])),_0x5d7c90=new Set();this['_trackingSessionId']&&(_0x561e9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x56ab9c,meta:_0x2f03a3}of this['_findSuggestions'](_0x2df505,'insertion'))_0x2f03a3['isOwn']&&!_0x2f03a3['isNextTo']&&_0x5d7c90['add'](_0x56ab9c);for(const _0x15c011 of _0x5d7c90)if(_0x15c011['isMultiRange']){const _0x3bfe9a=_0x15c011['getRanges']();(!_0x15c011['attributes']||!_0x15c011['attributes']['skipNestingCheck'])&&(_0x3bfe9a['every'](_0x39146=>_0x2df505['some'](_0x4a717f=>_0x4a717f['containsRange'](_0x39146,!0x0)))&&_0x15c011['discard']());if(_0x2df505['every'](_0x11d2f7=>_0x3bfe9a['some'](_0x3aa27e=>_0x3aa27e['containsRange'](_0x11d2f7,!0x0)))){const _0x7ef18b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'accept');return this['forceDefaultExecution'](()=>_0x7ef18b(_0x467f15,null,_0x561e9e)),null;}}else{const _0xeff1b=_0x15c011['getFirstRange']();_0x2df505['some'](_0x30f719=>_0x30f719['containsRange'](_0xeff1b,!0x0))&&_0x15c011['discard']();if(_0x2df505['every'](_0x2edd60=>_0xeff1b['containsRange'](_0x2edd60,!0x0))){const _0x9b08db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'accept');return this['forceDefaultExecution'](()=>_0x9b08db(_0x2df505,null,_0x561e9e)),null;}}const _0x3b52a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x440294,'join');let _0x5e5cb1=null;for(const _0x1b7786 of this['getSuggestions']())if(_0x1b7786['author']['id']==_0x3a15d1['id']&&_0x1b7786['isInContent']&&'deletion'==_0x1b7786['type']&&_0x1b7786['subType']==_0x440294&&Xt(_0x1b7786,_0x561e9e)&&(_0x3b52a3(_0x1b7786['getRanges'](),_0x2df505)||_0x3b52a3(_0x2df505,_0x1b7786['getRanges']()))){if(_0x5e5cb1){if(_0x1b7786['commentThread']&&_0x1b7786['commentThread']['length'])continue;for(const _0x385a0a of _0x1b7786['getRanges']())_0x5e5cb1['isIntersectingWithRange'](_0x385a0a)||_0x5e5cb1['addRange'](_0x385a0a);_0x1b7786['removeMarkers']();}else{_0x5e5cb1=_0x1b7786;for(const _0x5476a1 of _0x2df505)_0x1b7786['isIntersectingWithRange'](_0x5476a1)||_0x1b7786['addRange'](_0x5476a1);}}if(_0x5e5cb1)return _0x5e5cb1;_0x5d7c90['clear']();for(const {suggestion:_0x5da935,meta:_0x204418}of this['_findSuggestions'](_0x2df505,'deletion'))_0x204418['isOwn']&&(this['_mergeNestedSuggestions']||!_0x204418['containsRangeInObject']&&!_0x204418['isInsideObject'])&&Xt(_0x5da935,_0x561e9e)&&_0x5d7c90['add'](_0x5da935);for(const _0x1291d7 of _0x5d7c90){const _0x565ddf=_0x1291d7['getRanges']();if(!_0x561e9e||!_0x561e9e['skipNestingCheck']){if(_0x2df505['every'](_0x11752e=>_0x565ddf['some'](_0x2d39bf=>_0x2d39bf['containsRange'](_0x11752e,!0x0))))return _0x1291d7;}(!_0x1291d7['attributes']||!_0x1291d7['attributes']['skipNestingCheck'])&&(_0x565ddf['every'](_0x142901=>_0x2df505['some'](_0x28b45b=>_0x28b45b['containsRange'](_0x142901,!0x0)))&&_0x1291d7['discard']());}const _0x5398cd=_0x5bc718(),_0x331ce2=_0x3a15d1['id'],_0x3ec5e5='deletion:'+_0x440294,_0x42ea0d=this['_setSuggestionData']({'id':_0x5398cd,'type':_0x3ec5e5,'createdAt':new Date(),'authorId':_0x331ce2,'attributes':_0x561e9e});for(const _0x193b86 of _0x2df505)_0x193b86['detach'](),_0x193b86['isCollapsed']||'$graveyard'==_0x193b86['root']['rootName']||this['_addSuggestionMarker'](_0x3ec5e5,_0x5398cd,_0x331ce2,_0x193b86,T['getMultiRangeId']());return _0x42ea0d;}['markAttributeChange'](_0x35c7ca,_0x37a870,_0x441c27,_0x18ba84,_0x820be1){if(_0x35c7ca['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a121a=this['editor']['plugins']['get']('Users')['me']['id'],_0xd8ac48=Array['from'](this['_suggestions']['values']())['filter'](_0x24f294=>'attribute'==_0x24f294['type']&&_0x24f294['data']['key']==_0x37a870&&_0x24f294['isIntersectingWithRange'](_0x35c7ca));if(this['_trackingSessionId']&&(_0x820be1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x43f0f5=this['_findSuggestions'](_0x35c7ca,'insertion')['filter'](({meta:_0x2ae59c})=>_0x2ae59c['isOwn']&&!_0x2ae59c['isInsideObject']&&!_0x2ae59c['isNextTo'])['map'](({suggestion:_0x3ff8ec})=>_0x3ff8ec);_0xd8ac48['unshift'](..._0x43f0f5);}const _0x4d68d1=new Map([[_0x35c7ca,_0x441c27]]);for(const _0x15eb6e of _0xd8ac48){const _0x415c39='attribute'==_0x15eb6e['type']?_0x15eb6e['data']['oldValue']:void 0x0,_0x2fc7c8=_0x15eb6e['getFirstRange'](),_0x2652f8=Array['from'](_0x4d68d1['keys']())['find'](_0x4efed9=>_0x4efed9['isIntersecting'](_0x2fc7c8));if(!_0x2652f8)continue;const _0x35e4e2=_0x2652f8['getDifference'](_0x2fc7c8);this['_isBlockAttribute'](_0x37a870)&&'insertion'==_0x15eb6e['type']&&0x0!=_0x35e4e2['length']||(_0x4d68d1['delete'](_0x2652f8),_0x35e4e2['forEach'](_0x4d8acb=>{_0x4d68d1['set'](_0x4d8acb,_0x441c27);}),'insertion'!=_0x15eb6e['type']&&_0x415c39!=_0x18ba84&&_0x4d68d1['set'](_0x2652f8['getIntersection'](_0x2fc7c8),_0x415c39));}const _0x17b8a1=[];for(const [_0x204c44,_0x2a024d]of _0x4d68d1){const _0x8aa962=_0x5bc718(),_0x26aca9={'key':_0x37a870,'oldValue':_0x2a024d,'newValue':_0x18ba84};_0x37a870['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':_0x37a870});const _0x147d20=('attribute:'+(_0x37a870+'|'+Lt({'newValue':_0x18ba84})))['substring'](0x0,0x3c),_0x25fe0c=this['_setSuggestionData']({'id':_0x8aa962,'type':_0x147d20,'data':_0x26aca9,'createdAt':new Date(),'authorId':_0x2a121a,'attributes':_0x820be1});_0x17b8a1['push'](_0x25fe0c),this['_addSuggestionMarker'](_0x147d20,_0x8aa962,_0x2a121a,_0x204c44);}return _0x17b8a1;}['enableDefaultAttributesIntegration'](_0x17f9bb){this['enableCommand'](_0x17f9bb,(_0x721569,..._0x320a6c)=>{this['recordAttributeChanges'](()=>{_0x721569(..._0x320a6c);});});}['registerBlockAttribute'](_0x4490a0){this['_blockAttributeKeys']['add'](_0x4490a0);}['registerInlineAttribute'](_0x129a7c){this['_inlineAttributeKeys']['add'](_0x129a7c);}['startTrackingSession'](_0x3268b4){return this['_trackingSessionId']=void 0x0!==_0x3268b4?_0x3268b4:_0x5bc718(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1f8e8b){return'attribute'==_0x1f8e8b['type']?_0x1f8e8b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x45cf6a,_0x1f8102){const _0x5a0825=_0x45cf6a['getFirstMarker']();this['_model']['change'](_0x154725=>{_0x154725['updateMarker'](_0x5a0825,{'range':_0x1f8102});});}['_addThreadToSuggestion'](_0x1e7444){const _0x1126b3=_0x1e7444['id'],_0xf3a17c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1126b3)||this['_commentsRepository']['addCommentThread']({'channelId':_0xf3a17c,'threadId':_0x1126b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15faa6=this['_commentsRepository']['getCommentThread'](_0x1126b3);_0x15faa6['unbind']('isRemovable'),_0x15faa6['isRemovable']=!0x1,_0x1e7444['commentThread']=_0x15faa6;}['_checkSuggestionCorrectness'](_0x43320d,_0x51bff4,_0x33113f,_0x3865e5){if(_0x43320d['type']!=_0x51bff4||_0x43320d['subType']!=_0x33113f||_0x43320d['creator']['id']!=_0x3865e5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x24f8f4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x389e15,_0x358bbd){const _0x225f71=_0x389e15['getFirstRange']();if(_0x358bbd['isEqual'](_0x225f71))_0x389e15['removeMarkers']();else{if(_0x225f71['containsRange'](_0x358bbd)){const _0x3f2672=this['_model']['createPositionAt'](_0x358bbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x225f71['start'],_0x3f2672));const _0xeebac=_0x5bc718(),_0x1b35dd=_0x389e15['creator']['id'],_0x1d36df=_0x389e15['type']+':'+_0x389e15['subType'];this['_setSuggestionData']({'id':_0xeebac,'type':_0x1d36df,'createdAt':new Date(),'authorId':_0x1b35dd,'data':_0x389e15['data'],'attributes':_0x389e15['attributes']});const _0x11be97=this['_model']['createPositionAt'](_0x358bbd['end']['parent'],'after'),_0x5099d9=this['_model']['createRange'](_0x11be97,_0x225f71['end']);this['_addSuggestionMarker'](_0x1d36df,_0xeebac,_0x1b35dd,_0x5099d9);}else{if(_0x225f71['containsPosition'](_0x358bbd['start'])){const _0x1e4f70=this['_model']['createPositionAt'](_0x358bbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x225f71['start'],_0x1e4f70));}else{const _0x3c84ee=this['_model']['createPositionAt'](_0x358bbd['end']['parent'],'after');this['_setSuggestionRange'](_0x389e15,this['_model']['createRange'](_0x3c84ee,_0x225f71['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4a400a){for(const {suggestion:_0x6f7d36,meta:_0xed7634}of this['_findSuggestions'](_0x4a400a,'insertion')){if(!_0xed7634['isOwn'])continue;const _0x931a83=_0x6f7d36['getRanges']();for(const _0x363e85 of _0x931a83)if(!_0x4a400a['getDifference'](_0x363e85)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x167a34){return this['editor']['plugins']['get']('Users')['getUser'](_0x167a34);}['_getExternalAuthor'](_0x576bd0){const _0x352fe6=this['editor']['plugins']['get']('Users'),_0x95e716=_0x34df5a('external:'+_0x576bd0),_0x38fcc9=_0x352fe6['getUser'](_0x95e716);return _0x38fcc9||_0x352fe6['addUser']({'id':_0x95e716,'name':_0x576bd0});}['_createSuggestion'](_0x2bf79d,_0x404cf7,_0x1737cf,_0x403a98,_0x576876,_0x4633d5){const _0x412da8=this['_getAuthorFromId'](_0x403a98);if(!_0x412da8)throw new _0x24f8f4('track-changes-user-not-found',this,{'authorId':_0x403a98,'suggestionId':_0x1737cf});const _0x2634de=this['_suggestionFactory']['buildSuggestion'](_0x2bf79d,_0x404cf7,_0x1737cf,_0x412da8,_0x576876,_0x2b80cb=>{this['_updateSuggestionData'](_0x1737cf,{'attributes':_0x2b80cb});const _0x24caee=this['getSuggestion'](_0x1737cf);this['_joinWithAdjacentSuggestions'](new Set([_0x24caee])),this['_refreshSuggestionsChain'](new Set([_0x24caee]));},_0x4633d5);return this['listenTo'](_0x2634de,'accept',()=>{this['_updateSuggestionData'](_0x1737cf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2634de,'discard',()=>{this['_updateSuggestionData'](_0x1737cf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1737cf,_0x2634de),this['_suggestionState']['set'](_0x2634de,'notReady'),_0x2634de;}['_splitMarkerName'](_0x5c0717){const _0x128833=_0x5c0717['split'](':');return{'group':_0x128833[0x0],'type':_0x128833[0x1],'subType':_0x128833['length']>=0x5?_0x128833[0x2]:null,'id':_0x128833['length']<0x5?_0x128833[0x2]:_0x128833[0x3],'authorId':_0x128833['length']<0x5?_0x128833[0x3]:_0x128833[0x4],'markerCount':0x6==_0x128833['length']?_0x128833[0x5]:null};}['_breakSuggestionMarker'](_0x6624c6,_0x210b09,_0x3831ac){const _0x33c022=_0x6624c6['getFirstRange'](),_0x38d1a2=_0x33c022['start'],_0x593085=_0x33c022['end'];this['_setSuggestionRange'](_0x6624c6,this['_model']['createRange'](_0x38d1a2,_0x210b09));const _0x47aa9f=_0x5bc718(),_0x5421f7=_0x6624c6['creator']['id'],_0x26c822=_0x6624c6['type']+(_0x6624c6['subType']?':'+_0x6624c6['subType']:'');this['_setSuggestionData']({'id':_0x47aa9f,'type':_0x26c822,'createdAt':new Date(),'authorId':_0x5421f7,'originalSuggestionId':_0x6624c6['_originalSuggestionId']||_0x6624c6['id'],'attributes':_0x6624c6['attributes'],'data':_0x6624c6['data']});const _0x554a6d=this['_getAttributeKey'](_0x6624c6);('formatBlock'==_0x6624c6['type']||_0x554a6d&&this['_isBlockAttribute'](_0x554a6d))&&(_0x3831ac=this['_model']['createPositionBefore'](_0x3831ac['parent'])),this['_addSuggestionMarker'](_0x26c822,_0x47aa9f,_0x5421f7,this['_model']['createRange'](_0x3831ac,_0x593085));}['_findSuggestions'](_0x194366,_0x57890d=null){const _0x48481c=[],_0x2ea135=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x194366)||(_0x194366=[_0x194366]);for(const _0x3b07f7 of this['getSuggestions']()){if(!_0x3b07f7['isInContent'])continue;if(_0x57890d&&_0x3b07f7['type']!=_0x57890d)continue;let _0x2cb588=!0x1;for(const _0x3e9250 of _0x3b07f7['getRanges']()){for(const _0x5dda3e of _0x194366){const _0x59a727=_0x5dda3e['start']['isEqual'](_0x3e9250['end'])||_0x5dda3e['end']['isEqual'](_0x3e9250['start']);if(_0x59a727||_0x5dda3e['getIntersection'](_0x3e9250)){const _0x514278=_0x5dda3e['containsRange'](_0x3e9250)&&Ft(this['_model']['schema'],_0x3e9250['start'],_0x5dda3e),_0x38e853=_0x3e9250['containsRange'](_0x5dda3e)&&Ft(this['_model']['schema'],_0x5dda3e['start'],_0x3e9250);_0x48481c['push']({'suggestion':_0x3b07f7,'meta':{'isOwn':_0x2ea135==_0x3b07f7['author'],'isNextTo':_0x59a727,'isInsideObject':_0x514278,'containsRangeInObject':_0x38e853}}),_0x2cb588=!0x0;break;}}if(_0x2cb588)break;}}return _0x48481c;}['_addSuggestionMarker'](_0x29971a,_0x41fb41,_0x1ea2fa,_0x443d09,_0x1edf29){this['_model']['change'](_0x4ea8fd=>{let _0x2ba526='suggestion:'+_0x29971a+':'+_0x41fb41+':'+_0x1ea2fa;_0x1edf29&&(_0x2ba526=_0x2ba526+':'+_0x1edf29),_0x4ea8fd['addMarker'](_0x2ba526,{'range':_0x443d09,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x178420){const _0x5d0757=_0x178420['previous'],_0x4f5f62=_0x178420['next'];_0x178420['previous']=null,_0x178420['next']=null,null!=_0x5d0757&&_0x5d0757['next']==_0x178420&&(_0x5d0757['next']=_0x4f5f62),null!=_0x4f5f62&&_0x4f5f62['previous']==_0x178420&&(_0x4f5f62['previous']=_0x5d0757),'ready'==this['_suggestionState']['get'](_0x178420)&&(this['_suggestionState']['set'](_0x178420,'removed'),this['fire']('suggestionUnloaded',_0x178420,_0x5d0757,_0x4f5f62));}['_setSuggestionData'](_0x5ed9f9){const _0x34b641=_0x5ed9f9['id'],_0x4a7068=this['addSuggestionData'](_0x5ed9f9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x599c98=this['editor']['plugins']['get']('PendingActions'),_0xab1ed9=_0x4a7068['hasComments'],_0x26c01a=_0x4a7068['subType']?_0x4a7068['type']+':'+_0x4a7068['subType']:_0x4a7068['type'],_0x26cc9e=this['editor']['locale'],_0x43658d=_0x599c98['add'](o(_0x26cc9e,'PENDING_ACTION_SUGGESTION')),_0x24b8a7={'id':_0x34b641,'type':_0x26c01a,'hasComments':_0xab1ed9,'data':_0x5ed9f9['data']||null,'originalSuggestionId':_0x5ed9f9['originalSuggestionId']||null,'attributes':_0x4a7068['attributes']};this['_adapter']['addSuggestion'](_0x24b8a7)['then'](_0x5c330a=>{_0x4a7068['_saved']=!0x0,_0x599c98['remove'](_0x43658d),_0x5c330a&&_0x5c330a['createdAt']&&(this['_suggestions']['get'](_0x34b641)['createdAt']=_0x5c330a['createdAt']);})['catch'](_0x396106=>{throw _0x1aa416('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a7068['discard']();}),_0x4a7068['stopListening'](),this['_suggestions']['delete'](_0x4a7068['id']),this['_suggestionState']['delete'](_0x4a7068),_0x396106;});}return _0x4a7068;}['_isBlockAttribute'](_0x391436){return this['_blockAttributeKeys']['has'](_0x391436);}['_isInlineAttribute'](_0x3536bf){return this['_inlineAttributeKeys']['has'](_0x3536bf);}['_updateSuggestionData'](_0x5d5c9b,_0x3a70d6){const _0x4ba2f8=this['editor']['plugins']['get']('PendingActions'),_0x3cbe4a=this['getSuggestion'](_0x5d5c9b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3cbe4a['_saved']){const _0x51fd74=_0x4ba2f8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d5c9b,_0x3a70d6)['then'](()=>{_0x4ba2f8['remove'](_0x51fd74);});}else _0x3cbe4a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d5c9b,_0x3a70d6);});}}['_getSuggestionData'](_0x2cb364){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x24f8f4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2cb364);}['_handleNewSuggestionMarker'](_0x2775f2){const {id:_0x11b89d,type:_0x166318,subType:_0x4c4184,authorId:_0x487a88}=this['_splitMarkerName'](_0x2775f2),_0x326cfa=this['_suggestions']['get'](_0x11b89d)||this['_createSuggestion'](_0x166318,_0x4c4184,_0x11b89d,_0x487a88,{});switch(this['_checkSuggestionCorrectness'](_0x326cfa,_0x166318,_0x4c4184,_0x487a88),this['_suggestionState']['get'](_0x326cfa)){case'notReady':this['_getSuggestionData'](_0x11b89d)['then'](_0xa84c50=>{let _0x317c57=Promise['resolve']();_0xa84c50['hasComments']&&(_0x317c57=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11b89d})),_0x317c57['then'](()=>{this['addSuggestionData'](_0xa84c50)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x326cfa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11b89d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x326cfa,'ready'),this['fire']('suggestionLoaded',_0x326cfa);break;case'ready':this['fire']('suggestionChanged',_0x326cfa);}return _0x326cfa['addMarkerName'](_0x2775f2),_0x326cfa;}['_refreshSuggestionsChain'](_0x342984){const _0x40eeee=Array['from'](_0x342984),_0x1f7561=_0x40eeee['filter'](_0x3e549d=>'attribute'==_0x3e549d['type']);this['_refreshAttributeSuggestionsChain'](_0x1f7561);const _0x227e73=_0x40eeee['filter'](_0x4a27b6=>!_0x4a27b6['isMultiRange']&&'attribute'!=_0x4a27b6['type']),_0x441a8e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe06e92=>!_0xe06e92['isMultiRange']&&'attribute'!=_0xe06e92['type']),_0x599e6b=_0x441a8e['filter'](_0x3600e4=>!_0x342984['has'](_0x3600e4)),_0x3217a1=new Map(_0x441a8e['map'](_0x3ea94a=>[_0x3ea94a,this['_suggestionFactory']['getSuggestionCallback'](_0x3ea94a['type'],_0x3ea94a['subType'],'chain')])),_0x48ce95=new Map(_0x441a8e['map'](_0x311ddc=>[_0x311ddc,_0x311ddc['getFirstRange']()])),_0x1c5caa=new Set(),_0x596f5e=new Set();for(let _0x500474=0x0;_0x500474<_0x227e73['length'];_0x500474++)_0x21cab4(_0x227e73[_0x500474],_0x227e73,_0x500474+0x1);for(let _0x179eca=0x0;_0x179eca<_0x227e73['length'];_0x179eca++)_0x21cab4(_0x227e73[_0x179eca],_0x599e6b,0x0);const _0x389ac2=new Set();for(let _0x5d0d78=0x0;_0x5d0d78<_0x227e73['length'];_0x5d0d78++){const _0xc53725=_0x227e73[_0x5d0d78];!_0x596f5e['has'](_0xc53725)&&_0xc53725['previous']&&(_0x389ac2['add'](_0xc53725['previous']),_0xc53725['previous']['next']===_0xc53725&&(_0xc53725['previous']['next']=null),_0xc53725['previous']=null),!_0x1c5caa['has'](_0xc53725)&&_0xc53725['next']&&(_0x389ac2['add'](_0xc53725['next']),_0xc53725['next']['previous']===_0xc53725&&(_0xc53725['next']['previous']=null),_0xc53725['next']=null);}function _0x21cab4(_0x4cba6b,_0x4d4cc2,_0x595964){for(let _0x2d0909=_0x595964;_0x2d0909<_0x4d4cc2['length'];_0x2d0909++){const _0x9f17d=_0x5289da(_0x4cba6b,_0x4d4cc2[_0x2d0909]);_0x9f17d&&(_0x9f17d[0x0]['next']=_0x9f17d[0x1],_0x9f17d[0x1]['previous']=_0x9f17d[0x0],_0x1c5caa['add'](_0x9f17d[0x0]),_0x596f5e['add'](_0x9f17d[0x1]));}}function _0x5289da(_0x4def90,_0x516070){if(_0x4def90['author']['id']!==_0x516070['author']['id'])return null;const _0x6d642f=_0x3217a1['get'](_0x4def90)(_0x4def90,_0x516070,_0x48ce95['get'](_0x4def90),_0x48ce95['get'](_0x516070));if(!_0x6d642f)return null;return _0x3217a1['get'](_0x516070)(_0x4def90,_0x516070,_0x48ce95['get'](_0x4def90),_0x48ce95['get'](_0x516070))?_0x6d642f[0x1]['commentThread']&&_0x6d642f[0x1]['commentThread']['length']?null:_0x6d642f:null;}_0x389ac2['size']&&this['_refreshSuggestionsChain'](_0x389ac2);}['_refreshAttributeSuggestionsChain'](_0x4dfaab){if(0x0==_0x4dfaab['length'])return;const _0x5d8516=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e7681=>'attribute'==_0x2e7681['type']&&_0x2e7681['_isDataLoaded']),_0x546574=[],_0x5f5100=new Map();for(const _0xfd144f of _0x5d8516){const _0x4eb186=_0x34df5a(_0xfd144f['attributes']);_0x5f5100['has'](_0x4eb186)||(_0x5f5100['set'](_0x4eb186,_0x546574['length']),_0x546574['push']([]));const _0x532f89=_0x5f5100['get'](_0x4eb186);_0x546574[_0x532f89]['push'](_0xfd144f);}!(function(){_0x546574['sort']((_0xa351f2,_0x91a86c)=>{const _0x37c3fc=_0xa351f2[0x0]['createdAt'],_0x1c174b=_0x91a86c[0x0]['createdAt'];return _0x37c3fc==_0x1c174b?_0xa351f2[0x0]['attributes']['groupId']<_0x91a86c[0x0]['attributes']['groupId']?-0x1:0x1:_0x37c3fc<_0x1c174b?-0x1:0x1;});for(const _0x943c26 of _0x546574)_0x943c26['sort']((_0x511199,_0x116df6)=>_0x511199['id']<_0x116df6['id']?-0x1:0x1);}());for(let _0x4994a1=0x0;_0x4994a1<_0x546574['length'];_0x4994a1++){if(0x0==_0x546574[_0x4994a1]['length'])continue;const _0x3abe66=[];for(let _0x5f5c18=_0x4994a1+0x1;_0x5f5c18<_0x546574['length'];_0x5f5c18++)0x0!=_0x546574[_0x5f5c18]['length']&&_0x2315d9(_0x546574[_0x4994a1],_0x546574[_0x5f5c18])&&_0x3abe66['push'](_0x5f5c18);for(const _0x2908f6 of _0x3abe66)_0x546574[_0x4994a1]=_0x546574[_0x4994a1]['concat'](_0x546574[_0x2908f6]),_0x546574[_0x2908f6]=[];}for(const _0x4b3f71 of _0x546574)for(let _0x1691af=0x0;_0x1691af<_0x4b3f71['length'];_0x1691af++){const _0x47c92e=_0x4b3f71[_0x1691af+0x1]||null;_0x4b3f71[_0x1691af]['next']!==_0x47c92e&&(_0x4b3f71[_0x1691af]['next']=_0x47c92e);}for(const _0x5a9f03 of _0x546574)for(let _0x291ca0=0x0;_0x291ca0<_0x5a9f03['length'];_0x291ca0++){const _0x4bd792=_0x5a9f03[_0x291ca0-0x1]||null;_0x5a9f03[_0x291ca0]['previous']!==_0x4bd792&&(_0x5a9f03[_0x291ca0]['previous']=_0x4bd792);}function _0x2315d9(_0x50c1fa,_0xbdd5d7){if(_0x50c1fa[0x0]['attributes']['groupId']!==_0xbdd5d7[0x0]['attributes']['groupId']&&_0x50c1fa[0x0]['author']!==_0xbdd5d7[0x0]['author'])return!0x1;if(!function(_0x56673d,_0x44d38a){if(!_0x56673d['hasComments']&&!_0x44d38a['hasComments'])return!0x0;if(_0x56673d['hasComments']&&_0x44d38a['hasComments'])return!0x1;if(_0x56673d['hasComments']&&_0x44d38a['createdAt']<_0x56673d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x44d38a['hasComments']&&_0x56673d['createdAt']<_0x44d38a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x50c1fa[0x0],_0xbdd5d7[0x0]))return!0x1;const _0x23d775=Ut(_0x50c1fa[0x0]['attributes'],['groupId','trackingSessionId']),_0x3789e8=Ut(_0xbdd5d7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x35d560(_0x23d775,_0x3789e8))return!0x1;if(_0x50c1fa[0x0]['attributes']['groupId']==_0xbdd5d7[0x0]['attributes']['groupId'])return!0x0;if(_0x50c1fa[0x0]['attributes']['trackingSessionId']!==_0xbdd5d7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x50c1fa['every'](_0xd32af1=>_0xbdd5d7['some'](_0x38b30d=>_0xd32af1['getFirstRange']()['isEqual'](_0x38b30d['getFirstRange']())))&&_0xbdd5d7['every'](_0x8aba33=>_0x50c1fa['some'](_0x323665=>_0x8aba33['getFirstRange']()['isEqual'](_0x323665['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18d71c){const _0x834231=Array['from'](_0x18d71c),_0x19e444=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6bd6=_0x19e444['filter'](_0x34c75c=>!_0x18d71c['has'](_0x34c75c)),_0x373ffd=new Map(_0x834231['map'](_0x2fa781=>[_0x2fa781,this['_suggestionFactory']['getSuggestionCallback'](_0x2fa781['type'],_0x2fa781['subType'],'join')])),_0x3b51b6=new Map(_0x19e444['map'](_0x2e869c=>[_0x2e869c,_0x2e869c['getRanges']()]));for(let _0x281d75=0x0;_0x281d75<_0x834231['length'];_0x281d75++){if(_0x6974aa(this,_0x834231[_0x281d75],_0x834231,_0x281d75+0x1))return!0x0;}for(let _0x4f7ecc=0x0;_0x4f7ecc<_0x834231['length'];_0x4f7ecc++){if(_0x6974aa(this,_0x834231[_0x4f7ecc],_0x5a6bd6,0x0))return!0x0;}return!0x1;function _0x6974aa(_0x1b931e,_0x30f1e1,_0x405837,_0x2e3f36){for(let _0x15d916=_0x2e3f36;_0x15d916<_0x405837['length'];_0x15d916++){const _0x4ae58d=_0x405837[_0x15d916];if(_0x4ae58d['type']!==_0x30f1e1['type']||_0x4ae58d['author']['id']!==_0x30f1e1['author']['id']||_0x4ae58d['subType']!==_0x30f1e1['subType'])continue;if(!Qt(_0x30f1e1,_0x4ae58d))continue;if('attribute'==_0x30f1e1['type']&&_0x30f1e1['data']['oldValue']!=_0x4ae58d['data']['oldValue'])continue;if('attribute'==_0x30f1e1['type']&&_0x1b931e['_isBlockAttribute'](_0x30f1e1['data']['key']))continue;if('formatBlock'==_0x30f1e1['type']){const _0x479433=_0x1b931e['editor']['model'],_0xf62917=_0x30f1e1['getContainedElement']();if(_0xf62917&&(_0x479433['schema']['isObject'](_0xf62917)||_0x479433['schema']['isLimit'](_0xf62917)))continue;}const _0x41fbe6=_0x373ffd['get'](_0x30f1e1),_0x2c4a06=_0x3b51b6['get'](_0x30f1e1),_0x1c6c10=_0x3b51b6['get'](_0x4ae58d),_0x46c2ec=_0x30f1e1['commentThread']&&_0x30f1e1['commentThread']['length'],_0x22d305=_0x4ae58d['commentThread']&&_0x4ae58d['commentThread']['length'];if(!_0x46c2ec&&_0x41fbe6(_0x1c6c10,_0x2c4a06))return _0x1b931e['_joinSuggestions'](_0x4ae58d,_0x30f1e1),_0x3b51b6['delete'](_0x30f1e1),!0x0;if(!_0x22d305&&_0x41fbe6(_0x2c4a06,_0x1c6c10))return _0x1b931e['_joinSuggestions'](_0x30f1e1,_0x4ae58d),_0x3b51b6['delete'](_0x4ae58d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f23ac,_0x544217){if(_0x5f23ac['isMultiRange']){for(const _0x56b5fc of _0x544217['getRanges']())_0x5f23ac['addRange'](_0x56b5fc);}else{const _0x48a52d=_0x544217['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f23ac,this['_model']['createRange'](_0x5f23ac['getFirstRange']()['start'],_0x48a52d));}_0x544217['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a9d51,_0x20ee69,_0x1dd5c1){const _0x2edbdc=_0x4a9d51['startsWith']('format')||_0x4a9d51['startsWith']('attribute')?'FORMATTING':_0x4a9d51['toUpperCase']();return o(this['editor']['locale'],_0x20ee69+'_'+_0x2edbdc+'_SUGGESTION_ANNOUNCEMENT',_0x1dd5c1);}['_initAriaMarkerChangeAnnouncements'](){const _0x3af1de=this['editor'];if(!_0x3af1de['ui'])return;const {ariaLiveAnnouncer:_0x339f19}=_0x3af1de['ui'];_0x1e4108(this['_model'],({left:_0x27023c,entered:_0x44a992})=>{for(const _0x44b89d of _0x27023c){const {group:_0x528074,type:_0x34192d}=this['_splitMarkerName'](_0x44b89d['name']);if('suggestion'===_0x528074){_0x339f19['announce'](this['_getMarkerAnnouncementText'](_0x34192d,'LEAVE'));break;}}for(const _0x4997ad of _0x44a992){const {group:_0x1ef6ba,type:_0x5a7be7}=this['_splitMarkerName'](_0x4997ad['name']);if('suggestion'===_0x1ef6ba){_0x339f19['announce'](this['_getMarkerAnnouncementText'](_0x5a7be7,'ENTER',_0x3803b2(_0x38402f)));break;}}});}['_processAttributeChanges'](_0x55d505){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3dae5d=this['editor'],_0x1b70ec=_0x3dae5d['model']['document']['differ']['getChanges']();if(0x0==_0x1b70ec['length'])return!0x1;const _0xcef402=[],_0x44a85a=_0x1b70ec['filter'](_0x45a857=>'attribute'==_0x45a857['type']),_0x158a50=_0x1b70ec['filter'](_0x310657=>'insert'==_0x310657['type']&&'$text'!=_0x310657['name']),_0x2ab114=_0x1b70ec['filter'](_0x14e9e5=>'remove'==_0x14e9e5['type']&&'$text'!=_0x14e9e5['name']);for(const _0x28229d of _0x44a85a)_0xcef402['push']({'key':_0x28229d['attributeKey'],'newValue':_0x28229d['attributeNewValue'],'oldValue':_0x28229d['attributeOldValue'],'range':qt(_0x28229d['range'],_0x3dae5d['model'])});for(const _0x12a371 of _0x158a50){const _0x9c529d=_0x2ab114['find'](_0x278def=>_0x278def['position']['isEqual'](_0x12a371['position']));_0x9c529d&&_0xcef402['push']({'key':m,'newValue':_0x12a371['name'],'oldValue':_0x9c529d['name'],'range':_0x3dae5d['model']['createRangeOn'](_0x12a371['position']['nodeAfter'])});}return 0x0!=_0xcef402['length']&&this['_reduceExistingSuggestions'](_0x55d505,_0xcef402);}['_processAttributeSuggestions'](_0x21ca42){let _0x3ca87f=!0x1;const _0x3f1dde=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32e654=>_0x32e654['data']['newRange']&&_0x32e654['name']['startsWith']('suggestion:attribute:'));for(const _0x53347b of _0x3f1dde){const {subType:_0x3fc542,id:_0x1ebbf0}=this['_splitMarkerName'](_0x53347b['name']),_0x2ceb49=_0x3fc542['split']('|')[0x0];for(const _0x3c556d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3c556d['id']!=_0x1ebbf0&&'attribute'==_0x3c556d['type']&&_0x3c556d['data']&&_0x3c556d['data']['key']==_0x2ceb49&&_0x3c556d['getFirstRange']()['isIntersecting'](_0x53347b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3c556d,_0x53347b['data']['newRange'],_0x21ca42),_0x3ca87f=!0x0);}return _0x3ca87f;}['recordAttributeChanges'](_0x28686b){this['_recordAttributeSuggestions']=!0x0,_0x28686b();}['_isRegisteredAttribute'](_0x1fea43){const _0x4c929f=this['_isBlockAttribute'](_0x1fea43),_0x24d5e6=this['_isInlineAttribute'](_0x1fea43);return _0x4c929f||_0x24d5e6;}['_reduceExistingSuggestions'](_0x56ec01,_0x2db897){if(0x0==_0x2db897['length'])return!0x1;let _0x30c170=!0x1;for(const _0x7e4918 of _0x2db897){const _0x17d4a3=this['_findSuggestions'](_0x7e4918['range'],'attribute')['filter'](_0x41dd69=>!_0x41dd69['meta']['isNextTo'])['map'](_0x54d5f1=>_0x54d5f1['suggestion']),_0x3627c9=_0x34df5a({'newValue':_0x7e4918['newValue']});_0x17d4a3['filter'](_0x28fb77=>{const [_0x13c83d,_0x35ab18]=_0x28fb77['subType']['split']('|');return _0x13c83d==_0x7e4918['key']&&_0x35ab18!=_0x3627c9;})['forEach'](_0x50c0ac=>{this['_reduceSuggestionAttributeRange'](_0x50c0ac,_0x7e4918['range'],_0x56ec01),_0x30c170=!0x0;});}return _0x30c170;}['_reduceSuggestionAttributeRange'](_0x57d95a,_0x406d3d,_0x5d4648){const _0x3f85ce=_0x57d95a['getFirstRange']()['getDifference'](_0x406d3d);0x0!==_0x3f85ce['length']?0x1!==_0x3f85ce['length']?this['_breakSuggestionMarker'](_0x57d95a,_0x406d3d['start'],_0x406d3d['end']):this['_setSuggestionRange'](_0x57d95a,_0x3f85ce[0x0]):_0x5d4648['removeMarker'](_0x57d95a['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4475c2){this['_editor']=_0x4475c2,this['_model']=_0x4475c2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22d874,_0x4b3a53,_0x3a45c8,_0xb7476f,_0x5efd55,_0x214553,_0x3c39eb){return new T(this['_model'],{'type':_0x22d874,'subType':_0x4b3a53,'id':_0x3a45c8,'originalSuggestionId':_0x3c39eb,'author':_0xb7476f,'creator':_0xb7476f,'attributes':_0x5efd55,'onAttributesChange':_0x214553,'onAccept':(..._0x5d771e)=>this['getSuggestionCallback'](_0x22d874,_0x4b3a53,'accept')(..._0x5d771e),'onDiscard':(..._0x3cfed7)=>this['getSuggestionCallback'](_0x22d874,_0x4b3a53,'discard')(..._0x3cfed7)});}['registerCustomCallback'](_0x9cc26e,_0x40398e,_0x132b4f,_0x1e73f3){const _0x2699ba=_0x9cc26e+':'+_0x40398e+':'+_0x132b4f;this['_customCallbacks']['set'](_0x2699ba,_0x1e73f3);}['getSuggestionCallback'](_0x5bb672,_0x53c1c4,_0x3172a8){const _0xd5f529=_0x5bb672+':'+_0x53c1c4+':'+_0x3172a8;return this['_customCallbacks']['get'](_0xd5f529)||this['_defaultCallbacks']['get'](_0x5bb672+':'+_0x3172a8);}['_registerDefaultCallbacks'](){const _0x4a3d07=()=>!0x1,_0x107bf3=_0x440664=>{_0x440664['sort']((_0x26a071,_0x2bbd57)=>_0x26a071['start']['isBefore'](_0x2bbd57['start'])?0x1:-0x1),this['_model']['change'](_0x167aff=>{for(const _0x2f468b of _0x440664){let _0x43c508;_0x43c508=_0x2f468b['end']['isAtEnd']&&_0x2f468b['end']['parent']==_0x2f468b['start']['nodeAfter']?_0x167aff['createSelection'](_0x2f468b['start']['nodeAfter'],'on'):_0x167aff['createSelection'](_0x2f468b),this['_model']['deleteContent'](_0x43c508,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5df3d7=(_0x50fcd7,_0x267549)=>{_0x267549&&this['_model']['change'](_0xa5ea1e=>{const {commandName:_0xe7f13e,commandParams:_0x2f61c9=[]}=_0x267549,_0x10127f=_0x50fcd7['map'](_0x445c28=>(Pt(_0x445c28)&&(_0x445c28=this['_model']['createRange'](_0x445c28['end'])),_0x445c28))['filter'](_0x1077b0=>'$graveyard'!==_0x1077b0['root']['rootName']);if(_0x10127f['length']<0x1)return;const _0x52bdbe=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15e541=>_0x3561c8['fromRange'](_0x15e541));_0xa5ea1e['setSelection'](_0x10127f);for(const _0x57c691 of this['_editor']['commands']['commands']())_0x57c691['refresh']();_0x2f61c9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe7f13e,..._0x2f61c9);const _0x511805=_0x52bdbe['filter'](_0x57af62=>'$graveyard'!=_0x57af62['root']['rootName']);_0x511805['length']>0x0&&_0xa5ea1e['setSelection'](_0x511805);for(const _0x1d6442 of _0x52bdbe)_0x1d6442['detach']();});},_0x52b366=(_0x4ec57e,_0xf4ee04)=>0x1==_0x4ec57e['length']&&0x1==_0xf4ee04['length']&&_0x4ec57e[0x0]['end']['isEqual'](_0xf4ee04[0x0]['start']),_0x5e3ef3=(_0x2cdeaf,_0x52b303,_0x31654f,_0x31f2b8)=>Wt(_0x2cdeaf,_0x52b303,_0x31654f,_0x31f2b8)?[_0x2cdeaf,_0x52b303]:Wt(_0x52b303,_0x2cdeaf,_0x31f2b8,_0x31654f)?[_0x52b303,_0x2cdeaf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a3d07),this['_defaultCallbacks']['set']('insertion:discard',_0x107bf3),this['_defaultCallbacks']['set']('insertion:join',_0x52b366),this['_defaultCallbacks']['set']('insertion:chain',_0x5e3ef3),this['_defaultCallbacks']['set']('deletion:accept',_0x107bf3),this['_defaultCallbacks']['set']('deletion:discard',_0x4a3d07),this['_defaultCallbacks']['set']('deletion:join',_0x52b366),this['_defaultCallbacks']['set']('deletion:chain',_0x5e3ef3),this['_defaultCallbacks']['set']('formatInline:accept',_0x5df3d7),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a3d07),this['_defaultCallbacks']['set']('formatInline:join',_0x52b366),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a3d07),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5df3d7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a3d07),this['_defaultCallbacks']['set']('formatBlock:join',_0x52b366),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a3d07),this['_defaultCallbacks']['set']('attribute:accept',_0x4a3d07),this['_defaultCallbacks']['set']('attribute:discard',(_0x2eae3e,_0x413a4c)=>{if(!_0x413a4c)return;const _0x3bbed7=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4a390d=>{if(_0x413a4c['key']==m)for(const _0x4ae844 of _0x2eae3e){const _0x3624c8=_0x4ae844['start']['nodeAfter'],_0x2d4f7a=_0x413a4c['oldValue'];_0x4a390d['rename'](_0x3624c8,_0x2d4f7a);}else{if(_0x3bbed7['_isBlockAttribute'](_0x413a4c['key'])){for(const _0x17c9e4 of _0x2eae3e)void 0x0!==_0x413a4c['oldValue']?_0x4a390d['setAttribute'](_0x413a4c['key'],_0x413a4c['oldValue'],_0x17c9e4['start']['nodeAfter']):_0x4a390d['removeAttribute'](_0x413a4c['key'],_0x17c9e4['start']['nodeAfter']);}else{for(const _0x37e5e2 of _0x2eae3e)_0x413a4c['oldValue']?_0x4a390d['setAttribute'](_0x413a4c['key'],_0x413a4c['oldValue'],_0x37e5e2):_0x4a390d['removeAttribute'](_0x413a4c['key'],_0x37e5e2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52b366);}}function Ft(_0x3eb678,_0x46caef,_0x55a11a){for(const _0x3f6ebc of _0x46caef['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f6ebc['root']==_0x3f6ebc)return!0x1;if(!_0x55a11a['containsItem'](_0x3f6ebc))return!0x1;if(_0x3eb678['isObject'](_0x3f6ebc)||_0x3eb678['isLimit'](_0x3f6ebc))return!0x0;}return!0x1;}function Pt(_0x1bdf07){return _0x1bdf07['end']['parent']==_0x1bdf07['start']['nodeAfter']&&_0x1bdf07['end']['isAtStart'];}function Gt(_0x1f4291,_0x1761f1,_0xcac438,_0x192728){const _0xd4ee4b=_0x521e91=>!_0x521e91['item']['is']('$textProxy')&&!_0x192728['isObject'](_0x521e91['item']),_0x1e632b=_0x1f4291['start']['getLastMatchingPosition'](_0xd4ee4b),_0x15f1ef=_0x1f4291['end']['getLastMatchingPosition'](_0xd4ee4b,{'direction':'backward'});return(!_0x1f4291['start']['isEqual'](_0x1e632b)||!_0x1f4291['end']['isEqual'](_0x15f1ef))&&(_0x1e632b['isBefore'](_0x15f1ef)?_0xcac438['updateMarker'](_0x1761f1,{'range':_0xcac438['createRange'](_0x1e632b,_0x15f1ef)}):_0xcac438['removeMarker'](_0x1761f1),!0x0);}function Lt(_0x3d68b8){return _0x34df5a(_0x3d68b8);}function Jt(_0x56179b){const _0x39a1d4=_0x56179b['start']['nodeAfter'];return _0x39a1d4&&_0x39a1d4['is']('element');}function Kt(_0x30fa81){return Pt(_0x30fa81)||function(_0x34741a){return _0x34741a['start']['parent']==_0x34741a['end']['nodeBefore']&&_0x34741a['start']['isAtEnd'];}(_0x30fa81);}function Ht(_0x5e72a4,_0x4657b7){try{const _0x23e5db=_0x5e72a4['getRange']();for(const _0x14b08e of _0x4657b7)if(_0x5e72a4!==_0x14b08e&&_0x23e5db&&_0x23e5db['isIntersecting'](_0x14b08e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x40455b,_0x10fbe9){return null==_0x40455b['end']['nodeBefore']&&_0x40455b['end']['parent']==_0x40455b['start']['nodeAfter']?zt(_0x40455b['start']['nodeAfter'],_0x10fbe9):_0x40455b;}function zt(_0x26a3bd,_0x5831de){const _0xa0eade=_0x5831de['schema']['isObject'](_0x26a3bd)||_0x5831de['schema']['isSelectable'](_0x26a3bd);return _0x5831de['createRange'](_0x5831de['createPositionAt'](_0x26a3bd,'before'),_0xa0eade?_0x5831de['createPositionAfter'](_0x26a3bd):_0x5831de['createPositionAt'](_0x26a3bd,'end'));}function Wt(_0x2e6921,_0x1d0f24,_0x1e3f07,_0x23aad9){return!!Qt(_0x2e6921,_0x1d0f24)&&_0x1e3f07['end']['isEqual'](_0x23aad9['start']);}function Qt(_0x57faf9,_0x6a0624){if(!_0x57faf9['_isDataLoaded']||!_0x6a0624['_isDataLoaded'])return!0x1;const _0x20d668=new Set(Object['keys'](_0x57faf9['attributes'])),_0x293693=new Set(Object['keys'](_0x6a0624['attributes']));if(_0x20d668['delete']('groupId'),_0x293693['delete']('groupId'),0x0==_0x20d668['size']&&0x0==_0x293693['size'])return!0x0;if(_0x20d668['size']!=_0x293693['size'])return!0x1;const _0x214e6d={..._0x57faf9['attributes']},_0x5d8deb={..._0x6a0624['attributes']};return delete _0x214e6d['groupId'],delete _0x5d8deb['groupId'],JSON['stringify'](_0x214e6d)==JSON['stringify'](_0x5d8deb);}function Xt(_0x3b6718,_0x1c2ea2){const _0x365987=Yt(_0x3b6718['attributes']),_0x1038c6=Yt(_0x1c2ea2);if(!_0x3b6718['_isDataLoaded'])return!0x1;for(const _0x1369ba of Object['keys'](_0x1038c6))if(!_0x35d560(_0x365987[_0x1369ba],_0x1038c6[_0x1369ba]))return!0x1;return!0x0;}function Yt(_0x1ec752){const _0x5f5d73=Object['assign']({},_0x1ec752);return delete _0x5f5d73['skipNestingCheck'],delete _0x5f5d73['tablePasteChainId'],_0x5f5d73;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xbda74a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x402b9c,_0x563521,_0x25321e,_0x3e37e5){super(),this['model']=_0x563521,this['view']=_0x25321e,this['commentThreadController']=_0x3e37e5,this['_editor']=_0x402b9c,this['_acceptCommand']=_0x402b9c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x402b9c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5aa60d,_0x3f3e7c)=>_0x5aa60d||_0x3f3e7c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x36cb4e=>_0x36cb4e&&this['_editor']['model']['canEditAt'](_0x563521['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b648a=>_0x5b648a&&this['_editor']['model']['canEditAt'](_0x563521['getRanges']())),this['_pendingAction']=null,_0x25321e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x25321e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x25321e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x25321e,'change:isDirty',()=>{_0x25321e['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 _0x526746=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x526746);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x45ee84{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50a031,_0x136be1,_0x476940,_0x559dad){super(_0x50a031),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4b9ac5(_0x50a031,o(_0x50a031,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x136be1['authoredAt']),this['bind']('authoredAt')['to'](_0x136be1),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',_0x136be1,'authoredAt',this,'descriptionParts',(_0x350630,_0x4a6b59,_0x180522)=>{const _0x5ed172=_0x180522['map'](_0xa8deb7=>ls(_0xa8deb7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x350630-0x1,_0x136be1['author']['name'],_0x4a6b59?_0x559dad['formatDateTime'](_0x4a6b59):'',new DOMParser()['parseFromString'](_0x5ed172,'text/html')['body']['textContent']]);}),this['focusables']=new _0x101234(),this['focusTracker']=new _0x32124a(),this['keystrokes']=new _0x2821ab(),this['focusCycler']=new _0x1157e9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5075ba=>_0x5075ba['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x136be1,this['_localUser']=_0x476940,this['_config']=_0x559dad,_0x559dad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x310efe(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x225be2}=this['_config'];this['commentsListView']=new _0x225be2(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',_0x3c47e2=>_0x3c47e2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x363023,_0xee2c90)=>_0x363023||!!_0xee2c90);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf46dde}=this['_config'],_0x144fa4=new _0xf46dde(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x16a899=_0x144fa4['commentInputView'];return _0x144fa4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x16a899,'value',(_0x177e36,_0xc1a210,_0x424f00)=>!!_0x424f00||_0x177e36&&!_0xc1a210),_0x16a899['on']('submit',(_0x3243b6,_0x17cb7e)=>{this['fire']('addComment',_0x17cb7e),_0x16a899['editor']['setData']('');}),_0x16a899['on']('cancel',()=>this['focus']()),_0x16a899['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x144fa4;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1c8d00,_0x4b5ca0,_0x179660,_0x3b55b1){super(_0x1c8d00,_0x4b5ca0,_0x179660,_0x3b55b1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f4259=>_0x2f4259&&_0x2f4259[0x0]?_0x2f4259[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x47445c,_0x57abaf)=>{let _0x55ce5a='';for(const _0xfcd136 of _0x47445c)_0x55ce5a+='<p>'+ls(_0xfcd136['content'],_0xfcd136['color'])+'</p>';return _0x57abaf?_0x55ce5a:_0x420cce(_0x55ce5a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3b55b1['SuggestionView'](_0x1c8d00,_0x4b5ca0,{'formatDateTime':_0x3b55b1['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 _0x31ba56=this['bindTemplate'],_0x4d3b80=[this['suggestionView']];return this['commentsListView']&&_0x4d3b80['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d3b80['push'](this['commentThreadInputView']),_0x4d3b80['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x31ba56['if']('isActive','ck-suggestion-wrapper--active'),_0x31ba56['to']('type',_0x17e21f=>'ck-suggestion-'+_0x17e21f),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':_0x31ba56['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d3b80};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x45ee84{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x435ae0,_0x295439,_0x3a0c78){super(_0x435ae0),this['_model']=_0x295439,this['_config']=_0x3a0c78,this['set']('description',''),this['bind']('authoredAt')['to'](_0x295439),this['acceptButton']=this['_createButton'](o(_0x435ae0,'Accept\x20suggestion'),_0x52309a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x435ae0,'Discard\x20suggestion'),_0xac3f1f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xed21e2(_0x435ae0,_0x295439['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x101234([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32124a(),this['keystrokes']=new _0x2821ab(),this['focusCycler']=new _0x1157e9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x285da7=>_0x285da7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1045e2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1045e2['innerHTML']=this['description'],this['on']('change:description',(_0x282344,_0x147177,_0x5decf1)=>{_0x1045e2['innerHTML']=_0x5decf1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2afd97=this['bindTemplate'],_0x237265=[{'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':_0x2afd97['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2afd97['to']('authoredAt',_0x554ffc=>this['_config']['formatDateTime'](_0x554ffc))}]}]},{'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']&&_0x237265['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':_0x237265}]};}['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'](_0x8bfea2,_0x2cb3e0,_0x1918cf,_0x49dc22,_0x2a0ee3){const _0x4de0b6=new _0x19678b(this['locale']);return _0x4de0b6['set']({'label':_0x8bfea2,'icon':_0x2cb3e0,'tooltip':!0x0,'tooltipPosition':_0x2a0ee3}),_0x4de0b6['extendTemplate']({'attributes':{'class':_0x1918cf}}),_0x4de0b6['on']('execute',()=>{this['fire'](_0x49dc22,this['_model']['id']);}),_0x4de0b6;}['_setupKeyboardNavigation'](){const _0x12da55=this['element'];this['keystrokes']['listenTo'](_0x12da55);for(const _0x56a915 of this['focusables'])this['focusTracker']['add'](_0x56a915['element']),this['keystrokes']['listenTo'](_0x56a915['element']);this['keystrokes']['set']('enter',(_0x841ae5,_0x18f311)=>{_0x12da55===_0x841ae5['target']&&(this['focusCycler']['focusFirst'](),_0x18f311());}),this['keystrokes']['set']('esc',(_0x5b0063,_0x453715)=>{_0x12da55!==_0x5b0063['target']&&(this['focus'](),_0x453715());});}}class u extends _0x27a926{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3c175c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c2093){super(_0x5c2093),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x24c4d3=this['editor']['config'];_0x24c4d3['define']('trackChanges.SuggestionThreadView',fe),_0x24c4d3['define']('trackChanges.SuggestionView',we),_0x24c4d3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x24c4d3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d9568,_0x4b1b87){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x35c3a5,_0x578fb5]of this['_handleControllerBuffer']){const _0x5b9da5=this['_suggestionToController']['has'](_0x35c3a5);_0x5b9da5||_0x578fb5?_0x5b9da5&&_0x578fb5&&this['_destroyController'](_0x35c3a5):this['_initializeController'](_0x35c3a5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d9568,_0x4b1b87);}['init'](){const _0x48ad44=this['editor'],_0xc2375b=_0x48ad44['plugins']['get']('TrackChangesEditing'),_0x56bbb3=_0x48ad44['plugins']['get']('Annotations'),_0x245be4=_0x48ad44['plugins']['get']('EditorAnnotations'),_0x31ff8f=_0x48ad44['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x245be4['addSourceCollector'](()=>{const _0x5d8cdb=[];for(const [_0x1efbb6,_0x2ac9e7]of Array['from'](this['_suggestionToController'])){const _0x51ba91=_0x1efbb6['getAllAdjacentSuggestions'](),_0x326266=[];for(const _0x116768 of _0x51ba91){if(!_0x116768['isInContent'])continue;if(_0x116768['isMultiRange']){_0x326266['push'](..._0x116768['getRanges']());continue;}const _0x19315c=_0x116768['getFirstRange']();if(_0x326266['length']>0x0){const _0xcb45ff=_0x326266[0x0]['getJoined'](_0x19315c);if(_0xcb45ff){_0x326266[0x0]=_0xcb45ff;continue;}}_0x326266['push'](_0x19315c);}_0x5d8cdb['push']([_0x2ac9e7['view'],_0x326266]);}return _0x5d8cdb;}),this['listenTo'](_0xc2375b,'suggestionLoaded',(_0x36ed31,_0x3e77f1)=>{this['listenTo'](_0x3e77f1,'change:previous',(_0x28eaa2,_0x45612e,_0x217bd1,_0x5906eb)=>{_0x3e77f1['isInContent']&&(null==_0x217bd1?(this['_updateController'](_0x5906eb['head']),this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x1)):(this['_updateController'](_0x217bd1['head']),null==_0x5906eb&&this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x0)));}),null!==_0x3e77f1['previous']?this['_updateController'](_0x3e77f1['head']):this['_handleSuggestionControllerDelayed'](_0x3e77f1,!0x1);}),this['listenTo'](_0xc2375b,'suggestionUnloaded',(_0x1f4b73,_0x23b3b8,_0x26465d)=>{this['stopListening'](_0x23b3b8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23b3b8),this['_suggestionToController']['has'](_0x23b3b8)&&this['_destroyController'](_0x23b3b8),_0x26465d&&this['_updateController'](_0x26465d['head']);}),this['listenTo'](_0xc2375b,'suggestionChanged',(_0x14067b,_0x2d9d04)=>{this['_updateController'](_0x2d9d04);}),this['listenTo'](_0x56bbb3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x31ff8f,'addComment',(_0x1ddb00,{threadId:_0x4c9d91,isFromAdapter:_0x6dc2dd})=>{if(_0x6dc2dd||!_0xc2375b['hasSuggestion'](_0x4c9d91))return;const _0x23ba59=_0xc2375b['getSuggestion'](_0x4c9d91);this['_suggestionToController']['get'](_0x23ba59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x180f3e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fce0f;for(const _0x4a1b9c in _0x180f3e){const _0x45e30c=_0x4a1b9c,_0x1dddb2=_0x180f3e[_0x45e30c];if('trackChangesLicenseKeyValid'==_0x1dddb2||'trackChangesLicenseKeyInvalid'==_0x1dddb2||'trackChangesLicenseKeyExpired'==_0x1dddb2||'trackChangesLicenseKeyDomainLimit'==_0x1dddb2||'trackChangesLicenseKeyNotAllowed'==_0x1dddb2||'trackChangesLicenseKeyEvaluationLimit'==_0x1dddb2||'trackChangesLicenseKeyTrialLimit'==_0x1dddb2||'trackChangesLicenseKeyUsageLimit'==_0x1dddb2){delete _0x180f3e[_0x45e30c],_0x2fce0f=_0x1dddb2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2fce0f&&_0x180f3e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2fce0f&&_0x180f3e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2fce0f&&_0x180f3e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2fce0f&&_0x180f3e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5b2a31){const _0x32092e=this['_suggestionToController']['get'](_0x5b2a31);if(!_0x32092e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x32092e['view'])||null;}['getSuggestionForAnnotation'](_0x5ed0c5){const _0x54a592=this['_viewToController']['get'](_0x5ed0c5['innerView']);return _0x54a592?_0x54a592['model']:null;}['_refreshActiveMarkers'](){const _0x1fa1d6=this['editor']['plugins']['get']('Annotations'),_0x1b72aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb06cb=Array['from'](_0x1fa1d6['activeAnnotations'],_0x53b37b=>_0x53b37b['innerView'])['filter'](_0x3cfe6e=>this['_viewToController']['has'](_0x3cfe6e)),_0xd7cd9b=[];for(const _0x30c16e of _0xbb06cb){const _0x37b0be=this['_viewToController']['get'](_0x30c16e)['model']['getAllAdjacentSuggestions']();_0xd7cd9b['push'](..._0x37b0be['reduce']((_0x15c3b5,_0x55b43b)=>[..._0x15c3b5,..._0x55b43b['getMarkerNames']()],[]));}_0x1b72aa['activeMarkers']=_0xd7cd9b;}['_addUIComponentsToFactory'](){const _0x438a06=this['editor'],_0x2f5f84=_0x438a06['locale'],_0xe42a46=o(_0x2f5f84,'Track\x20changes'),_0x4c4bb5=new _0x3e004f([{'type':'switchbutton','model':new _0x1fe74b({'withText':!0x0,'isToggleable':!0x0,'label':_0xe42a46,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x438a06['plugins']['has']('TrackChangesPreview')&&_0x4c4bb5['addMany']([{'type':'separator'},{'type':'button','model':new _0x1fe74b({'withText':!0x0,'label':o(_0x2f5f84,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25eb1d of _0x4c4bb5)if(ke(_0x25eb1d)){const _0x44bd00=_0x438a06['commands']['get'](_0x25eb1d['model']['commandName']);_0x25eb1d['model']['bind']('isOn','isEnabled')['to'](_0x44bd00,'value','isEnabled');}_0x438a06['ui']['componentFactory']['add']('trackChanges',_0x8d004c=>this['_createToolbarButton'](_0x8d004c,_0x4c4bb5,_0xe42a46)),_0x438a06['ui']['componentFactory']['add']('menuBar:trackChanges',_0x43725e=>this['_createMenuBarMenu'](_0x43725e,_0x4c4bb5,_0xe42a46));}['_createToolbarButton'](_0x2336f8,_0x286535,_0x4322ea){const _0x242a82=_0x317c8f(_0x2336f8,_0x5b6149),_0x5077e9=this['editor']['commands']['get']('trackChanges');_0x242a82['buttonView']['set']({'tooltip':_0x4322ea,'label':_0x4322ea,'icon':_0x3892fc}),_0x242a82['buttonView']['bind']('isOn')['to'](_0x5077e9,'value'),_0x242a82['buttonView']['on']('execute',()=>{_0x5077e9['execute'](),this['editor']['editing']['view']['focus']();}),_0x2aba32(_0x242a82,_0x286535,{'role':'menu'});const _0x630ca1=[];for(const _0x2f8f5d of _0x286535)ke(_0x2f8f5d)&&_0x630ca1['push'](this['editor']['commands']['get'](_0x2f8f5d['model']['commandName']));const _0xb5c8a0=_0x242a82['buttonView'];return _0xb5c8a0['actionView']['unbind']('isEnabled'),_0xb5c8a0['arrowView']['unbind']('isEnabled'),_0xb5c8a0['actionView']['bind']('isEnabled')['to'](_0x5077e9,'isEnabled'),_0xb5c8a0['arrowView']['bind']('isEnabled')['toMany'](_0x630ca1,'isEnabled',(..._0x56e9d1)=>_0x56e9d1['some'](_0x164ef3=>_0x164ef3)),_0x242a82['on']('execute',_0x13298f=>{this['editor']['execute'](_0x13298f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x242a82;}['_createMenuBarMenu'](_0x3e0092,_0x4cd420,_0x3691a9){const _0x635b7e=new _0xb26ca6(_0x3e0092),_0x570715=this['editor']['commands']['get']('trackChanges');_0x635b7e['buttonView']['set']({'label':_0x3691a9,'icon':_0x3892fc});const _0x2467ea=new _0x39e173(_0x3e0092);for(const _0x1bacef of _0x4cd420){if('separator'==_0x1bacef['type']){_0x2467ea['items']['add'](new _0x5af892(_0x3e0092));continue;}const _0x18c39f=new _0x3e5c33(_0x3e0092,_0x635b7e),_0x329a2a=new _0x272d38(_0x3e0092),_0x28c185=_0x1bacef['model'];_0x329a2a['bind'](...Object['keys'](_0x28c185))['to'](_0x28c185),_0x329a2a['delegate']('execute')['to'](_0x635b7e),_0x329a2a['on']('execute',()=>{this['editor']['execute'](_0x28c185['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c39f['children']['add'](_0x329a2a),_0x2467ea['items']['add'](_0x18c39f);}return _0x635b7e['bind']('isEnabled')['to'](_0x570715,'isEnabled'),_0x635b7e['panelView']['children']['add'](_0x2467ea),_0x635b7e;}['_initializeController'](_0x2bb832){const _0x447c84=this['editor'],_0xe0a350=_0x447c84['config'],_0x14ee8c=_0x447c84['plugins']['get']('Annotations'),_0x433b9c=_0x447c84['plugins']['get']('CommentsRepository'),_0x36f0a0=_0x447c84['plugins']['get']('EditorAnnotations'),_0x104068=_0x447c84['plugins']['get'](_0x3c175c)['me'],_0x2bec36=_0xe0a350['get']('trackChanges')['SuggestionThreadView'],_0x21a973=_0xe0a350['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x55daf1,CommentThreadInputView:_0x229ded}=_0x447c84['plugins']['get']('CommentsUI');let _0x456646,_0x50b5fc,_0x9e2993;this['_annotationViews']['has'](_0x2bb832['id'])?(_0x50b5fc=this['_annotationViews']['get'](_0x2bb832['id']),_0x456646=_0x50b5fc['mainView']):(_0x456646=new _0x2bec36(_0x447c84['locale'],_0x2bb832,_0x104068,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe0a350['get']('comments.editorConfig'),'licenseKey':_0xe0a350['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe0a350['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe0a350['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe0a350['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3170bc(_0xe0a350['get']('locale'),_0x447c84['locale']),'CommentView':_0xe0a350['get']('comments')['CommentView'],'CommentsListView':_0x55daf1,'CommentThreadInputView':_0x229ded,'SuggestionView':_0x21a973}),_0x456646['suggestionView']['acceptButton']['on']('execute',()=>{_0x447c84['editing']['view']['focus']();}),_0x456646['suggestionView']['discardButton']['on']('execute',()=>{_0x447c84['editing']['view']['focus']();}),_0x50b5fc=_0x14ee8c['createAnnotationView'](this['editor']['locale'],_0x456646),_0x50b5fc['bind']('isDirty')['to'](_0x456646,'isDirty'),_0x50b5fc['bind']('length')['to'](_0x456646),_0x50b5fc['bind']('type')['to'](_0x456646,'type',_0x35c7ef=>'suggestion-'+_0x35c7ef),_0x456646['on']('escape',()=>{_0x9e2993['fire']('escape');}),this['_annotationViews']['set'](_0x2bb832['id'],_0x50b5fc));const _0x5b8dfd=_0x433b9c['createCommentThreadController'](_0x2bb832['commentThread'],_0x456646),_0x12e8cf=new pe(_0x447c84,_0x2bb832,_0x456646,_0x5b8dfd),_0x474999=_0x2bb832['getAllAdjacentSuggestions']()['filter'](_0x4d79d4=>_0x4d79d4['isInContent']);_0x456646['descriptionParts']=_0x447c84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x474999),this['_suggestionToController']['set'](_0x2bb832,_0x12e8cf),this['_viewToController']['set'](_0x456646,_0x12e8cf);const _0x2abc6e=()=>{const _0x5065ba=[],_0x3ec0f4=_0x2bb832['getAllAdjacentSuggestions']()['filter'](_0x2dfa7a=>_0x2dfa7a['isInContent']);for(const _0x1d8b1d of _0x3ec0f4)_0x5065ba['push'](..._0x1d8b1d['getMarkers']());return _0x1e68c0(_0x447c84['editing'],_0x5065ba);};_0x9e2993=_0x14ee8c['createAnnotation']({'view':_0x50b5fc,'target':_0x2abc6e,'type':()=>'suggestion-'+_0x12e8cf['view']['type'],'isVisible':!!_0x2abc6e()}),_0x433b9c['_bindAnnotationToEditors'](_0x456646,_0x9e2993),_0x14ee8c['add'](_0x9e2993),_0x36f0a0['registerAnnotation'](_0x9e2993);}['_destroyController'](_0x2e4a30){const _0x597aa8=this['editor']['plugins']['get']('CommentsRepository'),_0x3fb104=this['editor']['plugins']['get']('Annotations'),_0x427fec=this['_suggestionToController']['get'](_0x2e4a30),_0x40111f=_0x427fec['view'],_0x52b9ed=_0x3fb104['getByInnerView'](_0x40111f);_0x597aa8['_unbindEditors'](_0x40111f),_0x52b9ed&&_0x3fb104['remove'](_0x52b9ed),this['_suggestionToController']['delete'](_0x2e4a30),this['_viewToController']['delete'](_0x40111f),_0x427fec['destroy']();}['_updateController'](_0x1d683f){if(!_0x1d683f['isInContent']||!this['_suggestionToController']['has'](_0x1d683f))return;const _0x5388a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39c1af=this['_suggestionToController']['get'](_0x1d683f),_0xecf39c=_0x1d683f['getAllAdjacentSuggestions']();_0x39c1af['view']['descriptionParts']=_0x5388a5['descriptionFactory']['getDescriptions'](_0xecf39c);}['destroy'](){for(const _0x301802 of this['_suggestionToController']['keys']())this['_destroyController'](_0x301802);for(const _0x2a0f72 of this['_annotationViews']['values']())_0x2a0f72['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x502885){return'model'in _0x502885;}class Fe extends _0x27a926{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x50cacd){this['editor']['plugins']['get'](d)['adapter']=_0x50cacd;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x348556){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x348556);}['getSuggestions']({skipNotAttached:_0x3fb756=!0x1,toJSON:_0x3e5a39=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3fb756,'toJSON':_0x3e5a39});}['getSuggestion'](_0x3fc21c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3fc21c);}}const p=['Pagination'];class re extends _0x27a926{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55a19b=this['editor'];if(_0x55a19b['config']['define']('trackChangesData.editorCreator',_0x275c04=>{const _0x2ffbe6=_0x55a19b['model']['document']['getRootNames']()['reduce']((_0x5a224f,_0x3ae160)=>(_0x5a224f[_0x3ae160]='',_0x5a224f),{});return _0x55a19b['constructor']['create'](_0x2ffbe6,_0x275c04);}),'function'!=typeof _0x55a19b['config']['get']('trackChangesData')['editorCreator'])throw new _0x24f8f4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f9331){return P(this['editor'],!0x0,_0x1f9331);}['getDataWithDiscardedSuggestions'](_0x11fd0a){return P(this['editor'],!0x1,_0x11fd0a);}}class Ge extends _0x27a926{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc4dbca){function _0x27595e(_0xf882ce){return _0xf882ce['map'](_0x23f84e=>String['fromCharCode'](_0x23f84e))['join']('');}super(_0xc4dbca),this['result']='end',_0xc4dbca[_0x27595e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27595e([0x76,0x69,0x65,0x77])][_0x27595e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27595e([0x61,0x75,0x74,0x6f]),_0xc4dbca[_0x27595e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27595e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27595e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27595e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27595e([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 He(_0x5b7666){return void 0x0!==_0x5b7666['getRootsAttributes'];}async function P(_0x2093dd,_0x1e9c7d,_0x503324){const _0x44448f=_0x253e0a(_0x2093dd,p);_0x44448f['plugins']['push'](d,Ge),_0x44448f['rootsAttributes']=He(_0x2093dd)?_0x2093dd['getRootsAttributes']():void 0x0;const _0x29f904=document['createDocumentFragment'](),_0x10201d=_0x2093dd['config']['get']('trackChangesData')['editorCreator'],_0x24d8ff=await _0x10201d(_0x44448f,()=>function(_0x11ff8b){const _0x961ac9=document['createElement']('div');return _0x11ff8b['appendChild'](_0x961ac9),_0x961ac9;}(_0x29f904));!function(_0x2add6e,_0x307dab){const _0x59e908=_0x2add6e['model']['document']['getRootNames']()['reduce']((_0x47572a,_0x5360dd)=>(_0x47572a[_0x5360dd]=_0x2add6e['data']['get']({'rootName':_0x5360dd}),_0x47572a),{}),_0x27c5c9=_0x2add6e['plugins']['get']('Users')['users']['map'](_0x34acfa=>({'id':_0x34acfa['id'],'name':_0x34acfa['name']})),_0xf0d6ae=_0x2add6e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5367cb=_0x2add6e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c33c7=_0x307dab['plugins']['get']('Users'),_0x17b8af=_0x307dab['plugins']['get']('TrackChangesEditing'),_0xc31319=_0x307dab['plugins']['get']('CommentsRepository');for(const _0x5b21ec of _0xc31319['getCommentThreads']())_0x5b21ec['remove']();for(const _0x4d9327 of _0x27c5c9)_0x2c33c7['getUser'](_0x4d9327['id'])||_0x2c33c7['addUser'](_0x4d9327);_0x2c33c7['me']||_0x2c33c7['useAnonymousUser']();for(const _0x541461 of _0x5367cb)_0xc31319['addCommentThread'](_0x541461);for(const _0x31e513 of _0xf0d6ae)_0x17b8af['addSuggestionData'](_0x31e513);_0x307dab['data']['set'](_0x59e908);}(_0x2093dd,_0x24d8ff),_0x24d8ff['execute'](_0x1e9c7d?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e5e3a=He(_0x24d8ff)?_0x24d8ff['getFullData'](_0x503324):_0x24d8ff['data']['get'](_0x503324);return await _0x24d8ff['destroy'](),_0x1e5e3a;}class Me extends _0x45ee84{['options'];constructor(_0x395767,_0x533174){super(_0x395767),this['options']=_0x533174,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'](_0x5850ff,_0x235310){if(!this['element'])return;const _0x567c58=[];for(const [_0x7e453a,_0xdf7446]of _0x5850ff){const _0x3324db=document['createElement']('div');_0x3324db['setAttribute']('data-ck-root-name',_0x7e453a),_0x3324db['className']=_0xdf7446['classes']+'\x20ck-track-changes-preview__root-container',_0x3324db['innerHTML']=_0xdf7446['content'],_0x567c58['push'](_0x3324db);}_0x235310(this['element'],_0x567c58),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x58174f{constructor(_0x1fee24){super(_0x1fee24),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ac6b1=this['editor'],_0x777f09=_0x1ac6b1['locale'],_0xd7b69a=_0x1ac6b1['plugins']['get']('Dialog');let _0xd57734;const _0x23790c=function(_0x546188){const _0x936227={};if('editables'in _0x546188['ui']['view']){for(const [_0x2ed9b1,_0x31a813]of Object['entries'](_0x546188['ui']['view']['editables']))_0x936227[_0x2ed9b1]=_0x31a813['element'];}else _0x936227[_0x546188['model']['document']['getRootNames']()[0x0]]=_0x546188['ui']['view']['editable']['element'];return _0x936227;}(_0x1ac6b1),_0x2a442=function(_0x1ddc5d){let _0x3a6fd4=0x0;for(const _0x48b974 of Object['values'](_0x1ddc5d))_0x3a6fd4=Math['max'](_0x3a6fd4,_0x48b974['getBoundingClientRect']()['width']);let _0x43d324=0x0;for(const _0x333558 of Object['values'](_0x1ddc5d))_0x43d324+=_0x333558['getBoundingClientRect']()['height'];const _0x3588a7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x492148=Math['min'](_0x43d324,_0x3588a7);return{'width':_0x3a6fd4,'height':_0x492148};}(_0x23790c);_0xd7b69a['show']({'id':'finalContentPreview','title':o(_0x777f09,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x777f09,{'dialogRects':_0x2a442}),'onHide':()=>{_0xd57734['detachFromDom']();},'onShow':()=>{_0x1ac6b1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10c9d1=>{const _0x206573=this['_standarizeRootsData'](_0x10c9d1,_0x1ac6b1,_0x23790c);_0xd7b69a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x206573,_0x1ac6b1['config']['get']('trackChanges.preview.renderFunction'));}),_0xd57734=new _0x57a577(_0x777f09,[_0xd7b69a['view']]),_0xd57734['attachToDom'](),_0xd57734['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ac6b1['once']('destroy',()=>{_0xd57734['detachFromDom']();});const _0xc872e0=_0xd7b69a['view']['headerView']['class'];_0xd7b69a['view']['headerView']['class']=_0xc872e0?_0xc872e0+'\x20ck-reset_all':'ck-reset_all',_0xd7b69a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xd7b69a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c3e35=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x339137=_0x3c3e35['previewMode'],_0x17b286={};if('$labels'===_0x339137){for(const _0x19f8c3 of _0x3c3e35['getMergeFieldsIds']())_0x17b286[_0x19f8c3]=_0x3c3e35['getLabel'](_0x19f8c3)||_0x19f8c3;}else{const _0x30c495='$defaultValues'===_0x339137?_0x3c3e35['getDefaultValues']():_0x3c3e35['getDataSetValues'](_0x339137,!0x0);for(const _0x5165d4 of Object['entries'](_0x30c495)){const [_0x4a4113,_0x18d594]=_0x5165d4;_0x17b286[_0x4a4113]=null!==_0x18d594?_0x18d594:_0x3c3e35['getLabel'](_0x4a4113)||_0x4a4113;}}return{'mergeFieldsData':_0x17b286};}['_standarizeRootsData'](_0x4b7275,_0x78eb65,_0x1b51d2){let _0xb4e013;if('string'==typeof _0x4b7275){const _0x20d528=_0x78eb65['model']['document']['getRootNames']()[0x0];_0xb4e013={[_0x20d528]:_0x4b7275};}else _0xb4e013=_0x4b7275;const _0x5e4301=this['_fixMediaEmbeds'](_0xb4e013,_0x78eb65),_0x32650b=function(_0xef9e92,_0x74acbf){for(const [_0x31167c,_0x56e7b2]of _0xef9e92)_0x56e7b2['classes']=_0x74acbf[_0x31167c]['classList']['value']['replace']('ck-focused','');return _0xef9e92;}(this['_sortRoots'](_0x78eb65)['reduce']((_0x4a01c9,_0x142999)=>(_0x4a01c9['push']([_0x142999,{'content':_0x5e4301[_0x142999],'classes':''}]),_0x4a01c9),[]),_0x1b51d2);return _0x32650b;}['_fixMediaEmbeds'](_0x385296,_0x4a99f9){if(!_0x4a99f9['plugins']['has']('MediaEmbedEditing'))return _0x385296;const _0x95f520=_0x4a99f9['plugins']['get']('MediaEmbedEditing');for(const [_0xb0fd4a,_0x3c936f]of Object['entries'](_0x385296)){const _0x2a8b1c=document['createElement']('div');_0x2a8b1c['innerHTML']=_0x3c936f,(_0x2a8b1c['querySelectorAll']('figure.media')['forEach'](_0x36073c=>{const _0x2bd363=_0x36073c['querySelector']('oembed');if(_0x2bd363){const _0x209f87=_0x2bd363['getAttribute']('url');if(_0x209f87){const _0x1e0a97=_0x95f520['registry']['getMediaViewElement'](new _0x3fa339(_0x4a99f9['editing']['view']['document']),_0x209f87,{'elementName':'','renderForEditingView':!0x0}),_0x3859aa=document['createElement']('div');_0x3859aa['classList']['add']('ck-media__wrapper'),_0x1e0a97['render'](_0x3859aa,_0x4a99f9['editing']['view']['domConverter']),_0x2bd363['replaceWith'](_0x3859aa);}}}),_0x385296[_0xb0fd4a]=_0x2a8b1c['innerHTML']);}return _0x385296;}['_sortRoots'](_0x687b47){if(!function(_0x581306){return void 0x0!==_0x581306['getRootsAttributes'];}(_0x687b47))return _0x687b47['model']['document']['getRootNames']();const _0x27ee36=[],_0x5eb28a=new Map();for(const _0x28d6a8 of _0x687b47['model']['document']['getRootNames']()){const _0x2a4150=_0x687b47['editing']['view']['getDomRoot'](_0x28d6a8)['getClientRects']()['item'](0x0);_0x27ee36['push'](_0x28d6a8),_0x5eb28a['set'](_0x28d6a8,_0x2a4150);}return _0x27ee36['sort']((_0x2b4810,_0x5431cd)=>{const _0x4bd777=_0x5eb28a['get'](_0x2b4810),_0x2d6653=_0x5eb28a['get'](_0x5431cd);return _0x4bd777['y']-_0x2d6653['y']||_0x4bd777['x']-_0x2d6653['x'];}),_0x27ee36;}}class $e extends _0x27a926{static get['requires'](){return[re,_0x13c885];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xda89d0){super(_0xda89d0),_0xda89d0['commands']['add']('previewFinalContent',new te(this['editor'])),_0xda89d0['config']['define']('trackChanges.preview.renderFunction',(_0x355196,_0x1b3cac)=>{for(const _0x33c087 of _0x1b3cac)_0x355196['appendChild'](_0x33c087);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x19904a,Plugin as _0x1bca86,PendingActions as _0x453176}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4b5846,ObservableMixin as _0x525c04,uid as _0x573f80,priorities as _0x163a1e,insertToPriorityArray as _0x4aa073,toArray as _0x13eaa6,logWarning as _0x4f7fa7,getEnvKeystrokeText as _0x59e26d,FocusTracker as _0x1bc739,KeystrokeHandler as _0x31729b,Collection as _0xeedcbe}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5ba9a4,IconCancel as _0x410e59,IconTrackChanges as _0x140ece}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x296d10,View as _0x302463,ViewCollection as _0x180284,FocusCycler as _0x4a1c64,UIModel as _0x277d09,createDropdown as _0x4694c4,SplitButtonView as _0x44697c,addListToDropdown as _0xe21f8e,MenuBarMenuView as _0x257436,MenuBarMenuListView as _0x579a05,ListSeparatorView as _0x509549,MenuBarMenuListItemView as _0x2989f2,MenuBarMenuListItemButtonView as _0x553772,BodyCollection as _0x483eeb,Dialog as _0x21e0ca}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x52e77f,DocumentCompare as _0x56191a,hashObject as _0x3623f6,surroundingMarkersDetector as _0x18e029,FOCUS_ANNOTATION_KEYSTROKE as _0x23d5dc,AriaDescriptionView as _0x567ab5,setupThreadKeyboardNavigation as _0x48487a,trimHtml as _0x50f9b3,UserView as _0x4a34b5,LateFocusButtonView as _0x1ed099,getDateTimeFormatter as _0x47b19c,getAllMarkersDomElementsSorted as _0x1bd493,sanitizeEditorConfig as _0x9f66cf}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2228a3,ModelLiveRange as _0x35191f,ModelLivePosition as _0x244208,ModelPosition as _0x2f60c4,ModelRange as _0x24dd86,_DetachOperation as _0x5f410a,ViewDowncastWriter as _0x4606e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3b341e,toWidget as _0x4cd134}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3b51e9,set as _0x3dcbbe,isEqual as _0xbcf3a8,unset as _0x421a07,omit as Gt}from'es-toolkit/compat';import{Delete as _0x1fb13e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x30ecc7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x23c76d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x19904a{['_enabledCommands'];constructor(_0x4f97cd,_0x4f668c){super(_0x4f97cd),this['_enabledCommands']=_0x4f668c,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 _0x24b5cb of this['editor']['commands']['commands']())_0x24b5cb['affectsData']&&!this['_enabledCommands']['has'](_0x24b5cb)&&_0x24b5cb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x23d9a9 of this['editor']['commands']['commands']())_0x23d9a9['affectsData']&&!this['_enabledCommands']['has'](_0x23d9a9)&&_0x23d9a9['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x19904a{['_suggestions'];constructor(_0x2882b8,_0x2711a3){super(_0x2882b8),this['_suggestions']=_0x2711a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbd15){const _0x589d91=this['_suggestions']['get'](_0xbd15);if(!_0x589d91)throw new _0x4b5846('track-changes-accept-suggestion-not-found',this);const _0x3d6fa3=_0x589d91['getRanges']();this['editor']['model']['canEditAt'](_0x3d6fa3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x589d91);}}class O extends _0x19904a{['_suggestions'];constructor(_0x323945,_0x316a9f){super(_0x323945),this['_suggestions']=_0x316a9f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f3e7e){const _0x26a7d7=this['_suggestions']['get'](_0x3f3e7e);if(!_0x26a7d7)throw new _0x4b5846('track-changes-discard-suggestion-not-found',this);const _0xcb3155=_0x26a7d7['getRanges']();this['editor']['model']['canEditAt'](_0xcb3155)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x26a7d7);}}function ls(_0x10f211,_0x26c771){let _0xa0801='';return _0xa0801+=_0x10f211['split']('*')['map']((_0x41e083,_0x2a6355)=>_0x2a6355%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x41e083)+'</span>':tn(_0x41e083))['join'](''),_0x26c771&&(_0xa0801+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26c771['value']+'\x22\x20title=\x22'+_0x26c771['title']+'\x22></span>'),_0xa0801;}function tn(_0x541c4d){const _0xe21ed2=document['createElement']('span');return _0xe21ed2['innerText']=_0x541c4d,_0xe21ed2['innerHTML'];}function ts(_0x3525ff){return _0x3525ff['sort']((_0xfcaa17,_0x4a8f16)=>'attribute'===_0xfcaa17['type']&&'attribute'!==_0x4a8f16['type']?-0x1:'attribute'!==_0xfcaa17['type']&&'attribute'===_0x4a8f16['type']?0x1:'deletion'==_0xfcaa17['type']&&'deletion'!=_0x4a8f16['type']?-0x1:'deletion'!=_0xfcaa17['type']&&'deletion'==_0x4a8f16['type']?0x1:0x0);}function to(_0x37f69f,_0x16a887){let _0x208c24,_0x58b147=0x0;const _0x2d0e6d=[],_0x3c0b5d=_0x16a887['schema'];for(;_0x58b147<_0x37f69f['length'];){const _0x4150f5=_0x37f69f[_0x58b147],_0x3c0371=_0x37f69f[_0x58b147+0x1];_0x208c24||(_0x208c24=_0x16a887['createPositionBefore'](_0x4150f5)),nn(_0x16a887,_0x4150f5,_0x3c0371)||(_0x2d0e6d['push'](_0x16a887['createRange'](_0x208c24,_0x3c0b5d['isObject'](_0x4150f5)?_0x16a887['createPositionAfter'](_0x4150f5):_0x16a887['createPositionAt'](_0x4150f5,'end'))),_0x208c24=null),_0x58b147++;}return _0x2d0e6d;}function nn(_0x349567,_0x2be1de,_0x74e55){if(!_0x74e55)return!0x1;const _0x4fd3ef=_0x349567['createPositionAfter'](_0x2be1de),_0xc4e9a3=_0x349567['createPositionBefore'](_0x74e55);return _0x4fd3ef['isTouching'](_0xc4e9a3);}function rs(_0x39e24c,_0x3729aa,_0x1ef69b){for(;_0x1ef69b['length'];){const _0x560383=_0x1ef69b['splice'](0x0,0x64);_0x39e24c['change'](()=>{for(const _0x5f4b63 of _0x560383)_0x5f4b63['isInContent']&&_0x3729aa['execute'](_0x5f4b63['id']);});}}class x extends _0x19904a{['_command'];['_suggestions'];constructor(_0x2a7be6,_0x501eb3,_0x70007f){super(_0x2a7be6),this['_command']=_0x501eb3,this['_suggestions']=_0x70007f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdcf457=Array['from'](this['_suggestions']['values']())['some'](_0x28424f=>_0x28424f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xdcf457;}['execute'](){const _0x463b74=ts(Array['from'](this['_suggestions']['values']()));for(const _0x33c4bf of _0x463b74){const _0x941619=_0x33c4bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x941619))return;}rs(this['editor']['model'],this['_command'],_0x463b74);}}class E extends _0x19904a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37ddd0,_0x1cb643,_0x225ce4){super(_0x37ddd0),this['_command']=_0x1cb643,this['_suggestions']=_0x225ce4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x58d600=this['editor']['model']['document']['selection'],_0x4241ed=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x23b994,_0x6c70c6){const _0x477086=Array['from'](_0x23b994['getRanges']()),_0xb97707=new Set();for(const _0x22218f of _0x6c70c6)if(_0x22218f['isInContent']){for(const _0xda8052 of _0x477086)for(const _0x38a200 of _0x22218f['getRanges']())(_0xda8052['isIntersecting'](_0x38a200)||_0x23b994['isCollapsed']&&!_0x22218f['isMultiRange']&&_0x22218f['next']&&_0x38a200['end']['isTouching'](_0xda8052['start']))&&_0xb97707['add'](_0x22218f);}return _0xb97707;}(_0x58d600,_0x4241ed),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x19ac32=ts(Array['from'](this['_selectedSuggestions']));for(const _0x781d69 of _0x19ac32){const _0x4e4546=_0x781d69['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e4546))return;}rs(this['editor']['model'],this['_command'],_0x19ac32);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x525c04(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x30adf9,_0x2d85a0){super(),this['id']=_0x2d85a0['id'],this['type']=_0x2d85a0['type'],this['subType']=_0x2d85a0['subType']||null,this['author']=_0x2d85a0['author'],this['creator']=_0x2d85a0['creator']||_0x2d85a0['author'],this['isExternal']=Boolean(_0x2d85a0['attributes']&&_0x2d85a0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2d85a0['originalSuggestionId']||null,this['_model']=_0x30adf9,this['_onAccept']=_0x2d85a0['onAccept'],this['_onDiscard']=_0x2d85a0['onDiscard'],this['_onAttributesChange']=_0x2d85a0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2d85a0['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 _0x5577b7=this;for(;_0x5577b7['previous'];)_0x5577b7=_0x5577b7['previous'];return _0x5577b7;}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'](_0x1058ea){this['_markerNames']['add'](_0x1058ea);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x49f9ee=>this['_model']['markers']['get'](_0x49f9ee))['filter'](_0x21ea74=>_0x21ea74);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5590e7=>{for(const _0x4c7083 of this['getMarkers']())_0x5590e7['removeMarker'](_0x4c7083);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e6d26){this['_model']['change'](_0x2d2909=>{_0x2d2909['removeMarker'](_0x3e6d26);}),this['_markerNames']['delete'](_0x3e6d26);}['addRange'](_0x579444){const _0x18eb75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x18eb75),this['_model']['change'](_0x55e011=>{_0x55e011['addMarker'](_0x18eb75,{'range':_0x579444,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x470d36){for(const _0x3d6f8a of this['getRanges']())if(_0x3d6f8a['isIntersecting'](_0x470d36))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24e2fe=>_0x24e2fe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xda9bf,_0x171b82)=>[..._0xda9bf,..._0x171b82['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x235e5d=this['getRanges']();if(0x1!=_0x235e5d['length'])return null;const _0x168ec8=_0x235e5d[0x0],_0x5cd3e9=_0x168ec8['start']['nodeAfter'],_0x3739a0=_0x168ec8['end']['nodeBefore'];return _0x5cd3e9 instanceof _0x2228a3?_0x5cd3e9!=_0x3739a0?null:_0x5cd3e9: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 _0x453652=[];let _0x12df61=this['head'];for(;_0x12df61;)_0x453652['push'](_0x12df61),_0x12df61=_0x12df61['next'];return _0x453652;}['setAttribute'](_0x49b3b9,_0x37990d){const _0x53bd0a=_0x3b51e9(this['attributes']);_0x3dcbbe(_0x53bd0a,_0x49b3b9,_0x37990d),_0xbcf3a8(_0x53bd0a,this['attributes'])||(this['attributes']=_0x53bd0a,this['_onAttributesChange'](_0x53bd0a));}['removeAttribute'](_0x328b38){const _0x19157f=_0x3b51e9(this['attributes']);_0x421a07(_0x19157f,_0x328b38),_0xbcf3a8(_0x19157f,this['attributes'])||(this['attributes']=_0x19157f,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 _0x573f80()['substr'](0x1,0x5);}}function o(_0x49f3cd,_0x36c6fe,_0x15e37d){const _0x480192=_0x49f3cd['t'],t=_0x49f3cd['t'];switch(_0x36c6fe){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',_0x15e37d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x15e37d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x15e37d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x15e37d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x15e37d);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',_0x15e37d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x15e37d);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',_0x15e37d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x15e37d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x15e37d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x15e37d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x15e37d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x15e37d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x15e37d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x15e37d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x15e37d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x15e37d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x15e37d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x15e37d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x15e37d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x15e37d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x15e37d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x15e37d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x15e37d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x15e37d);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'},_0x15e37d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x15e37d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x15e37d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x15e37d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x15e37d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x15e37d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x15e37d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x15e37d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x15e37d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x15e37d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x15e37d);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'},_0x15e37d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x15e37d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x15e37d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x15e37d);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'},_0x15e37d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x15e37d);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 _0x480192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x15e37d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x480192({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x15e37d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x15e37d);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'},_0x15e37d);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'},_0x15e37d);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'},_0x15e37d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x36c6fe;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a9e60,_0x2f90b4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a9e60,this['_locale']=_0x2f90b4;}['getDescriptions'](_0x46c9a2){const _0x19e196=[],_0x5ebd6a=new Set(),_0xf9d088=new Set();for(let _0x93ce97=0x0;_0x93ce97<_0x46c9a2['length'];_0x93ce97++){const _0x35469d=_0x46c9a2[_0x93ce97];if(!_0x35469d['isInContent'])continue;const _0x484985=this['_handleCustomCallbackDescription'](_0x35469d);if(_0x484985){if(null!=_0x35469d['subType']){if(_0x5ebd6a['has'](_0x35469d['subType']))continue;_0x5ebd6a['add'](_0x35469d['subType']);}_0x19e196['push'](_0x484985);}else{if('attribute'==_0x35469d['type']){const _0x590376=_0x35469d['data']['key'];if(_0xf9d088['has'](_0x590376))continue;_0xf9d088['add'](_0x35469d['data']['key']),_0x590376==m?this['_handleRenameSuggestionDescription'](_0x19e196,_0x35469d):this['_handleAttributeSuggestionDescription'](_0x19e196,_0x35469d);continue;}'insertion'!=_0x35469d['type']&&'deletion'!=_0x35469d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19e196,_0x35469d,_0x46c9a2[_0x93ce97+0x1]);}}return this['_resolveDescriptionItems'](_0x19e196);}['registerDescriptionCallback'](_0x58ae54){this['_customCallbacks']['push'](_0x58ae54);}['registerElementLabel'](_0x28370a,_0x313093,_0x4480b=_0x163a1e['normal']){'function'==typeof _0x28370a?_0x4aa073(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28370a,'label':_0x313093,'priority':_0x4480b}):this['_itemLabels']['set'](_0x28370a,_0x313093);}['registerAttributeLabel'](_0x3460a6,_0x14e419){this['_attributeLabels']['set'](_0x3460a6,_0x14e419);}['getItemLabel'](_0x41aa3a,_0x16e2fc=0x1){let _0x31f190;for(const _0x75edd5 of this['_itemLabelsCallbacks'])if(_0x75edd5['matchingCallback'](_0x41aa3a)){_0x31f190=_0x75edd5['label'];break;}return _0x31f190||(_0x31f190=this['_itemLabels']['get'](_0x41aa3a['name'])),_0x31f190?_0x31f190(_0x16e2fc):0x1!==_0x16e2fc?_0x16e2fc+'\x20'+_0x41aa3a['name']+'s':''+_0x41aa3a['name'];}['_addDescriptionItems'](_0x1a0264,_0x149c29){const _0x513221=_0x149c29['getFirstRange']()['getWalker'](),_0x2102e9='insertion'==_0x149c29['type']?'add':'remove';for(const _0x1dee40 of _0x513221){const _0x467376=_0x1dee40['item'],_0x226c3a=_0x1a0264[_0x1a0264['length']-0x1];if(_0x467376['is']('$textProxy'))_0x226c3a&&_0x226c3a['type']['indexOf']('Container')>-0x1&&_0x1a0264['pop'](),_0x226c3a&&'text'==_0x226c3a['type']?_0x226c3a[_0x2102e9]+=_0x467376['data']:_0x1a0264['push']({'type':'text','add':'add'==_0x2102e9?_0x467376['data']:'','remove':'remove'==_0x2102e9?_0x467376['data']:''});else{if(this['_schema']['isObject'](_0x467376)){const _0x2a3bf0=_0x467376;if(_0x226c3a&&_0x226c3a['type']['indexOf']('Container')>-0x1&&_0x1a0264['pop'](),'elementEnd'==_0x1dee40['type'])continue;_0x226c3a&&_0x226c3a['type']==_0x2102e9+'Object'&&_0x226c3a['element']['name']==_0x2a3bf0['name']?_0x226c3a['quantity']++:_0x1a0264['push']({'type':_0x2102e9+'Object','element':_0x2a3bf0,'quantity':0x1}),_0x513221['skip'](_0x368006=>!('elementEnd'==_0x368006['type']&&_0x368006['item']==_0x467376));}else{if(this['_schema']['checkChild'](_0x467376,'$text')||_0x467376['is']('element','softBreak')){const _0x500814=_0x467376;if('add'==_0x2102e9&&'elementStart'==_0x1dee40['type']||'remove'==_0x2102e9&&'elementEnd'==_0x1dee40['type'])continue;if(_0x226c3a&&-0x1==_0x226c3a['type']['indexOf']('Container')){'text'==_0x226c3a['type']&&(_0x226c3a[_0x2102e9]+='\x0a');continue;}let _0x53627f;if(_0x53627f='add'==_0x2102e9?_0x500814['nextSibling']&&!this['_schema']['isObject'](_0x500814['nextSibling'])?_0x500814['nextSibling']:null:_0x500814['previousSibling']&&!this['_schema']['isObject'](_0x500814['previousSibling'])?_0x500814['previousSibling']:null,_0x500814['isEmpty']||_0x53627f&&_0x53627f['isEmpty']){const _0x143661=_0x53627f&&_0x53627f['isEmpty']?_0x53627f:_0x500814;_0x226c3a&&_0x226c3a['type']==_0x2102e9+'EmptyContainer'&&_0x226c3a['element']['name']==_0x143661['name']?_0x226c3a['quantity']++:_0x1a0264['push']({'type':_0x2102e9+'EmptyContainer','element':_0x143661,'quantity':0x1});}else _0x1a0264['push']({'type':_0x2102e9+'Container','element':_0x500814});}}}}}['_resolveDescriptionItems'](_0x42c8b2){const _0x211734=this['_locale'],_0x396487=[],_0x20c1c0=[],_0x576c73=[];for(const _0x9e62c5 of _0x42c8b2)switch(_0x9e62c5['type']){case'text':if(_0x9e62c5['add']=_0x9e62c5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x9e62c5['remove']=_0x9e62c5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x9e62c5['add']&&''!=_0x9e62c5['remove']){_0x396487['push']({'type':'replace','content':o(_0x211734,'REPLACE_TEXT',['\x22'+_0x9e62c5['remove']+'\x22','\x22'+_0x9e62c5['add']+'\x22'])});continue;}if(null!=_0x9e62c5['add']['match'](/^ +$/)){_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0',o(_0x211734,'ELEMENT_SPACE',_0x9e62c5['add']['length']))});continue;}if(null!=_0x9e62c5['remove']['match'](/^ +$/)){_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0',o(_0x211734,'ELEMENT_SPACE',_0x9e62c5['remove']['length']))});continue;}if(''!=_0x9e62c5['add']){_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0','\x22'+_0x9e62c5['add']+'\x22')});continue;}_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0','\x22'+_0x9e62c5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Insert:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Remove:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'addContainer':_0x396487['push']({'type':'insertion','content':o(_0x211734,'*Split:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'removeContainer':_0x396487['push']({'type':'deletion','content':o(_0x211734,'*Merge:*\x20%0',this['getItemLabel'](_0x9e62c5['element'],_0x9e62c5['quantity']))});continue;case'addFormat':_0x20c1c0['push'](_0x9e62c5['key']);continue;case'removeFormat':_0x576c73['push'](_0x9e62c5['key']);continue;default:_0x396487['push'](_0x9e62c5);}if(_0x20c1c0['length']){const _0x1eec64=_0x20c1c0['map'](_0x1e0998=>this['_attributeLabels']['has'](_0x1e0998)?this['_attributeLabels']['get'](_0x1e0998):_0x1e0998)['join'](',\x20');_0x396487['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1eec64)});}if(_0x576c73['length']){const _0x5bbf43=_0x576c73['map'](_0x44c216=>this['_attributeLabels']['has'](_0x44c216)?this['_attributeLabels']['get'](_0x44c216):_0x44c216)['join'](',\x20');_0x396487['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bbf43)});}return _0x396487;}['_handleCustomCallbackDescription'](_0x4920e5){for(const _0x3eb6e of this['_customCallbacks']){const _0x4f8111=_0x3eb6e(_0x4920e5);if(_0x4f8111&&'type'in _0x4f8111)return _0x4f8111;}}['_handleAttributeSuggestionDescription'](_0x5a0df7,_0x1bef67){const _0x414547=_0x1bef67['data'],_0x4c14b9=void 0x0===_0x414547['newValue']?'removeFormat':'addFormat';_0x5a0df7['push']({'type':_0x4c14b9,'key':_0x414547['key']});}['_handleRenameSuggestionDescription'](_0x5b90b2,_0x5c9f06){_0x5b90b2['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c9f06['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1368bd,_0xb95b51,_0x4787e1){if(this['_addDescriptionItems'](_0x1368bd,_0xb95b51),_0x4787e1&&_0x4787e1['getFirstRange']()&&!_0xb95b51['getFirstRange']()['end']['isEqual'](_0x4787e1['getFirstRange']()['start'])){const _0x5b3da1=_0x1368bd[_0x1368bd['length']-0x1],_0xf0fc9a='insertion'==_0xb95b51['type']?'add':'remove';_0x5b3da1&&'text'==_0x5b3da1['type']&&(_0x5b3da1[_0xf0fc9a]+='\x0a');}}}class V extends _0x1bca86{['afterInit'](){const _0x91a160=this['editor'],_0x974a4c=_0x91a160['plugins']['get']('TrackChangesEditing');_0x91a160['commands']['get']('showAIAssistant')&&_0x974a4c['enableCommand']('showAIAssistant');}}class F extends _0x1bca86{['afterInit'](){const _0x4d57f6=this['editor'],_0x4ec6e2=_0x4d57f6['locale'];if(!_0x4d57f6['plugins']['has']('AlignmentEditing'))return;const _0x3fe495=_0x4d57f6['plugins']['get']('TrackChangesEditing');_0x3fe495['enableDefaultAttributesIntegration']('alignment'),_0x3fe495['registerBlockAttribute']('alignment'),_0x3fe495['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4ec6e2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e6359=this['editor'],_0x4d2ddf=_0x1e6359['locale'];_0x1e6359['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8283=>{if('formatBlock'!=_0x1d8283['type'])return;const {data:_0x56e246}=_0x1d8283;if(_0x56e246&&'alignment'==_0x56e246['commandName']){const _0x576a3a=_0x56e246['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4d2ddf,'*Format:*\x20%0',function(_0xd891d4){switch(_0xd891d4){case'left':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4d2ddf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4d2ddf,'FORMAT_JUSTIFY_TEXT');}}(_0x576a3a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1bca86{['afterInit'](){const _0x5c3709=this['editor'],_0x4cf756=_0x5c3709['plugins']['get']('TrackChangesEditing'),_0x6a49cf=_0x5c3709['locale'];for(const _0x2352f9 of ti){if(!_0x5c3709['plugins']['has'](_0x2352f9))continue;const _0x32a781=_0x2352f9['slice'](0x0,-0x7)['toLowerCase'](),_0x243a22='FORMAT_'+_0x32a781['toUpperCase']();_0x4cf756['enableDefaultAttributesIntegration'](_0x32a781),_0x4cf756['registerInlineAttribute'](_0x32a781),_0x4cf756['descriptionFactory']['registerAttributeLabel'](_0x32a781,o(_0x6a49cf,_0x243a22));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x489120=this['editor'],_0x1d4fcd=_0x489120['locale'],_0x4d2167=_0x489120['plugins']['get']('TrackChangesEditing');function _0x2cc1f5(_0x2adf51,_0x1b9cdc){_0x4d2167['descriptionFactory']['registerDescriptionCallback'](_0x5d3f2d=>{if('formatInline'!=_0x5d3f2d['type'])return;const {data:_0x48e1d6}=_0x5d3f2d;return _0x48e1d6&&_0x48e1d6['commandName']===_0x2adf51?_0x48e1d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d4fcd,'*Format:*\x20%0',_0x1b9cdc)}:{'type':'format','content':o(_0x1d4fcd,'*Remove\x20format:*\x20%0',_0x1b9cdc)}:void 0x0;});}_0x2cc1f5('bold',o(_0x1d4fcd,'FORMAT_BOLD')),_0x2cc1f5('italic',o(_0x1d4fcd,'FORMAT_ITALIC')),_0x2cc1f5('underline',o(_0x1d4fcd,'FORMAT_UNDERLINE')),_0x2cc1f5('code',o(_0x1d4fcd,'FORMAT_CODE')),_0x2cc1f5('strikethrough',o(_0x1d4fcd,'FORMAT_STRIKETHROUGH')),_0x2cc1f5('subscript',o(_0x1d4fcd,'FORMAT_SUBSCRIPT')),_0x2cc1f5('superscript',o(_0x1d4fcd,'FORMAT_SUPERSCRIPT'));}}class L extends _0x1bca86{['afterInit'](){const _0x108029=this['editor'],_0x2f719a=_0x108029['locale'];if(!_0x108029['plugins']['has']('BlockQuoteEditing'))return;const _0x37ad00=_0x108029['plugins']['get']('TrackChangesEditing'),_0x4ccd01=this['editor']['commands']['get']('blockQuote');_0x37ad00['enableCommand']('blockQuote',(_0x425ec3,_0x117121={})=>{const _0x1ad79b=this['editor']['model']['document']['selection'],_0xb86035=_0x117121&&void 0x0!==_0x117121['forceValue']?_0x117121['forceValue']:!_0x4ccd01['value'];let _0x5f30b0=[];if(_0xb86035){const _0x110565=Array['from'](_0x1ad79b['getSelectedBlocks']())['filter'](_0x2e6a10=>oo(_0x2e6a10)||function(_0x4e079f,_0xd5b350){const _0x46a4ec=_0xd5b350['checkChild'](_0x4e079f['parent'],'blockQuote'),_0x51b991=_0xd5b350['checkChild'](['$root','blockQuote'],_0x4e079f);return _0x46a4ec&&_0x51b991;}(_0x2e6a10,this['editor']['model']['schema']));_0x5f30b0=to(_0x110565,_0x108029['model']);}else{const _0x4315fa=Array['from'](_0x1ad79b['getSelectedBlocks']())['filter'](_0x4d2dd1=>oo(_0x4d2dd1));_0x5f30b0=to(_0x4315fa,_0x108029['model']);}_0x108029['model']['change'](()=>{for(const _0x4b3ee6 of _0x5f30b0)_0x37ad00['markBlockFormat'](_0x4b3ee6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xb86035}]});});}),_0x37ad00['descriptionFactory']['registerDescriptionCallback'](_0x553da0=>{const {data:_0x1553ba}=_0x553da0;if(_0x1553ba&&'blockQuote'==_0x1553ba['commandName']){const _0x20ecb2=o(_0x2f719a,'ELEMENT_BLOCK_QUOTE');return _0x1553ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f719a,'*Set\x20format:*\x20%0',_0x20ecb2)}:{'type':'format','content':o(_0x2f719a,'*Remove\x20format:*\x20%0',_0x20ecb2)};}});}}function oo(_0x221409){return'blockQuote'==_0x221409['parent']['name'];}class J extends _0x1bca86{['afterInit'](){const _0x5573b5=this['editor'],_0x5ce3b0=_0x5573b5['locale'],_0x592865=_0x5573b5['plugins']['get']('TrackChangesEditing');_0x5573b5['plugins']['has']('BookmarkEditing')&&(_0x592865['enableCommand']('insertBookmark'),_0x592865['enableDefaultAttributesIntegration']('updateBookmark'),_0x592865['registerBlockAttribute']('bookmarkId'),_0x592865['descriptionFactory']['registerDescriptionCallback'](_0x5eccd3=>{if('insertion'!=_0x5eccd3['type']&&'deletion'!=_0x5eccd3['type']&&'attribute'!=_0x5eccd3['type'])return;const _0xc52a33=_0x5eccd3['getContainedElement']();if(null==_0xc52a33)return;if(!_0xc52a33['is']('element','bookmark'))return;const _0x164ef2=_0xc52a33['getAttribute']('bookmarkId');if('insertion'==_0x5eccd3['type'])return{'type':'insertion','content':o(_0x5ce3b0,'*Insert:*\x20%0','\x22'+_0x164ef2+'\x22\x20'+o(_0x5ce3b0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5eccd3['type'])return{'type':'deletion','content':o(_0x5ce3b0,'*Remove:*\x20%0','\x22'+_0x164ef2+'\x22\x20'+o(_0x5ce3b0,'ELEMENT_BOOKMARK'))};const {data:_0x1bcc3f}=_0x5eccd3;if(!_0x1bcc3f||'bookmarkId'!=_0x1bcc3f['key'])return;return{'type':'format','content':o(_0x5ce3b0,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bcc3f['newValue']+'\x22')};}));}}class K extends _0x1bca86{['afterInit'](){const _0x276382=this['editor'];_0x276382['plugins']['has']('CaseChange')&&(_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x276382['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1bca86{['afterInit'](){const _0x322aa1=this['editor'];_0x322aa1['commands']['get']('ckbox')&&_0x322aa1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x1bca86{['afterInit'](){const _0x5994f2=this['editor'];if(!_0x5994f2['plugins']['has']('CodeBlock'))return;const _0x2e3b5b=_0x5994f2['plugins']['get']('TrackChangesEditing'),_0x284502=_0x5994f2['locale'],_0x3313bd=_0x5994f2['config']['get']('codeBlock')['languages'],_0x243444=_0x5994f2['commands']['get']('codeBlock');_0x2e3b5b['enableCommand']('indentCodeBlock'),_0x2e3b5b['enableCommand']('outdentCodeBlock'),_0x2e3b5b['enableCommand']('codeBlock',(_0x314740,_0xb756ab={})=>{const _0x23f8f2=_0x5994f2['model'],_0x5ac19c=_0x5994f2['model']['document']['selection'],_0x84b40e=_0xb756ab&&void 0x0!==_0xb756ab['forceValue']?_0xb756ab['forceValue']:!_0x243444['value'];let _0x50759d;_0xb756ab['language']||(_0xb756ab['language']=_0x3313bd[0x0]['language']),_0x50759d=_0x84b40e?Array['from'](_0x5ac19c['getSelectedBlocks']())['filter'](_0x231cf5=>co(_0x231cf5)||function(_0x4c2b9b,_0xd4c95c){if(_0x4c2b9b['is']('rootElement')||_0xd4c95c['isLimit'](_0x4c2b9b))return!0x1;return _0xd4c95c['checkChild'](_0x4c2b9b['parent'],'codeBlock');}(_0x231cf5,_0x23f8f2['schema'])):Array['from'](_0x5ac19c['getSelectedBlocks']())['filter'](_0x257eb9=>co(_0x257eb9));const _0x4bd849=to(_0x50759d,_0x23f8f2);_0x23f8f2['change'](()=>{for(const _0x10ec7f of _0x4bd849)_0x2e3b5b['markBlockFormat'](_0x10ec7f,{'commandName':'codeBlock','commandParams':[{..._0xb756ab,'forceValue':_0x84b40e}],'formatGroupId':'blockName'});});}),(_0x2e3b5b['descriptionFactory']['registerElementLabel']('codeBlock',_0x1cc3e8=>o(_0x284502,'ELEMENT_CODE_BLOCK',_0x1cc3e8)),_0x2e3b5b['descriptionFactory']['registerDescriptionCallback'](_0x2ac96c=>{if('formatBlock'!=_0x2ac96c['type'])return;const _0x2ce7c2=_0x284502['t'],{data:_0x4c9389}=_0x2ac96c;if(!_0x4c9389||'codeBlock'!=_0x4c9389['commandName'])return;const _0x2d5a1c=_0x4c9389['commandParams'][0x0]['language'],_0x2b5580=_0x2ce7c2(_0x3313bd['find'](_0xe34c47=>_0xe34c47['language']===_0x2d5a1c)['label'])['toLowerCase']();return _0x4c9389['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x284502,'*Set\x20format:*\x20%0',o(_0x284502,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2b5580+')')}:{'type':'format','content':o(_0x284502,'*Remove\x20format:*\x20%0',o(_0x284502,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x58f86d){return'codeBlock'==_0x58f86d['name'];}class q extends _0x1bca86{['afterInit'](){const _0x5bf898=this['editor'];if(!_0x5bf898['plugins']['has']('CommentsEditing'))return;_0x5bf898['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x570e2d,_0xdc56d7,_0x1d74e2){const _0x4ff967=[];for(const _0x365820 of _0xdc56d7['getItems']())_0x365820['hasAttribute'](_0x570e2d)&&_0x4ff967['push'](_0x1d74e2['createRangeOn'](_0x365820));return _0x4ff967;}function Ge(_0x330c8e,_0xcc97cb,{showActiveMarker:_0x134a9b=!0x0}={}){const _0x2d3202=_0x330c8e['plugins']['get']('TrackChangesEditing');return(_0x506e4a,_0x46f44c,_0x313902)=>{if(!_0x313902['consumable']['test'](_0x46f44c['markerRange'],_0x506e4a['name']))return;const _0x42e011=_0x46f44c['markerRange']['getWalker'](),_0x4f2846=_0x46f44c['markerRange']['start'],_0x5c6bf5=_0x330c8e['model']['schema'];let _0x5d916e=null,_0x41f4bd=null,_0x16f6fe=!0x1,_0x5b0418=!0x1;for(const _0x4ef698 of _0x42e011){const _0x1d0190=_0x4ef698['item'];_0x16f6fe=_0x16f6fe||_0x5c6bf5['isContent'](_0x1d0190);const _0x4c484a=_0x313902['mapper']['toViewElement'](_0x1d0190);if(_0x4c484a&&_0x4c484a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4ef698['type']&&(_0x5c6bf5['isBlock'](_0x1d0190)&&!_0x5c6bf5['isLimit'](_0x1d0190)&&(_0x1d0190['nextSibling']||_0x4f2846['isAtEnd']?_0x5d916e&&_0x5d916e['parent']==_0x1d0190||(_0x5d916e=_0x1d0190,_0x1b0522(_0x4ef698['previousPosition']),_0x5b0418=!0x0):_0x41f4bd=_0x41f4bd||_0x4ef698['previousPosition']));}function _0x1b0522(_0x4e689a){const {id:_0x386e96,authorId:_0x5e9e81}=_0x2d3202['_splitMarkerName'](_0x46f44c['markerName']),_0x531f64=_0x313902['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcc97cb,'data-suggestion':_0x386e96,'data-author-id':_0x5e9e81}),_0x570e3d=_0x313902['mapper']['toViewPosition'](_0x4e689a);_0x134a9b&&_0x2d3202['activeMarkers']['includes'](_0x46f44c['markerName'])&&_0x313902['writer']['addClass']('ck-suggestion-marker--active',_0x531f64),_0x313902['writer']['insert'](_0x570e3d,_0x531f64),_0x313902['mapper']['bindElementToMarker'](_0x531f64,_0x46f44c['markerName']);}_0x16f6fe||_0x5b0418||!_0x41f4bd||_0x1b0522(_0x41f4bd);};}class z extends _0x1bca86{static get['requires'](){return[_0x1fb13e];}['init'](){const _0xd7e495=this['editor'],_0x53edb8=_0xd7e495['plugins']['get']('TrackChangesEditing');_0x53edb8['enableCommand']('delete');const _0x14c0d1=_0xd7e495['commands']['get']('deleteForward');_0x53edb8['enableCommand']('deleteForward',(_0x13fbd1,_0xa6a01f={})=>{const _0x1ea6d3=_0xd7e495['model']['createSelection'](_0xd7e495['model']['document']['selection']);_0x1ea6d3['isCollapsed']&&_0xd7e495['model']['modifySelection'](_0x1ea6d3,{'direction':'forward','unit':_0xa6a01f['unit']});const _0x5755f1=_0x1ea6d3['getFirstRange'](),_0x5ea2d6=_0x35191f['fromRange'](_0x5755f1);let _0x42373b;_0x13fbd1(_0xa6a01f),_0x42373b='$graveyard'==_0x5ea2d6['root']['rootName']?_0xd7e495['model']['createRange'](_0x5755f1['start']):_0xd7e495['model']['createRange'](_0x5ea2d6['start'],_0x5ea2d6['end']),_0x5ea2d6['detach'](),_0xd7e495['model']['enqueueChange'](_0x14c0d1['buffer']['batch'],_0x143491=>{_0x14c0d1['buffer']['lock'](),_0x143491['setSelection'](_0x143491['createRange'](_0x42373b['end'])),_0x14c0d1['buffer']['unlock']();});}),_0xd7e495['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0xd7e495,'merge'),{'priority':'high'}),_0xd7e495['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a41dc,_0x5208f8,_0x1d3d55)=>{_0x1d3d55['options']['showSuggestionHighlights']&&Ge(_0xd7e495,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a41dc,_0x5208f8,_0x1d3d55);},{'priority':'high'}),_0xd7e495['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x27fa9b,_0x3baf95,_0x280f49)=>{const _0x2cab33=_0x280f49['mapper']['markerNameToElements'](_0x3baf95['markerName']);if(_0x2cab33){for(const _0x56b36e of _0x2cab33)_0x56b36e['is']('uiElement')&&(_0x280f49['mapper']['unbindElementFromMarkerName'](_0x56b36e,_0x3baf95['markerName']),_0x280f49['writer']['remove'](_0x56b36e));}},{'priority':'high'});}}class Q extends _0x1bca86{['afterInit'](){const _0x340ca0=this['editor'];if(!_0x340ca0['plugins']['has']('ListEditing'))return;const _0x63b751=_0x340ca0['locale'],_0x6f2c28=_0x340ca0['plugins']['get']('TrackChangesEditing'),_0x5d3060=_0x340ca0['plugins']['has']('TodoListEditing'),_0x2acf59=!!_0x340ca0['config']['get']('list.multiBlock');function _0x419caf(_0x5ac214){return{'type':'format','content':''+o(_0x63b751,'*Set\x20format:*\x20%0',_0x5ac214)};}function _0x274f9e(_0x4846df){return{'type':'format','content':''+o(_0x63b751,'*Remove\x20format:*\x20%0',_0x4846df)};}_0x6f2c28['enableDefaultAttributesIntegration']('numberedList'),_0x6f2c28['enableDefaultAttributesIntegration']('bulletedList'),_0x6f2c28['enableDefaultAttributesIntegration']('customNumberedList'),_0x6f2c28['enableDefaultAttributesIntegration']('customBulletedList'),_0x6f2c28['enableDefaultAttributesIntegration']('indentList'),_0x6f2c28['enableDefaultAttributesIntegration']('outdentList'),_0x6f2c28['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6f2c28['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6f2c28['registerBlockAttribute']('listItemId'),_0x6f2c28['registerBlockAttribute']('listType'),_0x6f2c28['registerBlockAttribute']('listIndent'),_0x2acf59&&(_0x6f2c28['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6f2c28['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5d3060&&(_0x6f2c28['enableDefaultAttributesIntegration']('todoList'),_0x6f2c28['enableDefaultAttributesIntegration']('checkTodoList'),_0x6f2c28['registerBlockAttribute']('todoListChecked'),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x214ae=>{const {data:_0x4da5b3}=_0x214ae;if(_0x4da5b3&&'todoListChecked'==_0x4da5b3['key'])return{'type':'format','content':_0x4da5b3['newValue']?o(_0x63b751,'*Check\x20item*'):o(_0x63b751,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xa80f97=>{if(_0xa80f97['batch']['isUndo'])return!0x1;let _0x80944d=!0x1;const _0x5f34c7=_0x6f2c28['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26b991=>'todoListChecked'===_0x6f2c28['_getAttributeKey'](_0x26b991));for(const _0x3bdd9f of _0x5f34c7){'todo'!=_0x3bdd9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6f2c28['_findSuggestions'](_0x3bdd9f['getFirstRange'](),'attribute')['find'](_0x230a05=>'listType'===_0x6f2c28['_getAttributeKey'](_0x230a05['suggestion']))||(_0xa80f97['removeMarker'](_0x3bdd9f['getFirstMarker']()),_0x80944d=!0x0));}return _0x80944d;})),_0x6f2c28['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x63b751,'FORMAT_INDENT'));const _0x37bcb5={'type':'format','content':''};_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x1927a0=>{const {data:_0x55744b}=_0x1927a0;if(!_0x55744b||'listType'!=_0x55744b['key'])return;let _0x1db502=_0x1927a0['head'];for(;_0x1db502;){if(_0x1db502['data']&&(('listStyle'==_0x1db502['data']['key']||'listMarkerStyle'==_0x1db502['data']['key'])&&(_0x1db502['data']['newValue']&&'default'!=_0x1db502['data']['newValue']||'default'!=_0x1db502['data']['oldValue']&&!_0x55744b['newValue'])||!_0x2acf59&&_0x1db502['data']['key']==m))return _0x37bcb5;_0x1db502=_0x1db502['next'];}if(null==_0x55744b['newValue'])switch(_0x55744b['oldValue']){case'bulleted':return _0x274f9e(o(_0x63b751,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x274f9e(o(_0x63b751,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x274f9e(o(_0x63b751,'ELEMENT_TODO_LIST'));}switch(_0x55744b['newValue']){case'bulleted':return _0x419caf(o(_0x63b751,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x419caf(o(_0x63b751,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x419caf(o(_0x63b751,'ELEMENT_TODO_LIST'));}}),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x206853=>{const {data:_0xf0116f}=_0x206853;if(_0xf0116f&&'listIndent'==_0xf0116f['key'])return null==_0xf0116f['newValue']||null==_0xf0116f['oldValue']&&0x0==_0xf0116f['newValue']?_0x37bcb5:void 0x0;}),_0x6f2c28['descriptionFactory']['registerDescriptionCallback'](_0x717126=>{if('attribute'!=_0x717126['type'])return;const {data:_0x1c71f4}=_0x717126;if(!_0x1c71f4||'listItemId'!=_0x1c71f4['key'])return;const _0x455eae=Be(_0x717126);return'newValue'==_0x455eae?{'type':'format','content':o(_0x63b751,'*Merge:*\x20list\x20item')}:'oldValue'==_0x455eae?{'type':'format','content':o(_0x63b751,'*Split:*\x20list\x20item')}:_0x37bcb5;}),_0x340ca0['model']['document']['registerPostFixer'](_0x3e0e38=>this['listItemIdFixer'](_0x3e0e38)),_0x340ca0['model']['document']['registerPostFixer'](_0x4cb4ce=>this['noTrackChangesFixer'](_0x4cb4ce)),_0x340ca0['model']['document']['on']('change:data',(_0x5442fb,_0x591d71)=>{if(_0x591d71['isUndo']||!_0x591d71['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a78e1){if(_0x5a78e1['batch']['isUndo']||!_0x5a78e1['batch']['isLocal'])return!0x1;let _0x1b9d96=!0x1;const _0x54f827=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e998a=>_0x1e998a['data']&&'listItemId'==_0x1e998a['data']['key'])['filter'](_0x5d8695=>_0x5d8695['data']['newValue']&&_0x5d8695['data']['oldValue']);for(const _0x2b1ee6 of _0x54f827)Be(_0x2b1ee6)||(_0x5a78e1['removeMarker'](_0x2b1ee6['getFirstMarker']()),_0x1b9d96=!0x0);return _0x1b9d96;}['noTrackChangesFixer'](_0x179d90){if(_0x179d90['batch']['isUndo']||!_0x179d90['batch']['isLocal'])return!0x1;const _0x9bccc1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x9bccc1['trackChangesCommand']['value'])return!0x1;let _0x2fbbf0=!0x1;const _0x9d6ca0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1b4db0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x56143e=>'attribute'==_0x56143e['type'])['filter'](_0x44b5fd=>_0x9d6ca0['includes'](_0x44b5fd['attributeKey']));if(0x0==_0x1b4db0['length'])return _0x2fbbf0;for(const _0x49ffa4 of _0x1b4db0){const _0x5730c6=_0x9bccc1['_findSuggestions'](_0x49ffa4['range'],'attribute')['filter'](_0x234c90=>!_0x234c90['meta']['isNextTo'])['map'](_0x558976=>_0x558976['suggestion'])['filter'](_0x5bce8b=>{const _0x5530d1=_0x9bccc1['_getAttributeKey'](_0x5bce8b);return _0x9d6ca0['includes'](_0x5530d1);});if(_0x5730c6['length']){for(const _0x178f6c of _0x5730c6)_0x179d90['removeMarker'](_0x178f6c['getFirstMarker']());_0x2fbbf0=!0x0;}}return _0x2fbbf0;}['assureChains'](){const _0x322885=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c3cc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f9ff1;const _0x13ae11=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x214b0a=>{if(_0x214b0a['data']['oldRange']||!_0x214b0a['data']['newRange'])return null;if(!_0x214b0a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x598f0f}=_0x322885['_splitMarkerName'](_0x214b0a['name']);if(!_0x322885['hasSuggestion'](_0x598f0f))return null;const _0x2cfe3a=_0x322885['getSuggestion'](_0x598f0f);return _0x13c3cc['includes'](_0x2cfe3a['data']['key']);})['map'](_0x86a11f=>{const {id:_0x20db00}=_0x322885['_splitMarkerName'](_0x86a11f['name']),_0x20e9e6=_0x322885['getSuggestion'](_0x20db00);return _0x4f9ff1=_0x20e9e6['attributes']['groupId'],_0x20e9e6['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13ae11['size'])return;const _0x234044=_0x322885['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x282363=>'attribute'==_0x282363['type']&&_0x282363['data']&&_0x13c3cc['includes'](_0x282363['data']['key'])&&_0x282363['attributes']['groupId']!=_0x4f9ff1)['map'](_0x14b13a=>({'listItem':_0x14b13a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x14b13a['attributes']['groupId']})),_0x584e07=new Set();for(const {groupId:_0x42acf2,listItem:_0x3163b7}of _0x234044)_0x13ae11['has'](_0x3163b7)&&_0x584e07['add'](_0x42acf2);for(const _0x9e8ae1 of _0x322885['getSuggestions']())_0x584e07['has'](_0x9e8ae1['attributes']['groupId'])&&_0x9e8ae1['setAttribute']('groupId',_0x4f9ff1);}['_supportLegacySuggestions'](){const _0x4f3d6a=this['editor'],_0xcb8262=_0x4f3d6a['locale'],_0x15e3f9=_0x4f3d6a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15e3f9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31c901,_0x1815fd){const _0x218c08=[];for(let _0xfb6f63 of _0x31c901)_0xfb6f63['start']['nodeAfter']===_0xfb6f63['end']['parent']&&(_0xfb6f63=_0x4f3d6a['model']['createRange'](_0x4f3d6a['model']['createPositionAt'](_0xfb6f63['start']['nodeAfter'],0x0))),_0x218c08['push'](_0xfb6f63);_0x4f3d6a['model']['change'](_0x44ae7a=>{const _0x50c157=_0x4f3d6a['model']['document']['selection'],_0x1d957d=Array['from'](_0x50c157['getRanges']())['map'](_0x1e8be1=>_0x35191f['fromRange'](_0x1e8be1));_0x44ae7a['setSelection'](_0x218c08),_0x4f3d6a['commands']['get'](_0x1815fd['commandName'])['refresh'](),_0x1815fd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4f3d6a['execute'](_0x1815fd['commandName'],..._0x1815fd['commandParams']),_0x44ae7a['setSelection'](_0x1d957d);for(const _0x292aee of _0x1d957d)_0x292aee['detach']();});}),_0x15e3f9['descriptionFactory']['registerElementLabel'](function(_0x176ee8){const _0x5d0bbf=!_0x4f3d6a['model']['schema']['isObject'](_0x176ee8),_0xdf4ebb=_0x176ee8['previousSibling'],_0x2547e1=_0x176ee8['nextSibling'],_0x40ac78=_0x176ee8['getAttribute']('listItemId'),_0x98627d=!_0xdf4ebb||_0xdf4ebb['getAttribute']('listItemId')!==_0x40ac78,_0x42d0b2=!_0x2547e1||_0x2547e1['getAttribute']('listItemId')!==_0x40ac78;return _0x5d0bbf&&Boolean(_0x40ac78)&&_0x98627d&&_0x42d0b2;},_0x37e8bd=>o(_0xcb8262,'ELEMENT_LIST_ITEM',_0x37e8bd));}['_registerLegacyDescription'](){const _0x2cdb77=this['editor'],_0x3e57a3=_0x2cdb77['locale'];function _0x48e080(_0x40f732){const _0x57fdc2=_0x2cdb77['commands']['get']('bulletedList')['value'],_0x407684=_0x2cdb77['commands']['get']('numberedList')['value'];return'numberedList'===_0x40f732?_0x57fdc2:_0x407684;}_0x2cdb77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d1c1d){if('formatBlock'!=_0x2d1c1d['type'])return;const {data:_0x89a11c}=_0x2d1c1d;if(!_0x89a11c)return;let _0x4e9f0e,_0x588b03,_0x487fdd,_0x1fa66c;switch(_0x89a11c['commandName']){case'bulletedList':_0x487fdd=_0x89a11c['commandParams'][0x0]['forceValue'],_0x1fa66c=_0x48e080(_0x89a11c['commandName']),_0x4e9f0e=_0x487fdd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1fa66c&&_0x2cdb77['config']['get']('list.multiBlock')||(_0x4e9f0e='*Change\x20to:*\x20%0'),_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x487fdd=_0x89a11c['commandParams'][0x0]['forceValue'],_0x1fa66c=_0x48e080(_0x89a11c['commandName']),_0x4e9f0e=_0x487fdd?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1fa66c&&_0x2cdb77['config']['get']('list.multiBlock')||(_0x4e9f0e='*Change\x20to:*\x20%0'),_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e9f0e='*Indent:*\x20%0',_0x588b03={'type':'format','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e9f0e=function(_0x418cf9){const _0x411da1=_0x418cf9['getFirstRange']();let _0x67725d=_0x411da1['start']['nodeAfter'];for(;_0x67725d&&_0x411da1['containsItem'](_0x67725d);){if(_0x67725d['getAttribute']('listIndent')>0x0)return!0x1;_0x67725d=_0x67725d['nextSibling'];}return!0x0;}(_0x2d1c1d)?o(_0x3e57a3,'*Format:*\x20remove\x20from\x20%0',o(_0x3e57a3,function(_0x3e6b85){return'ELEMENT_'+_0x3e6b85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d1c1d))):o(_0x3e57a3,'*Outdent:*\x20%0',o(_0x3e57a3,'ELEMENT_LIST_ITEM')),_0x588b03={'type':'format','content':_0x4e9f0e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x89a11c['multipleBlocks']&&(_0x4e9f0e='*Merge:*\x20%0',_0x588b03={'type':'deletion','content':o(_0x3e57a3,_0x4e9f0e,o(_0x3e57a3,'ELEMENT_LIST_ITEM'))});}return _0x588b03;});}}function Be(_0x4249d4){let _0x394fd2=_0x4249d4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x394fd2;){const _0x2e061a=_0x394fd2['getAttribute']('listItemId');if(!_0x2e061a)return!0x1;if(_0x2e061a==_0x4249d4['data']['newValue'])return'newValue';if(_0x2e061a==_0x4249d4['data']['oldValue'])return'oldValue';_0x394fd2=_0x394fd2['previousSibling'];}return!0x1;}class X extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a98e0=this['editor']['config']['get']('list.properties'),_0x420a08=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a98e0['styles']&&(_0x420a08['enableDefaultAttributesIntegration']('listStyle'),_0x420a08['registerBlockAttribute']('listStyle')),_0x2a98e0['reversed']&&(_0x420a08['enableDefaultAttributesIntegration']('listReversed'),_0x420a08['registerBlockAttribute']('listReversed')),_0x2a98e0['startIndex']&&(_0x420a08['enableDefaultAttributesIntegration']('listStart'),_0x420a08['registerBlockAttribute']('listStart'));const _0x126320={'type':'format','content':''};_0x420a08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f0fa2=this['editor']['locale'];_0x420a08['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f0fa2,'FORMAT_LIST_REVERSED')),_0x420a08['descriptionFactory']['registerDescriptionCallback'](_0x3aadca=>{const {data:_0x3e2b68}=_0x3aadca;if(_0x3e2b68&&'listReversed'==_0x3e2b68['key'])return null==_0x3e2b68['newValue']||0x0==_0x3e2b68['newValue']&&null==_0x3e2b68['oldValue']?_0x126320:void 0x0;}),_0x420a08['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f0fa2,'FORMAT_LIST_START')),_0x420a08['descriptionFactory']['registerDescriptionCallback'](_0x483e61=>{const {data:_0x8ca246}=_0x483e61;if(_0x8ca246&&'listStart'==_0x8ca246['key'])return null==_0x8ca246['newValue']||0x1==_0x8ca246['newValue']&&null==_0x8ca246['oldValue']?_0x126320:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x338476=>{if(_0x338476['batch']['isUndo'])return!0x1;let _0x54b5d0=!0x1;const _0x24eaa9=_0x420a08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30d69e=>{const _0x3107b2=_0x420a08['_getAttributeKey'](_0x30d69e);return'listStart'==_0x3107b2||'listReversed'==_0x3107b2;});for(const _0x37b4ff of _0x24eaa9){const _0x5812b6=_0x37b4ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5812b6||'customNumbered'==_0x5812b6)continue;_0x420a08['_findSuggestions'](_0x37b4ff['getFirstRange'](),'attribute')['find'](_0xcf0ce0=>'listType'==_0x420a08['_getAttributeKey'](_0xcf0ce0['suggestion']))||(_0x338476['removeMarker'](_0x37b4ff['getFirstMarker']()),_0x54b5d0=!0x0);}return _0x54b5d0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3d59c8){const _0x4a9a7c=this['editor']['locale'],{data:_0x386130}=_0x3d59c8,_0xe5642a={'type':'format','content':''};if(!_0x386130||'listStyle'!=_0x386130['key'])return;if(!_0x386130['oldValue'])return'default'==_0x386130['newValue']?_0xe5642a:{'type':'format','content':''+o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['newValue'])))};if(!_0x386130['newValue']){if('default'==_0x386130['oldValue'])return _0xe5642a;let _0x1134a9=_0x3d59c8['head'];for(;_0x1134a9;){if(_0x1134a9['data']&&'listType'==_0x1134a9['data']['key']&&_0x1134a9['data']['newValue'])return _0xe5642a;_0x1134a9=_0x1134a9['next'];}return{'type':'format','content':''+o(_0x4a9a7c,'*Remove\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['oldValue'])))};}if('default'!=_0x386130['newValue'])return{'type':'format','content':''+o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,this['_getTranslationKeyForListStyle'](_0x386130['newValue'])))};let _0x4ae214=_0x3d59c8['head'];for(;_0x4ae214;){if(_0x4ae214['data']&&'listType'==_0x4ae214['data']['key']&&_0x4ae214['data']['newValue']&&_0x4ae214['data']['oldValue'])return _0xe5642a;_0x4ae214=_0x4ae214['next'];}return{'type':'format','content':o(_0x4a9a7c,'*Set\x20format:*\x20%0',o(_0x4a9a7c,'ELEMENT_'+_0x3d59c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x300d06=this['editor'],_0x3c9554=_0x300d06['locale'];_0x300d06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214390=>{if('formatBlock'!=_0x214390['type'])return;const {data:_0x2ddadb}=_0x214390;if(!_0x2ddadb)return;let _0x3b1fde,_0x1ea147;switch(_0x2ddadb['commandName']){case'listStyle':_0x3b1fde='*Change\x20to:*\x20%0',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde,o(_0x3c9554,this['_getTranslationKeyForListStyle'](_0x2ddadb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b1fde=_0x2ddadb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde)};break;case'listStart':_0x3b1fde='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ea147={'type':'format','content':o(_0x3c9554,_0x3b1fde,_0x2ddadb['commandParams'][0x0]['startIndex'])};}return _0x1ea147;});}['_getTranslationKeyForListStyle'](_0x12624e){return'ELEMENT_'+function(_0x175fa8){if(Re['includes'](_0x175fa8))return'bulleted';if(Fe['includes'](_0x175fa8))return'numbered';return null;}(_0x12624e)['toUpperCase']()+'_LIST_'+_0x12624e['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x1bca86{['afterInit'](){const _0x119a05=this['editor'];_0x119a05['commands']['get']('emoji')&&_0x119a05['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x1bca86{static get['requires'](){return[_0x30ecc7];}['init'](){const _0x1a8767=this['editor'],_0x3076d0=_0x1a8767['plugins']['get']('TrackChangesEditing'),_0x43451a=_0x1a8767['commands']['get']('enter');_0x3076d0['enableCommand']('enter',()=>{_0x1a8767['model']['change'](_0x1516d3=>{const _0x197058=_0x1a8767['model']['document']['selection'],_0x389d7a=_0x197058['getFirstPosition'](),_0xb2fb3b=_0x35191f['fromRange'](_0x197058['getFirstRange']());if(_0x43451a['enterBlock'](_0x1516d3)){const _0x3b88c2=_0x1a8767['model']['createPositionAt'](_0x389d7a['parent']['nextSibling'],0x0),_0x43733c=_0x1516d3['createRange'](_0x389d7a,_0x3b88c2);_0x3076d0['markInsertion'](_0x43733c);}else _0x1516d3['setSelection'](_0x1516d3['createRange'](_0xb2fb3b['end']));_0xb2fb3b['detach'](),_0x43451a['fire']('afterExecute',{'writer':_0x1516d3});});}),_0x1a8767['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x1a8767,'split'),{'priority':'high'}),_0x1a8767['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x516de2,_0x35b36b,_0x539de6)=>{const _0x2a6d4e=_0x539de6['mapper']['markerNameToElements'](_0x35b36b['markerName']);if(_0x2a6d4e){for(const _0xaa842b of _0x2a6d4e)_0xaa842b['hasClass']('ck-suggestion-marker-split')&&(_0x539de6['mapper']['unbindElementFromMarkerName'](_0xaa842b,_0x35b36b['markerName']),_0x539de6['writer']['remove'](_0xaa842b));}},{'priority':'high'}),_0x1a8767['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xae7eb1,_0x896cfd,_0x3b325d)=>{_0x3b325d['options']['showSuggestionHighlights']&&Ge(_0x1a8767,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xae7eb1,_0x896cfd,_0x3b325d);},{'priority':'high'});}}class tt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5ebf17=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ebf17['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5ebf17['enableCommand']('findNext'),_0x5ebf17['enableCommand']('findPrevious'),_0x5ebf17['enableCommand']('replace'),_0x5ebf17['enableCommand']('replaceAll');}['handleFindCommand'](_0x1aa4d5,_0x2155d0,_0x3f294d={}){const _0x23c366=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1aa4d5(_0x569690=>{let _0x2e972c=('string'==typeof _0x2155d0?_0x23c366['findByTextCallback'](_0x2155d0,_0x3f294d):_0x2155d0)(_0x569690);Array['isArray'](_0x2e972c)&&(_0x2e972c={'results':_0x2e972c,'searchText':'string'==typeof _0x2155d0?_0x2155d0:''});const _0xb82d5f=_0x2e972c['results']['filter'](_0x1880ae=>!0x1===this['_isInDeletionRange'](_0x1880ae,_0x569690['item']));return{..._0x2e972c,'results':_0xb82d5f};},_0x3f294d);}['_isInDeletionRange'](_0x4efd9f,_0x5aa897){const _0x9d6988=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5aa897,_0x4efd9f['start']),this['editor']['model']['createPositionAt'](_0x5aa897,_0x4efd9f['end']));for(const _0x49fd7c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9d6988['getIntersection'](_0x49fd7c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x1bca86{['afterInit'](){const _0x555ef5=this['editor']['locale'],_0x8807f9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4c1576,commandName:_0x1cfe3c}of eo)this['editor']['plugins']['has'](_0x4c1576)&&(_0x8807f9['enableDefaultAttributesIntegration'](_0x1cfe3c),_0x8807f9['registerInlineAttribute'](_0x1cfe3c));_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x555ef5,'FORMAT_FONT_SIZE')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x555ef5,'FORMAT_FONT_FAMILY')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x555ef5,'FORMAT_FONT_COLOR')),_0x8807f9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x555ef5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516618=this['editor'],_0x10cf09=_0x516618['locale'];_0x516618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2308da=>{const _0x2acce4=_0x10cf09['t'];if('formatInline'!=_0x2308da['type'])return;const {data:_0x277e2e}=_0x2308da;if(null!=_0x277e2e){if('fontSize'==_0x277e2e['commandName']){const _0x20b1fb=_0x277e2e['commandParams'][0x0]['value'];if(_0x20b1fb){const _0x202a4b=_0x2acce4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdb5f5a=>_0xdb5f5a['model']==_0x20b1fb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20size:*\x20%0',_0x202a4b)};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x277e2e['commandName']){const _0x94ec95=_0x277e2e['commandParams'][0x0]['value'];return _0x94ec95?{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20family:*\x20%0',_0x94ec95)}:{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20family*')};}if('fontColor'==_0x277e2e['commandName']){const _0x5d5e19=_0x277e2e['commandParams'][0x0]['value'];if(_0x5d5e19){const _0x21fbbf=_0x296d10(this['editor']['config']['get']('fontColor.colors'))['find'](_0x196fc9=>_0x196fc9['model']==_0x5d5e19);let _0x5c7368=_0x5d5e19,_0x572986='';return _0x21fbbf&&(_0x5c7368=_0x21fbbf['label'],_0x572986=_0x2acce4(_0x5c7368)['toLowerCase']()),{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20color:*\x20%0',_0x572986)['trim'](),'color':{'value':_0x5d5e19,'title':_0x572986||_0x5c7368}};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x277e2e['commandName']){const _0x24c362=_0x277e2e['commandParams'][0x0]['value'];if(_0x24c362){const _0x5321ae=_0x296d10(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e1e4a=>_0x5e1e4a['model']==_0x24c362);let _0xdc615c=_0x24c362,_0x22ef43='';return _0x5321ae&&(_0xdc615c=_0x5321ae['label'],_0x22ef43=_0x2acce4(_0xdc615c)['toLowerCase']()),{'type':'format','content':o(_0x10cf09,'*Set\x20font\x20background\x20color:*\x20%0',_0x22ef43)['trim'](),'color':{'value':_0x24c362,'title':_0x22ef43||_0xdc615c}};}return{'type':'format','content':o(_0x10cf09,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x1bca86{['afterInit'](){const _0x596ea1=this['editor'],_0xfc7ca8=_0x596ea1['plugins']['get']('TrackChangesEditing'),_0x319fca=_0x596ea1['commands']['get']('copyFormat'),_0x351552=_0x596ea1['commands']['get']('pasteFormat');_0x319fca&&_0x351552&&(_0xfc7ca8['enableDefaultAttributesIntegration']('pasteFormat'),_0xfc7ca8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2b293c=this['editor'],_0x5cc1e6=_0x2b293c['locale'];_0x2b293c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40f9fd=>{if('formatBlock'!=_0x40f9fd['type']&&'formatInline'!=_0x40f9fd['type'])return;const {data:_0x5e2c59}=_0x40f9fd;if(_0x5e2c59&&'pasteFormat'===_0x5e2c59['commandName']){const _0x9eef6a=[],_0x3cedfd=_0x5e2c59['commandParams'][0x0];for(const [_0x47b500,_0x31dece]of Object['entries'](_0x3cedfd))_0x9eef6a['push'](ro(_0x2b293c,_0x47b500,_0x31dece));return _0x9eef6a['length']?{'type':'format','content':o(_0x5cc1e6,'*Set\x20format\x20to:*\x20%0',_0x9eef6a['join'](',\x20'))}:{'type':'format','content':o(_0x5cc1e6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5e68fa,_0x1c3d41,_0x1360c4){const _0x5d1d21=_0x5e68fa['locale']['t'],_0x42c710=_0x1c3d41['split'](/(?=[A-Z])/)['join']('\x20'),_0x566652=_0x5d1d21(_0x42c710['charAt'](0x0)['toUpperCase']()+_0x42c710['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1360c4)return _0x566652;if('fontColor'===_0x1c3d41||'fontBackgroundColor'===_0x1c3d41){const _0x4522e2=_0x296d10(_0x5e68fa['config']['get']('fontColor.colors'))['find'](_0x2cb0c7=>_0x2cb0c7['model']==_0x1360c4);return _0x566652+'\x20('+(_0x4522e2?_0x5d1d21(_0x4522e2['label'])['toLowerCase']():_0x1360c4)+')';}if('fontSize'===_0x1c3d41&&isNaN(parseFloat(_0x1360c4))){const _0x4afa14=_0x5e68fa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e68fa['config']['get']('fontSize.options'))['find'](_0x2410da=>_0x2410da['model']==_0x1360c4);return _0x566652+'\x20('+(_0x4afa14?_0x5d1d21(_0x4afa14['title'])['toLowerCase']():_0x1360c4)+')';}return _0x566652+'\x20('+_0x1360c4+')';}class nt extends _0x1bca86{['_headingOptions'];['afterInit'](){const _0x9ca8ca=this['editor'];if(!_0x9ca8ca['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x9ca8ca['config']['get']('heading.options');const _0x47e2c1=_0x9ca8ca['locale'],_0x46a70c=_0x9ca8ca['plugins']['get']('TrackChangesEditing');_0x46a70c['enableDefaultAttributesIntegration']('heading');for(const _0x499f78 of this['_headingOptions'])'paragraph'!=_0x499f78['model']&&_0x46a70c['descriptionFactory']['registerElementLabel'](_0x499f78['model'],_0x554073=>{const _0x5723f8=this['_getHeadingLevel'](_0x499f78['model']);return null!==_0x5723f8?_0x36b3c7(_0x554073,_0x5723f8):_0x272171(_0x554073,_0x499f78['title']);});function _0x36b3c7(_0x35265a,_0x5e9be0){return o(_0x47e2c1,'ELEMENT_HEADING',[_0x35265a,_0x5e9be0]);}function _0x272171(_0x388dd7,_0x2b8f8b){return o(_0x47e2c1,'ELEMENT_HEADING_CUSTOM',[_0x388dd7,_0x2b8f8b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb45986=this['editor'],_0x15f663=_0xb45986['locale'];function _0x2dd87d(_0x3a25fe,_0x2e0224){return o(_0x15f663,'ELEMENT_HEADING_CUSTOM',[_0x3a25fe,_0x2e0224]);}_0xb45986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23401e=>{if('formatBlock'!=_0x23401e['type'])return;const {data:_0x44f5a4}=_0x23401e;if(_0x44f5a4&&'heading'==_0x44f5a4['commandName']){const _0x2f0d7a=_0x44f5a4['commandParams'][0x0]['value'],_0x243071=this['_getHeadingLevel'](_0x2f0d7a);if(null!==_0x243071)return{'type':'format','content':o(_0x15f663,'*Change\x20to:*\x20%0',(_0x589e44=0x1,_0x2e25b6=_0x243071,o(_0x15f663,'ELEMENT_HEADING',[_0x589e44,_0x2e25b6])))};const _0x75bde1=this['_headingOptions']['find'](_0x2c4115=>_0x2c4115['model']===_0x2f0d7a)['title'];return{'type':'format','content':o(_0x15f663,'*Change\x20to:*\x20%0',_0x2dd87d(0x1,_0x75bde1))};}var _0x589e44,_0x2e25b6;});}['_getHeadingLevel'](_0x1678cc){const _0x3f2e83=_0x1678cc['match'](/^heading(\d+)/);if(_0x3f2e83)return _0x3f2e83[0x1];const _0x127035=this['_headingOptions']?.['find'](_0x418db6=>_0x418db6['model']==_0x1678cc);if(_0x127035&&_0x127035['view']){const _0x5f161d=_0x127035['view'],_0x449fb4=(_0x5f161d['name']??_0x5f161d)['match'](/^h(\d+)/);if(_0x449fb4)return _0x449fb4[0x1];}return null;}}class st extends _0x1bca86{['afterInit'](){const _0x5ac0a1=this['editor'];if(!_0x5ac0a1['plugins']['has']('HighlightEditing'))return;const _0xcbddbe=_0x5ac0a1['plugins']['get']('TrackChangesEditing'),_0x48f293=_0x5ac0a1['locale'];_0xcbddbe['enableDefaultAttributesIntegration']('highlight'),_0xcbddbe['registerInlineAttribute']('highlight'),_0xcbddbe['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x48f293,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x495f77=this['editor'],_0x12b0e1=_0x495f77['locale'];_0x495f77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a417=>{if('formatInline'!=_0x5a417['type'])return;const {data:_0x316195}=_0x5a417;if(_0x316195&&'highlight'==_0x316195['commandName']){const _0x475e4b=_0x12b0e1['t'],_0x4bdf32=_0x316195['commandParams'][0x0]['value'];if(_0x4bdf32){const _0x58c5f7=_0x495f77['config']['get']('highlight.options')['find'](_0x5afb1d=>_0x5afb1d['model']==_0x4bdf32),_0xd5fa01=_0x475e4b(_0x58c5f7['title'])['toLowerCase']();return{'type':'format','content':o(_0x12b0e1,'*Set\x20highlight:*\x20%0',_0xd5fa01),'color':{'value':_0x58c5f7['color'],'title':_0x58c5f7['title']}};}return{'type':'format','content':o(_0x12b0e1,'*Remove\x20highlight*',o(_0x12b0e1,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x1bca86{['afterInit'](){const _0x33efa6=this['editor'];if(!_0x33efa6['plugins']['has']('HorizontalLineEditing'))return;_0x33efa6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1eea43=_0x33efa6['plugins']['get']('TrackChangesEditing'),_0x50b9e2=_0x33efa6['locale'];_0x1eea43['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4048c7=>o(_0x50b9e2,'ELEMENT_HORIZONTAL_LINE',_0x4048c7)),_0x33efa6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d1a26,{writer:_0x4477ba,options:_0x249b2a})=>{if(!_0x249b2a['showSuggestionHighlights'])return null;const _0x4ebee6=_0x4477ba['createContainerElement']('div'),_0x593c70=_0x4477ba['createEmptyElement']('hr');return _0x4477ba['addClass']('ck-horizontal-line',_0x4ebee6),_0x4477ba['insert'](_0x4477ba['createPositionAt'](_0x4ebee6,0x0),_0x593c70),_0x4ebee6;},'converterPriority':'high'});}}class rt extends _0x1bca86{['afterInit'](){const _0x23f515=this['editor'];if(!_0x23f515['plugins']['has']('HtmlEmbed'))return;const _0xc371a=_0x23f515['plugins']['get']('TrackChangesEditing'),_0x1e675e=_0x23f515['locale'];_0xc371a['descriptionFactory']['registerElementLabel']('rawHtml',_0x537e91=>o(_0x1e675e,'ELEMENT_HTML_EMBED',_0x537e91)),_0xc371a['enableDefaultAttributesIntegration']('htmlEmbed'),_0xc371a['registerBlockAttribute']('value'),_0xc371a['descriptionFactory']['registerDescriptionCallback'](_0x55d5f7=>{if('attribute'!=_0x55d5f7['type'])return;const {data:_0x3f2c80}=_0x55d5f7;if(_0x3f2c80&&'value'==_0x3f2c80['key']&&_0x55d5f7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x243dab=o(_0x1e675e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e675e,'*Change\x20%0\x20content*',_0x243dab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227d24=this['editor'],_0x374b63=_0x227d24['locale'];_0x227d24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x396e18=>{if('formatBlock'!=_0x396e18['type'])return;const {data:_0x2f4ba1}=_0x396e18;if(_0x2f4ba1&&'htmlEmbed'==_0x2f4ba1['commandName']){const _0x33bcd3=o(_0x374b63,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x374b63,'*Change\x20%0\x20content*',_0x33bcd3)};}});}}class at extends _0x1bca86{['afterInit'](){const _0x5b280b=this['editor'];if(!_0x5b280b['plugins']['has']('ImageEditing'))return;const _0x4ae32d=_0x5b280b['plugins']['get']('TrackChangesEditing'),_0x215501=_0x5b280b['plugins']['get']('ImageUtils'),_0xa8d00f=_0x5b280b['locale'];_0x4ae32d['enableCommand']('insertImage'),_0x4ae32d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3640d9=>o(_0xa8d00f,'ELEMENT_IMAGE',_0x3640d9)),_0x4ae32d['descriptionFactory']['registerElementLabel']('imageInline',_0x266d09=>o(_0xa8d00f,'ELEMENT_INLINE_IMAGE',_0x266d09)),_0x4ae32d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa8d00f,'ELEMENT_CAPTION')),_0x5b280b['plugins']['has']('ImageUploadEditing')&&_0x4ae32d['enableCommand']('uploadImage'),_0x5b280b['plugins']['has']('ImageBlockEditing')&&_0x5b280b['plugins']['has']('ImageInlineEditing')&&(_0x4ae32d['enableCommand']('imageTypeInline',(_0x491dab,_0x34f681)=>{const _0x53ac36=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']);_0x5b280b['model']['change'](()=>{_0x4ae32d['markBlockFormat'](_0x53ac36,{'commandName':'imageTypeInline','commandParams':[_0x34f681]},[],'convertBlockImageToInline');});}),_0x4ae32d['enableCommand']('imageTypeBlock',(_0x1d57a5,_0x4d8663)=>{_0x5b280b['model']['change'](_0x23a96a=>{let _0x504c34=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3ea664=_0x23a96a['createRangeOn'](_0x504c34);const _0x508706=_0x244208['fromPosition'](_0x3ea664['start'],'toPrevious'),_0x56e7cf=_0x244208['fromPosition'](_0x3ea664['end'],'toNext');_0x4ae32d['forceDefaultExecution'](()=>_0x1d57a5(_0x4d8663)),_0x504c34=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3ea664=_0x23a96a['createRangeOn'](_0x504c34);const _0x14ff8d=_0x23a96a['createRange'](_0x508706,_0x56e7cf);_0x508706['detach'](),_0x56e7cf['detach'](),_0x4ae32d['markBlockFormat'](_0x504c34,{'commandName':'imageTypeInline','commandParams':[_0x4d8663]},[],'convertInlineImageToBlock'),_0x14ff8d['start']['isBefore'](_0x3ea664['start'])&&_0x4ae32d['markInsertion'](_0x23a96a['createRange'](_0x14ff8d['start'],_0x3ea664['start']),'convertInlineImageToBlock'),_0x3ea664['end']['isBefore'](_0x14ff8d['end'])&&_0x4ae32d['markInsertion'](_0x23a96a['createRange'](_0x3ea664['end'],_0x14ff8d['end']),'convertInlineImageToBlock');});}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4ae32d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4ef35d])=>{const _0x237ae5=_0x4ae32d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x23ff58=_0x4ef35d['start'],_0x266e1=_0x4ef35d['end'];const _0x37bbd2=_0x5b280b['model']['schema']['getNearestSelectionRange'](_0x23ff58,'backward'),_0x38b2d6=_0x5b280b['model']['schema']['getNearestSelectionRange'](_0x266e1,'forward');_0x37bbd2['isCollapsed']&&(_0x23ff58=_0x37bbd2['start']),_0x38b2d6['isCollapsed']&&(_0x266e1=_0x38b2d6['end']),_0x237ae5([_0x5b280b['model']['createRange'](_0x23ff58,_0x266e1)]);}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x228f09),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x228f09)),_0x5b280b['plugins']['has']('ImageCaptionEditing')&&(_0x4ae32d['enableCommand']('toggleImageCaption',(_0x5b9cfa,_0x1d46f8)=>{const _0x9d3c8c=_0x5b280b['plugins']['get']('ImageCaptionUtils');let _0x2e2d84=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3067ed=_0x9d3c8c['getCaptionFromImageModelElement'](_0x2e2d84);_0x5b280b['model']['change'](()=>{if(_0x3067ed)return void _0x4ae32d['markDeletion'](_0x5b280b['model']['createRangeOn'](_0x3067ed));const _0x303229=_0x215501['isBlockImage'](_0x2e2d84);_0x5b9cfa(_0x1d46f8),_0x2e2d84=_0x215501['getClosestSelectedImageElement'](_0x5b280b['model']['document']['selection']),_0x3067ed=_0x9d3c8c['getCaptionFromImageModelElement'](_0x2e2d84),_0x4ae32d['markInsertion'](_0x5b280b['model']['createRangeOn'](_0x3067ed),_0x303229?null:'imageCaption');});}),_0x4ae32d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x228f09));const _0x2d4f3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5739a2(_0x3fb58e,_0x466c15){const _0x753d0f=_0x2d4f3e['findIndex'](({type:_0x303029,subType:_0x31e042})=>_0x3fb58e['type']==_0x303029&&_0x3fb58e['subType']==_0x31e042),_0x1462b7=_0x2d4f3e['findIndex'](({type:_0x380e19,subType:_0x3b057b})=>_0x466c15['type']==_0x380e19&&_0x466c15['subType']==_0x3b057b);if(_0x753d0f<0x0||_0x1462b7<0x0)return!0x1;const _0x31fa76=_0x3fb58e['getFirstRange'](),_0xb1b187=_0x466c15['getFirstRange']();if((0x0==_0x753d0f||0x1==_0x753d0f)&&0x2==_0x1462b7&&_0x31fa76['isIntersecting'](_0xb1b187))return!0x0;if(0x2==_0x753d0f&&0x3==_0x1462b7){const _0x5a191a=_0x4ae32d['_findSuggestions'](_0x31fa76,'insertion')['filter'](({suggestion:_0x4be8d0,meta:_0x3340ad})=>_0x3340ad['isOwn']&&'convertInlineImageToBlock'==_0x4be8d0['subType']);if(_0x5a191a['length']>0x1&&_0xb1b187['end']['isEqual'](_0x31fa76['start']))return!0x0;if(0x1==_0x5a191a['length']&&(_0x31fa76['start']['isEqual'](_0xb1b187['end'])||_0x31fa76['end']['isEqual'](_0xb1b187['start'])))return!0x0;}if(0x3==_0x753d0f&&0x3==_0x1462b7&&_0x31fa76['start']['isBefore'](_0xb1b187['start'])){const _0x26533=_0x31fa76['end']['nodeAfter'],_0x51b2c5=_0xb1b187['start']['nodeBefore'];return _0x215501['isBlockImage'](_0x26533)&&_0x26533===_0x51b2c5;}return!0x1;}function _0x228f09(_0x5e740a,_0xfc6e65){return _0x5739a2(_0x5e740a,_0xfc6e65)?[_0x5e740a,_0xfc6e65]:_0x5739a2(_0xfc6e65,_0x5e740a)?[_0xfc6e65,_0x5e740a]:null;}_0x5b280b['plugins']['has']('ImageResize')&&(_0x4ae32d['enableDefaultAttributesIntegration']('resizeImage'),_0x4ae32d['registerBlockAttribute']('resizedWidth'),_0x4ae32d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa8d00f,'FORMAT_IMAGE_SIZE'))),_0x5b280b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4ae32d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ae32d['registerBlockAttribute']('alt')),_0x5b280b['plugins']['has']('PictureEditing')&&(_0x4ae32d['registerBlockAttribute']('sources'),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x123be9=>{if('attribute'!=_0x123be9['type'])return;const {data:_0x3917b7}=_0x123be9;return _0x3917b7&&'sources'==_0x3917b7['key']?{'type':'format','content':''}:void 0x0;})),_0x5b280b['plugins']['has']('ImageSizeAttributes')&&(_0x4ae32d['registerBlockAttribute']('width'),_0x4ae32d['registerBlockAttribute']('height'),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x265063=>{if('attribute'!=_0x265063['type'])return;const {data:_0x3d4b20}=_0x265063;return!_0x3d4b20||'width'!=_0x3d4b20['key']&&'height'!=_0x3d4b20['key']?void 0x0:{'type':'format','content':''};})),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x3cad74=>{if(!!_0x2d4f3e['find'](({type:_0x1d141a,subType:_0xf7dd34})=>_0x3cad74['type']==_0x1d141a&&_0x3cad74['subType']==_0xf7dd34))return _0x3cad74['previous']?{}:void 0x0;}),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x52c3d5=>{if('insertion'==_0x52c3d5['type']||'deletion'==_0x52c3d5['type']){const _0x2f2855=_0x52c3d5['getContainedElement']();if(_0x2f2855&&_0x2f2855['is']('element','caption'))return{'type':'insertion'==_0x52c3d5['type']?'addObject':'removeObject','element':_0x2f2855,'quantity':0x1};}}),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x4d35b0=>'formatBlock'==_0x4d35b0['type']&&'convertInlineImageToBlock'==_0x4d35b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4d35b0['type']&&'convertBlockImageToInline'==_0x4d35b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4ae32d['descriptionFactory']['registerDescriptionCallback'](_0x4a511d=>{if('attribute'!=_0x4a511d['type'])return;const {data:_0x280a4a}=_0x4a511d;if(!_0x280a4a||'alt'!=_0x280a4a['key'])return;const _0xcc529d=_0x280a4a['newValue'];return _0xcc529d?{'type':'format','content':o(_0xa8d00f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcc529d+'\x22')}:{'type':'format','content':o(_0xa8d00f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x321846=this['editor'],_0x338e65=_0x321846['locale'];_0x321846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ec72=>{if('formatBlock'!=_0x30ec72['type']&&'formatInline'!=_0x30ec72['type'])return;const {data:_0x414f45}=_0x30ec72;if(_0x414f45){if('imageTextAlternative'==_0x414f45['commandName']){const _0x4f9531=_0x414f45['commandParams'][0x0]['newValue'];return _0x4f9531?{'type':'format','content':o(_0x338e65,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f9531+'\x22')}:{'type':'format','content':o(_0x338e65,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x414f45['commandName']){const _0x209e2f=_0x414f45['commandParams'][0x0]['width'];return _0x209e2f?{'type':'format','content':o(_0x338e65,'*Set\x20image\x20width:*\x20%0',_0x209e2f)}:{'type':'format','content':o(_0x338e65,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x51f49f=this['editor']['locale'],_0x1ed2fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ed2fa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ed2fa['registerBlockAttribute']('src'),_0x1ed2fa['descriptionFactory']['registerDescriptionCallback'](_0xf31bc4=>{if('attribute'!=_0xf31bc4['type'])return;const {data:_0x53fc38}=_0xf31bc4;return _0x53fc38&&'src'==_0x53fc38['key']?_0x53fc38['newValue']&&_0x53fc38['oldValue']?{'type':'format','content':o(_0x51f49f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30eca2=this['editor']['plugins']['get']('TrackChangesEditing');_0x30eca2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x30eca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30eca2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x30eca2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3786f5=this['editor'],_0x548275=_0x3786f5['locale'];_0x3786f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8eac52=>{if('formatBlock'!=_0x8eac52['type']&&'formatInline'!=_0x8eac52['type'])return;const {data:_0x4e843d}=_0x8eac52;if(!_0x4e843d||'replaceImageSource'!=_0x4e843d['commandName'])return;return{'type':'format','content':o(_0x548275,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x1bca86{['afterInit'](){const _0x6ee42e=this['editor'];if(!_0x6ee42e['plugins']['has']('ImageStyleEditing'))return;const _0x200376=_0x6ee42e['plugins']['get']('TrackChangesEditing'),_0x3362a9=_0x6ee42e['plugins']['get']('ImageUtils'),_0x7aaa63={};_0x200376['enableCommand']('imageStyle',(_0x1ee6cc,_0x3814f1)=>{const _0x4a9ac5=_0x6ee42e['plugins']['get']('Users')['me'],_0x2e58ca=_0x6ee42e['commands']['get']('imageStyle');let _0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),_0x5d551d=_0x6ee42e['model']['createRangeOn'](_0x3d0cff),_0x501875=_0x2e58ca['value'];if(_0x501875==_0x3814f1['value'])return;const _0x1b4d22={'commandName':'imageStyle','commandParams':[_0x3814f1],'formatGroupId':_0x573f80()};_0x6ee42e['model']['change'](()=>{if(_0x200376['getSuggestions']()['filter'](_0x26084c=>_0x26084c['isInContent']&&_0x4a9ac5==_0x26084c['author']&&('formatBlock'==_0x26084c['type']||'formatInline'==_0x26084c['type'])&&('imageStylePreApply'==_0x26084c['subType']||'imageStylePostApply'==_0x26084c['subType'])&&_0x26084c['getFirstRange']()['isEqual'](_0x5d551d))['forEach'](_0x299b5e=>_0x200376['discardSuggestion'](_0x299b5e['head'])),_0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),_0x5d551d=_0x6ee42e['model']['createRangeOn'](_0x3d0cff),_0x2e58ca['refresh'](),_0x6ee42e['commands']['get']('imageTypeInline')['refresh'](),_0x6ee42e['commands']['get']('imageTypeBlock')['refresh'](),_0x501875=_0x2e58ca['value'],_0x501875!=_0x3814f1['value'])return _0x3362a9['isInlineImage'](_0x3d0cff)&&_0x2e58ca['shouldConvertImageType'](_0x3814f1['value'],_0x3d0cff)?(_0x1ee6cc({..._0x3814f1,'setImageSizes':!0x1}),_0x3d0cff=_0x3362a9['getClosestSelectedImageElement'](_0x6ee42e['model']['document']['selection']),void _0x200376['markBlockFormat'](_0x3d0cff,{..._0x1b4d22,'commandReversedParams':[{'value':_0x501875||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3362a9['isBlockImage'](_0x3d0cff)?_0x200376['markBlockFormat'](_0x3d0cff,_0x1b4d22,[],'imageStylePostApply'):_0x200376['markInlineFormat'](_0x5d551d,_0x1b4d22,'imageStylePostApply'));});});for(const _0x357da3 of _0x6ee42e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x7aaa63[_0x357da3['name']]=_0x357da3['title']['toLowerCase']();_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x490b7d])=>{_0x3362a9['setImageNaturalSizeAttributes'](_0x490b7d['getContainedElement']());}),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x90c561,_0x4d8691)=>{_0x200376['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x90c561,{'commandName':_0x4d8691['commandName'],'commandParams':_0x4d8691['commandReversedParams']});}),_0x200376['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31c565,_0x4fe022){if(_0x241175(_0x31c565,_0x4fe022))return[_0x31c565,_0x4fe022];if(_0x241175(_0x4fe022,_0x31c565))return[_0x4fe022,_0x31c565];return null;});const _0xa8c953=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x241175(_0x144e33,_0x5549a2){const _0x516dbc=_0xa8c953['findIndex'](({type:_0x2fc8e7,subType:_0x22e483})=>_0x144e33['type']==_0x2fc8e7&&_0x144e33['subType']==_0x22e483),_0x1153aa=_0xa8c953['findIndex'](({type:_0x7e6c1,subType:_0x7069d6})=>_0x5549a2['type']==_0x7e6c1&&_0x5549a2['subType']==_0x7069d6);if(_0x516dbc<0x0||_0x1153aa<0x0)return!0x1;const _0x59a5c6=_0x144e33['getFirstRange'](),_0x3c2978=_0x5549a2['getFirstRange']();if((0x0==_0x516dbc||0x1==_0x516dbc)&&0x2==_0x1153aa&&_0x59a5c6['isIntersecting'](_0x3c2978))return!0x0;if(0x2==_0x516dbc&&0x3==_0x1153aa){const _0x4c7913=_0x200376['_findSuggestions'](_0x59a5c6,'insertion')['filter'](({suggestion:_0x9be3a1,meta:_0x268ce3})=>_0x268ce3['isOwn']&&'convertInlineImageToBlock'==_0x9be3a1['subType']);if(_0x4c7913['length']>0x1&&_0x3c2978['end']['isEqual'](_0x59a5c6['start']))return!0x0;if(0x1==_0x4c7913['length']&&(_0x59a5c6['start']['isEqual'](_0x3c2978['end'])||_0x59a5c6['end']['isEqual'](_0x3c2978['start'])))return!0x0;}if(0x3==_0x516dbc&&0x3==_0x1153aa&&_0x59a5c6['start']['isBefore'](_0x3c2978['start'])){const _0x114fee=_0x59a5c6['end']['nodeAfter'],_0x3b1969=_0x3c2978['start']['nodeBefore'];return _0x3362a9['isBlockImage'](_0x114fee)&&_0x114fee===_0x3b1969;}return!0x1;}_0x6ee42e['model']['document']['registerPostFixer'](()=>{let _0x42a84e=!0x1;const _0x23ac6c=Array['from'](_0x6ee42e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27f70e,data:_0x40383c}of _0x23ac6c){const {group:_0xe9dbe7,type:_0x1cf4bc,subType:_0x10bc38,id:_0x44f173}=_0x200376['_splitMarkerName'](_0x27f70e);if('suggestion'==_0xe9dbe7&&_0x200376['hasSuggestion'](_0x44f173)){if('formatBlock'==_0x1cf4bc&&('imageStylePreApply'==_0x10bc38||'imageStylePostApply'==_0x10bc38)){const _0x5810f0=_0x200376['getSuggestion'](_0x44f173);if(_0x40383c['newRange']){const _0x22b52f=_0x5810f0['getFirstRange']()['getContainedElement']();if(_0x3362a9['isBlockImage'](_0x22b52f))continue;_0x200376['discardSuggestion'](_0x5810f0),_0x42a84e=!0x0;}}if('insertion'==_0x1cf4bc&&'imageCaption'==_0x10bc38&&!_0x40383c['newRange']){const _0x41e274=_0x200376['getSuggestion'](_0x44f173);_0x41e274['next']&&_0x41e274['next']['isInContent']&&(_0x200376['discardSuggestion'](_0x41e274['next']),_0x42a84e=!0x0);}}}return _0x42a84e;}),this['_registerLegacyDescription'](_0x7aaa63);}['_registerLegacyDescription'](_0x306074){const _0x57bf0e=this['editor'],_0x234f9e=_0x57bf0e['locale'];_0x57bf0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17d177=>{if('formatBlock'!=_0x17d177['type']&&'formatInline'!=_0x17d177['type'])return;const {data:_0x5b471d}=_0x17d177;if(!_0x5b471d||'imageStyle'!=_0x5b471d['commandName'])return;const _0x115709=_0x5b471d['commandParams'][0x0]['value'];return _0xea3749('side'===_0x115709?o(_0x234f9e,'FORMAT_SIDE_IMAGE'):_0x306074[_0x115709]||_0x115709);function _0xea3749(_0x964b26){return{'type':'format','content':o(_0x234f9e,'*Format:*\x20%0',_0x964b26)};}});}}class ft extends _0x1bca86{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x52f4a0){super(_0x52f4a0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a6023=this['editor'],_0xb34188=_0x4a6023['commands']['get']('importWord'),_0x4425d1=_0x4a6023['commands']['get']('trackChanges');_0xb34188&&(_0xb34188['on']('execute',(_0x147a44,[,_0x22eeaa])=>{this['_trackChangesValueDuringImport']=_0x4425d1['value'],_0x22eeaa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb34188,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb34188,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4425d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a6023['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48415a,_0x598673){const {suggestions:_0x5b1caa}=_0x598673,_0x5e55df=this['editor']['commands']['get']('trackChanges'),_0x4998bb=_0x5e55df['value'];this['_trackChangesValueDuringImport']!==_0x4998bb&&(_0x5e55df['execute'](),this['_trackChangesExecuted']=!0x0),_0x5b1caa&&_0x5b1caa['forEach'](({id:_0x497922,type:_0x1fee1e,author:_0x53b734,created_at:_0x41e3db})=>{const _0x116231={'id':_0x497922,'type':_0x1fee1e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x53b734,'createdAt':_0x41e3db?new Date(_0x41e3db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x116231);});}}class ht extends _0x1bca86{['afterInit'](){const _0x1c3cd2=this['editor'],_0x2202c3=_0x1c3cd2['plugins']['get']('TrackChangesEditing');if(_0x1c3cd2['plugins']['has']('IndentEditing')&&(_0x2202c3['enableCommand']('indent'),_0x2202c3['enableCommand']('outdent')),_0x1c3cd2['plugins']['has']('IndentBlock')){for(const _0x120c28 of['indentBlock','outdentBlock'])_0x2202c3['enableDefaultAttributesIntegration'](_0x120c28);}const _0x3dc157=_0x1c3cd2['locale'];_0x2202c3['registerBlockAttribute']('blockIndent'),_0x2202c3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3dc157,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369d87=this['editor'],_0x47abe0=_0x369d87['locale'],_0x2d1ada=_0x369d87['plugins']['get']('TrackChangesEditing');_0x2d1ada['descriptionFactory']['registerDescriptionCallback'](_0x32726a=>{if('formatBlock'!=_0x32726a['type'])return;const {data:_0x478721}=_0x32726a;if(!_0x478721)return;if('indentBlock'!=_0x478721['commandName']&&'outdentBlock'!=_0x478721['commandName'])return;const _0xced2e3=_0x32726a['getItems']()[0x0],_0x124902=_0x2d1ada['descriptionFactory']['getItemLabel'](_0xced2e3);return'indentBlock'==_0x478721['commandName']?{'type':'format','content':o(_0x47abe0,'*Indent:*\x20%0',_0x124902)}:'outdentBlock'==_0x478721['commandName']?{'type':'format','content':o(_0x47abe0,'*Outdent:*\x20%0',_0x124902)}:void 0x0;});}}class gt extends _0x1bca86{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1bca86{['afterInit'](){const _0x32dfb8=this['editor'];if(!_0x32dfb8['plugins']['has']('LinkEditing'))return;const _0x10dfbe=_0x32dfb8['plugins']['get']('TrackChangesEditing'),_0x4a7605=_0x32dfb8['commands']['get']('link');_0x10dfbe['enableDefaultAttributesIntegration']('link'),_0x10dfbe['enableDefaultAttributesIntegration']('unlink'),_0x10dfbe['registerInlineAttribute']('linkHref');for(const _0x29045c of _0x4a7605['manualDecorators'])_0x10dfbe['registerInlineAttribute'](_0x29045c['id']),_0x10dfbe['descriptionFactory']['registerAttributeLabel'](_0x29045c['id'],'link\x20('+_0x29045c['label']['toLowerCase']()+')');_0x10dfbe['descriptionFactory']['registerDescriptionCallback'](_0x2977cd=>{if('attribute'!=_0x2977cd['type'])return;const {data:_0x48351e}=_0x2977cd;if(!_0x48351e||'linkHref'!=_0x48351e['key'])return;const _0x2c8084=_0x48351e['newValue'],_0x13ee1c=_0x32dfb8['locale'];return{'type':'format','content':null==_0x2c8084?o(_0x13ee1c,'*Remove\x20link*'):o(_0x13ee1c,'*Set\x20link:*\x20%0','\x22'+_0x2c8084+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x314aa3=this['editor'],_0x1e3919=_0x314aa3['locale'];_0x314aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5079bd=>{if('formatInline'!=_0x5079bd['type'])return;const {data:_0x4e6164}=_0x5079bd;if(_0x4e6164){if('link'==_0x4e6164['commandName']){const _0x142cc4=_0x4e6164['commandParams'][0x0];return{'type':'format','content':o(_0x1e3919,'*Set\x20link:*\x20%0','\x22'+_0x142cc4+'\x22')};}return'unlink'==_0x4e6164['commandName']?{'type':'format','content':o(_0x1e3919,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x1bca86{['afterInit'](){const _0x2966c1=this['editor'],_0x57a8e8=_0x2966c1['locale'];if(!_0x2966c1['plugins']['has']('LegacyListEditing'))return;const _0x5f5325=_0x2966c1['plugins']['get']('TrackChangesEditing'),_0x3d22f8=_0x2966c1['plugins']['has']('LegacyTodoListEditing');function _0x5d8894(_0x2fc741){return()=>{const _0x41e3fd=_0x2966c1['model']['document']['selection'],_0xe9c73e=_0x2966c1['commands']['get'](_0x2fc741);if(_0xe9c73e['value'])return void _0x2966c1['execute']('paragraph',{});const _0x25bd9f=_0x2fc741['slice'](0x0,-0x4),_0x138b18=function(_0x43ed68,_0x1ea803,_0x43719d){let _0x2b6297=Array['from'](_0x43ed68)['filter'](_0x2d4610=>function(_0x1db581,_0x43cd09){return _0x43cd09['checkChild'](_0x1db581['parent'],'listItem')&&!_0x43cd09['isObject'](_0x1db581);}(_0x2d4610,_0x43719d));_0x2b6297=_0x2b6297['filter'](_0x4b446a=>!_0x4b446a['is']('element','listItem')||_0x4b446a['getAttribute']('listType')!=_0x1ea803);const _0x5abd24=new Set();for(const _0x4eebe7 of _0x2b6297)_0x4eebe7['is']('element','listItem')?_0x5abd24['add'](Ne(_0x4eebe7)):_0x5abd24['add'](_0x4eebe7);return Array['from'](_0x5abd24);}(_0x41e3fd['getSelectedBlocks'](),_0x25bd9f,_0x2966c1['model']['schema']);_0x2966c1['model']['change'](()=>{for(const _0xc48cbb of _0x138b18)_0x5f5325['markBlockFormat'](_0xc48cbb,{'commandName':_0x2fc741,'commandParams':[{'forceValue':!_0xe9c73e['value']}],'formatGroupId':'blockName'},Se(_0xc48cbb));});};}function _0xdd809f(_0x1cd512){return()=>{const _0x3534cc=function(_0x44b145){let _0xffdcd5=Array['from'](_0x44b145);const _0x2bace8=_0xffdcd5['findIndex'](_0x3c5588=>'listItem'!=_0x3c5588['name']);return _0x2bace8>-0x1&&(_0xffdcd5=_0xffdcd5['slice'](0x0,_0x2bace8)),_0xffdcd5;}(_0x2966c1['model']['document']['selection']['getSelectedBlocks']()),_0x58d6e9=_0x2966c1['model']['createRange'](_0x2966c1['model']['createPositionAt'](_0x3534cc[0x0],'before'),_0x2966c1['model']['createPositionAt'](_0x3534cc[_0x3534cc['length']-0x1],'end'));_0x2966c1['model']['change'](()=>{_0x5f5325['markBlockFormat'](_0x58d6e9,{'commandName':_0x1cd512,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ac54d){const _0x3914cd=new Set();for(const _0x3bf6c7 of _0x4ac54d){let _0x12007a=_0x3bf6c7['nextSibling'];for(;_0x12007a&&_0x12007a['getAttribute']('listIndent')>_0x3bf6c7['getAttribute']('listIndent');)_0x3914cd['add'](_0x12007a),_0x12007a=_0x12007a['nextSibling'];}return Array['from'](_0x3914cd);}(_0x3534cc));});};}_0x5f5325['enableCommand']('numberedList',_0x5d8894('numberedList')),_0x5f5325['enableCommand']('bulletedList',_0x5d8894('bulletedList')),_0x3d22f8&&_0x5f5325['enableCommand']('todoList',_0x5d8894('todoList')),_0x5f5325['enableCommand']('indentList',_0xdd809f('indentList')),_0x5f5325['enableCommand']('outdentList',_0xdd809f('outdentList')),_0x3d22f8&&_0x5f5325['enableCommand']('checkTodoList',()=>{const _0x420ee9=_0x2966c1['commands']['get']('checkTodoList'),_0xf41dce=Array['from'](_0x420ee9['_selectedElements']);_0xf41dce['filter'](_0x5e6bee=>_0x5e6bee['getAttribute']('todoListChecked')!=_0x420ee9['value']),_0x2966c1['model']['change'](()=>{for(const _0x6a0f7 of _0xf41dce)_0x5f5325['markBlockFormat'](_0x6a0f7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x420ee9['value']}]});});}),_0x5f5325['descriptionFactory']['registerElementLabel']('listItem',_0x114ce4=>o(_0x57a8e8,'ELEMENT_LIST_ITEM',_0x114ce4)),_0x5f5325['descriptionFactory']['registerDescriptionCallback'](_0x3e2d95=>{if('formatBlock'!=_0x3e2d95['type']&&'formatInline'!=_0x3e2d95['type'])return;const {data:_0x3553f8}=_0x3e2d95;if(_0x3553f8){if('numberedList'==_0x3553f8['commandName']||'bulletedList'==_0x3553f8['commandName']||'todoList'==_0x3553f8['commandName'])switch(_0x3553f8['commandName']['replace']('List','')){case'bulleted':return _0x30751a(o(_0x57a8e8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30751a(o(_0x57a8e8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30751a(o(_0x57a8e8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3553f8['commandName'])return{'type':'format','content':o(_0x57a8e8,'*Indent:*\x20%0',o(_0x57a8e8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3553f8['commandName'])return{'type':'format','content':o(_0x57a8e8,'*Outdent:*\x20%0',o(_0x57a8e8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3553f8['commandName'])return _0x3553f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57a8e8,'*Check\x20item*')}:{'type':'format','content':o(_0x57a8e8,'*Uncheck\x20item*')};}function _0x30751a(_0x53128c){return{'type':'format','content':o(_0x57a8e8,'*Change\x20to:*\x20%0',_0x53128c)};}});}}function Ne(_0x2b4e1f){const _0x1eb9f6=_0x2b4e1f['getAttribute']('listIndent');if(0x0==_0x1eb9f6)return _0x2b4e1f;let _0x4bfb56=_0x2b4e1f;for(;_0x2b4e1f['previousSibling']&&_0x2b4e1f['previousSibling']['is']('element','listItem');){const _0x13d748=_0x2b4e1f['previousSibling']['getAttribute']('listIndent');if(_0x13d748==_0x1eb9f6)_0x4bfb56=_0x2b4e1f['previousSibling'];else{if(_0x13d748<_0x1eb9f6)break;}_0x2b4e1f=_0x2b4e1f['previousSibling'];}return _0x4bfb56;}function Se(_0x4d452a){const _0x558767=[];if(_0x4d452a['is']('element','listItem')&&_0x4d452a['getAttribute']('listIndent')>0x0){let _0x3f480d=_0x4d452a['nextSibling'];for(;_0x3f480d&&'listItem'==_0x3f480d['name']&&_0x3f480d['getAttribute']('listIndent')==_0x4d452a['getAttribute']('listIndent');)_0x558767['push'](_0x3f480d),_0x3f480d=_0x3f480d['nextSibling'];}return _0x558767;}class mt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1921df=this['editor']['config']['get']('list.properties'),_0x404ba6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1921df['styles']&&_0x404ba6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1921df['reversed']&&_0x404ba6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1921df['startIndex']&&_0x404ba6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x404ba6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x26c018,_0x5f5a1b={}){const _0x6862ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x334e26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6862ca['markMultiRangeBlockFormat'](_0x334e26,{'commandName':'listStyle','commandParams':[{'type':_0x5f5a1b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x105726,_0x446825={}){const _0x4c9d2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bcdf7=this['_getSuggestionBlocks'](_0x19b426=>_0x19b426['is']('element','listItem')&&'numbered'===_0x19b426['getAttribute']('listType'));if(_0x1bcdf7['length']<0x1)return;const _0x4ccb38=_0x1bcdf7['map'](_0x1945f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1945f6,'before'),this['editor']['model']['createPositionAt'](_0x1945f6,0x0)));this['editor']['model']['change'](()=>{_0x4c9d2e['markMultiRangeBlockFormat'](_0x4ccb38,{'commandName':'listReversed','commandParams':[{'reversed':_0x446825['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x34098e,_0x298537={}){const _0x3b917a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164bd1=this['_getSuggestionBlocks'](_0x28ba7f=>_0x28ba7f['is']('element','listItem')&&'numbered'===_0x28ba7f['getAttribute']('listType'));if(_0x164bd1['length']<0x1)return;const _0x24e341=_0x164bd1['map'](_0x175798=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x175798,'before'),this['editor']['model']['createPositionAt'](_0x175798,0x0)));this['editor']['model']['change'](()=>{_0x3b917a['markMultiRangeBlockFormat'](_0x24e341,{'commandName':'listStart','commandParams':[{'startIndex':_0x298537['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x53813d){if('formatBlock'!=_0x53813d['type']&&'formatInline'!=_0x53813d['type'])return;const _0xef172b=this['editor']['locale'],{data:_0x556e94}=_0x53813d;if(!_0x556e94)return;let _0x47f546,_0x2af369;switch(_0x556e94['commandName']){case'listStyle':_0x47f546='*Change\x20to:*\x20%0',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546,o(_0xef172b,this['_getTranslationKeyForListStyle'](_0x556e94['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47f546=_0x556e94['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546)};break;case'listStart':_0x47f546='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2af369={'type':'format','content':o(_0xef172b,_0x47f546,_0x556e94['commandParams'][0x0]['startIndex'])};}return _0x2af369;}['_getSuggestionBlocksForListStyle'](){const _0x20d6e5=this['editor']['plugins']['get']('LegacyListUtils');let _0xe2d5b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe2d5b9[0x0]?.['is']('element','listItem')&&_0xe2d5b9['unshift'](..._0x20d6e5['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe2d5b9[_0xe2d5b9['length']-0x1]?.['is']('element','listItem')&&_0xe2d5b9['push'](..._0x20d6e5['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe2d5b9=[...new Set(_0xe2d5b9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe2d5b9=_0xe2d5b9['filter'](_0x3fa7b7=>_0x3fa7b7['is']('element','listItem'))),_0xe2d5b9;}['_getSuggestionBlocks'](_0x41d340){const _0x5a1347=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b8c18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x41d340)['map'](_0x1952fb=>{const _0x1a4f88=this['editor']['model']['createPositionAt'](_0x1952fb,0x0);return[..._0x5a1347['getSiblingNodes'](_0x1a4f88,'backward'),..._0x5a1347['getSiblingNodes'](_0x1a4f88,'forward')];})['flat']();return _0x6b8c18=[...new Set(_0x6b8c18)],_0x6b8c18;}['_getTranslationKeyForListStyle'](_0x5dfc86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5dfc86)||'default')['toUpperCase']()+'_LIST_'+_0x5dfc86['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x1bca86{['afterInit'](){const _0x5344f1=this['editor'];if(!_0x5344f1['plugins']['has']('MediaEmbedEditing'))return;const _0x2e95e9=_0x5344f1['plugins']['get']('TrackChangesEditing'),_0x483c77=_0x5344f1['locale'];_0x2e95e9['enableCommand']('mediaEmbed'),_0x2e95e9['descriptionFactory']['registerElementLabel']('media',_0x51bcf5=>o(_0x483c77,'ELEMENT_MEDIA',_0x51bcf5)),_0x5344f1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2aa14e,{writer:_0x114e60,options:_0x33df95})=>{if(_0x33df95['showSuggestionHighlights'])return _0x114e60['createEmptyElement']('div');},'converterPriority':'high'}),_0x5344f1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x338d08,_0x21c7eb,_0x1df8dc)=>{_0x1df8dc['options']['showSuggestionHighlights']&&_0x338d08['stop']();},{'priority':'high'});}}class kt extends _0x1bca86{['afterInit'](){const _0x106a39=this['editor'];_0x106a39['plugins']['has']('MentionEditing')&&_0x106a39['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1bca86{['afterInit'](){const _0x361298=this['editor'];if(!_0x361298['plugins']['has']('MergeFieldsEditing'))return;const _0x15db3f=_0x361298['plugins']['get']('TrackChangesEditing'),_0x552fe7=_0x361298['locale'];_0x15db3f['enableCommand']('insertMergeField'),_0x15db3f['enableCommand']('insertMergeFieldBlock'),_0x15db3f['enableCommand']('insertMergeFieldImage'),_0x15db3f['descriptionFactory']['registerElementLabel']('mergeField',_0x3bcdca=>o(_0x552fe7,'ELEMENT_MERGE_FIELD',_0x3bcdca)),_0x15db3f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe793e0=>o(_0x552fe7,'ELEMENT_MERGE_FIELD',_0xe793e0)),_0x15db3f['descriptionFactory']['registerDescriptionCallback'](_0xf17038=>{if('insertion'!=_0xf17038['type']&&'deletion'!=_0xf17038['type'])return;const _0x8bb9b6=_0xf17038['getContainedElement']();if(null==_0x8bb9b6)return;const _0x453f86=_0x361298['plugins']['get']('MergeFieldsEditing');let _0x48c6d2;switch(_0x453f86['getMergeFieldType'](_0x8bb9b6)){case null:return;case'image':{const _0x14e71e=_0x453f86['unwrapAffixes'](_0x8bb9b6['getAttribute']('src'));_0x48c6d2=_0x453f86['getLabel'](_0x14e71e)||_0x14e71e;break;}default:{const _0x742825=_0x8bb9b6['getAttribute']('id');_0x48c6d2=_0x453f86['getLabel'](_0x742825)||_0x742825;break;}}return'insertion'==_0xf17038['type']?{'type':'insertion','content':o(_0x552fe7,'*Insert:*\x20%0','\x22'+_0x48c6d2+'\x22\x20'+o(_0x552fe7,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x552fe7,'*Remove:*\x20%0','\x22'+_0x48c6d2+'\x22\x20'+o(_0x552fe7,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x1bca86{['afterInit'](){const _0x100ee9=this['editor'],_0x4ca639=_0x100ee9['plugins']['get']('TrackChangesEditing');_0x100ee9['plugins']['has']('MultiLevelList')&&(_0x4ca639['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ca639['registerBlockAttribute']('listMarkerStyle'),_0x4ca639['descriptionFactory']['registerDescriptionCallback'](_0x4c1832=>this['handleDescriptions'](_0x4c1832)));}['handleDescriptions'](_0x46d1d1){const _0x42a5d4=this['editor']['locale'],{data:_0x204a48}=_0x46d1d1,_0x591a97={'type':'format','content':''};if(_0x204a48&&'listMarkerStyle'==_0x204a48['key']){if(!_0x204a48['oldValue'])return{'type':'format','content':o(_0x42a5d4,'*Set\x20format:*\x20%0',o(_0x42a5d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x204a48['newValue']+')'};if(!_0x204a48['newValue']){let _0x1ef659=_0x46d1d1['head'];for(;_0x1ef659;){if(_0x1ef659['data']&&'listType'==_0x1ef659['data']['key']&&_0x1ef659['data']['newValue'])return _0x591a97;_0x1ef659=_0x1ef659['next'];}return{'type':'format','content':o(_0x42a5d4,'*Remove\x20format:*\x20%0',o(_0x42a5d4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x204a48['oldValue']+')'};}}}}class yt extends _0x1bca86{['afterInit'](){const _0x4b17c5=this['editor'];if(!_0x4b17c5['plugins']['has']('PageBreakEditing'))return;_0x4b17c5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x79a7ea=_0x4b17c5['plugins']['get']('TrackChangesEditing'),_0x44c23f=_0x4b17c5['locale'];_0x79a7ea['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b13da=>o(_0x44c23f,'ELEMENT_PAGE_BREAK',_0x2b13da));}}class St extends _0x1bca86{['afterInit'](){const _0x16f26b=this['editor'];if(!_0x16f26b['plugins']['has']('Paragraph'))return;const _0x25ed89=_0x16f26b['locale'],_0x2fb580=_0x16f26b['plugins']['get']('TrackChangesEditing');_0x2fb580['descriptionFactory']['registerElementLabel']('paragraph',_0x3d7d03=>o(_0x25ed89,'ELEMENT_PARAGRAPH',_0x3d7d03)),_0x2fb580['enableDefaultAttributesIntegration']('paragraph'),_0x2fb580['enableCommand']('insertParagraph'),_0x16f26b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16f26b),{'priority':'highest'}),_0x16f26b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23f66e,_0x4facb5,_0x233224)=>{_0x233224['options']['showSuggestionHighlights']&&nr(_0x16f26b,{'showActiveMarker':!0x1})(_0x23f66e,_0x4facb5,_0x233224);},{'priority':'highest'});const _0xebbdee=_0x2fb580['descriptionFactory'];_0xebbdee['registerDescriptionCallback'](_0x38d256=>{if('insertion'!==_0x38d256['type'])return;const {start:_0x55c529,end:_0x2e6267}=_0x38d256['getFirstRange']();if(!_0x55c529['isTouching'](_0x2e6267)||!_0x55c529['nodeAfter'])return;const _0x343994=_0x16f26b['model']['schema'],_0x10de0d=_0x55c529['nodeAfter'];return _0x343994['isBlock'](_0x10de0d)&&!_0x343994['isLimit'](_0x10de0d)&&_0x343994['checkChild'](_0x10de0d,'$text')?{'type':'insertion','content':o(_0x25ed89,'*Insert:*\x20%0',_0xebbdee['getItemLabel'](_0x10de0d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c4698=this['editor'],_0x57bf65=_0x2c4698['locale'];_0x2c4698['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ca7a=>{if('formatBlock'!=_0x29ca7a['type'])return;const {data:_0x205e88}=_0x29ca7a;return _0x205e88&&'paragraph'==_0x205e88['commandName']?{'type':'format','content':o(_0x57bf65,'*Change\x20to:*\x20%0',o(_0x57bf65,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x142bc9,{showActiveMarker:_0x4689d4=!0x0}={}){return(_0x2d15a3,_0x534b71,_0x44fc91)=>{const _0x36fd2a=_0x142bc9['plugins']['get']('TrackChangesEditing'),_0x58a4e7=_0x534b71['markerRange']['start'],_0x4df52c=_0x534b71['markerRange']['end'],_0x3bc5b8=_0x142bc9['model']['schema'];if(!_0x58a4e7['isTouching'](_0x4df52c)||!_0x58a4e7['nodeAfter'])return;const _0x1fcc8f=_0x58a4e7['nodeAfter'];if(_0x3bc5b8['isBlock'](_0x1fcc8f)&&!_0x3bc5b8['isLimit'](_0x1fcc8f)&&_0x3bc5b8['checkChild'](_0x1fcc8f,'$text')){if(!_0x44fc91['consumable']['consume'](_0x534b71['markerRange'],_0x2d15a3['name']))return;const {id:_0xa9491a,authorId:_0x1b7d4f}=_0x36fd2a['_splitMarkerName'](_0x534b71['markerName']),_0x2f8341=_0x44fc91['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xa9491a,'data-author-id':_0x1b7d4f}),_0x1b8698=_0x44fc91['mapper']['toViewPosition'](_0x4df52c);_0x4689d4&&_0x36fd2a['activeMarkers']['includes'](_0x534b71['markerName'])&&_0x44fc91['writer']['addClass']('ck-suggestion-marker--active',_0x2f8341),_0x44fc91['writer']['insert'](_0x1b8698,_0x2f8341),_0x44fc91['mapper']['bindElementToMarker'](_0x2f8341,_0x534b71['markerName']);}};}class jt extends _0x1bca86{['afterInit'](){const _0x5a5407=this['editor'];_0x5a5407['commands']['get']('replaceSource')&&_0x5a5407['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x1bca86{['afterInit'](){const _0x4d5370=this['editor'];if(!_0x4d5370['plugins']['has']('RemoveFormatEditing'))return;_0x4d5370['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x100cbf=this['editor'];_0x100cbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12e1bc=>{if('formatBlock'!=_0x12e1bc['type']&&'formatInline'!=_0x12e1bc['type'])return;const {data:_0x1fe79f}=_0x12e1bc;return _0x1fe79f&&'removeFormat'==_0x1fe79f['commandName']?{'type':'format','content':o(_0x100cbf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1bca86{['afterInit'](){const _0x1ca000=this['editor'];if(!_0x1ca000['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x551056=_0x1ca000['plugins']['get']('TrackChangesEditing');_0x551056['enableCommand']('goToPreviousRestrictedEditingException'),_0x551056['enableCommand']('goToNextRestrictedEditingException');const _0x2a3173=_0x1ca000['plugins']['get']('RestrictedEditingModeEditing');_0x2a3173['enableCommand']('trackChanges'),_0x2a3173['enableCommand']('acceptSuggestion'),_0x2a3173['enableCommand']('discardSuggestion'),_0x2a3173['enableCommand']('acceptAllSuggestions'),_0x2a3173['enableCommand']('discardAllSuggestions'),_0x2a3173['enableCommand']('acceptSelectedSuggestions'),_0x2a3173['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x1bca86{['afterInit'](){const _0xa1423f=this['editor'];if(!_0xa1423f['plugins']['has']('ShiftEnter'))return;const _0xe39e68=_0xa1423f['plugins']['get']('TrackChangesEditing');_0xe39e68['enableCommand']('shiftEnter'),_0xa1423f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0xa1423f),{'priority':'high'}),_0xa1423f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0xa1423f),{'priority':'high'}),_0xa1423f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x463fa1,_0x2ac4e2,_0x862299)=>{_0x862299['options']['showSuggestionHighlights']&&Ee(_0xa1423f,{'showActiveMarker':!0x1})(_0x463fa1,_0x2ac4e2,_0x862299);}),_0xe39e68['descriptionFactory']['registerElementLabel']('softBreak',_0x34b59d=>o(_0xa1423f['locale'],'ELEMENT_LINE_BREAK',_0x34b59d));}}function Ee(_0x5d808a,{showActiveMarker:_0x17a76f=!0x0}={}){return(_0x96663b,_0x51f5d1,_0x3743fd)=>{const _0xe5fe4a=_0x5d808a['plugins']['get']('TrackChangesEditing');if(!_0x3743fd['consumable']['test'](_0x51f5d1['markerRange'],_0x96663b['name']))return;const _0xca9758=_0x5d808a['model'];for(const _0x1eba28 of _0x51f5d1['markerRange']['getItems']()){if(!_0x1eba28['is']('element','softBreak'))continue;const _0x3190db='deletion'==_0x51f5d1['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x321bd8,authorId:_0x1f8099}=_0xe5fe4a['_splitMarkerName'](_0x51f5d1['markerName']),_0x2ea59f=_0x3743fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3190db,'data-suggestion':_0x321bd8,'data-author-id':_0x1f8099}),_0x4327f9=_0x3743fd['mapper']['toViewPosition'](_0xca9758['createPositionBefore'](_0x1eba28));_0x17a76f&&_0xe5fe4a['activeMarkers']['includes'](_0x51f5d1['markerName'])&&_0x3743fd['writer']['addClass']('ck-suggestion-marker--active',_0x2ea59f),_0x3743fd['writer']['insert'](_0x4327f9,_0x2ea59f),_0x3743fd['mapper']['bindElementToMarker'](_0x2ea59f,_0x51f5d1['markerName']);}};}class vt extends _0x1bca86{['afterInit'](){const _0x4cdc90=this['editor'],_0x549438=_0x4cdc90['model'],_0x2c40ff=_0x4cdc90['locale'];if(!_0x4cdc90['plugins']['has']('StandardEditingModeEditing'))return;const _0x16a594=_0x4cdc90['plugins']['get']('TrackChangesEditing'),_0x366524='restrictedEditingException',_0x51923f=_0x4cdc90['commands']['get'](_0x366524);_0x16a594['enableCommand'](_0x366524,(_0x2b55ea,_0x8aed99={})=>{const _0x903d6=_0x549438['document']['selection'];if(_0x903d6['isCollapsed'])return void _0x2b55ea(_0x8aed99);const _0x5af329=void 0x0!==_0x8aed99['forceValue']?_0x8aed99['forceValue']:!_0x51923f['value'];_0x549438['change'](()=>{const _0x16f799=Array['from'](_0x903d6['getRanges']());for(const _0xa0ec22 of _0x16f799){const _0x51afd3=_0x5af329?[_0xa0ec22]:io(_0x366524,_0xa0ec22,_0x549438);for(const _0x1a69d0 of _0x51afd3)_0x16a594['markInlineFormat'](_0x1a69d0,{'commandName':_0x366524,'commandParams':[{'forceValue':_0x5af329}]});}});}),_0x16a594['descriptionFactory']['registerDescriptionCallback'](_0x47da4c=>{if('formatBlock'!=_0x47da4c['type']&&'formatInline'!=_0x47da4c['type'])return;const {data:_0xdc0e16}=_0x47da4c;return _0xdc0e16&&_0xdc0e16['commandName']==_0x366524?_0xdc0e16['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c40ff,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2c40ff,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x1bca86{['afterInit'](){const _0x3e83e8=this['editor'];if(!_0x3e83e8['plugins']['has']('Style')||!_0x3e83e8['plugins']['has']('DataSchema'))return;const _0x132aea=_0x3e83e8['plugins']['get']('TrackChangesEditing'),_0x41eeb4=_0x3e83e8['locale'],_0x323d56=_0x3e83e8['config']['get']('style')||{},_0x538def=_0x3e83e8['plugins']['get']('GeneralHtmlSupport'),_0x2a8717=_0x3e83e8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3e83e8['plugins']['get']('DataSchema'),_0x323d56['definitions']);_0x132aea['enableDefaultAttributesIntegration']('style');const _0x13dfd6=new Set();for(const _0x38904c of _0x2a8717['block']){const _0x4c96f5=_0x538def['getGhsAttributeNameForElement'](_0x38904c['element']);_0x13dfd6['add'](_0x4c96f5);}const _0x5d04bf=new Set();for(const _0x48417a of _0x2a8717['inline']){const _0x1079a7=_0x538def['getGhsAttributeNameForElement'](_0x48417a['element']);_0x5d04bf['add'](_0x1079a7);for(const _0x568c52 of _0x48417a['ghsAttributes'])_0x5d04bf['add'](_0x568c52);}for(const _0x11a3c7 of _0x13dfd6)_0x132aea['registerBlockAttribute'](_0x11a3c7),_0x132aea['descriptionFactory']['registerAttributeLabel'](_0x11a3c7,o(_0x41eeb4,'FORMAT_STYLE'));for(const _0xaa5522 of _0x5d04bf)_0x132aea['registerInlineAttribute'](_0xaa5522),_0x132aea['descriptionFactory']['registerAttributeLabel'](_0xaa5522,o(_0x41eeb4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292ff4=this['editor'],_0x595eef=_0x292ff4['locale'];_0x292ff4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc033=>{if('formatBlock'!=_0x2fc033['type']&&'formatInline'!=_0x2fc033['type'])return;const {data:_0x3dceab}=_0x2fc033;return _0x3dceab&&'style'===_0x3dceab['commandName']?_0x3dceab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x595eef,'*Set\x20format:*\x20%0',_0x3dceab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x595eef,'*Remove\x20format:*\x20%0',_0x3dceab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x1bca86{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b1d70){super(_0x1b1d70),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1e103c=this['editor'],_0x18a302=_0x1e103c['model']['document']['selection'];if(!_0x1e103c['plugins']['has']('TableEditing'))return;const _0xd31f74=_0x1e103c['locale'],_0x5f5c34=_0x1e103c['plugins']['get']('TrackChangesEditing'),_0x34b93c=_0x1e103c['plugins']['get']('TableUtils');_0x5f5c34['descriptionFactory']['registerElementLabel']('table',_0x3e727b=>o(_0xd31f74,'ELEMENT_TABLE',_0x3e727b)),this['_setupColumnsRowsFixing'](),_0x5f5c34['enableCommand']('insertTable'),_0x5f5c34['enableCommand']('selectTableRow'),_0x5f5c34['enableCommand']('selectTableColumn');for(const _0x344f27 of['insertTableRowAbove','insertTableRowBelow']){const _0x4588d7=_0x1e103c['commands']['get'](_0x344f27);_0x5f5c34['enableCommand'](_0x344f27,_0x24c40b=>{_0x1e103c['model']['change'](_0x161149=>{_0x24c40b();const _0x3b0c50='above'===_0x4588d7['order'],_0x368f72=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x374946=_0x34b93c['getRowIndexes'](_0x368f72),_0x11f3cc=_0x3b0c50?_0x374946['first']-0x1:_0x374946['last']+0x1,_0x475a6a=_0x368f72[0x0]['findAncestor']('table'),_0x531b67=_0x34b93c['createTableWalker'](_0x475a6a,{'startRow':_0x11f3cc,'endRow':_0x11f3cc}),_0x178037=Array['from'](_0x531b67)['map'](_0x400f47=>_0x161149['createRangeOn'](_0x400f47['cell']));_0x5f5c34['markMultiRangeInsertion'](_0x178037,'tableRow');});});}for(const _0x1ea29b of['insertTableColumnLeft','insertTableColumnRight']){const _0xa7c62b=_0x1e103c['commands']['get'](_0x1ea29b);_0x5f5c34['enableCommand'](_0x1ea29b,_0x3967ab=>{_0x1e103c['model']['change'](_0x1ba008=>{_0x3967ab();const _0x1e9d09='left'===_0xa7c62b['order'],_0x1a1aef=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x282f65=_0x34b93c['getColumnIndexes'](_0x1a1aef),_0x32f410=_0x1e9d09?_0x282f65['first']-0x1:_0x282f65['last']+0x1,_0x54344f=_0x1a1aef[0x0]['findAncestor']('table'),_0x55517a=_0x34b93c['createTableWalker'](_0x54344f,{'startRow':0x0,'column':_0x32f410,'includeAllSlots':!0x1}),_0x15d0ed=Array['from'](_0x55517a)['map'](_0x391cc5=>_0x1ba008['createRangeOn'](_0x391cc5['cell']));_0x5f5c34['markMultiRangeInsertion'](_0x15d0ed,'tableColumn');});});}for(const _0x437c34 of['removeTableRow','removeTableColumn']){const _0x283d97=_0x437c34['substr'](0xb),_0x5ab099=_0x283d97['toLowerCase'](),_0x5f306b=_0x5ab099['substr'](0x0,0x3)+'span',_0x1b9e9c='table'+_0x283d97,_0x517dc6='min'+_0x283d97,_0xc5e424='max'+_0x283d97;_0x5f5c34['enableCommand'](_0x437c34,()=>{_0x1e103c['model']['change'](_0x2fc55e=>{const _0x2508dd=_0x34b93c['getSelectionAffectedTableCells'](_0x18a302),_0x46ab96=_0x2508dd[0x0]['findAncestor']('table');let _0x202a96;if('removeTableRow'==_0x437c34){const _0x24c030=_0x34b93c['getRowIndexes'](_0x2508dd);_0x202a96={'startRow':_0x24c030['first'],'endRow':_0x24c030['last'],'includeAllSlots':!0x0};}else{const _0x1f4243=_0x34b93c['getColumnIndexes'](_0x2508dd);_0x202a96={'startColumn':_0x1f4243['first'],'endColumn':_0x1f4243['last'],'includeAllSlots':!0x0};}const _0x3917c4=_0x34b93c['createTableWalker'](_0x46ab96,_0x202a96),_0x154791=Array['from'](_0x3917c4)['map'](({cell:_0x150e40})=>_0x150e40),_0x500c4a=We(_0x154791['filter'](_0x4b5c39=>_0x4b5c39['hasAttribute'](_0x5f306b))),_0x27ac5a=We(_0x154791['filter'](_0x4955be=>!_0x4955be['hasAttribute'](_0x5f306b)))['map'](_0x438197=>_0x2fc55e['createRangeOn'](_0x438197)),_0x1c85c2=_0x5f5c34['markMultiRangeDeletion'](_0x27ac5a,_0x1b9e9c);if(_0x1c85c2&&('tableRow'==_0x1c85c2['subType']||'tableColumn'==_0x1c85c2['subType'])){const _0x14ea12=this['_getSuggestionCoords'](_0x1c85c2);for(const _0x9875f7 of _0x500c4a){const _0x46a382=_0x2fc55e['createRangeOn'](_0x9875f7),_0x4e0099=_0x34b93c['getCellLocation'](_0x9875f7),_0x57a723=_0x9875f7['getAttribute'](_0x5f306b)-0x1,_0x5a7e47=_0x14ea12[_0x517dc6],_0x2b99c6=_0x14ea12[_0xc5e424];_0x5a7e47<=_0x4e0099[_0x5ab099]&&_0x4e0099[_0x5ab099]+_0x57a723<=_0x2b99c6&&_0x1c85c2['addRange'](_0x46a382);}}});});}function _0x274e6e(_0x1c6e63){const _0x49aa44=Array['from'](_0x18a302['getRanges']())['map'](_0x6c3556=>_0x35191f['fromRange'](_0x6c3556));_0x1e103c['model']['change'](_0x5e2f25=>{const _0x95265e=_0x5e2f25['batch'];_0x1c6e63=_0x1c6e63['filter'](_0x228210=>'$graveyard'!=_0x228210['root']['rootName']),_0x5e2f25['setSelection'](_0x1c6e63),_0x1e103c['commands']['get']('removeTableRow')['refresh'](),_0x1e103c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1e103c['model']['enqueueChange'](()=>{_0x1e103c['model']['enqueueChange'](_0x95265e,_0x1f534a=>{const _0x1c25d9=_0x49aa44['filter'](_0x2556c1=>'$graveyard'!=_0x2556c1['root']['rootName']);_0x1c25d9['length']>0x0&&_0x1f534a['setSelection'](_0x1c25d9);for(const _0x10dc0f of _0x49aa44)_0x10dc0f['detach']();});});});}function _0x278185(_0x5048f2){_0x1e103c['model']['change'](_0x1c1d1f=>{const _0x406503=Array['from'](_0x18a302['getRanges']())['map'](_0x414c57=>_0x35191f['fromRange'](_0x414c57)),_0x29b35e=[];for(const _0x23d145 of _0x5048f2)for(const _0x1f2419 of _0x23d145['getItems']({'shallow':!0x0}))_0x29b35e['push'](_0x1f2419);for(const _0x319426 of _0x29b35e)'$graveyard'!=_0x319426['root']['rootName']&&(_0x1c1d1f['setSelection'](_0x1c1d1f['createPositionAt'](_0x319426,0x0)),_0x1e103c['commands']['get']('removeTableColumn')['refresh'](),_0x1e103c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e3823=_0x406503['filter'](_0x156633=>'$graveyard'!=_0x156633['root']['rootName']);_0x5e3823['length']>0x0&&_0x1c1d1f['setSelection'](_0x5e3823);for(const _0x3067cc of _0x406503)_0x3067cc['detach']();});}function _0x59ebaa(_0x730f8,_0x7bb623){return _0x7bb623['every'](_0x1830b0=>_0x730f8['some'](_0x4dc4b8=>_0x4dc4b8['end']['isEqual'](_0x1830b0['start'])||_0x1830b0['end']['isEqual'](_0x4dc4b8['start'])));}function _0x657120(_0x46a017,_0x2dc44c){return!_0x46a017['some'](_0x3ec795=>_0x2dc44c['some'](_0x1acc49=>_0x3ec795['isIntersecting'](_0x1acc49)))&&_0x46a017['some'](_0x53182b=>_0x2dc44c['some'](_0x51bcbd=>_0x53182b['end']['isTouching'](_0x51bcbd['start'])));}_0x1e103c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f32c2,_0xac8583,_0x5f5c21)=>{if(!_0x5f5c21['options']['showSuggestionHighlights'])return;const _0x232142=_0xac8583['item'];if(!_0x232142||!_0x232142['is']('element','tableCell'))return;const _0x513f7d=_0x5f5c21['mapper']['toViewElement'](_0x232142);if(_0x513f7d){const {id:_0xfdd1c7,authorId:_0x391350}=_0x5f5c34['_splitMarkerName'](_0xac8583['markerName']);_0x3b341e(_0x513f7d,_0x5f5c21['writer'],(_0x43dddd,_0x58e7e3,_0x43f7f7)=>{_0x43f7f7['addClass'](_0x13eaa6(_0x58e7e3['classes']),_0x43dddd),_0x43f7f7['setAttribute']('data-suggestion-id',_0xfdd1c7,_0x43dddd),_0x43f7f7['setAttribute']('data-author-id',_0x391350,_0x43dddd);},(_0x11cbba,_0x28eb3d,_0x3fe977)=>{_0x3fe977['removeClass'](_0x13eaa6(_0x28eb3d['classes']),_0x11cbba),_0x3fe977['removeAttribute']('data-suggestion-id',_0x11cbba),_0x3fe977['removeAttribute']('data-author-id',_0x11cbba);});}},{'priority':'highest'}),_0x5f5c34['descriptionFactory']['registerDescriptionCallback'](_0x4c07be=>{if('insertion'!=_0x4c07be['type']&&'deletion'!=_0x4c07be['type'])return;const _0x2193d4=_0x4c07be['getContainedElement']();if(null!=_0x2193d4&&_0x2193d4['is']('element','table')){if('insertion'==_0x4c07be['type']){const _0x4d8a2c=_0x4c07be['getItems']()['filter'](_0xa84195=>_0xa84195['is']('$textProxy'))['map'](_0x1508bf=>_0x1508bf['data']);if(_0x4d8a2c['length'])return{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d8a2c['join']('\x20')+'\x22'))};}if('deletion'==_0x4c07be['type']){const _0x4b2d9c=_0x4c07be['getItems']()['filter'](_0x561d0f=>_0x561d0f['is']('$textProxy'))['map'](_0x377aa3=>_0x377aa3['data']);if(_0x4b2d9c['length'])return{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b2d9c['join']('\x20')+'\x22'))};}}}),_0x5f5c34['descriptionFactory']['registerDescriptionCallback'](_0x576415=>{if('tableRow'==_0x576415['subType']){const _0x1ab442=_0x576415['getItems']()['filter'](_0x41384f=>_0x41384f['is']('$textProxy'))['map'](_0x40d788=>_0x40d788['data']),_0x242a1a=this['_getSuggestionCoords'](_0x576415),_0x525fec=_0x242a1a['maxRow']-_0x242a1a['minRow']+0x1;if('insertion'==_0x576415['type'])return _0x1ab442['length']?{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x525fec,'\x22'+_0x1ab442['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW',_0x525fec))};if('deletion'==_0x576415['type'])return _0x1ab442['length']?{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x525fec,'\x22'+_0x1ab442['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_ROW',_0x525fec))};}if('tableColumn'==_0x576415['subType']){const _0xc5d091=_0x576415['getItems']()['filter'](_0x5a6245=>_0x5a6245['is']('$textProxy'))['map'](_0x3f2bf=>_0x3f2bf['data']),_0x5d888f=this['_getSuggestionCoords'](_0x576415),_0x470818=_0x5d888f['maxColumn']-_0x5d888f['minColumn']+0x1;if('insertion'==_0x576415['type'])return _0xc5d091['length']?{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x470818,'\x22'+_0xc5d091['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd31f74,'*Insert:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN',_0x470818))};if('deletion'==_0x576415['type'])return _0xc5d091['length']?{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x470818,'\x22'+_0xc5d091['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd31f74,'*Remove:*\x20%0',o(_0xd31f74,'ELEMENT_TABLE_COLUMN',_0x470818))};}}),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x274e6e),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x274e6e),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x278185),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x278185),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59ebaa),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59ebaa),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x657120),_0x5f5c34['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x657120);}['_acceptFormatSuggestionCallbackFactory'](){const _0x46af86=this['editor'],_0x4cc5df=_0x46af86['model']['document']['selection'];return(_0x26bb06,_0x3c7221)=>{_0x46af86['model']['change'](_0x541443=>{const {commandName:_0x36682c,commandParams:_0x193131}=_0x3c7221;let _0x38442b=_0x26bb06[0x0]['end']['nodeBefore'];_0x193131&&_0x193131[0x0]&&!0x1===_0x193131[0x0]['forceValue']&&(_0x38442b=_0x26bb06[0x0]['start']['nodeAfter']);const _0x2e23d4=_0x541443['createRangeIn'](_0x38442b);if('$graveyard'==_0x2e23d4['root']['rootName'])return;const _0x32bd02=Array['from'](_0x4cc5df['getRanges']())['map'](_0x199c04=>_0x35191f['fromRange'](_0x199c04));_0x541443['setSelection'](_0x2e23d4),_0x46af86['commands']['get'](_0x36682c)['refresh'](),_0x193131['push']({'forceDefaultExecution':!0x0}),_0x46af86['execute'](_0x36682c,..._0x193131);const _0x4ef539=_0x32bd02['filter'](_0x202aec=>'$graveyard'!=_0x202aec['root']['rootName']);_0x4ef539['length']>0x0&&_0x541443['setSelection'](_0x4ef539);for(const _0x5ba86e of _0x32bd02)_0x5ba86e['detach']();});};}['_getCoordsForCells'](_0x238ed1){const _0x4ad7af=this['editor']['plugins']['get']('TableUtils');let _0x3d499b=Number['MAX_SAFE_INTEGER'],_0x35a111=Number['MIN_SAFE_INTEGER'],_0x1f8435=Number['MAX_SAFE_INTEGER'],_0x4879af=Number['MIN_SAFE_INTEGER'];for(const _0x17c48a of _0x238ed1){if('$graveyard'==_0x17c48a['root']['rootName'])continue;const {row:_0x4aca47,column:_0x115a96}=_0x4ad7af['getCellLocation'](_0x17c48a),_0x468bd9=_0x17c48a['hasAttribute']('rowspan')?_0x17c48a['getAttribute']('rowspan')-0x1:0x0,_0x3863de=_0x17c48a['hasAttribute']('colspan')?_0x17c48a['getAttribute']('colspan')-0x1:0x0;_0x3d499b=_0x4aca47<_0x3d499b?_0x4aca47:_0x3d499b,_0x35a111=_0x4aca47+_0x468bd9>_0x35a111?_0x4aca47+_0x468bd9:_0x35a111,_0x1f8435=_0x115a96<_0x1f8435?_0x115a96:_0x1f8435,_0x4879af=_0x115a96+_0x3863de>_0x4879af?_0x115a96+_0x3863de:_0x4879af;}return{'minRow':_0x3d499b,'maxRow':_0x35a111,'minColumn':_0x1f8435,'maxColumn':_0x4879af};}['_setupColumnsRowsFixing'](){const _0x4fe4df=this['editor'],_0x210e24=_0x4fe4df['plugins']['get']('TrackChangesEditing'),_0xf7fe34=_0x4fe4df['plugins']['get']('TableUtils');_0x4fe4df['model']['document']['on']('change:data',()=>{const _0x3c6d43=Array['from'](_0x4fe4df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b18e9,data:_0x523f2c}of _0x3c6d43){const {group:_0x418502,id:_0xa2ba5d,subType:_0x51f067}=_0x210e24['_splitMarkerName'](_0x1b18e9);if('suggestion'!=_0x418502)continue;if(null!=_0x523f2c['oldRange'])continue;const _0x162c8a=_0x210e24['getSuggestion'](_0xa2ba5d);this['_tablePostFixingSubtypes']['includes'](_0x51f067)&&this['_tableSuggestions']['add'](_0x162c8a);}},{'priority':'low'});const _0x260b35=(_0x1d4d61,_0x53f0ae)=>{let _0x716ace=!0x1;const _0x18a2a0=_0x53f0ae['createRangeOn'](_0x1d4d61),_0x53d6b0=_0x1d4d61['findAncestor']('table'),_0x3e8c62=_0xf7fe34['getCellLocation'](_0x1d4d61);for(const _0x3b3048 of this['_tableSuggestions']){const _0x56e56b=_0x3b3048['subType'],_0x1972e6=_0x56e56b['startsWith']('tablePaste'),_0x491830=_0x56e56b['substr'](_0x1972e6?0xa:0x5),_0x4f6279=_0x491830['toLowerCase'](),_0x3ed2a5=_0x4f6279['substr'](0x0,0x3)+'span',_0x3d3ee9='min'+_0x491830,_0x465c61='max'+_0x491830;if(!_0x3b3048['isInContent'])continue;if(_0x53d6b0!=_0x3b3048['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b3048['isIntersectingWithRange'](_0x18a2a0))continue;const _0x5d98ae=_0x1d4d61['hasAttribute'](_0x3ed2a5)?_0x1d4d61['getAttribute'](_0x3ed2a5)-0x1:0x0,_0x3fa882=this['_getSuggestionCoords'](_0x3b3048),_0x4e1785=_0x3fa882[_0x3d3ee9],_0x410eeb=_0x3fa882[_0x465c61];_0x4e1785<=_0x3e8c62[_0x4f6279]&&_0x3e8c62[_0x4f6279]+_0x5d98ae<=_0x410eeb&&(_0x3b3048['addRange'](_0x18a2a0),_0x716ace=!0x0);}return _0x716ace;};_0x4fe4df['model']['document']['registerPostFixer'](_0x5ecc25=>{let _0x186984=!0x1;for(const _0x123ec9 of _0x4fe4df['model']['document']['differ']['getChanges']())if('insert'==_0x123ec9['type']){if('tableRow'==_0x123ec9['name']){for(const _0x5744a0 of _0x123ec9['position']['nodeAfter']['getChildren']())_0x186984=_0x186984||_0x260b35(_0x5744a0,_0x5ecc25);}else'tableCell'==_0x123ec9['name']&&(_0x186984=_0x186984||_0x260b35(_0x123ec9['position']['nodeAfter'],_0x5ecc25));}return _0x186984;});}['_getSuggestionCoords'](_0x13544b){return this['_getCoordsForCells'](_0x13544b['getRanges']()['map'](_0x13c518=>_0x13c518['start']['nodeAfter']));}}function We(_0x1c71d4){return Array['from'](new Set(_0x1c71d4)['values']());}class Nt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x2d7caf=this['editor'],_0x78ebb4=_0x2d7caf['model']['document']['selection'],_0x2a7e44=_0x2d7caf['locale'];if(!_0x2d7caf['plugins']['has']('TableEditing'))return;const _0xf0ab46=_0x2d7caf['plugins']['get']('TrackChangesEditing'),_0x117268=_0x2d7caf['plugins']['get']('TableUtils'),_0x5ee087=_0x2d7caf['plugins']['get']($t);_0x5ee087['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xf0ab46['enableCommand']('mergeTableCells',()=>{const _0x419d27=_0x117268['getSelectionAffectedTableCells'](_0x2d7caf['model']['document']['selection']);_0x2d7caf['model']['change'](()=>{_0xf0ab46['markMultiRangeBlockFormat'](_0x419d27,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d7caf['commands']['get']('mergeTableCells')['on']('execute',(_0x5be806,_0x5ca603)=>{_0x2d7caf['commands']['get']('trackChanges')['value']&&(_0x5ca603['length']>0x0&&_0x5ca603[_0x5ca603['length']-0x1]&&_0x5ca603[_0x5ca603['length']-0x1]['forceDefaultExecution']||_0xf0ab46['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5be806['stop']());},{'priority':'highest'});for(const _0x396b4b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf168cf=_0x2d7caf['commands']['get'](_0x396b4b);_0xf0ab46['enableCommand'](_0x396b4b,()=>{const _0x10ea62=_0x2d7caf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x336646=>_0x336646['is']('element','tableCell')),_0x3c3da4=_0xf168cf['value'];_0x2d7caf['model']['change'](()=>{_0xf0ab46['markMultiRangeBlockFormat']([_0x10ea62,_0x3c3da4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46faaf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x18946e=_0x2d7caf['commands']['get'](_0x46faaf);_0xf0ab46['enableCommand'](_0x46faaf,()=>{const _0x5a286b=_0x117268['getSelectionAffectedTableCells'](_0x2d7caf['model']['document']['selection'])[0x0],_0x316b38=_0x5a286b['findAncestor']('table'),{column:_0x4ddb22,row:_0x13784c}=_0x117268['getCellLocation'](_0x5a286b);let _0x51f769=[];if('horizontally'==_0x18946e['direction']){const _0x46a29e=_0x117268['createTableWalker'](_0x316b38,{'startRow':_0x13784c,'endRow':_0x13784c,'includeAllSlots':!0x0});_0x51f769=Array['from'](_0x46a29e)['map'](_0x31b1da=>_0x31b1da['cell']);}else{const _0x51d1fb=_0x117268['createTableWalker'](_0x316b38,{'column':_0x4ddb22,'includeAllSlots':!0x0});_0x51f769=Array['from'](_0x51d1fb)['map'](_0x2b6575=>_0x2b6575['cell']);}_0x2d7caf['model']['change'](_0x3c9dfd=>{_0xf0ab46['markBlockFormat'](_0x3c9dfd['createRangeOn'](_0x5a286b),{'commandName':_0x46faaf,'commandParams':[]},_0x51f769,_0x46faaf);});});}_0xf0ab46['descriptionFactory']['registerDescriptionCallback'](_0x4c2f5c=>{if('formatBlock'!=_0x4c2f5c['type']&&'formatInline'!=_0x4c2f5c['type'])return;const {data:_0x14d621}=_0x4c2f5c;return _0x14d621&&'mergeTableCells'==_0x14d621['commandName']?{'type':'format','content':o(_0x2a7e44,'*Merge\x20cells*')}:void 0x0;}),_0xf0ab46['descriptionFactory']['registerDescriptionCallback'](_0x4b411b=>{if('formatBlock'!=_0x4b411b['type']&&'formatInline'!=_0x4b411b['type'])return;const {data:_0xabea4b}=_0x4b411b;return _0xabea4b?'splitTableCellVertically'==_0xabea4b['commandName']?{'type':'format','content':o(_0x2a7e44,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xabea4b['commandName']?{'type':'format','content':o(_0x2a7e44,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a58c9=_0x5ee087['_acceptFormatSuggestionCallbackFactory']();for(const _0x2782ca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2782ca,'accept',_0x2a58c9);for(const _0x5d9b8b of['splitTableCellVertically','splitTableCellHorizontally'])_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d9b8b,'accept',_0x2a58c9);_0xf0ab46['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x211048=>{_0x2d7caf['model']['change'](_0x5cfcd6=>{const _0x598cb0=Array['from'](_0x78ebb4['getRanges']())['map'](_0x5dea1c=>_0x35191f['fromRange'](_0x5dea1c));_0x5cfcd6['setSelection'](_0x211048),_0x2d7caf['commands']['get']('mergeTableCells')['refresh'](),_0x2d7caf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3df228=_0x598cb0['filter'](_0x5e654d=>'$graveyard'!=_0x5e654d['root']['rootName']);_0x3df228['length']>0x0&&_0x5cfcd6['setSelection'](_0x3df228);for(const _0x4bc2ea of _0x598cb0)_0x4bc2ea['detach']();});});for(const _0x3e175e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37a4bd=_0x2d7caf['commands']['get'](_0x3e175e);_0x37a4bd['on']('set:isEnabled',(_0x6414d6,_0x5862d2,_0x28626f)=>{if(_0x28626f){const _0x3d649e=_0x2d7caf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c9241=>_0x4c9241['is']('element','tableCell'));this['_areMergableCells'](_0x37a4bd['value'],_0x3d649e)||(_0x6414d6['return']=!0x1,_0x6414d6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x88715=this['editor']['commands']['get']('mergeTableCells'),_0x1a241f=this['editor']['plugins']['get']('TableUtils');if(!_0x88715['isEnabled'])return!0x1;const _0x26c048=_0x1a241f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b71c2 of _0x26c048)for(const _0x303137 of _0x26c048)if(_0x1b71c2!=_0x303137&&!this['_areMergableCells'](_0x1b71c2,_0x303137))return!0x1;return!0x0;}['_areMergableCells'](_0x4a6a84,_0xd2d6e){const _0x24046f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x458cb7=this['editor']['model']['createRangeOn'](_0x4a6a84),_0x134a00=this['editor']['model']['createRangeOn'](_0xd2d6e),_0x1ed1e3=new Set(),_0x270ca5=new Set();for(const _0x4166ef of _0x24046f['getSuggestions']())if(('insertion'==_0x4166ef['type']||'deletion'==_0x4166ef['type']||'mergeTableCells'==_0x4166ef['subType'])&&_0x4166ef['isInContent']){for(const _0x666a8b of _0x4166ef['getRanges']())_0x666a8b['containsRange'](_0x458cb7,!0x0)&&_0x1ed1e3['add'](_0x4166ef['type']+':'+_0x4166ef['author']['id']),_0x666a8b['containsRange'](_0x134a00,!0x0)&&_0x270ca5['add'](_0x4166ef['type']+':'+_0x4166ef['author']['id']);}if(_0x1ed1e3['size']!=_0x270ca5['size'])return!0x1;for(const _0x555651 of _0x1ed1e3)if(!_0x270ca5['has'](_0x555651))return!0x1;return!0x0;}}class Dt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x380619=this['editor'];if(!_0x380619['plugins']['has']('TableEditing'))return;const _0x3d4511=_0x380619['locale'],_0x3afafb=_0x380619['plugins']['get']('TrackChangesEditing');_0x3afafb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3afafb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3afafb['registerBlockAttribute']('headingRows'),_0x3afafb['registerBlockAttribute']('headingColumns'),_0x3afafb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3d4511,'FORMAT_HEADER_ROW')),_0x3afafb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3d4511,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2657e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x461175=this['editor']['plugins']['get']('TableUtils'),_0x566a00=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x4c177b({showActiveMarker:_0xd7f615=!0x0,setDataAttribute:_0x2c71df=!0x0}={}){return(_0x3f0943,_0x4c0581,_0x5079ab)=>{const {type:_0x4d2d2e,id:_0x5b9f17}=_0x2657e0['_splitMarkerName'](_0x4c0581['markerName']);if(!_0x2657e0['hasSuggestion'](_0x5b9f17))return;const _0xbab4d0=_0x2657e0['getSuggestion'](_0x5b9f17),_0x46c9bf=_0xbab4d0['data'];if('formatBlock'!=_0xbab4d0['type']||!_0x46c9bf||'setTableColumnHeader'!=_0x46c9bf['commandName'])return;if(_0x4c0581['item'])return void _0x3f0943['stop']();if(!_0x5079ab['consumable']['consume'](_0x4c0581['markerRange'],_0x3f0943['name']))return;const _0x505481=_0x4c0581['markerRange']['start']['nodeAfter'],_0x28626c=_0x4c0581['markerRange']['end']['nodeBefore'],_0x27cad0=_0x505481['parent']['parent'],{column:_0x2f38d7}=_0x461175['getCellLocation'](_0x505481),{column:_0x1d0dcc}=_0x461175['getCellLocation'](_0x28626c);for(let _0x260a95=_0x2f38d7;_0x260a95<=_0x1d0dcc;_0x260a95++){const _0x274c9e=_0x461175['createTableWalker'](_0x27cad0,{'column':_0x260a95,'includeAllSlots':!0x1});for(const _0x302e1c of _0x274c9e){const _0x480a60=_0x302e1c['cell'],_0x587a8e=_0x5079ab['mapper']['toViewElement'](_0x480a60);_0x5079ab['writer']['addClass']('ck-suggestion-marker-'+_0x4d2d2e,_0x587a8e),_0x2c71df&&_0x5079ab['writer']['setAttribute']('data-suggestion',_0x5b9f17,_0x587a8e),_0x5079ab['mapper']['bindElementToMarker'](_0x587a8e,_0x4c0581['markerName']),_0xd7f615&&(_0x2657e0['activeMarkers']['includes'](_0x4c0581['markerName'])?_0x5079ab['writer']['addClass']('ck-suggestion-marker--active',_0x587a8e):_0x5079ab['writer']['removeClass']('ck-suggestion-marker--active',_0x587a8e));}}};}_0x2657e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x566a00),_0x2657e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x566a00),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c177b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8c36,_0x474a17,_0x349bc1)=>{_0x349bc1['options']['showSuggestionHighlights']&&_0x4c177b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4c8c36,_0x474a17,_0x349bc1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1061de,_0x4063f5,_0x192a80)=>{const {type:_0x1ea981,id:_0x48895e}=_0x2657e0['_splitMarkerName'](_0x4063f5['markerName']);if(!_0x2657e0['hasSuggestion'](_0x48895e))return;const _0x59c34b=_0x2657e0['getSuggestion'](_0x48895e),_0x58e199=_0x59c34b['data'];if('formatBlock'!=_0x59c34b['type']||!_0x58e199||'setTableColumnHeader'!=_0x58e199['commandName'])return;const _0x4f6e8c=_0x192a80['mapper']['markerNameToElements'](_0x4063f5['markerName']);if(_0x4f6e8c){for(const _0x4d7554 of _0x4f6e8c)_0x192a80['writer']['removeClass']('ck-suggestion-marker-'+_0x1ea981,_0x4d7554),_0x192a80['writer']['removeClass']('ck-suggestion-marker--active',_0x4d7554),_0x192a80['writer']['removeAttribute']('data-suggestion',_0x4d7554),_0x192a80['mapper']['unbindElementFromMarkerName'](_0x4d7554,_0x4063f5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f61d=this['editor'],_0x306e8d=_0x19f61d['locale'];function _0x55269f(_0x1b254b){return{'type':'format','content':o(_0x306e8d,'*Format:*\x20%0',_0x1b254b)};}_0x19f61d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475899=>{if('formatBlock'!=_0x475899['type'])return;const {data:_0x30298e}=_0x475899;if(_0x30298e){if('setTableRowHeader'==_0x30298e['commandName']){const _0x3e0b46=_0x30298e['commandParams'][0x0]['forceValue'];return _0x55269f(o(_0x306e8d,_0x3e0b46?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x30298e['commandName']){const _0x27b7ea=_0x30298e['commandParams'][0x0]['forceValue'];return _0x55269f(o(_0x306e8d,_0x27b7ea?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x1bca86{['afterInit'](){const _0xf2bf5=this['editor'],_0x364c6a=_0xf2bf5['locale'],_0x461035=_0xf2bf5['plugins']['get']('TrackChangesEditing');function _0x42f40c(_0x5527a8){return{'type':'format','content':''+o(_0x364c6a,'*Set\x20table\x20type:*\x20%0',_0x5527a8)};}_0xf2bf5['plugins']['has']('TableLayout')&&(_0x461035['enableCommand']('insertTableLayout'),_0x461035['enableDefaultAttributesIntegration']('tableType'),_0x461035['registerBlockAttribute']('tableType'),_0x461035['descriptionFactory']['registerElementLabel'](_0x18e098=>_0x18e098['is']('element','table')&&'layout'===_0x18e098['getAttribute']('tableType'),_0x59408a=>o(_0x364c6a,'ELEMENT_LAYOUT_TABLE',_0x59408a)),_0x461035['descriptionFactory']['registerDescriptionCallback'](_0x336f20=>{const {data:_0x286c44}=_0x336f20;if(_0x286c44&&'tableType'==_0x286c44['key'])switch(_0x286c44['newValue']){case'layout':return _0x42f40c(o(_0x364c6a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x42f40c(o(_0x364c6a,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Oe['map'](_0xcd66ff=>[_0xcd66ff,null]));class Bt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0x1d687c=this['editor'];if(!_0x1d687c['plugins']['has']('TableClipboard'))return;const _0x3d395a=_0x1d687c['plugins']['get']('TrackChangesEditing'),_0x4cd50f=_0x1d687c['plugins']['get']('TableUtils'),_0x310633=_0x1d687c['plugins']['get']($t),_0x1dc7ec=_0x1d687c['plugins']['get']('TableClipboard'),_0x337d9b=_0x1d687c['plugins']['get']('TableSelection'),_0x1b5e2b=_0x1d687c['plugins']['get'](_0x23c76d);_0x310633['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d687c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d687c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x281bd2=null,_0x843824=!0x1;_0x1b5e2b['on']('contentInsertion',(_0x5a3ff6,_0x186506)=>{_0x843824='paste'===_0x186506['method'];}),_0x1d687c['model']['on']('insertContent',(_0x167320,_0x482dd2)=>{if(!_0x843824&&null===_0x337d9b['getSelectedTableCells']())return;const [_0x15d62d,_0x4df83e]=_0x482dd2,_0x5f238c=_0x482dd2[_0x482dd2['length']-0x1];_0x5f238c&&_0x5f238c['forceDefaultExecution']||_0x3d395a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x479770,_0x3e7e88,_0x36c8e7,_0x5e17a2,_0x64b2f){if(_0x3e7e88&&!_0x3e7e88['is']('documentSelection'))return!0x1;const _0x3334e3=_0x64b2f['getTableIfOnlyTableInContent'](_0x479770,_0x36c8e7);if(!_0x3334e3||!He(_0x3334e3,void 0x0,_0x5e17a2))return!0x1;const _0x5069ae=_0x5e17a2['getSelectionAffectedTableCells'](_0x36c8e7['document']['selection']);if(!_0x5069ae['length'])return!0x1;const _0x557f10=_0x5069ae[0x0]['findAncestor']('table'),_0x1a94ad=_0x5e17a2['getRowIndexes'](_0x5069ae),_0x1d913c=_0x5e17a2['getColumnIndexes'](_0x5069ae),_0x2f5343={'startRow':_0x1a94ad['first'],'endRow':_0x1a94ad['last'],'startColumn':_0x1d913c['first'],'endColumn':_0x1d913c['last']};return 0x1==_0x5069ae['length']&&(_0x2f5343['endRow']+=_0x5e17a2['getRows'](_0x3334e3)-0x1,_0x2f5343['endColumn']+=_0x5e17a2['getColumns'](_0x3334e3)-0x1),He(_0x557f10,_0x2f5343,_0x5e17a2);}(_0x15d62d,_0x4df83e,_0x1d687c['model'],_0x4cd50f,_0x1dc7ec)&&(_0x167320['stop'](),_0x281bd2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d687c['model']['change'](()=>{_0x1d687c['model']['insertContent'](_0x482dd2[0x0],_0x482dd2[0x1],_0x482dd2[0x2],{'forceDefaultExecution':!0x0});const _0x30cbc3=_0x573f80(),{rowInsertionRanges:_0xe0361,columnInsertionRanges:_0x503403,insertionRanges:_0x54bc1d,deletionRanges:_0x465dc2,cells:_0x459d05}=_0x281bd2;_0xe0361['length']&&_0x3d395a['markMultiRangeInsertion'](_0xe0361,'tablePasteRow',{'tablePasteChainId':_0x30cbc3}),_0x503403['length']&&_0x3d395a['markMultiRangeInsertion'](_0x503403,'tablePasteColumn',{'tablePasteChainId':_0x30cbc3}),_0x54bc1d['length']&&(_0x3d395a['markMultiRangeInsertion'](_0x54bc1d,'tablePaste',{'tablePasteChainId':_0x30cbc3,'skipNestingCheck':!0x0}),_0x54bc1d['forEach'](_0x56a26e=>_0x56a26e['detach']?.())),_0x465dc2['length']&&(_0x3d395a['markMultiRangeDeletion'](_0x465dc2,'tablePaste',{'tablePasteChainId':_0x30cbc3,'skipNestingCheck':!0x0}),_0x465dc2['forEach'](_0x150dc4=>_0x150dc4['detach']?.()));const _0x5ebde5=_0x3d395a['markMultiRangeBlockFormat'](_0x459d05['map'](({element:_0x2a9a34})=>_0x2a9a34),{'formatGroupId':_0x573f80()},[],'tablePasteCell',{'tablePasteChainId':_0x30cbc3});if(_0x5ebde5){const _0x3333db=_0x5ebde5['getMarkers'](),_0x467f8c=[];for(const {element:_0x46fa5a,attributes:_0x39bd1b}of _0x459d05){if(!_0x39bd1b)continue;const _0x45418e=_0x1d687c['model']['createRangeOn'](_0x46fa5a),_0x3f3648=_0x3333db['find'](_0x222f33=>_0x222f33['getRange']()['isEqual'](_0x45418e));_0x3f3648&&_0x467f8c['push']([_0x3f3648['name'],_0x39bd1b]);}_0x467f8c['length']&&_0x5ebde5['setAttribute']('markerAttributes',Object['fromEntries'](_0x467f8c));}_0x281bd2=null;}));},{'priority':_0x163a1e['high']+0xa}),_0x1b5e2b['on']('contentInsertion',()=>{_0x843824=!0x1;},{'priority':'lowest'}),_0x1d687c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30238a,_0x4932b0)=>{const [_0x21263e,_0x32e9ae,,_0x2a93dd]=_0x4932b0;if(!_0x281bd2)return;_0x30238a['stop']();const _0x42b993=_0x21263e['cell'],_0x10a0b2=_0x32e9ae,_0x4f2931=De(_0x42b993),_0xb3a609=De(_0x10a0b2);_0x30238a['return']=_0x42b993;let _0x2b8130=null,_0x143ec3=null;if(_0xb3a609||_0x4f2931){if(_0x4f2931&&!_0xb3a609){_0x2a93dd['remove'](_0x42b993['getChild'](0x0));for(const _0x1c9d22 of Array['from'](_0x10a0b2['getChildren']()))_0x2a93dd['insert'](_0x1c9d22,_0x42b993,'end');const _0x4fe68a=_0x281bd2['rowInsertionIndexes']['includes'](_0x21263e['row']),_0x3fed7c=_0x281bd2['columnInsertionIndexes']['includes'](_0x21263e['column']);_0x4fe68a||_0x3fed7c||(_0x2b8130=_0x35191f['fromRange'](_0x2a93dd['createRangeIn'](_0x42b993)));}else _0xb3a609&&!_0x4f2931&&(_0x143ec3=_0x2a93dd['createRangeIn'](_0x42b993));}else{const _0x5b7f98=_0x2a93dd['createElement']('tableCellSuggestion'),_0x65890=_0x2a93dd['createElement']('tableCellSuggestion');_0x2a93dd['wrap'](_0x2a93dd['createRangeIn'](_0x42b993),_0x65890),_0x2a93dd['insert'](_0x5b7f98,_0x42b993,0x0);for(const _0x4f59c1 of Array['from'](_0x10a0b2['getChildren']()))_0x2a93dd['insert'](_0x4f59c1,_0x5b7f98,'end');_0x2b8130=_0x35191f['fromRange'](_0x2a93dd['createRangeOn'](_0x5b7f98)),_0x143ec3=_0x35191f['fromRange'](_0x2a93dd['createRangeOn'](_0x65890));}const _0x3c23ae=Array['from'](_0x10a0b2['getAttributes']())['filter'](([_0x3b45b6])=>Oe['includes'](_0x3b45b6));_0x281bd2['cells']['push']({'element':_0x42b993,'attributes':_0x3c23ae['length']?Object['fromEntries'](_0x3c23ae):null}),_0x2b8130&&_0x281bd2['insertionRanges']['push'](_0x2b8130),_0x143ec3&&_0x281bd2['deletionRanges']['push'](_0x143ec3);},{'priority':'high'}),_0x4cd50f['on']('insertColumns',(_0x46462a,_0x5b6205)=>{const [_0x13f63a,_0x4470cd={}]=_0x5b6205;if(!_0x281bd2)return;const _0x5e6976=_0x4470cd['at']||0x0,_0x4a7c55=_0x4470cd['columns']||0x1;_0x281bd2['columnInsertionIndexes']=new Array(_0x4a7c55)['fill'](_0x5e6976)['map']((_0x203cd7,_0x41a14c)=>_0x203cd7+_0x41a14c);for(const {cell:_0x5029df}of _0x4cd50f['createTableWalker'](_0x13f63a,{'startColumn':_0x5e6976,'endColumn':_0x5e6976+_0x4a7c55-0x1}))_0x281bd2['columnInsertionRanges']['push'](_0x1d687c['model']['createRangeOn'](_0x5029df));},{'priority':'low'}),_0x4cd50f['on']('insertRows',(_0x4b6bec,_0x250981)=>{const [_0x4f7a81,_0x55ac72={}]=_0x250981;if(!_0x281bd2)return;const _0x52810b=_0x55ac72['at']||0x0,_0x3a81ad=_0x55ac72['rows']||0x1;_0x281bd2['rowInsertionIndexes']=new Array(_0x3a81ad)['fill'](_0x52810b)['map']((_0x94e542,_0x2aadca)=>_0x94e542+_0x2aadca);for(const {cell:_0x43e553}of _0x4cd50f['createTableWalker'](_0x4f7a81,{'startRow':_0x52810b,'endRow':_0x52810b+_0x3a81ad-0x1}))_0x281bd2['rowInsertionRanges']['push'](_0x1d687c['model']['createRangeOn'](_0x43e553));},{'priority':'low'}),_0x3d395a['descriptionFactory']['registerDescriptionCallback'](_0x43360e=>{if(_0x43360e['subType']&&_0x43360e['subType']['startsWith']('tablePaste'))return _0x43360e['previous']?{}:{'type':'insertion','content':o(_0x1d687c['locale'],'*Replace\x20table\x20cells*')};});const _0x5aa5ce=()=>!0x1;for(const _0x2050be of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion',_0x2050be,'join',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('deletion',_0x2050be,'join',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2050be,'join',_0x5aa5ce);_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5aa5ce),_0x3d395a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x46fb4e,_0x13c64d,_0x3d5e7b)=>{const _0x9d4424=_0x46fb4e['map'](_0x51d2ce=>_0x51d2ce['getContainedElement']())['filter'](_0xb4c432=>_0xb4c432),_0x4d174d=new Map(_0x9d4424['map'](_0x143320=>[_0x143320,null]));if(_0x281bd2){for(const {element:_0xa19305,attributes:_0xee88e3}of _0x281bd2['cells'])_0xee88e3&&_0x4d174d['set'](_0xa19305,_0xee88e3);}else{if(_0x3d5e7b&&_0x3d5e7b['markerAttributes'])for(const [_0xdc448b,_0x35542d]of Object['entries'](_0x3d5e7b['markerAttributes'])){const _0x38e5d2=_0x1d687c['model']['markers']['get'](_0xdc448b),_0x143392=_0x38e5d2?_0x38e5d2['getRange']()['getContainedElement']():null;_0x143392&&_0x4d174d['set'](_0x143392,_0x35542d);}}_0x1d687c['model']['change'](_0x4e3b05=>{for(const [_0x2320e8,_0x23d863]of _0x4d174d)_0x4e3b05['setAttributes']({...Ue,..._0x23d863},_0x2320e8);});});const _0x547afc=(_0x2b3f34,_0x370d7e)=>{_0x3d395a['_suggestionFactory']['registerCustomCallback'](_0x2b3f34,'tablePaste',_0x370d7e,(_0x258303,_0x587dc4,_0x3390b8)=>{_0x1d687c['model']['change'](_0x47ffcf=>{const _0x31c263=[];for(const _0x83e99f of _0x258303){const _0x198501=_0x83e99f['start']['nodeAfter'];_0x198501['is']('element','tableCellSuggestion')&&_0x31c263['push'](_0x198501);}_0x3d395a['_suggestionFactory']['getSuggestionCallback'](_0x2b3f34,null,_0x370d7e)(_0x258303,_0x587dc4,_0x3390b8);for(const _0x5a4d40 of _0x31c263)'$graveyard'!=_0x5a4d40['root']['rootName']&&_0x47ffcf['unwrap'](_0x5a4d40);});});};_0x547afc('insertion','accept'),_0x547afc('insertion','discard'),_0x547afc('deletion','accept'),_0x547afc('deletion','discard'),_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xff0cf=>{const _0x107436=_0xff0cf['map'](_0x284f4b=>_0x284f4b['getContainedElement']()),_0x2b2327=_0x107436[0x0]['findAncestor']('table'),{minRow:_0x2dd51a,maxRow:_0x20ae59}=_0x310633['_getCoordsForCells'](_0x107436);_0x4cd50f['removeRows'](_0x2b2327,{'at':_0x2dd51a,'rows':_0x20ae59-_0x2dd51a+0x1});}),_0x3d395a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4abe51=>{const _0x13c906=_0x4abe51['map'](_0x32e119=>_0x32e119['getContainedElement']()),_0x42705a=_0x13c906[0x0]['findAncestor']('table'),{minColumn:_0x4f60aa,maxColumn:_0x554cec}=_0x310633['_getCoordsForCells'](_0x13c906);_0x4cd50f['removeColumns'](_0x42705a,{'at':_0x4f60aa,'columns':_0x554cec-_0x4f60aa+0x1});});const _0x1dbcfd=(_0x7a53bb,_0x242206)=>{if(!_0x242206['subType']||!_0x242206['subType']['startsWith']('tablePaste'))return;const _0x3552ce=_0x242206['attributes']['tablePasteChainId'],_0x3f482f=_0x3d395a['getSuggestions']()['filter'](_0x744700=>_0x744700['isInContent']&&_0x744700['attributes']&&_0x744700['attributes']['tablePasteChainId']==_0x3552ce);_0x3f482f['length']&&_0x242206['getAllAdjacentSuggestions']()['length']!=_0x3f482f['length']&&_0x3f482f['reduce']((_0xf4df59,_0x2035b8)=>(_0xf4df59['next']=_0x2035b8,_0x2035b8['previous']=_0xf4df59,_0x2035b8));};function _0x26ea6d(_0x11c8a7,_0x347dcb=!0x0){const {id:_0x4e2462,authorId:_0x373189}=_0x3d395a['_splitMarkerName'](_0x11c8a7['markerName']),_0x78c8b7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x47e34d=_0x3d395a['activeMarkers']['includes'](_0x11c8a7['markerName']);return _0x47e34d&&_0x78c8b7['push']('ck-suggestion-marker--active'),{'classes':_0x78c8b7,'attributes':{'data-suggestion':_0x4e2462,'data-author-id':_0x373189},'priority':_0x47e34d&&_0x347dcb?0xbc2:0xbb8};}_0x3d395a['on']('suggestionLoaded',_0x1dbcfd,{'priority':'high'}),_0x3d395a['on']('suggestionUnloaded',_0x1dbcfd,{'priority':'high'}),_0x1d687c['model']['document']['registerPostFixer'](()=>{let _0x1a8d3f=!0x1;const _0x29898b=Array['from'](_0x1d687c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d0604,data:_0x3575e7}of _0x29898b){const {group:_0x20f017,type:_0x2b373c,id:_0x11ad43}=_0x3d395a['_splitMarkerName'](_0x1d0604);if('suggestion'!=_0x20f017||'deletion'!=_0x2b373c||_0x3575e7['oldRange'])continue;if(!_0x3d395a['hasSuggestion'](_0x11ad43))continue;const _0x486c74=_0x3d395a['getSuggestion'](_0x11ad43)['getRanges'](),_0x55d2f4=_0x1d687c['plugins']['get']('Users')['me'];for(const _0x29c1ec of _0x3d395a['getSuggestions']()){if(!_0x29c1ec['isInContent']||_0x29c1ec['author']!=_0x55d2f4)continue;if('formatBlock'!=_0x29c1ec['type']||'tablePasteCell'!=_0x29c1ec['subType'])continue;if(_0x29c1ec['getRanges']()['every'](_0x2416fe=>_0x486c74['some'](_0x447382=>_0x447382['containsRange'](_0x2416fe,!0x0)))){for(const _0x4632be of _0x29c1ec['getAllAdjacentSuggestions']())_0x4632be['isInContent']&&(_0x4632be['discard'](),_0x1a8d3f=!0x0);}}}return _0x1a8d3f;}),_0x1d687c['model']['document']['registerPostFixer'](_0x357f76=>{const _0x406bdd=_0x1d687c['commands']['get']('redo');if(!_0x406bdd||!_0x406bdd['_createdBatches']['has'](_0x357f76['batch']))return!0x1;let _0x2d439d=!0x1;const _0x1fec14=_0x1d687c['plugins']['get']('Users')['me'],_0x102f9d=_0x1d687c['model']['document']['differ']['getChanges'](),_0x4c9208=Array['from'](_0x1d687c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x95574e,data:_0x1c9e98})=>{const {group:_0x3a5ae6,subType:_0x25adf3,authorId:_0x943718}=_0x3d395a['_splitMarkerName'](_0x95574e);return'suggestion'==_0x3a5ae6&&'tablePaste'==_0x25adf3&&_0x943718==_0x1fec14['id']&&!_0x1c9e98['oldRange'];});for(const _0x1f5a64 of _0x102f9d){if('insert'!=_0x1f5a64['type']||'tableCellSuggestion'!=_0x1f5a64['name']||0x1!=_0x1f5a64['length'])continue;const _0x1b1a12=_0x357f76['createRange'](_0x1f5a64['position'],_0x1f5a64['position']['getShiftedBy'](0x1));if(!_0x4c9208['find'](({data:_0x378971})=>_0x378971['newRange']['isEqual'](_0x1b1a12))){for(const {name:_0x4c7245,data:_0x2c7917}of _0x4c9208)if(_0x1b1a12['containsRange'](_0x2c7917['newRange'])){_0x357f76['updateMarker'](_0x4c7245,{'range':_0x1b1a12}),_0x2d439d=!0x0;break;}}}return _0x2d439d;}),_0x1d687c['model']['document']['registerPostFixer'](_0x57f674=>{let _0x2217f8=!0x1;const _0x5420d7=_0x1d687c['plugins']['get']('Users')['me'],_0x5f3e1c=_0x3d395a['getSuggestions']()['filter'](_0x32d38e=>_0x32d38e['isInContent']&&_0x32d38e['author']==_0x5420d7),_0x40e931=new Set(),_0x4da636=new Set();for(const _0xff5e57 of _0x5f3e1c)if('tablePaste'==_0xff5e57['subType'])for(const _0x5ce1a4 of _0xff5e57['getMarkers']()){const _0x1de570=_0x5ce1a4['getRange']()['getContainedElement']();if(_0x1de570){if(_0x1de570['is']('element','tableCellSuggestion')&&De(_0x1de570)){_0xff5e57['removeMarker'](_0x5ce1a4['name']),_0x40e931['add'](_0x1de570),_0x2217f8=!0x0;const _0x1cf684=_0x1de570['nextSibling'],_0x52d0ef=_0x1de570['previousSibling'],_0x134aef=_0x1cf684&&_0x1cf684['is']('element','tableCellSuggestion'),_0xf7c02b=_0x52d0ef&&_0x52d0ef['is']('element','tableCellSuggestion');_0x134aef&&!_0x40e931['has'](_0x1cf684)&&_0x4da636['add'](_0x1cf684),_0xf7c02b&&!_0x40e931['has'](_0x52d0ef)&&_0x4da636['add'](_0x52d0ef);}else _0x1de570['is']('element','paragraph')&&_0x1de570['isEmpty']&&(_0xff5e57['removeMarker'](_0x5ce1a4['name']),_0x2217f8=!0x0);}}else{if('tablePasteCell'==_0xff5e57['subType']){if(!_0xff5e57['attributes']||!_0xff5e57['attributes']['tablePasteChainId'])continue;const _0x69be36=_0xff5e57['attributes']['markerAttributes'];if(_0x69be36&&Object['keys'](_0x69be36)['length'])continue;const _0x35487f=_0xff5e57['attributes']['tablePasteChainId'];let _0x33405c=!0x0,_0x118e85=!0x0;for(const _0x2fc7fc of _0x5f3e1c)if(_0x2fc7fc['subType']&&_0x2fc7fc['subType']['startsWith']('tablePaste')){if(!_0x2fc7fc['attributes']['tablePasteChainId']){_0x118e85=!0x1;break;}if(_0x2fc7fc['id']!=_0xff5e57['id']&&_0x2fc7fc['attributes']['tablePasteChainId']==_0x35487f){_0x33405c=!0x1;break;}}_0x118e85&&_0x33405c&&(_0xff5e57['removeMarkers'](),_0x2217f8=!0x0);}}for(const _0x452f49 of _0x40e931)_0x57f674['remove'](_0x452f49);for(const _0x37d8f0 of _0x4da636)_0x57f674['unwrap'](_0x37d8f0);return _0x2217f8;}),_0x1d687c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d6ad4=>_0x26ea6d(_0x2d6ad4),'converterPriority':'high'}),_0x1d687c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2654da,_0x5a3615)=>_0x5a3615['options']['showSuggestionHighlights']?_0x26ea6d(_0x2654da,!0x1):null,'converterPriority':'high'});const _0x36aa81=_0x1d687c['editing']['view'];this['listenTo'](_0x36aa81['document'],'clipboardOutput',(_0x119bed,_0x1ed5f6)=>{const _0x1c9536=[];for(const _0x34aeb7 of _0x36aa81['createRangeIn'](_0x1ed5f6['content'])['getItems']())_0x34aeb7['is']('element','suggestion-td')&&_0x1c9536['push'](_0x34aeb7);_0x36aa81['change'](_0x2381b7=>{for(const _0x3fef89 of _0x1c9536)_0x2381b7['move'](_0x2381b7['createRangeIn'](_0x3fef89),_0x2381b7['createPositionBefore'](_0x3fef89)),_0x2381b7['remove'](_0x3fef89);});});}}function De(_0x5b95d6){if(_0x5b95d6['isEmpty'])return!0x0;const _0x225a33=_0x5b95d6['getChild'](0x0);return _0x225a33['is']('element','paragraph')&&_0x225a33['isEmpty'];}function He(_0x13325d,_0x576e6c={},_0x51416f){for(const {isAnchor:_0x163741,cellHeight:_0x8a9879,cellWidth:_0x1dfbfb}of _0x51416f['createTableWalker'](_0x13325d,{'includeAllSlots':!0x0,..._0x576e6c}))if(!_0x163741||0x1!=_0x8a9879||0x1!=_0x1dfbfb)return!0x1;return!0x0;}class Tt extends _0x1bca86{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4980eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4980eb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4980eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4980eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4980eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4980eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4980eb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x24da95,_0x1e7d5e){const _0x16761f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e50d0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4efdc6=_0x1e7d5e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x336ff4=_0x5e50d0['getColumnGroupElement'](_0x4efdc6);let _0x49051a=_0x336ff4?_0x5e50d0['getTableColumnsWidths'](_0x336ff4):null,_0x3199b5=_0x4efdc6['getAttribute']('tableWidth')||null;const _0x422763=_0x1e7d5e['tableWidth']||_0x3199b5,_0x388380=_0x1e7d5e['columnWidths']||_0x49051a,_0x54b26a=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a219a of _0x16761f['getSuggestions']()){const _0x31f0b5=_0x5a219a['getContainedElement']();if('resizeTable'===_0x5a219a['subType']&&_0x31f0b5===_0x4efdc6){_0x5a219a['author']!==_0x54b26a&&_0x5a219a['discard']();const _0x33c8c6=_0x5a219a['data']['commandParams'];_0x3199b5=_0x33c8c6[0x0]['tableWidth'],_0x49051a=_0x33c8c6[0x0]['columnWidths'];break;}}_0x24da95({'table':_0x4efdc6,'tableWidth':_0x422763,'columnWidths':_0x388380}),_0x16761f['markBlockFormat'](_0x4efdc6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3199b5,'columnWidths':_0x49051a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58ade4){if('formatBlock'!=_0x58ade4['type']&&'formatInline'!=_0x58ade4['type'])return;const {data:_0x3eea26}=_0x58ade4;if(_0x3eea26&&'resizeTable'===_0x3eea26['formatGroupId']){const _0x1f3623='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f3623)};}}}class Ot extends _0x1bca86{['afterInit'](){const _0x10429b=this['editor'];_0x10429b['plugins']['has']('Template')&&_0x10429b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x1bca86{['afterInit'](){const _0x2355e0=this['editor'];if(!_0x2355e0['commands']['get']('insertTableOfContents'))return;_0x2355e0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x281a9e=_0x2355e0['plugins']['get']('TrackChangesEditing'),_0x3830d1=_0x2355e0['locale'];_0x281a9e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x657cc9=>o(_0x3830d1,'ELEMENT_TABLE_OF_CONTENTS',_0x657cc9));}}class Et extends _0x1bca86{['afterInit'](){const _0x428598=this['editor'];if(!_0x428598['plugins']['has']('Title'))return;const _0x2d79b9=_0x428598['plugins']['get']('TrackChangesEditing');_0x2d79b9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x428598['locale'],'ELEMENT_TITLE')),_0x428598['model']['document']['registerPostFixer'](_0x209696=>{let _0x145f5d=!0x1;const _0x21e990=Array['from'](_0x428598['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x303d3a,data:_0x1bb21a}of _0x21e990){const {group:_0x188197}=_0x2d79b9['_splitMarkerName'](_0x303d3a);if('suggestion'!==_0x188197||!_0x1bb21a['newRange'])continue;const _0x21e92f=_0x1bb21a['newRange'],_0x39dfab=_0x21e92f['end']['nodeBefore'];if(!_0x39dfab||!_0x39dfab['is']('element','title-content'))continue;if(!_0x21e92f['start']['isTouching'](_0x21e92f['end']))continue;const _0x22ae73=_0x428598['model']['schema']['getNearestSelectionRange'](_0x21e92f['end'],'forward');if(_0x22ae73&&_0x22ae73['isCollapsed']){const _0x570a30=_0x209696['createRange'](_0x21e92f['start'],_0x22ae73['start']);_0x570a30['isEqual'](_0x21e92f)||(_0x209696['updateMarker'](_0x303d3a,{'range':_0x570a30}),_0x145f5d=!0x0);}_0x145f5d||(_0x209696['removeMarker'](_0x303d3a),_0x145f5d=!0x0);}return _0x145f5d;});}}class Rt extends _0x1bca86{['afterInit'](){const _0xb0687b=this['editor'],_0x2e4d91=_0xb0687b['plugins']['get']('TrackChangesEditing');_0xb0687b['plugins']['has']('Uploadcare')&&(_0x2e4d91['enableCommand']('uploadcare'),_0xb0687b['plugins']['has']('UploadcareImageEdit')&&(_0x2e4d91['enableCommand']('uploadcareImageEdit'),_0x2e4d91['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2e4d91['registerBlockAttribute']('uploadcareImageId'),_0x2e4d91['descriptionFactory']['registerDescriptionCallback'](_0xd1f184=>{if('attribute'!=_0xd1f184['type'])return;const {data:_0xe60c55}=_0xd1f184;return _0xe60c55&&'uploadcareImageId'==_0xe60c55['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x1bca86{['afterInit'](){const _0x111e6a=this['editor'],_0x1aa347=_0x111e6a['plugins']['get']('TrackChangesEditing');_0x111e6a['plugins']['has']('UndoEditing')&&(_0x1aa347['enableCommand']('undo'),_0x1aa347['enableCommand']('redo'));}}class Vt extends _0x1bca86{static get['requires'](){return[$t];}['afterInit'](){const _0xbe2d42=this['editor'];if(!_0xbe2d42['plugins']['has']('TableCaptionEditing'))return;_0xbe2d42['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x1bca86{['tableProperties'];['tableCellProperties'];constructor(_0x21070e){super(_0x21070e),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 _0x330516=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51dcb0 of this['tableProperties'])_0x330516['enableCommand'](_0x51dcb0,(_0x3db702,_0x116815)=>{const _0x557d24=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51dcb0,[_0x557d24],this['tableProperties'],'tableProperties',_0x3db702,_0x116815);});_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x330516['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a258a,_0xf3bbc0)=>this['handleDiscardAction'](this['tableProperties'],_0x3a258a,_0xf3bbc0)),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x206099 of this['tableCellProperties'])_0x330516['enableCommand'](_0x206099,(_0x47a33a,_0x21f95e)=>{const _0x183086=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x206099,_0x183086,this['tableCellProperties'],'tableCellProperties',_0x47a33a,_0x21f95e);});_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x330516['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x477dd1,_0x40d5e3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x477dd1,_0x40d5e3)),_0x330516['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x330516['descriptionFactory']['registerDescriptionCallback'](_0x1c2b1d=>this['handleSuggestionDescription'](_0x1c2b1d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5e32ea,_0xac98a2,_0x454771,_0x2aad9d,_0x2efb0f,_0x581f61){const _0x2a6c72=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x581f61['batch'],()=>{for(const _0x9c82bf of _0xac98a2){if(this['_getSuggestion'](_0x9c82bf,_0x2aad9d))_0x2efb0f(_0x581f61);else{const _0x58cd69={};for(const _0x54c5cf of _0x454771){const _0x4747e3=_0x9c82bf['getAttribute'](_0x54c5cf);void 0x0!==_0x4747e3&&(_0x58cd69[_0x54c5cf]=_0x4747e3);}_0x2efb0f(_0x581f61),_0x2a6c72['markBlockFormat'](_0x9c82bf,{'commandParams':[_0x58cd69]},[],_0x2aad9d);}}});}['handleDiscardAction'](_0x3aaee4,_0x1dec0b,_0x2eeda4){const _0x3cea6a=_0x1dec0b[0x0]['start']['nodeAfter'],_0x1a94be=_0x2eeda4['commandParams'][0x0];this['editor']['model']['change'](_0x23cb27=>{for(const _0x106f33 of _0x3aaee4)void 0x0!==_0x1a94be[_0x106f33]?_0x23cb27['setAttribute'](_0x106f33,_0x1a94be[_0x106f33],_0x3cea6a):_0x23cb27['removeAttribute'](_0x106f33,_0x3cea6a);});}['handleSuggestionDescription'](_0x1966b0){if(_0x1966b0['data'])switch(_0x1966b0['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'](_0x181530,_0x224479){const _0x1c09b5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e6b87 of _0x1c09b5['getSuggestions']({'skipNotAttached':!0x0})){const _0xae767e=_0x1e6b87['getContainedElement']();if(_0x1e6b87['subType']===_0x224479&&_0xae767e===_0x181530)return _0x1e6b87;}return null;}['_registerTablePropertiesAttributes'](){const _0xbc966a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49d63c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x42fbcd of _0x49d63c){const _0x35a3b2=_0x42fbcd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xbc966a['registerBlockAttribute'](_0x42fbcd),_0xbc966a['descriptionFactory']['registerAttributeLabel'](_0x42fbcd,o(this['editor']['locale'],'FORMAT_'+_0x35a3b2));}}}class Pt extends _0x1bca86{['afterInit'](){const _0x50a856=this['editor'];if(!_0x50a856['plugins']['has']('LineHeight'))return;const _0x174488=_0x50a856['plugins']['get']('TrackChangesEditing'),_0x1f4680=_0x50a856['locale'];_0x174488['enableDefaultAttributesIntegration']('lineHeight'),_0x174488['registerBlockAttribute']('lineHeight'),_0x174488['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1f4680,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x1bca86{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x52e77f,_0x453176,_0x56191a,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14f295){super(_0x14f295),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c20d3,_0x6d3fbd,_0x5d6f38,_0x4f769b)=>{this['_model']['change'](()=>{for(const _0x32e69a of[..._0x4f769b,..._0x5d6f38])this['_model']['markers']['has'](_0x32e69a)&&_0x14f295['editing']['reconvertMarker'](_0x32e69a);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14f295['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(),_0x14f295['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14f295['config']['get']('trackChanges.trackFormatChanges'),_0x14f295['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14f295['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14f295,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xf89b18=this['editor'],_0x1b5d50=(_0x369288,_0x4e9827)=>{if('attribute'!=_0x369288)return'ck-suggestion-marker-'+_0x369288;const _0x42a867=_0x4e9827['split']('|')[0x0];return this['_isBlockAttribute'](_0x42a867)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xf89b18['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5879aa=>{const {id:_0x332787,authorId:_0x30eeea,type:_0x11f60c,subType:_0x55f45f}=this['_splitMarkerName'](_0x5879aa['markerName']),_0x430e6b=['ck-suggestion-marker',_0x1b5d50(_0x11f60c,_0x55f45f)];let _0x5a85c1=0xbb8;return this['activeMarkers']['includes'](_0x5879aa['markerName'])&&(_0x430e6b['push']('ck-suggestion-marker--active'),_0x5a85c1=0xbc2),'deletion'==_0x11f60c&&(_0x5a85c1+=0x5),{'classes':_0x430e6b,'attributes':{'data-suggestion':_0x332787,'data-author-id':_0x30eeea},'priority':_0x5a85c1};}}),_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x3c660b=>{_0x3c660b['on']('addMarker:suggestion',(_0x19711f,_0xc58395,_0x4dd00c)=>{if(!_0x4dd00c['options']['showSuggestionHighlights'])return;const _0x36ea13=_0xc58395['item'];if(!_0x36ea13)return;const _0x103044=_0x4dd00c['mapper']['toViewElement'](_0x36ea13);_0xf89b18['model']['schema']['isObject'](_0x36ea13)&&_0x103044&&!_0x103044['getCustomProperty']('widget')&&_0x103044['is']('containerElement')&&_0x4cd134(_0x103044,_0x4dd00c['writer']);},{'priority':'high'});}),_0xf89b18['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b9c22,_0x3cf4bf)=>{if(!_0x3cf4bf['options']['showSuggestionHighlights'])return null;const {id:_0x40b750,authorId:_0x2c08bb,type:_0x3fc705,subType:_0x58802a}=this['_splitMarkerName'](_0x4b9c22['markerName']);return{'classes':['ck-suggestion-marker',_0x1b5d50(_0x3fc705,_0x58802a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x40b750,'data-author-id':_0x2c08bb}};}});const _0x248a4b=({showActiveMarkers:_0x446410=!0x0,isAttributeSuggestion:_0x563008=!0x1}={})=>(_0x15526b,_0x29c557,_0x5e4032)=>{if(!_0x29c557['item'])return;const {id:_0xeca032,authorId:_0x2d25ca,subType:_0x28c71c}=this['_splitMarkerName'](_0x29c557['markerName']);if(_0x563008){const _0x13bcfe=se(_0x28c71c);if(!this['_isBlockAttribute'](_0x13bcfe))return;}if(_0x29c557['item']['is']('selection'))return void _0x5e4032['consumable']['consume'](_0x29c557['item'],_0x15526b['name']);const _0x4a9b22=_0x5e4032['mapper']['toViewElement'](_0x29c557['item']);if(_0x29c557['item']['is']('element')&&_0xf89b18['model']['schema']['isBlock'](_0x29c557['item'])&&!_0x4a9b22['getCustomProperty']('addHighlight')){_0x5e4032['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4a9b22),_0x5e4032['writer']['setAttribute']('data-suggestion',_0xeca032,_0x4a9b22),_0x5e4032['writer']['setAttribute']('data-author-id',_0x2d25ca,_0x4a9b22),_0x5e4032['mapper']['bindElementToMarker'](_0x4a9b22,_0x29c557['markerName']),_0x446410&&(this['activeMarkers']['includes'](_0x29c557['markerName'])?_0x5e4032['writer']['addClass']('ck-suggestion-marker--active',_0x4a9b22):_0x5e4032['writer']['removeClass']('ck-suggestion-marker--active',_0x4a9b22));for(const _0x451762 of _0xf89b18['model']['createRangeIn'](_0x29c557['item'])['getItems']())_0x5e4032['consumable']['consume'](_0x451762,_0x15526b['name']);_0x5e4032['consumable']['consume'](_0x29c557['item'],_0x15526b['name']);}};_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x203609=>{_0x203609['on']('addMarker:suggestion:formatBlock',(_0x3f5efd,_0x34e32f,_0x194afe)=>{_0x194afe['options']['showSuggestionHighlights']&&_0x248a4b({'showActiveMarkers':!0x1})(_0x3f5efd,_0x34e32f,_0x194afe);},{'priority':'highest'});}),_0xf89b18['conversion']['for']('dataDowncast')['add'](_0x8b6ee7=>{_0x8b6ee7['on']('addMarker:suggestion:attribute',(_0x12cba7,_0x5809ae,_0x36c206)=>{_0x36c206['options']['showSuggestionHighlights']&&_0x248a4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x12cba7,_0x5809ae,_0x36c206);},{'priority':'highest'});}),_0xf89b18['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x503e25,_0xe1b856)=>{if(_0xe1b856['options']['showSuggestionHighlights']){const {id:_0x1f5e9e,authorId:_0x4c6d46}=this['_splitMarkerName'](_0x503e25);return _0x503e25['includes'](':split')||_0x503e25['includes'](':merge')?{'group':'suggestion','name':_0x503e25['substr'](0xb),'attributes':{'data-suggestion':_0x1f5e9e,'data-author-id':_0x4c6d46}}:null;}return{'group':'suggestion','name':_0x503e25['substr'](0xb)};}}),_0xf89b18['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45eeaf,{writer:_0x184e8f})=>{let _0x22ae16='suggestion:'+_0x45eeaf['getAttribute']('suggestion-type')+':'+_0x45eeaf['getAttribute']('id');return _0x45eeaf['getAttribute']('marker-count')&&(_0x22ae16+=':'+_0x45eeaf['getAttribute']('marker-count')),_0x184e8f['createElement']('$marker',{'data-name':_0x22ae16});}}),_0xf89b18['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x36e290=>{_0x36e290['on']('addMarker:suggestion:formatBlock',_0x248a4b(),{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x3c94c1=>{_0x3c94c1['on']('addMarker:suggestion:attribute',_0x248a4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x5aa321=>{_0x5aa321['on']('removeMarker:suggestion:formatBlock',(_0x5b8b52,_0x2fe20a,_0x5b0cf9)=>{const _0x1688c3=_0x5b0cf9['mapper']['markerNameToElements'](_0x2fe20a['markerName']);if(_0x1688c3){for(const _0x3be5f0 of _0x1688c3)_0x3be5f0['getCustomProperty']('addHighlight')||(_0x5b0cf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3be5f0),_0x5b0cf9['writer']['removeAttribute']('data-suggestion',_0x3be5f0),_0x5b0cf9['writer']['removeAttribute']('data-author-id',_0x3be5f0),_0x5b0cf9['mapper']['unbindElementFromMarkerName'](_0x3be5f0,_0x2fe20a['markerName']));}},{'priority':'high'});}),_0xf89b18['conversion']['for']('editingDowncast')['add'](_0x4626a5=>{_0x4626a5['on']('removeMarker:suggestion:attribute',(_0x22dbac,_0x34f600,_0x465deb)=>{const _0x196340=_0x465deb['mapper']['markerNameToElements'](_0x34f600['markerName']);if(!_0x196340)return;const {subType:_0x4e76d0}=this['_splitMarkerName'](_0x34f600['markerName']),_0x2bb1b2=se(_0x4e76d0);if(this['_isBlockAttribute'](_0x2bb1b2)){for(const _0x3b90e5 of _0x196340)_0x3b90e5['getCustomProperty']('addHighlight')||(_0x465deb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b90e5),_0x465deb['writer']['removeAttribute']('data-suggestion',_0x3b90e5),_0x465deb['writer']['removeAttribute']('data-author-id',_0x3b90e5),_0x465deb['mapper']['unbindElementFromMarkerName'](_0x3b90e5,_0x34f600['markerName']));}},{'priority':'high'});}),_0xf89b18['model']['document']['registerPostFixer'](_0x3d2257=>{let _0x5ac83e=!0x1;const _0x557852=Array['from'](_0xf89b18['model']['document']['differ']['getChangedMarkers']()),_0x34fd7d=new Set();for(const {name:_0x15e00b,data:_0x3e0184}of _0x557852){const {group:_0x44df49,type:_0x1e7583,subType:_0x546e48,id:_0x23d7a2}=this['_splitMarkerName'](_0x15e00b);if('suggestion'!==_0x44df49)continue;const _0x165135=_0x546e48?'suggestion:'+_0x1e7583+':'+_0x546e48+':'+_0x23d7a2:'suggestion:'+_0x1e7583+':'+_0x23d7a2,_0x1ce3e6=_0xf89b18['model']['markers']['getMarkersGroup'](_0x165135),_0x21c5a9=_0xf89b18['model']['markers']['get'](_0x15e00b),_0x52c24e=this['_suggestions']['get'](_0x23d7a2);if(null!=_0x3e0184['newRange']){'formatInline'==_0x1e7583&&(_0x5ac83e=_0x5ac83e||Ht(_0x3e0184['newRange'],_0x15e00b,_0x3d2257,_0xf89b18['model']['schema']));const _0x8bc20f='attribute'==_0x1e7583&&this['_isBlockAttribute'](_0x546e48['split']('|')[0x0]),_0x316cc1='attribute'==_0x1e7583&&this['_isInlineAttribute'](_0x546e48['split']('|')[0x0]);if(_0x3e0184['newRange']['isCollapsed']||'$graveyard'==_0x3e0184['newRange']['root']['rootName']||'formatBlock'==_0x1e7583&&!qt(_0x3e0184['newRange'])||_0x8bc20f&&!qt(_0x3e0184['newRange'])||_0x316cc1&&zt(_0x3e0184['newRange'])||'deletion'==_0x1e7583&&zt(_0x3e0184['newRange'])||_0x21c5a9&&Qt(_0x21c5a9,_0x1ce3e6))_0x3d2257['removeMarker'](_0x15e00b),_0x5ac83e=!0x0;else{if(!_0x52c24e||!_0x52c24e['isInContent'])continue;if(_0x3e0184['newRange']&&_0x3e0184['oldRange']&&_0x3e0184['newRange']['isEqual'](_0x3e0184['oldRange']))continue;_0x34fd7d['add'](_0x52c24e);}}}return _0x34fd7d['size']>0x0&&(_0x5ac83e=!!this['_joinWithAdjacentSuggestions'](_0x34fd7d)||_0x5ac83e),_0x5ac83e;}),_0xf89b18['model']['document']['registerPostFixer'](_0x1740ac=>{let _0x436ba8=!0x1;for(const _0x2c8c1a of _0xf89b18['model']['document']['differ']['getChanges']())if('insert'==_0x2c8c1a['type'])for(const _0x279415 of this['_suggestions']['values']()){if(_0x279415['isMultiRange']||!_0x279415['isInContent'])continue;const _0x28da6a='formatBlock'==_0x279415['type'],_0x386bc7=this['_getAttributeKey'](_0x279415),_0x47d440=_0x386bc7&&this['_isBlockAttribute'](_0x386bc7);if(!_0x28da6a&&!_0x47d440)continue;const _0x44f131=_0x279415['getFirstRange']();if(_0x44f131['start']['parent']!=_0x44f131['end']['parent']&&!_0x44f131['end']['isAtEnd']){const _0x42d308=_0xf89b18['model']['createPositionAt'](_0x44f131['start']['nodeAfter'],'end'),_0x15553e=_0xf89b18['model']['createRange'](_0x44f131['start'],_0x42d308);_0x1740ac['updateMarker'](_0x279415['getFirstMarker'](),{'range':_0x15553e}),_0x436ba8=!0x0;}}return _0x436ba8;}),_0xf89b18['model']['document']['registerPostFixer'](_0x46c754=>this['_processAttributeChanges'](_0x46c754)),_0xf89b18['model']['document']['registerPostFixer'](_0x1ee9ed=>!_0x1ee9ed['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ee9ed)),_0xf89b18['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xf89b18['model']['document']['on']('change:data',(_0x15cb6a,_0x27751e)=>{if(!_0x27751e['isLocal']||_0x27751e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f1d41=_0xf89b18['model']['document']['differ']['getChanges']();if(0x0==_0x3f1d41['length'])return;const _0x462ce0=[],_0x46c7da=_0x3f1d41['filter'](_0x254015=>'attribute'==_0x254015['type']),_0x5cff3b=_0x3f1d41['filter'](_0x4c8905=>'insert'==_0x4c8905['type']&&'$text'!=_0x4c8905['name']);for(const _0x46f216 of _0x46c7da)this['_isRegisteredAttribute'](_0x46f216['attributeKey'])&&_0x462ce0['push']({'key':_0x46f216['attributeKey'],'newValue':_0x46f216['attributeNewValue'],'oldValue':_0x46f216['attributeOldValue'],'range':Yt(_0x46f216['range'],_0xf89b18['model'])});for(const _0x26758f of _0x5cff3b){if('rename'!=_0x26758f['action']&&'refresh'!=_0x26758f['action'])continue;const _0x3bd816=Zt(_0x26758f['position']['nodeAfter'],_0xf89b18['model']),_0x4977f9=_0x26758f['before'];'rename'==_0x26758f['action']&&_0x462ce0['push']({'key':m,'newValue':_0x26758f['name'],'oldValue':_0x4977f9['name'],'range':_0x3bd816});for(const [_0x32420e,_0x297d1d]of _0x4977f9['attributes']){if(!this['_isRegisteredAttribute'](_0x32420e))continue;const _0x2f5088=_0x26758f['attributes']['get'](_0x32420e);_0x297d1d!==_0x2f5088&&_0x462ce0['push']({'key':_0x32420e,'newValue':_0x2f5088,'oldValue':_0x297d1d,'range':_0x3bd816});}for(const [_0x52219b,_0x1a3950]of _0x26758f['attributes'])this['_isRegisteredAttribute'](_0x52219b)&&(_0x4977f9['attributes']['has'](_0x52219b)||_0x462ce0['push']({'key':_0x52219b,'newValue':_0x1a3950,'oldValue':null,'range':_0x3bd816}));}0x0!=_0x462ce0['length']&&_0xf89b18['model']['enqueueChange'](_0x27751e,_0x154596=>{const _0x17f150=_0x573f80();for(const {range:_0x559da8,key:_0x414a12,oldValue:_0x4a623d,newValue:_0x202817}of _0x462ce0)this['markAttributeChange'](_0x559da8,_0x414a12,_0x4a623d,_0x202817,{'groupId':_0x17f150});this['_reduceExistingSuggestions'](_0x154596,_0x462ce0);});},{'priority':'lowest'}),_0xf89b18['model']['markers']['on']('update:suggestion',(_0x42275e,_0x375fb7,_0x2d92cd)=>{if(null==_0x2d92cd){const {id:_0x467e0e}=this['_splitMarkerName'](_0x375fb7['name']),_0x17b4b3=this['_suggestions']['get'](_0x467e0e);_0x17b4b3&&_0x17b4b3['addMarkerName'](_0x375fb7['name']);}}),_0xf89b18['model']['document']['on']('change:data',()=>{const _0x7198b2=Array['from'](_0xf89b18['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ea373=>'suggestion'===this['_splitMarkerName'](_0x3ea373['name'])['group']);if(0x0===_0x7198b2['length'])return;_0x7198b2['sort']((_0x5d1784,_0x2e8500)=>{const _0x427acf=_0x5d1784['data']['oldRange'],_0xe74645=_0x2e8500['data']['oldRange'];return null===_0x427acf&&null===_0xe74645?0x0:null===_0x427acf&&null!==_0xe74645?-0x1:null!==_0x427acf&&null===_0xe74645?0x1:_0x427acf['start']['isBefore'](_0xe74645['start'])?-0x1:0x1;});const _0x917e0f=new Set(),_0x7065a6=new Set();for(const {name:_0x1a9a30,data:_0x49f26c}of _0x7198b2){const {id:_0x1dcba3}=this['_splitMarkerName'](_0x1a9a30);if(null===_0x49f26c['oldRange']){const _0x19d183=this['_handleNewSuggestionMarker'](_0x1a9a30);_0x7065a6['add'](_0x19d183);}else{const _0x5881c8=this['_suggestions']['get'](_0x1dcba3);null!==_0x49f26c['newRange']||_0x5881c8['isInContent']?(_0x917e0f['add'](_0x5881c8['head']),_0x7065a6['add'](_0x5881c8)):this['_removeSuggestion'](_0x5881c8);}}_0x7065a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x7065a6);for(const _0x4c9b3a of _0x917e0f)this['fire']('suggestionChanged',_0x4c9b3a);}),_0xf89b18['model']['on']('applyOperation',(_0x2ce0ca,_0x318f49)=>{const _0x37b6e0=_0x318f49[0x0];if(!this['_suggestions']['size'])return;if(!_0x37b6e0['isDocumentOperation'])return;if(_0x37b6e0['batch']['isUndo']||!_0x37b6e0['batch']['isLocal'])return;let _0x517167,_0x273f74;switch(_0x37b6e0['type']){case'insert':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['position']),_0x273f74=_0x517167['getShiftedBy'](_0x37b6e0['howMany']);break;case'split':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['splitPosition']),_0x273f74=_0xf89b18['model']['createPositionAt'](_0x37b6e0['moveTargetPosition']);break;case'move':_0x517167=_0xf89b18['model']['createPositionAt'](_0x37b6e0['targetPosition']),_0x273f74=_0x517167['getShiftedBy'](_0x37b6e0['howMany']);break;default:return;}const _0x147285=_0xf89b18['model']['createRange'](_0x517167,_0x273f74);_0xf89b18['model']['change'](()=>{for(const {suggestion:_0x1d593e,meta:_0x4d7d9c}of this['_findSuggestions'](_0x147285)){if(_0x1d593e['isMultiRange'])continue;if('formatInline'==_0x1d593e['type'])continue;const _0x411692=this['_getAttributeKey'](_0x1d593e);if(_0x411692&&this['_isBlockAttribute'](_0x411692)&&'split'!=_0x37b6e0['type'])continue;const _0x3a50d4=_0x1d593e['data']&&_0x1d593e['data']['multipleBlocks'];('formatBlock'!=_0x1d593e['type']||'split'==_0x37b6e0['type']&&!_0x3a50d4)&&(_0x4d7d9c['containsRangeInObject']||'insertion'==_0x1d593e['type']&&_0x4d7d9c['isOwn']||_0x1d593e['getFirstRange']()['containsRange'](_0x147285)&&this['_breakSuggestionMarker'](_0x1d593e,_0x517167,_0x273f74));}});},{'priority':'lowest'}),_0xf89b18['model']['on']('deleteContent',(_0x21e644,_0x5aba5d)=>{const _0x171b3b=_0x5aba5d[0x0],_0x4ea862=_0x5aba5d[0x1];if(_0x4ea862&&_0x4ea862['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x171b3b['isCollapsed'])return;const _0x4f933b=_0xf89b18['model']['schema'],{start:_0x4c1875,end:_0x20d715}=_0x171b3b['getFirstRange'](),_0xb4cf24=_0x4c1875['nodeAfter']&&_0x4f933b['isLimit'](_0x4c1875['nodeAfter'])?null:_0x4f933b['getNearestSelectionRange'](_0x4c1875,'forward'),_0x2b828f=_0x20d715['nodeBefore']&&_0x4f933b['isLimit'](_0x20d715['nodeBefore'])?null:_0x4f933b['getNearestSelectionRange'](_0x20d715,'backward'),_0x32a627=_0xf89b18['model']['createRange'](_0xb4cf24?_0xb4cf24['start']:_0x4c1875,_0x2b828f?_0x2b828f['end']:_0x20d715);_0xf89b18['model']['change'](_0x465b0a=>{this['markDeletion'](_0x32a627);const _0x599056=_0xf89b18['model']['schema']['getNearestSelectionRange'](_0x32a627['start']);_0x171b3b['is']('documentSelection')?_0x465b0a['setSelection'](_0x599056):_0x171b3b['setTo'](_0x599056);}),_0x21e644['stop']();},{'priority':_0x163a1e['normal']+0xa}),_0xf89b18['model']['on']('insertContent',(_0x15cc43,_0x201228)=>{const _0x99a7f4=_0x201228[_0x201228['length']-0x1];_0x99a7f4&&_0x99a7f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xf89b18['model']['change'](()=>{let _0x1119d2=_0xf89b18['model']['insertContent'](_0x201228[0x0],_0x201228[0x1],_0x201228[0x2],{'forceDefaultExecution':!0x0});if(!_0x1119d2)return;_0x15cc43['return']=_0x1119d2['clone']();const _0x44e197=_0x1119d2['end']['nodeBefore'],_0x5ab33e=_0xf89b18['model']['schema'];_0x44e197&&_0x5ab33e['isBlock'](_0x44e197)&&!_0x5ab33e['isObject'](_0x44e197)&&(_0x1119d2=_0xf89b18['model']['createRange'](_0x1119d2['start'],_0xf89b18['model']['createPositionAt'](_0x44e197,'end'))),this['markInsertion'](_0x1119d2);}),_0x15cc43['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x17a599=new T(_0xf89b18,this['_suggestions']);_0xf89b18['commands']['add']('acceptSuggestion',_0x17a599),this['enableCommand']('acceptSuggestion');const _0x550b71=new O(_0xf89b18,this['_suggestions']);_0xf89b18['commands']['add']('discardSuggestion',_0x550b71),this['enableCommand']('discardSuggestion'),_0xf89b18['commands']['add']('acceptAllSuggestions',new x(_0xf89b18,_0x17a599,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xf89b18['commands']['add']('discardAllSuggestions',new x(_0xf89b18,_0x550b71,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xf89b18['commands']['add']('acceptSelectedSuggestions',new E(_0xf89b18,_0x17a599,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xf89b18['commands']['add']('discardSelectedSuggestions',new E(_0xf89b18,_0x550b71,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2805c4=_0xf89b18['plugins']['get']('CommentsRepository');this['listenTo'](_0x2805c4,'addComment',(_0x5bfe31,{threadId:_0x171593})=>{const _0x133bbc=this['_suggestions']['get'](_0x171593);_0x133bbc&&_0x133bbc['commentThread']&&0x1===_0x133bbc['commentThread']['length']&&this['_updateSuggestionData'](_0x171593,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2805c4,'removeComment',(_0x51655c,{threadId:_0xb0ded8})=>{const _0x471ed7=this['_suggestions']['get'](_0xb0ded8);_0x471ed7&&_0x471ed7['commentThread']&&!_0x471ed7['commentThread']['length']&&this['_updateSuggestionData'](_0xb0ded8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1cc5b4){const _0x154b6f=_0xf9948a([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x2cd9b5=0x6b0f5e6f,_0x53b3f6=0x6b082a27^_0x2cd9b5,_0x98fb64=window[_0xf9948a([0x44,0x61,0x74,0x65])][_0xf9948a([0x6e,0x6f,0x77])](),_0x2210e4=_0x1cc5b4[_0xf9948a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ccd2c=new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21a798=>{_0x2210e4[_0xf9948a([0x6f,0x6e,0x63,0x65])](_0xf9948a([0x72,0x65,0x61,0x64,0x79]),_0x21a798);}),_0x47ed81={[_0xf9948a([0x6b,0x74,0x79])]:_0xf9948a([0x45,0x43]),[_0xf9948a([0x75,0x73,0x65])]:_0xf9948a([0x73,0x69,0x67]),[_0xf9948a([0x63,0x72,0x76])]:_0xf9948a([0x50,0x2d,0x32,0x35,0x36]),[_0xf9948a([0x78])]:_0xf9948a([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]),[_0xf9948a([0x79])]:_0xf9948a([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]),[_0xf9948a([0x61,0x6c,0x67])]:_0xf9948a([0x45,0x53,0x32,0x35,0x36])},_0x271a5a=_0x2210e4[_0xf9948a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf9948a([0x67,0x65,0x74])](_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7a7f9(){let _0x4c7434,_0x5b1a8a=null,_0x434584=null;try{if(_0x271a5a==_0xf9948a([0x47,0x50,0x4c]))return _0xf9948a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c7434=_0x3e788a(),!_0x4c7434)return _0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c7434[_0xf9948a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x434584=_0x5c4c65(_0x4c7434[_0xf9948a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c7434[_0xf9948a([0x6a,0x74,0x69])])),await _0xc35aaa()?_0x593d7b()?_0x5a0b01()?_0xf9948a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15120e()?(_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf9948a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b1a8a=_0x5a8a01(_0xf9948a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf9948a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b1a8a=_0x5a8a01(_0xf9948a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x51a9f6()):_0xf9948a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf9948a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf9948a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a0b01(){const _0x4f3688=[_0xf9948a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf9948a([0x74,0x72,0x69,0x61,0x6c])][_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x98fb64/0x3e8:0xe10*_0x53b3f6;return _0x4c7434[_0xf9948a([0x65,0x78,0x70])]<_0x4f3688;}function _0x593d7b(){const _0x4cc34d=_0x4c7434[_0xf9948a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4cc34d)return!0x1;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x2a])))return!0x0;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x54,0x43])))return!0x0;if(_0x4cc34d[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x52,0x54,0x43]))){if(_0x3c5468())return!0x0;if(_0x397f07()||_0x4c2f06())return!0x0;}return!0x1;}function _0x15120e(){const _0x392da8=_0x4c7434[_0xf9948a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x392da8||0x0==_0x392da8[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e85bc}=new URL(window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x392da8[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e85bc))return!0x0;const _0x1af52f=_0x2e85bc[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e]));return _0x392da8[_0xf9948a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x336605=>_0x336605[_0xf9948a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf9948a([0x2a])))[_0xf9948a([0x6d,0x61,0x70])](_0x278ac1=>_0x278ac1[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e])))[_0xf9948a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56d234=>_0x56d234[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1af52f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf9948a([0x6d,0x61,0x70])](_0x4707ab=>Array(_0x1af52f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4707ab[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf9948a([0x66,0x69,0x6c,0x6c])](_0x4707ab[0x0]===_0xf9948a([0x2a])?_0xf9948a([0x2a]):'')[_0xf9948a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4707ab))[_0xf9948a([0x73,0x6f,0x6d,0x65])](_0x3fd42=>_0x1af52f[_0xf9948a([0x65,0x76,0x65,0x72,0x79])]((_0x1d8b55,_0x3540b0)=>_0x3fd42[_0x3540b0]===_0x1d8b55||_0x3fd42[_0x3540b0]===_0xf9948a([0x2a])));}function _0x51a9f6(){return _0x5b1a8a&&_0x434584?new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1812d4,_0x34a6bb)=>{_0x5b1a8a[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x1812d4,_0x34a6bb),_0x434584[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x4d0611=>{_0x4d0611!=_0xf9948a([0x56,0x61,0x6c,0x69,0x64])&&_0x1812d4(_0x4d0611);},_0x34a6bb);}):_0x5b1a8a||_0x434584||_0xf9948a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c4c65(_0xf0c9b4,_0x47776c){return new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x529552=>{if(_0x36bc60())return _0x529552(_0xf9948a([0x56,0x61,0x6c,0x69,0x64]));_0x29b2b4(),_0x2210e4[_0xf9948a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2148ce=!0x1;const _0x198940=_0x573f80();function _0x6314b5(_0x1e272f){return!!_0x1e272f&&(typeof _0x1e272f===_0xf9948a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e272f===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e272f[_0xf9948a([0x74,0x68,0x65,0x6e])]===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e272f[_0xf9948a([0x63,0x61,0x74,0x63,0x68])]===_0xf9948a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2abcc1(_0x2a7a80){_0x521142(_0x2a7a80)[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x35593b=>{if(!_0x35593b||_0x35593b[_0xf9948a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf9948a([0x6f,0x6b]))return _0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb1bfe1(_0xdd3c5d(_0x198940+_0x47776c))!=_0x35593b[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf9948a([0x56,0x61,0x6c,0x69,0x64]);})[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x63841f=>(_0x4c5f86(),_0x63841f),()=>{const _0x2c74dd=_0x199f87();return null==_0x2c74dd?(_0x4c5f86(),_0xf9948a([0x56,0x61,0x6c,0x69,0x64])):_0xf9948a(_0x98fb64-_0x2c74dd>(0x4f03da6f^_0x2cd9b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x529552)[_0xf9948a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46a6f6=0x6b39b0ef^_0x2cd9b5;function _0x4c5f86(){const _0x53ccaa=_0xf9948a([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1bfe1(_0xdd3c5d(_0xf0c9b4)),_0x2c18bd=_0x545a79(_0xb1bfe1(window[_0xf9948a([0x4d,0x61,0x74,0x68])][_0xf9948a([0x63,0x65,0x69,0x6c])](_0x98fb64/_0x46a6f6)));window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf9948a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53ccaa,_0x2c18bd);}function _0x199f87(){const _0x1002bf=_0xf9948a([0x6c,0x6c,0x63,0x74,0x2d])+_0xb1bfe1(_0xdd3c5d(_0xf0c9b4)),_0x5bd45e=window[_0xf9948a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf9948a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1002bf);return _0x5bd45e?window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x545a79(_0x5bd45e),0x10)*_0x46a6f6:null;}function _0x521142(_0x52068b){return new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33227f,_0x17ddf2)=>{_0x52068b[_0xf9948a([0x74,0x68,0x65,0x6e])](_0x33227f,_0x17ddf2),window[_0xf9948a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17ddf2,0x6b0e8aaf^_0x2cd9b5);});}}_0x2210e4[_0xf9948a([0x6f,0x6e])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12948e,_0x39f73f)=>{if(_0x39f73f[0x0]!=_0xf0c9b4)return _0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39f73f[0x1]={..._0x39f73f[0x1],[_0xf9948a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x198940};},{[_0xf9948a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf9948a([0x68,0x69,0x67,0x68])}),_0x2210e4[_0xf9948a([0x6f,0x6e])](_0xf9948a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4463e3=>{_0x6314b5(_0x4463e3[_0xf9948a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2148ce=!0x0,_0x2abcc1(_0x4463e3[_0xf9948a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf9948a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf9948a([0x6c,0x6f,0x77])}),_0x1ccd2c[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>{_0x2148ce||_0x529552(_0xf9948a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36bc60(){return _0x2210e4[_0xf9948a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf9948a([0x76,0x69,0x65,0x77])][_0xf9948a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf9948a([0x61,0x75,0x74,0x6f]);}function _0x29b2b4(){_0x2210e4[_0xf9948a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf9948a([0x76,0x69,0x65,0x77])][_0xf9948a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf9948a([0x61,0x75,0x74,0x6f]);}}function _0x5a8a01(_0x557c1b){const _0x52bb70=[new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa20798=>setTimeout(_0xa20798,0x6b0660a3^_0x2cd9b5)),_0x1ccd2c[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe328e=>{let _0x4483ed=0x0;_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x6f,0x6e])](_0xf9948a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x258497,_0x30b82e)=>{_0x30b82e[0x0][_0xf9948a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4483ed++,_0x4483ed==(0x6b0f5f97^_0x2cd9b5)&&(_0xfe328e(),_0x258497[_0xf9948a([0x6f,0x66,0x66])]());});}))];return window[_0xf9948a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf9948a([0x72,0x61,0x63,0x65])](_0x52bb70)[_0xf9948a([0x74,0x68,0x65,0x6e])](()=>_0x557c1b);}async function _0x4fe607(){await _0x1ccd2c,_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5562f0,_0x2210e4[_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c])][_0xf9948a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5562f0,_0x2210e4[_0xf9948a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf9948a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c5468(){return _0x1ca480(_0xf9948a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ca84f(_0xf9948a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf9948a([0x73,0x74,0x61,0x74,0x65])]==_0xf9948a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x397f07(){return _0x1ca480(_0xf9948a([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 _0x4c2f06(){return _0x1ca480(_0xf9948a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3bd5ef(_0x4ea295){const _0x139d2e=_0x30d464();_0x2210e4[_0x139d2e]=_0xf9948a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ea295,_0x4ea295!=_0xf9948a([0x56,0x61,0x6c,0x69,0x64])&&_0x4fe607();}function _0x30d464(){const _0x4f4d0e=window[_0xf9948a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf9948a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf9948a([0x6e,0x6f,0x77])]())[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf9948a([0x2e]),'');let _0x5d9d65=_0xf9948a([0x67]);for(let _0x47f887=0x0;_0x47f887<_0x4f4d0e[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f887+=0x2){let _0x35ae9b=window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4d0e[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47f887,_0x47f887+0x2));_0x35ae9b>=_0x154b6f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35ae9b-=_0x154b6f[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d9d65+=_0x154b6f[_0x35ae9b];}return _0x5d9d65;}function _0x3e788a(){const _0xd53d1c=_0x271a5a[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e]));if(0x3!=_0xd53d1c[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348c29(_0xd53d1c[0x1]);function _0x348c29(_0x53e367){const _0x48f55a=_0x877a2c(_0x53e367);return _0x48f55a&&_0x36366e()?_0x48f55a:null;function _0x36366e(){const _0x3c8ad5=_0x48f55a[_0xf9948a([0x6a,0x74,0x69])],_0x8e041a=window[_0xf9948a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c8ad5[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8ad5[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x130674={..._0x48f55a,[_0xf9948a([0x6a,0x74,0x69])]:_0x3c8ad5[_0xf9948a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c8ad5[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x130674[_0xf9948a([0x76,0x63])],_0xdd3c5d(_0x130674)==_0x8e041a;}}}async function _0xc35aaa(){let _0x4c62c6=!0x0;try{const _0x5bd864=_0x271a5a[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])](_0xf9948a([0x2e])),[_0x422923,_0x33fddf,_0x1b2520]=_0x5bd864;return _0x3ef8fd(_0x422923),await _0x3d2406(_0x422923,_0x33fddf,_0x1b2520),_0x4c62c6;}catch{return!0x1;}function _0x3ef8fd(_0x577055){const _0x15e891=_0x877a2c(_0x577055);_0x15e891&&_0x15e891[_0xf9948a([0x61,0x6c,0x67])]==_0xf9948a([0x45,0x53,0x32,0x35,0x36])||(_0x4c62c6=!0x1);}async function _0x3d2406(_0x2e687b,_0x40498a,_0xe37700){const _0x53d259=window[_0xf9948a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf9948a([0x66,0x72,0x6f,0x6d])](_0xa12e8e(_0xe37700),_0x5c2dee=>_0x5c2dee[_0xf9948a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4639d9=new window[(_0xf9948a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf9948a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e687b+_0xf9948a([0x2e])+_0x40498a),_0x1c9fb3=window[_0xf9948a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf9948a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c9fb3)return;const _0x10a196=await _0x1c9fb3[_0xf9948a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf9948a([0x6a,0x77,0x6b]),_0x47ed81,{[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x45,0x43,0x44,0x53,0x41]),[_0xf9948a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf9948a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c9fb3[_0xf9948a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x45,0x43,0x44,0x53,0x41]),[_0xf9948a([0x68,0x61,0x73,0x68])]:{[_0xf9948a([0x6e,0x61,0x6d,0x65])]:_0xf9948a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10a196,_0x53d259,_0x4639d9)||(_0x4c62c6=!0x1);}}function _0x877a2c(_0x294b9d){return _0x294b9d[_0xf9948a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf9948a([0x65,0x79]))?JSON[_0xf9948a([0x70,0x61,0x72,0x73,0x65])](_0xa12e8e(_0x294b9d)):null;}function _0xa12e8e(_0x1e2364){return window[_0xf9948a([0x61,0x74,0x6f,0x62])](_0x1e2364[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf9948a([0x2b]))[_0xf9948a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf9948a([0x2f])));}function _0xdd3c5d(_0x23ae6d){let _0x3c5801=0x1505;function _0x55a7fd(_0x16525a){for(let _0xc6cde8=0x0;_0xc6cde8<_0x16525a[_0xf9948a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6cde8++){const _0x441552=_0x16525a[_0xf9948a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc6cde8);_0x3c5801=(_0x3c5801<<0x5)+_0x3c5801+_0x441552,_0x3c5801&=_0x3c5801;}}function _0x59678f(_0xb6644c){Array[_0xf9948a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb6644c)?_0xb6644c[_0xf9948a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59678f):_0xb6644c&&typeof _0xb6644c==_0xf9948a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf9948a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb6644c)[_0xf9948a([0x73,0x6f,0x72,0x74])]()[_0xf9948a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x91d2ec,_0x15afc9])=>{_0x55a7fd(_0x91d2ec),_0x59678f(_0x15afc9);}):_0x55a7fd(window[_0xf9948a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb6644c));}return _0x59678f(_0x23ae6d),_0x3c5801>>>0x0;}function _0xb1bfe1(_0x3042e5){return _0x3042e5[_0xf9948a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf9948a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf9948a([0x30]));}function _0x545a79(_0x201362){return _0x201362[_0xf9948a([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf9948a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf9948a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1ca480(_0x1db5b2){return _0x2210e4[_0xf9948a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf9948a([0x68,0x61,0x73])](_0x1db5b2);}function _0x1ca84f(_0x520c52){return _0x2210e4[_0xf9948a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf9948a([0x67,0x65,0x74])](_0x520c52);}function _0x5562f0(){}function _0xf9948a(_0x5cdaca){return _0x5cdaca['map'](_0x30ff9b=>String['fromCharCode'](_0x30ff9b))['join']('');}_0x3bd5ef(await _0x7a7f9());}(this);}set['adapter'](_0x549d59){if(this['_adapter'])throw new _0x4b5846('track-changes-adapter-already-set',this);this['_adapter']=_0x549d59;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x44f9f5=!0x1,toJSON:_0x8a035d=!0x1}={}){const _0x57ca72=[];for(const _0x383d4b of this['_suggestions']['values']())_0x44f9f5&&!_0x383d4b['isInContent']||_0x57ca72['push'](_0x383d4b);return _0x8a035d?_0x57ca72['map'](_0x1f0325=>_0x1f0325['toJSON']()):_0x57ca72;}['getSuggestion'](_0x383e92){const _0x24c4c3=this['_suggestions']['get'](_0x383e92);if(!_0x24c4c3)throw new _0x4b5846('track-changes-suggestion-not-found',this);return _0x24c4c3;}['hasSuggestion'](_0x23863b){return this['_suggestions']['has'](_0x23863b);}['addSuggestionData'](_0x2be660){const {authorId:_0x20c400,id:_0xcb2b82,originalSuggestionId:_0x58803c,attributes:_0x34dfaf}=_0x2be660,[_0x19cd94,_0x10fcc1]=_0x2be660['type']['split'](':'),_0x9bf53b=this['_suggestions']['get'](_0xcb2b82)||this['_createSuggestion'](_0x19cd94,_0x10fcc1,_0xcb2b82,_0x20c400,_0x34dfaf,_0x58803c);if(this['_addThreadToSuggestion'](_0x9bf53b),this['_checkSuggestionCorrectness'](_0x9bf53b,_0x19cd94,_0x10fcc1||null,_0x20c400),_0x9bf53b['createdAt']=_0x2be660['createdAt'],_0x9bf53b['_isDataLoaded']=!0x0,_0x34dfaf&&_0x34dfaf['@external']){const _0x561234=_0x34dfaf['@external'],_0x16beca=this['_getExternalAuthor'](_0x561234['authorName']);_0x9bf53b['authoredAt']=_0x561234['createdAt'],_0x9bf53b['author']=_0x16beca,_0x9bf53b['isExternal']=!0x0;}else _0x9bf53b['authoredAt']=_0x2be660['createdAt'];switch(_0x2be660['data']&&(_0x9bf53b['data']=_0x2be660['data']),_0x2be660['attributes']&&(_0x9bf53b['attributes']=_0x2be660['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x9bf53b['_saved']=!0x0),this['_suggestionState']['get'](_0x9bf53b)){case'notReady':this['_suggestionState']['set'](_0x9bf53b,'dataReady');break;case'markerReady':_0x9bf53b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x9bf53b])),this['_refreshSuggestionsChain'](new Set([_0x9bf53b])),this['_suggestionState']['set'](_0x9bf53b,'ready'),this['fire']('suggestionLoaded',_0x9bf53b)):this['_suggestionState']['set'](_0x9bf53b,'removed');}return _0x9bf53b;}['acceptSuggestion'](_0x4ef18f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1996a0 of _0x4ef18f['getAllAdjacentSuggestions']())_0x1996a0['accept']();});});}['discardSuggestion'](_0x15953a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a1981 of _0x15953a['getAllAdjacentSuggestions']())_0x3a1981['discard']();});});}['enableCommand'](_0x4ad617,_0x2c4b6c){const _0x3a6806=this['editor']['commands']['get'](_0x4ad617);if(!_0x3a6806)throw new _0x4b5846('track-changes-command-not-found',this,{'commandName':_0x4ad617});if(this['_enabledCommands']['has'](_0x3a6806))throw new _0x4b5846('track-changes-enable-command-twice',this,{'commandName':_0x4ad617});this['_enabledCommands']['add'](_0x3a6806),_0x2c4b6c&&_0x3a6806['on']('execute',(_0x1e7f2d,_0x456d89)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x456d89['length']>0x0&&_0x456d89[_0x456d89['length']-0x1]&&_0x456d89[_0x456d89['length']-0x1]['forceDefaultExecution']?_0x456d89['pop']():(_0x1e7f2d['return']=_0x2c4b6c((..._0x594272)=>_0x3a6806['execute'](..._0x594272,{'forceDefaultExecution':!0x0}),..._0x456d89),_0x1e7f2d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20788d){let _0x4f9378,_0x2c2d61;const _0x5cc39b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f9378=_0x20788d();}catch(_0xd62c3e){_0x2c2d61=_0xd62c3e;}return _0x5cc39b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2c2d61&&_0x4b5846['rethrowUnexpectedError'](_0x2c2d61,this),_0x4f9378;}['markInsertion'](_0x116a33,_0x12f790=null,_0x5da6bf={}){if(_0x116a33['isCollapsed'])return null;const _0xadc05e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5da6bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5338f6,meta:_0x595b86}of this['_findSuggestions'](_0x116a33,'insertion'))if(_0x595b86['isOwn']){if(!_0x595b86['isNextTo']){if(_0x595b86['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x5338f6,_0x5da6bf))continue;return _0x5338f6;}if(ie(_0x5338f6,_0x5da6bf))return _0x5338f6;this['_breakSuggestionMarker'](_0x5338f6,_0x116a33['start'],_0x116a33['end']);break;}if(_0x12f790==_0x5338f6['subType']&&ie(_0x5338f6,_0x5da6bf)){const _0x163b13=_0x5338f6['getFirstRange']();return _0x163b13['start']['isEqual'](_0x116a33['end'])?this['_setSuggestionRange'](_0x5338f6,this['_model']['createRange'](_0x116a33['start'],_0x163b13['end'])):this['_setSuggestionRange'](_0x5338f6,this['_model']['createRange'](_0x163b13['start'],_0x116a33['end'])),_0x5338f6;}}const _0x4ba740=_0x573f80(),_0x39abad=_0xadc05e['id'],_0x48ea69=_0x12f790?'insertion:'+_0x12f790:'insertion',_0x191b99=this['_setSuggestionData']({'id':_0x4ba740,'type':_0x48ea69,'createdAt':new Date(),'authorId':_0x39abad,'attributes':_0x5da6bf});return this['_addSuggestionMarker'](_0x48ea69,_0x4ba740,_0x39abad,_0x116a33),_0x191b99;}['markMultiRangeInsertion'](_0x30b450,_0xc68df5='multi',_0x2dedaf={}){const _0x752e6e=this['editor']['plugins']['get']('Users')['me'],_0x5f3507=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc68df5,'join');this['_trackingSessionId']&&(_0x2dedaf['trackingSessionId']=this['_trackingSessionId']);for(const _0x50f0c0 of this['getSuggestions']())if(_0x50f0c0['author']['id']==_0x752e6e['id']&&'insertion'==_0x50f0c0['type']&&_0x50f0c0['subType']==_0xc68df5&&ie(_0x50f0c0,_0x2dedaf)&&(_0x5f3507(_0x50f0c0['getRanges'](),_0x30b450)||_0x5f3507(_0x30b450,_0x50f0c0['getRanges']()))){for(const _0xe07b7e of _0x30b450)_0x50f0c0['addRange'](_0xe07b7e);return _0x50f0c0;}for(const {suggestion:_0x331939,meta:_0x36da40}of this['_findSuggestions'](_0x30b450,'insertion')){if(!_0x36da40['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36da40['containsRangeInObject'])continue;if(!ie(_0x331939,_0x2dedaf))continue;let _0x2a33aa=!0x0;for(const _0x17db6a of _0x331939['getRanges']())for(const _0x34c756 of _0x30b450)if(!_0x17db6a['containsRange'](_0x34c756)){_0x2a33aa=!0x1;break;}if(_0x2a33aa)return _0x331939;}const _0x1fc3e5=_0x573f80(),_0x24316f=_0x752e6e['id'],_0x24bdaa='insertion:'+_0xc68df5,_0x20fef0=this['_setSuggestionData']({'id':_0x1fc3e5,'type':_0x24bdaa,'createdAt':new Date(),'authorId':_0x24316f,'attributes':_0x2dedaf});for(const _0x3a976d of _0x30b450)this['_addSuggestionMarker'](_0x24bdaa,_0x1fc3e5,_0x24316f,_0x3a976d,R['getMultiRangeId']());return _0x20fef0;}['markInlineFormat'](_0x23641f,_0x3b344c,_0x10855c=null,_0x16c4ac={}){if(_0x10855c=_0x10855c||Wt(_0x3b344c),_0x23641f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x16c4ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15e751=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x10855c,'accept');return this['forceDefaultExecution'](()=>_0x15e751([_0x23641f],_0x3b344c,_0x16c4ac)),null;}const _0xa54fb8=this['editor']['plugins']['get']('Users')['me'],_0x527e4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1db24c,meta:_0x15a488}of this['_findSuggestions'](_0x23641f,'insertion'))_0x15a488['isOwn']&&!_0x15a488['isInsideObject']&&_0x527e4['push'](..._0x1db24c['getRanges']());}const _0xaeaa65=function(_0x5e40a4,_0x5fae73){const _0x302c5b=[];for(const _0x126262 of _0x5fae73){const _0x491bce=_0x5e40a4['getIntersection'](_0x126262);_0x491bce&&_0x302c5b['push'](_0x491bce);}return _0x302c5b;}(_0x23641f,_0x527e4),_0x3b4532=function(_0xa29672,_0x30db35){const _0x2d0899=[_0xa29672];for(const _0x45ed34 of _0x30db35){let _0x40e22f=0x0;for(;_0x40e22f<_0x2d0899['length'];){const _0x26ed39=_0x2d0899[_0x40e22f]['getDifference'](_0x45ed34);_0x2d0899['splice'](_0x40e22f,0x1,..._0x26ed39),_0x40e22f+=_0x26ed39['length'];}}return _0x2d0899;}(_0x23641f,_0x527e4);_0xaeaa65['length']&&this['_model']['change'](()=>{for(const _0x13cc9f of _0xaeaa65){const _0x24f96a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x10855c,'accept');this['forceDefaultExecution'](()=>_0x24f96a([_0x13cc9f],_0x3b344c,_0x16c4ac));}});for(const _0x412f85 of _0x3b4532){let _0x3f9728=null,_0x292d5c=_0x412f85['start'],_0x348b4d=_0x412f85['end'];for(const {suggestion:_0x42ef5e,meta:_0x5a35c2}of this['_findSuggestions'](_0x412f85,'formatInline')){if(!_0x5a35c2['isOwn'])continue;if(_0x42ef5e['subType']!=_0x10855c)continue;if(!ie(_0x42ef5e,_0x16c4ac))continue;const _0x4ae263=_0x42ef5e['getFirstRange']();if(_0x4ae263['containsRange'](_0x412f85,!0x0))return null;_0x292d5c=_0x292d5c['isBefore'](_0x4ae263['start'])?_0x292d5c:_0x4ae263['start'],_0x348b4d=_0x348b4d['isAfter'](_0x4ae263['end'])?_0x348b4d:_0x4ae263['end'],_0x3f9728?_0x4ae263['start']['isBefore'](_0x3f9728['getFirstRange']()['start'])?(_0x3f9728['removeMarkers'](),_0x3f9728=_0x42ef5e):_0x42ef5e['removeMarkers']():_0x3f9728=_0x42ef5e;}const _0x8caed1=this['_model']['createRange'](_0x292d5c,_0x348b4d);if(_0x3f9728)this['_setSuggestionRange'](_0x3f9728,_0x8caed1);else{const _0x16e6ff=_0x573f80(),_0x152f58=_0xa54fb8['id'];this['_setSuggestionData']({'id':_0x16e6ff,'type':'formatInline:'+_0x10855c,'data':_0x3b344c,'createdAt':new Date(),'authorId':_0x152f58,'attributes':_0x16c4ac}),this['_addSuggestionMarker']('formatInline:'+_0x10855c,_0x16e6ff,_0x152f58,_0x8caed1);}}return null;}['markBlockFormat'](_0x5136a9,_0x14387c,_0x1ddc9b=[],_0x11e179=null,_0x56b69a={}){_0x14387c['formatGroupId']||(_0x14387c['formatGroupId']=_0x14387c['commandName']),_0x14387c['multipleBlocks']=_0x5136a9['is']('range'),_0x11e179=_0x11e179||Wt(_0x14387c);const _0x2dc215=_0x1ddc9b['map'](_0x4e400b=>Zt(_0x4e400b,this['_model'])),_0x58c9f1=_0x5136a9['is']('range')?_0x5136a9:Zt(_0x5136a9,this['_model']);if(this['_trackingSessionId']&&(_0x56b69a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x409cb2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e179,'accept');return this['forceDefaultExecution'](()=>_0x409cb2([_0x58c9f1],_0x14387c,_0x56b69a)),null;}_0x2dc215['push'](_0x58c9f1);let _0x47e219=!0x0;for(const _0x73f8dc of _0x2dc215)if(!this['_rangeIsInLocalUserInsertion'](_0x73f8dc)){_0x47e219=!0x1;break;}if(_0x47e219&&'always'!==this['_trackFormatChanges']){const _0x4c4682=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11e179,'accept');return this['forceDefaultExecution'](()=>_0x4c4682([_0x58c9f1],_0x14387c,_0x56b69a)),null;}let _0x35fcd5=null,_0x5e8d1e=_0x58c9f1['start'],_0x4d9fe3=_0x58c9f1['end'];for(const {suggestion:_0x2e0ab5,meta:_0x3a5006}of this['_findSuggestions'](_0x58c9f1,'formatBlock')){if(!_0x3a5006['isOwn'])continue;if(_0x3a5006['isNextTo']||_0x3a5006['containsRangeInObject']||_0x3a5006['isInsideObject'])continue;if(_0x2e0ab5['data']['formatGroupId']!=_0x14387c['formatGroupId'])continue;if(!ie(_0x2e0ab5,_0x56b69a))continue;const _0x1575d6=_0x2e0ab5['getFirstRange']();if(_0x2e0ab5['subType']==_0x11e179){if(_0x1575d6['containsRange'](_0x58c9f1,!0x0))return null;_0x5e8d1e=_0x5e8d1e['isBefore'](_0x1575d6['start'])?_0x5e8d1e:_0x1575d6['start'],_0x4d9fe3=_0x4d9fe3['isAfter'](_0x1575d6['end'])?_0x4d9fe3:_0x1575d6['end'],_0x35fcd5?_0x1575d6['start']['isBefore'](_0x35fcd5['getFirstRange']()['start'])?(_0x35fcd5['removeMarkers'](),_0x35fcd5=_0x2e0ab5):_0x2e0ab5['removeMarkers']():_0x35fcd5=_0x2e0ab5;}else{const _0x561bd5=_0x58c9f1['getIntersection'](_0x1575d6);this['_cutOutSuggestionMarker'](_0x2e0ab5,_0x561bd5);}}const _0x15ab8b=this['editor']['plugins']['get']('Users')['me'],_0x1d9125=_0x573f80(),_0x27e183=_0x15ab8b['id'];if(_0x35fcd5)return this['_setSuggestionRange'](_0x35fcd5,this['_model']['createRange'](_0x5e8d1e,_0x4d9fe3)),_0x35fcd5;{const _0x3f004b=this['_setSuggestionData']({'id':_0x1d9125,'type':'formatBlock:'+_0x11e179,'data':_0x14387c,'createdAt':new Date(),'authorId':_0x27e183,'attributes':_0x56b69a});return this['_addSuggestionMarker']('formatBlock:'+_0x11e179,_0x1d9125,_0x27e183,this['_model']['createRange'](_0x5e8d1e,_0x4d9fe3)),_0x3f004b;}}['markMultiRangeBlockFormat'](_0x35987a,_0x22f357,_0x269727=[],_0x4ca557=null,_0x3d924d={}){_0x22f357['formatGroupId']||(_0x22f357['formatGroupId']=_0x22f357['commandName']);const _0x49348a=_0x35987a[0x0];_0x22f357['multipleBlocks']=_0x49348a['is']('range'),_0x4ca557=_0x4ca557||Wt(_0x22f357);const _0x59b1e5=_0x269727['map'](_0x44647d=>Zt(_0x44647d,this['_model'])),_0x459ec5=_0x49348a['is']('range')?_0x35987a:_0x35987a['map'](_0x389237=>Zt(_0x389237,this['_model']));if(this['_trackingSessionId']&&(_0x3d924d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20c403=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'accept');return this['forceDefaultExecution'](()=>_0x20c403(_0x459ec5,_0x22f357,_0x3d924d)),null;}_0x59b1e5['push'](..._0x459ec5);let _0x2de4a7=!0x0;for(const _0x4fecb4 of _0x59b1e5)if(!this['_rangeIsInLocalUserInsertion'](_0x4fecb4)){_0x2de4a7=!0x1;break;}if(_0x2de4a7&&'always'!==this['_trackFormatChanges']){const _0x4d6fc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'accept');return this['forceDefaultExecution'](()=>_0x4d6fc9(_0x459ec5,_0x22f357,_0x3d924d)),null;}const _0x57b04d=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ac455 of this['getSuggestions']()){const _0x5bd4c2=_0x3ac455['data'];if(_0x3ac455['author']['id']!=_0x57b04d['id'])continue;if('formatBlock'!=_0x3ac455['type']||_0x5bd4c2['formatGroupId']!=_0x22f357['formatGroupId'])continue;if(!ie(_0x3ac455,_0x3d924d))continue;const _0x59e69f=_0x3ac455['subType']==_0x4ca557;for(let _0x10bd4f=0x0;_0x10bd4f<_0x459ec5['length'];_0x10bd4f++){const _0x59e935=_0x459ec5[_0x10bd4f];for(const _0x5bf297 of _0x3ac455['getMarkers']()){const _0x551f19=_0x5bf297['getRange']();if(_0x59e935['isEqual'](_0x551f19)){_0x59e69f?(_0x459ec5['splice'](_0x10bd4f,0x1),_0x10bd4f--):_0x3ac455['removeMarker'](_0x5bf297['name']);break;}}}}if(0x0==_0x459ec5['length'])return null;const _0x5cdb4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ca557,'join');for(const _0x41a28a of this['getSuggestions']()){const _0x8d11db=_0x41a28a['data'];if(_0x41a28a['author']['id']==_0x57b04d['id']&&('formatBlock'==_0x41a28a['type']&&_0x8d11db['formatGroupId']==_0x22f357['formatGroupId']&&_0x41a28a['subType']==_0x4ca557&&ie(_0x41a28a,_0x3d924d)&&(_0x5cdb4f(_0x41a28a['getRanges'](),_0x459ec5)||_0x5cdb4f(_0x459ec5,_0x41a28a['getRanges']())))){for(const _0x55806a of _0x459ec5)_0x41a28a['addRange'](_0x55806a);return _0x41a28a;}}const _0x357c88=_0x573f80(),_0x2cb254=_0x57b04d['id'],_0x5cee3d='formatBlock:'+_0x4ca557,_0x583578=this['_setSuggestionData']({'id':_0x357c88,'type':_0x5cee3d,'data':_0x22f357,'createdAt':new Date(),'authorId':_0x2cb254,'attributes':_0x3d924d});for(const _0x5377b6 of _0x459ec5)this['_addSuggestionMarker'](_0x5cee3d,_0x357c88,_0x2cb254,_0x5377b6,R['getMultiRangeId']());return _0x583578;}['markDeletion'](_0x1c742b,_0x53a562=null,_0x1e5d2f={}){if(_0x1c742b['isCollapsed'])return null;const _0x584386=this['editor']['plugins']['get']('Users')['me'],_0x2aeb65=new _0x35191f(_0x1c742b['start'],_0x1c742b['end']);this['_trackingSessionId']&&(_0x1e5d2f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21ddf6,meta:_0x291ee7}of this['_findSuggestions'](_0x2aeb65,'insertion'))if(_0x291ee7['isOwn']&&!_0x291ee7['isNextTo']){if(_0x21ddf6['isMultiRange']){const _0x19c312=_0x21ddf6['getRanges']()['filter'](_0x28c3ad=>'$graveyard'!=_0x28c3ad['root']['rootName']);_0x19c312['every'](_0x3882c8=>_0x2aeb65['containsRange'](_0x3882c8,!0x0))&&_0x21ddf6['discard']();if(_0x19c312['some'](_0x68ab2b=>_0x68ab2b['containsRange'](_0x2aeb65,!0x0))){const _0x5d5b19=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53a562,'accept');return this['forceDefaultExecution'](()=>_0x5d5b19([_0x2aeb65],null,_0x1e5d2f)),null;}}else{const _0x1620f0=_0x2aeb65['getIntersection'](_0x21ddf6['getFirstRange']());null!==_0x1620f0&&_0x21ddf6['_onDiscard']([_0x1620f0],null,_0x1e5d2f);}}if(_0x2aeb65['detach'](),_0x2aeb65['isCollapsed']||'$graveyard'==_0x2aeb65['root']['rootName'])return null;let _0x4a8bf0=null,_0xa552d1=_0x2aeb65['start'],_0x3441e5=_0x2aeb65['end'];const _0x400a58=this['_findSuggestions'](_0x2aeb65,'deletion');for(const {suggestion:_0x5cea1f,meta:_0x300da2}of _0x400a58){const _0x43ae03=this['_model']['createRange'](_0xa552d1,_0x3441e5);if(_0x300da2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x300da2['containsRangeInObject']&&!_0x300da2['isInsideObject'])){if(_0x5cea1f['isMultiRange']){if(!ie(_0x5cea1f,_0x1e5d2f))continue;let _0x662066=!0x0;for(const _0x55444d of _0x5cea1f['getRanges']()){if(_0x55444d['containsRange'](_0x43ae03,!0x0))return _0x5cea1f;_0x43ae03['containsRange'](_0x55444d)||(_0x662066=!0x1);}_0x662066&&_0x5cea1f['discard']();}else{const _0x27c6a9=_0x5cea1f['getFirstRange']();if(_0x27c6a9['containsRange'](_0x43ae03,!0x0))return _0x5cea1f;if(!ie(_0x5cea1f,_0x1e5d2f)){_0x43ae03['containsRange'](_0x27c6a9)?_0x5cea1f['removeMarkers']():_0x27c6a9['containsPosition'](_0xa552d1)?_0xa552d1=_0x27c6a9['end']:_0x27c6a9['containsPosition'](_0x3441e5)&&(_0x3441e5=_0x27c6a9['start']);continue;}_0xa552d1=_0xa552d1['isBefore'](_0x27c6a9['start'])?_0xa552d1:_0x27c6a9['start'],_0x3441e5=_0x3441e5['isAfter'](_0x27c6a9['end'])?_0x3441e5:_0x27c6a9['end'],_0x1e5d2f=Object['assign']({},_0x5cea1f['attributes']),_0x4a8bf0?_0x27c6a9['start']['isBefore'](_0x4a8bf0['getFirstRange']()['start'])?(_0x4a8bf0['removeMarkers'](),_0x4a8bf0=_0x5cea1f):_0x5cea1f['removeMarkers']():_0x4a8bf0=_0x5cea1f;}}}if(_0x4a8bf0)return this['_setSuggestionRange'](_0x4a8bf0,this['_model']['createRange'](_0xa552d1,_0x3441e5)),_0x4a8bf0;{const _0x23838b=_0x573f80(),_0x2bd2aa=this['_model']['createRange'](_0xa552d1,_0x3441e5),_0x233954=_0x584386['id'],_0x4ef4fe=_0x53a562?'deletion:'+_0x53a562:'deletion',_0x5a1bd1=this['_setSuggestionData']({'id':_0x23838b,'type':_0x4ef4fe,'createdAt':new Date(),'authorId':_0x233954,'attributes':_0x1e5d2f});return this['_addSuggestionMarker'](_0x4ef4fe,_0x23838b,_0x233954,_0x2bd2aa),_0x5a1bd1;}}['markMultiRangeDeletion'](_0x4e69cb,_0x4e26ae='multi',_0x3f855e={}){const _0x1be183=this['editor']['plugins']['get']('Users')['me'],_0x26de5d=_0x4e69cb['map'](_0x4c5fb5=>new _0x35191f(_0x4c5fb5['start'],_0x4c5fb5['end'])),_0xdfad70=new Set();this['_trackingSessionId']&&(_0x3f855e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x326a2d,meta:_0x116491}of this['_findSuggestions'](_0x26de5d,'insertion'))_0x116491['isOwn']&&!_0x116491['isNextTo']&&_0xdfad70['add'](_0x326a2d);for(const _0x258d36 of _0xdfad70)if(_0x258d36['isMultiRange']){const _0x5e018a=_0x258d36['getRanges']();(!_0x258d36['attributes']||!_0x258d36['attributes']['skipNestingCheck'])&&(_0x5e018a['every'](_0x87639e=>_0x26de5d['some'](_0x492c58=>_0x492c58['containsRange'](_0x87639e,!0x0)))&&_0x258d36['discard']());if(_0x26de5d['every'](_0x2d569a=>_0x5e018a['some'](_0xc87a03=>_0xc87a03['containsRange'](_0x2d569a,!0x0)))){const _0x5092bc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'accept');return this['forceDefaultExecution'](()=>_0x5092bc(_0x4e69cb,null,_0x3f855e)),null;}}else{const _0x22ff25=_0x258d36['getFirstRange']();_0x26de5d['some'](_0x2d09c5=>_0x2d09c5['containsRange'](_0x22ff25,!0x0))&&_0x258d36['discard']();if(_0x26de5d['every'](_0x5ad104=>_0x22ff25['containsRange'](_0x5ad104,!0x0))){const _0x17e560=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'accept');return this['forceDefaultExecution'](()=>_0x17e560(_0x26de5d,null,_0x3f855e)),null;}}const _0x49631e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4e26ae,'join');let _0x2d5d9d=null;for(const _0x10713a of this['getSuggestions']())if(_0x10713a['author']['id']==_0x1be183['id']&&_0x10713a['isInContent']&&'deletion'==_0x10713a['type']&&_0x10713a['subType']==_0x4e26ae&&ie(_0x10713a,_0x3f855e)&&(_0x49631e(_0x10713a['getRanges'](),_0x26de5d)||_0x49631e(_0x26de5d,_0x10713a['getRanges']()))){if(_0x2d5d9d){if(_0x10713a['commentThread']&&_0x10713a['commentThread']['length'])continue;for(const _0x3246ca of _0x10713a['getRanges']())_0x2d5d9d['isIntersectingWithRange'](_0x3246ca)||_0x2d5d9d['addRange'](_0x3246ca);_0x10713a['removeMarkers']();}else{_0x2d5d9d=_0x10713a;for(const _0x9f6b44 of _0x26de5d)_0x10713a['isIntersectingWithRange'](_0x9f6b44)||_0x10713a['addRange'](_0x9f6b44);}}if(_0x2d5d9d)return _0x2d5d9d;_0xdfad70['clear']();for(const {suggestion:_0x5b6ffe,meta:_0x2cd418}of this['_findSuggestions'](_0x26de5d,'deletion'))_0x2cd418['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cd418['containsRangeInObject']&&!_0x2cd418['isInsideObject'])&&ie(_0x5b6ffe,_0x3f855e)&&_0xdfad70['add'](_0x5b6ffe);for(const _0x593ac2 of _0xdfad70){const _0x3809e4=_0x593ac2['getRanges']();if(!_0x3f855e||!_0x3f855e['skipNestingCheck']){if(_0x26de5d['every'](_0x2cf762=>_0x3809e4['some'](_0x233be5=>_0x233be5['containsRange'](_0x2cf762,!0x0))))return _0x593ac2;}(!_0x593ac2['attributes']||!_0x593ac2['attributes']['skipNestingCheck'])&&(_0x3809e4['every'](_0x54ce5a=>_0x26de5d['some'](_0x2ffb8a=>_0x2ffb8a['containsRange'](_0x54ce5a,!0x0)))&&_0x593ac2['discard']());}const _0x3834a6=_0x573f80(),_0x35c747=_0x1be183['id'],_0x8d7277='deletion:'+_0x4e26ae,_0x12abd9=this['_setSuggestionData']({'id':_0x3834a6,'type':_0x8d7277,'createdAt':new Date(),'authorId':_0x35c747,'attributes':_0x3f855e});for(const _0x1ebe86 of _0x26de5d)_0x1ebe86['detach'](),_0x1ebe86['isCollapsed']||'$graveyard'==_0x1ebe86['root']['rootName']||this['_addSuggestionMarker'](_0x8d7277,_0x3834a6,_0x35c747,_0x1ebe86,R['getMultiRangeId']());return _0x12abd9;}['markAttributeChange'](_0x5e94ff,_0x58ddba,_0x52d229,_0x134275,_0x2992ab){if(_0x5e94ff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ec07f=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b786f=Array['from'](this['_suggestions']['values']())['filter'](_0xe26ee3=>'attribute'==_0xe26ee3['type']&&_0xe26ee3['data']['key']==_0x58ddba&&_0xe26ee3['isIntersectingWithRange'](_0x5e94ff));if(this['_trackingSessionId']&&(_0x2992ab['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x34852e=this['_findSuggestions'](_0x5e94ff,'insertion')['filter'](({meta:_0x39a2f2})=>_0x39a2f2['isOwn']&&!_0x39a2f2['isInsideObject']&&!_0x39a2f2['isNextTo'])['map'](({suggestion:_0x4056f0})=>_0x4056f0);_0x3b786f['unshift'](..._0x34852e);}const _0x5c2c8d=new Map([[_0x5e94ff,_0x52d229]]);for(const _0x579944 of _0x3b786f){const _0x54d295='attribute'==_0x579944['type']?_0x579944['data']['oldValue']:void 0x0,_0x3b03c0=_0x579944['getFirstRange'](),_0x549a04=Array['from'](_0x5c2c8d['keys']())['find'](_0x252d17=>_0x252d17['isIntersecting'](_0x3b03c0));if(!_0x549a04)continue;const _0xb0334d=_0x549a04['getDifference'](_0x3b03c0);this['_isBlockAttribute'](_0x58ddba)&&'insertion'==_0x579944['type']&&0x0!=_0xb0334d['length']||(_0x5c2c8d['delete'](_0x549a04),_0xb0334d['forEach'](_0x373d8a=>{_0x5c2c8d['set'](_0x373d8a,_0x52d229);}),'insertion'!=_0x579944['type']&&_0x54d295!=_0x134275&&_0x5c2c8d['set'](_0x549a04['getIntersection'](_0x3b03c0),_0x54d295));}const _0x370b51=[];for(const [_0x2b2b29,_0x3ddf65]of _0x5c2c8d){const _0x5083a5=_0x573f80(),_0x5ca2f4={'key':_0x58ddba,'oldValue':_0x3ddf65,'newValue':_0x134275};_0x58ddba['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':_0x58ddba});const _0x23524f=('attribute:'+(_0x58ddba+'|'+Wt({'newValue':_0x134275})))['substring'](0x0,0x3c),_0x4c6cfe=this['_setSuggestionData']({'id':_0x5083a5,'type':_0x23524f,'data':_0x5ca2f4,'createdAt':new Date(),'authorId':_0x5ec07f,'attributes':_0x2992ab});_0x370b51['push'](_0x4c6cfe),this['_addSuggestionMarker'](_0x23524f,_0x5083a5,_0x5ec07f,_0x2b2b29);}return _0x370b51;}['enableDefaultAttributesIntegration'](_0x13136f){this['enableCommand'](_0x13136f,(_0x49c210,..._0xcc4b5f)=>{this['recordAttributeChanges'](()=>{_0x49c210(..._0xcc4b5f);});});}['registerBlockAttribute'](_0x19181c){this['_blockAttributeKeys']['add'](_0x19181c);}['registerInlineAttribute'](_0x574ef5){this['_inlineAttributeKeys']['add'](_0x574ef5);}['startTrackingSession'](_0x2507fe){return this['_trackingSessionId']=void 0x0!==_0x2507fe?_0x2507fe:_0x573f80(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5d05d8){return'attribute'==_0x5d05d8['type']?se(_0x5d05d8['subType']):null;}['_applyOperationsAsSuggestions'](_0x4d6d83){if(0x0==_0x4d6d83['length'])return;const _0x2dd015=this['editor'],_0x3bd293=_0x2dd015['plugins']['get'](_0x56191a);let _0x484f76=!0x0;for(const _0x5f3736 in _0x4d6d83[0x0]){const _0x17bae9=_0x4d6d83[0x0][_0x5f3736];if((_0x17bae9 instanceof _0x2f60c4||_0x17bae9 instanceof _0x24dd86)&&_0x17bae9['root']['is']('documentFragment')){_0x484f76=!0x1;break;}}_0x2dd015['model']['change'](_0x16ab62=>{const _0x99ad79=new Set();for(const _0x1852ee of _0x4d6d83)if(_0x1852ee['baseVersion']=_0x484f76?_0x2dd015['model']['document']['version']:null,_0x1852ee['isDocumentOperation']=_0x484f76,_0x3bd293['isMarkedRemoveOperation'](_0x1852ee)){const _0x1b966e=Xt(_0x1852ee['newRange'],_0x2dd015['model']);if(_0x484f76)this['markDeletion'](_0x1b966e);else{const _0x12875='suggestion:deletion:id:authorId:'+_0x573f80();_0x1b966e['root']['markers']['set'](_0x12875,_0x1b966e);}}else switch(_0x1852ee['type']){case'rename':{const _0x2d5604=_0x1852ee['oldName'],_0x523e9b=_0x1852ee['newName'];if(_0x2d5604==_0x523e9b)break;_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x43f7dd='$elementName',_0x3c2dd5=_0x1852ee['position'],_0x366db6=_0x2dd015['model']['createRange'](_0x3c2dd5,_0x2dd015['model']['createPositionAt'](_0x3c2dd5['nodeAfter'],'end'));if(_0x484f76)this['markAttributeChange'](_0x366db6,_0x43f7dd,_0x2d5604,_0x523e9b,{'groupId':_0x573f80()});else{const _0x1897e3='suggestion:attribute:'+_0x43f7dd+':id:authorId:'+_0x573f80();_0x366db6['root']['markers']['set'](_0x1897e3,_0x366db6);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18ea2d=_0x1852ee['oldValue'],_0x2785dc=_0x1852ee['newValue'];if(_0x18ea2d==_0x2785dc)break;_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x5a0acd=_0x1852ee['key'];if(!this['_isRegisteredAttribute'](_0x5a0acd))break;const _0x15e818=Xt(_0x1852ee['range'],_0x2dd015['model']);if(_0x484f76)this['markAttributeChange'](_0x15e818,_0x5a0acd,_0x18ea2d,_0x2785dc,{'groupId':_0x573f80()});else{const _0x5afee2='suggestion:attribute:'+_0x5a0acd+':id:authorId:'+_0x573f80();_0x15e818['root']['markers']['set'](_0x5afee2,_0x15e818);}break;}case'insert':{_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x29fdaa=_0x1852ee['position'],_0x76e203=_0x1852ee['howMany'],_0x56f9aa=Xt(_0x2dd015['model']['createRange'](_0x29fdaa,_0x29fdaa['getShiftedBy'](_0x76e203)),_0x2dd015['model']);if(_0x484f76)this['markInsertion'](_0x56f9aa);else{const _0x206a8f='suggestion:insertion:id:authorId:'+_0x573f80();_0x56f9aa['root']['markers']['set'](_0x206a8f,_0x56f9aa);}break;}case'split':{_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);const _0x1cd62f=_0x1852ee['splitPosition'],_0x1c67f1=_0x1852ee['moveTargetPosition'],_0x56d025=_0x2dd015['model']['createRange'](_0x1cd62f,_0x1c67f1);if(_0x484f76)this['markInsertion'](_0x2dd015['model']['createRange'](_0x1cd62f,_0x1c67f1));else{const _0x220805='suggestion:insertion:id:authorId:'+_0x573f80();_0x56d025['root']['markers']['set'](_0x220805,_0x56d025);}break;}case'move':if(_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee),!_0x484f76){const _0x1286ce=_0x1852ee['getMovedRangeStart'](),_0x25c1a4=_0x1852ee['howMany'];for(let _0x1bf5fc=0x0;_0x1bf5fc<_0x25c1a4;_0x1bf5fc++){const _0xc723d1=_0x1286ce['getShiftedBy'](_0x1bf5fc)['nodeAfter'];_0x99ad79['add'](_0xc723d1);}}break;case'remove':if(_0x484f76)_0x16ab62['batch']['addOperation'](_0x1852ee),_0x2dd015['model']['applyOperation'](_0x1852ee);else{const _0x563b78=_0x1852ee['sourcePosition'],_0x258d79=_0x1852ee['howMany'],_0x83a626=new _0x5f410a(_0x563b78,_0x258d79);_0x16ab62['batch']['addOperation'](_0x83a626),_0x2dd015['model']['applyOperation'](_0x83a626);}}for(const _0x23a357 of _0x99ad79){const _0x1145b7=_0x2dd015['model']['createRangeOn'](_0x23a357),_0x47b764='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x573f80();_0x1145b7['root']['markers']['set'](_0x47b764,Xt(_0x1145b7,_0x2dd015['model']));}});}['_setSuggestionRange'](_0x41e0ca,_0x51dc43){const _0x1315a4=_0x41e0ca['getFirstMarker']();this['_model']['change'](_0x20a3fb=>{_0x20a3fb['updateMarker'](_0x1315a4,{'range':_0x51dc43});});}['_addThreadToSuggestion'](_0x1baebc){const _0x44dfce=_0x1baebc['id'],_0x160adf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x44dfce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x160adf,'threadId':_0x44dfce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e46d=this['_commentsRepository']['getCommentThread'](_0x44dfce);_0x3e46d['unbind']('isRemovable'),_0x3e46d['isRemovable']=!0x1,_0x1baebc['commentThread']=_0x3e46d;}['_checkSuggestionCorrectness'](_0x598ed4,_0x2980aa,_0x5c76fe,_0x4740ab){if(_0x598ed4['type']!=_0x2980aa||_0x598ed4['subType']!=_0x5c76fe||_0x598ed4['creator']['id']!=_0x4740ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4b5846('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4c6403,_0x5a1590){const _0x5cea11=_0x4c6403['getFirstRange']();if(_0x5a1590['isEqual'](_0x5cea11))_0x4c6403['removeMarkers']();else{if(_0x5cea11['containsRange'](_0x5a1590)){const _0x3dc2ce=this['_model']['createPositionAt'](_0x5a1590['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x5cea11['start'],_0x3dc2ce));const _0x38bf07=_0x573f80(),_0x116071=_0x4c6403['creator']['id'],_0x39414e=_0x4c6403['type']+':'+_0x4c6403['subType'];this['_setSuggestionData']({'id':_0x38bf07,'type':_0x39414e,'createdAt':new Date(),'authorId':_0x116071,'data':_0x4c6403['data'],'attributes':_0x4c6403['attributes']});const _0x233e48=this['_model']['createPositionAt'](_0x5a1590['end']['parent'],'after'),_0x5862e5=this['_model']['createRange'](_0x233e48,_0x5cea11['end']);this['_addSuggestionMarker'](_0x39414e,_0x38bf07,_0x116071,_0x5862e5);}else{if(_0x5cea11['containsPosition'](_0x5a1590['start'])){const _0x594f07=this['_model']['createPositionAt'](_0x5a1590['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x5cea11['start'],_0x594f07));}else{const _0x2429b5=this['_model']['createPositionAt'](_0x5a1590['end']['parent'],'after');this['_setSuggestionRange'](_0x4c6403,this['_model']['createRange'](_0x2429b5,_0x5cea11['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x539e7b){for(const {suggestion:_0x5f472d,meta:_0x45513f}of this['_findSuggestions'](_0x539e7b,'insertion')){if(!_0x45513f['isOwn'])continue;const _0x54e1e2=_0x5f472d['getRanges']();for(const _0x166ea7 of _0x54e1e2)if(!_0x539e7b['getDifference'](_0x166ea7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x30325e){return this['editor']['plugins']['get']('Users')['getUser'](_0x30325e);}['_getExternalAuthor'](_0xfd19d2){const _0x268cc8=this['editor']['plugins']['get']('Users'),_0x4485a8=_0x3623f6('external:'+_0xfd19d2),_0x40f79f=_0x268cc8['getUser'](_0x4485a8);return _0x40f79f||_0x268cc8['addUser']({'id':_0x4485a8,'name':_0xfd19d2});}['_createSuggestion'](_0x15cca2,_0x128985,_0x3a70a4,_0x546dbb,_0x37e231,_0x459594){const _0x152f28=this['_getAuthorFromId'](_0x546dbb);if(!_0x152f28)throw new _0x4b5846('track-changes-user-not-found',this,{'authorId':_0x546dbb,'suggestionId':_0x3a70a4});const _0x2b4796=this['_suggestionFactory']['buildSuggestion'](_0x15cca2,_0x128985,_0x3a70a4,_0x152f28,_0x37e231,_0x490a9b=>{this['_updateSuggestionData'](_0x3a70a4,{'attributes':_0x490a9b});const _0x5ed15d=this['getSuggestion'](_0x3a70a4);this['_joinWithAdjacentSuggestions'](new Set([_0x5ed15d])),this['_refreshSuggestionsChain'](new Set([_0x5ed15d]));},_0x459594);return this['listenTo'](_0x2b4796,'accept',()=>{this['_updateSuggestionData'](_0x3a70a4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b4796,'discard',()=>{this['_updateSuggestionData'](_0x3a70a4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3a70a4,_0x2b4796),this['_suggestionState']['set'](_0x2b4796,'notReady'),_0x2b4796;}['_splitMarkerName'](_0x4ad820){const _0x21e28f=_0x4ad820['split'](':');return{'group':_0x21e28f[0x0],'type':_0x21e28f[0x1],'subType':_0x21e28f['length']>=0x5?_0x21e28f[0x2]:null,'id':_0x21e28f['length']<0x5?_0x21e28f[0x2]:_0x21e28f[0x3],'authorId':_0x21e28f['length']<0x5?_0x21e28f[0x3]:_0x21e28f[0x4],'markerCount':0x6==_0x21e28f['length']?_0x21e28f[0x5]:null};}['_breakSuggestionMarker'](_0x342700,_0x3a25c1,_0x2a69da){const _0x2df3b3=_0x342700['getFirstRange'](),_0x43cee8=_0x2df3b3['start'],_0x3f16c9=_0x2df3b3['end'];this['_setSuggestionRange'](_0x342700,this['_model']['createRange'](_0x43cee8,_0x3a25c1));const _0x4a8ae7=_0x573f80(),_0x4980aa=_0x342700['creator']['id'],_0x47fccc=_0x342700['type']+(_0x342700['subType']?':'+_0x342700['subType']:'');this['_setSuggestionData']({'id':_0x4a8ae7,'type':_0x47fccc,'createdAt':new Date(),'authorId':_0x4980aa,'originalSuggestionId':_0x342700['_originalSuggestionId']||_0x342700['id'],'attributes':_0x342700['attributes'],'data':_0x342700['data']});const _0x4998b8=this['_getAttributeKey'](_0x342700);('formatBlock'==_0x342700['type']||_0x4998b8&&this['_isBlockAttribute'](_0x4998b8))&&(_0x2a69da=this['_model']['createPositionBefore'](_0x2a69da['parent'])),this['_addSuggestionMarker'](_0x47fccc,_0x4a8ae7,_0x4980aa,this['_model']['createRange'](_0x2a69da,_0x3f16c9));}['_findSuggestions'](_0x2293d3,_0xc9ed2c=null){const _0x16cafb=[],_0x861112=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2293d3)||(_0x2293d3=[_0x2293d3]);for(const _0x1a49d0 of this['getSuggestions']()){if(!_0x1a49d0['isInContent'])continue;if(_0xc9ed2c&&_0x1a49d0['type']!=_0xc9ed2c)continue;let _0x52fb74=!0x1;for(const _0x2462c0 of _0x1a49d0['getRanges']()){for(const _0x29750b of _0x2293d3){const _0x48ba85=_0x29750b['start']['isEqual'](_0x2462c0['end'])||_0x29750b['end']['isEqual'](_0x2462c0['start']);if(_0x48ba85||_0x29750b['getIntersection'](_0x2462c0)){const _0x3f2980=_0x29750b['containsRange'](_0x2462c0)&&Jt(this['_model']['schema'],_0x2462c0['start'],_0x29750b),_0x3c34a0=_0x2462c0['containsRange'](_0x29750b)&&Jt(this['_model']['schema'],_0x29750b['start'],_0x2462c0);_0x16cafb['push']({'suggestion':_0x1a49d0,'meta':{'isOwn':_0x861112==_0x1a49d0['author'],'isNextTo':_0x48ba85,'isInsideObject':_0x3f2980,'containsRangeInObject':_0x3c34a0}}),_0x52fb74=!0x0;break;}}if(_0x52fb74)break;}}return _0x16cafb;}['_addSuggestionMarker'](_0x4f99f4,_0x4ff49d,_0x2359b3,_0x2a0396,_0x3b489b){this['_model']['change'](_0x4b719a=>{let _0x1c7551='suggestion:'+_0x4f99f4+':'+_0x4ff49d+':'+_0x2359b3;_0x3b489b&&(_0x1c7551=_0x1c7551+':'+_0x3b489b),_0x4b719a['addMarker'](_0x1c7551,{'range':_0x2a0396,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4ce789){const _0x5ee33d=_0x4ce789['previous'],_0x402e67=_0x4ce789['next'];_0x4ce789['previous']=null,_0x4ce789['next']=null,null!=_0x5ee33d&&_0x5ee33d['next']==_0x4ce789&&(_0x5ee33d['next']=_0x402e67),null!=_0x402e67&&_0x402e67['previous']==_0x4ce789&&(_0x402e67['previous']=_0x5ee33d),'ready'==this['_suggestionState']['get'](_0x4ce789)&&(this['_suggestionState']['set'](_0x4ce789,'removed'),this['fire']('suggestionUnloaded',_0x4ce789,_0x5ee33d,_0x402e67));}['_setSuggestionData'](_0x279dc1){const _0x10ed46=_0x279dc1['id'],_0x5ce323=this['addSuggestionData'](_0x279dc1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8f2e3d=this['editor']['plugins']['get']('PendingActions'),_0xf688ee=_0x5ce323['hasComments'],_0x11c1e9=_0x5ce323['subType']?_0x5ce323['type']+':'+_0x5ce323['subType']:_0x5ce323['type'],_0x330c25=this['editor']['locale'],_0x49fd23=_0x8f2e3d['add'](o(_0x330c25,'PENDING_ACTION_SUGGESTION')),_0x335fd5={'id':_0x10ed46,'type':_0x11c1e9,'hasComments':_0xf688ee,'data':_0x279dc1['data']||null,'originalSuggestionId':_0x279dc1['originalSuggestionId']||null,'attributes':_0x5ce323['attributes']};this['_adapter']['addSuggestion'](_0x335fd5)['then'](_0xf9ebb4=>{_0x5ce323['_saved']=!0x0,_0x8f2e3d['remove'](_0x49fd23),_0xf9ebb4&&_0xf9ebb4['createdAt']&&(this['_suggestions']['get'](_0x10ed46)['createdAt']=_0xf9ebb4['createdAt']);})['catch'](_0x4c0d22=>{throw _0x4f7fa7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ce323['discard']();}),_0x5ce323['stopListening'](),this['_suggestions']['delete'](_0x5ce323['id']),this['_suggestionState']['delete'](_0x5ce323),_0x4c0d22;});}return _0x5ce323;}['_isBlockAttribute'](_0x3241be){return this['_blockAttributeKeys']['has'](_0x3241be);}['_isInlineAttribute'](_0x18f990){return this['_inlineAttributeKeys']['has'](_0x18f990);}['_updateSuggestionData'](_0x157f00,_0x4bd018){const _0xa5f777=this['editor']['plugins']['get']('PendingActions'),_0x5a0514=this['getSuggestion'](_0x157f00);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a0514['_saved']){const _0xe94758=_0xa5f777['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x157f00,_0x4bd018)['then'](()=>{_0xa5f777['remove'](_0xe94758);});}else _0x5a0514['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x157f00,_0x4bd018);});}}['_getSuggestionData'](_0x277079){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4b5846('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x277079);}['_handleNewSuggestionMarker'](_0x38a82f){const {id:_0x1d1708,type:_0x30b99c,subType:_0x5c3fa9,authorId:_0x541900}=this['_splitMarkerName'](_0x38a82f),_0x190588=this['_suggestions']['get'](_0x1d1708)||this['_createSuggestion'](_0x30b99c,_0x5c3fa9,_0x1d1708,_0x541900,{});switch(this['_checkSuggestionCorrectness'](_0x190588,_0x30b99c,_0x5c3fa9,_0x541900),this['_suggestionState']['get'](_0x190588)){case'notReady':this['_getSuggestionData'](_0x1d1708)['then'](_0x333d49=>{let _0x3ea7f7=Promise['resolve']();_0x333d49['hasComments']&&(_0x3ea7f7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d1708})),_0x3ea7f7['then'](()=>{this['addSuggestionData'](_0x333d49)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x190588,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d1708,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x190588,'ready'),this['fire']('suggestionLoaded',_0x190588);break;case'ready':this['fire']('suggestionChanged',_0x190588);}return _0x190588['addMarkerName'](_0x38a82f),_0x190588;}['_refreshSuggestionsChain'](_0x83ccc8){const _0x4dcd29=Array['from'](_0x83ccc8),_0x371155=_0x4dcd29['filter'](_0x4efcc1=>'attribute'==_0x4efcc1['type']);this['_refreshAttributeSuggestionsChain'](_0x371155);const _0x211c41=_0x4dcd29['filter'](_0x55295d=>!_0x55295d['isMultiRange']&&'attribute'!=_0x55295d['type']),_0x394617=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x155ded=>!_0x155ded['isMultiRange']&&'attribute'!=_0x155ded['type']),_0x4937bb=_0x394617['filter'](_0x53d400=>!_0x83ccc8['has'](_0x53d400)),_0x1bc58c=new Map(_0x394617['map'](_0x52d99a=>[_0x52d99a,this['_suggestionFactory']['getSuggestionCallback'](_0x52d99a['type'],_0x52d99a['subType'],'chain')])),_0x478342=new Map(_0x394617['map'](_0x116eac=>[_0x116eac,_0x116eac['getFirstRange']()])),_0x46bc68=new Set(),_0x4b9bc0=new Set();for(let _0x34bb41=0x0;_0x34bb41<_0x211c41['length'];_0x34bb41++)_0x47bfb9(_0x211c41[_0x34bb41],_0x211c41,_0x34bb41+0x1);for(let _0x17eb78=0x0;_0x17eb78<_0x211c41['length'];_0x17eb78++)_0x47bfb9(_0x211c41[_0x17eb78],_0x4937bb,0x0);const _0x1dc0b6=new Set();for(let _0x1245a7=0x0;_0x1245a7<_0x211c41['length'];_0x1245a7++){const _0x2570d9=_0x211c41[_0x1245a7];!_0x4b9bc0['has'](_0x2570d9)&&_0x2570d9['previous']&&(_0x1dc0b6['add'](_0x2570d9['previous']),_0x2570d9['previous']['next']===_0x2570d9&&(_0x2570d9['previous']['next']=null),_0x2570d9['previous']=null),!_0x46bc68['has'](_0x2570d9)&&_0x2570d9['next']&&(_0x1dc0b6['add'](_0x2570d9['next']),_0x2570d9['next']['previous']===_0x2570d9&&(_0x2570d9['next']['previous']=null),_0x2570d9['next']=null);}function _0x47bfb9(_0x192ae4,_0x44181e,_0x3f0435){for(let _0x341eab=_0x3f0435;_0x341eab<_0x44181e['length'];_0x341eab++){const _0x3a929c=_0x61a3b8(_0x192ae4,_0x44181e[_0x341eab]);_0x3a929c&&(_0x3a929c[0x0]['next']=_0x3a929c[0x1],_0x3a929c[0x1]['previous']=_0x3a929c[0x0],_0x46bc68['add'](_0x3a929c[0x0]),_0x4b9bc0['add'](_0x3a929c[0x1]));}}function _0x61a3b8(_0x14e3f4,_0x121f65){if(_0x14e3f4['author']['id']!==_0x121f65['author']['id'])return null;const _0x4bfea3=_0x1bc58c['get'](_0x14e3f4)(_0x14e3f4,_0x121f65,_0x478342['get'](_0x14e3f4),_0x478342['get'](_0x121f65));if(!_0x4bfea3)return null;return _0x1bc58c['get'](_0x121f65)(_0x14e3f4,_0x121f65,_0x478342['get'](_0x14e3f4),_0x478342['get'](_0x121f65))?_0x4bfea3[0x1]['commentThread']&&_0x4bfea3[0x1]['commentThread']['length']?null:_0x4bfea3:null;}_0x1dc0b6['size']&&this['_refreshSuggestionsChain'](_0x1dc0b6);}['_refreshAttributeSuggestionsChain'](_0x3c872a){if(0x0==_0x3c872a['length'])return;const _0x2a443e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x268f34=>'attribute'==_0x268f34['type']&&_0x268f34['_isDataLoaded']),_0x2a20b4=[],_0x5140e8=new Map();for(const _0x19ee79 of _0x2a443e){const _0x40ecf2=_0x3623f6(_0x19ee79['attributes']);_0x5140e8['has'](_0x40ecf2)||(_0x5140e8['set'](_0x40ecf2,_0x2a20b4['length']),_0x2a20b4['push']([]));const _0x54094d=_0x5140e8['get'](_0x40ecf2);_0x2a20b4[_0x54094d]['push'](_0x19ee79);}!(function(){_0x2a20b4['sort']((_0x446eca,_0x22dac5)=>{const _0x35dbe5=_0x446eca[0x0]['createdAt'],_0x1d3d0c=_0x22dac5[0x0]['createdAt'];return _0x35dbe5==_0x1d3d0c?_0x446eca[0x0]['attributes']['groupId']<_0x22dac5[0x0]['attributes']['groupId']?-0x1:0x1:_0x35dbe5<_0x1d3d0c?-0x1:0x1;});for(const _0x5b7784 of _0x2a20b4)_0x5b7784['sort']((_0x55fa3b,_0x6f1098)=>_0x55fa3b['id']<_0x6f1098['id']?-0x1:0x1);}());for(let _0x4f56f4=0x0;_0x4f56f4<_0x2a20b4['length'];_0x4f56f4++){if(0x0==_0x2a20b4[_0x4f56f4]['length'])continue;const _0xa649fe=[];for(let _0x35a271=_0x4f56f4+0x1;_0x35a271<_0x2a20b4['length'];_0x35a271++)0x0!=_0x2a20b4[_0x35a271]['length']&&_0x198ea8(_0x2a20b4[_0x4f56f4],_0x2a20b4[_0x35a271])&&_0xa649fe['push'](_0x35a271);for(const _0x200073 of _0xa649fe)_0x2a20b4[_0x4f56f4]=_0x2a20b4[_0x4f56f4]['concat'](_0x2a20b4[_0x200073]),_0x2a20b4[_0x200073]=[];}for(const _0x42f692 of _0x2a20b4)for(let _0x383d7b=0x0;_0x383d7b<_0x42f692['length'];_0x383d7b++){const _0x9e0ee8=_0x42f692[_0x383d7b+0x1]||null;_0x42f692[_0x383d7b]['next']!==_0x9e0ee8&&(_0x42f692[_0x383d7b]['next']=_0x9e0ee8);}for(const _0x2b0fec of _0x2a20b4)for(let _0xeca9c4=0x0;_0xeca9c4<_0x2b0fec['length'];_0xeca9c4++){const _0x251997=_0x2b0fec[_0xeca9c4-0x1]||null;_0x2b0fec[_0xeca9c4]['previous']!==_0x251997&&(_0x2b0fec[_0xeca9c4]['previous']=_0x251997);}function _0x198ea8(_0x6c405a,_0x5571ae){if(_0x6c405a[0x0]['attributes']['groupId']!==_0x5571ae[0x0]['attributes']['groupId']&&_0x6c405a[0x0]['author']!==_0x5571ae[0x0]['author'])return!0x1;if(!function(_0x589e11,_0x59a422){if(!_0x589e11['hasComments']&&!_0x59a422['hasComments'])return!0x0;if(_0x589e11['hasComments']&&_0x59a422['hasComments'])return!0x1;if(_0x589e11['hasComments']&&_0x59a422['createdAt']<_0x589e11['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59a422['hasComments']&&_0x589e11['createdAt']<_0x59a422['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6c405a[0x0],_0x5571ae[0x0]))return!0x1;const _0x42d09a=Gt(_0x6c405a[0x0]['attributes'],['groupId','trackingSessionId']),_0x1325f0=Gt(_0x5571ae[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xbcf3a8(_0x42d09a,_0x1325f0))return!0x1;if(_0x6c405a[0x0]['attributes']['groupId']==_0x5571ae[0x0]['attributes']['groupId'])return!0x0;if(_0x6c405a[0x0]['attributes']['trackingSessionId']!==_0x5571ae[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6c405a['every'](_0x318dac=>_0x5571ae['some'](_0x22f77b=>_0x318dac['getFirstRange']()['isEqual'](_0x22f77b['getFirstRange']())))&&_0x5571ae['every'](_0xf7fa23=>_0x6c405a['some'](_0x22811e=>_0xf7fa23['getFirstRange']()['isEqual'](_0x22811e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22528a){const _0x35e0a4=Array['from'](_0x22528a),_0x582375=this['getSuggestions']({'skipNotAttached':!0x0}),_0x26aa9d=_0x582375['filter'](_0x261b88=>!_0x22528a['has'](_0x261b88)),_0x2dad9b=new Map(_0x35e0a4['map'](_0x34f5da=>[_0x34f5da,this['_suggestionFactory']['getSuggestionCallback'](_0x34f5da['type'],_0x34f5da['subType'],'join')])),_0x39cfa5=new Map(_0x582375['map'](_0x51e8dc=>[_0x51e8dc,_0x51e8dc['getRanges']()]));for(let _0x1509b0=0x0;_0x1509b0<_0x35e0a4['length'];_0x1509b0++){if(_0x4e227e(this,_0x35e0a4[_0x1509b0],_0x35e0a4,_0x1509b0+0x1))return!0x0;}for(let _0x9eec4d=0x0;_0x9eec4d<_0x35e0a4['length'];_0x9eec4d++){if(_0x4e227e(this,_0x35e0a4[_0x9eec4d],_0x26aa9d,0x0))return!0x0;}return!0x1;function _0x4e227e(_0x4a2cfa,_0x4db4bb,_0x9ad596,_0x5b69f0){for(let _0x29df9b=_0x5b69f0;_0x29df9b<_0x9ad596['length'];_0x29df9b++){const _0x4b2edb=_0x9ad596[_0x29df9b];if(_0x4b2edb['type']!==_0x4db4bb['type']||_0x4b2edb['author']['id']!==_0x4db4bb['author']['id']||_0x4b2edb['subType']!==_0x4db4bb['subType'])continue;if(!ee(_0x4db4bb,_0x4b2edb))continue;if('attribute'==_0x4db4bb['type']&&_0x4db4bb['data']['oldValue']!=_0x4b2edb['data']['oldValue'])continue;if('attribute'==_0x4db4bb['type']&&_0x4a2cfa['_isBlockAttribute'](_0x4db4bb['data']['key']))continue;if('formatBlock'==_0x4db4bb['type']){const _0x1178cf=_0x4a2cfa['editor']['model'],_0xf5808d=_0x4db4bb['getContainedElement']();if(_0xf5808d&&(_0x1178cf['schema']['isObject'](_0xf5808d)||_0x1178cf['schema']['isLimit'](_0xf5808d)))continue;}const _0x51e71d=_0x2dad9b['get'](_0x4db4bb),_0x254080=_0x39cfa5['get'](_0x4db4bb),_0x2cf295=_0x39cfa5['get'](_0x4b2edb),_0x3953ac=_0x4db4bb['commentThread']&&_0x4db4bb['commentThread']['length'],_0x544d42=_0x4b2edb['commentThread']&&_0x4b2edb['commentThread']['length'];if(!_0x3953ac&&_0x51e71d(_0x2cf295,_0x254080))return _0x4a2cfa['_joinSuggestions'](_0x4b2edb,_0x4db4bb),_0x39cfa5['delete'](_0x4db4bb),!0x0;if(!_0x544d42&&_0x51e71d(_0x254080,_0x2cf295))return _0x4a2cfa['_joinSuggestions'](_0x4db4bb,_0x4b2edb),_0x39cfa5['delete'](_0x4b2edb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x495886,_0x10d4eb){if(_0x495886['isMultiRange']){for(const _0x5cb79d of _0x10d4eb['getRanges']())_0x495886['addRange'](_0x5cb79d);}else{const _0x5a7992=_0x10d4eb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x495886,this['_model']['createRange'](_0x495886['getFirstRange']()['start'],_0x5a7992));}_0x10d4eb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x70c093,_0x546d2b,_0x1e7d25){const _0x4c23e1=_0x70c093['startsWith']('format')||_0x70c093['startsWith']('attribute')?'FORMATTING':_0x70c093['toUpperCase']();return o(this['editor']['locale'],_0x546d2b+'_'+_0x4c23e1+'_SUGGESTION_ANNOUNCEMENT',_0x1e7d25);}['_initAriaMarkerChangeAnnouncements'](){const _0x39c1fc=this['editor'];if(!_0x39c1fc['ui'])return;const {ariaLiveAnnouncer:_0x56866e}=_0x39c1fc['ui'];_0x18e029(this['_model'],({left:_0x9fbcb9,entered:_0x3fce4e})=>{for(const _0x111557 of _0x9fbcb9){const {group:_0x571272,type:_0x3f9805}=this['_splitMarkerName'](_0x111557['name']);if('suggestion'===_0x571272){_0x56866e['announce'](this['_getMarkerAnnouncementText'](_0x3f9805,'LEAVE'));break;}}for(const _0x5ca3e9 of _0x3fce4e){const {group:_0x2fec63,type:_0x358529}=this['_splitMarkerName'](_0x5ca3e9['name']);if('suggestion'===_0x2fec63){_0x56866e['announce'](this['_getMarkerAnnouncementText'](_0x358529,'ENTER',_0x59e26d(_0x23d5dc)));break;}}});}['_processAttributeChanges'](_0x3f7edd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x54804b=this['editor'],_0xee8ec4=_0x54804b['model']['document']['differ']['getChanges']();if(0x0==_0xee8ec4['length'])return!0x1;const _0x339c78=[],_0x77aab6=_0xee8ec4['filter'](_0x38ea4b=>'attribute'==_0x38ea4b['type']),_0x12aab0=_0xee8ec4['filter'](_0x16184d=>'insert'==_0x16184d['type']&&'$text'!=_0x16184d['name']),_0x5398c7=_0xee8ec4['filter'](_0x3372d3=>'remove'==_0x3372d3['type']&&'$text'!=_0x3372d3['name']);for(const _0x5c5e8a of _0x77aab6)_0x339c78['push']({'key':_0x5c5e8a['attributeKey'],'newValue':_0x5c5e8a['attributeNewValue'],'oldValue':_0x5c5e8a['attributeOldValue'],'range':Yt(_0x5c5e8a['range'],_0x54804b['model'])});for(const _0xdc4e18 of _0x12aab0){const _0x3c45b4=_0x5398c7['find'](_0xf908b2=>_0xf908b2['position']['isEqual'](_0xdc4e18['position']));_0x3c45b4&&_0x339c78['push']({'key':m,'newValue':_0xdc4e18['name'],'oldValue':_0x3c45b4['name'],'range':_0x54804b['model']['createRangeOn'](_0xdc4e18['position']['nodeAfter'])});}return 0x0!=_0x339c78['length']&&this['_reduceExistingSuggestions'](_0x3f7edd,_0x339c78);}['_processAttributeSuggestions'](_0x1c3d9a){let _0x992f1d=!0x1;const _0x3dd21a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7cfbdd=>_0x7cfbdd['data']['newRange']&&_0x7cfbdd['name']['startsWith']('suggestion:attribute:'));for(const _0x39c0c9 of _0x3dd21a){const {subType:_0xdf0500,id:_0x635b2c}=this['_splitMarkerName'](_0x39c0c9['name']),_0x224148=_0xdf0500['split']('|')[0x0];for(const _0x139f6f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x139f6f['id']!=_0x635b2c&&'attribute'==_0x139f6f['type']&&_0x139f6f['data']&&_0x139f6f['data']['key']==_0x224148&&_0x139f6f['getFirstRange']()['isIntersecting'](_0x39c0c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x139f6f,_0x39c0c9['data']['newRange'],_0x1c3d9a),_0x992f1d=!0x0);}return _0x992f1d;}['recordAttributeChanges'](_0x2debbc){this['_recordAttributeSuggestions']=!0x0,_0x2debbc();}['_isRegisteredAttribute'](_0x2a9fa0){const _0x5a34a1=this['_isBlockAttribute'](_0x2a9fa0),_0x438dbd=this['_isInlineAttribute'](_0x2a9fa0);return _0x5a34a1||_0x438dbd;}['_reduceExistingSuggestions'](_0x2decc6,_0x9beee){if(0x0==_0x9beee['length'])return!0x1;let _0x1ae900=!0x1;for(const _0x50f236 of _0x9beee){const _0x22fe2e=this['_findSuggestions'](_0x50f236['range'],'attribute')['filter'](_0x4ae0f7=>!_0x4ae0f7['meta']['isNextTo'])['map'](_0x4217a4=>_0x4217a4['suggestion']),_0x3d2ce0=_0x3623f6({'newValue':_0x50f236['newValue']});_0x22fe2e['filter'](_0x245861=>{const [_0x3c7c65,_0x1f2870]=_0x245861['subType']['split']('|');return _0x3c7c65==_0x50f236['key']&&_0x1f2870!=_0x3d2ce0;})['forEach'](_0x412fc8=>{this['_reduceSuggestionAttributeRange'](_0x412fc8,_0x50f236['range'],_0x2decc6),_0x1ae900=!0x0;});}return _0x1ae900;}['_reduceSuggestionAttributeRange'](_0xb4c947,_0x1d6801,_0x38ddd4){const _0x56af08=_0xb4c947['getFirstRange']()['getDifference'](_0x1d6801);0x0!==_0x56af08['length']?0x1!==_0x56af08['length']?this['_breakSuggestionMarker'](_0xb4c947,_0x1d6801['start'],_0x1d6801['end']):this['_setSuggestionRange'](_0xb4c947,_0x56af08[0x0]):_0x38ddd4['removeMarker'](_0xb4c947['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9f4c16){this['_editor']=_0x9f4c16,this['_model']=_0x9f4c16['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x213ec3,_0x2392f7,_0x22473f,_0x4629c5,_0xca1f91,_0x3e87cb,_0x126bf0){return new R(this['_model'],{'type':_0x213ec3,'subType':_0x2392f7,'id':_0x22473f,'originalSuggestionId':_0x126bf0,'author':_0x4629c5,'creator':_0x4629c5,'attributes':_0xca1f91,'onAttributesChange':_0x3e87cb,'onAccept':(..._0x3e3a7a)=>this['getSuggestionCallback'](_0x213ec3,_0x2392f7,'accept')(..._0x3e3a7a),'onDiscard':(..._0x56be65)=>this['getSuggestionCallback'](_0x213ec3,_0x2392f7,'discard')(..._0x56be65)});}['registerCustomCallback'](_0x51aa7b,_0x76235,_0x43cc41,_0x474635){const _0x49d482=_0x51aa7b+':'+_0x76235+':'+_0x43cc41;this['_customCallbacks']['set'](_0x49d482,_0x474635);}['getSuggestionCallback'](_0x2711a1,_0x326567,_0x19a047){const _0x7370a3=_0x2711a1+':'+_0x326567+':'+_0x19a047;return this['_customCallbacks']['get'](_0x7370a3)||this['_defaultCallbacks']['get'](_0x2711a1+':'+_0x19a047);}['_registerDefaultCallbacks'](){const _0x1d31a3=()=>!0x1,_0x56a3af=_0x360ef5=>{_0x360ef5['sort']((_0x25018f,_0x5b5d42)=>_0x25018f['start']['isBefore'](_0x5b5d42['start'])?0x1:-0x1),this['_model']['change'](_0x274549=>{for(const _0x4eda27 of _0x360ef5){let _0xe3272e;_0xe3272e=_0x4eda27['end']['isAtEnd']&&_0x4eda27['end']['parent']==_0x4eda27['start']['nodeAfter']?_0x274549['createSelection'](_0x4eda27['start']['nodeAfter'],'on'):_0x274549['createSelection'](_0x4eda27),this['_model']['deleteContent'](_0xe3272e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3844fb=(_0x5406bd,_0x1c0503)=>{_0x1c0503&&this['_model']['change'](_0x283354=>{const {commandName:_0x4ade24,commandParams:_0xfe8470=[]}=_0x1c0503,_0x135c6a=_0x5406bd['map'](_0x4cdda6=>(Kt(_0x4cdda6)&&(_0x4cdda6=this['_model']['createRange'](_0x4cdda6['end'])),_0x4cdda6))['filter'](_0x4dd329=>'$graveyard'!==_0x4dd329['root']['rootName']);if(_0x135c6a['length']<0x1)return;const _0xb67f84=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x23103a=>_0x35191f['fromRange'](_0x23103a));_0x283354['setSelection'](_0x135c6a);for(const _0x3b2910 of this['_editor']['commands']['commands']())_0x3b2910['refresh']();_0xfe8470['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4ade24,..._0xfe8470);const _0x185515=_0xb67f84['filter'](_0x3176fb=>'$graveyard'!=_0x3176fb['root']['rootName']);_0x185515['length']>0x0&&_0x283354['setSelection'](_0x185515);for(const _0x1eae23 of _0xb67f84)_0x1eae23['detach']();});},_0x1b34ba=(_0x4c8331,_0x41b3f3)=>0x1==_0x4c8331['length']&&0x1==_0x41b3f3['length']&&_0x4c8331[0x0]['end']['isEqual'](_0x41b3f3[0x0]['start']),_0x50d4d0=(_0x7130b6,_0x5579ee,_0xaf38d8,_0x5d1e3a)=>te(_0x7130b6,_0x5579ee,_0xaf38d8,_0x5d1e3a)?[_0x7130b6,_0x5579ee]:te(_0x5579ee,_0x7130b6,_0x5d1e3a,_0xaf38d8)?[_0x5579ee,_0x7130b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d31a3),this['_defaultCallbacks']['set']('insertion:discard',_0x56a3af),this['_defaultCallbacks']['set']('insertion:join',_0x1b34ba),this['_defaultCallbacks']['set']('insertion:chain',_0x50d4d0),this['_defaultCallbacks']['set']('deletion:accept',_0x56a3af),this['_defaultCallbacks']['set']('deletion:discard',_0x1d31a3),this['_defaultCallbacks']['set']('deletion:join',_0x1b34ba),this['_defaultCallbacks']['set']('deletion:chain',_0x50d4d0),this['_defaultCallbacks']['set']('formatInline:accept',_0x3844fb),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d31a3),this['_defaultCallbacks']['set']('formatInline:join',_0x1b34ba),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d31a3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3844fb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d31a3),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b34ba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d31a3),this['_defaultCallbacks']['set']('attribute:accept',_0x1d31a3),this['_defaultCallbacks']['set']('attribute:discard',(_0x5bfb63,_0x18cc5d)=>{if(!_0x18cc5d)return;const _0x4b6f5b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x55ec96=>{if(_0x18cc5d['key']==m)for(const _0x4e94ad of _0x5bfb63){const _0x4f90f5=_0x4e94ad['start']['nodeAfter'],_0x167a4d=_0x18cc5d['oldValue'];_0x55ec96['rename'](_0x4f90f5,_0x167a4d);}else{if(_0x4b6f5b['_isBlockAttribute'](_0x18cc5d['key'])){for(const _0x4b5e91 of _0x5bfb63)void 0x0!==_0x18cc5d['oldValue']?_0x55ec96['setAttribute'](_0x18cc5d['key'],_0x18cc5d['oldValue'],_0x4b5e91['start']['nodeAfter']):_0x55ec96['removeAttribute'](_0x18cc5d['key'],_0x4b5e91['start']['nodeAfter']);}else{for(const _0x5257bc of _0x5bfb63)_0x18cc5d['oldValue']?_0x55ec96['setAttribute'](_0x18cc5d['key'],_0x18cc5d['oldValue'],_0x5257bc):_0x55ec96['removeAttribute'](_0x18cc5d['key'],_0x5257bc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b34ba);}}function Jt(_0x35a538,_0x57f9b6,_0x487fb9){for(const _0xaaa1f9 of _0x57f9b6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xaaa1f9['root']==_0xaaa1f9)return!0x1;if(!_0x487fb9['containsItem'](_0xaaa1f9))return!0x1;if(_0x35a538['isObject'](_0xaaa1f9)||_0x35a538['isLimit'](_0xaaa1f9))return!0x0;}return!0x1;}function Kt(_0x45f994){return _0x45f994['end']['parent']==_0x45f994['start']['nodeAfter']&&_0x45f994['end']['isAtStart'];}function Ht(_0x16948b,_0x385c65,_0x24536b,_0x5b3554){const _0x5d8b4f=_0x54505d=>!_0x54505d['item']['is']('$textProxy')&&!_0x5b3554['isObject'](_0x54505d['item']),_0x9e8610=_0x16948b['start']['getLastMatchingPosition'](_0x5d8b4f),_0xdcead8=_0x16948b['end']['getLastMatchingPosition'](_0x5d8b4f,{'direction':'backward'});return(!_0x16948b['start']['isEqual'](_0x9e8610)||!_0x16948b['end']['isEqual'](_0xdcead8))&&(_0x9e8610['isBefore'](_0xdcead8)?_0x24536b['updateMarker'](_0x385c65,{'range':_0x24536b['createRange'](_0x9e8610,_0xdcead8)}):_0x24536b['removeMarker'](_0x385c65),!0x0);}function Wt(_0x299566){return _0x3623f6(_0x299566);}function qt(_0x5aa6cb){const _0x571d86=_0x5aa6cb['start']['nodeAfter'];return _0x571d86&&_0x571d86['is']('element');}function zt(_0x5da4fa){return Kt(_0x5da4fa)||function(_0x1fd812){return _0x1fd812['start']['parent']==_0x1fd812['end']['nodeBefore']&&_0x1fd812['start']['isAtEnd'];}(_0x5da4fa);}function Qt(_0x25d4bf,_0x1337f8){try{const _0x413e38=_0x25d4bf['getRange']();for(const _0x95dad of _0x1337f8)if(_0x25d4bf!==_0x95dad&&_0x413e38&&_0x413e38['isIntersecting'](_0x95dad['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x36a8fb,_0x3b847a){const _0x50aebf=_0x36a8fb['end']['nodeBefore'];if(_0x50aebf&&_0x50aebf['is']('element')&&_0x3b847a['schema']['isBlock'](_0x50aebf)&&!_0x3b847a['schema']['isObject'](_0x50aebf)){const _0x5ca169=_0x3b847a['createPositionAt'](_0x50aebf,'end');return _0x3b847a['createRange'](_0x36a8fb['start'],_0x5ca169);}return _0x36a8fb;}function Yt(_0x258ca8,_0x1d5553){return null==_0x258ca8['end']['nodeBefore']&&_0x258ca8['end']['parent']==_0x258ca8['start']['nodeAfter']?Zt(_0x258ca8['start']['nodeAfter'],_0x1d5553):_0x258ca8;}function Zt(_0x2e9145,_0x380c84){const _0x31dd7f=_0x380c84['schema']['isObject'](_0x2e9145)||_0x380c84['schema']['isSelectable'](_0x2e9145);return _0x380c84['createRange'](_0x380c84['createPositionAt'](_0x2e9145,'before'),_0x31dd7f?_0x380c84['createPositionAfter'](_0x2e9145):_0x380c84['createPositionAt'](_0x2e9145,'end'));}function te(_0x4a9a10,_0x33f45e,_0x24efbc,_0xd829e){return!!ee(_0x4a9a10,_0x33f45e)&&_0x24efbc['end']['isEqual'](_0xd829e['start']);}function ee(_0x24eebd,_0x19b504){if(!_0x24eebd['_isDataLoaded']||!_0x19b504['_isDataLoaded'])return!0x1;const _0x6815b2=new Set(Object['keys'](_0x24eebd['attributes'])),_0x3962b6=new Set(Object['keys'](_0x19b504['attributes']));if(_0x6815b2['delete']('groupId'),_0x3962b6['delete']('groupId'),0x0==_0x6815b2['size']&&0x0==_0x3962b6['size'])return!0x0;if(_0x6815b2['size']!=_0x3962b6['size'])return!0x1;const _0x50b072={..._0x24eebd['attributes']},_0xb3185b={..._0x19b504['attributes']};return delete _0x50b072['groupId'],delete _0xb3185b['groupId'],JSON['stringify'](_0x50b072)==JSON['stringify'](_0xb3185b);}function ie(_0x45ea82,_0x4bb6c5){const _0x34a6cd=ne(_0x45ea82['attributes']),_0x219a15=ne(_0x4bb6c5);if(!_0x45ea82['_isDataLoaded'])return!0x1;for(const _0x2c17b7 of Object['keys'](_0x219a15))if(!_0xbcf3a8(_0x34a6cd[_0x2c17b7],_0x219a15[_0x2c17b7]))return!0x1;return!0x0;}function ne(_0x5af057){const _0x15d650=Object['assign']({},_0x5af057);return delete _0x15d650['skipNestingCheck'],delete _0x15d650['tablePasteChainId'],_0x15d650;}function se(_0x198884){return _0x198884['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x525c04(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ea0ba,_0xe3bb52,_0x433b79,_0x460307){super(),this['model']=_0xe3bb52,this['view']=_0x433b79,this['commentThreadController']=_0x460307,this['_editor']=_0x5ea0ba,this['_acceptCommand']=_0x5ea0ba['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ea0ba['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3acf46,_0x4558f5)=>_0x3acf46||_0x4558f5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x482993=>_0x482993&&this['_editor']['model']['canEditAt'](_0xe3bb52['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x19ea75=>_0x19ea75&&this['_editor']['model']['canEditAt'](_0xe3bb52['getRanges']())),this['_pendingAction']=null,_0x433b79['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x433b79,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x433b79,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x433b79,'change:isDirty',()=>{_0x433b79['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 _0x268272=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x268272);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x302463{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a19d8,_0x28b975,_0x435a1a,_0xa68d21){super(_0x4a19d8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x567ab5(_0x4a19d8,o(_0x4a19d8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28b975['authoredAt']),this['bind']('authoredAt')['to'](_0x28b975),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',_0x28b975,'authoredAt',this,'descriptionParts',(_0x6dd4f5,_0x5140e4,_0x4c8c24)=>{const _0x5e0a42=_0x4c8c24['map'](_0x3c7e95=>ls(_0x3c7e95['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x6dd4f5-0x1,_0x28b975['author']['name'],_0x5140e4?_0xa68d21['formatDateTime'](_0x5140e4):'',new DOMParser()['parseFromString'](_0x5e0a42,'text/html')['body']['textContent']]);}),this['focusables']=new _0x180284(),this['focusTracker']=new _0x1bc739(),this['keystrokes']=new _0x31729b(),this['focusCycler']=new _0x4a1c64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x571466=>_0x571466['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28b975,this['_localUser']=_0x435a1a,this['_config']=_0xa68d21,_0xa68d21['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48487a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x541524}=this['_config'];this['commentsListView']=new _0x541524(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',_0x2d6000=>_0x2d6000+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b6459,_0x4a4337)=>_0x3b6459||!!_0x4a4337);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x248557}=this['_config'],_0x55e4f6=new _0x248557(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cd486=_0x55e4f6['commentInputView'];return _0x55e4f6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cd486,'value',(_0x119549,_0x2fa580,_0x1a3b31)=>!!_0x1a3b31||_0x119549&&!_0x2fa580),_0x5cd486['on']('submit',(_0x3ee81d,_0x3ee096)=>{this['fire']('addComment',_0x3ee096),_0x5cd486['editor']['setData']('');}),_0x5cd486['on']('cancel',()=>this['focus']()),_0x5cd486['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55e4f6;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1aac25,_0x530c56,_0xa74538,_0x37de0e){super(_0x1aac25,_0x530c56,_0xa74538,_0x37de0e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x129ca9=>_0x129ca9&&_0x129ca9[0x0]?_0x129ca9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x171017,_0xc2568a)=>{let _0x2ad345='';for(const _0x4c1026 of _0x171017)_0x2ad345+='<p>'+ls(_0x4c1026['content'],_0x4c1026['color'])+'</p>';return _0xc2568a?_0x2ad345:_0x50f9b3(_0x2ad345,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37de0e['SuggestionView'](_0x1aac25,_0x530c56,{'formatDateTime':_0x37de0e['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 _0x437f9b=this['bindTemplate'],_0x13cc83=[this['suggestionView']];return this['commentsListView']&&_0x13cc83['push'](this['commentsListView']),this['commentThreadInputView']&&_0x13cc83['push'](this['commentThreadInputView']),_0x13cc83['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x437f9b['if']('isActive','ck-suggestion-wrapper--active'),_0x437f9b['to']('type',_0x4e1fe3=>'ck-suggestion-'+_0x4e1fe3),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':_0x437f9b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x13cc83};}['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 Le extends _0x302463{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3188f8,_0x477d49,_0x6b50a3){super(_0x3188f8),this['_model']=_0x477d49,this['_config']=_0x6b50a3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x477d49),this['acceptButton']=this['_createButton'](o(_0x3188f8,'Accept\x20suggestion'),_0x5ba9a4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3188f8,'Discard\x20suggestion'),_0x410e59,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a34b5(_0x3188f8,_0x477d49['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x180284([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bc739(),this['keystrokes']=new _0x31729b(),this['focusCycler']=new _0x4a1c64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x460020=>_0x460020['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32e40b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32e40b['innerHTML']=this['description'],this['on']('change:description',(_0x693956,_0x3e4a30,_0x4b9983)=>{_0x32e40b['innerHTML']=_0x4b9983;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x138f55=this['bindTemplate'],_0x5b52ef=[{'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':_0x138f55['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x138f55['to']('authoredAt',_0x4f6a7b=>this['_config']['formatDateTime'](_0x4f6a7b))}]}]},{'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']&&_0x5b52ef['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':_0x5b52ef}]};}['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'](_0x553bdd,_0x2dd3f1,_0x4d2f6f,_0x4cb53c,_0x17d82a){const _0x35f4c9=new _0x1ed099(this['locale']);return _0x35f4c9['set']({'label':_0x553bdd,'icon':_0x2dd3f1,'tooltip':!0x0,'tooltipPosition':_0x17d82a}),_0x35f4c9['extendTemplate']({'attributes':{'class':_0x4d2f6f}}),_0x35f4c9['on']('execute',()=>{this['fire'](_0x4cb53c,this['_model']['id']);}),_0x35f4c9;}['_setupKeyboardNavigation'](){const _0x3f67ba=this['element'];this['keystrokes']['listenTo'](_0x3f67ba);for(const _0x2b6066 of this['focusables'])this['focusTracker']['add'](_0x2b6066['element']),this['keystrokes']['listenTo'](_0x2b6066['element']);this['keystrokes']['set']('enter',(_0xb1808b,_0x4d0ae1)=>{_0x3f67ba===_0xb1808b['target']&&(this['focusCycler']['focusFirst'](),_0x4d0ae1());}),this['keystrokes']['set']('esc',(_0x519eb5,_0x12ea15)=>{_0x3f67ba!==_0x519eb5['target']&&(this['focus'](),_0x12ea15());});}}class u extends _0x1bca86{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x52e77f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c1cb8){super(_0x3c1cb8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xd9ed01=this['editor']['config'];_0xd9ed01['define']('trackChanges.SuggestionThreadView',Te),_0xd9ed01['define']('trackChanges.SuggestionView',Le),_0xd9ed01['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xd9ed01['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xebde14,_0x503369){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1e31ab,_0x3d5b84]of this['_handleControllerBuffer']){const _0x1ca9dd=this['_suggestionToController']['has'](_0x1e31ab);_0x1ca9dd||_0x3d5b84?_0x1ca9dd&&_0x3d5b84&&this['_destroyController'](_0x1e31ab):this['_initializeController'](_0x1e31ab);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xebde14,_0x503369);}['init'](){const _0x3177a7=this['editor'],_0xf2ba81=_0x3177a7['plugins']['get']('TrackChangesEditing'),_0x5ea29f=_0x3177a7['plugins']['get']('Annotations'),_0x38c3fb=_0x3177a7['plugins']['get']('EditorAnnotations'),_0x123752=_0x3177a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x38c3fb['addSourceCollector'](()=>{const _0x426644=[];for(const [_0x18a258,_0x412c01]of Array['from'](this['_suggestionToController'])){const _0x58ce2a=_0x18a258['getAllAdjacentSuggestions'](),_0x75f2d6=[];for(const _0x57e19e of _0x58ce2a){if(!_0x57e19e['isInContent'])continue;if(_0x57e19e['isMultiRange']){_0x75f2d6['push'](..._0x57e19e['getRanges']());continue;}const _0xfd3a67=_0x57e19e['getFirstRange']();if(_0x75f2d6['length']>0x0){const _0x3abfff=_0x75f2d6[0x0]['getJoined'](_0xfd3a67);if(_0x3abfff){_0x75f2d6[0x0]=_0x3abfff;continue;}}_0x75f2d6['push'](_0xfd3a67);}_0x426644['push']([_0x412c01['view'],_0x75f2d6]);}return _0x426644;}),this['listenTo'](_0xf2ba81,'suggestionLoaded',(_0x591d13,_0x3a8b88)=>{this['listenTo'](_0x3a8b88,'change:previous',(_0x1d3612,_0x3cabb7,_0x2a6390,_0x53603f)=>{_0x3a8b88['isInContent']&&(null==_0x2a6390?(this['_updateController'](_0x53603f['head']),this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x1)):(this['_updateController'](_0x2a6390['head']),null==_0x53603f&&this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x0)));}),null!==_0x3a8b88['previous']?this['_updateController'](_0x3a8b88['head']):this['_handleSuggestionControllerDelayed'](_0x3a8b88,!0x1);}),this['listenTo'](_0xf2ba81,'suggestionUnloaded',(_0x2c248b,_0x2a6812,_0x271556)=>{this['stopListening'](_0x2a6812,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2a6812),this['_suggestionToController']['has'](_0x2a6812)&&this['_destroyController'](_0x2a6812),_0x271556&&this['_updateController'](_0x271556['head']);}),this['listenTo'](_0xf2ba81,'suggestionChanged',(_0x1f246c,_0x1d06fc)=>{this['_updateController'](_0x1d06fc);}),this['listenTo'](_0x5ea29f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x123752,'addComment',(_0x2eaf38,{threadId:_0x5d7ba3,isFromAdapter:_0x477564})=>{if(_0x477564||!_0xf2ba81['hasSuggestion'](_0x5d7ba3))return;const _0x157727=_0xf2ba81['getSuggestion'](_0x5d7ba3);this['_suggestionToController']['get'](_0x157727)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1ef2c4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd8f0fb;for(const _0x5e8dde in _0x1ef2c4){const _0xc16d41=_0x5e8dde,_0xb96cfc=_0x1ef2c4[_0xc16d41];if('trackChangesLicenseKeyValid'==_0xb96cfc||'trackChangesLicenseKeyInvalid'==_0xb96cfc||'trackChangesLicenseKeyExpired'==_0xb96cfc||'trackChangesLicenseKeyDomainLimit'==_0xb96cfc||'trackChangesLicenseKeyNotAllowed'==_0xb96cfc||'trackChangesLicenseKeyEvaluationLimit'==_0xb96cfc||'trackChangesLicenseKeyTrialLimit'==_0xb96cfc||'trackChangesLicenseKeyUsageLimit'==_0xb96cfc){delete _0x1ef2c4[_0xc16d41],_0xd8f0fb=_0xb96cfc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xd8f0fb&&_0x1ef2c4['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x369b4a){const _0x355c27=this['_suggestionToController']['get'](_0x369b4a);if(!_0x355c27)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x355c27['view'])||null;}['getSuggestionForAnnotation'](_0x3c623d){const _0x13837e=this['_viewToController']['get'](_0x3c623d['innerView']);return _0x13837e?_0x13837e['model']:null;}['_refreshActiveMarkers'](){const _0x520153=this['editor']['plugins']['get']('Annotations'),_0x51bd05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d3bd5=Array['from'](_0x520153['activeAnnotations'],_0x2339d5=>_0x2339d5['innerView'])['filter'](_0x514565=>this['_viewToController']['has'](_0x514565)),_0x2e2582=[];for(const _0x1594f9 of _0x1d3bd5){const _0x3132d8=this['_viewToController']['get'](_0x1594f9)['model']['getAllAdjacentSuggestions']();_0x2e2582['push'](..._0x3132d8['reduce']((_0x1572f4,_0x59be12)=>[..._0x1572f4,..._0x59be12['getMarkerNames']()],[]));}_0x51bd05['activeMarkers']=_0x2e2582;}['_addUIComponentsToFactory'](){const _0x339b0b=this['editor'],_0x1c5133=_0x339b0b['locale'],_0x45991f=o(_0x1c5133,'Track\x20changes'),_0x55b070=new _0xeedcbe([{'type':'switchbutton','model':new _0x277d09({'withText':!0x0,'isToggleable':!0x0,'label':_0x45991f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x339b0b['plugins']['has']('TrackChangesPreview')&&_0x55b070['addMany']([{'type':'separator'},{'type':'button','model':new _0x277d09({'withText':!0x0,'label':o(_0x1c5133,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3e90ff of _0x55b070)if(ve(_0x3e90ff)){const _0x397ed9=_0x339b0b['commands']['get'](_0x3e90ff['model']['commandName']);_0x3e90ff['model']['bind']('isOn','isEnabled')['to'](_0x397ed9,'value','isEnabled');}_0x339b0b['ui']['componentFactory']['add']('trackChanges',_0x450cb3=>this['_createToolbarButton'](_0x450cb3,_0x55b070,_0x45991f)),_0x339b0b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4ac93c=>this['_createMenuBarMenu'](_0x4ac93c,_0x55b070,_0x45991f));}['_createToolbarButton'](_0x2a4033,_0x1d1b69,_0x1a2bff){const _0x4fafb9=_0x4694c4(_0x2a4033,_0x44697c),_0x2a4b88=this['editor']['commands']['get']('trackChanges');_0x4fafb9['buttonView']['set']({'tooltip':_0x1a2bff,'label':_0x1a2bff,'icon':_0x140ece}),_0x4fafb9['buttonView']['bind']('isOn')['to'](_0x2a4b88,'value'),_0x4fafb9['buttonView']['on']('execute',()=>{_0x2a4b88['execute'](),this['editor']['editing']['view']['focus']();}),_0xe21f8e(_0x4fafb9,_0x1d1b69,{'role':'menu'});const _0x3ea275=[];for(const _0x9dc53e of _0x1d1b69)ve(_0x9dc53e)&&_0x3ea275['push'](this['editor']['commands']['get'](_0x9dc53e['model']['commandName']));const _0x3f873f=_0x4fafb9['buttonView'];return _0x3f873f['actionView']['unbind']('isEnabled'),_0x3f873f['arrowView']['unbind']('isEnabled'),_0x3f873f['actionView']['bind']('isEnabled')['to'](_0x2a4b88,'isEnabled'),_0x3f873f['arrowView']['bind']('isEnabled')['toMany'](_0x3ea275,'isEnabled',(..._0xf4005b)=>_0xf4005b['some'](_0x3f387b=>_0x3f387b)),_0x4fafb9['on']('execute',_0x97d698=>{this['editor']['execute'](_0x97d698['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fafb9;}['_createMenuBarMenu'](_0x3f9f0b,_0x56518b,_0x11a787){const _0x2968d=new _0x257436(_0x3f9f0b),_0x5b7e55=this['editor']['commands']['get']('trackChanges');_0x2968d['buttonView']['set']({'label':_0x11a787,'icon':_0x140ece});const _0x5b7e32=new _0x579a05(_0x3f9f0b);for(const _0x150448 of _0x56518b){if('separator'==_0x150448['type']){_0x5b7e32['items']['add'](new _0x509549(_0x3f9f0b));continue;}const _0x4ccd5b=new _0x2989f2(_0x3f9f0b,_0x2968d),_0x2ee763=new _0x553772(_0x3f9f0b),_0x4f9025=_0x150448['model'];_0x2ee763['bind'](...Object['keys'](_0x4f9025))['to'](_0x4f9025),_0x2ee763['delegate']('execute')['to'](_0x2968d),_0x2ee763['on']('execute',()=>{this['editor']['execute'](_0x4f9025['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ccd5b['children']['add'](_0x2ee763),_0x5b7e32['items']['add'](_0x4ccd5b);}return _0x2968d['bind']('isEnabled')['to'](_0x5b7e55,'isEnabled'),_0x2968d['panelView']['children']['add'](_0x5b7e32),_0x2968d;}['_initializeController'](_0x4f15d3){const _0x497f75=this['editor'],_0x253374=_0x497f75['config'],_0x4413f6=_0x497f75['plugins']['get']('Annotations'),_0x5d7c59=_0x497f75['plugins']['get']('CommentsRepository'),_0x4f3af0=_0x497f75['plugins']['get']('EditorAnnotations'),_0x4ea818=_0x497f75['plugins']['get'](_0x52e77f)['me'],_0x1fa422=_0x253374['get']('trackChanges')['SuggestionThreadView'],_0x1164c5=_0x253374['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a8d70,CommentThreadInputView:_0x5bafe1}=_0x497f75['plugins']['get']('CommentsUI');let _0x522d8c,_0x4e854a,_0x5d80d4;this['_annotationViews']['has'](_0x4f15d3['id'])?(_0x4e854a=this['_annotationViews']['get'](_0x4f15d3['id']),_0x522d8c=_0x4e854a['mainView']):(_0x522d8c=new _0x1fa422(_0x497f75['locale'],_0x4f15d3,_0x4ea818,{'disableComments':this['_disableComments'],'editorConfig':{..._0x253374['get']('comments.editorConfig'),'licenseKey':_0x253374['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x253374['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x253374['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x253374['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47b19c(_0x253374['get']('locale'),_0x497f75['locale']),'CommentView':_0x253374['get']('comments')['CommentView'],'CommentsListView':_0x1a8d70,'CommentThreadInputView':_0x5bafe1,'SuggestionView':_0x1164c5}),_0x522d8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x497f75['editing']['view']['focus']();}),_0x522d8c['suggestionView']['discardButton']['on']('execute',()=>{_0x497f75['editing']['view']['focus']();}),_0x4e854a=_0x4413f6['createAnnotationView'](this['editor']['locale'],_0x522d8c),_0x4e854a['bind']('isDirty')['to'](_0x522d8c,'isDirty'),_0x4e854a['bind']('length')['to'](_0x522d8c),_0x4e854a['bind']('type')['to'](_0x522d8c,'type',_0x36c228=>'suggestion-'+_0x36c228),_0x522d8c['on']('escape',()=>{_0x5d80d4['fire']('escape');}),this['_annotationViews']['set'](_0x4f15d3['id'],_0x4e854a));const _0x4326c5=_0x5d7c59['createCommentThreadController'](_0x4f15d3['commentThread'],_0x522d8c),_0x48dc00=new be(_0x497f75,_0x4f15d3,_0x522d8c,_0x4326c5),_0x1aeb56=_0x4f15d3['getAllAdjacentSuggestions']()['filter'](_0x5241bf=>_0x5241bf['isInContent']);_0x522d8c['descriptionParts']=_0x497f75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1aeb56),this['_suggestionToController']['set'](_0x4f15d3,_0x48dc00),this['_viewToController']['set'](_0x522d8c,_0x48dc00);const _0x13a98d=()=>{const _0x51681d=[],_0xb87e8a=_0x4f15d3['getAllAdjacentSuggestions']()['filter'](_0x2aa5dd=>_0x2aa5dd['isInContent']);for(const _0x201d05 of _0xb87e8a)_0x51681d['push'](..._0x201d05['getMarkers']());return _0x1bd493(_0x497f75['editing'],_0x51681d);};_0x5d80d4=_0x4413f6['createAnnotation']({'view':_0x4e854a,'target':_0x13a98d,'type':()=>'suggestion-'+_0x48dc00['view']['type'],'isVisible':!!_0x13a98d()}),_0x5d7c59['_bindAnnotationToEditors'](_0x522d8c,_0x5d80d4),_0x4413f6['add'](_0x5d80d4),_0x4f3af0['registerAnnotation'](_0x5d80d4);}['_destroyController'](_0x5b92e7){const _0xa7d25e=this['editor']['plugins']['get']('CommentsRepository'),_0x31b427=this['editor']['plugins']['get']('Annotations'),_0x86b825=this['_suggestionToController']['get'](_0x5b92e7),_0xfcaeec=_0x86b825['view'],_0x9c4521=_0x31b427['getByInnerView'](_0xfcaeec);_0xa7d25e['_unbindEditors'](_0xfcaeec),_0x9c4521&&_0x31b427['remove'](_0x9c4521),this['_suggestionToController']['delete'](_0x5b92e7),this['_viewToController']['delete'](_0xfcaeec),_0x86b825['destroy']();}['_updateController'](_0x48aec0){if(!_0x48aec0['isInContent']||!this['_suggestionToController']['has'](_0x48aec0))return;const _0x1508a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35561a=this['_suggestionToController']['get'](_0x48aec0),_0x177574=_0x48aec0['getAllAdjacentSuggestions']();_0x35561a['view']['descriptionParts']=_0x1508a0['descriptionFactory']['getDescriptions'](_0x177574);}['destroy'](){for(const _0x250910 of this['_suggestionToController']['keys']())this['_destroyController'](_0x250910);for(const _0x375935 of this['_annotationViews']['values']())_0x375935['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x535422){return'model'in _0x535422;}class Ve extends _0x1bca86{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x48c4dc){this['editor']['plugins']['get'](d)['adapter']=_0x48c4dc;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2cd4a8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2cd4a8);}['getSuggestions']({skipNotAttached:_0x508165=!0x1,toJSON:_0xf0215b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x508165,'toJSON':_0xf0215b});}['getSuggestion'](_0xa5d22d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa5d22d);}}const p=['Pagination'];class ce extends _0x1bca86{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3252ab=this['editor'];if(_0x3252ab['config']['define']('trackChangesData.editorCreator',_0x1ba7a3=>{const _0x5c2d59=_0x3252ab['model']['document']['getRootNames']()['reduce']((_0xd2b5cc,_0x41d932)=>(_0xd2b5cc[_0x41d932]='',_0xd2b5cc),{});return _0x3252ab['constructor']['create'](_0x5c2d59,_0x1ba7a3);}),'function'!=typeof _0x3252ab['config']['get']('trackChangesData')['editorCreator'])throw new _0x4b5846('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14b3b3){return P(this['editor'],!0x0,_0x14b3b3);}['getDataWithDiscardedSuggestions'](_0x54aaef){return P(this['editor'],!0x1,_0x54aaef);}}class ze extends _0x1bca86{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x517f8d){function _0x3200bd(_0x6c1122){return _0x6c1122['map'](_0x282f2b=>String['fromCharCode'](_0x282f2b))['join']('');}super(_0x517f8d),this['result']='end',_0x517f8d[_0x3200bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3200bd([0x76,0x69,0x65,0x77])][_0x3200bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3200bd([0x61,0x75,0x74,0x6f]),_0x517f8d[_0x3200bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3200bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3200bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3200bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3200bd([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 Ke(_0x2f1d7e){return void 0x0!==_0x2f1d7e['getRootsAttributes'];}async function P(_0x5d395d,_0x4abbda,_0x981963){const _0x3a322a=_0x9f66cf(_0x5d395d,p);_0x3a322a['plugins']['push'](d,ze),_0x3a322a['rootsAttributes']=Ke(_0x5d395d)?_0x5d395d['getRootsAttributes']():void 0x0;const _0x3acd84=document['createDocumentFragment'](),_0x8a01e9=_0x5d395d['config']['get']('trackChangesData')['editorCreator'],_0x34c5e0=await _0x8a01e9(_0x3a322a,()=>function(_0x18d358){const _0x488df7=document['createElement']('div');return _0x18d358['appendChild'](_0x488df7),_0x488df7;}(_0x3acd84));!function(_0x1250eb,_0x5849cc){const _0x1628b9=_0x1250eb['model']['document']['getRootNames']()['reduce']((_0x2025fd,_0x4e1c3a)=>(_0x2025fd[_0x4e1c3a]=_0x1250eb['data']['get']({'rootName':_0x4e1c3a}),_0x2025fd),{}),_0x3c8c13=_0x1250eb['plugins']['get']('Users')['users']['map'](_0x42bac7=>({'id':_0x42bac7['id'],'name':_0x42bac7['name']})),_0x57cdc9=_0x1250eb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3aec9d=_0x1250eb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d9cc6=_0x5849cc['plugins']['get']('Users'),_0x53f94c=_0x5849cc['plugins']['get']('TrackChangesEditing'),_0x403b61=_0x5849cc['plugins']['get']('CommentsRepository');for(const _0x55ce85 of _0x403b61['getCommentThreads']())_0x55ce85['remove']();for(const _0x5df6ab of _0x3c8c13)_0x3d9cc6['getUser'](_0x5df6ab['id'])||_0x3d9cc6['addUser'](_0x5df6ab);_0x3d9cc6['me']||_0x3d9cc6['useAnonymousUser']();for(const _0xe850f8 of _0x3aec9d)_0x403b61['addCommentThread'](_0xe850f8);for(const _0x3ddb64 of _0x57cdc9)_0x53f94c['addSuggestionData'](_0x3ddb64);_0x5849cc['data']['set'](_0x1628b9);}(_0x5d395d,_0x34c5e0),_0x34c5e0['execute'](_0x4abbda?'acceptAllSuggestions':'discardAllSuggestions');const _0x576a73=Ke(_0x34c5e0)?_0x34c5e0['getFullData'](_0x981963):_0x34c5e0['data']['get'](_0x981963);return await _0x34c5e0['destroy'](),_0x576a73;}class _e extends _0x302463{['options'];constructor(_0x33f20c,_0x8be254){super(_0x33f20c),this['options']=_0x8be254,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'](_0x178b88,_0x545496){if(!this['element'])return;const _0x2e2802=[];for(const [_0x432ab3,_0x35e665]of _0x178b88){const _0x460bf3=document['createElement']('div');_0x460bf3['setAttribute']('data-ck-root-name',_0x432ab3),_0x460bf3['className']=_0x35e665['classes']+'\x20ck-track-changes-preview__root-container',_0x460bf3['innerHTML']=_0x35e665['content'],_0x2e2802['push'](_0x460bf3);}_0x545496(this['element'],_0x2e2802),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x19904a{constructor(_0x282dd8){super(_0x282dd8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x440634=this['editor'],_0x3bd3f8=_0x440634['locale'],_0x575005=_0x440634['plugins']['get']('Dialog');let _0x27bd8a;const _0x58bf3b=function(_0x1cd3be){const _0x2dc7ec={};if('editables'in _0x1cd3be['ui']['view']){for(const [_0x251725,_0x5d8d3e]of Object['entries'](_0x1cd3be['ui']['view']['editables']))_0x2dc7ec[_0x251725]=_0x5d8d3e['element'];}else _0x2dc7ec[_0x1cd3be['model']['document']['getRootNames']()[0x0]]=_0x1cd3be['ui']['view']['editable']['element'];return _0x2dc7ec;}(_0x440634),_0x181075=function(_0x262f89){let _0x1d464b=0x0;for(const _0x16bdeb of Object['values'](_0x262f89))_0x1d464b=Math['max'](_0x1d464b,_0x16bdeb['getBoundingClientRect']()['width']);let _0x32222a=0x0;for(const _0x4f3b64 of Object['values'](_0x262f89))_0x32222a+=_0x4f3b64['getBoundingClientRect']()['height'];const _0xaa8d62=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x35b6ba=Math['min'](_0x32222a,_0xaa8d62);return{'width':_0x1d464b,'height':_0x35b6ba};}(_0x58bf3b);_0x575005['show']({'id':'finalContentPreview','title':o(_0x3bd3f8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x3bd3f8,{'dialogRects':_0x181075}),'onHide':()=>{_0x27bd8a['detachFromDom']();},'onShow':()=>{_0x440634['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1dd52b=>{const _0x12d298=this['_standarizeRootsData'](_0x1dd52b,_0x440634,_0x58bf3b);_0x575005['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x12d298,_0x440634['config']['get']('trackChanges.preview.renderFunction'));}),_0x27bd8a=new _0x483eeb(_0x3bd3f8,[_0x575005['view']]),_0x27bd8a['attachToDom'](),_0x27bd8a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x440634['once']('destroy',()=>{_0x27bd8a['detachFromDom']();});const _0x15d086=_0x575005['view']['headerView']['class'];_0x575005['view']['headerView']['class']=_0x15d086?_0x15d086+'\x20ck-reset_all':'ck-reset_all',_0x575005['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x575005['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x51cc69=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2bd0f4=_0x51cc69['previewMode'],_0x22b489={};if('$labels'===_0x2bd0f4){for(const _0x285ac5 of _0x51cc69['getMergeFieldsIds']())_0x22b489[_0x285ac5]=_0x51cc69['getLabel'](_0x285ac5)||_0x285ac5;}else{const _0x16b3b4='$defaultValues'===_0x2bd0f4?_0x51cc69['getDefaultValues']():_0x51cc69['getDataSetValues'](_0x2bd0f4,!0x0);for(const _0x270ae7 of Object['entries'](_0x16b3b4)){const [_0x4fc53c,_0x431836]=_0x270ae7;_0x22b489[_0x4fc53c]=null!==_0x431836?_0x431836:_0x51cc69['getLabel'](_0x4fc53c)||_0x4fc53c;}}return{'mergeFieldsData':_0x22b489};}['_standarizeRootsData'](_0x207d12,_0xd34e18,_0x29a56a){let _0x32ed31;if('string'==typeof _0x207d12){const _0x36de71=_0xd34e18['model']['document']['getRootNames']()[0x0];_0x32ed31={[_0x36de71]:_0x207d12};}else _0x32ed31=_0x207d12;const _0x12bc48=this['_fixMediaEmbeds'](_0x32ed31,_0xd34e18),_0x43a710=function(_0x48089a,_0x1cebfe){for(const [_0x2e8bd1,_0x1d3dc8]of _0x48089a)_0x1d3dc8['classes']=_0x1cebfe[_0x2e8bd1]['classList']['value']['replace']('ck-focused','');return _0x48089a;}(this['_sortRoots'](_0xd34e18)['reduce']((_0x496c0b,_0x36a444)=>(_0x496c0b['push']([_0x36a444,{'content':_0x12bc48[_0x36a444],'classes':''}]),_0x496c0b),[]),_0x29a56a);return _0x43a710;}['_fixMediaEmbeds'](_0x175b02,_0x35c174){if(!_0x35c174['plugins']['has']('MediaEmbedEditing'))return _0x175b02;const _0x284edd=_0x35c174['plugins']['get']('MediaEmbedEditing');for(const [_0x5f35ef,_0x40b92a]of Object['entries'](_0x175b02)){const _0x3a0b60=document['createElement']('div');_0x3a0b60['innerHTML']=_0x40b92a,(_0x3a0b60['querySelectorAll']('figure.media')['forEach'](_0x3dc8e0=>{const _0x4920b8=_0x3dc8e0['querySelector']('oembed');if(_0x4920b8){const _0x50bf05=_0x4920b8['getAttribute']('url');if(_0x50bf05){const _0x3f2ec5=_0x284edd['registry']['getMediaViewElement'](new _0x4606e3(_0x35c174['editing']['view']['document']),_0x50bf05,{'elementName':'','renderForEditingView':!0x0}),_0x164ae7=document['createElement']('div');_0x164ae7['classList']['add']('ck-media__wrapper'),_0x3f2ec5['render'](_0x164ae7,_0x35c174['editing']['view']['domConverter']),_0x4920b8['replaceWith'](_0x164ae7);}}}),_0x175b02[_0x5f35ef]=_0x3a0b60['innerHTML']);}return _0x175b02;}['_sortRoots'](_0x26015a){if(!function(_0x4d29e2){return void 0x0!==_0x4d29e2['getRootsAttributes'];}(_0x26015a))return _0x26015a['model']['document']['getRootNames']();const _0x4244a3=[],_0x2d5984=new Map();for(const _0x4213d3 of _0x26015a['model']['document']['getRootNames']()){const _0x105692=_0x26015a['editing']['view']['getDomRoot'](_0x4213d3)['getClientRects']()['item'](0x0);_0x4244a3['push'](_0x4213d3),_0x2d5984['set'](_0x4213d3,_0x105692);}return _0x4244a3['sort']((_0xcfa3e9,_0x57c92e)=>{const _0x3e3168=_0x2d5984['get'](_0xcfa3e9),_0x18eae3=_0x2d5984['get'](_0x57c92e);return _0x3e3168['y']-_0x18eae3['y']||_0x3e3168['x']-_0x18eae3['x'];}),_0x4244a3;}}class Xe extends _0x1bca86{static get['requires'](){return[ce,_0x21e0ca];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ec90c){super(_0x3ec90c),_0x3ec90c['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x3ec90c['config']['define']('trackChanges.preview.renderFunction',(_0x1a2850,_0x29d239)=>{for(const _0x502f5a of _0x29d239)_0x1a2850['appendChild'](_0x502f5a);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|