@ckeditor/ckeditor5-track-changes 46.0.0-alpha.3 → 46.0.0-alpha.5
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/lang/contexts.json +16 -0
- 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.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
|
-
_0x4e3dd6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b7fb5,_0x2acecc){super(),this['id']=_0x2acecc['id'],this['type']=_0x2acecc['type'],this['subType']=_0x2acecc['subType']||null,this['author']=_0x2acecc['author'],this['creator']=_0x2acecc['creator']||_0x2acecc['author'],this['isExternal']=Boolean(_0x2acecc['attributes']&&_0x2acecc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2acecc['originalSuggestionId']||null,this['_model']=_0x3b7fb5,this['_onAccept']=_0x2acecc['onAccept'],this['_onDiscard']=_0x2acecc['onDiscard'],this['_onAttributesChange']=_0x2acecc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2acecc['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 _0x11664a=this;for(;_0x11664a['previous'];)_0x11664a=_0x11664a['previous'];return _0x11664a;}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'](_0x59b89b){this['_markerNames']['add'](_0x59b89b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a4848=>this['_model']['markers']['get'](_0x3a4848))['filter'](_0x43fe05=>_0x43fe05);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x252146=>{for(const _0x2762a8 of this['getMarkers']())_0x252146['removeMarker'](_0x2762a8);}),this['_markerNames']['clear']();}['removeMarker'](_0xa5f1e4){this['_model']['change'](_0x1fc1f6=>{_0x1fc1f6['removeMarker'](_0xa5f1e4);}),this['_markerNames']['delete'](_0xa5f1e4);}['addRange'](_0x531799){const _0x303043='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x303043),this['_model']['change'](_0x5de55b=>{_0x5de55b['addMarker'](_0x303043,{'range':_0x531799,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x38a789){for(const _0xbd010c of this['getRanges']())if(_0xbd010c['isIntersecting'](_0x38a789))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c2548=>_0x3c2548['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x254cb0,_0xf2bcdd)=>[..._0x254cb0,..._0xf2bcdd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c1f59=this['getRanges']();if(0x1!=_0x3c1f59['length'])return null;const _0x22fe15=_0x3c1f59[0x0],_0x4dc6c5=_0x22fe15['start']['nodeAfter'],_0x61c2f2=_0x22fe15['end']['nodeBefore'];return _0x4dc6c5 instanceof _0x565d99?_0x4dc6c5!=_0x61c2f2?null:_0x4dc6c5: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 _0x1b71de=[];let _0x16ac99=this['head'];for(;_0x16ac99;)_0x1b71de['push'](_0x16ac99),_0x16ac99=_0x16ac99['next'];return _0x1b71de;}['setAttribute'](_0xbef5ef,_0x2714af){const _0x317e38=_0x200dfc(this['attributes']);_0x15027b(_0x317e38,_0xbef5ef,_0x2714af),_0x5eb148(_0x317e38,this['attributes'])||(this['attributes']=_0x317e38,this['_onAttributesChange'](_0x317e38));}['removeAttribute'](_0x2e2a29){const _0x1e7c24=_0x200dfc(this['attributes']);_0x24701b(_0x1e7c24,_0x2e2a29),_0x5eb148(_0x1e7c24,this['attributes'])||(this['attributes']=_0x1e7c24,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 _0x2e07c2()['substr'](0x1,0x5);}}function o(_0x41313b,_0x2f8cbf,_0x42e3b0){const _0x36a08e=_0x41313b['t'],t=_0x41313b['t'];switch(_0x2f8cbf){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',_0x42e3b0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42e3b0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42e3b0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42e3b0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42e3b0);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',_0x42e3b0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42e3b0);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',_0x42e3b0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42e3b0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42e3b0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42e3b0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42e3b0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42e3b0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x42e3b0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42e3b0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42e3b0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42e3b0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42e3b0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42e3b0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42e3b0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42e3b0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42e3b0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42e3b0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42e3b0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x42e3b0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x42e3b0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42e3b0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42e3b0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42e3b0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42e3b0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42e3b0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42e3b0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42e3b0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42e3b0);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'},_0x42e3b0);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'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'},_0x42e3b0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42e3b0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42e3b0);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'},_0x42e3b0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x42e3b0);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 _0x36a08e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x42e3b0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x36a08e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x42e3b0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42e3b0);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'},_0x42e3b0);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'},_0x42e3b0);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'},_0x42e3b0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2f8cbf;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xd4354d,_0x18af46){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xd4354d,this['_locale']=_0x18af46;}['getDescriptions'](_0x31b650){const _0x2cffb4=[],_0x46f79a=new Set(),_0x53256d=new Set();for(let _0x49bf55=0x0;_0x49bf55<_0x31b650['length'];_0x49bf55++){const _0x13cced=_0x31b650[_0x49bf55];if(!_0x13cced['isInContent'])continue;const _0x21e3c0=this['_handleCustomCallbackDescription'](_0x13cced);if(_0x21e3c0){if(null!=_0x13cced['subType']){if(_0x46f79a['has'](_0x13cced['subType']))continue;_0x46f79a['add'](_0x13cced['subType']);}_0x2cffb4['push'](_0x21e3c0);}else{if('attribute'==_0x13cced['type']){const _0x281e96=_0x13cced['data']['key'];if(_0x53256d['has'](_0x281e96))continue;_0x53256d['add'](_0x13cced['data']['key']),_0x281e96==m?this['_handleRenameSuggestionDescription'](_0x2cffb4,_0x13cced):this['_handleAttributeSuggestionDescription'](_0x2cffb4,_0x13cced);continue;}'insertion'!=_0x13cced['type']&&'deletion'!=_0x13cced['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cffb4,_0x13cced,_0x31b650[_0x49bf55+0x1]);}}return this['_resolveDescriptionItems'](_0x2cffb4);}['registerDescriptionCallback'](_0x22eebb){this['_customCallbacks']['push'](_0x22eebb);}['registerElementLabel'](_0x1fac73,_0x544d15,_0x4195af=_0x5a860b['normal']){'function'==typeof _0x1fac73?_0x3da967(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1fac73,'label':_0x544d15,'priority':_0x4195af}):this['_itemLabels']['set'](_0x1fac73,_0x544d15);}['registerAttributeLabel'](_0x2452f6,_0x3934f3){this['_attributeLabels']['set'](_0x2452f6,_0x3934f3);}['getItemLabel'](_0x3875fe,_0x47b001=0x1){let _0xc635e1;for(const _0x264662 of this['_itemLabelsCallbacks'])if(_0x264662['matchingCallback'](_0x3875fe)){_0xc635e1=_0x264662['label'];break;}return _0xc635e1||(_0xc635e1=this['_itemLabels']['get'](_0x3875fe['name'])),_0xc635e1?_0xc635e1(_0x47b001):0x1!==_0x47b001?_0x47b001+'\x20'+_0x3875fe['name']+'s':''+_0x3875fe['name'];}['_addDescriptionItems'](_0x1928a3,_0x267115){const _0x24b997=_0x267115['getFirstRange']()['getWalker'](),_0x2cd166='insertion'==_0x267115['type']?'add':'remove';for(const _0x539bb5 of _0x24b997){const _0x20e792=_0x539bb5['item'],_0x45d5f9=_0x1928a3[_0x1928a3['length']-0x1];if(_0x20e792['is']('$textProxy'))_0x45d5f9&&_0x45d5f9['type']['indexOf']('Container')>-0x1&&_0x1928a3['pop'](),_0x45d5f9&&'text'==_0x45d5f9['type']?_0x45d5f9[_0x2cd166]+=_0x20e792['data']:_0x1928a3['push']({'type':'text','add':'add'==_0x2cd166?_0x20e792['data']:'','remove':'remove'==_0x2cd166?_0x20e792['data']:''});else{if(this['_schema']['isObject'](_0x20e792)){const _0x4e74a5=_0x20e792;if(_0x45d5f9&&_0x45d5f9['type']['indexOf']('Container')>-0x1&&_0x1928a3['pop'](),'elementEnd'==_0x539bb5['type'])continue;_0x45d5f9&&_0x45d5f9['type']==_0x2cd166+'Object'&&_0x45d5f9['element']['name']==_0x4e74a5['name']?_0x45d5f9['quantity']++:_0x1928a3['push']({'type':_0x2cd166+'Object','element':_0x4e74a5,'quantity':0x1}),_0x24b997['skip'](_0x1ced44=>!('elementEnd'==_0x1ced44['type']&&_0x1ced44['item']==_0x20e792));}else{if(this['_schema']['checkChild'](_0x20e792,'$text')||_0x20e792['is']('element','softBreak')){const _0x1c4332=_0x20e792;if('add'==_0x2cd166&&'elementStart'==_0x539bb5['type']||'remove'==_0x2cd166&&'elementEnd'==_0x539bb5['type'])continue;if(_0x45d5f9&&-0x1==_0x45d5f9['type']['indexOf']('Container')){'text'==_0x45d5f9['type']&&(_0x45d5f9[_0x2cd166]+='\x0a');continue;}let _0x2d214e;if(_0x2d214e='add'==_0x2cd166?_0x1c4332['nextSibling']&&!this['_schema']['isObject'](_0x1c4332['nextSibling'])?_0x1c4332['nextSibling']:null:_0x1c4332['previousSibling']&&!this['_schema']['isObject'](_0x1c4332['previousSibling'])?_0x1c4332['previousSibling']:null,_0x1c4332['isEmpty']||_0x2d214e&&_0x2d214e['isEmpty']){const _0x4e8e2e=_0x2d214e&&_0x2d214e['isEmpty']?_0x2d214e:_0x1c4332;_0x45d5f9&&_0x45d5f9['type']==_0x2cd166+'EmptyContainer'&&_0x45d5f9['element']['name']==_0x4e8e2e['name']?_0x45d5f9['quantity']++:_0x1928a3['push']({'type':_0x2cd166+'EmptyContainer','element':_0x4e8e2e,'quantity':0x1});}else _0x1928a3['push']({'type':_0x2cd166+'Container','element':_0x1c4332});}}}}}['_resolveDescriptionItems'](_0x10c697){const _0x404748=this['_locale'],_0x21dc66=[],_0x624fa7=[],_0x30d4db=[];for(const _0x507f7b of _0x10c697)switch(_0x507f7b['type']){case'text':if(_0x507f7b['add']=_0x507f7b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x507f7b['remove']=_0x507f7b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x507f7b['add']&&''!=_0x507f7b['remove']){_0x21dc66['push']({'type':'replace','content':o(_0x404748,'REPLACE_TEXT',['\x22'+_0x507f7b['remove']+'\x22','\x22'+_0x507f7b['add']+'\x22'])});continue;}if(null!=_0x507f7b['add']['match'](/^ +$/)){_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0',o(_0x404748,'ELEMENT_SPACE',_0x507f7b['add']['length']))});continue;}if(null!=_0x507f7b['remove']['match'](/^ +$/)){_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0',o(_0x404748,'ELEMENT_SPACE',_0x507f7b['remove']['length']))});continue;}if(''!=_0x507f7b['add']){_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0','\x22'+_0x507f7b['add']+'\x22')});continue;}_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0','\x22'+_0x507f7b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Insert:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Remove:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'addContainer':_0x21dc66['push']({'type':'insertion','content':o(_0x404748,'*Split:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'removeContainer':_0x21dc66['push']({'type':'deletion','content':o(_0x404748,'*Merge:*\x20%0',this['getItemLabel'](_0x507f7b['element'],_0x507f7b['quantity']))});continue;case'addFormat':_0x624fa7['push'](_0x507f7b['key']);continue;case'removeFormat':_0x30d4db['push'](_0x507f7b['key']);continue;default:_0x21dc66['push'](_0x507f7b);}if(_0x624fa7['length']){const _0x39c61b=_0x624fa7['map'](_0x5ac03c=>this['_attributeLabels']['has'](_0x5ac03c)?this['_attributeLabels']['get'](_0x5ac03c):_0x5ac03c)['join'](',\x20');_0x21dc66['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39c61b)});}if(_0x30d4db['length']){const _0xdd20cd=_0x30d4db['map'](_0x250cc5=>this['_attributeLabels']['has'](_0x250cc5)?this['_attributeLabels']['get'](_0x250cc5):_0x250cc5)['join'](',\x20');_0x21dc66['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd20cd)});}return _0x21dc66;}['_handleCustomCallbackDescription'](_0xd75318){for(const _0x928244 of this['_customCallbacks']){const _0x244ced=_0x928244(_0xd75318);if(_0x244ced&&'type'in _0x244ced)return _0x244ced;}}['_handleAttributeSuggestionDescription'](_0x2a61c3,_0x5f097c){const _0x591b9c=_0x5f097c['data'],_0x2234fe=void 0x0===_0x591b9c['newValue']?'removeFormat':'addFormat';_0x2a61c3['push']({'type':_0x2234fe,'key':_0x591b9c['key']});}['_handleRenameSuggestionDescription'](_0x4a0487,_0xddd2ac){_0x4a0487['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xddd2ac['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x17f3ba,_0x3017fd,_0x1dd9e4){if(this['_addDescriptionItems'](_0x17f3ba,_0x3017fd),_0x1dd9e4&&_0x1dd9e4['getFirstRange']()&&!_0x3017fd['getFirstRange']()['end']['isEqual'](_0x1dd9e4['getFirstRange']()['start'])){const _0x3ab138=_0x17f3ba[_0x17f3ba['length']-0x1],_0x29ed9b='insertion'==_0x3017fd['type']?'add':'remove';_0x3ab138&&'text'==_0x3ab138['type']&&(_0x3ab138[_0x29ed9b]+='\x0a');}}}class O extends _0x96746a{['afterInit'](){const _0x6d9fd9=this['editor'],_0x522070=_0x6d9fd9['plugins']['get']('TrackChangesEditing');_0x6d9fd9['commands']['get']('showAIAssistant')&&_0x522070['enableCommand']('showAIAssistant');}}class E extends _0x96746a{['afterInit'](){const _0x996f5f=this['editor'],_0x3769e1=_0x996f5f['locale'];if(!_0x996f5f['plugins']['has']('AlignmentEditing'))return;const _0xe3ca86=_0x996f5f['plugins']['get']('TrackChangesEditing');_0xe3ca86['enableDefaultAttributesIntegration']('alignment'),_0xe3ca86['registerBlockAttribute']('alignment'),_0xe3ca86['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3769e1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c6bfb=this['editor'],_0x487ca8=_0x4c6bfb['locale'];_0x4c6bfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c238a=>{if('formatBlock'!=_0x5c238a['type'])return;const {data:_0x14d098}=_0x5c238a;if(_0x14d098&&'alignment'==_0x14d098['commandName']){const _0xb60359=_0x14d098['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x487ca8,'*Format:*\x20%0',function(_0x3a4ecf){switch(_0x3a4ecf){case'left':return o(_0x487ca8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x487ca8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x487ca8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x487ca8,'FORMAT_JUSTIFY_TEXT');}}(_0xb60359))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x96746a{['afterInit'](){const _0x1da7f0=this['editor'],_0x5572c9=_0x1da7f0['plugins']['get']('TrackChangesEditing'),_0x59bd0c=_0x1da7f0['locale'];for(const _0x1eb15d of ti){if(!_0x1da7f0['plugins']['has'](_0x1eb15d))continue;const _0x494645=_0x1eb15d['slice'](0x0,-0x7)['toLowerCase'](),_0x1b38a2='FORMAT_'+_0x494645['toUpperCase']();_0x5572c9['enableDefaultAttributesIntegration'](_0x494645),_0x5572c9['registerInlineAttribute'](_0x494645),_0x5572c9['descriptionFactory']['registerAttributeLabel'](_0x494645,o(_0x59bd0c,_0x1b38a2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc9fb6=this['editor'],_0x331f7c=_0xdc9fb6['locale'],_0x2ff644=_0xdc9fb6['plugins']['get']('TrackChangesEditing');function _0x33c7c8(_0x442437,_0x1ce93f){_0x2ff644['descriptionFactory']['registerDescriptionCallback'](_0x2cb599=>{if('formatInline'!=_0x2cb599['type'])return;const {data:_0x398696}=_0x2cb599;return _0x398696&&_0x398696['commandName']===_0x442437?_0x398696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x331f7c,'*Format:*\x20%0',_0x1ce93f)}:{'type':'format','content':o(_0x331f7c,'*Remove\x20format:*\x20%0',_0x1ce93f)}:void 0x0;});}_0x33c7c8('bold',o(_0x331f7c,'FORMAT_BOLD')),_0x33c7c8('italic',o(_0x331f7c,'FORMAT_ITALIC')),_0x33c7c8('underline',o(_0x331f7c,'FORMAT_UNDERLINE')),_0x33c7c8('code',o(_0x331f7c,'FORMAT_CODE')),_0x33c7c8('strikethrough',o(_0x331f7c,'FORMAT_STRIKETHROUGH')),_0x33c7c8('subscript',o(_0x331f7c,'FORMAT_SUBSCRIPT')),_0x33c7c8('superscript',o(_0x331f7c,'FORMAT_SUPERSCRIPT'));}}class U extends _0x96746a{['afterInit'](){const _0x513383=this['editor'],_0x376702=_0x513383['locale'];if(!_0x513383['plugins']['has']('BlockQuoteEditing'))return;const _0x4ecc05=_0x513383['plugins']['get']('TrackChangesEditing'),_0x348293=this['editor']['commands']['get']('blockQuote');_0x4ecc05['enableCommand']('blockQuote',(_0x3d1040,_0x4ee29c={})=>{const _0x1f444c=this['editor']['model']['document']['selection'],_0x14a28c=_0x4ee29c&&void 0x0!==_0x4ee29c['forceValue']?_0x4ee29c['forceValue']:!_0x348293['value'];let _0x31b32d=[];if(_0x14a28c){const _0x2f64a7=Array['from'](_0x1f444c['getSelectedBlocks']())['filter'](_0x1959e2=>oo(_0x1959e2)||function(_0x2da8a3,_0x3ca2a2){const _0x1067e9=_0x3ca2a2['checkChild'](_0x2da8a3['parent'],'blockQuote'),_0x4a7bd2=_0x3ca2a2['checkChild'](['$root','blockQuote'],_0x2da8a3);return _0x1067e9&&_0x4a7bd2;}(_0x1959e2,this['editor']['model']['schema']));_0x31b32d=to(_0x2f64a7,_0x513383['model']);}else{const _0x4e2960=Array['from'](_0x1f444c['getSelectedBlocks']())['filter'](_0x352885=>oo(_0x352885));_0x31b32d=to(_0x4e2960,_0x513383['model']);}_0x513383['model']['change'](()=>{for(const _0x243209 of _0x31b32d)_0x4ecc05['markBlockFormat'](_0x243209,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x14a28c}]});});}),_0x4ecc05['descriptionFactory']['registerDescriptionCallback'](_0x3569ed=>{const {data:_0x5a2343}=_0x3569ed;if(_0x5a2343&&'blockQuote'==_0x5a2343['commandName']){const _0x36ce23=o(_0x376702,'ELEMENT_BLOCK_QUOTE');return _0x5a2343['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x376702,'*Set\x20format:*\x20%0',_0x36ce23)}:{'type':'format','content':o(_0x376702,'*Remove\x20format:*\x20%0',_0x36ce23)};}});}}function oo(_0x5ddf87){return'blockQuote'==_0x5ddf87['parent']['name'];}class V extends _0x96746a{['afterInit'](){const _0x411096=this['editor'],_0x1d0847=_0x411096['locale'],_0x4c4631=_0x411096['plugins']['get']('TrackChangesEditing');_0x411096['plugins']['has']('BookmarkEditing')&&(_0x4c4631['enableCommand']('insertBookmark'),_0x4c4631['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c4631['registerBlockAttribute']('bookmarkId'),_0x4c4631['descriptionFactory']['registerDescriptionCallback'](_0x29b558=>{if('insertion'!=_0x29b558['type']&&'deletion'!=_0x29b558['type']&&'attribute'!=_0x29b558['type'])return;const _0x45ee10=_0x29b558['getContainedElement']();if(null==_0x45ee10)return;if(!_0x45ee10['is']('element','bookmark'))return;const _0x5ad1d2=_0x45ee10['getAttribute']('bookmarkId');if('insertion'==_0x29b558['type'])return{'type':'insertion','content':o(_0x1d0847,'*Insert:*\x20%0','\x22'+_0x5ad1d2+'\x22\x20'+o(_0x1d0847,'ELEMENT_BOOKMARK'))};if('deletion'==_0x29b558['type'])return{'type':'deletion','content':o(_0x1d0847,'*Remove:*\x20%0','\x22'+_0x5ad1d2+'\x22\x20'+o(_0x1d0847,'ELEMENT_BOOKMARK'))};const {data:_0x3b0422}=_0x29b558;if(!_0x3b0422||'bookmarkId'!=_0x3b0422['key'])return;return{'type':'format','content':o(_0x1d0847,'*Set\x20bookmark:*\x20%0','\x22'+_0x3b0422['newValue']+'\x22')};}));}}class F extends _0x96746a{['afterInit'](){const _0x2738a7=this['editor'];_0x2738a7['plugins']['has']('CaseChange')&&(_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2738a7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x96746a{['afterInit'](){const _0x4c4602=this['editor'];_0x4c4602['commands']['get']('ckbox')&&_0x4c4602['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x96746a{['afterInit'](){const _0x3e5299=this['editor'];if(!_0x3e5299['plugins']['has']('CodeBlock'))return;const _0x2a4033=_0x3e5299['plugins']['get']('TrackChangesEditing'),_0x5261c2=_0x3e5299['locale'],_0xc70a98=_0x3e5299['config']['get']('codeBlock')['languages'],_0x3ea332=_0x3e5299['commands']['get']('codeBlock');_0x2a4033['enableCommand']('indentCodeBlock'),_0x2a4033['enableCommand']('outdentCodeBlock'),_0x2a4033['enableCommand']('codeBlock',(_0x25fe65,_0x57e10a={})=>{const _0x597602=_0x3e5299['model'],_0x5db262=_0x3e5299['model']['document']['selection'],_0x11c99c=_0x57e10a&&void 0x0!==_0x57e10a['forceValue']?_0x57e10a['forceValue']:!_0x3ea332['value'];let _0x20eed3;_0x57e10a['language']||(_0x57e10a['language']=_0xc70a98[0x0]['language']),_0x20eed3=_0x11c99c?Array['from'](_0x5db262['getSelectedBlocks']())['filter'](_0x2ef039=>co(_0x2ef039)||function(_0xbfce27,_0x3cad6c){if(_0xbfce27['is']('rootElement')||_0x3cad6c['isLimit'](_0xbfce27))return!0x1;return _0x3cad6c['checkChild'](_0xbfce27['parent'],'codeBlock');}(_0x2ef039,_0x597602['schema'])):Array['from'](_0x5db262['getSelectedBlocks']())['filter'](_0x3bc65c=>co(_0x3bc65c));const _0x164ea7=to(_0x20eed3,_0x597602);_0x597602['change'](()=>{for(const _0x176f85 of _0x164ea7)_0x2a4033['markBlockFormat'](_0x176f85,{'commandName':'codeBlock','commandParams':[{..._0x57e10a,'forceValue':_0x11c99c}],'formatGroupId':'blockName'});});}),(_0x2a4033['descriptionFactory']['registerElementLabel']('codeBlock',_0x54409f=>o(_0x5261c2,'ELEMENT_CODE_BLOCK',_0x54409f)),_0x2a4033['descriptionFactory']['registerDescriptionCallback'](_0x51e259=>{if('formatBlock'!=_0x51e259['type'])return;const _0x1263a2=_0x5261c2['t'],{data:_0x31c67b}=_0x51e259;if(!_0x31c67b||'codeBlock'!=_0x31c67b['commandName'])return;const _0x59f65b=_0x31c67b['commandParams'][0x0]['language'],_0x543004=_0x1263a2(_0xc70a98['find'](_0x2db854=>_0x2db854['language']===_0x59f65b)['label'])['toLowerCase']();return _0x31c67b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5261c2,'*Set\x20format:*\x20%0',o(_0x5261c2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x543004+')')}:{'type':'format','content':o(_0x5261c2,'*Remove\x20format:*\x20%0',o(_0x5261c2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3d1384){return'codeBlock'==_0x3d1384['name'];}class J extends _0x96746a{['afterInit'](){const _0x50dba5=this['editor'];if(!_0x50dba5['plugins']['has']('CommentsEditing'))return;_0x50dba5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x46b8f7,_0x2cd84a,_0x54df8f){const _0x397b21=[];for(const _0x28cdcd of _0x2cd84a['getItems']())_0x28cdcd['hasAttribute'](_0x46b8f7)&&_0x397b21['push'](_0x54df8f['createRangeOn'](_0x28cdcd));return _0x397b21;}function De(_0xd36e1d,_0x249c0e,{showActiveMarker:_0x14737d=!0x0}={}){const _0x7d4fb=_0xd36e1d['plugins']['get']('TrackChangesEditing');return(_0x796316,_0x230190,_0x28adc3)=>{if(!_0x28adc3['consumable']['test'](_0x230190['markerRange'],_0x796316['name']))return;const _0x3b1f6d=_0x230190['markerRange']['getWalker'](),_0x41b7a7=_0x230190['markerRange']['start'],_0x3bb35d=_0xd36e1d['model']['schema'];let _0x44fa52=null,_0x5129fa=null,_0x33883d=!0x1,_0x4aa267=!0x1;for(const _0x4265a0 of _0x3b1f6d){const _0x18c122=_0x4265a0['item'];_0x33883d=_0x33883d||_0x3bb35d['isContent'](_0x18c122);const _0x4a3d52=_0x28adc3['mapper']['toViewElement'](_0x18c122);if(_0x4a3d52&&_0x4a3d52['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4265a0['type']&&(_0x3bb35d['isBlock'](_0x18c122)&&!_0x3bb35d['isLimit'](_0x18c122)&&(_0x18c122['nextSibling']||_0x41b7a7['isAtEnd']?_0x44fa52&&_0x44fa52['parent']==_0x18c122||(_0x44fa52=_0x18c122,_0x503b6f(_0x4265a0['previousPosition']),_0x4aa267=!0x0):_0x5129fa=_0x5129fa||_0x4265a0['previousPosition']));}function _0x503b6f(_0xbeb309){const {id:_0x14ea01,authorId:_0x164855}=_0x7d4fb['_splitMarkerName'](_0x230190['markerName']),_0x4acc46=_0x28adc3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x249c0e,'data-suggestion':_0x14ea01,'data-author-id':_0x164855}),_0x22bd36=_0x28adc3['mapper']['toViewPosition'](_0xbeb309);_0x14737d&&_0x7d4fb['activeMarkers']['includes'](_0x230190['markerName'])&&_0x28adc3['writer']['addClass']('ck-suggestion-marker--active',_0x4acc46),_0x28adc3['writer']['insert'](_0x22bd36,_0x4acc46),_0x28adc3['mapper']['bindElementToMarker'](_0x4acc46,_0x230190['markerName']);}_0x33883d||_0x4aa267||!_0x5129fa||_0x503b6f(_0x5129fa);};}class K extends _0x96746a{static get['requires'](){return[_0x22d575];}['init'](){const _0x1cbea7=this['editor'],_0x107dde=_0x1cbea7['plugins']['get']('TrackChangesEditing');_0x107dde['enableCommand']('delete');const _0x5e7425=_0x1cbea7['commands']['get']('deleteForward');_0x107dde['enableCommand']('deleteForward',(_0x4962ac,_0x154181={})=>{const _0x3a3d55=_0x1cbea7['model']['createSelection'](_0x1cbea7['model']['document']['selection']);_0x3a3d55['isCollapsed']&&_0x1cbea7['model']['modifySelection'](_0x3a3d55,{'direction':'forward','unit':_0x154181['unit']});const _0x16d52b=_0x3a3d55['getFirstRange'](),_0x25f7d0=_0x25dfb1['fromRange'](_0x16d52b);let _0x68bc47;_0x4962ac(_0x154181),_0x68bc47='$graveyard'==_0x25f7d0['root']['rootName']?_0x1cbea7['model']['createRange'](_0x16d52b['start']):_0x1cbea7['model']['createRange'](_0x25f7d0['start'],_0x25f7d0['end']),_0x25f7d0['detach'](),_0x1cbea7['model']['enqueueChange'](_0x5e7425['buffer']['batch'],_0x5d8506=>{_0x5e7425['buffer']['lock'](),_0x5d8506['setSelection'](_0x5d8506['createRange'](_0x68bc47['end'])),_0x5e7425['buffer']['unlock']();});}),_0x1cbea7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1cbea7,'merge'),{'priority':'high'}),_0x1cbea7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51dbb0,_0x1105db,_0x36a4c1)=>{_0x36a4c1['options']['showSuggestionHighlights']&&De(_0x1cbea7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51dbb0,_0x1105db,_0x36a4c1);},{'priority':'high'}),_0x1cbea7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x33ff96,_0x58e331,_0x302ab3)=>{const _0x13d253=_0x302ab3['mapper']['markerNameToElements'](_0x58e331['markerName']);if(_0x13d253){for(const _0x13c274 of _0x13d253)_0x13c274['is']('uiElement')&&(_0x302ab3['mapper']['unbindElementFromMarkerName'](_0x13c274,_0x58e331['markerName']),_0x302ab3['writer']['remove'](_0x13c274));}},{'priority':'high'});}}class H extends _0x96746a{['afterInit'](){const _0xfd2c91=this['editor'];if(!_0xfd2c91['plugins']['has']('ListEditing'))return;const _0x192b69=_0xfd2c91['locale'],_0x5297d3=_0xfd2c91['plugins']['get']('TrackChangesEditing'),_0x410fa0=_0xfd2c91['plugins']['has']('TodoListEditing'),_0x4d0c48=!!_0xfd2c91['config']['get']('list.multiBlock');function _0x15fbd2(_0x1bea83){return{'type':'format','content':''+o(_0x192b69,'*Set\x20format:*\x20%0',_0x1bea83)};}function _0xc6107(_0x4f183a){return{'type':'format','content':''+o(_0x192b69,'*Remove\x20format:*\x20%0',_0x4f183a)};}_0x5297d3['enableDefaultAttributesIntegration']('numberedList'),_0x5297d3['enableDefaultAttributesIntegration']('bulletedList'),_0x5297d3['enableDefaultAttributesIntegration']('customNumberedList'),_0x5297d3['enableDefaultAttributesIntegration']('customBulletedList'),_0x5297d3['enableDefaultAttributesIntegration']('indentList'),_0x5297d3['enableDefaultAttributesIntegration']('outdentList'),_0x5297d3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5297d3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5297d3['registerBlockAttribute']('listItemId'),_0x5297d3['registerBlockAttribute']('listType'),_0x5297d3['registerBlockAttribute']('listIndent'),_0x4d0c48&&(_0x5297d3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5297d3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x410fa0&&(_0x5297d3['enableDefaultAttributesIntegration']('todoList'),_0x5297d3['enableDefaultAttributesIntegration']('checkTodoList'),_0x5297d3['registerBlockAttribute']('todoListChecked'),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x4115c1=>{const {data:_0x53a5b1}=_0x4115c1;if(_0x53a5b1&&'todoListChecked'==_0x53a5b1['key'])return{'type':'format','content':_0x53a5b1['newValue']?o(_0x192b69,'*Check\x20item*'):o(_0x192b69,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2596e7=>{if(_0x2596e7['batch']['isUndo'])return!0x1;let _0x4f098c=!0x1;const _0x3aac32=_0x5297d3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x378e7f=>'todoListChecked'===_0x5297d3['_getAttributeKey'](_0x378e7f));for(const _0x21eac1 of _0x3aac32){'todo'!=_0x21eac1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5297d3['_findSuggestions'](_0x21eac1['getFirstRange'](),'attribute')['find'](_0x4742d1=>'listType'===_0x5297d3['_getAttributeKey'](_0x4742d1['suggestion']))||(_0x2596e7['removeMarker'](_0x21eac1['getFirstMarker']()),_0x4f098c=!0x0));}return _0x4f098c;})),_0x5297d3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x192b69,'FORMAT_INDENT'));const _0x34bebf={'type':'format','content':''};_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x61c7bb=>{const {data:_0x433b71}=_0x61c7bb;if(!_0x433b71||'listType'!=_0x433b71['key'])return;let _0x439389=_0x61c7bb['head'];for(;_0x439389;){if(_0x439389['data']&&(('listStyle'==_0x439389['data']['key']||'listMarkerStyle'==_0x439389['data']['key'])&&(_0x439389['data']['newValue']&&'default'!=_0x439389['data']['newValue']||'default'!=_0x439389['data']['oldValue']&&!_0x433b71['newValue'])||!_0x4d0c48&&_0x439389['data']['key']==m))return _0x34bebf;_0x439389=_0x439389['next'];}if(null==_0x433b71['newValue'])switch(_0x433b71['oldValue']){case'bulleted':return _0xc6107(o(_0x192b69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc6107(o(_0x192b69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc6107(o(_0x192b69,'ELEMENT_TODO_LIST'));}switch(_0x433b71['newValue']){case'bulleted':return _0x15fbd2(o(_0x192b69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15fbd2(o(_0x192b69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15fbd2(o(_0x192b69,'ELEMENT_TODO_LIST'));}}),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x4b22d1=>{const {data:_0x1120a6}=_0x4b22d1;if(_0x1120a6&&'listIndent'==_0x1120a6['key'])return null==_0x1120a6['newValue']||null==_0x1120a6['oldValue']&&0x0==_0x1120a6['newValue']?_0x34bebf:void 0x0;}),_0x5297d3['descriptionFactory']['registerDescriptionCallback'](_0x16bc11=>{if('attribute'!=_0x16bc11['type'])return;const {data:_0x13c13f}=_0x16bc11;if(!_0x13c13f||'listItemId'!=_0x13c13f['key'])return;const _0x420615=Te(_0x16bc11);return'newValue'==_0x420615?{'type':'format','content':o(_0x192b69,'*Merge:*\x20list\x20item')}:'oldValue'==_0x420615?{'type':'format','content':o(_0x192b69,'*Split:*\x20list\x20item')}:_0x34bebf;}),_0xfd2c91['model']['document']['registerPostFixer'](_0x1305ba=>this['listItemIdFixer'](_0x1305ba)),_0xfd2c91['model']['document']['registerPostFixer'](_0x870e9d=>this['noTrackChangesFixer'](_0x870e9d)),_0xfd2c91['model']['document']['on']('change:data',(_0x2bbde3,_0x433b66)=>{if(_0x433b66['isUndo']||!_0x433b66['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2dc7fc){if(_0x2dc7fc['batch']['isUndo']||!_0x2dc7fc['batch']['isLocal'])return!0x1;let _0xdaef35=!0x1;const _0x2acafe=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5690df=>_0x5690df['data']&&'listItemId'==_0x5690df['data']['key'])['filter'](_0xbf4d85=>_0xbf4d85['data']['newValue']&&_0xbf4d85['data']['oldValue']);for(const _0x18210b of _0x2acafe)Te(_0x18210b)||(_0x2dc7fc['removeMarker'](_0x18210b['getFirstMarker']()),_0xdaef35=!0x0);return _0xdaef35;}['noTrackChangesFixer'](_0x311c5b){if(_0x311c5b['batch']['isUndo']||!_0x311c5b['batch']['isLocal'])return!0x1;const _0xa4e508=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa4e508['trackChangesCommand']['value'])return!0x1;let _0x406c25=!0x1;const _0x447c6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4fdbaa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5387cf=>'attribute'==_0x5387cf['type'])['filter'](_0x5ce8e5=>_0x447c6d['includes'](_0x5ce8e5['attributeKey']));if(0x0==_0x4fdbaa['length'])return _0x406c25;for(const _0x586889 of _0x4fdbaa){const _0x4f801b=_0xa4e508['_findSuggestions'](_0x586889['range'],'attribute')['filter'](_0x3550c7=>!_0x3550c7['meta']['isNextTo'])['map'](_0x1b2249=>_0x1b2249['suggestion'])['filter'](_0x3372f9=>{const _0x49c83=_0xa4e508['_getAttributeKey'](_0x3372f9);return _0x447c6d['includes'](_0x49c83);});if(_0x4f801b['length']){for(const _0x32745e of _0x4f801b)_0x311c5b['removeMarker'](_0x32745e['getFirstMarker']());_0x406c25=!0x0;}}return _0x406c25;}['assureChains'](){const _0x520baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f79c1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x38824a;const _0x108a46=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x390702=>{if(_0x390702['data']['oldRange']||!_0x390702['data']['newRange'])return null;if(!_0x390702['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3210ed}=_0x520baa['_splitMarkerName'](_0x390702['name']);if(!_0x520baa['hasSuggestion'](_0x3210ed))return null;const _0x5ee3c3=_0x520baa['getSuggestion'](_0x3210ed);return _0x2f79c1['includes'](_0x5ee3c3['data']['key']);})['map'](_0x53fcb0=>{const {id:_0x5456be}=_0x520baa['_splitMarkerName'](_0x53fcb0['name']),_0x4768bf=_0x520baa['getSuggestion'](_0x5456be);return _0x38824a=_0x4768bf['attributes']['groupId'],_0x4768bf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x108a46['size'])return;const _0x5db9f5=_0x520baa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d6d54=>'attribute'==_0x4d6d54['type']&&_0x4d6d54['data']&&_0x2f79c1['includes'](_0x4d6d54['data']['key'])&&_0x4d6d54['attributes']['groupId']!=_0x38824a)['map'](_0x468dad=>({'listItem':_0x468dad['getFirstRange']()['start']['nodeAfter'],'groupId':_0x468dad['attributes']['groupId']})),_0x3cbca3=new Set();for(const {groupId:_0x448111,listItem:_0x20845b}of _0x5db9f5)_0x108a46['has'](_0x20845b)&&_0x3cbca3['add'](_0x448111);for(const _0x466e71 of _0x520baa['getSuggestions']())_0x3cbca3['has'](_0x466e71['attributes']['groupId'])&&_0x466e71['setAttribute']('groupId',_0x38824a);}['_supportLegacySuggestions'](){const _0x1004a3=this['editor'],_0x3a7d03=_0x1004a3['locale'],_0x1a2dad=_0x1004a3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a2dad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7aa780,_0x2b92dd){const _0x4b2c2d=[];for(let _0x21ae8a of _0x7aa780)_0x21ae8a['start']['nodeAfter']===_0x21ae8a['end']['parent']&&(_0x21ae8a=_0x1004a3['model']['createRange'](_0x1004a3['model']['createPositionAt'](_0x21ae8a['start']['nodeAfter'],0x0))),_0x4b2c2d['push'](_0x21ae8a);_0x1004a3['model']['change'](_0x5f5178=>{const _0x3c2fa5=_0x1004a3['model']['document']['selection'],_0xa5eb99=Array['from'](_0x3c2fa5['getRanges']())['map'](_0x1191b7=>_0x25dfb1['fromRange'](_0x1191b7));_0x5f5178['setSelection'](_0x4b2c2d),_0x1004a3['commands']['get'](_0x2b92dd['commandName'])['refresh'](),_0x2b92dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1004a3['execute'](_0x2b92dd['commandName'],..._0x2b92dd['commandParams']),_0x5f5178['setSelection'](_0xa5eb99);for(const _0x4a03f9 of _0xa5eb99)_0x4a03f9['detach']();});}),_0x1a2dad['descriptionFactory']['registerElementLabel'](function(_0x4e7b79){const _0x4a5cfa=!_0x1004a3['model']['schema']['isObject'](_0x4e7b79),_0x27f8f8=_0x4e7b79['previousSibling'],_0x1e3a07=_0x4e7b79['nextSibling'],_0x51015f=_0x4e7b79['getAttribute']('listItemId'),_0x304949=!_0x27f8f8||_0x27f8f8['getAttribute']('listItemId')!==_0x51015f,_0x2a93e3=!_0x1e3a07||_0x1e3a07['getAttribute']('listItemId')!==_0x51015f;return _0x4a5cfa&&Boolean(_0x51015f)&&_0x304949&&_0x2a93e3;},_0x21901f=>o(_0x3a7d03,'ELEMENT_LIST_ITEM',_0x21901f));}['_registerLegacyDescription'](){const _0x84e4a1=this['editor'],_0x5e184e=_0x84e4a1['locale'];function _0x339339(_0x4f23df){const _0x1592ca=_0x84e4a1['commands']['get']('bulletedList')['value'],_0x201c68=_0x84e4a1['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f23df?_0x1592ca:_0x201c68;}_0x84e4a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3aedab){if('formatBlock'!=_0x3aedab['type'])return;const {data:_0x420671}=_0x3aedab;if(!_0x420671)return;let _0x2add32,_0x42f91f,_0x2a27d3,_0x353fe0;switch(_0x420671['commandName']){case'bulletedList':_0x2a27d3=_0x420671['commandParams'][0x0]['forceValue'],_0x353fe0=_0x339339(_0x420671['commandName']),_0x2add32=_0x2a27d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x353fe0&&_0x84e4a1['config']['get']('list.multiBlock')||(_0x2add32='*Change\x20to:*\x20%0'),_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2a27d3=_0x420671['commandParams'][0x0]['forceValue'],_0x353fe0=_0x339339(_0x420671['commandName']),_0x2add32=_0x2a27d3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x353fe0&&_0x84e4a1['config']['get']('list.multiBlock')||(_0x2add32='*Change\x20to:*\x20%0'),_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2add32='*Indent:*\x20%0',_0x42f91f={'type':'format','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2add32=function(_0x1fbc30){const _0x113509=_0x1fbc30['getFirstRange']();let _0x4430f1=_0x113509['start']['nodeAfter'];for(;_0x4430f1&&_0x113509['containsItem'](_0x4430f1);){if(_0x4430f1['getAttribute']('listIndent')>0x0)return!0x1;_0x4430f1=_0x4430f1['nextSibling'];}return!0x0;}(_0x3aedab)?o(_0x5e184e,'*Format:*\x20remove\x20from\x20%0',o(_0x5e184e,function(_0x759f8c){return'ELEMENT_'+_0x759f8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3aedab))):o(_0x5e184e,'*Outdent:*\x20%0',o(_0x5e184e,'ELEMENT_LIST_ITEM')),_0x42f91f={'type':'format','content':_0x2add32};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x420671['multipleBlocks']&&(_0x2add32='*Merge:*\x20%0',_0x42f91f={'type':'deletion','content':o(_0x5e184e,_0x2add32,o(_0x5e184e,'ELEMENT_LIST_ITEM'))});}return _0x42f91f;});}}function Te(_0x31baef){let _0x3ff0ee=_0x31baef['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3ff0ee;){const _0x10dc85=_0x3ff0ee['getAttribute']('listItemId');if(!_0x10dc85)return!0x1;if(_0x10dc85==_0x31baef['data']['newValue'])return'newValue';if(_0x10dc85==_0x31baef['data']['oldValue'])return'oldValue';_0x3ff0ee=_0x3ff0ee['previousSibling'];}return!0x1;}class q extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f1ab2=this['editor']['config']['get']('list.properties'),_0x21b770=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f1ab2['styles']&&(_0x21b770['enableDefaultAttributesIntegration']('listStyle'),_0x21b770['registerBlockAttribute']('listStyle')),_0x5f1ab2['reversed']&&(_0x21b770['enableDefaultAttributesIntegration']('listReversed'),_0x21b770['registerBlockAttribute']('listReversed')),_0x5f1ab2['startIndex']&&(_0x21b770['enableDefaultAttributesIntegration']('listStart'),_0x21b770['registerBlockAttribute']('listStart'));const _0x28c780={'type':'format','content':''};_0x21b770['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x213250=this['editor']['locale'];_0x21b770['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x213250,'FORMAT_LIST_REVERSED')),_0x21b770['descriptionFactory']['registerDescriptionCallback'](_0x5733f2=>{const {data:_0x29f66c}=_0x5733f2;if(_0x29f66c&&'listReversed'==_0x29f66c['key'])return null==_0x29f66c['newValue']||0x0==_0x29f66c['newValue']&&null==_0x29f66c['oldValue']?_0x28c780:void 0x0;}),_0x21b770['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x213250,'FORMAT_LIST_START')),_0x21b770['descriptionFactory']['registerDescriptionCallback'](_0x1a993d=>{const {data:_0x2e05b2}=_0x1a993d;if(_0x2e05b2&&'listStart'==_0x2e05b2['key'])return null==_0x2e05b2['newValue']||0x1==_0x2e05b2['newValue']&&null==_0x2e05b2['oldValue']?_0x28c780:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x15e1ea=>{if(_0x15e1ea['batch']['isUndo'])return!0x1;let _0xf89653=!0x1;const _0x280ec4=_0x21b770['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44ddf8=>{const _0x2f9fba=_0x21b770['_getAttributeKey'](_0x44ddf8);return'listStart'==_0x2f9fba||'listReversed'==_0x2f9fba;});for(const _0x17bc32 of _0x280ec4){const _0x4c37d4=_0x17bc32['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c37d4||'customNumbered'==_0x4c37d4)continue;_0x21b770['_findSuggestions'](_0x17bc32['getFirstRange'](),'attribute')['find'](_0x5d2e90=>'listType'==_0x21b770['_getAttributeKey'](_0x5d2e90['suggestion']))||(_0x15e1ea['removeMarker'](_0x17bc32['getFirstMarker']()),_0xf89653=!0x0);}return _0xf89653;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x348b0f){const _0x48ff8c=this['editor']['locale'],{data:_0x1016cc}=_0x348b0f,_0x4458fe={'type':'format','content':''};if(!_0x1016cc||'listStyle'!=_0x1016cc['key'])return;if(!_0x1016cc['oldValue'])return'default'==_0x1016cc['newValue']?_0x4458fe:{'type':'format','content':''+o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['newValue'])))};if(!_0x1016cc['newValue']){if('default'==_0x1016cc['oldValue'])return _0x4458fe;let _0xe3b60f=_0x348b0f['head'];for(;_0xe3b60f;){if(_0xe3b60f['data']&&'listType'==_0xe3b60f['data']['key']&&_0xe3b60f['data']['newValue'])return _0x4458fe;_0xe3b60f=_0xe3b60f['next'];}return{'type':'format','content':''+o(_0x48ff8c,'*Remove\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['oldValue'])))};}if('default'!=_0x1016cc['newValue'])return{'type':'format','content':''+o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,this['_getTranslationKeyForListStyle'](_0x1016cc['newValue'])))};let _0x33af26=_0x348b0f['head'];for(;_0x33af26;){if(_0x33af26['data']&&'listType'==_0x33af26['data']['key']&&_0x33af26['data']['newValue']&&_0x33af26['data']['oldValue'])return _0x4458fe;_0x33af26=_0x33af26['next'];}return{'type':'format','content':o(_0x48ff8c,'*Set\x20format:*\x20%0',o(_0x48ff8c,'ELEMENT_'+_0x348b0f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ade00=this['editor'],_0x51cd9e=_0x1ade00['locale'];_0x1ade00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bcd3e=>{if('formatBlock'!=_0x2bcd3e['type'])return;const {data:_0x16da0f}=_0x2bcd3e;if(!_0x16da0f)return;let _0x55f14b,_0x121f92;switch(_0x16da0f['commandName']){case'listStyle':_0x55f14b='*Change\x20to:*\x20%0',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b,o(_0x51cd9e,this['_getTranslationKeyForListStyle'](_0x16da0f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x55f14b=_0x16da0f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b)};break;case'listStart':_0x55f14b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x121f92={'type':'format','content':o(_0x51cd9e,_0x55f14b,_0x16da0f['commandParams'][0x0]['startIndex'])};}return _0x121f92;});}['_getTranslationKeyForListStyle'](_0x136e62){return'ELEMENT_'+function(_0x190571){if(Se['includes'](_0x190571))return'bulleted';if(_e['includes'](_0x190571))return'numbered';return null;}(_0x136e62)['toUpperCase']()+'_LIST_'+_0x136e62['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x96746a{['afterInit'](){const _0x1d2fd4=this['editor'];_0x1d2fd4['commands']['get']('emoji')&&_0x1d2fd4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x96746a{static get['requires'](){return[_0x4de75a];}['init'](){const _0xc5240d=this['editor'],_0x370b86=_0xc5240d['plugins']['get']('TrackChangesEditing'),_0x5a956b=_0xc5240d['commands']['get']('enter');_0x370b86['enableCommand']('enter',()=>{_0xc5240d['model']['change'](_0x27b3b9=>{const _0x20b817=_0xc5240d['model']['document']['selection'],_0x5460c8=_0x20b817['getFirstPosition'](),_0x2c0ccd=_0x25dfb1['fromRange'](_0x20b817['getFirstRange']());if(_0x5a956b['enterBlock'](_0x27b3b9)){const _0xb6175d=_0xc5240d['model']['createPositionAt'](_0x5460c8['parent']['nextSibling'],0x0),_0x12a0de=_0x27b3b9['createRange'](_0x5460c8,_0xb6175d);_0x370b86['markInsertion'](_0x12a0de);}else _0x27b3b9['setSelection'](_0x27b3b9['createRange'](_0x2c0ccd['end']));_0x2c0ccd['detach'](),_0x5a956b['fire']('afterExecute',{'writer':_0x27b3b9});});}),_0xc5240d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xc5240d,'split'),{'priority':'high'}),_0xc5240d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d739c,_0x1d7d42,_0x56e1ea)=>{const _0x37ffa5=_0x56e1ea['mapper']['markerNameToElements'](_0x1d7d42['markerName']);if(_0x37ffa5){for(const _0x180f85 of _0x37ffa5)_0x180f85['hasClass']('ck-suggestion-marker-split')&&(_0x56e1ea['mapper']['unbindElementFromMarkerName'](_0x180f85,_0x1d7d42['markerName']),_0x56e1ea['writer']['remove'](_0x180f85));}},{'priority':'high'}),_0xc5240d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a6dfe,_0x12371e,_0x45e621)=>{_0x45e621['options']['showSuggestionHighlights']&&De(_0xc5240d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5a6dfe,_0x12371e,_0x45e621);},{'priority':'high'});}}class Q extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x242b09=this['editor']['plugins']['get']('TrackChangesEditing');_0x242b09['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x242b09['enableCommand']('findNext'),_0x242b09['enableCommand']('findPrevious'),_0x242b09['enableCommand']('replace'),_0x242b09['enableCommand']('replaceAll');}['handleFindCommand'](_0x55945e,_0x24b53f,_0x1fa053={}){const _0x26b0a6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x55945e(_0x25e7aa=>{let _0x5dd8a1=('string'==typeof _0x24b53f?_0x26b0a6['findByTextCallback'](_0x24b53f,_0x1fa053):_0x24b53f)(_0x25e7aa);Array['isArray'](_0x5dd8a1)&&(_0x5dd8a1={'results':_0x5dd8a1,'searchText':'string'==typeof _0x24b53f?_0x24b53f:''});const _0x312a3b=_0x5dd8a1['results']['filter'](_0x1a0276=>!0x1===this['_isInDeletionRange'](_0x1a0276,_0x25e7aa['item']));return{..._0x5dd8a1,'results':_0x312a3b};},_0x1fa053);}['_isInDeletionRange'](_0x2ad64d,_0x2a9d45){const _0x464c8a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a9d45,_0x2ad64d['start']),this['editor']['model']['createPositionAt'](_0x2a9d45,_0x2ad64d['end']));for(const _0x11b465 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x464c8a['getIntersection'](_0x11b465['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 _0x96746a{['afterInit'](){const _0x4baefa=this['editor']['locale'],_0x30c8d8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a6d77,commandName:_0x4ead9e}of eo)this['editor']['plugins']['has'](_0x4a6d77)&&(_0x30c8d8['enableDefaultAttributesIntegration'](_0x4ead9e),_0x30c8d8['registerInlineAttribute'](_0x4ead9e));_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4baefa,'FORMAT_FONT_SIZE')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4baefa,'FORMAT_FONT_FAMILY')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4baefa,'FORMAT_FONT_COLOR')),_0x30c8d8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4baefa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x163b6d=this['editor'],_0x56b206=_0x163b6d['locale'];_0x163b6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ab861=>{const _0x482ef9=_0x56b206['t'];if('formatInline'!=_0x5ab861['type'])return;const {data:_0x12dc41}=_0x5ab861;if(null!=_0x12dc41){if('fontSize'==_0x12dc41['commandName']){const _0x34789=_0x12dc41['commandParams'][0x0]['value'];if(_0x34789){const _0xca9eb2=_0x482ef9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36ff07=>_0x36ff07['model']==_0x34789)['title'])['toLowerCase']();return{'type':'format','content':o(_0x56b206,'*Set\x20font\x20size:*\x20%0',_0xca9eb2)};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12dc41['commandName']){const _0x375778=_0x12dc41['commandParams'][0x0]['value'];return _0x375778?{'type':'format','content':o(_0x56b206,'*Set\x20font\x20family:*\x20%0',_0x375778)}:{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12dc41['commandName']){const _0x230cd7=_0x12dc41['commandParams'][0x0]['value'];if(_0x230cd7){const _0x3c7203=_0x49d89b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1856c5=>_0x1856c5['model']==_0x230cd7);let _0x26a966=_0x230cd7,_0x3ec845='';return _0x3c7203&&(_0x26a966=_0x3c7203['label'],_0x3ec845=_0x482ef9(_0x26a966)['toLowerCase']()),{'type':'format','content':o(_0x56b206,'*Set\x20font\x20color:*\x20%0',_0x3ec845)['trim'](),'color':{'value':_0x230cd7,'title':_0x3ec845||_0x26a966}};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12dc41['commandName']){const _0x1976ca=_0x12dc41['commandParams'][0x0]['value'];if(_0x1976ca){const _0x2fc8bb=_0x49d89b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe0f165=>_0xe0f165['model']==_0x1976ca);let _0x5845f2=_0x1976ca,_0x17fbbb='';return _0x2fc8bb&&(_0x5845f2=_0x2fc8bb['label'],_0x17fbbb=_0x482ef9(_0x5845f2)['toLowerCase']()),{'type':'format','content':o(_0x56b206,'*Set\x20font\x20background\x20color:*\x20%0',_0x17fbbb)['trim'](),'color':{'value':_0x1976ca,'title':_0x17fbbb||_0x5845f2}};}return{'type':'format','content':o(_0x56b206,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x96746a{['afterInit'](){const _0x4ffc27=this['editor'],_0x1c2c43=_0x4ffc27['plugins']['get']('TrackChangesEditing'),_0x1dc432=_0x4ffc27['commands']['get']('copyFormat'),_0x17c3e4=_0x4ffc27['commands']['get']('pasteFormat');_0x1dc432&&_0x17c3e4&&(_0x1c2c43['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c2c43['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b43b9=this['editor'],_0x2db976=_0x3b43b9['locale'];_0x3b43b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199be8=>{if('formatBlock'!=_0x199be8['type']&&'formatInline'!=_0x199be8['type'])return;const {data:_0x390496}=_0x199be8;if(_0x390496&&'pasteFormat'===_0x390496['commandName']){const _0x19ee30=[],_0x4b165c=_0x390496['commandParams'][0x0];for(const [_0x5d7cd6,_0x5084b7]of Object['entries'](_0x4b165c))_0x19ee30['push'](ro(_0x3b43b9,_0x5d7cd6,_0x5084b7));return _0x19ee30['length']?{'type':'format','content':o(_0x2db976,'*Set\x20format\x20to:*\x20%0',_0x19ee30['join'](',\x20'))}:{'type':'format','content':o(_0x2db976,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x44829f,_0x24c147,_0x180192){const _0x56c8f2=_0x44829f['locale']['t'],_0x3258e1=_0x24c147['split'](/(?=[A-Z])/)['join']('\x20'),_0x56e081=_0x56c8f2(_0x3258e1['charAt'](0x0)['toUpperCase']()+_0x3258e1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x180192)return _0x56e081;if('fontColor'===_0x24c147||'fontBackgroundColor'===_0x24c147){const _0x3a7cb0=_0x49d89b(_0x44829f['config']['get']('fontColor.colors'))['find'](_0x2668f8=>_0x2668f8['model']==_0x180192);return _0x56e081+'\x20('+(_0x3a7cb0?_0x56c8f2(_0x3a7cb0['label'])['toLowerCase']():_0x180192)+')';}if('fontSize'===_0x24c147&&isNaN(parseFloat(_0x180192))){const _0x1b5d54=_0x44829f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44829f['config']['get']('fontSize.options'))['find'](_0x415cc8=>_0x415cc8['model']==_0x180192);return _0x56e081+'\x20('+(_0x1b5d54?_0x56c8f2(_0x1b5d54['title'])['toLowerCase']():_0x180192)+')';}return _0x56e081+'\x20('+_0x180192+')';}class Z extends _0x96746a{['_headingOptions'];['afterInit'](){const _0x1eae5a=this['editor'];if(!_0x1eae5a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1eae5a['config']['get']('heading.options');const _0x188169=_0x1eae5a['locale'],_0x1fe564=_0x1eae5a['plugins']['get']('TrackChangesEditing');_0x1fe564['enableDefaultAttributesIntegration']('heading');for(const _0x35296b of this['_headingOptions'])'paragraph'!=_0x35296b['model']&&_0x1fe564['descriptionFactory']['registerElementLabel'](_0x35296b['model'],_0x1c856c=>{const _0x55f461=this['_getHeadingLevel'](_0x35296b['model']);return null!==_0x55f461?_0x472ee9(_0x1c856c,_0x55f461):_0x41608c(_0x1c856c,_0x35296b['title']);});function _0x472ee9(_0x4ee65a,_0xcea820){return o(_0x188169,'ELEMENT_HEADING',[_0x4ee65a,_0xcea820]);}function _0x41608c(_0x4b5de9,_0x4445c2){return o(_0x188169,'ELEMENT_HEADING_CUSTOM',[_0x4b5de9,_0x4445c2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1667a6=this['editor'],_0x16bdaa=_0x1667a6['locale'];function _0xcd3742(_0x33e74f,_0x2dbc1f){return o(_0x16bdaa,'ELEMENT_HEADING_CUSTOM',[_0x33e74f,_0x2dbc1f]);}_0x1667a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd4a0=>{if('formatBlock'!=_0x2fd4a0['type'])return;const {data:_0x8a2da5}=_0x2fd4a0;if(_0x8a2da5&&'heading'==_0x8a2da5['commandName']){const _0x5ecaa1=_0x8a2da5['commandParams'][0x0]['value'],_0x424ef4=this['_getHeadingLevel'](_0x5ecaa1);if(null!==_0x424ef4)return{'type':'format','content':o(_0x16bdaa,'*Change\x20to:*\x20%0',(_0x5756fe=0x1,_0x69cb35=_0x424ef4,o(_0x16bdaa,'ELEMENT_HEADING',[_0x5756fe,_0x69cb35])))};const _0x67c487=this['_headingOptions']['find'](_0x591a08=>_0x591a08['model']===_0x5ecaa1)['title'];return{'type':'format','content':o(_0x16bdaa,'*Change\x20to:*\x20%0',_0xcd3742(0x1,_0x67c487))};}var _0x5756fe,_0x69cb35;});}['_getHeadingLevel'](_0x35cafe){const _0x4f4af1=_0x35cafe['match'](/^heading(\d+)/);if(_0x4f4af1)return _0x4f4af1[0x1];const _0x517757=this['_headingOptions']?.['find'](_0xc8057f=>_0xc8057f['model']==_0x35cafe);if(_0x517757&&_0x517757['view']){const _0x2b0be3=_0x517757['view'],_0x286aca=(_0x2b0be3['name']??_0x2b0be3)['match'](/^h(\d+)/);if(_0x286aca)return _0x286aca[0x1];}return null;}}class tt extends _0x96746a{['afterInit'](){const _0x16c5b9=this['editor'];if(!_0x16c5b9['plugins']['has']('HighlightEditing'))return;const _0x795b69=_0x16c5b9['plugins']['get']('TrackChangesEditing'),_0x2f244d=_0x16c5b9['locale'];_0x795b69['enableDefaultAttributesIntegration']('highlight'),_0x795b69['registerInlineAttribute']('highlight'),_0x795b69['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f244d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397e31=this['editor'],_0x2b3850=_0x397e31['locale'];_0x397e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a13af=>{if('formatInline'!=_0x3a13af['type'])return;const {data:_0x4fbc2b}=_0x3a13af;if(_0x4fbc2b&&'highlight'==_0x4fbc2b['commandName']){const _0x2abd17=_0x2b3850['t'],_0x15a928=_0x4fbc2b['commandParams'][0x0]['value'];if(_0x15a928){const _0x5a6d0d=_0x397e31['config']['get']('highlight.options')['find'](_0x3ed34c=>_0x3ed34c['model']==_0x15a928),_0x491219=_0x2abd17(_0x5a6d0d['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b3850,'*Set\x20highlight:*\x20%0',_0x491219),'color':{'value':_0x5a6d0d['color'],'title':_0x5a6d0d['title']}};}return{'type':'format','content':o(_0x2b3850,'*Remove\x20highlight*',o(_0x2b3850,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x96746a{['afterInit'](){const _0x1982e1=this['editor'];if(!_0x1982e1['plugins']['has']('HorizontalLineEditing'))return;_0x1982e1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x513cf0=_0x1982e1['plugins']['get']('TrackChangesEditing'),_0x14b48e=_0x1982e1['locale'];_0x513cf0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x49b616=>o(_0x14b48e,'ELEMENT_HORIZONTAL_LINE',_0x49b616)),_0x1982e1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xbefce4,{writer:_0x551819,options:_0x51382f})=>{if(!_0x51382f['showSuggestionHighlights'])return null;const _0x51ae61=_0x551819['createContainerElement']('div'),_0x26f0b3=_0x551819['createEmptyElement']('hr');return _0x551819['addClass']('ck-horizontal-line',_0x51ae61),_0x551819['insert'](_0x551819['createPositionAt'](_0x51ae61,0x0),_0x26f0b3),_0x51ae61;},'converterPriority':'high'});}}class nt extends _0x96746a{['afterInit'](){const _0x42c7e1=this['editor'];if(!_0x42c7e1['plugins']['has']('HtmlEmbed'))return;const _0x15a84c=_0x42c7e1['plugins']['get']('TrackChangesEditing'),_0x3488cb=_0x42c7e1['locale'];_0x15a84c['descriptionFactory']['registerElementLabel']('rawHtml',_0x543096=>o(_0x3488cb,'ELEMENT_HTML_EMBED',_0x543096)),_0x15a84c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x15a84c['registerBlockAttribute']('value'),_0x15a84c['descriptionFactory']['registerDescriptionCallback'](_0x581e79=>{if('attribute'!=_0x581e79['type'])return;const {data:_0x57bd68}=_0x581e79;if(_0x57bd68&&'value'==_0x57bd68['key']&&_0x581e79['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b4525=o(_0x3488cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3488cb,'*Change\x20%0\x20content*',_0x2b4525)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55640f=this['editor'],_0x5c4227=_0x55640f['locale'];_0x55640f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1bf2=>{if('formatBlock'!=_0x1e1bf2['type'])return;const {data:_0x4cd4b5}=_0x1e1bf2;if(_0x4cd4b5&&'htmlEmbed'==_0x4cd4b5['commandName']){const _0x838622=o(_0x5c4227,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c4227,'*Change\x20%0\x20content*',_0x838622)};}});}}class et extends _0x96746a{['afterInit'](){const _0x491f6e=this['editor'];if(!_0x491f6e['plugins']['has']('ImageEditing'))return;const _0x25b62b=_0x491f6e['plugins']['get']('TrackChangesEditing'),_0x7cfbae=_0x491f6e['plugins']['get']('ImageUtils'),_0xe9eed0=_0x491f6e['locale'];_0x25b62b['enableCommand']('insertImage'),_0x25b62b['descriptionFactory']['registerElementLabel']('imageBlock',_0x308364=>o(_0xe9eed0,'ELEMENT_IMAGE',_0x308364)),_0x25b62b['descriptionFactory']['registerElementLabel']('imageInline',_0x31acc7=>o(_0xe9eed0,'ELEMENT_INLINE_IMAGE',_0x31acc7)),_0x25b62b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe9eed0,'ELEMENT_CAPTION')),_0x491f6e['plugins']['has']('ImageUploadEditing')&&_0x25b62b['enableCommand']('uploadImage'),_0x491f6e['plugins']['has']('ImageBlockEditing')&&_0x491f6e['plugins']['has']('ImageInlineEditing')&&(_0x25b62b['enableCommand']('imageTypeInline',(_0x227797,_0x2ebc1e)=>{const _0x582ebc=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']);_0x491f6e['model']['change'](()=>{_0x25b62b['markBlockFormat'](_0x582ebc,{'commandName':'imageTypeInline','commandParams':[_0x2ebc1e]},[],'convertBlockImageToInline');});}),_0x25b62b['enableCommand']('imageTypeBlock',(_0x4848f6,_0x37bd87)=>{_0x491f6e['model']['change'](_0x1d6f30=>{let _0x579e79=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x15bfaf=_0x1d6f30['createRangeOn'](_0x579e79);const _0xa0744d=_0x3450d7['fromPosition'](_0x15bfaf['start'],'toPrevious'),_0x3525b8=_0x3450d7['fromPosition'](_0x15bfaf['end'],'toNext');_0x25b62b['forceDefaultExecution'](()=>_0x4848f6(_0x37bd87)),_0x579e79=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x15bfaf=_0x1d6f30['createRangeOn'](_0x579e79);const _0x568f50=_0x1d6f30['createRange'](_0xa0744d,_0x3525b8);_0xa0744d['detach'](),_0x3525b8['detach'](),_0x25b62b['markBlockFormat'](_0x579e79,{'commandName':'imageTypeInline','commandParams':[_0x37bd87]},[],'convertInlineImageToBlock'),_0x568f50['start']['isBefore'](_0x15bfaf['start'])&&_0x25b62b['markInsertion'](_0x1d6f30['createRange'](_0x568f50['start'],_0x15bfaf['start']),'convertInlineImageToBlock'),_0x15bfaf['end']['isBefore'](_0x568f50['end'])&&_0x25b62b['markInsertion'](_0x1d6f30['createRange'](_0x15bfaf['end'],_0x568f50['end']),'convertInlineImageToBlock');});}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25b62b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4e01db])=>{const _0x3582bc=_0x25b62b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x60b9e=_0x4e01db['start'],_0x15190a=_0x4e01db['end'];const _0x54f97c=_0x491f6e['model']['schema']['getNearestSelectionRange'](_0x60b9e,'backward'),_0x7645e8=_0x491f6e['model']['schema']['getNearestSelectionRange'](_0x15190a,'forward');_0x54f97c['isCollapsed']&&(_0x60b9e=_0x54f97c['start']),_0x7645e8['isCollapsed']&&(_0x15190a=_0x7645e8['end']),_0x3582bc([_0x491f6e['model']['createRange'](_0x60b9e,_0x15190a)]);}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1644c0),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1644c0)),_0x491f6e['plugins']['has']('ImageCaptionEditing')&&(_0x25b62b['enableCommand']('toggleImageCaption',(_0x52038f,_0x17d358)=>{const _0x26ca36=_0x491f6e['plugins']['get']('ImageCaptionUtils');let _0x2a63f7=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x1f100e=_0x26ca36['getCaptionFromImageModelElement'](_0x2a63f7);_0x491f6e['model']['change'](()=>{if(_0x1f100e)return void _0x25b62b['markDeletion'](_0x491f6e['model']['createRangeOn'](_0x1f100e));const _0x3147d5=_0x7cfbae['isBlockImage'](_0x2a63f7);_0x52038f(_0x17d358),_0x2a63f7=_0x7cfbae['getClosestSelectedImageElement'](_0x491f6e['model']['document']['selection']),_0x1f100e=_0x26ca36['getCaptionFromImageModelElement'](_0x2a63f7),_0x25b62b['markInsertion'](_0x491f6e['model']['createRangeOn'](_0x1f100e),_0x3147d5?null:'imageCaption');});}),_0x25b62b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1644c0));const _0x2d40eb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54f9ab(_0x50131a,_0x5c0acb){const _0x2ee98c=_0x2d40eb['findIndex'](({type:_0x514c4e,subType:_0x597bd1})=>_0x50131a['type']==_0x514c4e&&_0x50131a['subType']==_0x597bd1),_0x3d8312=_0x2d40eb['findIndex'](({type:_0x1915e0,subType:_0x56842e})=>_0x5c0acb['type']==_0x1915e0&&_0x5c0acb['subType']==_0x56842e);if(_0x2ee98c<0x0||_0x3d8312<0x0)return!0x1;const _0x94b78e=_0x50131a['getFirstRange'](),_0x1f6079=_0x5c0acb['getFirstRange']();if((0x0==_0x2ee98c||0x1==_0x2ee98c)&&0x2==_0x3d8312&&_0x94b78e['isIntersecting'](_0x1f6079))return!0x0;if(0x2==_0x2ee98c&&0x3==_0x3d8312){const _0x3a42bf=_0x25b62b['_findSuggestions'](_0x94b78e,'insertion')['filter'](({suggestion:_0x2dca4f,meta:_0x366f4a})=>_0x366f4a['isOwn']&&'convertInlineImageToBlock'==_0x2dca4f['subType']);if(_0x3a42bf['length']>0x1&&_0x1f6079['end']['isEqual'](_0x94b78e['start']))return!0x0;if(0x1==_0x3a42bf['length']&&(_0x94b78e['start']['isEqual'](_0x1f6079['end'])||_0x94b78e['end']['isEqual'](_0x1f6079['start'])))return!0x0;}if(0x3==_0x2ee98c&&0x3==_0x3d8312&&_0x94b78e['start']['isBefore'](_0x1f6079['start'])){const _0x185ba0=_0x94b78e['end']['nodeAfter'],_0x591292=_0x1f6079['start']['nodeBefore'];return _0x7cfbae['isBlockImage'](_0x185ba0)&&_0x185ba0===_0x591292;}return!0x1;}function _0x1644c0(_0x432df9,_0x6110eb){return _0x54f9ab(_0x432df9,_0x6110eb)?[_0x432df9,_0x6110eb]:_0x54f9ab(_0x6110eb,_0x432df9)?[_0x6110eb,_0x432df9]:null;}_0x491f6e['plugins']['has']('ImageResize')&&(_0x25b62b['enableDefaultAttributesIntegration']('resizeImage'),_0x25b62b['registerBlockAttribute']('resizedWidth'),_0x25b62b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe9eed0,'FORMAT_IMAGE_SIZE'))),_0x491f6e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25b62b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25b62b['registerBlockAttribute']('alt')),_0x491f6e['plugins']['has']('PictureEditing')&&(_0x25b62b['registerBlockAttribute']('sources'),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0xf48fb=>{if('attribute'!=_0xf48fb['type'])return;const {data:_0x5c62da}=_0xf48fb;return _0x5c62da&&'sources'==_0x5c62da['key']?{'type':'format','content':''}:void 0x0;})),_0x491f6e['plugins']['has']('ImageSizeAttributes')&&(_0x25b62b['registerBlockAttribute']('width'),_0x25b62b['registerBlockAttribute']('height'),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x135869=>{if('attribute'!=_0x135869['type'])return;const {data:_0x5c9e7c}=_0x135869;return!_0x5c9e7c||'width'!=_0x5c9e7c['key']&&'height'!=_0x5c9e7c['key']?void 0x0:{'type':'format','content':''};})),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x2db406=>{if(!!_0x2d40eb['find'](({type:_0x1bb954,subType:_0x2a0692})=>_0x2db406['type']==_0x1bb954&&_0x2db406['subType']==_0x2a0692))return _0x2db406['previous']?{}:void 0x0;}),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x4e4c80=>{if('insertion'==_0x4e4c80['type']||'deletion'==_0x4e4c80['type']){const _0x5a0be7=_0x4e4c80['getContainedElement']();if(_0x5a0be7&&_0x5a0be7['is']('element','caption'))return{'type':'insertion'==_0x4e4c80['type']?'addObject':'removeObject','element':_0x5a0be7,'quantity':0x1};}}),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x3b6a7b=>'formatBlock'==_0x3b6a7b['type']&&'convertInlineImageToBlock'==_0x3b6a7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b6a7b['type']&&'convertBlockImageToInline'==_0x3b6a7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25b62b['descriptionFactory']['registerDescriptionCallback'](_0x52cef3=>{if('attribute'!=_0x52cef3['type'])return;const {data:_0x51a6b0}=_0x52cef3;if(!_0x51a6b0||'alt'!=_0x51a6b0['key'])return;const _0x58bb4d=_0x51a6b0['newValue'];return _0x58bb4d?{'type':'format','content':o(_0xe9eed0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x58bb4d+'\x22')}:{'type':'format','content':o(_0xe9eed0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5215bb=this['editor'],_0x4d04fe=_0x5215bb['locale'];_0x5215bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a0d8=>{if('formatBlock'!=_0x59a0d8['type']&&'formatInline'!=_0x59a0d8['type'])return;const {data:_0x3d5772}=_0x59a0d8;if(_0x3d5772){if('imageTextAlternative'==_0x3d5772['commandName']){const _0x4a384b=_0x3d5772['commandParams'][0x0]['newValue'];return _0x4a384b?{'type':'format','content':o(_0x4d04fe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a384b+'\x22')}:{'type':'format','content':o(_0x4d04fe,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d5772['commandName']){const _0x249ae9=_0x3d5772['commandParams'][0x0]['width'];return _0x249ae9?{'type':'format','content':o(_0x4d04fe,'*Set\x20image\x20width:*\x20%0',_0x249ae9)}:{'type':'format','content':o(_0x4d04fe,'*Reset\x20image\x20width*')};}}});}}class st extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34e13d=this['editor']['locale'],_0x2de9bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2de9bd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2de9bd['registerBlockAttribute']('src'),_0x2de9bd['descriptionFactory']['registerDescriptionCallback'](_0x9b61fd=>{if('attribute'!=_0x9b61fd['type'])return;const {data:_0xeeb3b4}=_0x9b61fd;return _0xeeb3b4&&'src'==_0xeeb3b4['key']?_0xeeb3b4['newValue']&&_0xeeb3b4['oldValue']?{'type':'format','content':o(_0x34e13d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f259a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f259a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5f259a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f259a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5f259a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x568d5f=this['editor'],_0x4338ae=_0x568d5f['locale'];_0x568d5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293af8=>{if('formatBlock'!=_0x293af8['type']&&'formatInline'!=_0x293af8['type'])return;const {data:_0x2a6821}=_0x293af8;if(!_0x2a6821||'replaceImageSource'!=_0x2a6821['commandName'])return;return{'type':'format','content':o(_0x4338ae,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x96746a{['afterInit'](){const _0x2d7866=this['editor'];if(!_0x2d7866['plugins']['has']('ImageStyleEditing'))return;const _0x3fb8f3=_0x2d7866['plugins']['get']('TrackChangesEditing'),_0x28ec90=_0x2d7866['plugins']['get']('ImageUtils'),_0x56bd9d={};_0x3fb8f3['enableCommand']('imageStyle',(_0x8cdf8b,_0xc17b0a)=>{const _0x13deeb=_0x2d7866['plugins']['get']('Users')['me'],_0x303a7f=_0x2d7866['commands']['get']('imageStyle');let _0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),_0x34d3fa=_0x2d7866['model']['createRangeOn'](_0x100532),_0x417a4d=_0x303a7f['value'];if(_0x417a4d==_0xc17b0a['value'])return;const _0x1c7045={'commandName':'imageStyle','commandParams':[_0xc17b0a],'formatGroupId':_0x2e07c2()};_0x2d7866['model']['change'](()=>{if(_0x3fb8f3['getSuggestions']()['filter'](_0x575bf9=>_0x575bf9['isInContent']&&_0x13deeb==_0x575bf9['author']&&('formatBlock'==_0x575bf9['type']||'formatInline'==_0x575bf9['type'])&&('imageStylePreApply'==_0x575bf9['subType']||'imageStylePostApply'==_0x575bf9['subType'])&&_0x575bf9['getFirstRange']()['isEqual'](_0x34d3fa))['forEach'](_0x496a1f=>_0x3fb8f3['discardSuggestion'](_0x496a1f['head'])),_0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),_0x34d3fa=_0x2d7866['model']['createRangeOn'](_0x100532),_0x303a7f['refresh'](),_0x2d7866['commands']['get']('imageTypeInline')['refresh'](),_0x2d7866['commands']['get']('imageTypeBlock')['refresh'](),_0x417a4d=_0x303a7f['value'],_0x417a4d!=_0xc17b0a['value'])return _0x28ec90['isInlineImage'](_0x100532)&&_0x303a7f['shouldConvertImageType'](_0xc17b0a['value'],_0x100532)?(_0x8cdf8b({..._0xc17b0a,'setImageSizes':!0x1}),_0x100532=_0x28ec90['getClosestSelectedImageElement'](_0x2d7866['model']['document']['selection']),void _0x3fb8f3['markBlockFormat'](_0x100532,{..._0x1c7045,'commandReversedParams':[{'value':_0x417a4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28ec90['isBlockImage'](_0x100532)?_0x3fb8f3['markBlockFormat'](_0x100532,_0x1c7045,[],'imageStylePostApply'):_0x3fb8f3['markInlineFormat'](_0x34d3fa,_0x1c7045,'imageStylePostApply'));});});for(const _0xef907d of _0x2d7866['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x56bd9d[_0xef907d['name']]=_0xef907d['title']['toLowerCase']();_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3821a9])=>{_0x28ec90['setImageNaturalSizeAttributes'](_0x3821a9['getContainedElement']());}),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x46a9b7,_0x586637)=>{_0x3fb8f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x46a9b7,{'commandName':_0x586637['commandName'],'commandParams':_0x586637['commandReversedParams']});}),_0x3fb8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x10e6c5,_0x5e7e0d){if(_0x4eb624(_0x10e6c5,_0x5e7e0d))return[_0x10e6c5,_0x5e7e0d];if(_0x4eb624(_0x5e7e0d,_0x10e6c5))return[_0x5e7e0d,_0x10e6c5];return null;});const _0x5ac837=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4eb624(_0x1a14bc,_0x57c69d){const _0x144d05=_0x5ac837['findIndex'](({type:_0x130473,subType:_0xd2b397})=>_0x1a14bc['type']==_0x130473&&_0x1a14bc['subType']==_0xd2b397),_0x4a2f93=_0x5ac837['findIndex'](({type:_0x24e4d8,subType:_0x1eb206})=>_0x57c69d['type']==_0x24e4d8&&_0x57c69d['subType']==_0x1eb206);if(_0x144d05<0x0||_0x4a2f93<0x0)return!0x1;const _0x24fd80=_0x1a14bc['getFirstRange'](),_0x11c888=_0x57c69d['getFirstRange']();if((0x0==_0x144d05||0x1==_0x144d05)&&0x2==_0x4a2f93&&_0x24fd80['isIntersecting'](_0x11c888))return!0x0;if(0x2==_0x144d05&&0x3==_0x4a2f93){const _0x2a41bb=_0x3fb8f3['_findSuggestions'](_0x24fd80,'insertion')['filter'](({suggestion:_0x405389,meta:_0x211a8f})=>_0x211a8f['isOwn']&&'convertInlineImageToBlock'==_0x405389['subType']);if(_0x2a41bb['length']>0x1&&_0x11c888['end']['isEqual'](_0x24fd80['start']))return!0x0;if(0x1==_0x2a41bb['length']&&(_0x24fd80['start']['isEqual'](_0x11c888['end'])||_0x24fd80['end']['isEqual'](_0x11c888['start'])))return!0x0;}if(0x3==_0x144d05&&0x3==_0x4a2f93&&_0x24fd80['start']['isBefore'](_0x11c888['start'])){const _0x11991c=_0x24fd80['end']['nodeAfter'],_0x109ab2=_0x11c888['start']['nodeBefore'];return _0x28ec90['isBlockImage'](_0x11991c)&&_0x11991c===_0x109ab2;}return!0x1;}_0x2d7866['model']['document']['registerPostFixer'](()=>{let _0x3c9f41=!0x1;const _0x595d4f=Array['from'](_0x2d7866['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3867ed,data:_0xafd51b}of _0x595d4f){const {group:_0x32779c,type:_0x424301,subType:_0x1b3510,id:_0x553f9f}=_0x3fb8f3['_splitMarkerName'](_0x3867ed);if('suggestion'==_0x32779c&&_0x3fb8f3['hasSuggestion'](_0x553f9f)){if('formatBlock'==_0x424301&&('imageStylePreApply'==_0x1b3510||'imageStylePostApply'==_0x1b3510)){const _0x5d2ce2=_0x3fb8f3['getSuggestion'](_0x553f9f);if(_0xafd51b['newRange']){const _0x12bdc8=_0x5d2ce2['getFirstRange']()['getContainedElement']();if(_0x28ec90['isBlockImage'](_0x12bdc8))continue;_0x3fb8f3['discardSuggestion'](_0x5d2ce2),_0x3c9f41=!0x0;}}if('insertion'==_0x424301&&'imageCaption'==_0x1b3510&&!_0xafd51b['newRange']){const _0x554799=_0x3fb8f3['getSuggestion'](_0x553f9f);_0x554799['next']&&_0x554799['next']['isInContent']&&(_0x3fb8f3['discardSuggestion'](_0x554799['next']),_0x3c9f41=!0x0);}}}return _0x3c9f41;}),this['_registerLegacyDescription'](_0x56bd9d);}['_registerLegacyDescription'](_0x14682c){const _0x569d89=this['editor'],_0x1dcdc2=_0x569d89['locale'];_0x569d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5179af=>{if('formatBlock'!=_0x5179af['type']&&'formatInline'!=_0x5179af['type'])return;const {data:_0x2bc3f5}=_0x5179af;if(!_0x2bc3f5||'imageStyle'!=_0x2bc3f5['commandName'])return;const _0x32227b=_0x2bc3f5['commandParams'][0x0]['value'];return _0x49f5ba('side'===_0x32227b?o(_0x1dcdc2,'FORMAT_SIDE_IMAGE'):_0x14682c[_0x32227b]||_0x32227b);function _0x49f5ba(_0x1e1f84){return{'type':'format','content':o(_0x1dcdc2,'*Format:*\x20%0',_0x1e1f84)};}});}}class rt extends _0x96746a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4111d0){super(_0x4111d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3877b0=this['editor'],_0x2e02e6=_0x3877b0['commands']['get']('importWord'),_0x4df148=_0x3877b0['commands']['get']('trackChanges');_0x2e02e6&&(_0x2e02e6['on']('execute',(_0x12bfb5,[,_0x34462b])=>{this['_trackChangesValueDuringImport']=_0x4df148['value'],_0x34462b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2e02e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2e02e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4df148['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3877b0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x817a5c,_0x377b7d){const {suggestions:_0x3fb070}=_0x377b7d,_0x14c464=this['editor']['commands']['get']('trackChanges'),_0xe2b824=_0x14c464['value'];this['_trackChangesValueDuringImport']!==_0xe2b824&&(_0x14c464['execute'](),this['_trackChangesExecuted']=!0x0),_0x3fb070&&_0x3fb070['forEach'](({id:_0x3856dc,type:_0x3b60d3,author:_0x437f4d,created_at:_0x400f6c})=>{const _0x258497={'id':_0x3856dc,'type':_0x3b60d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x437f4d,'createdAt':_0x400f6c?new Date(_0x400f6c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x258497);});}}class at extends _0x96746a{['afterInit'](){const _0x556f44=this['editor'],_0x2c982c=_0x556f44['plugins']['get']('TrackChangesEditing');if(_0x556f44['plugins']['has']('IndentEditing')&&(_0x2c982c['enableCommand']('indent'),_0x2c982c['enableCommand']('outdent')),_0x556f44['plugins']['has']('IndentBlock')){for(const _0x558020 of['indentBlock','outdentBlock'])_0x2c982c['enableDefaultAttributesIntegration'](_0x558020);}const _0x14b4dd=_0x556f44['locale'];_0x2c982c['registerBlockAttribute']('blockIndent'),_0x2c982c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x14b4dd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c5b7=this['editor'],_0x32c8b6=_0x21c5b7['locale'],_0x5c65c6=_0x21c5b7['plugins']['get']('TrackChangesEditing');_0x5c65c6['descriptionFactory']['registerDescriptionCallback'](_0x1854cc=>{if('formatBlock'!=_0x1854cc['type'])return;const {data:_0x235994}=_0x1854cc;if(!_0x235994)return;if('indentBlock'!=_0x235994['commandName']&&'outdentBlock'!=_0x235994['commandName'])return;const _0x2a1dc9=_0x1854cc['getItems']()[0x0],_0x37449e=_0x5c65c6['descriptionFactory']['getItemLabel'](_0x2a1dc9);return'indentBlock'==_0x235994['commandName']?{'type':'format','content':o(_0x32c8b6,'*Indent:*\x20%0',_0x37449e)}:'outdentBlock'==_0x235994['commandName']?{'type':'format','content':o(_0x32c8b6,'*Outdent:*\x20%0',_0x37449e)}:void 0x0;});}}class ct extends _0x96746a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x96746a{['afterInit'](){const _0x2782b2=this['editor'];if(!_0x2782b2['plugins']['has']('LinkEditing'))return;const _0x5c5e8a=_0x2782b2['plugins']['get']('TrackChangesEditing'),_0x518c17=_0x2782b2['commands']['get']('link');_0x5c5e8a['enableDefaultAttributesIntegration']('link'),_0x5c5e8a['enableDefaultAttributesIntegration']('unlink'),_0x5c5e8a['registerInlineAttribute']('linkHref');for(const _0x5e2c6b of _0x518c17['manualDecorators'])_0x5c5e8a['registerInlineAttribute'](_0x5e2c6b['id']),_0x5c5e8a['descriptionFactory']['registerAttributeLabel'](_0x5e2c6b['id'],'link\x20('+_0x5e2c6b['label']['toLowerCase']()+')');_0x5c5e8a['descriptionFactory']['registerDescriptionCallback'](_0x19e862=>{if('attribute'!=_0x19e862['type'])return;const {data:_0x3d23db}=_0x19e862;if(!_0x3d23db||'linkHref'!=_0x3d23db['key'])return;const _0x543758=_0x3d23db['newValue'],_0x386baf=_0x2782b2['locale'];return{'type':'format','content':null==_0x543758?o(_0x386baf,'*Remove\x20link*'):o(_0x386baf,'*Set\x20link:*\x20%0','\x22'+_0x543758+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x456444=this['editor'],_0x33f27c=_0x456444['locale'];_0x456444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x547aef=>{if('formatInline'!=_0x547aef['type'])return;const {data:_0x3c40dd}=_0x547aef;if(_0x3c40dd){if('link'==_0x3c40dd['commandName']){const _0x42b984=_0x3c40dd['commandParams'][0x0];return{'type':'format','content':o(_0x33f27c,'*Set\x20link:*\x20%0','\x22'+_0x42b984+'\x22')};}return'unlink'==_0x3c40dd['commandName']?{'type':'format','content':o(_0x33f27c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x96746a{['afterInit'](){const _0x5e52b5=this['editor'],_0x5de258=_0x5e52b5['locale'];if(!_0x5e52b5['plugins']['has']('LegacyListEditing'))return;const _0x4ff1fe=_0x5e52b5['plugins']['get']('TrackChangesEditing'),_0x3d1f30=_0x5e52b5['plugins']['has']('LegacyTodoListEditing');function _0x500843(_0xf5769a){return()=>{const _0x399805=_0x5e52b5['model']['document']['selection'],_0x335f04=_0x5e52b5['commands']['get'](_0xf5769a);if(_0x335f04['value'])return void _0x5e52b5['execute']('paragraph',{});const _0x118eba=_0xf5769a['slice'](0x0,-0x4),_0x2276aa=function(_0x23c4f4,_0x25e813,_0x44939a){let _0x1395c4=Array['from'](_0x23c4f4)['filter'](_0x4b4414=>function(_0x14f445,_0x15d340){return _0x15d340['checkChild'](_0x14f445['parent'],'listItem')&&!_0x15d340['isObject'](_0x14f445);}(_0x4b4414,_0x44939a));_0x1395c4=_0x1395c4['filter'](_0x196385=>!_0x196385['is']('element','listItem')||_0x196385['getAttribute']('listType')!=_0x25e813);const _0x495c71=new Set();for(const _0x5ed85d of _0x1395c4)_0x5ed85d['is']('element','listItem')?_0x495c71['add'](Le(_0x5ed85d)):_0x495c71['add'](_0x5ed85d);return Array['from'](_0x495c71);}(_0x399805['getSelectedBlocks'](),_0x118eba,_0x5e52b5['model']['schema']);_0x5e52b5['model']['change'](()=>{for(const _0x6a0a16 of _0x2276aa)_0x4ff1fe['markBlockFormat'](_0x6a0a16,{'commandName':_0xf5769a,'commandParams':[{'forceValue':!_0x335f04['value']}],'formatGroupId':'blockName'},Ee(_0x6a0a16));});};}function _0x3f9402(_0x578452){return()=>{const _0x4881d5=function(_0x1fe00f){let _0x1c9c6f=Array['from'](_0x1fe00f);const _0x55dc3a=_0x1c9c6f['findIndex'](_0x13932c=>'listItem'!=_0x13932c['name']);return _0x55dc3a>-0x1&&(_0x1c9c6f=_0x1c9c6f['slice'](0x0,_0x55dc3a)),_0x1c9c6f;}(_0x5e52b5['model']['document']['selection']['getSelectedBlocks']()),_0x48d9f2=_0x5e52b5['model']['createRange'](_0x5e52b5['model']['createPositionAt'](_0x4881d5[0x0],'before'),_0x5e52b5['model']['createPositionAt'](_0x4881d5[_0x4881d5['length']-0x1],'end'));_0x5e52b5['model']['change'](()=>{_0x4ff1fe['markBlockFormat'](_0x48d9f2,{'commandName':_0x578452,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cfc74){const _0x187abd=new Set();for(const _0x502e3c of _0x5cfc74){let _0x240941=_0x502e3c['nextSibling'];for(;_0x240941&&_0x240941['getAttribute']('listIndent')>_0x502e3c['getAttribute']('listIndent');)_0x187abd['add'](_0x240941),_0x240941=_0x240941['nextSibling'];}return Array['from'](_0x187abd);}(_0x4881d5));});};}_0x4ff1fe['enableCommand']('numberedList',_0x500843('numberedList')),_0x4ff1fe['enableCommand']('bulletedList',_0x500843('bulletedList')),_0x3d1f30&&_0x4ff1fe['enableCommand']('todoList',_0x500843('todoList')),_0x4ff1fe['enableCommand']('indentList',_0x3f9402('indentList')),_0x4ff1fe['enableCommand']('outdentList',_0x3f9402('outdentList')),_0x3d1f30&&_0x4ff1fe['enableCommand']('checkTodoList',()=>{const _0x57c325=_0x5e52b5['commands']['get']('checkTodoList'),_0xf8ee2e=Array['from'](_0x57c325['_selectedElements']);_0xf8ee2e['filter'](_0xfe16f5=>_0xfe16f5['getAttribute']('todoListChecked')!=_0x57c325['value']),_0x5e52b5['model']['change'](()=>{for(const _0x33a4c2 of _0xf8ee2e)_0x4ff1fe['markBlockFormat'](_0x33a4c2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57c325['value']}]});});}),_0x4ff1fe['descriptionFactory']['registerElementLabel']('listItem',_0x4aab0c=>o(_0x5de258,'ELEMENT_LIST_ITEM',_0x4aab0c)),_0x4ff1fe['descriptionFactory']['registerDescriptionCallback'](_0x20d8cd=>{if('formatBlock'!=_0x20d8cd['type']&&'formatInline'!=_0x20d8cd['type'])return;const {data:_0x16ae4d}=_0x20d8cd;if(_0x16ae4d){if('numberedList'==_0x16ae4d['commandName']||'bulletedList'==_0x16ae4d['commandName']||'todoList'==_0x16ae4d['commandName'])switch(_0x16ae4d['commandName']['replace']('List','')){case'bulleted':return _0x19b389(o(_0x5de258,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19b389(o(_0x5de258,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19b389(o(_0x5de258,'ELEMENT_TODO_LIST'));}if('indentList'==_0x16ae4d['commandName'])return{'type':'format','content':o(_0x5de258,'*Indent:*\x20%0',o(_0x5de258,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x16ae4d['commandName'])return{'type':'format','content':o(_0x5de258,'*Outdent:*\x20%0',o(_0x5de258,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x16ae4d['commandName'])return _0x16ae4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5de258,'*Check\x20item*')}:{'type':'format','content':o(_0x5de258,'*Uncheck\x20item*')};}function _0x19b389(_0x29ee53){return{'type':'format','content':o(_0x5de258,'*Change\x20to:*\x20%0',_0x29ee53)};}});}}function Le(_0x462eaa){const _0x3b95bb=_0x462eaa['getAttribute']('listIndent');if(0x0==_0x3b95bb)return _0x462eaa;let _0x585937=_0x462eaa;for(;_0x462eaa['previousSibling']&&_0x462eaa['previousSibling']['is']('element','listItem');){const _0x3ad4ae=_0x462eaa['previousSibling']['getAttribute']('listIndent');if(_0x3ad4ae==_0x3b95bb)_0x585937=_0x462eaa['previousSibling'];else{if(_0x3ad4ae<_0x3b95bb)break;}_0x462eaa=_0x462eaa['previousSibling'];}return _0x585937;}function Ee(_0x3aeb98){const _0x5464ff=[];if(_0x3aeb98['is']('element','listItem')&&_0x3aeb98['getAttribute']('listIndent')>0x0){let _0x403e15=_0x3aeb98['nextSibling'];for(;_0x403e15&&'listItem'==_0x403e15['name']&&_0x403e15['getAttribute']('listIndent')==_0x3aeb98['getAttribute']('listIndent');)_0x5464ff['push'](_0x403e15),_0x403e15=_0x403e15['nextSibling'];}return _0x5464ff;}class ht extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcf864a=this['editor']['config']['get']('list.properties'),_0x1a747c=this['editor']['plugins']['get']('TrackChangesEditing');_0xcf864a['styles']&&_0x1a747c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcf864a['reversed']&&_0x1a747c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcf864a['startIndex']&&_0x1a747c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1a747c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4b566e,_0x143416={}){const _0x3028e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24e6a8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3028e['markMultiRangeBlockFormat'](_0x24e6a8,{'commandName':'listStyle','commandParams':[{'type':_0x143416['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x44d05d,_0x18c4c1={}){const _0x3de826=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a70b5=this['_getSuggestionBlocks'](_0x461c77=>_0x461c77['is']('element','listItem')&&'numbered'===_0x461c77['getAttribute']('listType'));if(_0x4a70b5['length']<0x1)return;const _0x287c44=_0x4a70b5['map'](_0x37ade1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37ade1,'before'),this['editor']['model']['createPositionAt'](_0x37ade1,0x0)));this['editor']['model']['change'](()=>{_0x3de826['markMultiRangeBlockFormat'](_0x287c44,{'commandName':'listReversed','commandParams':[{'reversed':_0x18c4c1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2396e1,_0x1648c9={}){const _0x379229=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2da701=this['_getSuggestionBlocks'](_0x41b85a=>_0x41b85a['is']('element','listItem')&&'numbered'===_0x41b85a['getAttribute']('listType'));if(_0x2da701['length']<0x1)return;const _0x1f84ad=_0x2da701['map'](_0x1e5ab6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e5ab6,'before'),this['editor']['model']['createPositionAt'](_0x1e5ab6,0x0)));this['editor']['model']['change'](()=>{_0x379229['markMultiRangeBlockFormat'](_0x1f84ad,{'commandName':'listStart','commandParams':[{'startIndex':_0x1648c9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x25d141){if('formatBlock'!=_0x25d141['type']&&'formatInline'!=_0x25d141['type'])return;const _0x161cfe=this['editor']['locale'],{data:_0x566f2f}=_0x25d141;if(!_0x566f2f)return;let _0x3cf1ce,_0x1929f6;switch(_0x566f2f['commandName']){case'listStyle':_0x3cf1ce='*Change\x20to:*\x20%0',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce,o(_0x161cfe,this['_getTranslationKeyForListStyle'](_0x566f2f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cf1ce=_0x566f2f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce)};break;case'listStart':_0x3cf1ce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1929f6={'type':'format','content':o(_0x161cfe,_0x3cf1ce,_0x566f2f['commandParams'][0x0]['startIndex'])};}return _0x1929f6;}['_getSuggestionBlocksForListStyle'](){const _0x1d7d90=this['editor']['plugins']['get']('LegacyListUtils');let _0x482bb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x482bb8[0x0]?.['is']('element','listItem')&&_0x482bb8['unshift'](..._0x1d7d90['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x482bb8[_0x482bb8['length']-0x1]?.['is']('element','listItem')&&_0x482bb8['push'](..._0x1d7d90['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x482bb8=[...new Set(_0x482bb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x482bb8=_0x482bb8['filter'](_0x111c31=>_0x111c31['is']('element','listItem'))),_0x482bb8;}['_getSuggestionBlocks'](_0x22073f){const _0x4f5781=this['editor']['plugins']['get']('LegacyListUtils');let _0x396415=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x22073f)['map'](_0x23ceb3=>{const _0x751685=this['editor']['model']['createPositionAt'](_0x23ceb3,0x0);return[..._0x4f5781['getSiblingNodes'](_0x751685,'backward'),..._0x4f5781['getSiblingNodes'](_0x751685,'forward')];})['flat']();return _0x396415=[...new Set(_0x396415)],_0x396415;}['_getTranslationKeyForListStyle'](_0x179d39){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x179d39)||'default')['toUpperCase']()+'_LIST_'+_0x179d39['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x96746a{['afterInit'](){const _0x4989ea=this['editor'];if(!_0x4989ea['plugins']['has']('MediaEmbedEditing'))return;const _0x45ad9b=_0x4989ea['plugins']['get']('TrackChangesEditing'),_0x55bbfb=_0x4989ea['locale'];_0x45ad9b['enableCommand']('mediaEmbed'),_0x45ad9b['descriptionFactory']['registerElementLabel']('media',_0x17970a=>o(_0x55bbfb,'ELEMENT_MEDIA',_0x17970a)),_0x4989ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2bb5c6,{writer:_0x204120,options:_0xc8e458})=>{if(_0xc8e458['showSuggestionHighlights'])return _0x204120['createEmptyElement']('div');},'converterPriority':'high'}),_0x4989ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0xeb2351,_0x2bf60f,_0x5b363b)=>{_0x5b363b['options']['showSuggestionHighlights']&&_0xeb2351['stop']();},{'priority':'high'});}}class lt extends _0x96746a{['afterInit'](){const _0x4e6c44=this['editor'];_0x4e6c44['plugins']['has']('MentionEditing')&&_0x4e6c44['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x96746a{['afterInit'](){const _0xbeaed7=this['editor'];if(!_0xbeaed7['plugins']['has']('MergeFieldsEditing'))return;const _0x3fe9d3=_0xbeaed7['plugins']['get']('TrackChangesEditing'),_0x245b6f=_0xbeaed7['locale'];_0x3fe9d3['enableCommand']('insertMergeField'),_0x3fe9d3['enableCommand']('insertMergeFieldBlock'),_0x3fe9d3['enableCommand']('insertMergeFieldImage'),_0x3fe9d3['descriptionFactory']['registerElementLabel']('mergeField',_0x27283c=>o(_0x245b6f,'ELEMENT_MERGE_FIELD',_0x27283c)),_0x3fe9d3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3bcc19=>o(_0x245b6f,'ELEMENT_MERGE_FIELD',_0x3bcc19)),_0x3fe9d3['descriptionFactory']['registerDescriptionCallback'](_0x455940=>{if('insertion'!=_0x455940['type']&&'deletion'!=_0x455940['type'])return;const _0x5bf137=_0x455940['getContainedElement']();if(null==_0x5bf137)return;const _0xb1ae81=_0xbeaed7['plugins']['get']('MergeFieldsEditing');let _0x27dc0d;switch(_0xb1ae81['getMergeFieldType'](_0x5bf137)){case null:return;case'image':{const _0x8e12e2=_0xb1ae81['unwrapAffixes'](_0x5bf137['getAttribute']('src'));_0x27dc0d=_0xb1ae81['getLabel'](_0x8e12e2)||_0x8e12e2;break;}default:{const _0x1fdd49=_0x5bf137['getAttribute']('id');_0x27dc0d=_0xb1ae81['getLabel'](_0x1fdd49)||_0x1fdd49;break;}}return'insertion'==_0x455940['type']?{'type':'insertion','content':o(_0x245b6f,'*Insert:*\x20%0','\x22'+_0x27dc0d+'\x22\x20'+o(_0x245b6f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x245b6f,'*Remove:*\x20%0','\x22'+_0x27dc0d+'\x22\x20'+o(_0x245b6f,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x96746a{['afterInit'](){const _0x19d2bb=this['editor'],_0x4eefd5=_0x19d2bb['plugins']['get']('TrackChangesEditing');_0x19d2bb['plugins']['has']('MultiLevelList')&&(_0x4eefd5['enableDefaultAttributesIntegration']('multiLevelList'),_0x4eefd5['registerBlockAttribute']('listMarkerStyle'),_0x4eefd5['descriptionFactory']['registerDescriptionCallback'](_0x212f47=>this['handleDescriptions'](_0x212f47)));}['handleDescriptions'](_0x3fafc5){const _0xd4a8d2=this['editor']['locale'],{data:_0xb76120}=_0x3fafc5,_0x295364={'type':'format','content':''};if(_0xb76120&&'listMarkerStyle'==_0xb76120['key']){if(!_0xb76120['oldValue'])return{'type':'format','content':o(_0xd4a8d2,'*Set\x20format:*\x20%0',o(_0xd4a8d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb76120['newValue']+')'};if(!_0xb76120['newValue']){let _0x3be4d4=_0x3fafc5['head'];for(;_0x3be4d4;){if(_0x3be4d4['data']&&'listType'==_0x3be4d4['data']['key']&&_0x3be4d4['data']['newValue'])return _0x295364;_0x3be4d4=_0x3be4d4['next'];}return{'type':'format','content':o(_0xd4a8d2,'*Remove\x20format:*\x20%0',o(_0xd4a8d2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb76120['oldValue']+')'};}}}}class pt extends _0x96746a{['afterInit'](){const _0x143580=this['editor'];if(!_0x143580['plugins']['has']('PageBreakEditing'))return;_0x143580['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x337ef1=_0x143580['plugins']['get']('TrackChangesEditing'),_0x5614fb=_0x143580['locale'];_0x337ef1['descriptionFactory']['registerElementLabel']('pageBreak',_0x3c6a09=>o(_0x5614fb,'ELEMENT_PAGE_BREAK',_0x3c6a09));}}class kt extends _0x96746a{['afterInit'](){const _0x2049c9=this['editor'];if(!_0x2049c9['plugins']['has']('Paragraph'))return;const _0xf1b1e6=_0x2049c9['locale'],_0x385ea6=_0x2049c9['plugins']['get']('TrackChangesEditing');_0x385ea6['descriptionFactory']['registerElementLabel']('paragraph',_0x220d51=>o(_0xf1b1e6,'ELEMENT_PARAGRAPH',_0x220d51)),_0x385ea6['enableDefaultAttributesIntegration']('paragraph'),_0x385ea6['enableCommand']('insertParagraph'),_0x2049c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2049c9),{'priority':'highest'}),_0x2049c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25be4c,_0x4a149a,_0x3ddeb0)=>{_0x3ddeb0['options']['showSuggestionHighlights']&&nr(_0x2049c9,{'showActiveMarker':!0x1})(_0x25be4c,_0x4a149a,_0x3ddeb0);},{'priority':'highest'});const _0x3a619c=_0x385ea6['descriptionFactory'];_0x3a619c['registerDescriptionCallback'](_0x2b6437=>{if('insertion'!==_0x2b6437['type'])return;const {start:_0x30b405,end:_0x14293e}=_0x2b6437['getFirstRange']();if(!_0x30b405['isTouching'](_0x14293e)||!_0x30b405['nodeAfter'])return;const _0x387220=_0x2049c9['model']['schema'],_0x2bbc17=_0x30b405['nodeAfter'];return _0x387220['isBlock'](_0x2bbc17)&&!_0x387220['isLimit'](_0x2bbc17)&&_0x387220['checkChild'](_0x2bbc17,'$text')?{'type':'insertion','content':o(_0xf1b1e6,'*Insert:*\x20%0',_0x3a619c['getItemLabel'](_0x2bbc17,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d443=this['editor'],_0x1dca35=_0x32d443['locale'];_0x32d443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598701=>{if('formatBlock'!=_0x598701['type'])return;const {data:_0x4ced3e}=_0x598701;return _0x4ced3e&&'paragraph'==_0x4ced3e['commandName']?{'type':'format','content':o(_0x1dca35,'*Change\x20to:*\x20%0',o(_0x1dca35,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x358403,{showActiveMarker:_0xbc9a59=!0x0}={}){return(_0x3a550e,_0xd6f7e5,_0x1cdbbf)=>{const _0x82ee2b=_0x358403['plugins']['get']('TrackChangesEditing'),_0x21ec5d=_0xd6f7e5['markerRange']['start'],_0x31211a=_0xd6f7e5['markerRange']['end'],_0x50e52f=_0x358403['model']['schema'];if(!_0x21ec5d['isTouching'](_0x31211a)||!_0x21ec5d['nodeAfter'])return;const _0x20eec4=_0x21ec5d['nodeAfter'];if(_0x50e52f['isBlock'](_0x20eec4)&&!_0x50e52f['isLimit'](_0x20eec4)&&_0x50e52f['checkChild'](_0x20eec4,'$text')){if(!_0x1cdbbf['consumable']['consume'](_0xd6f7e5['markerRange'],_0x3a550e['name']))return;const {id:_0x466a47,authorId:_0x242aee}=_0x82ee2b['_splitMarkerName'](_0xd6f7e5['markerName']),_0x12e9d4=_0x1cdbbf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x466a47,'data-author-id':_0x242aee}),_0x1a43df=_0x1cdbbf['mapper']['toViewPosition'](_0x31211a);_0xbc9a59&&_0x82ee2b['activeMarkers']['includes'](_0xd6f7e5['markerName'])&&_0x1cdbbf['writer']['addClass']('ck-suggestion-marker--active',_0x12e9d4),_0x1cdbbf['writer']['insert'](_0x1a43df,_0x12e9d4),_0x1cdbbf['mapper']['bindElementToMarker'](_0x12e9d4,_0xd6f7e5['markerName']);}};}class wt extends _0x96746a{['afterInit'](){const _0x5a4995=this['editor'];_0x5a4995['commands']['get']('replaceSource')&&_0x5a4995['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x96746a{['afterInit'](){const _0x275824=this['editor'];if(!_0x275824['plugins']['has']('RemoveFormatEditing'))return;_0x275824['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x251212=this['editor'];_0x251212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e3b83=>{if('formatBlock'!=_0x5e3b83['type']&&'formatInline'!=_0x5e3b83['type'])return;const {data:_0x29ae61}=_0x5e3b83;return _0x29ae61&&'removeFormat'==_0x29ae61['commandName']?{'type':'format','content':o(_0x251212['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x96746a{['afterInit'](){const _0x16f0f5=this['editor'];if(!_0x16f0f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b9a5b=_0x16f0f5['plugins']['get']('TrackChangesEditing');_0x5b9a5b['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b9a5b['enableCommand']('goToNextRestrictedEditingException');const _0x475782=_0x16f0f5['plugins']['get']('RestrictedEditingModeEditing');_0x475782['enableCommand']('trackChanges'),_0x475782['enableCommand']('acceptSuggestion'),_0x475782['enableCommand']('discardSuggestion'),_0x475782['enableCommand']('acceptAllSuggestions'),_0x475782['enableCommand']('discardAllSuggestions'),_0x475782['enableCommand']('acceptSelectedSuggestions'),_0x475782['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x96746a{['afterInit'](){const _0x4dbde4=this['editor'];if(!_0x4dbde4['plugins']['has']('ShiftEnter'))return;const _0x1ea62c=_0x4dbde4['plugins']['get']('TrackChangesEditing');_0x1ea62c['enableCommand']('shiftEnter'),_0x4dbde4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4dbde4),{'priority':'high'}),_0x4dbde4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4dbde4),{'priority':'high'}),_0x4dbde4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4da301,_0x2d61cf,_0x5f5b41)=>{_0x5f5b41['options']['showSuggestionHighlights']&&je(_0x4dbde4,{'showActiveMarker':!0x1})(_0x4da301,_0x2d61cf,_0x5f5b41);}),_0x1ea62c['descriptionFactory']['registerElementLabel']('softBreak',_0x56e5e4=>o(_0x4dbde4['locale'],'ELEMENT_LINE_BREAK',_0x56e5e4));}}function je(_0x36c7c8,{showActiveMarker:_0x326b27=!0x0}={}){return(_0x554201,_0x34bd41,_0x47e742)=>{const _0x18eccd=_0x36c7c8['plugins']['get']('TrackChangesEditing');if(!_0x47e742['consumable']['test'](_0x34bd41['markerRange'],_0x554201['name']))return;const _0x3e2419=_0x36c7c8['model'];for(const _0x4e8df2 of _0x34bd41['markerRange']['getItems']()){if(!_0x4e8df2['is']('element','softBreak'))continue;const _0x26954d='deletion'==_0x34bd41['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1636b9,authorId:_0x1c03d7}=_0x18eccd['_splitMarkerName'](_0x34bd41['markerName']),_0x2d18e9=_0x47e742['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26954d,'data-suggestion':_0x1636b9,'data-author-id':_0x1c03d7}),_0xfa7a65=_0x47e742['mapper']['toViewPosition'](_0x3e2419['createPositionBefore'](_0x4e8df2));_0x326b27&&_0x18eccd['activeMarkers']['includes'](_0x34bd41['markerName'])&&_0x47e742['writer']['addClass']('ck-suggestion-marker--active',_0x2d18e9),_0x47e742['writer']['insert'](_0xfa7a65,_0x2d18e9),_0x47e742['mapper']['bindElementToMarker'](_0x2d18e9,_0x34bd41['markerName']);}};}class St extends _0x96746a{['afterInit'](){const _0x2f6548=this['editor'],_0x1c8212=_0x2f6548['model'],_0x494575=_0x2f6548['locale'];if(!_0x2f6548['plugins']['has']('StandardEditingModeEditing'))return;const _0x2e8da2=_0x2f6548['plugins']['get']('TrackChangesEditing'),_0xcd16c0='restrictedEditingException',_0x45a50c=_0x2f6548['commands']['get'](_0xcd16c0);_0x2e8da2['enableCommand'](_0xcd16c0,(_0x61f730,_0x5e7866={})=>{const _0x4b8da2=_0x1c8212['document']['selection'];if(_0x4b8da2['isCollapsed'])return void _0x61f730(_0x5e7866);const _0x4ce834=void 0x0!==_0x5e7866['forceValue']?_0x5e7866['forceValue']:!_0x45a50c['value'];_0x1c8212['change'](()=>{const _0x5b1d42=Array['from'](_0x4b8da2['getRanges']());for(const _0x46028e of _0x5b1d42){const _0x33bf6f=_0x4ce834?[_0x46028e]:io(_0xcd16c0,_0x46028e,_0x1c8212);for(const _0x5d7274 of _0x33bf6f)_0x2e8da2['markInlineFormat'](_0x5d7274,{'commandName':_0xcd16c0,'commandParams':[{'forceValue':_0x4ce834}]});}});}),_0x2e8da2['descriptionFactory']['registerDescriptionCallback'](_0xed8e34=>{if('formatBlock'!=_0xed8e34['type']&&'formatInline'!=_0xed8e34['type'])return;const {data:_0x2c7420}=_0xed8e34;return _0x2c7420&&_0x2c7420['commandName']==_0xcd16c0?_0x2c7420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x494575,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x494575,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x96746a{['afterInit'](){const _0x1411d8=this['editor'];if(!_0x1411d8['plugins']['has']('Style')||!_0x1411d8['plugins']['has']('DataSchema'))return;const _0x2ed1d5=_0x1411d8['plugins']['get']('TrackChangesEditing'),_0x49e2e0=_0x1411d8['locale'],_0x486bfb=_0x1411d8['config']['get']('style')||{},_0x38ab40=_0x1411d8['plugins']['get']('GeneralHtmlSupport'),_0x2c04b2=_0x1411d8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1411d8['plugins']['get']('DataSchema'),_0x486bfb['definitions']);_0x2ed1d5['enableDefaultAttributesIntegration']('style');const _0x17d8c5=new Set();for(const _0xabe0fd of _0x2c04b2['block']){const _0x294653=_0x38ab40['getGhsAttributeNameForElement'](_0xabe0fd['element']);_0x17d8c5['add'](_0x294653);}const _0x3c4b5d=new Set();for(const _0x496046 of _0x2c04b2['inline']){const _0x155503=_0x38ab40['getGhsAttributeNameForElement'](_0x496046['element']);_0x3c4b5d['add'](_0x155503);for(const _0x2ce106 of _0x496046['ghsAttributes'])_0x3c4b5d['add'](_0x2ce106);}for(const _0x232bf6 of _0x17d8c5)_0x2ed1d5['registerBlockAttribute'](_0x232bf6),_0x2ed1d5['descriptionFactory']['registerAttributeLabel'](_0x232bf6,o(_0x49e2e0,'FORMAT_STYLE'));for(const _0x2d9cc1 of _0x3c4b5d)_0x2ed1d5['registerInlineAttribute'](_0x2d9cc1),_0x2ed1d5['descriptionFactory']['registerAttributeLabel'](_0x2d9cc1,o(_0x49e2e0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27232e=this['editor'],_0x38c02e=_0x27232e['locale'];_0x27232e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c1ac3=>{if('formatBlock'!=_0x1c1ac3['type']&&'formatInline'!=_0x1c1ac3['type'])return;const {data:_0x478d70}=_0x1c1ac3;return _0x478d70&&'style'===_0x478d70['commandName']?_0x478d70['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38c02e,'*Set\x20format:*\x20%0',_0x478d70['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x38c02e,'*Remove\x20format:*\x20%0',_0x478d70['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x96746a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x55c9e1){super(_0x55c9e1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x521daa=this['editor'],_0x54a7cd=_0x521daa['model']['document']['selection'];if(!_0x521daa['plugins']['has']('TableEditing'))return;const _0x5b7f34=_0x521daa['locale'],_0x33e98a=_0x521daa['plugins']['get']('TrackChangesEditing'),_0x22d51c=_0x521daa['plugins']['get']('TableUtils');_0x33e98a['descriptionFactory']['registerElementLabel']('table',_0x3dc77f=>o(_0x5b7f34,'ELEMENT_TABLE',_0x3dc77f)),this['_setupColumnsRowsFixing'](),_0x33e98a['enableCommand']('insertTable'),_0x33e98a['enableCommand']('selectTableRow'),_0x33e98a['enableCommand']('selectTableColumn');for(const _0x5ef7ed of['insertTableRowAbove','insertTableRowBelow']){const _0x2fe607=_0x521daa['commands']['get'](_0x5ef7ed);_0x33e98a['enableCommand'](_0x5ef7ed,_0x1b8a76=>{_0x521daa['model']['change'](_0x13f962=>{_0x1b8a76();const _0x4bb063='above'===_0x2fe607['order'],_0xa5c722=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x326241=_0x22d51c['getRowIndexes'](_0xa5c722),_0x5752b2=_0x4bb063?_0x326241['first']-0x1:_0x326241['last']+0x1,_0x3417da=_0xa5c722[0x0]['findAncestor']('table'),_0x220822=_0x22d51c['createTableWalker'](_0x3417da,{'startRow':_0x5752b2,'endRow':_0x5752b2}),_0x6d7e5e=Array['from'](_0x220822)['map'](_0x13e0be=>_0x13f962['createRangeOn'](_0x13e0be['cell']));_0x33e98a['markMultiRangeInsertion'](_0x6d7e5e,'tableRow');});});}for(const _0x4782e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1838a8=_0x521daa['commands']['get'](_0x4782e7);_0x33e98a['enableCommand'](_0x4782e7,_0xab9d0c=>{_0x521daa['model']['change'](_0x54af07=>{_0xab9d0c();const _0x3d1ee8='left'===_0x1838a8['order'],_0x5f4f5e=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x3daa28=_0x22d51c['getColumnIndexes'](_0x5f4f5e),_0x1aec08=_0x3d1ee8?_0x3daa28['first']-0x1:_0x3daa28['last']+0x1,_0x137093=_0x5f4f5e[0x0]['findAncestor']('table'),_0x4adcb4=_0x22d51c['createTableWalker'](_0x137093,{'startRow':0x0,'column':_0x1aec08,'includeAllSlots':!0x1}),_0x33c65a=Array['from'](_0x4adcb4)['map'](_0xc6f08b=>_0x54af07['createRangeOn'](_0xc6f08b['cell']));_0x33e98a['markMultiRangeInsertion'](_0x33c65a,'tableColumn');});});}for(const _0x395a58 of['removeTableRow','removeTableColumn']){const _0x1bb219=_0x395a58['substr'](0xb),_0x343f14=_0x1bb219['toLowerCase'](),_0xc3a01c=_0x343f14['substr'](0x0,0x3)+'span',_0x3b63f2='table'+_0x1bb219,_0x272414='min'+_0x1bb219,_0x4ee731='max'+_0x1bb219;_0x33e98a['enableCommand'](_0x395a58,()=>{_0x521daa['model']['change'](_0x4a8f14=>{const _0x29ff64=_0x22d51c['getSelectionAffectedTableCells'](_0x54a7cd),_0x27b3a7=_0x29ff64[0x0]['findAncestor']('table');let _0x5283d9;if('removeTableRow'==_0x395a58){const _0x4f7b87=_0x22d51c['getRowIndexes'](_0x29ff64);_0x5283d9={'startRow':_0x4f7b87['first'],'endRow':_0x4f7b87['last'],'includeAllSlots':!0x0};}else{const _0x4fb85a=_0x22d51c['getColumnIndexes'](_0x29ff64);_0x5283d9={'startColumn':_0x4fb85a['first'],'endColumn':_0x4fb85a['last'],'includeAllSlots':!0x0};}const _0x1befff=_0x22d51c['createTableWalker'](_0x27b3a7,_0x5283d9),_0x533853=Array['from'](_0x1befff)['map'](({cell:_0x9217de})=>_0x9217de),_0x5046eb=Ne(_0x533853['filter'](_0x3b46c7=>_0x3b46c7['hasAttribute'](_0xc3a01c))),_0x2049a3=Ne(_0x533853['filter'](_0x5a704e=>!_0x5a704e['hasAttribute'](_0xc3a01c)))['map'](_0xc5e890=>_0x4a8f14['createRangeOn'](_0xc5e890)),_0x294539=_0x33e98a['markMultiRangeDeletion'](_0x2049a3,_0x3b63f2);if(_0x294539&&('tableRow'==_0x294539['subType']||'tableColumn'==_0x294539['subType'])){const _0x47590b=this['_getSuggestionCoords'](_0x294539);for(const _0x255391 of _0x5046eb){const _0x2075f7=_0x4a8f14['createRangeOn'](_0x255391),_0x41fe02=_0x22d51c['getCellLocation'](_0x255391),_0x38173f=_0x255391['getAttribute'](_0xc3a01c)-0x1,_0x41f07a=_0x47590b[_0x272414],_0x257732=_0x47590b[_0x4ee731];_0x41f07a<=_0x41fe02[_0x343f14]&&_0x41fe02[_0x343f14]+_0x38173f<=_0x257732&&_0x294539['addRange'](_0x2075f7);}}});});}function _0x16c185(_0x341cfe){const _0x39d1df=Array['from'](_0x54a7cd['getRanges']())['map'](_0x1b7308=>_0x25dfb1['fromRange'](_0x1b7308));_0x521daa['model']['change'](_0x5b1182=>{const _0x4fc3fa=_0x5b1182['batch'];_0x341cfe=_0x341cfe['filter'](_0x4d2edd=>'$graveyard'!=_0x4d2edd['root']['rootName']),_0x5b1182['setSelection'](_0x341cfe),_0x521daa['commands']['get']('removeTableRow')['refresh'](),_0x521daa['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x521daa['model']['enqueueChange'](()=>{_0x521daa['model']['enqueueChange'](_0x4fc3fa,_0x55b4bf=>{const _0x49f28f=_0x39d1df['filter'](_0x2a6dbd=>'$graveyard'!=_0x2a6dbd['root']['rootName']);_0x49f28f['length']>0x0&&_0x55b4bf['setSelection'](_0x49f28f);for(const _0x51c11d of _0x39d1df)_0x51c11d['detach']();});});});}function _0x1545e7(_0x40549b){_0x521daa['model']['change'](_0x534294=>{const _0x75c683=Array['from'](_0x54a7cd['getRanges']())['map'](_0x18db2d=>_0x25dfb1['fromRange'](_0x18db2d)),_0xcd1f8e=[];for(const _0x5615c3 of _0x40549b)for(const _0x81c07e of _0x5615c3['getItems']({'shallow':!0x0}))_0xcd1f8e['push'](_0x81c07e);for(const _0x3064db of _0xcd1f8e)'$graveyard'!=_0x3064db['root']['rootName']&&(_0x534294['setSelection'](_0x534294['createPositionAt'](_0x3064db,0x0)),_0x521daa['commands']['get']('removeTableColumn')['refresh'](),_0x521daa['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x18db8c=_0x75c683['filter'](_0xf7d002=>'$graveyard'!=_0xf7d002['root']['rootName']);_0x18db8c['length']>0x0&&_0x534294['setSelection'](_0x18db8c);for(const _0x1c2e91 of _0x75c683)_0x1c2e91['detach']();});}function _0xa2f207(_0x579a77,_0x5130b5){return _0x5130b5['every'](_0x3f5547=>_0x579a77['some'](_0x2695b8=>_0x2695b8['end']['isEqual'](_0x3f5547['start'])||_0x3f5547['end']['isEqual'](_0x2695b8['start'])));}function _0x33f17f(_0x2a9406,_0x59529c){return!_0x2a9406['some'](_0x165f5b=>_0x59529c['some'](_0x24ece6=>_0x165f5b['isIntersecting'](_0x24ece6)))&&_0x2a9406['some'](_0xfce379=>_0x59529c['some'](_0x5ebf62=>_0xfce379['end']['isTouching'](_0x5ebf62['start'])));}_0x521daa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a29c4,_0x3a090c,_0x5c7e60)=>{if(!_0x5c7e60['options']['showSuggestionHighlights'])return;const _0x3ba282=_0x3a090c['item'];if(!_0x3ba282||!_0x3ba282['is']('element','tableCell'))return;const _0x54c3c8=_0x5c7e60['mapper']['toViewElement'](_0x3ba282);if(_0x54c3c8){const {id:_0x92182a,authorId:_0xe9409a}=_0x33e98a['_splitMarkerName'](_0x3a090c['markerName']);_0xdb9447(_0x54c3c8,_0x5c7e60['writer'],(_0x3c01c3,_0x1a779b,_0x1f3cdc)=>{_0x1f3cdc['addClass'](_0x35449c(_0x1a779b['classes']),_0x3c01c3),_0x1f3cdc['setAttribute']('data-suggestion-id',_0x92182a,_0x3c01c3),_0x1f3cdc['setAttribute']('data-author-id',_0xe9409a,_0x3c01c3);},(_0x3470ed,_0x582194,_0x2df8a7)=>{_0x2df8a7['removeClass'](_0x35449c(_0x582194['classes']),_0x3470ed),_0x2df8a7['removeAttribute']('data-suggestion-id',_0x3470ed),_0x2df8a7['removeAttribute']('data-author-id',_0x3470ed);});}},{'priority':'highest'}),_0x33e98a['descriptionFactory']['registerDescriptionCallback'](_0x127db7=>{if('insertion'!=_0x127db7['type']&&'deletion'!=_0x127db7['type'])return;const _0x5dd06d=_0x127db7['getContainedElement']();if(null!=_0x5dd06d&&_0x5dd06d['is']('element','table')){if('insertion'==_0x127db7['type']){const _0x15a9e7=_0x127db7['getItems']()['filter'](_0x57547e=>_0x57547e['is']('$textProxy'))['map'](_0xd4daa1=>_0xd4daa1['data']);if(_0x15a9e7['length'])return{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15a9e7['join']('\x20')+'\x22'))};}if('deletion'==_0x127db7['type']){const _0xf75eaf=_0x127db7['getItems']()['filter'](_0x5dbfcc=>_0x5dbfcc['is']('$textProxy'))['map'](_0x5941ed=>_0x5941ed['data']);if(_0xf75eaf['length'])return{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf75eaf['join']('\x20')+'\x22'))};}}}),_0x33e98a['descriptionFactory']['registerDescriptionCallback'](_0x4b29a1=>{if('tableRow'==_0x4b29a1['subType']){const _0xdf6f28=_0x4b29a1['getItems']()['filter'](_0x1b38cf=>_0x1b38cf['is']('$textProxy'))['map'](_0x2622b8=>_0x2622b8['data']),_0x2ff1c6=this['_getSuggestionCoords'](_0x4b29a1),_0x47c761=_0x2ff1c6['maxRow']-_0x2ff1c6['minRow']+0x1;if('insertion'==_0x4b29a1['type'])return _0xdf6f28['length']?{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47c761,'\x22'+_0xdf6f28['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW',_0x47c761))};if('deletion'==_0x4b29a1['type'])return _0xdf6f28['length']?{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x47c761,'\x22'+_0xdf6f28['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_ROW',_0x47c761))};}if('tableColumn'==_0x4b29a1['subType']){const _0x491eb3=_0x4b29a1['getItems']()['filter'](_0x4fae91=>_0x4fae91['is']('$textProxy'))['map'](_0xe3ef69=>_0xe3ef69['data']),_0x59fe7c=this['_getSuggestionCoords'](_0x4b29a1),_0x4a6edd=_0x59fe7c['maxColumn']-_0x59fe7c['minColumn']+0x1;if('insertion'==_0x4b29a1['type'])return _0x491eb3['length']?{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6edd,'\x22'+_0x491eb3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b7f34,'*Insert:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN',_0x4a6edd))};if('deletion'==_0x4b29a1['type'])return _0x491eb3['length']?{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6edd,'\x22'+_0x491eb3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b7f34,'*Remove:*\x20%0',o(_0x5b7f34,'ELEMENT_TABLE_COLUMN',_0x4a6edd))};}}),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x16c185),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x16c185),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1545e7),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1545e7),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xa2f207),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xa2f207),_0x33e98a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x33f17f),_0x33e98a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x33f17f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x201e54=this['editor'],_0x11c578=_0x201e54['model']['document']['selection'];return(_0x12938a,_0x3447da)=>{_0x201e54['model']['change'](_0x579e4b=>{const {commandName:_0x5f21a6,commandParams:_0x1a8f60}=_0x3447da;let _0x437093=_0x12938a[0x0]['end']['nodeBefore'];_0x1a8f60&&_0x1a8f60[0x0]&&!0x1===_0x1a8f60[0x0]['forceValue']&&(_0x437093=_0x12938a[0x0]['start']['nodeAfter']);const _0x409afe=_0x579e4b['createRangeIn'](_0x437093);if('$graveyard'==_0x409afe['root']['rootName'])return;const _0x2aa5bb=Array['from'](_0x11c578['getRanges']())['map'](_0x525d8b=>_0x25dfb1['fromRange'](_0x525d8b));_0x579e4b['setSelection'](_0x409afe),_0x201e54['commands']['get'](_0x5f21a6)['refresh'](),_0x1a8f60['push']({'forceDefaultExecution':!0x0}),_0x201e54['execute'](_0x5f21a6,..._0x1a8f60);const _0x21aeb5=_0x2aa5bb['filter'](_0x3b1f37=>'$graveyard'!=_0x3b1f37['root']['rootName']);_0x21aeb5['length']>0x0&&_0x579e4b['setSelection'](_0x21aeb5);for(const _0xcdb9e8 of _0x2aa5bb)_0xcdb9e8['detach']();});};}['_getCoordsForCells'](_0x2c2dcd){const _0xff1b4e=this['editor']['plugins']['get']('TableUtils');let _0x4cca50=Number['MAX_SAFE_INTEGER'],_0x155968=Number['MIN_SAFE_INTEGER'],_0x87aefc=Number['MAX_SAFE_INTEGER'],_0x27e674=Number['MIN_SAFE_INTEGER'];for(const _0x410e04 of _0x2c2dcd){if('$graveyard'==_0x410e04['root']['rootName'])continue;const {row:_0x80b798,column:_0x495465}=_0xff1b4e['getCellLocation'](_0x410e04),_0x257981=_0x410e04['hasAttribute']('rowspan')?_0x410e04['getAttribute']('rowspan')-0x1:0x0,_0x521806=_0x410e04['hasAttribute']('colspan')?_0x410e04['getAttribute']('colspan')-0x1:0x0;_0x4cca50=_0x80b798<_0x4cca50?_0x80b798:_0x4cca50,_0x155968=_0x80b798+_0x257981>_0x155968?_0x80b798+_0x257981:_0x155968,_0x87aefc=_0x495465<_0x87aefc?_0x495465:_0x87aefc,_0x27e674=_0x495465+_0x521806>_0x27e674?_0x495465+_0x521806:_0x27e674;}return{'minRow':_0x4cca50,'maxRow':_0x155968,'minColumn':_0x87aefc,'maxColumn':_0x27e674};}['_setupColumnsRowsFixing'](){const _0x3b955a=this['editor'],_0x5df75e=_0x3b955a['plugins']['get']('TrackChangesEditing'),_0x1b1a0d=_0x3b955a['plugins']['get']('TableUtils');_0x3b955a['model']['document']['on']('change:data',()=>{const _0x360e8f=Array['from'](_0x3b955a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3329c1,data:_0x1cdd1c}of _0x360e8f){const {group:_0x3aec46,id:_0xed902b,subType:_0x298298}=_0x5df75e['_splitMarkerName'](_0x3329c1);if('suggestion'!=_0x3aec46)continue;if(null!=_0x1cdd1c['oldRange'])continue;const _0x335897=_0x5df75e['getSuggestion'](_0xed902b);this['_tablePostFixingSubtypes']['includes'](_0x298298)&&this['_tableSuggestions']['add'](_0x335897);}},{'priority':'low'});const _0x5b10b0=(_0x8d04fa,_0x444319)=>{let _0x2979c0=!0x1;const _0x91909a=_0x444319['createRangeOn'](_0x8d04fa),_0x5ec7fe=_0x8d04fa['findAncestor']('table'),_0x59f186=_0x1b1a0d['getCellLocation'](_0x8d04fa);for(const _0x345932 of this['_tableSuggestions']){const _0x1da521=_0x345932['subType'],_0x303c88=_0x1da521['startsWith']('tablePaste'),_0x20be4e=_0x1da521['substr'](_0x303c88?0xa:0x5),_0x2fbce4=_0x20be4e['toLowerCase'](),_0x2aa4c2=_0x2fbce4['substr'](0x0,0x3)+'span',_0x3d5568='min'+_0x20be4e,_0x2391e4='max'+_0x20be4e;if(!_0x345932['isInContent'])continue;if(_0x5ec7fe!=_0x345932['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345932['isIntersectingWithRange'](_0x91909a))continue;const _0x45d618=_0x8d04fa['hasAttribute'](_0x2aa4c2)?_0x8d04fa['getAttribute'](_0x2aa4c2)-0x1:0x0,_0x2306a8=this['_getSuggestionCoords'](_0x345932),_0x4bf698=_0x2306a8[_0x3d5568],_0xa25db3=_0x2306a8[_0x2391e4];_0x4bf698<=_0x59f186[_0x2fbce4]&&_0x59f186[_0x2fbce4]+_0x45d618<=_0xa25db3&&(_0x345932['addRange'](_0x91909a),_0x2979c0=!0x0);}return _0x2979c0;};_0x3b955a['model']['document']['registerPostFixer'](_0x426225=>{let _0x544baa=!0x1;for(const _0x8056b2 of _0x3b955a['model']['document']['differ']['getChanges']())if('insert'==_0x8056b2['type']){if('tableRow'==_0x8056b2['name']){for(const _0x161bcb of _0x8056b2['position']['nodeAfter']['getChildren']())_0x544baa=_0x544baa||_0x5b10b0(_0x161bcb,_0x426225);}else'tableCell'==_0x8056b2['name']&&(_0x544baa=_0x544baa||_0x5b10b0(_0x8056b2['position']['nodeAfter'],_0x426225));}return _0x544baa;});}['_getSuggestionCoords'](_0x557e94){return this['_getCoordsForCells'](_0x557e94['getRanges']()['map'](_0x5c20c=>_0x5c20c['start']['nodeAfter']));}}function Ne(_0x47d1d4){return Array['from'](new Set(_0x47d1d4)['values']());}class _t extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x5cdabb=this['editor'],_0x3b8059=_0x5cdabb['model']['document']['selection'],_0x15dd28=_0x5cdabb['locale'];if(!_0x5cdabb['plugins']['has']('TableEditing'))return;const _0x39ba3d=_0x5cdabb['plugins']['get']('TrackChangesEditing'),_0x1caaeb=_0x5cdabb['plugins']['get']('TableUtils'),_0x554473=_0x5cdabb['plugins']['get'](At);_0x554473['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39ba3d['enableCommand']('mergeTableCells',()=>{const _0xf71666=_0x1caaeb['getSelectionAffectedTableCells'](_0x5cdabb['model']['document']['selection']);_0x5cdabb['model']['change'](()=>{_0x39ba3d['markMultiRangeBlockFormat'](_0xf71666,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5cdabb['commands']['get']('mergeTableCells')['on']('execute',(_0x304684,_0x28f210)=>{_0x5cdabb['commands']['get']('trackChanges')['value']&&(_0x28f210['length']>0x0&&_0x28f210[_0x28f210['length']-0x1]&&_0x28f210[_0x28f210['length']-0x1]['forceDefaultExecution']||_0x39ba3d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x304684['stop']());},{'priority':'highest'});for(const _0x139c6c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24b339=_0x5cdabb['commands']['get'](_0x139c6c);_0x39ba3d['enableCommand'](_0x139c6c,()=>{const _0x19deb2=_0x5cdabb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c0068=>_0x2c0068['is']('element','tableCell')),_0x2ef99d=_0x24b339['value'];_0x5cdabb['model']['change'](()=>{_0x39ba3d['markMultiRangeBlockFormat']([_0x19deb2,_0x2ef99d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x52c380 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1ca5d8=_0x5cdabb['commands']['get'](_0x52c380);_0x39ba3d['enableCommand'](_0x52c380,()=>{const _0x3c8d24=_0x1caaeb['getSelectionAffectedTableCells'](_0x5cdabb['model']['document']['selection'])[0x0],_0x13d561=_0x3c8d24['findAncestor']('table'),{column:_0x8d92a1,row:_0xe73e09}=_0x1caaeb['getCellLocation'](_0x3c8d24);let _0x13228e=[];if('horizontally'==_0x1ca5d8['direction']){const _0x3741ba=_0x1caaeb['createTableWalker'](_0x13d561,{'startRow':_0xe73e09,'endRow':_0xe73e09,'includeAllSlots':!0x0});_0x13228e=Array['from'](_0x3741ba)['map'](_0x9c12b5=>_0x9c12b5['cell']);}else{const _0x4a67d3=_0x1caaeb['createTableWalker'](_0x13d561,{'column':_0x8d92a1,'includeAllSlots':!0x0});_0x13228e=Array['from'](_0x4a67d3)['map'](_0x377a3f=>_0x377a3f['cell']);}_0x5cdabb['model']['change'](_0x23f29e=>{_0x39ba3d['markBlockFormat'](_0x23f29e['createRangeOn'](_0x3c8d24),{'commandName':_0x52c380,'commandParams':[]},_0x13228e,_0x52c380);});});}_0x39ba3d['descriptionFactory']['registerDescriptionCallback'](_0x4723cf=>{if('formatBlock'!=_0x4723cf['type']&&'formatInline'!=_0x4723cf['type'])return;const {data:_0x5cd7a5}=_0x4723cf;return _0x5cd7a5&&'mergeTableCells'==_0x5cd7a5['commandName']?{'type':'format','content':o(_0x15dd28,'*Merge\x20cells*')}:void 0x0;}),_0x39ba3d['descriptionFactory']['registerDescriptionCallback'](_0x215a24=>{if('formatBlock'!=_0x215a24['type']&&'formatInline'!=_0x215a24['type'])return;const {data:_0xb3fc68}=_0x215a24;return _0xb3fc68?'splitTableCellVertically'==_0xb3fc68['commandName']?{'type':'format','content':o(_0x15dd28,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3fc68['commandName']?{'type':'format','content':o(_0x15dd28,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1b1f5e=_0x554473['_acceptFormatSuggestionCallbackFactory']();for(const _0x1127d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1127d1,'accept',_0x1b1f5e);for(const _0x242161 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x242161,'accept',_0x1b1f5e);_0x39ba3d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46a160=>{_0x5cdabb['model']['change'](_0x3a6ca8=>{const _0x5c86c8=Array['from'](_0x3b8059['getRanges']())['map'](_0x5b61be=>_0x25dfb1['fromRange'](_0x5b61be));_0x3a6ca8['setSelection'](_0x46a160),_0x5cdabb['commands']['get']('mergeTableCells')['refresh'](),_0x5cdabb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17e1ee=_0x5c86c8['filter'](_0x464b49=>'$graveyard'!=_0x464b49['root']['rootName']);_0x17e1ee['length']>0x0&&_0x3a6ca8['setSelection'](_0x17e1ee);for(const _0x288532 of _0x5c86c8)_0x288532['detach']();});});for(const _0x47a625 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3675b9=_0x5cdabb['commands']['get'](_0x47a625);_0x3675b9['on']('set:isEnabled',(_0x3b78e1,_0x384565,_0x487192)=>{if(_0x487192){const _0x403b71=_0x5cdabb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x118ccf=>_0x118ccf['is']('element','tableCell'));this['_areMergableCells'](_0x3675b9['value'],_0x403b71)||(_0x3b78e1['return']=!0x1,_0x3b78e1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54248f=this['editor']['commands']['get']('mergeTableCells'),_0xd907d3=this['editor']['plugins']['get']('TableUtils');if(!_0x54248f['isEnabled'])return!0x1;const _0x1924f0=_0xd907d3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4e5089 of _0x1924f0)for(const _0xd0b243 of _0x1924f0)if(_0x4e5089!=_0xd0b243&&!this['_areMergableCells'](_0x4e5089,_0xd0b243))return!0x1;return!0x0;}['_areMergableCells'](_0x43c046,_0x51ca77){const _0x5096d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29151e=this['editor']['model']['createRangeOn'](_0x43c046),_0x5a7b6c=this['editor']['model']['createRangeOn'](_0x51ca77),_0x118e4c=new Set(),_0xc4f591=new Set();for(const _0x31d39b of _0x5096d0['getSuggestions']())if(('insertion'==_0x31d39b['type']||'deletion'==_0x31d39b['type']||'mergeTableCells'==_0x31d39b['subType'])&&_0x31d39b['isInContent']){for(const _0x2ec314 of _0x31d39b['getRanges']())_0x2ec314['containsRange'](_0x29151e,!0x0)&&_0x118e4c['add'](_0x31d39b['type']+':'+_0x31d39b['author']['id']),_0x2ec314['containsRange'](_0x5a7b6c,!0x0)&&_0xc4f591['add'](_0x31d39b['type']+':'+_0x31d39b['author']['id']);}if(_0x118e4c['size']!=_0xc4f591['size'])return!0x1;for(const _0xabb3da of _0x118e4c)if(!_0xc4f591['has'](_0xabb3da))return!0x1;return!0x0;}}class Ct extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x38b36c=this['editor'];if(!_0x38b36c['plugins']['has']('TableEditing'))return;const _0x246c03=_0x38b36c['locale'],_0x33927b=_0x38b36c['plugins']['get']('TrackChangesEditing');_0x33927b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33927b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33927b['registerBlockAttribute']('headingRows'),_0x33927b['registerBlockAttribute']('headingColumns'),_0x33927b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x246c03,'FORMAT_HEADER_ROW')),_0x33927b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x246c03,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x15a20f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x130075=this['editor']['plugins']['get']('TableUtils'),_0x40a5dd=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x4c86a0({showActiveMarker:_0x32abe7=!0x0,setDataAttribute:_0x584fc5=!0x0}={}){return(_0x1084be,_0x429786,_0x10a8e1)=>{const {type:_0xd77621,id:_0x2ffc76}=_0x15a20f['_splitMarkerName'](_0x429786['markerName']),_0x3ceecf=_0x15a20f['getSuggestion'](_0x2ffc76),_0x24953e=_0x3ceecf['data'];if('formatBlock'!=_0x3ceecf['type']||!_0x24953e||'setTableColumnHeader'!=_0x24953e['commandName'])return;if(_0x429786['item'])return void _0x1084be['stop']();if(!_0x10a8e1['consumable']['consume'](_0x429786['markerRange'],_0x1084be['name']))return;const _0x3fbd7e=_0x429786['markerRange']['start']['nodeAfter'],_0x58b722=_0x429786['markerRange']['end']['nodeBefore'],_0x3abfb8=_0x3fbd7e['parent']['parent'],{column:_0x312c61}=_0x130075['getCellLocation'](_0x3fbd7e),{column:_0x2cb07d}=_0x130075['getCellLocation'](_0x58b722);for(let _0x3aac52=_0x312c61;_0x3aac52<=_0x2cb07d;_0x3aac52++){const _0x2964ca=_0x130075['createTableWalker'](_0x3abfb8,{'column':_0x3aac52,'includeAllSlots':!0x1});for(const _0x3d17e1 of _0x2964ca){const _0x64a319=_0x3d17e1['cell'],_0xb14a5e=_0x10a8e1['mapper']['toViewElement'](_0x64a319);_0x10a8e1['writer']['addClass']('ck-suggestion-marker-'+_0xd77621,_0xb14a5e),_0x584fc5&&_0x10a8e1['writer']['setAttribute']('data-suggestion',_0x2ffc76,_0xb14a5e),_0x10a8e1['mapper']['bindElementToMarker'](_0xb14a5e,_0x429786['markerName']),_0x32abe7&&(_0x15a20f['activeMarkers']['includes'](_0x429786['markerName'])?_0x10a8e1['writer']['addClass']('ck-suggestion-marker--active',_0xb14a5e):_0x10a8e1['writer']['removeClass']('ck-suggestion-marker--active',_0xb14a5e));}}};}_0x15a20f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x40a5dd),_0x15a20f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x40a5dd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4c86a0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f411d,_0x1fbec5,_0xf7a3f2)=>{_0xf7a3f2['options']['showSuggestionHighlights']&&_0x4c86a0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f411d,_0x1fbec5,_0xf7a3f2);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1aa2fd,_0x4781b1,_0x243c25)=>{const {type:_0x420064,id:_0x391772}=_0x15a20f['_splitMarkerName'](_0x4781b1['markerName']),_0x16c34b=_0x15a20f['getSuggestion'](_0x391772),_0x4ba306=_0x16c34b['data'];if('formatBlock'!=_0x16c34b['type']||!_0x4ba306||'setTableColumnHeader'!=_0x4ba306['commandName'])return;const _0x2c79c5=_0x243c25['mapper']['markerNameToElements'](_0x4781b1['markerName']);if(_0x2c79c5){for(const _0x5be236 of _0x2c79c5)_0x243c25['writer']['removeClass']('ck-suggestion-marker-'+_0x420064,_0x5be236),_0x243c25['writer']['removeClass']('ck-suggestion-marker--active',_0x5be236),_0x243c25['writer']['removeAttribute']('data-suggestion',_0x5be236),_0x243c25['mapper']['unbindElementFromMarkerName'](_0x5be236,_0x4781b1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe51c72=this['editor'],_0x534c27=_0xe51c72['locale'];function _0x2df212(_0x49013f){return{'type':'format','content':o(_0x534c27,'*Format:*\x20%0',_0x49013f)};}_0xe51c72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2058b9=>{if('formatBlock'!=_0x2058b9['type'])return;const {data:_0x1462db}=_0x2058b9;if(_0x1462db){if('setTableRowHeader'==_0x1462db['commandName']){const _0x165092=_0x1462db['commandParams'][0x0]['forceValue'];return _0x2df212(o(_0x534c27,_0x165092?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1462db['commandName']){const _0x3f3a65=_0x1462db['commandParams'][0x0]['forceValue'];return _0x2df212(o(_0x534c27,_0x3f3a65?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x96746a{['afterInit'](){const _0x30d2f8=this['editor'],_0x2f46f9=_0x30d2f8['locale'],_0x1b6a36=_0x30d2f8['plugins']['get']('TrackChangesEditing');function _0x146f2f(_0x31f1b9){return{'type':'format','content':''+o(_0x2f46f9,'*Set\x20table\x20type:*\x20%0',_0x31f1b9)};}_0x30d2f8['plugins']['has']('TableLayout')&&(_0x1b6a36['enableCommand']('insertTableLayout'),_0x1b6a36['enableDefaultAttributesIntegration']('tableType'),_0x1b6a36['registerBlockAttribute']('tableType'),_0x1b6a36['descriptionFactory']['registerElementLabel'](_0x7dfad7=>_0x7dfad7['is']('element','table')&&'layout'===_0x7dfad7['getAttribute']('tableType'),_0x18378d=>o(_0x2f46f9,'ELEMENT_LAYOUT_TABLE',_0x18378d)),_0x1b6a36['descriptionFactory']['registerDescriptionCallback'](_0xd9c71=>{const {data:_0x283bf8}=_0xd9c71;if(_0x283bf8&&'tableType'==_0x283bf8['key'])switch(_0x283bf8['newValue']){case'layout':return _0x146f2f(o(_0x2f46f9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x146f2f(o(_0x2f46f9,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2184a3=>[_0x2184a3,null]));class Nt extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x400816=this['editor'];if(!_0x400816['plugins']['has']('TableClipboard'))return;const _0x584b73=_0x400816['plugins']['get']('TrackChangesEditing'),_0x59a715=_0x400816['plugins']['get']('TableUtils'),_0x3b94cd=_0x400816['plugins']['get'](At),_0x4bfc0c=_0x400816['plugins']['get']('TableClipboard'),_0x44eb6e=_0x400816['plugins']['get']('TableSelection'),_0x385935=_0x400816['plugins']['get'](_0x21e098);_0x3b94cd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x400816['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x400816['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x56217a=null,_0x47e41a=!0x1;_0x385935['on']('contentInsertion',(_0x22c2bb,_0x36eb26)=>{_0x47e41a='paste'===_0x36eb26['method'];}),_0x400816['model']['on']('insertContent',(_0x5d90f1,_0xdcc3d7)=>{if(!_0x47e41a&&null===_0x44eb6e['getSelectedTableCells']())return;const [_0x4e13c0,_0x2f890a]=_0xdcc3d7,_0x4d2f2e=_0xdcc3d7[_0xdcc3d7['length']-0x1];_0x4d2f2e&&_0x4d2f2e['forceDefaultExecution']||_0x584b73['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eae06,_0x2fdb32,_0x4c67de,_0xe75192,_0x2fb517){if(_0x2fdb32&&!_0x2fdb32['is']('documentSelection'))return!0x1;const _0xd798df=_0x2fb517['getTableIfOnlyTableInContent'](_0x1eae06,_0x4c67de);if(!_0xd798df||!Ue(_0xd798df,void 0x0,_0xe75192))return!0x1;const _0x4d0241=_0xe75192['getSelectionAffectedTableCells'](_0x4c67de['document']['selection']);if(!_0x4d0241['length'])return!0x1;const _0x13fa5a=_0x4d0241[0x0]['findAncestor']('table'),_0x54ca5c=_0xe75192['getRowIndexes'](_0x4d0241),_0x1416ee=_0xe75192['getColumnIndexes'](_0x4d0241),_0x513bd9={'startRow':_0x54ca5c['first'],'endRow':_0x54ca5c['last'],'startColumn':_0x1416ee['first'],'endColumn':_0x1416ee['last']};return 0x1==_0x4d0241['length']&&(_0x513bd9['endRow']+=_0xe75192['getRows'](_0xd798df)-0x1,_0x513bd9['endColumn']+=_0xe75192['getColumns'](_0xd798df)-0x1),Ue(_0x13fa5a,_0x513bd9,_0xe75192);}(_0x4e13c0,_0x2f890a,_0x400816['model'],_0x59a715,_0x4bfc0c)&&(_0x5d90f1['stop'](),_0x56217a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x400816['model']['change'](()=>{_0x400816['model']['insertContent'](_0xdcc3d7[0x0],_0xdcc3d7[0x1],_0xdcc3d7[0x2],{'forceDefaultExecution':!0x0});const _0x5b8b5e=_0x2e07c2(),{rowInsertionRanges:_0xf33c86,columnInsertionRanges:_0x466223,insertionRanges:_0x5765a8,deletionRanges:_0x4dfe6f,cells:_0xa8b845}=_0x56217a;_0xf33c86['length']&&_0x584b73['markMultiRangeInsertion'](_0xf33c86,'tablePasteRow',{'tablePasteChainId':_0x5b8b5e}),_0x466223['length']&&_0x584b73['markMultiRangeInsertion'](_0x466223,'tablePasteColumn',{'tablePasteChainId':_0x5b8b5e}),_0x5765a8['length']&&(_0x584b73['markMultiRangeInsertion'](_0x5765a8,'tablePaste',{'tablePasteChainId':_0x5b8b5e,'skipNestingCheck':!0x0}),_0x5765a8['forEach'](_0xaa15c8=>_0xaa15c8['detach']?.())),_0x4dfe6f['length']&&(_0x584b73['markMultiRangeDeletion'](_0x4dfe6f,'tablePaste',{'tablePasteChainId':_0x5b8b5e,'skipNestingCheck':!0x0}),_0x4dfe6f['forEach'](_0x48bef1=>_0x48bef1['detach']?.()));const _0x2b95bc=_0x584b73['markMultiRangeBlockFormat'](_0xa8b845['map'](({element:_0x3bae68})=>_0x3bae68),{'formatGroupId':_0x2e07c2()},[],'tablePasteCell',{'tablePasteChainId':_0x5b8b5e});if(_0x2b95bc){const _0x7dc6a3=_0x2b95bc['getMarkers'](),_0x404368=[];for(const {element:_0x468a66,attributes:_0x2a8768}of _0xa8b845){if(!_0x2a8768)continue;const _0x5924e6=_0x400816['model']['createRangeOn'](_0x468a66),_0x480288=_0x7dc6a3['find'](_0x1f569b=>_0x1f569b['getRange']()['isEqual'](_0x5924e6));_0x480288&&_0x404368['push']([_0x480288['name'],_0x2a8768]);}_0x404368['length']&&_0x2b95bc['setAttribute']('markerAttributes',Object['fromEntries'](_0x404368));}_0x56217a=null;}));},{'priority':_0x5a860b['high']+0xa}),_0x385935['on']('contentInsertion',()=>{_0x47e41a=!0x1;},{'priority':'lowest'}),_0x400816['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2aa972,_0x30d759)=>{const [_0x31f268,_0x40467d,,_0x364df0]=_0x30d759;if(!_0x56217a)return;_0x2aa972['stop']();const _0x2805c8=_0x31f268['cell'],_0xeb937a=_0x40467d,_0x5f9339=Oe(_0x2805c8),_0x6edc47=Oe(_0xeb937a);_0x2aa972['return']=_0x2805c8;let _0x244439=null,_0x1b0b89=null;if(_0x6edc47||_0x5f9339){if(_0x5f9339&&!_0x6edc47){_0x364df0['remove'](_0x2805c8['getChild'](0x0));for(const _0x36536f of Array['from'](_0xeb937a['getChildren']()))_0x364df0['insert'](_0x36536f,_0x2805c8,'end');const _0x46687c=_0x56217a['rowInsertionIndexes']['includes'](_0x31f268['row']),_0x970ca6=_0x56217a['columnInsertionIndexes']['includes'](_0x31f268['column']);_0x46687c||_0x970ca6||(_0x244439=_0x25dfb1['fromRange'](_0x364df0['createRangeIn'](_0x2805c8)));}else _0x6edc47&&!_0x5f9339&&(_0x1b0b89=_0x364df0['createRangeIn'](_0x2805c8));}else{const _0x45c2af=_0x364df0['createElement']('tableCellSuggestion'),_0x4308e4=_0x364df0['createElement']('tableCellSuggestion');_0x364df0['wrap'](_0x364df0['createRangeIn'](_0x2805c8),_0x4308e4),_0x364df0['insert'](_0x45c2af,_0x2805c8,0x0);for(const _0x54d560 of Array['from'](_0xeb937a['getChildren']()))_0x364df0['insert'](_0x54d560,_0x45c2af,'end');_0x244439=_0x25dfb1['fromRange'](_0x364df0['createRangeOn'](_0x45c2af)),_0x1b0b89=_0x25dfb1['fromRange'](_0x364df0['createRangeOn'](_0x4308e4));}const _0x43de4a=Array['from'](_0xeb937a['getAttributes']())['filter'](([_0x3026bc])=>Be['includes'](_0x3026bc));_0x56217a['cells']['push']({'element':_0x2805c8,'attributes':_0x43de4a['length']?Object['fromEntries'](_0x43de4a):null}),_0x244439&&_0x56217a['insertionRanges']['push'](_0x244439),_0x1b0b89&&_0x56217a['deletionRanges']['push'](_0x1b0b89);},{'priority':'high'}),_0x59a715['on']('insertColumns',(_0x1660bf,_0x21f7b6)=>{const [_0xd30203,_0x28cb6f={}]=_0x21f7b6;if(!_0x56217a)return;const _0x2ec74e=_0x28cb6f['at']||0x0,_0x18092f=_0x28cb6f['columns']||0x1;_0x56217a['columnInsertionIndexes']=new Array(_0x18092f)['fill'](_0x2ec74e)['map']((_0x3822ec,_0x40f4ae)=>_0x3822ec+_0x40f4ae);for(const {cell:_0xaf63dc}of _0x59a715['createTableWalker'](_0xd30203,{'startColumn':_0x2ec74e,'endColumn':_0x2ec74e+_0x18092f-0x1}))_0x56217a['columnInsertionRanges']['push'](_0x400816['model']['createRangeOn'](_0xaf63dc));},{'priority':'low'}),_0x59a715['on']('insertRows',(_0x47fa85,_0x5235b1)=>{const [_0x41786d,_0x55c9fc={}]=_0x5235b1;if(!_0x56217a)return;const _0x2649b9=_0x55c9fc['at']||0x0,_0x5c0442=_0x55c9fc['rows']||0x1;_0x56217a['rowInsertionIndexes']=new Array(_0x5c0442)['fill'](_0x2649b9)['map']((_0x11c389,_0x119c29)=>_0x11c389+_0x119c29);for(const {cell:_0x136030}of _0x59a715['createTableWalker'](_0x41786d,{'startRow':_0x2649b9,'endRow':_0x2649b9+_0x5c0442-0x1}))_0x56217a['rowInsertionRanges']['push'](_0x400816['model']['createRangeOn'](_0x136030));},{'priority':'low'}),_0x584b73['descriptionFactory']['registerDescriptionCallback'](_0x569d6c=>{if(_0x569d6c['subType']&&_0x569d6c['subType']['startsWith']('tablePaste'))return _0x569d6c['previous']?{}:{'type':'insertion','content':o(_0x400816['locale'],'*Replace\x20table\x20cells*')};});const _0x432c68=()=>!0x1;for(const _0x5d18e3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d18e3,'join',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d18e3,'join',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d18e3,'join',_0x432c68);_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x432c68),_0x584b73['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35b4fb,_0x3b71af,_0x3f7709)=>{const _0xb60931=_0x35b4fb['map'](_0x546353=>_0x546353['getContainedElement']())['filter'](_0x15ca17=>_0x15ca17),_0x55bb53=new Map(_0xb60931['map'](_0x45f2d2=>[_0x45f2d2,null]));if(_0x56217a){for(const {element:_0x3c8418,attributes:_0x4efca0}of _0x56217a['cells'])_0x4efca0&&_0x55bb53['set'](_0x3c8418,_0x4efca0);}else{if(_0x3f7709&&_0x3f7709['markerAttributes'])for(const [_0x3cbaa5,_0x4cfc45]of Object['entries'](_0x3f7709['markerAttributes'])){const _0x53673e=_0x400816['model']['markers']['get'](_0x3cbaa5),_0x1c939c=_0x53673e?_0x53673e['getRange']()['getContainedElement']():null;_0x1c939c&&_0x55bb53['set'](_0x1c939c,_0x4cfc45);}}_0x400816['model']['change'](_0x3c06a8=>{for(const [_0x110325,_0x2aefcb]of _0x55bb53)_0x3c06a8['setAttributes']({...xe,..._0x2aefcb},_0x110325);});});const _0x3d1e2f=(_0x13c203,_0x17e45d)=>{_0x584b73['_suggestionFactory']['registerCustomCallback'](_0x13c203,'tablePaste',_0x17e45d,(_0x2fdbd9,_0x59e199,_0x39d820)=>{_0x400816['model']['change'](_0x3f3053=>{const _0x1d0db1=[];for(const _0x453f88 of _0x2fdbd9){const _0xde3015=_0x453f88['start']['nodeAfter'];_0xde3015['is']('element','tableCellSuggestion')&&_0x1d0db1['push'](_0xde3015);}_0x584b73['_suggestionFactory']['getSuggestionCallback'](_0x13c203,null,_0x17e45d)(_0x2fdbd9,_0x59e199,_0x39d820);for(const _0x57efde of _0x1d0db1)'$graveyard'!=_0x57efde['root']['rootName']&&_0x3f3053['unwrap'](_0x57efde);});});};_0x3d1e2f('insertion','accept'),_0x3d1e2f('insertion','discard'),_0x3d1e2f('deletion','accept'),_0x3d1e2f('deletion','discard'),_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa2c57c=>{const _0x477b99=_0xa2c57c['map'](_0x24651d=>_0x24651d['getContainedElement']()),_0x1d0f8b=_0x477b99[0x0]['findAncestor']('table'),{minRow:_0x5b5c45,maxRow:_0x336ba4}=_0x3b94cd['_getCoordsForCells'](_0x477b99);_0x59a715['removeRows'](_0x1d0f8b,{'at':_0x5b5c45,'rows':_0x336ba4-_0x5b5c45+0x1});}),_0x584b73['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x593337=>{const _0x11e04b=_0x593337['map'](_0x34a7a5=>_0x34a7a5['getContainedElement']()),_0x2e9205=_0x11e04b[0x0]['findAncestor']('table'),{minColumn:_0x3ab9e4,maxColumn:_0x3f435f}=_0x3b94cd['_getCoordsForCells'](_0x11e04b);_0x59a715['removeColumns'](_0x2e9205,{'at':_0x3ab9e4,'columns':_0x3f435f-_0x3ab9e4+0x1});});const _0x4730aa=(_0x46074d,_0xe78cd3)=>{if(!_0xe78cd3['subType']||!_0xe78cd3['subType']['startsWith']('tablePaste'))return;const _0x434a8c=_0xe78cd3['attributes']['tablePasteChainId'],_0x3ce9b9=_0x584b73['getSuggestions']()['filter'](_0x1aae8a=>_0x1aae8a['isInContent']&&_0x1aae8a['attributes']&&_0x1aae8a['attributes']['tablePasteChainId']==_0x434a8c);_0x3ce9b9['length']&&_0xe78cd3['getAllAdjacentSuggestions']()['length']!=_0x3ce9b9['length']&&_0x3ce9b9['reduce']((_0x4c41a,_0x199538)=>(_0x4c41a['next']=_0x199538,_0x199538['previous']=_0x4c41a,_0x199538));};function _0x8debf1(_0x580210,_0x56d6ce=!0x0){const {id:_0x4d7fa1,authorId:_0x242b34}=_0x584b73['_splitMarkerName'](_0x580210['markerName']),_0x5aae0f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38daff=_0x584b73['activeMarkers']['includes'](_0x580210['markerName']);return _0x38daff&&_0x5aae0f['push']('ck-suggestion-marker--active'),{'classes':_0x5aae0f,'attributes':{'data-suggestion':_0x4d7fa1,'data-author-id':_0x242b34},'priority':_0x38daff&&_0x56d6ce?0xbc2:0xbb8};}_0x584b73['on']('suggestionLoaded',_0x4730aa,{'priority':'high'}),_0x584b73['on']('suggestionUnloaded',_0x4730aa,{'priority':'high'}),_0x400816['model']['document']['registerPostFixer'](()=>{let _0x2b8c2b=!0x1;const _0x42de91=Array['from'](_0x400816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20ea92,data:_0x23109b}of _0x42de91){const {group:_0x2cefd3,type:_0x307b45,id:_0x47c8ea}=_0x584b73['_splitMarkerName'](_0x20ea92);if('suggestion'!=_0x2cefd3||'deletion'!=_0x307b45||_0x23109b['oldRange'])continue;if(!_0x584b73['hasSuggestion'](_0x47c8ea))continue;const _0x4781e7=_0x584b73['getSuggestion'](_0x47c8ea)['getRanges'](),_0x2d138c=_0x400816['plugins']['get']('Users')['me'];for(const _0x3018a1 of _0x584b73['getSuggestions']()){if(!_0x3018a1['isInContent']||_0x3018a1['author']!=_0x2d138c)continue;if('formatBlock'!=_0x3018a1['type']||'tablePasteCell'!=_0x3018a1['subType'])continue;if(_0x3018a1['getRanges']()['every'](_0x12dd11=>_0x4781e7['some'](_0x4741c0=>_0x4741c0['containsRange'](_0x12dd11,!0x0)))){for(const _0x3a7e4b of _0x3018a1['getAllAdjacentSuggestions']())_0x3a7e4b['isInContent']&&(_0x3a7e4b['discard'](),_0x2b8c2b=!0x0);}}}return _0x2b8c2b;}),_0x400816['model']['document']['registerPostFixer'](_0x2d4d95=>{const _0x3e8f78=_0x400816['commands']['get']('redo');if(!_0x3e8f78||!_0x3e8f78['_createdBatches']['has'](_0x2d4d95['batch']))return!0x1;let _0x3080c1=!0x1;const _0x59b19f=_0x400816['plugins']['get']('Users')['me'],_0x4fed4d=_0x400816['model']['document']['differ']['getChanges'](),_0x6a539=Array['from'](_0x400816['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x344cf6,data:_0x20b541})=>{const {group:_0x3b7fe8,subType:_0x300152,authorId:_0x3254d7}=_0x584b73['_splitMarkerName'](_0x344cf6);return'suggestion'==_0x3b7fe8&&'tablePaste'==_0x300152&&_0x3254d7==_0x59b19f['id']&&!_0x20b541['oldRange'];});for(const _0x86e99e of _0x4fed4d){if('insert'!=_0x86e99e['type']||'tableCellSuggestion'!=_0x86e99e['name']||0x1!=_0x86e99e['length'])continue;const _0x3ae6d1=_0x2d4d95['createRange'](_0x86e99e['position'],_0x86e99e['position']['getShiftedBy'](0x1));if(!_0x6a539['find'](({data:_0x16fdb3})=>_0x16fdb3['newRange']['isEqual'](_0x3ae6d1))){for(const {name:_0x3c1f98,data:_0x1ef1af}of _0x6a539)if(_0x3ae6d1['containsRange'](_0x1ef1af['newRange'])){_0x2d4d95['updateMarker'](_0x3c1f98,{'range':_0x3ae6d1}),_0x3080c1=!0x0;break;}}}return _0x3080c1;}),_0x400816['model']['document']['registerPostFixer'](_0x8e4b89=>{let _0x11e8c0=!0x1;const _0x15eb23=_0x400816['plugins']['get']('Users')['me'],_0x2c3de9=_0x584b73['getSuggestions']()['filter'](_0x125cb6=>_0x125cb6['isInContent']&&_0x125cb6['author']==_0x15eb23),_0x2cdbb9=new Set(),_0x58e1b2=new Set();for(const _0x4c3bf2 of _0x2c3de9)if('tablePaste'==_0x4c3bf2['subType'])for(const _0x48e479 of _0x4c3bf2['getMarkers']()){const _0x19b994=_0x48e479['getRange']()['getContainedElement']();if(_0x19b994){if(_0x19b994['is']('element','tableCellSuggestion')&&Oe(_0x19b994)){_0x4c3bf2['removeMarker'](_0x48e479['name']),_0x2cdbb9['add'](_0x19b994),_0x11e8c0=!0x0;const _0x2e21d7=_0x19b994['nextSibling'],_0x2e2e0e=_0x19b994['previousSibling'],_0x5cd8a4=_0x2e21d7&&_0x2e21d7['is']('element','tableCellSuggestion'),_0x2c34ef=_0x2e2e0e&&_0x2e2e0e['is']('element','tableCellSuggestion');_0x5cd8a4&&!_0x2cdbb9['has'](_0x2e21d7)&&_0x58e1b2['add'](_0x2e21d7),_0x2c34ef&&!_0x2cdbb9['has'](_0x2e2e0e)&&_0x58e1b2['add'](_0x2e2e0e);}else _0x19b994['is']('element','paragraph')&&_0x19b994['isEmpty']&&(_0x4c3bf2['removeMarker'](_0x48e479['name']),_0x11e8c0=!0x0);}}else{if('tablePasteCell'==_0x4c3bf2['subType']){if(!_0x4c3bf2['attributes']||!_0x4c3bf2['attributes']['tablePasteChainId'])continue;const _0x4e8632=_0x4c3bf2['attributes']['markerAttributes'];if(_0x4e8632&&Object['keys'](_0x4e8632)['length'])continue;const _0x4ab873=_0x4c3bf2['attributes']['tablePasteChainId'];let _0x78af2c=!0x0,_0x1be55d=!0x0;for(const _0x2f59e4 of _0x2c3de9)if(_0x2f59e4['subType']&&_0x2f59e4['subType']['startsWith']('tablePaste')){if(!_0x2f59e4['attributes']['tablePasteChainId']){_0x1be55d=!0x1;break;}if(_0x2f59e4['id']!=_0x4c3bf2['id']&&_0x2f59e4['attributes']['tablePasteChainId']==_0x4ab873){_0x78af2c=!0x1;break;}}_0x1be55d&&_0x78af2c&&(_0x4c3bf2['removeMarkers'](),_0x11e8c0=!0x0);}}for(const _0x5b6416 of _0x2cdbb9)_0x8e4b89['remove'](_0x5b6416);for(const _0x581bd0 of _0x58e1b2)_0x8e4b89['unwrap'](_0x581bd0);return _0x11e8c0;}),_0x400816['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d9204=>_0x8debf1(_0x2d9204),'converterPriority':'high'}),_0x400816['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ed625,_0x3e6dd8)=>_0x3e6dd8['options']['showSuggestionHighlights']?_0x8debf1(_0x1ed625,!0x1):null,'converterPriority':'high'});const _0x1d01c4=_0x400816['editing']['view'];this['listenTo'](_0x1d01c4['document'],'clipboardOutput',(_0xa26528,_0x170d2b)=>{const _0x1b6580=[];for(const _0x1b416f of _0x1d01c4['createRangeIn'](_0x170d2b['content'])['getItems']())_0x1b416f['is']('element','suggestion-td')&&_0x1b6580['push'](_0x1b416f);_0x1d01c4['change'](_0x2f47a8=>{for(const _0x34a062 of _0x1b6580)_0x2f47a8['move'](_0x2f47a8['createRangeIn'](_0x34a062),_0x2f47a8['createPositionBefore'](_0x34a062)),_0x2f47a8['remove'](_0x34a062);});});}}function Oe(_0x62b6d9){if(_0x62b6d9['isEmpty'])return!0x0;const _0x377fc8=_0x62b6d9['getChild'](0x0);return _0x377fc8['is']('element','paragraph')&&_0x377fc8['isEmpty'];}function Ue(_0x43f592,_0x43afab={},_0x44dfff){for(const {isAnchor:_0x4ffed6,cellHeight:_0x54cd5d,cellWidth:_0x51658c}of _0x44dfff['createTableWalker'](_0x43f592,{'includeAllSlots':!0x0,..._0x43afab}))if(!_0x4ffed6||0x1!=_0x54cd5d||0x1!=_0x51658c)return!0x1;return!0x0;}class Dt extends _0x96746a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x9dffd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x9dffd2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x9dffd2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x9dffd2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9dffd2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x9dffd2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x9dffd2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f967c,_0x537a6d){const _0x1b0787=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5e88=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2076f7=_0x537a6d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd976c0=_0x3e5e88['getColumnGroupElement'](_0x2076f7);let _0x1c3831=_0xd976c0?_0x3e5e88['getTableColumnsWidths'](_0xd976c0):null,_0x5e9d9b=_0x2076f7['getAttribute']('tableWidth')||null;const _0x57cf72=_0x537a6d['tableWidth']||_0x5e9d9b,_0x24e670=_0x537a6d['columnWidths']||_0x1c3831,_0xbe813f=this['editor']['plugins']['get']('Users')['me'];for(const _0x390215 of _0x1b0787['getSuggestions']()){const _0x17ebb7=_0x390215['getContainedElement']();if('resizeTable'===_0x390215['subType']&&_0x17ebb7===_0x2076f7){_0x390215['author']!==_0xbe813f&&_0x390215['discard']();const _0x321792=_0x390215['data']['commandParams'];_0x5e9d9b=_0x321792[0x0]['tableWidth'],_0x1c3831=_0x321792[0x0]['columnWidths'];break;}}_0x2f967c({'table':_0x2076f7,'tableWidth':_0x57cf72,'columnWidths':_0x24e670}),_0x1b0787['markBlockFormat'](_0x2076f7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e9d9b,'columnWidths':_0x1c3831}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e94b3){if('formatBlock'!=_0x4e94b3['type']&&'formatInline'!=_0x4e94b3['type'])return;const {data:_0x5a2614}=_0x4e94b3;if(_0x5a2614&&'resizeTable'===_0x5a2614['formatGroupId']){const _0x129a1a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x129a1a)};}}}class Mt extends _0x96746a{['afterInit'](){const _0x1a74dd=this['editor'];_0x1a74dd['plugins']['has']('Template')&&_0x1a74dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x96746a{['afterInit'](){const _0x24fd4e=this['editor'];if(!_0x24fd4e['commands']['get']('insertTableOfContents'))return;_0x24fd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1d2d49=_0x24fd4e['plugins']['get']('TrackChangesEditing'),_0x202ac9=_0x24fd4e['locale'];_0x1d2d49['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c1b97=>o(_0x202ac9,'ELEMENT_TABLE_OF_CONTENTS',_0x5c1b97));}}class Bt extends _0x96746a{['afterInit'](){const _0x56b787=this['editor'];if(!_0x56b787['plugins']['has']('Title'))return;const _0x2ab4e5=_0x56b787['plugins']['get']('TrackChangesEditing');_0x2ab4e5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56b787['locale'],'ELEMENT_TITLE')),_0x56b787['model']['document']['registerPostFixer'](_0x11bc15=>{let _0x529955=!0x1;const _0x594189=Array['from'](_0x56b787['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ca028,data:_0x1674a0}of _0x594189){const {group:_0x1a7fc9}=_0x2ab4e5['_splitMarkerName'](_0x5ca028);if('suggestion'!==_0x1a7fc9||!_0x1674a0['newRange'])continue;const _0x360948=_0x1674a0['newRange'],_0x580237=_0x360948['end']['nodeBefore'];if(!_0x580237||!_0x580237['is']('element','title-content'))continue;if(!_0x360948['start']['isTouching'](_0x360948['end']))continue;const _0x11ff89=_0x56b787['model']['schema']['getNearestSelectionRange'](_0x360948['end'],'forward');if(_0x11ff89&&_0x11ff89['isCollapsed']){const _0x1a198e=_0x11bc15['createRange'](_0x360948['start'],_0x11ff89['start']);_0x1a198e['isEqual'](_0x360948)||(_0x11bc15['updateMarker'](_0x5ca028,{'range':_0x1a198e}),_0x529955=!0x0);}_0x529955||(_0x11bc15['removeMarker'](_0x5ca028),_0x529955=!0x0);}return _0x529955;});}}class Tt extends _0x96746a{['afterInit'](){const _0x462723=this['editor'],_0x497367=_0x462723['plugins']['get']('TrackChangesEditing');_0x462723['plugins']['has']('Uploadcare')&&(_0x497367['enableCommand']('uploadcare'),_0x462723['plugins']['has']('UploadcareImageEdit')&&(_0x497367['enableCommand']('uploadcareImageEdit'),_0x497367['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x497367['registerBlockAttribute']('uploadcareImageId'),_0x497367['descriptionFactory']['registerDescriptionCallback'](_0x1fe28e=>{if('attribute'!=_0x1fe28e['type'])return;const {data:_0x162c60}=_0x1fe28e;return _0x162c60&&'uploadcareImageId'==_0x162c60['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x96746a{['afterInit'](){const _0x2d06d4=this['editor'],_0x29cbdb=_0x2d06d4['plugins']['get']('TrackChangesEditing');_0x2d06d4['plugins']['has']('UndoEditing')&&(_0x29cbdb['enableCommand']('undo'),_0x29cbdb['enableCommand']('redo'));}}class Ot extends _0x96746a{static get['requires'](){return[At];}['afterInit'](){const _0x3db2bd=this['editor'];if(!_0x3db2bd['plugins']['has']('TableCaptionEditing'))return;_0x3db2bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x96746a{['tableProperties'];['tableCellProperties'];constructor(_0x548a8a){super(_0x548a8a),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 _0x52f955=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14f3e5 of this['tableProperties'])_0x52f955['enableCommand'](_0x14f3e5,(_0x3da4c0,_0x391694)=>{const _0x3b4509=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14f3e5,[_0x3b4509],this['tableProperties'],'tableProperties',_0x3da4c0,_0x391694);});_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x52f955['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39ebb9,_0x1cf1c5)=>this['handleDiscardAction'](this['tableProperties'],_0x39ebb9,_0x1cf1c5)),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5501a2 of this['tableCellProperties'])_0x52f955['enableCommand'](_0x5501a2,(_0x11189b,_0x266f30)=>{const _0x21f333=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5501a2,_0x21f333,this['tableCellProperties'],'tableCellProperties',_0x11189b,_0x266f30);});_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x52f955['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x214c65,_0x40a473)=>this['handleDiscardAction'](this['tableCellProperties'],_0x214c65,_0x40a473)),_0x52f955['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x52f955['descriptionFactory']['registerDescriptionCallback'](_0x11e8d9=>this['handleSuggestionDescription'](_0x11e8d9));}['_handlePropertyChange'](_0x3df2ae,_0x5b61b4,_0x236062,_0x2bf229,_0x5e7fdb,_0x587425){const _0x2d74d7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x587425['batch'],()=>{for(const _0x5ce714 of _0x5b61b4){if(this['_getSuggestion'](_0x5ce714,_0x2bf229))_0x5e7fdb(_0x587425);else{const _0x445978={};for(const _0x3dcef4 of _0x236062){const _0x148d4b=_0x5ce714['getAttribute'](_0x3dcef4);void 0x0!==_0x148d4b&&(_0x445978[_0x3dcef4]=_0x148d4b);}_0x5e7fdb(_0x587425),_0x2d74d7['markBlockFormat'](_0x5ce714,{'commandParams':[_0x445978]},[],_0x2bf229);}}});}['handleDiscardAction'](_0x31ff85,_0xe6e66b,_0x1cf881){const _0x346aea=_0xe6e66b[0x0]['start']['nodeAfter'],_0x1faacd=_0x1cf881['commandParams'][0x0];this['editor']['model']['change'](_0x34ad59=>{for(const _0x30363 of _0x31ff85)void 0x0!==_0x1faacd[_0x30363]?_0x34ad59['setAttribute'](_0x30363,_0x1faacd[_0x30363],_0x346aea):_0x34ad59['removeAttribute'](_0x30363,_0x346aea);});}['handleSuggestionDescription'](_0x39a36d){if(_0x39a36d['data'])switch(_0x39a36d['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'](_0x1c0d86,_0x5a2c0d){const _0xa5e222=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x219cea of _0xa5e222['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c38f7=_0x219cea['getContainedElement']();if(_0x219cea['subType']===_0x5a2c0d&&_0x5c38f7===_0x1c0d86)return _0x219cea;}return null;}}class Rt extends _0x96746a{['afterInit'](){const _0xa97a65=this['editor'];if(!_0xa97a65['plugins']['has']('LineHeight'))return;const _0x7342c4=_0xa97a65['plugins']['get']('TrackChangesEditing'),_0xdd670a=_0xa97a65['locale'];_0x7342c4['enableDefaultAttributesIntegration']('lineHeight'),_0x7342c4['registerBlockAttribute']('lineHeight'),_0x7342c4['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xdd670a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x96746a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x31b51b,_0x46e04a,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2507d9){super(_0x2507d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x113093,_0x3f51d5,_0x2ba15e,_0x568d68)=>{this['_model']['change'](()=>{for(const _0x200637 of[..._0x568d68,..._0x2ba15e])this['_model']['markers']['has'](_0x200637)&&_0x2507d9['editing']['reconvertMarker'](_0x200637);});}),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']=_0x2507d9['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(),_0x2507d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2507d9['config']['get']('trackChanges.trackFormatChanges'),_0x2507d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2507d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x2507d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x175b19=this['editor'],_0xf987ee=(_0x627e79,_0x16c4ee)=>{if('attribute'!=_0x627e79)return'ck-suggestion-marker-'+_0x627e79;const _0x12f7db=_0x16c4ee['split']('|')[0x0];return this['_isBlockAttribute'](_0x12f7db)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x175b19['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x618449=>{const {id:_0x402969,authorId:_0x1006d7,type:_0x2a2a59,subType:_0x4210eb}=this['_splitMarkerName'](_0x618449['markerName']),_0x4025c4=['ck-suggestion-marker',_0xf987ee(_0x2a2a59,_0x4210eb)];let _0x504023=0xbb8;return this['activeMarkers']['includes'](_0x618449['markerName'])&&(_0x4025c4['push']('ck-suggestion-marker--active'),_0x504023=0xbc2),'deletion'==_0x2a2a59&&(_0x504023+=0x5),{'classes':_0x4025c4,'attributes':{'data-suggestion':_0x402969,'data-author-id':_0x1006d7},'priority':_0x504023};}}),_0x175b19['conversion']['for']('dataDowncast')['add'](_0x3525e8=>{_0x3525e8['on']('addMarker:suggestion',(_0x5236ff,_0x58efa6,_0x291815)=>{if(!_0x291815['options']['showSuggestionHighlights'])return;const _0x590ada=_0x58efa6['item'];if(!_0x590ada)return;const _0x35de02=_0x291815['mapper']['toViewElement'](_0x590ada);_0x175b19['model']['schema']['isObject'](_0x590ada)&&_0x35de02&&!_0x35de02['getCustomProperty']('widget')&&_0x35de02['is']('containerElement')&&_0x49cff7(_0x35de02,_0x291815['writer']);},{'priority':'high'});}),_0x175b19['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x643cb9,_0x31f2e7)=>{if(!_0x31f2e7['options']['showSuggestionHighlights'])return null;const {id:_0x36294e,authorId:_0x43c63,type:_0x2f4530,subType:_0x44435b}=this['_splitMarkerName'](_0x643cb9['markerName']);return{'classes':['ck-suggestion-marker',_0xf987ee(_0x2f4530,_0x44435b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x36294e,'data-author-id':_0x43c63}};}});const _0x39b93e=({showActiveMarkers:_0x2a2a21=!0x0,isAttributeSuggestion:_0x2e92e8=!0x1}={})=>(_0x2a9ad5,_0x192c86,_0x1f0b74)=>{if(!_0x192c86['item'])return;const {id:_0x2d4324,authorId:_0x100560}=this['_splitMarkerName'](_0x192c86['markerName']);if(_0x2e92e8){const _0x32822a=this['_suggestions']['get'](_0x2d4324),_0x320772=this['_getAttributeKey'](_0x32822a);if(!this['_isBlockAttribute'](_0x320772))return;}if(_0x192c86['item']['is']('selection'))return void _0x1f0b74['consumable']['consume'](_0x192c86['item'],_0x2a9ad5['name']);const _0x154dd7=_0x1f0b74['mapper']['toViewElement'](_0x192c86['item']);if(_0x192c86['item']['is']('element')&&_0x175b19['model']['schema']['isBlock'](_0x192c86['item'])&&!_0x154dd7['getCustomProperty']('addHighlight')){_0x1f0b74['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x154dd7),_0x1f0b74['writer']['setAttribute']('data-suggestion',_0x2d4324,_0x154dd7),_0x1f0b74['writer']['setAttribute']('data-author-id',_0x100560,_0x154dd7),_0x1f0b74['mapper']['bindElementToMarker'](_0x154dd7,_0x192c86['markerName']),_0x2a2a21&&(this['activeMarkers']['includes'](_0x192c86['markerName'])?_0x1f0b74['writer']['addClass']('ck-suggestion-marker--active',_0x154dd7):_0x1f0b74['writer']['removeClass']('ck-suggestion-marker--active',_0x154dd7));for(const _0x223469 of _0x175b19['model']['createRangeIn'](_0x192c86['item'])['getItems']())_0x1f0b74['consumable']['consume'](_0x223469,_0x2a9ad5['name']);_0x1f0b74['consumable']['consume'](_0x192c86['item'],_0x2a9ad5['name']);}};_0x175b19['conversion']['for']('dataDowncast')['add'](_0x259b66=>{_0x259b66['on']('addMarker:suggestion:formatBlock',(_0x412248,_0x175698,_0x26dad9)=>{_0x26dad9['options']['showSuggestionHighlights']&&_0x39b93e({'showActiveMarkers':!0x1})(_0x412248,_0x175698,_0x26dad9);},{'priority':'highest'});}),_0x175b19['conversion']['for']('dataDowncast')['add'](_0x11d1c2=>{_0x11d1c2['on']('addMarker:suggestion:attribute',(_0x52cdff,_0x222c7f,_0x50fe5e)=>{_0x50fe5e['options']['showSuggestionHighlights']&&_0x39b93e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x52cdff,_0x222c7f,_0x50fe5e);},{'priority':'highest'});}),_0x175b19['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4183ce,_0x6f65a3)=>{if(_0x6f65a3['options']['showSuggestionHighlights']){const {id:_0x526a27,authorId:_0x1d970c}=this['_splitMarkerName'](_0x4183ce);return _0x4183ce['includes'](':split')||_0x4183ce['includes'](':merge')?{'group':'suggestion','name':_0x4183ce['substr'](0xb),'attributes':{'data-suggestion':_0x526a27,'data-author-id':_0x1d970c}}:null;}return{'group':'suggestion','name':_0x4183ce['substr'](0xb)};}}),_0x175b19['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x104f29,{writer:_0x3bdc41})=>{let _0x275d72='suggestion:'+_0x104f29['getAttribute']('suggestion-type')+':'+_0x104f29['getAttribute']('id');return _0x104f29['getAttribute']('marker-count')&&(_0x275d72+=':'+_0x104f29['getAttribute']('marker-count')),_0x3bdc41['createElement']('$marker',{'data-name':_0x275d72});}}),_0x175b19['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x15db5d=>{_0x15db5d['on']('addMarker:suggestion:formatBlock',_0x39b93e(),{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x4f5cbc=>{_0x4f5cbc['on']('addMarker:suggestion:attribute',_0x39b93e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x101172=>{_0x101172['on']('removeMarker:suggestion:formatBlock',(_0x15c6e8,_0x3059d3,_0x410f78)=>{const _0x314ef5=_0x410f78['mapper']['markerNameToElements'](_0x3059d3['markerName']);if(_0x314ef5){for(const _0x506324 of _0x314ef5)_0x506324['getCustomProperty']('addHighlight')||(_0x410f78['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x506324),_0x410f78['writer']['removeAttribute']('data-suggestion',_0x506324),_0x410f78['writer']['removeAttribute']('data-author-id',_0x506324),_0x410f78['mapper']['unbindElementFromMarkerName'](_0x506324,_0x3059d3['markerName']));}},{'priority':'high'});}),_0x175b19['conversion']['for']('editingDowncast')['add'](_0x365354=>{_0x365354['on']('removeMarker:suggestion:attribute',(_0x23dc06,_0x38975d,_0x1cd1ea)=>{const _0xdfca4e=_0x1cd1ea['mapper']['markerNameToElements'](_0x38975d['markerName']);if(!_0xdfca4e)return;const {id:_0x349a2b}=this['_splitMarkerName'](_0x38975d['markerName']),_0x42dd78=this['_suggestions']['get'](_0x349a2b),_0x1f7f9c=this['_getAttributeKey'](_0x42dd78);if(this['_isBlockAttribute'](_0x1f7f9c)){for(const _0x4cfe1d of _0xdfca4e)_0x4cfe1d['getCustomProperty']('addHighlight')||(_0x1cd1ea['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4cfe1d),_0x1cd1ea['writer']['removeAttribute']('data-suggestion',_0x4cfe1d),_0x1cd1ea['writer']['removeAttribute']('data-author-id',_0x4cfe1d),_0x1cd1ea['mapper']['unbindElementFromMarkerName'](_0x4cfe1d,_0x38975d['markerName']));}},{'priority':'high'});}),_0x175b19['model']['document']['registerPostFixer'](_0x60f50a=>{let _0x4684e7=!0x1;const _0x8bc4c5=Array['from'](_0x175b19['model']['document']['differ']['getChangedMarkers']()),_0x415d35=new Set();for(const {name:_0xa78ab5,data:_0x48e164}of _0x8bc4c5){const {group:_0xc9a767,type:_0x4920ca,subType:_0x173ca4,id:_0x54af6b}=this['_splitMarkerName'](_0xa78ab5);if('suggestion'!==_0xc9a767)continue;const _0x58c0ac=this['_suggestions']['get'](_0x54af6b);if(null!=_0x48e164['newRange']){'formatInline'==_0x4920ca&&(_0x4684e7=_0x4684e7||Gt(_0x48e164['newRange'],_0xa78ab5,_0x60f50a,_0x175b19['model']['schema']));const _0x1ecc1e='attribute'==_0x4920ca&&this['_isBlockAttribute'](_0x173ca4['split']('|')[0x0]);if(_0x48e164['newRange']['isCollapsed']||'$graveyard'==_0x48e164['newRange']['root']['rootName']||'formatBlock'==_0x4920ca&&!Jt(_0x48e164['newRange'])||_0x1ecc1e&&!Jt(_0x48e164['newRange'])||'deletion'==_0x4920ca&&!Kt(_0x48e164['newRange']))_0x60f50a['removeMarker'](_0xa78ab5),_0x4684e7=!0x0;else{if(!_0x58c0ac||!_0x58c0ac['isInContent'])continue;if(_0x48e164['newRange']&&_0x48e164['oldRange']&&_0x48e164['newRange']['isEqual'](_0x48e164['oldRange']))continue;_0x415d35['add'](_0x58c0ac);}}}return _0x415d35['size']>0x0&&(_0x4684e7=!!this['_joinWithAdjacentSuggestions'](_0x415d35)||_0x4684e7),_0x4684e7;}),_0x175b19['model']['document']['registerPostFixer'](_0x38710d=>{let _0x1e2478=!0x1;for(const _0x57b4e2 of _0x175b19['model']['document']['differ']['getChanges']())if('insert'==_0x57b4e2['type'])for(const _0x217d5b of this['_suggestions']['values']()){if(_0x217d5b['isMultiRange']||!_0x217d5b['isInContent'])continue;const _0x166fc3='formatBlock'==_0x217d5b['type'],_0x26736e=this['_getAttributeKey'](_0x217d5b),_0x1187cd=_0x26736e&&this['_isBlockAttribute'](_0x26736e);if(!_0x166fc3&&!_0x1187cd)continue;const _0x351e17=_0x217d5b['getFirstRange']();if(_0x351e17['start']['parent']!=_0x351e17['end']['parent']&&!_0x351e17['end']['isAtEnd']){const _0x681574=_0x175b19['model']['createPositionAt'](_0x351e17['start']['nodeAfter'],'end'),_0x103ee7=_0x175b19['model']['createRange'](_0x351e17['start'],_0x681574);_0x38710d['updateMarker'](_0x217d5b['getFirstMarker'](),{'range':_0x103ee7}),_0x1e2478=!0x0;}}return _0x1e2478;}),_0x175b19['model']['document']['registerPostFixer'](_0x506d62=>this['_processAttributeChanges'](_0x506d62)),_0x175b19['model']['document']['registerPostFixer'](_0x2a42db=>!_0x2a42db['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a42db)),_0x175b19['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x175b19['model']['document']['on']('change:data',(_0x33efd0,_0x41ad2b)=>{if(!_0x41ad2b['isLocal']||_0x41ad2b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x548441=_0x175b19['model']['document']['differ']['getChanges']();if(0x0==_0x548441['length'])return;const _0x291fc2=[],_0x58cb3b=_0x548441['filter'](_0x5d49c1=>'attribute'==_0x5d49c1['type']),_0x33ae95=_0x548441['filter'](_0x5c8e32=>'insert'==_0x5c8e32['type']&&'$text'!=_0x5c8e32['name']);for(const _0x1c1129 of _0x58cb3b)this['_isRegisteredAttribute'](_0x1c1129['attributeKey'])&&_0x291fc2['push']({'key':_0x1c1129['attributeKey'],'newValue':_0x1c1129['attributeNewValue'],'oldValue':_0x1c1129['attributeOldValue'],'range':Ht(_0x1c1129['range'],_0x175b19['model'])});for(const _0x25c206 of _0x33ae95){if('rename'!=_0x25c206['action']&&'refresh'!=_0x25c206['action'])continue;const _0x4bef23=qt(_0x25c206['position']['nodeAfter'],_0x175b19['model']),_0x3bde3b=_0x25c206['before'];'rename'==_0x25c206['action']&&_0x291fc2['push']({'key':m,'newValue':_0x25c206['name'],'oldValue':_0x3bde3b['name'],'range':_0x4bef23});for(const [_0x562053,_0x4e0cd4]of _0x3bde3b['attributes']){if(!this['_isRegisteredAttribute'](_0x562053))continue;const _0x1ec0df=_0x25c206['attributes']['get'](_0x562053);_0x4e0cd4!==_0x1ec0df&&_0x291fc2['push']({'key':_0x562053,'newValue':_0x1ec0df,'oldValue':_0x4e0cd4,'range':_0x4bef23});}for(const [_0x567381,_0x2506cd]of _0x25c206['attributes'])this['_isRegisteredAttribute'](_0x567381)&&(_0x3bde3b['attributes']['has'](_0x567381)||_0x291fc2['push']({'key':_0x567381,'newValue':_0x2506cd,'oldValue':null,'range':_0x4bef23}));}0x0!=_0x291fc2['length']&&_0x175b19['model']['enqueueChange'](_0x41ad2b,_0x4771bb=>{const _0x10b476=_0x2e07c2();for(const {range:_0x49f0e5,key:_0x362414,oldValue:_0xa6a1d6,newValue:_0x1f7c86}of _0x291fc2)this['markAttributeChange'](_0x49f0e5,_0x362414,_0xa6a1d6,_0x1f7c86,{'groupId':_0x10b476});this['_reduceExistingSuggestions'](_0x4771bb,_0x291fc2);});},{'priority':'lowest'}),_0x175b19['model']['markers']['on']('update:suggestion',(_0x27c4cf,_0x1761de,_0x45e984)=>{if(null==_0x45e984){const {id:_0x1e316b}=this['_splitMarkerName'](_0x1761de['name']),_0xebc5b1=this['_suggestions']['get'](_0x1e316b);_0xebc5b1&&_0xebc5b1['addMarkerName'](_0x1761de['name']);}}),_0x175b19['model']['document']['on']('change:data',()=>{const _0x22646f=Array['from'](_0x175b19['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4bb122=>'suggestion'===this['_splitMarkerName'](_0x4bb122['name'])['group']);if(0x0===_0x22646f['length'])return;_0x22646f['sort']((_0x3e3233,_0x48966c)=>{const _0x48c941=_0x3e3233['data']['oldRange'],_0x49b1da=_0x48966c['data']['oldRange'];return null===_0x48c941&&null===_0x49b1da?0x0:null===_0x48c941&&null!==_0x49b1da?-0x1:null!==_0x48c941&&null===_0x49b1da?0x1:_0x48c941['start']['isBefore'](_0x49b1da['start'])?-0x1:0x1;});const _0x3df203=new Set(),_0x384bee=new Set();for(const {name:_0x349dfc,data:_0x4c9ded}of _0x22646f){const {id:_0x306f63}=this['_splitMarkerName'](_0x349dfc);if(null===_0x4c9ded['oldRange']){const _0x32ce4f=this['_handleNewSuggestionMarker'](_0x349dfc);_0x384bee['add'](_0x32ce4f);}else{const _0x4cfb29=this['_suggestions']['get'](_0x306f63);null!==_0x4c9ded['newRange']||_0x4cfb29['isInContent']?(_0x3df203['add'](_0x4cfb29['head']),_0x384bee['add'](_0x4cfb29)):this['_removeSuggestion'](_0x4cfb29);}}_0x384bee['size']>0x0&&this['_refreshSuggestionsChain'](_0x384bee);for(const _0x5ebf03 of _0x3df203)this['fire']('suggestionChanged',_0x5ebf03);}),_0x175b19['model']['on']('applyOperation',(_0x46092c,_0x356136)=>{const _0x22fb71=_0x356136[0x0];if(!this['_suggestions']['size'])return;if(!_0x22fb71['isDocumentOperation'])return;if(_0x22fb71['batch']['isUndo']||!_0x22fb71['batch']['isLocal'])return;let _0xfb46ae,_0x22e184;switch(_0x22fb71['type']){case'insert':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['position']),_0x22e184=_0xfb46ae['getShiftedBy'](_0x22fb71['howMany']);break;case'split':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['splitPosition']),_0x22e184=_0x175b19['model']['createPositionAt'](_0x22fb71['moveTargetPosition']);break;case'move':_0xfb46ae=_0x175b19['model']['createPositionAt'](_0x22fb71['targetPosition']),_0x22e184=_0xfb46ae['getShiftedBy'](_0x22fb71['howMany']);break;default:return;}const _0x3bd006=_0x175b19['model']['createRange'](_0xfb46ae,_0x22e184);_0x175b19['model']['change'](()=>{for(const {suggestion:_0x31958d,meta:_0x182f19}of this['_findSuggestions'](_0x3bd006)){if(_0x31958d['isMultiRange'])continue;if('formatInline'==_0x31958d['type'])continue;const _0xdf5ad8=this['_getAttributeKey'](_0x31958d);if(_0xdf5ad8&&this['_isBlockAttribute'](_0xdf5ad8)&&'split'!=_0x22fb71['type'])continue;const _0xdf03b2=_0x31958d['data']&&_0x31958d['data']['multipleBlocks'];('formatBlock'!=_0x31958d['type']||'split'==_0x22fb71['type']&&!_0xdf03b2)&&(_0x182f19['containsRangeInObject']||'insertion'==_0x31958d['type']&&_0x182f19['isOwn']||_0x31958d['getFirstRange']()['containsRange'](_0x3bd006)&&this['_breakSuggestionMarker'](_0x31958d,_0xfb46ae,_0x22e184));}});},{'priority':'lowest'}),_0x175b19['model']['on']('deleteContent',(_0x1fd750,_0x2be14e)=>{const _0x19c0d5=_0x2be14e[0x0],_0x459200=_0x2be14e[0x1];if(_0x459200&&_0x459200['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x19c0d5['isCollapsed'])return;const _0x4aafa0=_0x175b19['model']['schema'],{start:_0x489546,end:_0x160108}=_0x19c0d5['getFirstRange'](),_0x1ea663=_0x489546['nodeAfter']&&_0x4aafa0['isLimit'](_0x489546['nodeAfter'])?null:_0x4aafa0['getNearestSelectionRange'](_0x489546,'forward'),_0x244688=_0x160108['nodeBefore']&&_0x4aafa0['isLimit'](_0x160108['nodeBefore'])?null:_0x4aafa0['getNearestSelectionRange'](_0x160108,'backward'),_0xa7544c=_0x175b19['model']['createRange'](_0x1ea663?_0x1ea663['start']:_0x489546,_0x244688?_0x244688['end']:_0x160108);_0x175b19['model']['change'](_0x2d5870=>{this['markDeletion'](_0xa7544c);const _0x3443d7=_0x175b19['model']['schema']['getNearestSelectionRange'](_0xa7544c['start']);_0x19c0d5['is']('documentSelection')?_0x2d5870['setSelection'](_0x3443d7):_0x19c0d5['setTo'](_0x3443d7);}),_0x1fd750['stop']();},{'priority':_0x5a860b['normal']+0xa}),_0x175b19['model']['on']('insertContent',(_0x2a8308,_0x442a7c)=>{const _0x446790=_0x442a7c[_0x442a7c['length']-0x1];_0x446790&&_0x446790['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x175b19['model']['change'](()=>{let _0x10e735=_0x175b19['model']['insertContent'](_0x442a7c[0x0],_0x442a7c[0x1],_0x442a7c[0x2],{'forceDefaultExecution':!0x0});if(!_0x10e735)return;_0x2a8308['return']=_0x10e735['clone']();const _0x55a9d2=_0x10e735['end']['nodeBefore'],_0x20a0db=_0x175b19['model']['schema'];_0x55a9d2&&_0x20a0db['isBlock'](_0x55a9d2)&&!_0x20a0db['isObject'](_0x55a9d2)&&(_0x10e735=_0x175b19['model']['createRange'](_0x10e735['start'],_0x175b19['model']['createPositionAt'](_0x55a9d2,'end'))),this['markInsertion'](_0x10e735);}),_0x2a8308['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdfe8d3=new D(_0x175b19,this['_suggestions']);_0x175b19['commands']['add']('acceptSuggestion',_0xdfe8d3),this['enableCommand']('acceptSuggestion');const _0x1e8840=new M(_0x175b19,this['_suggestions']);_0x175b19['commands']['add']('discardSuggestion',_0x1e8840),this['enableCommand']('discardSuggestion'),_0x175b19['commands']['add']('acceptAllSuggestions',new $(_0x175b19,_0xdfe8d3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x175b19['commands']['add']('discardAllSuggestions',new $(_0x175b19,_0x1e8840,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x175b19['commands']['add']('acceptSelectedSuggestions',new B(_0x175b19,_0xdfe8d3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x175b19['commands']['add']('discardSelectedSuggestions',new B(_0x175b19,_0x1e8840,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b767f=_0x175b19['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b767f,'addComment',(_0x1adb8d,{threadId:_0x1bdc16})=>{const _0x2892a1=this['_suggestions']['get'](_0x1bdc16);_0x2892a1&&_0x2892a1['commentThread']&&0x1===_0x2892a1['commentThread']['length']&&this['_updateSuggestionData'](_0x1bdc16,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b767f,'removeComment',(_0x3d12f7,{threadId:_0x1d0b6b})=>{const _0x837459=this['_suggestions']['get'](_0x1d0b6b);_0x837459&&_0x837459['commentThread']&&!_0x837459['commentThread']['length']&&this['_updateSuggestionData'](_0x1d0b6b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x21902c){const _0x44aecf=_0x241d78([0x75,0x50,0x47,0x36,0x46,0x65,0x58,0x64,0x48,0x74,0x70,0x71,0x34,0x59,0x6d,0x37,0x62,0x54,0x6c,0x49,0x6b,0x31,0x6e,0x39,0x4a,0x44,0x38,0x5a,0x73,0x41,0x42,0x61,0x79,0x51,0x57,0x4f,0x35,0x78,0x45,0x4d,0x32,0x63,0x53,0x66,0x55,0x6a,0x7a,0x30,0x68,0x4e,0x67,0x4b,0x77,0x52,0x6f,0x33,0x43,0x72,0x69,0x76,0x4c,0x56]),_0x3fd384=0x19085c21,_0x2fee01=0x190f30b9^_0x3fd384,_0x1ad7dd=window[_0x241d78([0x44,0x61,0x74,0x65])][_0x241d78([0x6e,0x6f,0x77])](),_0x2a7f1d=_0x21902c[_0x241d78([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x533344=new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d7620=>{_0x2a7f1d[_0x241d78([0x6f,0x6e,0x63,0x65])](_0x241d78([0x72,0x65,0x61,0x64,0x79]),_0x3d7620);}),_0x8a9a3a={[_0x241d78([0x6b,0x74,0x79])]:_0x241d78([0x45,0x43]),[_0x241d78([0x75,0x73,0x65])]:_0x241d78([0x73,0x69,0x67]),[_0x241d78([0x63,0x72,0x76])]:_0x241d78([0x50,0x2d,0x32,0x35,0x36]),[_0x241d78([0x78])]:_0x241d78([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]),[_0x241d78([0x79])]:_0x241d78([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]),[_0x241d78([0x61,0x6c,0x67])]:_0x241d78([0x45,0x53,0x32,0x35,0x36])},_0x427535=_0x2a7f1d[_0x241d78([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x241d78([0x67,0x65,0x74])](_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x376f16(){let _0x28bf2b,_0x3e8d1c=null,_0x4c7d46=null;try{if(_0x427535==_0x241d78([0x47,0x50,0x4c]))return _0x241d78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28bf2b=_0x236142(),!_0x28bf2b)return _0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28bf2b[_0x241d78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c7d46=_0x4de95d(_0x28bf2b[_0x241d78([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28bf2b[_0x241d78([0x6a,0x74,0x69])])),await _0x295ce7()?_0x2db9a7()?_0x59a5e5()?_0x241d78([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1eb1a0()?(_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241d78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e8d1c=_0x50583d(_0x241d78([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x241d78([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e8d1c=_0x50583d(_0x241d78([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ad858()):_0x241d78([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x241d78([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x241d78([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59a5e5(){const _0x42bb8a=[_0x241d78([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x241d78([0x74,0x72,0x69,0x61,0x6c])][_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ad7dd/0x3e8:0xe10*_0x2fee01;return _0x28bf2b[_0x241d78([0x65,0x78,0x70])]<_0x42bb8a;}function _0x2db9a7(){const _0x3311da=_0x28bf2b[_0x241d78([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3311da)return!0x1;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x2a])))return!0x0;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x54,0x43])))return!0x0;if(_0x3311da[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x52,0x54,0x43]))){if(_0xedac85())return!0x0;if(_0x470575()||_0x31a297())return!0x0;}return!0x1;}function _0x1eb1a0(){const _0x15e581=_0x28bf2b[_0x241d78([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x15e581||0x0==_0x15e581[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x282794}=new URL(window[_0x241d78([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x15e581[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282794))return!0x0;const _0x50f04f=_0x282794[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e]));return _0x15e581[_0x241d78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b3912=>_0x2b3912[_0x241d78([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x241d78([0x2a])))[_0x241d78([0x6d,0x61,0x70])](_0x333f62=>_0x333f62[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e])))[_0x241d78([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b2266=>_0x5b2266[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50f04f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241d78([0x6d,0x61,0x70])](_0x19f515=>Array(_0x50f04f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19f515[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x241d78([0x66,0x69,0x6c,0x6c])](_0x19f515[0x0]===_0x241d78([0x2a])?_0x241d78([0x2a]):'')[_0x241d78([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19f515))[_0x241d78([0x73,0x6f,0x6d,0x65])](_0x15cd27=>_0x50f04f[_0x241d78([0x65,0x76,0x65,0x72,0x79])]((_0x2107a7,_0x23e084)=>_0x15cd27[_0x23e084]===_0x2107a7||_0x15cd27[_0x23e084]===_0x241d78([0x2a])));}function _0x3ad858(){return _0x3e8d1c&&_0x4c7d46?new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3252,_0x404966)=>{_0x3e8d1c[_0x241d78([0x74,0x68,0x65,0x6e])](_0x1e3252,_0x404966),_0x4c7d46[_0x241d78([0x74,0x68,0x65,0x6e])](_0x4da337=>{_0x4da337!=_0x241d78([0x56,0x61,0x6c,0x69,0x64])&&_0x1e3252(_0x4da337);},_0x404966);}):_0x3e8d1c||_0x4c7d46||_0x241d78([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4de95d(_0x244524,_0x51b952){return new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2720d2=>{if(_0x274a74())return _0x2720d2(_0x241d78([0x56,0x61,0x6c,0x69,0x64]));_0x16acd9(),_0x2a7f1d[_0x241d78([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30386f=!0x1;const _0x1780f8=_0x2e07c2();function _0x5a14a8(_0x18ca99){return!!_0x18ca99&&(typeof _0x18ca99===_0x241d78([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18ca99===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18ca99[_0x241d78([0x74,0x68,0x65,0x6e])]===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18ca99[_0x241d78([0x63,0x61,0x74,0x63,0x68])]===_0x241d78([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x308de6(_0x226f4f){_0x28d4c5(_0x226f4f)[_0x241d78([0x74,0x68,0x65,0x6e])](_0x197afb=>{if(!_0x197afb||_0x197afb[_0x241d78([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x241d78([0x6f,0x6b]))return _0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29a6aa(_0x2bb4bc(_0x1780f8+_0x51b952))!=_0x197afb[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x241d78([0x56,0x61,0x6c,0x69,0x64]);})[_0x241d78([0x74,0x68,0x65,0x6e])](_0x368abf=>(_0x303c98(),_0x368abf),()=>{const _0x3861f2=_0x4cfaec();return null==_0x3861f2?(_0x303c98(),_0x241d78([0x56,0x61,0x6c,0x69,0x64])):_0x241d78(_0x1ad7dd-_0x3861f2>(0x3d04d821^_0x3fd384)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x241d78([0x74,0x68,0x65,0x6e])](_0x2720d2)[_0x241d78([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fd5df=0x193eb2a1^_0x3fd384;function _0x303c98(){const _0x54d6f1=_0x241d78([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a6aa(_0x2bb4bc(_0x244524)),_0x2f3b9b=_0x538dee(_0x29a6aa(window[_0x241d78([0x4d,0x61,0x74,0x68])][_0x241d78([0x63,0x65,0x69,0x6c])](_0x1ad7dd/_0x2fd5df)));window[_0x241d78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241d78([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54d6f1,_0x2f3b9b);}function _0x4cfaec(){const _0x22dd6e=_0x241d78([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a6aa(_0x2bb4bc(_0x244524)),_0x2522c3=window[_0x241d78([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x241d78([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22dd6e);return _0x2522c3?window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538dee(_0x2522c3),0x10)*_0x2fd5df:null;}function _0x28d4c5(_0xe805c1){return new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ab175,_0x22d97f)=>{_0xe805c1[_0x241d78([0x74,0x68,0x65,0x6e])](_0x9ab175,_0x22d97f),window[_0x241d78([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22d97f,0x190988e1^_0x3fd384);});}}_0x2a7f1d[_0x241d78([0x6f,0x6e])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e7748,_0x5e95e3)=>{if(_0x5e95e3[0x0]!=_0x244524)return _0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e95e3[0x1]={..._0x5e95e3[0x1],[_0x241d78([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1780f8};},{[_0x241d78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241d78([0x68,0x69,0x67,0x68])}),_0x2a7f1d[_0x241d78([0x6f,0x6e])](_0x241d78([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a3084=>{_0x5a14a8(_0x4a3084[_0x241d78([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30386f=!0x0,_0x308de6(_0x4a3084[_0x241d78([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x241d78([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x241d78([0x6c,0x6f,0x77])}),_0x533344[_0x241d78([0x74,0x68,0x65,0x6e])](()=>{_0x30386f||_0x2720d2(_0x241d78([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x274a74(){return _0x2a7f1d[_0x241d78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241d78([0x76,0x69,0x65,0x77])][_0x241d78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x241d78([0x61,0x75,0x74,0x6f]);}function _0x16acd9(){_0x2a7f1d[_0x241d78([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x241d78([0x76,0x69,0x65,0x77])][_0x241d78([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x241d78([0x61,0x75,0x74,0x6f]);}}function _0x50583d(_0x21c578){const _0x416867=[new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1526e5=>setTimeout(_0x1526e5,0x190162ed^_0x3fd384)),_0x533344[_0x241d78([0x74,0x68,0x65,0x6e])](()=>new window[(_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149e8c=>{let _0x5ac980=0x0;_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x6f,0x6e])](_0x241d78([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x575e8e,_0x1323b8)=>{_0x1323b8[0x0][_0x241d78([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ac980++,_0x5ac980==(0x19085dd9^_0x3fd384)&&(_0x149e8c(),_0x575e8e[_0x241d78([0x6f,0x66,0x66])]());});}))];return window[_0x241d78([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x241d78([0x72,0x61,0x63,0x65])](_0x416867)[_0x241d78([0x74,0x68,0x65,0x6e])](()=>_0x21c578);}async function _0x51fe3f(){await _0x533344,_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf06005,_0x2a7f1d[_0x241d78([0x6d,0x6f,0x64,0x65,0x6c])][_0x241d78([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf06005,_0x2a7f1d[_0x241d78([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x241d78([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xedac85(){return _0x2e5acc(_0x241d78([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x26be85(_0x241d78([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x241d78([0x73,0x74,0x61,0x74,0x65])]==_0x241d78([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x470575(){return _0x2e5acc(_0x241d78([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 _0x31a297(){return _0x2e5acc(_0x241d78([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x31877c(_0x4d4a5b){const _0x27d1f7=_0x5d0a31();_0x2a7f1d[_0x27d1f7]=_0x241d78([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4d4a5b,_0x4d4a5b!=_0x241d78([0x56,0x61,0x6c,0x69,0x64])&&_0x51fe3f();}function _0x5d0a31(){const _0x13c03f=window[_0x241d78([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x241d78([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x241d78([0x6e,0x6f,0x77])]())[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x241d78([0x2e]),'');let _0x2c862f=_0x241d78([0x75]);for(let _0x56775e=0x0;_0x56775e<_0x13c03f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56775e+=0x2){let _0x3c8cd6=window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13c03f[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56775e,_0x56775e+0x2));_0x3c8cd6>=_0x44aecf[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c8cd6-=_0x44aecf[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c862f+=_0x44aecf[_0x3c8cd6];}return _0x2c862f;}function _0x236142(){const _0xaf1019=_0x427535[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e]));if(0x3!=_0xaf1019[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27b1cf(_0xaf1019[0x1]);function _0x27b1cf(_0x51d783){const _0x533251=_0x266d2a(_0x51d783);return _0x533251&&_0xb8c08c()?_0x533251:null;function _0xb8c08c(){const _0x105ce8=_0x533251[_0x241d78([0x6a,0x74,0x69])],_0x3dc7c1=window[_0x241d78([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x105ce8[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x105ce8[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xad3e3a={..._0x533251,[_0x241d78([0x6a,0x74,0x69])]:_0x105ce8[_0x241d78([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x105ce8[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xad3e3a[_0x241d78([0x76,0x63])],_0x2bb4bc(_0xad3e3a)==_0x3dc7c1;}}}async function _0x295ce7(){let _0x3c6f2b=!0x0;try{const _0x3bcc0e=_0x427535[_0x241d78([0x73,0x70,0x6c,0x69,0x74])](_0x241d78([0x2e])),[_0x3ec32a,_0x168a35,_0x16d121]=_0x3bcc0e;return _0x1759a5(_0x3ec32a),await _0x294cb5(_0x3ec32a,_0x168a35,_0x16d121),_0x3c6f2b;}catch{return!0x1;}function _0x1759a5(_0x3e1f4b){const _0x3c1fad=_0x266d2a(_0x3e1f4b);_0x3c1fad&&_0x3c1fad[_0x241d78([0x61,0x6c,0x67])]==_0x241d78([0x45,0x53,0x32,0x35,0x36])||(_0x3c6f2b=!0x1);}async function _0x294cb5(_0x3c6d8b,_0x39b462,_0xc884ca){const _0x511f0c=window[_0x241d78([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x241d78([0x66,0x72,0x6f,0x6d])](_0x907c85(_0xc884ca),_0x17a967=>_0x17a967[_0x241d78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fd14c=new window[(_0x241d78([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x241d78([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c6d8b+_0x241d78([0x2e])+_0x39b462),_0x128d87=window[_0x241d78([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x241d78([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x128d87)return;const _0x2723ab=await _0x128d87[_0x241d78([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x241d78([0x6a,0x77,0x6b]),_0x8a9a3a,{[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x45,0x43,0x44,0x53,0x41]),[_0x241d78([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x241d78([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x128d87[_0x241d78([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x45,0x43,0x44,0x53,0x41]),[_0x241d78([0x68,0x61,0x73,0x68])]:{[_0x241d78([0x6e,0x61,0x6d,0x65])]:_0x241d78([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2723ab,_0x511f0c,_0x2fd14c)||(_0x3c6f2b=!0x1);}}function _0x266d2a(_0x37d4f7){return _0x37d4f7[_0x241d78([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x241d78([0x65,0x79]))?JSON[_0x241d78([0x70,0x61,0x72,0x73,0x65])](_0x907c85(_0x37d4f7)):null;}function _0x907c85(_0x5b6d22){return window[_0x241d78([0x61,0x74,0x6f,0x62])](_0x5b6d22[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x241d78([0x2b]))[_0x241d78([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x241d78([0x2f])));}function _0x2bb4bc(_0x41f215){let _0x51ccf0=0x1505;function _0x86a86b(_0xd96c2f){for(let _0x4f8a5f=0x0;_0x4f8a5f<_0xd96c2f[_0x241d78([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f8a5f++){const _0x5b6d83=_0xd96c2f[_0x241d78([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f8a5f);_0x51ccf0=(_0x51ccf0<<0x5)+_0x51ccf0+_0x5b6d83,_0x51ccf0&=_0x51ccf0;}}function _0x1200ca(_0x179ee8){Array[_0x241d78([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x179ee8)?_0x179ee8[_0x241d78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1200ca):_0x179ee8&&typeof _0x179ee8==_0x241d78([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x241d78([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x179ee8)[_0x241d78([0x73,0x6f,0x72,0x74])]()[_0x241d78([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22e836,_0x2a5815])=>{_0x86a86b(_0x22e836),_0x1200ca(_0x2a5815);}):_0x86a86b(window[_0x241d78([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x179ee8));}return _0x1200ca(_0x41f215),_0x51ccf0>>>0x0;}function _0x29a6aa(_0x3ddfbe){return _0x3ddfbe[_0x241d78([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x241d78([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x241d78([0x30]));}function _0x538dee(_0x19a1f3){return _0x19a1f3[_0x241d78([0x73,0x70,0x6c,0x69,0x74])]('')[_0x241d78([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x241d78([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e5acc(_0x3b2043){return _0x2a7f1d[_0x241d78([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x241d78([0x68,0x61,0x73])](_0x3b2043);}function _0x26be85(_0x1e9e78){return _0x2a7f1d[_0x241d78([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x241d78([0x67,0x65,0x74])](_0x1e9e78);}function _0xf06005(){}function _0x241d78(_0x423a73){return _0x423a73['map'](_0x361239=>String['fromCharCode'](_0x361239))['join']('');}_0x31877c(await _0x376f16());}(this);}set['adapter'](_0x397439){if(this['_adapter'])throw new _0x3ef735('track-changes-adapter-already-set',this);this['_adapter']=_0x397439;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x554a38=!0x1,toJSON:_0x556df2=!0x1}={}){const _0x5717c4=[];for(const _0x111005 of this['_suggestions']['values']())_0x554a38&&!_0x111005['isInContent']||_0x5717c4['push'](_0x111005);return _0x556df2?_0x5717c4['map'](_0x5a8d56=>_0x5a8d56['toJSON']()):_0x5717c4;}['getSuggestion'](_0x5bf659){const _0x4d56cb=this['_suggestions']['get'](_0x5bf659);if(!_0x4d56cb)throw new _0x3ef735('track-changes-suggestion-not-found',this);return _0x4d56cb;}['hasSuggestion'](_0x294011){return this['_suggestions']['has'](_0x294011);}['addSuggestionData'](_0xa36207){const {authorId:_0x4b655f,id:_0x21a68f,originalSuggestionId:_0x2b02f7,attributes:_0xa88ad6}=_0xa36207,[_0x5efdb0,_0x229bc5]=_0xa36207['type']['split'](':'),_0xdaa07a=this['_suggestions']['get'](_0x21a68f)||this['_createSuggestion'](_0x5efdb0,_0x229bc5,_0x21a68f,_0x4b655f,_0xa88ad6,_0x2b02f7);if(this['_addThreadToSuggestion'](_0xdaa07a),this['_checkSuggestionCorrectness'](_0xdaa07a,_0x5efdb0,_0x229bc5||null,_0x4b655f),_0xdaa07a['createdAt']=_0xa36207['createdAt'],_0xdaa07a['_isDataLoaded']=!0x0,_0xa88ad6&&_0xa88ad6['@external']){const _0x214174=_0xa88ad6['@external'],_0x9c6e=this['_getExternalAuthor'](_0x214174['authorName']);_0xdaa07a['authoredAt']=_0x214174['createdAt'],_0xdaa07a['author']=_0x9c6e,_0xdaa07a['isExternal']=!0x0;}else _0xdaa07a['authoredAt']=_0xa36207['createdAt'];switch(_0xa36207['data']&&(_0xdaa07a['data']=_0xa36207['data']),_0xa36207['attributes']&&(_0xdaa07a['attributes']=_0xa36207['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xdaa07a['_saved']=!0x0),this['_suggestionState']['get'](_0xdaa07a)){case'notReady':this['_suggestionState']['set'](_0xdaa07a,'dataReady');break;case'markerReady':_0xdaa07a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xdaa07a])),this['_refreshSuggestionsChain'](new Set([_0xdaa07a])),this['_suggestionState']['set'](_0xdaa07a,'ready'),this['fire']('suggestionLoaded',_0xdaa07a)):this['_suggestionState']['set'](_0xdaa07a,'removed');}return _0xdaa07a;}['acceptSuggestion'](_0x3993dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x344c9e of _0x3993dc['getAllAdjacentSuggestions']())_0x344c9e['accept']();});});}['discardSuggestion'](_0xba11be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3cf5be of _0xba11be['getAllAdjacentSuggestions']())_0x3cf5be['discard']();});});}['enableCommand'](_0x4def9c,_0xb0eae0){const _0x15e60f=this['editor']['commands']['get'](_0x4def9c);if(!_0x15e60f)throw new _0x3ef735('track-changes-command-not-found',this,{'commandName':_0x4def9c});if(this['_enabledCommands']['has'](_0x15e60f))throw new _0x3ef735('track-changes-enable-command-twice',this,{'commandName':_0x4def9c});this['_enabledCommands']['add'](_0x15e60f),_0xb0eae0&&_0x15e60f['on']('execute',(_0x20eb74,_0x48b00b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48b00b['length']>0x0&&_0x48b00b[_0x48b00b['length']-0x1]&&_0x48b00b[_0x48b00b['length']-0x1]['forceDefaultExecution']?_0x48b00b['pop']():(_0x20eb74['return']=_0xb0eae0((..._0x20ac3a)=>_0x15e60f['execute'](..._0x20ac3a,{'forceDefaultExecution':!0x0}),..._0x48b00b),_0x20eb74['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5348d4){let _0x27ae27,_0x507b46;const _0x129d03=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x27ae27=_0x5348d4();}catch(_0x8f4fba){_0x507b46=_0x8f4fba;}return _0x129d03||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x507b46&&_0x3ef735['rethrowUnexpectedError'](_0x507b46,this),_0x27ae27;}['markInsertion'](_0x2eb646,_0x495ed8=null,_0x4d9686={}){if(_0x2eb646['isCollapsed'])return null;const _0x58ce9c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4d9686['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x244fa1,meta:_0x2a58a0}of this['_findSuggestions'](_0x2eb646,'insertion'))if(_0x2a58a0['isOwn']){if(!_0x2a58a0['isNextTo']){if(_0x2a58a0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x244fa1,_0x4d9686))continue;return _0x244fa1;}if(Qt(_0x244fa1,_0x4d9686))return _0x244fa1;this['_breakSuggestionMarker'](_0x244fa1,_0x2eb646['start'],_0x2eb646['end']);break;}if(_0x495ed8==_0x244fa1['subType']&&Qt(_0x244fa1,_0x4d9686)){const _0x586660=_0x244fa1['getFirstRange']();return _0x586660['start']['isEqual'](_0x2eb646['end'])?this['_setSuggestionRange'](_0x244fa1,this['_model']['createRange'](_0x2eb646['start'],_0x586660['end'])):this['_setSuggestionRange'](_0x244fa1,this['_model']['createRange'](_0x586660['start'],_0x2eb646['end'])),_0x244fa1;}}const _0x5e556d=_0x2e07c2(),_0x563141=_0x58ce9c['id'],_0x5cdaf6=_0x495ed8?'insertion:'+_0x495ed8:'insertion',_0x36df54=this['_setSuggestionData']({'id':_0x5e556d,'type':_0x5cdaf6,'createdAt':new Date(),'authorId':_0x563141,'attributes':_0x4d9686});return this['_addSuggestionMarker'](_0x5cdaf6,_0x5e556d,_0x563141,_0x2eb646),_0x36df54;}['markMultiRangeInsertion'](_0x2bb994,_0xf8ecd0='multi',_0x197523={}){const _0x2fcc82=this['editor']['plugins']['get']('Users')['me'],_0x5ad616=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf8ecd0,'join');this['_trackingSessionId']&&(_0x197523['trackingSessionId']=this['_trackingSessionId']);for(const _0x59e340 of this['getSuggestions']())if(_0x59e340['author']['id']==_0x2fcc82['id']&&'insertion'==_0x59e340['type']&&_0x59e340['subType']==_0xf8ecd0&&Qt(_0x59e340,_0x197523)&&(_0x5ad616(_0x59e340['getRanges'](),_0x2bb994)||_0x5ad616(_0x2bb994,_0x59e340['getRanges']()))){for(const _0x3a7043 of _0x2bb994)_0x59e340['addRange'](_0x3a7043);return _0x59e340;}for(const {suggestion:_0x462f1e,meta:_0x89227a}of this['_findSuggestions'](_0x2bb994,'insertion')){if(!_0x89227a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x89227a['containsRangeInObject'])continue;if(!Qt(_0x462f1e,_0x197523))continue;let _0x197631=!0x0;for(const _0x5603ea of _0x462f1e['getRanges']())for(const _0x477e80 of _0x2bb994)if(!_0x5603ea['containsRange'](_0x477e80)){_0x197631=!0x1;break;}if(_0x197631)return _0x462f1e;}const _0x4705cc=_0x2e07c2(),_0xe0d5f6=_0x2fcc82['id'],_0x3e3b56='insertion:'+_0xf8ecd0,_0x33095e=this['_setSuggestionData']({'id':_0x4705cc,'type':_0x3e3b56,'createdAt':new Date(),'authorId':_0xe0d5f6,'attributes':_0x197523});for(const _0x3ee88a of _0x2bb994)this['_addSuggestionMarker'](_0x3e3b56,_0x4705cc,_0xe0d5f6,_0x3ee88a,T['getMultiRangeId']());return _0x33095e;}['markInlineFormat'](_0x3aedf3,_0xcf720a,_0x483d50=null,_0x457368={}){if(_0x483d50=_0x483d50||Lt(_0xcf720a),_0x3aedf3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x457368['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31b8c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x483d50,'accept');return this['forceDefaultExecution'](()=>_0x31b8c7([_0x3aedf3],_0xcf720a,_0x457368)),null;}const _0x1e8c3e=this['editor']['plugins']['get']('Users')['me'],_0x6fa71c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1a2f35,meta:_0x5d7919}of this['_findSuggestions'](_0x3aedf3,'insertion'))_0x5d7919['isOwn']&&!_0x5d7919['isInsideObject']&&_0x6fa71c['push'](..._0x1a2f35['getRanges']());}const _0x5a9d72=function(_0x197a64,_0x267e67){const _0x4a9262=[];for(const _0xe188a9 of _0x267e67){const _0x471b0d=_0x197a64['getIntersection'](_0xe188a9);_0x471b0d&&_0x4a9262['push'](_0x471b0d);}return _0x4a9262;}(_0x3aedf3,_0x6fa71c),_0x167749=function(_0x525566,_0x1bd761){const _0x26070c=[_0x525566];for(const _0x217b69 of _0x1bd761){let _0x132e1a=0x0;for(;_0x132e1a<_0x26070c['length'];){const _0x271248=_0x26070c[_0x132e1a]['getDifference'](_0x217b69);_0x26070c['splice'](_0x132e1a,0x1,..._0x271248),_0x132e1a+=_0x271248['length'];}}return _0x26070c;}(_0x3aedf3,_0x6fa71c);_0x5a9d72['length']&&this['_model']['change'](()=>{for(const _0x37185f of _0x5a9d72){const _0x4ffc0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x483d50,'accept');this['forceDefaultExecution'](()=>_0x4ffc0c([_0x37185f],_0xcf720a,_0x457368));}});for(const _0x1b312a of _0x167749){let _0x5b4b8f=null,_0x47a83a=_0x1b312a['start'],_0x201c0a=_0x1b312a['end'];for(const {suggestion:_0x120068,meta:_0x55baa1}of this['_findSuggestions'](_0x1b312a,'formatInline')){if(!_0x55baa1['isOwn'])continue;if(_0x120068['subType']!=_0x483d50)continue;if(!Qt(_0x120068,_0x457368))continue;const _0x3589a7=_0x120068['getFirstRange']();if(_0x3589a7['containsRange'](_0x1b312a,!0x0))return null;_0x47a83a=_0x47a83a['isBefore'](_0x3589a7['start'])?_0x47a83a:_0x3589a7['start'],_0x201c0a=_0x201c0a['isAfter'](_0x3589a7['end'])?_0x201c0a:_0x3589a7['end'],_0x5b4b8f?_0x3589a7['start']['isBefore'](_0x5b4b8f['getFirstRange']()['start'])?(_0x5b4b8f['removeMarkers'](),_0x5b4b8f=_0x120068):_0x120068['removeMarkers']():_0x5b4b8f=_0x120068;}const _0x1f3f7b=this['_model']['createRange'](_0x47a83a,_0x201c0a);if(_0x5b4b8f)this['_setSuggestionRange'](_0x5b4b8f,_0x1f3f7b);else{const _0x2662fb=_0x2e07c2(),_0x3cae1f=_0x1e8c3e['id'];this['_setSuggestionData']({'id':_0x2662fb,'type':'formatInline:'+_0x483d50,'data':_0xcf720a,'createdAt':new Date(),'authorId':_0x3cae1f,'attributes':_0x457368}),this['_addSuggestionMarker']('formatInline:'+_0x483d50,_0x2662fb,_0x3cae1f,_0x1f3f7b);}}return null;}['markBlockFormat'](_0x1e10a5,_0x2b5583,_0x1d2b94=[],_0xd7e6af=null,_0x25d069={}){_0x2b5583['formatGroupId']||(_0x2b5583['formatGroupId']=_0x2b5583['commandName']),_0x2b5583['multipleBlocks']=_0x1e10a5['is']('range'),_0xd7e6af=_0xd7e6af||Lt(_0x2b5583);const _0x4828b9=_0x1d2b94['map'](_0x519f05=>qt(_0x519f05,this['_model'])),_0xc20ab7=_0x1e10a5['is']('range')?_0x1e10a5:qt(_0x1e10a5,this['_model']);if(this['_trackingSessionId']&&(_0x25d069['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3002e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd7e6af,'accept');return this['forceDefaultExecution'](()=>_0x3002e0([_0xc20ab7],_0x2b5583,_0x25d069)),null;}_0x4828b9['push'](_0xc20ab7);let _0x1ea9b1=!0x0;for(const _0x4285fc of _0x4828b9)if(!this['_rangeIsInLocalUserInsertion'](_0x4285fc)){_0x1ea9b1=!0x1;break;}if(_0x1ea9b1&&'always'!==this['_trackFormatChanges']){const _0x54bf11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd7e6af,'accept');return this['forceDefaultExecution'](()=>_0x54bf11([_0xc20ab7],_0x2b5583,_0x25d069)),null;}let _0x5f23c9=null,_0x549dca=_0xc20ab7['start'],_0x1f1bd8=_0xc20ab7['end'];for(const {suggestion:_0x9f214d,meta:_0x322b51}of this['_findSuggestions'](_0xc20ab7,'formatBlock')){if(!_0x322b51['isOwn'])continue;if(_0x322b51['isNextTo']||_0x322b51['containsRangeInObject']||_0x322b51['isInsideObject'])continue;if(_0x9f214d['data']['formatGroupId']!=_0x2b5583['formatGroupId'])continue;if(!Qt(_0x9f214d,_0x25d069))continue;const _0x38a1e5=_0x9f214d['getFirstRange']();if(_0x9f214d['subType']==_0xd7e6af){if(_0x38a1e5['containsRange'](_0xc20ab7,!0x0))return null;_0x549dca=_0x549dca['isBefore'](_0x38a1e5['start'])?_0x549dca:_0x38a1e5['start'],_0x1f1bd8=_0x1f1bd8['isAfter'](_0x38a1e5['end'])?_0x1f1bd8:_0x38a1e5['end'],_0x5f23c9?_0x38a1e5['start']['isBefore'](_0x5f23c9['getFirstRange']()['start'])?(_0x5f23c9['removeMarkers'](),_0x5f23c9=_0x9f214d):_0x9f214d['removeMarkers']():_0x5f23c9=_0x9f214d;}else{const _0x4f884e=_0xc20ab7['getIntersection'](_0x38a1e5);this['_cutOutSuggestionMarker'](_0x9f214d,_0x4f884e);}}const _0x3dfeed=this['editor']['plugins']['get']('Users')['me'],_0x504c05=_0x2e07c2(),_0x249bb4=_0x3dfeed['id'];if(_0x5f23c9)return this['_setSuggestionRange'](_0x5f23c9,this['_model']['createRange'](_0x549dca,_0x1f1bd8)),_0x5f23c9;{const _0x3cb1ce=this['_setSuggestionData']({'id':_0x504c05,'type':'formatBlock:'+_0xd7e6af,'data':_0x2b5583,'createdAt':new Date(),'authorId':_0x249bb4,'attributes':_0x25d069});return this['_addSuggestionMarker']('formatBlock:'+_0xd7e6af,_0x504c05,_0x249bb4,this['_model']['createRange'](_0x549dca,_0x1f1bd8)),_0x3cb1ce;}}['markMultiRangeBlockFormat'](_0x5cf49f,_0x29bc5a,_0x12a46d=[],_0x433a26=null,_0x4c5533={}){_0x29bc5a['formatGroupId']||(_0x29bc5a['formatGroupId']=_0x29bc5a['commandName']);const _0x502b77=_0x5cf49f[0x0];_0x29bc5a['multipleBlocks']=_0x502b77['is']('range'),_0x433a26=_0x433a26||Lt(_0x29bc5a);const _0x4ae8d0=_0x12a46d['map'](_0x1443dd=>qt(_0x1443dd,this['_model'])),_0x3f0057=_0x502b77['is']('range')?_0x5cf49f:_0x5cf49f['map'](_0x32e26d=>qt(_0x32e26d,this['_model']));if(this['_trackingSessionId']&&(_0x4c5533['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x192a44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'accept');return this['forceDefaultExecution'](()=>_0x192a44(_0x3f0057,_0x29bc5a,_0x4c5533)),null;}_0x4ae8d0['push'](..._0x3f0057);let _0x5da58e=!0x0;for(const _0x2981b7 of _0x4ae8d0)if(!this['_rangeIsInLocalUserInsertion'](_0x2981b7)){_0x5da58e=!0x1;break;}if(_0x5da58e&&'always'!==this['_trackFormatChanges']){const _0x88cf6c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'accept');return this['forceDefaultExecution'](()=>_0x88cf6c(_0x3f0057,_0x29bc5a,_0x4c5533)),null;}const _0x37ffe0=this['editor']['plugins']['get']('Users')['me'];for(const _0x15c7b8 of this['getSuggestions']()){const _0x79c03e=_0x15c7b8['data'];if(_0x15c7b8['author']['id']!=_0x37ffe0['id'])continue;if('formatBlock'!=_0x15c7b8['type']||_0x79c03e['formatGroupId']!=_0x29bc5a['formatGroupId'])continue;if(!Qt(_0x15c7b8,_0x4c5533))continue;const _0x158fc7=_0x15c7b8['subType']==_0x433a26;for(let _0x1c808a=0x0;_0x1c808a<_0x3f0057['length'];_0x1c808a++){const _0x39b550=_0x3f0057[_0x1c808a];for(const _0x488d1b of _0x15c7b8['getMarkers']()){const _0xaaaaeb=_0x488d1b['getRange']();if(_0x39b550['isEqual'](_0xaaaaeb)){_0x158fc7?(_0x3f0057['splice'](_0x1c808a,0x1),_0x1c808a--):_0x15c7b8['removeMarker'](_0x488d1b['name']);break;}}}}if(0x0==_0x3f0057['length'])return null;const _0x46bc15=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x433a26,'join');for(const _0x4c284a of this['getSuggestions']()){const _0xe3c9d9=_0x4c284a['data'];if(_0x4c284a['author']['id']==_0x37ffe0['id']&&('formatBlock'==_0x4c284a['type']&&_0xe3c9d9['formatGroupId']==_0x29bc5a['formatGroupId']&&_0x4c284a['subType']==_0x433a26&&Qt(_0x4c284a,_0x4c5533)&&(_0x46bc15(_0x4c284a['getRanges'](),_0x3f0057)||_0x46bc15(_0x3f0057,_0x4c284a['getRanges']())))){for(const _0x250282 of _0x3f0057)_0x4c284a['addRange'](_0x250282);return _0x4c284a;}}const _0x404511=_0x2e07c2(),_0x3fe013=_0x37ffe0['id'],_0x3302ba='formatBlock:'+_0x433a26,_0xfdbd6c=this['_setSuggestionData']({'id':_0x404511,'type':_0x3302ba,'data':_0x29bc5a,'createdAt':new Date(),'authorId':_0x3fe013,'attributes':_0x4c5533});for(const _0x11944d of _0x3f0057)this['_addSuggestionMarker'](_0x3302ba,_0x404511,_0x3fe013,_0x11944d,T['getMultiRangeId']());return _0xfdbd6c;}['markDeletion'](_0x4e4871,_0x206572=null,_0x5355d2={}){if(_0x4e4871['isCollapsed'])return null;const _0x4242c2=this['editor']['plugins']['get']('Users')['me'],_0x183870=new _0x25dfb1(_0x4e4871['start'],_0x4e4871['end']);this['_trackingSessionId']&&(_0x5355d2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd75a83,meta:_0x378632}of this['_findSuggestions'](_0x183870,'insertion'))if(_0x378632['isOwn']&&!_0x378632['isNextTo']){if(_0xd75a83['isMultiRange']){const _0x16f546=_0xd75a83['getRanges']()['filter'](_0x1560e5=>'$graveyard'!=_0x1560e5['root']['rootName']);_0x16f546['every'](_0x2006b2=>_0x183870['containsRange'](_0x2006b2,!0x0))&&_0xd75a83['discard']();if(_0x16f546['some'](_0xc8beac=>_0xc8beac['containsRange'](_0x183870,!0x0))){const _0x39bfc5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206572,'accept');return this['forceDefaultExecution'](()=>_0x39bfc5([_0x183870],null,_0x5355d2)),null;}}else{const _0x50b8ac=_0x183870['getIntersection'](_0xd75a83['getFirstRange']());null!==_0x50b8ac&&_0xd75a83['_onDiscard']([_0x50b8ac],null,_0x5355d2);}}if(_0x183870['detach'](),_0x183870['isCollapsed']||'$graveyard'==_0x183870['root']['rootName'])return null;let _0x54a81f=null,_0x14943=_0x183870['start'],_0x1dd2db=_0x183870['end'];const _0x25ae69=this['_findSuggestions'](_0x183870,'deletion');for(const {suggestion:_0x3fe00a,meta:_0x400fe5}of _0x25ae69){const _0x5a6623=this['_model']['createRange'](_0x14943,_0x1dd2db);if(_0x400fe5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x400fe5['containsRangeInObject']&&!_0x400fe5['isInsideObject'])){if(_0x3fe00a['isMultiRange']){if(!Qt(_0x3fe00a,_0x5355d2))continue;let _0x590f07=!0x0;for(const _0x29b809 of _0x3fe00a['getRanges']()){if(_0x29b809['containsRange'](_0x5a6623,!0x0))return _0x3fe00a;_0x5a6623['containsRange'](_0x29b809)||(_0x590f07=!0x1);}_0x590f07&&_0x3fe00a['discard']();}else{const _0x19aebd=_0x3fe00a['getFirstRange']();if(_0x19aebd['containsRange'](_0x5a6623,!0x0))return _0x3fe00a;if(!Qt(_0x3fe00a,_0x5355d2)){_0x5a6623['containsRange'](_0x19aebd)?_0x3fe00a['removeMarkers']():_0x19aebd['containsPosition'](_0x14943)?_0x14943=_0x19aebd['end']:_0x19aebd['containsPosition'](_0x1dd2db)&&(_0x1dd2db=_0x19aebd['start']);continue;}_0x14943=_0x14943['isBefore'](_0x19aebd['start'])?_0x14943:_0x19aebd['start'],_0x1dd2db=_0x1dd2db['isAfter'](_0x19aebd['end'])?_0x1dd2db:_0x19aebd['end'],_0x5355d2=Object['assign']({},_0x3fe00a['attributes']),_0x54a81f?_0x19aebd['start']['isBefore'](_0x54a81f['getFirstRange']()['start'])?(_0x54a81f['removeMarkers'](),_0x54a81f=_0x3fe00a):_0x3fe00a['removeMarkers']():_0x54a81f=_0x3fe00a;}}}if(_0x54a81f)return this['_setSuggestionRange'](_0x54a81f,this['_model']['createRange'](_0x14943,_0x1dd2db)),_0x54a81f;{const _0x181727=_0x2e07c2(),_0x23550c=this['_model']['createRange'](_0x14943,_0x1dd2db),_0x3a7593=_0x4242c2['id'],_0x1edcd6=_0x206572?'deletion:'+_0x206572:'deletion',_0x27a3b3=this['_setSuggestionData']({'id':_0x181727,'type':_0x1edcd6,'createdAt':new Date(),'authorId':_0x3a7593,'attributes':_0x5355d2});return this['_addSuggestionMarker'](_0x1edcd6,_0x181727,_0x3a7593,_0x23550c),_0x27a3b3;}}['markMultiRangeDeletion'](_0xb4c1bf,_0x541418='multi',_0x569267={}){const _0x54217f=this['editor']['plugins']['get']('Users')['me'],_0x1d09f8=_0xb4c1bf['map'](_0x8c7dd1=>new _0x25dfb1(_0x8c7dd1['start'],_0x8c7dd1['end'])),_0x320659=new Set();this['_trackingSessionId']&&(_0x569267['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48df5e,meta:_0x59856d}of this['_findSuggestions'](_0x1d09f8,'insertion'))_0x59856d['isOwn']&&!_0x59856d['isNextTo']&&_0x320659['add'](_0x48df5e);for(const _0x47c610 of _0x320659)if(_0x47c610['isMultiRange']){const _0x38b8f6=_0x47c610['getRanges']();(!_0x47c610['attributes']||!_0x47c610['attributes']['skipNestingCheck'])&&(_0x38b8f6['every'](_0x9560f9=>_0x1d09f8['some'](_0x2a4380=>_0x2a4380['containsRange'](_0x9560f9,!0x0)))&&_0x47c610['discard']());if(_0x1d09f8['every'](_0x151abe=>_0x38b8f6['some'](_0x5eb2a1=>_0x5eb2a1['containsRange'](_0x151abe,!0x0)))){const _0x35a715=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'accept');return this['forceDefaultExecution'](()=>_0x35a715(_0xb4c1bf,null,_0x569267)),null;}}else{const _0x3fdb41=_0x47c610['getFirstRange']();_0x1d09f8['some'](_0x21a5d2=>_0x21a5d2['containsRange'](_0x3fdb41,!0x0))&&_0x47c610['discard']();if(_0x1d09f8['every'](_0x33e41d=>_0x3fdb41['containsRange'](_0x33e41d,!0x0))){const _0x1af5ec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'accept');return this['forceDefaultExecution'](()=>_0x1af5ec(_0x1d09f8,null,_0x569267)),null;}}const _0x1248e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541418,'join');let _0x501774=null;for(const _0x10373a of this['getSuggestions']())if(_0x10373a['author']['id']==_0x54217f['id']&&_0x10373a['isInContent']&&'deletion'==_0x10373a['type']&&_0x10373a['subType']==_0x541418&&Qt(_0x10373a,_0x569267)&&(_0x1248e4(_0x10373a['getRanges'](),_0x1d09f8)||_0x1248e4(_0x1d09f8,_0x10373a['getRanges']()))){if(_0x501774){if(_0x10373a['commentThread']&&_0x10373a['commentThread']['length'])continue;for(const _0x40ff1b of _0x10373a['getRanges']())_0x501774['isIntersectingWithRange'](_0x40ff1b)||_0x501774['addRange'](_0x40ff1b);_0x10373a['removeMarkers']();}else{_0x501774=_0x10373a;for(const _0xca4bab of _0x1d09f8)_0x10373a['isIntersectingWithRange'](_0xca4bab)||_0x10373a['addRange'](_0xca4bab);}}if(_0x501774)return _0x501774;_0x320659['clear']();for(const {suggestion:_0x3a74db,meta:_0x2e130f}of this['_findSuggestions'](_0x1d09f8,'deletion'))_0x2e130f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2e130f['containsRangeInObject']&&!_0x2e130f['isInsideObject'])&&Qt(_0x3a74db,_0x569267)&&_0x320659['add'](_0x3a74db);for(const _0x1258ac of _0x320659){const _0x7e735=_0x1258ac['getRanges']();if(!_0x569267||!_0x569267['skipNestingCheck']){if(_0x1d09f8['every'](_0x3b3d9a=>_0x7e735['some'](_0x386336=>_0x386336['containsRange'](_0x3b3d9a,!0x0))))return _0x1258ac;}(!_0x1258ac['attributes']||!_0x1258ac['attributes']['skipNestingCheck'])&&(_0x7e735['every'](_0x5764e4=>_0x1d09f8['some'](_0x50bb1f=>_0x50bb1f['containsRange'](_0x5764e4,!0x0)))&&_0x1258ac['discard']());}const _0x352713=_0x2e07c2(),_0x111f0b=_0x54217f['id'],_0x417ddd='deletion:'+_0x541418,_0x2ff8c8=this['_setSuggestionData']({'id':_0x352713,'type':_0x417ddd,'createdAt':new Date(),'authorId':_0x111f0b,'attributes':_0x569267});for(const _0x46b887 of _0x1d09f8)_0x46b887['detach'](),_0x46b887['isCollapsed']||'$graveyard'==_0x46b887['root']['rootName']||this['_addSuggestionMarker'](_0x417ddd,_0x352713,_0x111f0b,_0x46b887,T['getMultiRangeId']());return _0x2ff8c8;}['markAttributeChange'](_0xc10ef9,_0x30aea7,_0x220aeb,_0x291968,_0x528a71){if(_0xc10ef9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e7d0d=this['editor']['plugins']['get']('Users')['me']['id'],_0x27a066=Array['from'](this['_suggestions']['values']())['filter'](_0x32b04d=>'attribute'==_0x32b04d['type']&&_0x32b04d['data']['key']==_0x30aea7&&_0x32b04d['isIntersectingWithRange'](_0xc10ef9));if(this['_trackingSessionId']&&(_0x528a71['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2ce5f6=this['_findSuggestions'](_0xc10ef9,'insertion')['filter'](({meta:_0x4621a2})=>_0x4621a2['isOwn']&&!_0x4621a2['isInsideObject']&&!_0x4621a2['isNextTo'])['map'](({suggestion:_0x4ce651})=>_0x4ce651);_0x27a066['unshift'](..._0x2ce5f6);}const _0x1b656e=new Map([[_0xc10ef9,_0x220aeb]]);for(const _0x128fbd of _0x27a066){const _0x3cb3ee='attribute'==_0x128fbd['type']?_0x128fbd['data']['oldValue']:void 0x0,_0x5c5a7a=_0x128fbd['getFirstRange'](),_0x5a5f32=Array['from'](_0x1b656e['keys']())['find'](_0x83a8de=>_0x83a8de['isIntersecting'](_0x5c5a7a));if(!_0x5a5f32)continue;const _0x18c441=_0x5a5f32['getDifference'](_0x5c5a7a);this['_isBlockAttribute'](_0x30aea7)&&'insertion'==_0x128fbd['type']&&0x0!=_0x18c441['length']||(_0x1b656e['delete'](_0x5a5f32),_0x18c441['forEach'](_0x1ffdd2=>{_0x1b656e['set'](_0x1ffdd2,_0x220aeb);}),'insertion'!=_0x128fbd['type']&&_0x3cb3ee!=_0x291968&&_0x1b656e['set'](_0x5a5f32['getIntersection'](_0x5c5a7a),_0x3cb3ee));}const _0x507c89=[];for(const [_0x586043,_0x37a263]of _0x1b656e){const _0x26062e=_0x2e07c2(),_0x31fe53={'key':_0x30aea7,'oldValue':_0x37a263,'newValue':_0x291968};_0x30aea7['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':_0x30aea7});const _0x511d2b=('attribute:'+(_0x30aea7+'|'+Lt({'newValue':_0x291968})))['substring'](0x0,0x3c),_0xccebb0=this['_setSuggestionData']({'id':_0x26062e,'type':_0x511d2b,'data':_0x31fe53,'createdAt':new Date(),'authorId':_0x1e7d0d,'attributes':_0x528a71});_0x507c89['push'](_0xccebb0),this['_addSuggestionMarker'](_0x511d2b,_0x26062e,_0x1e7d0d,_0x586043);}return _0x507c89;}['enableDefaultAttributesIntegration'](_0x4d8916){this['enableCommand'](_0x4d8916,(_0x183b4b,..._0x162b3b)=>{this['recordAttributeChanges'](()=>{_0x183b4b(..._0x162b3b);});});}['registerBlockAttribute'](_0x20e49c){this['_blockAttributeKeys']['add'](_0x20e49c);}['registerInlineAttribute'](_0x3727a1){this['_inlineAttributeKeys']['add'](_0x3727a1);}['startTrackingSession'](_0x2ae7c0){return this['_trackingSessionId']=void 0x0!==_0x2ae7c0?_0x2ae7c0:_0x2e07c2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1abf03){return'attribute'==_0x1abf03['type']?_0x1abf03['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x23f8d6,_0x909ec){const _0x56457a=_0x23f8d6['getFirstMarker']();this['_model']['change'](_0x1cb984=>{_0x1cb984['updateMarker'](_0x56457a,{'range':_0x909ec});});}['_addThreadToSuggestion'](_0x2c8a6d){const _0x256f1d=_0x2c8a6d['id'],_0x5f0ebb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x256f1d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f0ebb,'threadId':_0x256f1d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e3b87=this['_commentsRepository']['getCommentThread'](_0x256f1d);_0x1e3b87['unbind']('isRemovable'),_0x1e3b87['isRemovable']=!0x1,_0x2c8a6d['commentThread']=_0x1e3b87;}['_checkSuggestionCorrectness'](_0x411687,_0x4cfb60,_0x4cfff,_0x57265f){if(_0x411687['type']!=_0x4cfb60||_0x411687['subType']!=_0x4cfff||_0x411687['creator']['id']!=_0x57265f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ef735('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x7290c6,_0x1726e1){const _0x16b7fa=_0x7290c6['getFirstRange']();if(_0x1726e1['isEqual'](_0x16b7fa))_0x7290c6['removeMarkers']();else{if(_0x16b7fa['containsRange'](_0x1726e1)){const _0x484bb6=this['_model']['createPositionAt'](_0x1726e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0x16b7fa['start'],_0x484bb6));const _0x569921=_0x2e07c2(),_0x594105=_0x7290c6['creator']['id'],_0x2c23d1=_0x7290c6['type']+':'+_0x7290c6['subType'];this['_setSuggestionData']({'id':_0x569921,'type':_0x2c23d1,'createdAt':new Date(),'authorId':_0x594105,'data':_0x7290c6['data'],'attributes':_0x7290c6['attributes']});const _0x3b0a72=this['_model']['createPositionAt'](_0x1726e1['end']['parent'],'after'),_0x3643c1=this['_model']['createRange'](_0x3b0a72,_0x16b7fa['end']);this['_addSuggestionMarker'](_0x2c23d1,_0x569921,_0x594105,_0x3643c1);}else{if(_0x16b7fa['containsPosition'](_0x1726e1['start'])){const _0x8153cb=this['_model']['createPositionAt'](_0x1726e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0x16b7fa['start'],_0x8153cb));}else{const _0xfdbcef=this['_model']['createPositionAt'](_0x1726e1['end']['parent'],'after');this['_setSuggestionRange'](_0x7290c6,this['_model']['createRange'](_0xfdbcef,_0x16b7fa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x42a641){for(const {suggestion:_0x3f3fcf,meta:_0x16d1bd}of this['_findSuggestions'](_0x42a641,'insertion')){if(!_0x16d1bd['isOwn'])continue;const _0x4fd249=_0x3f3fcf['getRanges']();for(const _0x747c77 of _0x4fd249)if(!_0x42a641['getDifference'](_0x747c77)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15b0c0){const _0x3b40f3=this['editor']['plugins']['get']('Users')['getUser'](_0x15b0c0);if(!_0x3b40f3)throw new _0x3ef735('track-changes-user-not-found',this);return _0x3b40f3;}['_getExternalAuthor'](_0xba1926){const _0x31d38c=this['editor']['plugins']['get']('Users'),_0x1956ba=_0x272e91('external:'+_0xba1926),_0x545056=_0x31d38c['getUser'](_0x1956ba);return _0x545056||_0x31d38c['addUser']({'id':_0x1956ba,'name':_0xba1926});}['_createSuggestion'](_0x2b9094,_0x4e6c7e,_0x39adca,_0x9100c2,_0xfbb6dc,_0x2f7d51){const _0xb517cf=this['_getAuthorFromId'](_0x9100c2),_0x8de3de=this['_suggestionFactory']['buildSuggestion'](_0x2b9094,_0x4e6c7e,_0x39adca,_0xb517cf,_0xfbb6dc,_0x427611=>{this['_updateSuggestionData'](_0x39adca,{'attributes':_0x427611});const _0x156db4=this['getSuggestion'](_0x39adca);this['_joinWithAdjacentSuggestions'](new Set([_0x156db4])),this['_refreshSuggestionsChain'](new Set([_0x156db4]));},_0x2f7d51);return this['listenTo'](_0x8de3de,'accept',()=>{this['_updateSuggestionData'](_0x39adca,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8de3de,'discard',()=>{this['_updateSuggestionData'](_0x39adca,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39adca,_0x8de3de),this['_suggestionState']['set'](_0x8de3de,'notReady'),_0x8de3de;}['_splitMarkerName'](_0x24c12d){const _0x97555d=_0x24c12d['split'](':');return{'group':_0x97555d[0x0],'type':_0x97555d[0x1],'subType':_0x97555d['length']>=0x5?_0x97555d[0x2]:null,'id':_0x97555d['length']<0x5?_0x97555d[0x2]:_0x97555d[0x3],'authorId':_0x97555d['length']<0x5?_0x97555d[0x3]:_0x97555d[0x4],'markerCount':0x6==_0x97555d['length']?_0x97555d[0x5]:null};}['_breakSuggestionMarker'](_0x4d48a5,_0x1b4143,_0x424084){const _0xf4fc56=_0x4d48a5['getFirstRange'](),_0x29bc22=_0xf4fc56['start'],_0x30658a=_0xf4fc56['end'];this['_setSuggestionRange'](_0x4d48a5,this['_model']['createRange'](_0x29bc22,_0x1b4143));const _0x513972=_0x2e07c2(),_0x3c652f=_0x4d48a5['creator']['id'],_0x2d55ec=_0x4d48a5['type']+(_0x4d48a5['subType']?':'+_0x4d48a5['subType']:'');this['_setSuggestionData']({'id':_0x513972,'type':_0x2d55ec,'createdAt':new Date(),'authorId':_0x3c652f,'originalSuggestionId':_0x4d48a5['_originalSuggestionId']||_0x4d48a5['id'],'attributes':_0x4d48a5['attributes'],'data':_0x4d48a5['data']});const _0x4c4038=this['_getAttributeKey'](_0x4d48a5);('formatBlock'==_0x4d48a5['type']||_0x4c4038&&this['_isBlockAttribute'](_0x4c4038))&&(_0x424084=this['_model']['createPositionBefore'](_0x424084['parent'])),this['_addSuggestionMarker'](_0x2d55ec,_0x513972,_0x3c652f,this['_model']['createRange'](_0x424084,_0x30658a));}['_findSuggestions'](_0x4c3574,_0x3f60d6=null){const _0x6cbee5=[],_0x1ddbde=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4c3574)||(_0x4c3574=[_0x4c3574]);for(const _0x35a42c of this['getSuggestions']()){if(!_0x35a42c['isInContent'])continue;if(_0x3f60d6&&_0x35a42c['type']!=_0x3f60d6)continue;let _0x4d9fe2=!0x1;for(const _0x43fd58 of _0x35a42c['getRanges']()){for(const _0x539d3b of _0x4c3574){const _0x1a410d=_0x539d3b['start']['isEqual'](_0x43fd58['end'])||_0x539d3b['end']['isEqual'](_0x43fd58['start']);if(_0x1a410d||_0x539d3b['getIntersection'](_0x43fd58)){const _0x693377=_0x539d3b['containsRange'](_0x43fd58)&&Ft(this['_model']['schema'],_0x43fd58['start'],_0x539d3b),_0x485cf4=_0x43fd58['containsRange'](_0x539d3b)&&Ft(this['_model']['schema'],_0x539d3b['start'],_0x43fd58);_0x6cbee5['push']({'suggestion':_0x35a42c,'meta':{'isOwn':_0x1ddbde==_0x35a42c['author'],'isNextTo':_0x1a410d,'isInsideObject':_0x693377,'containsRangeInObject':_0x485cf4}}),_0x4d9fe2=!0x0;break;}}if(_0x4d9fe2)break;}}return _0x6cbee5;}['_addSuggestionMarker'](_0x5d819a,_0x6f9de9,_0x31b74f,_0x397656,_0x177928){this['_model']['change'](_0x40dbb4=>{let _0x3bb5c7='suggestion:'+_0x5d819a+':'+_0x6f9de9+':'+_0x31b74f;_0x177928&&(_0x3bb5c7=_0x3bb5c7+':'+_0x177928),_0x40dbb4['addMarker'](_0x3bb5c7,{'range':_0x397656,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x571881){const _0x14c23f=_0x571881['previous'],_0x3379b0=_0x571881['next'];_0x571881['previous']=null,_0x571881['next']=null,null!=_0x14c23f&&_0x14c23f['next']==_0x571881&&(_0x14c23f['next']=_0x3379b0),null!=_0x3379b0&&_0x3379b0['previous']==_0x571881&&(_0x3379b0['previous']=_0x14c23f),'ready'==this['_suggestionState']['get'](_0x571881)&&(this['_suggestionState']['set'](_0x571881,'removed'),this['fire']('suggestionUnloaded',_0x571881,_0x14c23f,_0x3379b0));}['_setSuggestionData'](_0x257185){const _0x3908f2=_0x257185['id'],_0x42065d=this['addSuggestionData'](_0x257185);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3fca9d=this['editor']['plugins']['get']('PendingActions'),_0x2a04c4=_0x42065d['hasComments'],_0x133f3e=_0x42065d['subType']?_0x42065d['type']+':'+_0x42065d['subType']:_0x42065d['type'],_0x731e54=this['editor']['locale'],_0x1170c3=_0x3fca9d['add'](o(_0x731e54,'PENDING_ACTION_SUGGESTION')),_0x3fcf66={'id':_0x3908f2,'type':_0x133f3e,'hasComments':_0x2a04c4,'data':_0x257185['data']||null,'originalSuggestionId':_0x257185['originalSuggestionId']||null,'attributes':_0x42065d['attributes']};this['_adapter']['addSuggestion'](_0x3fcf66)['then'](_0x49e2af=>{_0x42065d['_saved']=!0x0,_0x3fca9d['remove'](_0x1170c3),_0x49e2af&&_0x49e2af['createdAt']&&(this['_suggestions']['get'](_0x3908f2)['createdAt']=_0x49e2af['createdAt']);})['catch'](_0x42016c=>{throw _0x478693('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42065d['discard']();}),_0x42065d['stopListening'](),this['_suggestions']['delete'](_0x42065d['id']),this['_suggestionState']['delete'](_0x42065d),_0x42016c;});}return _0x42065d;}['_isBlockAttribute'](_0x13bf98){return this['_blockAttributeKeys']['has'](_0x13bf98);}['_updateSuggestionData'](_0x3d72c6,_0x39fdab){const _0x16fd24=this['editor']['plugins']['get']('PendingActions'),_0x3979b4=this['getSuggestion'](_0x3d72c6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3979b4['_saved']){const _0x4dcd4e=_0x16fd24['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3d72c6,_0x39fdab)['then'](()=>{_0x16fd24['remove'](_0x4dcd4e);});}else _0x3979b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3d72c6,_0x39fdab);});}}['_getSuggestionData'](_0x25518d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3ef735('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25518d);}['_handleNewSuggestionMarker'](_0x45119e){const {id:_0x1b2d88,type:_0x32a8de,subType:_0x1da744,authorId:_0x577f5e}=this['_splitMarkerName'](_0x45119e),_0x50f53d=this['_suggestions']['get'](_0x1b2d88)||this['_createSuggestion'](_0x32a8de,_0x1da744,_0x1b2d88,_0x577f5e,{});switch(this['_checkSuggestionCorrectness'](_0x50f53d,_0x32a8de,_0x1da744,_0x577f5e),this['_suggestionState']['get'](_0x50f53d)){case'notReady':this['_getSuggestionData'](_0x1b2d88)['then'](_0x296827=>{let _0x54599b=Promise['resolve']();_0x296827['hasComments']&&(_0x54599b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b2d88})),_0x54599b['then'](()=>{this['addSuggestionData'](_0x296827)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x50f53d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b2d88,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x50f53d,'ready'),this['fire']('suggestionLoaded',_0x50f53d);break;case'ready':this['fire']('suggestionChanged',_0x50f53d);}return _0x50f53d['addMarkerName'](_0x45119e),_0x50f53d;}['_refreshSuggestionsChain'](_0xaab17e){const _0x45a58d=Array['from'](_0xaab17e),_0x3a96b2=_0x45a58d['filter'](_0x2e1665=>'attribute'==_0x2e1665['type']);this['_refreshAttributeSuggestionsChain'](_0x3a96b2);const _0x25458f=_0x45a58d['filter'](_0x2a87c5=>!_0x2a87c5['isMultiRange']&&'attribute'!=_0x2a87c5['type']),_0x8a22ac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a4d33=>!_0x4a4d33['isMultiRange']&&'attribute'!=_0x4a4d33['type']),_0x595f55=_0x8a22ac['filter'](_0x37f7f0=>!_0xaab17e['has'](_0x37f7f0)),_0x518537=new Map(_0x8a22ac['map'](_0x51b5a4=>[_0x51b5a4,this['_suggestionFactory']['getSuggestionCallback'](_0x51b5a4['type'],_0x51b5a4['subType'],'chain')])),_0x227360=new Map(_0x8a22ac['map'](_0x218608=>[_0x218608,_0x218608['getFirstRange']()])),_0xbdf62e=new Set(),_0x3c3f36=new Set();for(let _0x1f665c=0x0;_0x1f665c<_0x25458f['length'];_0x1f665c++)_0x103ce2(_0x25458f[_0x1f665c],_0x25458f,_0x1f665c+0x1);for(let _0x2a1dac=0x0;_0x2a1dac<_0x25458f['length'];_0x2a1dac++)_0x103ce2(_0x25458f[_0x2a1dac],_0x595f55,0x0);const _0x7810bb=new Set();for(let _0x571ffc=0x0;_0x571ffc<_0x25458f['length'];_0x571ffc++){const _0x21f279=_0x25458f[_0x571ffc];!_0x3c3f36['has'](_0x21f279)&&_0x21f279['previous']&&(_0x7810bb['add'](_0x21f279['previous']),_0x21f279['previous']['next']===_0x21f279&&(_0x21f279['previous']['next']=null),_0x21f279['previous']=null),!_0xbdf62e['has'](_0x21f279)&&_0x21f279['next']&&(_0x7810bb['add'](_0x21f279['next']),_0x21f279['next']['previous']===_0x21f279&&(_0x21f279['next']['previous']=null),_0x21f279['next']=null);}function _0x103ce2(_0x48fa2f,_0x2e6ee8,_0x57f11e){for(let _0x2ba332=_0x57f11e;_0x2ba332<_0x2e6ee8['length'];_0x2ba332++){const _0x55ab16=_0x6b0921(_0x48fa2f,_0x2e6ee8[_0x2ba332]);_0x55ab16&&(_0x55ab16[0x0]['next']=_0x55ab16[0x1],_0x55ab16[0x1]['previous']=_0x55ab16[0x0],_0xbdf62e['add'](_0x55ab16[0x0]),_0x3c3f36['add'](_0x55ab16[0x1]));}}function _0x6b0921(_0x37195f,_0x1218d6){if(_0x37195f['author']['id']!==_0x1218d6['author']['id'])return null;const _0x26fbc2=_0x518537['get'](_0x37195f)(_0x37195f,_0x1218d6,_0x227360['get'](_0x37195f),_0x227360['get'](_0x1218d6));if(!_0x26fbc2)return null;return _0x518537['get'](_0x1218d6)(_0x37195f,_0x1218d6,_0x227360['get'](_0x37195f),_0x227360['get'](_0x1218d6))?_0x26fbc2[0x1]['commentThread']&&_0x26fbc2[0x1]['commentThread']['length']?null:_0x26fbc2:null;}_0x7810bb['size']&&this['_refreshSuggestionsChain'](_0x7810bb);}['_refreshAttributeSuggestionsChain'](_0x1eff42){if(0x0==_0x1eff42['length'])return;const _0x2c56b7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x313657=>'attribute'==_0x313657['type']&&_0x313657['_isDataLoaded']),_0xf2708=[],_0x48eb6a=new Map();for(const _0x1e68e1 of _0x2c56b7){const _0x433f72=_0x272e91(_0x1e68e1['attributes']);_0x48eb6a['has'](_0x433f72)||(_0x48eb6a['set'](_0x433f72,_0xf2708['length']),_0xf2708['push']([]));const _0x2a1847=_0x48eb6a['get'](_0x433f72);_0xf2708[_0x2a1847]['push'](_0x1e68e1);}!(function(){_0xf2708['sort']((_0x43cd6b,_0x186d99)=>{const _0x29d7d0=_0x43cd6b[0x0]['createdAt'],_0x18a6a6=_0x186d99[0x0]['createdAt'];return _0x29d7d0==_0x18a6a6?_0x43cd6b[0x0]['attributes']['groupId']<_0x186d99[0x0]['attributes']['groupId']?-0x1:0x1:_0x29d7d0<_0x18a6a6?-0x1:0x1;});for(const _0xc3948b of _0xf2708)_0xc3948b['sort']((_0x3a0496,_0x2881a6)=>_0x3a0496['id']<_0x2881a6['id']?-0x1:0x1);}());for(let _0x82b4d3=0x0;_0x82b4d3<_0xf2708['length'];_0x82b4d3++){if(0x0==_0xf2708[_0x82b4d3]['length'])continue;const _0x4e5e7f=[];for(let _0x17cf2b=_0x82b4d3+0x1;_0x17cf2b<_0xf2708['length'];_0x17cf2b++)0x0!=_0xf2708[_0x17cf2b]['length']&&_0x561640(_0xf2708[_0x82b4d3],_0xf2708[_0x17cf2b])&&_0x4e5e7f['push'](_0x17cf2b);for(const _0x54ca13 of _0x4e5e7f)_0xf2708[_0x82b4d3]=_0xf2708[_0x82b4d3]['concat'](_0xf2708[_0x54ca13]),_0xf2708[_0x54ca13]=[];}for(const _0x34e6c4 of _0xf2708)for(let _0x953cc0=0x0;_0x953cc0<_0x34e6c4['length'];_0x953cc0++){const _0x5333c0=_0x34e6c4[_0x953cc0+0x1]||null;_0x34e6c4[_0x953cc0]['next']!==_0x5333c0&&(_0x34e6c4[_0x953cc0]['next']=_0x5333c0);}for(const _0xb997c2 of _0xf2708)for(let _0x7dd235=0x0;_0x7dd235<_0xb997c2['length'];_0x7dd235++){const _0x4f034d=_0xb997c2[_0x7dd235-0x1]||null;_0xb997c2[_0x7dd235]['previous']!==_0x4f034d&&(_0xb997c2[_0x7dd235]['previous']=_0x4f034d);}function _0x561640(_0x537122,_0x63dffb){if(_0x537122[0x0]['attributes']['groupId']!==_0x63dffb[0x0]['attributes']['groupId']&&_0x537122[0x0]['author']!==_0x63dffb[0x0]['author'])return!0x1;if(!function(_0x278ff8,_0x435926){if(!_0x278ff8['hasComments']&&!_0x435926['hasComments'])return!0x0;if(_0x278ff8['hasComments']&&_0x435926['hasComments'])return!0x1;if(_0x278ff8['hasComments']&&_0x435926['createdAt']<_0x278ff8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x435926['hasComments']&&_0x278ff8['createdAt']<_0x435926['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x537122[0x0],_0x63dffb[0x0]))return!0x1;const _0x35f1f5=Ut(_0x537122[0x0]['attributes'],['groupId','trackingSessionId']),_0x400a2d=Ut(_0x63dffb[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5eb148(_0x35f1f5,_0x400a2d))return!0x1;if(_0x537122[0x0]['attributes']['groupId']==_0x63dffb[0x0]['attributes']['groupId'])return!0x0;if(_0x537122[0x0]['attributes']['trackingSessionId']!==_0x63dffb[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x537122['every'](_0x1b0ba2=>_0x63dffb['some'](_0x534072=>_0x1b0ba2['getFirstRange']()['isEqual'](_0x534072['getFirstRange']())))&&_0x63dffb['every'](_0x34de99=>_0x537122['some'](_0x100083=>_0x34de99['getFirstRange']()['isEqual'](_0x100083['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4e55cd){const _0x292e9a=Array['from'](_0x4e55cd),_0x29750a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ef4cd=_0x29750a['filter'](_0x53f485=>!_0x4e55cd['has'](_0x53f485)),_0x2b26b5=new Map(_0x292e9a['map'](_0x50041c=>[_0x50041c,this['_suggestionFactory']['getSuggestionCallback'](_0x50041c['type'],_0x50041c['subType'],'join')])),_0x13af8e=new Map(_0x29750a['map'](_0x39d0f6=>[_0x39d0f6,_0x39d0f6['getRanges']()]));for(let _0x3c1625=0x0;_0x3c1625<_0x292e9a['length'];_0x3c1625++){if(_0x5c5310(this,_0x292e9a[_0x3c1625],_0x292e9a,_0x3c1625+0x1))return!0x0;}for(let _0x2ff1c4=0x0;_0x2ff1c4<_0x292e9a['length'];_0x2ff1c4++){if(_0x5c5310(this,_0x292e9a[_0x2ff1c4],_0x3ef4cd,0x0))return!0x0;}return!0x1;function _0x5c5310(_0x451e29,_0x3af4e9,_0x21167d,_0x5b173f){for(let _0x540d14=_0x5b173f;_0x540d14<_0x21167d['length'];_0x540d14++){const _0x5761c0=_0x21167d[_0x540d14];if(_0x5761c0['type']!==_0x3af4e9['type']||_0x5761c0['author']['id']!==_0x3af4e9['author']['id']||_0x5761c0['subType']!==_0x3af4e9['subType'])continue;if(!Wt(_0x3af4e9,_0x5761c0))continue;if('attribute'==_0x3af4e9['type']&&_0x3af4e9['data']['oldValue']!=_0x5761c0['data']['oldValue'])continue;if('attribute'==_0x3af4e9['type']&&_0x451e29['_isBlockAttribute'](_0x3af4e9['data']['key']))continue;if('formatBlock'==_0x3af4e9['type']){const _0x29b57d=_0x451e29['editor']['model'],_0x49fb90=_0x3af4e9['getContainedElement']();if(_0x49fb90&&(_0x29b57d['schema']['isObject'](_0x49fb90)||_0x29b57d['schema']['isLimit'](_0x49fb90)))continue;}const _0x2ece24=_0x2b26b5['get'](_0x3af4e9),_0x135c01=_0x13af8e['get'](_0x3af4e9),_0x1cd365=_0x13af8e['get'](_0x5761c0),_0x11b602=_0x3af4e9['commentThread']&&_0x3af4e9['commentThread']['length'],_0x25370e=_0x5761c0['commentThread']&&_0x5761c0['commentThread']['length'];if(!_0x11b602&&_0x2ece24(_0x1cd365,_0x135c01))return _0x451e29['_joinSuggestions'](_0x5761c0,_0x3af4e9),_0x13af8e['delete'](_0x3af4e9),!0x0;if(!_0x25370e&&_0x2ece24(_0x135c01,_0x1cd365))return _0x451e29['_joinSuggestions'](_0x3af4e9,_0x5761c0),_0x13af8e['delete'](_0x5761c0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1afc86,_0x3f207c){if(_0x1afc86['isMultiRange']){for(const _0xdf777b of _0x3f207c['getRanges']())_0x1afc86['addRange'](_0xdf777b);}else{const _0x4b4fd9=_0x3f207c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1afc86,this['_model']['createRange'](_0x1afc86['getFirstRange']()['start'],_0x4b4fd9));}_0x3f207c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x170da1,_0x3ce8a7,_0x3047ab){const _0x252e80=_0x170da1['startsWith']('format')||_0x170da1['startsWith']('attribute')?'FORMATTING':_0x170da1['toUpperCase']();return o(this['editor']['locale'],_0x3ce8a7+'_'+_0x252e80+'_SUGGESTION_ANNOUNCEMENT',_0x3047ab);}['_initAriaMarkerChangeAnnouncements'](){const _0x8ae7e2=this['editor'];if(!_0x8ae7e2['ui'])return;const {ariaLiveAnnouncer:_0x261ef2}=_0x8ae7e2['ui'];_0x245a5e(this['_model'],({left:_0x4dc484,entered:_0xaa41c8})=>{for(const _0x4f33de of _0x4dc484){const {group:_0x30b686,type:_0x3576fd}=this['_splitMarkerName'](_0x4f33de['name']);if('suggestion'===_0x30b686){_0x261ef2['announce'](this['_getMarkerAnnouncementText'](_0x3576fd,'LEAVE'));break;}}for(const _0x41517a of _0xaa41c8){const {group:_0x1ffe7a,type:_0x383b0c}=this['_splitMarkerName'](_0x41517a['name']);if('suggestion'===_0x1ffe7a){_0x261ef2['announce'](this['_getMarkerAnnouncementText'](_0x383b0c,'ENTER',_0x126f92(_0x1e0a49)));break;}}});}['_processAttributeChanges'](_0x4b7ca3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41f98b=this['editor'],_0x34c042=_0x41f98b['model']['document']['differ']['getChanges']();if(0x0==_0x34c042['length'])return!0x1;const _0x439a13=[],_0x2b1148=_0x34c042['filter'](_0x465779=>'attribute'==_0x465779['type']),_0x575719=_0x34c042['filter'](_0x5f017a=>'insert'==_0x5f017a['type']&&'$text'!=_0x5f017a['name']),_0x4fd090=_0x34c042['filter'](_0x2cf994=>'remove'==_0x2cf994['type']&&'$text'!=_0x2cf994['name']);for(const _0x337efe of _0x2b1148)_0x439a13['push']({'key':_0x337efe['attributeKey'],'newValue':_0x337efe['attributeNewValue'],'oldValue':_0x337efe['attributeOldValue'],'range':Ht(_0x337efe['range'],_0x41f98b['model'])});for(const _0x54f9cf of _0x575719){const _0x21432d=_0x4fd090['find'](_0x1025ce=>_0x1025ce['position']['isEqual'](_0x54f9cf['position']));_0x21432d&&_0x439a13['push']({'key':m,'newValue':_0x54f9cf['name'],'oldValue':_0x21432d['name'],'range':_0x41f98b['model']['createRangeOn'](_0x54f9cf['position']['nodeAfter'])});}return 0x0!=_0x439a13['length']&&this['_reduceExistingSuggestions'](_0x4b7ca3,_0x439a13);}['_processAttributeSuggestions'](_0x5b72c0){let _0x16ea84=!0x1;const _0x153b29=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x7f619b=>_0x7f619b['data']['newRange']&&_0x7f619b['name']['startsWith']('suggestion:attribute:'));for(const _0x4a0a05 of _0x153b29){const {subType:_0x25b631,id:_0x3b0015}=this['_splitMarkerName'](_0x4a0a05['name']),_0xa25d3a=_0x25b631['split']('|')[0x0];for(const _0x572e82 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x572e82['id']!=_0x3b0015&&'attribute'==_0x572e82['type']&&_0x572e82['data']&&_0x572e82['data']['key']==_0xa25d3a&&_0x572e82['getFirstRange']()['isIntersecting'](_0x4a0a05['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x572e82,_0x4a0a05['data']['newRange'],_0x5b72c0),_0x16ea84=!0x0);}return _0x16ea84;}['recordAttributeChanges'](_0x538519){this['_recordAttributeSuggestions']=!0x0,_0x538519();}['_isRegisteredAttribute'](_0x534ade){const _0x141384=this['_isBlockAttribute'](_0x534ade),_0x4077fd=this['_inlineAttributeKeys']['has'](_0x534ade);return _0x141384||_0x4077fd;}['_reduceExistingSuggestions'](_0x27b8f3,_0x2fc0ba){if(0x0==_0x2fc0ba['length'])return!0x1;let _0x5b7755=!0x1;for(const _0x511d78 of _0x2fc0ba){const _0x488d0d=this['_findSuggestions'](_0x511d78['range'],'attribute')['filter'](_0x256b9b=>!_0x256b9b['meta']['isNextTo'])['map'](_0xdc4a34=>_0xdc4a34['suggestion']),_0x1d7268=_0x272e91({'newValue':_0x511d78['newValue']});_0x488d0d['filter'](_0x50f3bf=>{const [_0x5992be,_0x3f4982]=_0x50f3bf['subType']['split']('|');return _0x5992be==_0x511d78['key']&&_0x3f4982!=_0x1d7268;})['forEach'](_0x470843=>{this['_reduceSuggestionAttributeRange'](_0x470843,_0x511d78['range'],_0x27b8f3),_0x5b7755=!0x0;});}return _0x5b7755;}['_reduceSuggestionAttributeRange'](_0x4b0314,_0xb20592,_0x30c592){const _0x422d38=_0x4b0314['getFirstRange']()['getDifference'](_0xb20592);0x0!==_0x422d38['length']?0x1!==_0x422d38['length']?this['_breakSuggestionMarker'](_0x4b0314,_0xb20592['start'],_0xb20592['end']):this['_setSuggestionRange'](_0x4b0314,_0x422d38[0x0]):_0x30c592['removeMarker'](_0x4b0314['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53a1eb){this['_editor']=_0x53a1eb,this['_model']=_0x53a1eb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b1e43,_0x2daef6,_0xa3402,_0x519258,_0x258dd1,_0x8433f2,_0x303ca7){return new T(this['_model'],{'type':_0x4b1e43,'subType':_0x2daef6,'id':_0xa3402,'originalSuggestionId':_0x303ca7,'author':_0x519258,'creator':_0x519258,'attributes':_0x258dd1,'onAttributesChange':_0x8433f2,'onAccept':(..._0x2f698d)=>this['getSuggestionCallback'](_0x4b1e43,_0x2daef6,'accept')(..._0x2f698d),'onDiscard':(..._0x548b17)=>this['getSuggestionCallback'](_0x4b1e43,_0x2daef6,'discard')(..._0x548b17)});}['registerCustomCallback'](_0x9e90ef,_0x1733cd,_0x221b8c,_0x173371){const _0x30f967=_0x9e90ef+':'+_0x1733cd+':'+_0x221b8c;this['_customCallbacks']['set'](_0x30f967,_0x173371);}['getSuggestionCallback'](_0x35673e,_0x514a61,_0xcdc390){const _0x383226=_0x35673e+':'+_0x514a61+':'+_0xcdc390;return this['_customCallbacks']['get'](_0x383226)||this['_defaultCallbacks']['get'](_0x35673e+':'+_0xcdc390);}['_registerDefaultCallbacks'](){const _0x5e8223=()=>!0x1,_0x27bc85=_0x5ace37=>{_0x5ace37['sort']((_0x4f04bf,_0x1de676)=>_0x4f04bf['start']['isBefore'](_0x1de676['start'])?0x1:-0x1),this['_model']['change'](_0x5c934b=>{for(const _0x3dfaf6 of _0x5ace37){let _0x1aa820;_0x1aa820=_0x3dfaf6['end']['isAtEnd']&&_0x3dfaf6['end']['parent']==_0x3dfaf6['start']['nodeAfter']?_0x5c934b['createSelection'](_0x3dfaf6['start']['nodeAfter'],'on'):_0x5c934b['createSelection'](_0x3dfaf6),this['_model']['deleteContent'](_0x1aa820,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x21aac6=(_0x356df1,_0x58d09b)=>{_0x58d09b&&this['_model']['change'](_0x2dbe4b=>{const {commandName:_0x579c4f,commandParams:_0x281bbf=[]}=_0x58d09b,_0x1df62f=_0x356df1['map'](_0x1989a7=>(Pt(_0x1989a7)&&(_0x1989a7=this['_model']['createRange'](_0x1989a7['end'])),_0x1989a7))['filter'](_0x4268ea=>'$graveyard'!==_0x4268ea['root']['rootName']);if(_0x1df62f['length']<0x1)return;const _0x183062=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x135c2d=>_0x25dfb1['fromRange'](_0x135c2d));_0x2dbe4b['setSelection'](_0x1df62f);for(const _0x530b4d of this['_editor']['commands']['commands']())_0x530b4d['refresh']();_0x281bbf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x579c4f,..._0x281bbf);const _0xe4e9f1=_0x183062['filter'](_0x4b4add=>'$graveyard'!=_0x4b4add['root']['rootName']);_0xe4e9f1['length']>0x0&&_0x2dbe4b['setSelection'](_0xe4e9f1);for(const _0x3028bc of _0x183062)_0x3028bc['detach']();});},_0x5c0a9b=(_0x3f6870,_0x5bbe2e)=>0x1==_0x3f6870['length']&&0x1==_0x5bbe2e['length']&&_0x3f6870[0x0]['end']['isEqual'](_0x5bbe2e[0x0]['start']),_0x23177c=(_0x56aea7,_0x4e63c5,_0x414c99,_0x5648c4)=>zt(_0x56aea7,_0x4e63c5,_0x414c99,_0x5648c4)?[_0x56aea7,_0x4e63c5]:zt(_0x4e63c5,_0x56aea7,_0x5648c4,_0x414c99)?[_0x4e63c5,_0x56aea7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e8223),this['_defaultCallbacks']['set']('insertion:discard',_0x27bc85),this['_defaultCallbacks']['set']('insertion:join',_0x5c0a9b),this['_defaultCallbacks']['set']('insertion:chain',_0x23177c),this['_defaultCallbacks']['set']('deletion:accept',_0x27bc85),this['_defaultCallbacks']['set']('deletion:discard',_0x5e8223),this['_defaultCallbacks']['set']('deletion:join',_0x5c0a9b),this['_defaultCallbacks']['set']('deletion:chain',_0x23177c),this['_defaultCallbacks']['set']('formatInline:accept',_0x21aac6),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e8223),this['_defaultCallbacks']['set']('formatInline:join',_0x5c0a9b),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e8223),this['_defaultCallbacks']['set']('formatBlock:accept',_0x21aac6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e8223),this['_defaultCallbacks']['set']('formatBlock:join',_0x5c0a9b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e8223),this['_defaultCallbacks']['set']('attribute:accept',_0x5e8223),this['_defaultCallbacks']['set']('attribute:discard',(_0x1ec996,_0x56f58c)=>{if(!_0x56f58c)return;const _0xbaa25f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1b5d0d=>{if(_0x56f58c['key']==m)for(const _0xb48995 of _0x1ec996){const _0x4d51d6=_0xb48995['start']['nodeAfter'],_0x520eb6=_0x56f58c['oldValue'];_0x1b5d0d['rename'](_0x4d51d6,_0x520eb6);}else{if(_0xbaa25f['_isBlockAttribute'](_0x56f58c['key'])){for(const _0x250607 of _0x1ec996)void 0x0!==_0x56f58c['oldValue']?_0x1b5d0d['setAttribute'](_0x56f58c['key'],_0x56f58c['oldValue'],_0x250607['start']['nodeAfter']):_0x1b5d0d['removeAttribute'](_0x56f58c['key'],_0x250607['start']['nodeAfter']);}else{for(const _0x45803e of _0x1ec996)_0x56f58c['oldValue']?_0x1b5d0d['setAttribute'](_0x56f58c['key'],_0x56f58c['oldValue'],_0x45803e):_0x1b5d0d['removeAttribute'](_0x56f58c['key'],_0x45803e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5c0a9b);}}function Ft(_0x513e17,_0xbe10,_0x121158){for(const _0x4fb724 of _0xbe10['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fb724['root']==_0x4fb724)return!0x1;if(!_0x121158['containsItem'](_0x4fb724))return!0x1;if(_0x513e17['isObject'](_0x4fb724)||_0x513e17['isLimit'](_0x4fb724))return!0x0;}return!0x1;}function Pt(_0x18726f){return _0x18726f['end']['parent']==_0x18726f['start']['nodeAfter']&&_0x18726f['end']['isAtStart'];}function Gt(_0x165c2d,_0x3d926f,_0x56ef1d,_0x28550c){const _0x47cc3d=_0x1f987f=>!_0x1f987f['item']['is']('$textProxy')&&!_0x28550c['isObject'](_0x1f987f['item']),_0x55fcd6=_0x165c2d['start']['getLastMatchingPosition'](_0x47cc3d),_0x54bbbd=_0x165c2d['end']['getLastMatchingPosition'](_0x47cc3d,{'direction':'backward'});return(!_0x165c2d['start']['isEqual'](_0x55fcd6)||!_0x165c2d['end']['isEqual'](_0x54bbbd))&&(_0x55fcd6['isBefore'](_0x54bbbd)?_0x56ef1d['updateMarker'](_0x3d926f,{'range':_0x56ef1d['createRange'](_0x55fcd6,_0x54bbbd)}):_0x56ef1d['removeMarker'](_0x3d926f),!0x0);}function Lt(_0x5caac8){return _0x272e91(_0x5caac8);}function Jt(_0x4df171){const _0x223e98=_0x4df171['start']['nodeAfter'];return _0x223e98&&_0x223e98['is']('element');}function Kt(_0xb1a7ac){return!Pt(_0xb1a7ac)&&!function(_0x2d97da){return _0x2d97da['start']['parent']==_0x2d97da['end']['nodeBefore']&&_0x2d97da['start']['isAtEnd'];}(_0xb1a7ac);}function Ht(_0x25040d,_0x3d2a64){return null==_0x25040d['end']['nodeBefore']&&_0x25040d['end']['parent']==_0x25040d['start']['nodeAfter']?qt(_0x25040d['start']['nodeAfter'],_0x3d2a64):_0x25040d;}function qt(_0x48d6d9,_0x3c8b75){const _0x4e2d31=_0x3c8b75['schema']['isObject'](_0x48d6d9)||_0x3c8b75['schema']['isSelectable'](_0x48d6d9);return _0x3c8b75['createRange'](_0x3c8b75['createPositionAt'](_0x48d6d9,'before'),_0x4e2d31?_0x3c8b75['createPositionAfter'](_0x48d6d9):_0x3c8b75['createPositionAt'](_0x48d6d9,'end'));}function zt(_0x373a0a,_0x57ba86,_0x469d99,_0x48a60e){return!!Wt(_0x373a0a,_0x57ba86)&&_0x469d99['end']['isEqual'](_0x48a60e['start']);}function Wt(_0x29199d,_0x2d879c){if(!_0x29199d['_isDataLoaded']||!_0x2d879c['_isDataLoaded'])return!0x1;const _0x266479=new Set(Object['keys'](_0x29199d['attributes'])),_0x5ea4a6=new Set(Object['keys'](_0x2d879c['attributes']));if(_0x266479['delete']('groupId'),_0x5ea4a6['delete']('groupId'),0x0==_0x266479['size']&&0x0==_0x5ea4a6['size'])return!0x0;if(_0x266479['size']!=_0x5ea4a6['size'])return!0x1;const _0x25610a={..._0x29199d['attributes']},_0x290aba={..._0x2d879c['attributes']};return delete _0x25610a['groupId'],delete _0x290aba['groupId'],JSON['stringify'](_0x25610a)==JSON['stringify'](_0x290aba);}function Qt(_0x18d86d,_0x4c8895){const _0x45ec36=Xt(_0x18d86d['attributes']),_0x55ec64=Xt(_0x4c8895);if(!_0x18d86d['_isDataLoaded'])return!0x1;for(const _0x12c68d of Object['keys'](_0x55ec64))if(!_0x5eb148(_0x45ec36[_0x12c68d],_0x55ec64[_0x12c68d]))return!0x1;return!0x0;}function Xt(_0x3e9ac7){const _0x55f56d=Object['assign']({},_0x3e9ac7);return delete _0x55f56d['skipNestingCheck'],delete _0x55f56d['tablePasteChainId'],_0x55f56d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4e3dd6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17df10,_0x4fdbda,_0x2e9e3e,_0x8534e6){super(),this['model']=_0x4fdbda,this['view']=_0x2e9e3e,this['commentThreadController']=_0x8534e6,this['_editor']=_0x17df10,this['_acceptCommand']=_0x17df10['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17df10['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x120b70,_0x5f4133)=>_0x120b70||_0x5f4133),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1e2c78=>_0x1e2c78&&this['_editor']['model']['canEditAt'](_0x4fdbda['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1f2aba=>_0x1f2aba&&this['_editor']['model']['canEditAt'](_0x4fdbda['getRanges']())),this['_pendingAction']=null,_0x2e9e3e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e9e3e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e9e3e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e9e3e,'change:isDirty',()=>{_0x2e9e3e['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 _0x33ac9f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x33ac9f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xb8166d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2189ca,_0x3c911f,_0x11f212,_0x3782bb){super(_0x2189ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x111aa7(_0x2189ca,o(_0x2189ca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c911f['authoredAt']),this['bind']('authoredAt')['to'](_0x3c911f),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',_0x3c911f,'authoredAt',this,'descriptionParts',(_0x172234,_0x360e9b,_0xc56569)=>{const _0x37c453=_0xc56569['map'](_0x5762b8=>ls(_0x5762b8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x172234-0x1,_0x3c911f['author']['name'],_0x360e9b?_0x3782bb['formatDateTime'](_0x360e9b):'',new DOMParser()['parseFromString'](_0x37c453,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3f2599(),this['focusTracker']=new _0xb3b525(),this['keystrokes']=new _0x94f6eb(),this['focusCycler']=new _0x94e2c4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5dce91=>_0x5dce91['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c911f,this['_localUser']=_0x11f212,this['_config']=_0x3782bb,_0x3782bb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2a525b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a1585}=this['_config'];this['commentsListView']=new _0x2a1585(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',_0x7139c7=>_0x7139c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d4061,_0x19cbd0)=>_0x5d4061||!!_0x19cbd0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x100183}=this['_config'],_0x1822b8=new _0x100183(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x557546=_0x1822b8['commentInputView'];return _0x1822b8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x557546,'value',(_0x42f04e,_0x29366a,_0x16461c)=>!!_0x16461c||_0x42f04e&&!_0x29366a),_0x557546['on']('submit',(_0x20eafa,_0x3ed6c6)=>{this['fire']('addComment',_0x3ed6c6),_0x557546['editor']['setData']('');}),_0x557546['on']('cancel',()=>this['focus']()),_0x557546['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1822b8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x22de1b,_0x399d41,_0x20e94b,_0x155d03){super(_0x22de1b,_0x399d41,_0x20e94b,_0x155d03),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x19b314=>_0x19b314&&_0x19b314[0x0]?_0x19b314[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa01359,_0x4f835c)=>{let _0x45843c='';for(const _0xa43958 of _0xa01359)_0x45843c+='<p>'+ls(_0xa43958['content'],_0xa43958['color'])+'</p>';return _0x4f835c?_0x45843c:_0x1922f1(_0x45843c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x155d03['SuggestionView'](_0x22de1b,_0x399d41,{'formatDateTime':_0x155d03['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 _0x23f3bd=this['bindTemplate'],_0x27e086=[this['suggestionView']];return this['commentsListView']&&_0x27e086['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27e086['push'](this['commentThreadInputView']),_0x27e086['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23f3bd['if']('isActive','ck-suggestion-wrapper--active'),_0x23f3bd['to']('type',_0x577bf9=>'ck-suggestion-'+_0x577bf9),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':_0x23f3bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27e086};}['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 _0xb8166d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2dbe6e,_0x44e774,_0x24c064){super(_0x2dbe6e),this['_model']=_0x44e774,this['_config']=_0x24c064,this['set']('description',''),this['bind']('authoredAt')['to'](_0x44e774),this['acceptButton']=this['_createButton'](o(_0x2dbe6e,'Accept\x20suggestion'),_0x1a017b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2dbe6e,'Discard\x20suggestion'),_0x324055,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x100e70(_0x2dbe6e,_0x44e774['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3f2599([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xb3b525(),this['keystrokes']=new _0x94f6eb(),this['focusCycler']=new _0x94e2c4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ac3ed=>_0x3ac3ed['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x131616=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x131616['innerHTML']=this['description'],this['on']('change:description',(_0x118777,_0x126db8,_0x3fffe9)=>{_0x131616['innerHTML']=_0x3fffe9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f1b4a=this['bindTemplate'],_0x4e66f0=[{'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':_0x3f1b4a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f1b4a['to']('authoredAt',_0x4201c3=>this['_config']['formatDateTime'](_0x4201c3))}]}]},{'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']&&_0x4e66f0['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':_0x4e66f0}]};}['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'](_0x117405,_0x4d2d42,_0x57b84d,_0x491831,_0x45eb7e){const _0x16ebff=new _0xdbe377(this['locale']);return _0x16ebff['set']({'label':_0x117405,'icon':_0x4d2d42,'tooltip':!0x0,'tooltipPosition':_0x45eb7e}),_0x16ebff['extendTemplate']({'attributes':{'class':_0x57b84d}}),_0x16ebff['on']('execute',()=>{this['fire'](_0x491831,this['_model']['id']);}),_0x16ebff;}['_setupKeyboardNavigation'](){const _0x502577=this['element'];this['keystrokes']['listenTo'](_0x502577);for(const _0x330344 of this['focusables'])this['focusTracker']['add'](_0x330344['element']),this['keystrokes']['listenTo'](_0x330344['element']);this['keystrokes']['set']('enter',(_0xcd58bf,_0x2c0ff8)=>{_0x502577===_0xcd58bf['target']&&(this['focusCycler']['focusFirst'](),_0x2c0ff8());}),this['keystrokes']['set']('esc',(_0x27c9d4,_0x2595ab)=>{_0x502577!==_0x27c9d4['target']&&(this['focus'](),_0x2595ab());});}}class u extends _0x96746a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x31b51b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x120a88){super(_0x120a88),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x420431=this['editor']['config'];_0x420431['define']('trackChanges.SuggestionThreadView',fe),_0x420431['define']('trackChanges.SuggestionView',we),_0x420431['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x420431['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x317e57,_0x52b800){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1fd781,_0x55d418]of this['_handleControllerBuffer']){const _0x2457db=this['_suggestionToController']['has'](_0x1fd781);_0x2457db||_0x55d418?_0x2457db&&_0x55d418&&this['_destroyController'](_0x1fd781):this['_initializeController'](_0x1fd781);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x317e57,_0x52b800);}['init'](){const _0x11b24b=this['editor'],_0x4cf03b=_0x11b24b['plugins']['get']('TrackChangesEditing'),_0x5d3ebb=_0x11b24b['plugins']['get']('Annotations'),_0x474a6e=_0x11b24b['plugins']['get']('EditorAnnotations'),_0xb91b94=_0x11b24b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x474a6e['addSourceCollector'](()=>{const _0x3030bb=[];for(const [_0xa590fb,_0x3911e5]of Array['from'](this['_suggestionToController'])){const _0x361eb6=_0xa590fb['getAllAdjacentSuggestions'](),_0x450def=[];for(const _0x19c217 of _0x361eb6){if(!_0x19c217['isInContent'])continue;if(_0x19c217['isMultiRange']){_0x450def['push'](..._0x19c217['getRanges']());continue;}const _0x2834ea=_0x19c217['getFirstRange']();if(_0x450def['length']>0x0){const _0x1c4e46=_0x450def[0x0]['getJoined'](_0x2834ea);if(_0x1c4e46){_0x450def[0x0]=_0x1c4e46;continue;}}_0x450def['push'](_0x2834ea);}_0x3030bb['push']([_0x3911e5['view'],_0x450def]);}return _0x3030bb;}),this['listenTo'](_0x4cf03b,'suggestionLoaded',(_0x3fc8a8,_0x46da64)=>{this['listenTo'](_0x46da64,'change:previous',(_0x3c1df6,_0x3cfe05,_0x13505b,_0x558a40)=>{_0x46da64['isInContent']&&(null==_0x13505b?(this['_updateController'](_0x558a40['head']),this['_handleSuggestionControllerDelayed'](_0x46da64,!0x1)):(this['_updateController'](_0x13505b['head']),null==_0x558a40&&this['_handleSuggestionControllerDelayed'](_0x46da64,!0x0)));}),null!==_0x46da64['previous']?this['_updateController'](_0x46da64['head']):this['_handleSuggestionControllerDelayed'](_0x46da64,!0x1);}),this['listenTo'](_0x4cf03b,'suggestionUnloaded',(_0x5c7d34,_0x2b69ea,_0x1f5dfb)=>{this['stopListening'](_0x2b69ea,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b69ea),this['_suggestionToController']['has'](_0x2b69ea)&&this['_destroyController'](_0x2b69ea),_0x1f5dfb&&this['_updateController'](_0x1f5dfb['head']);}),this['listenTo'](_0x4cf03b,'suggestionChanged',(_0x569724,_0x45d79e)=>{this['_updateController'](_0x45d79e);}),this['listenTo'](_0x5d3ebb,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xb91b94,'addComment',(_0x479cde,{threadId:_0x85e21a,isFromAdapter:_0xd68eda})=>{if(_0xd68eda||!_0x4cf03b['hasSuggestion'](_0x85e21a))return;const _0xafe3ba=_0x4cf03b['getSuggestion'](_0x85e21a);this['_suggestionToController']['get'](_0xafe3ba)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c6470=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d5dee;for(const _0x3bd6d5 in _0x4c6470){const _0x50256f=_0x3bd6d5,_0x3f117c=_0x4c6470[_0x50256f];if('trackChangesLicenseKeyValid'==_0x3f117c||'trackChangesLicenseKeyInvalid'==_0x3f117c||'trackChangesLicenseKeyExpired'==_0x3f117c||'trackChangesLicenseKeyDomainLimit'==_0x3f117c||'trackChangesLicenseKeyNotAllowed'==_0x3f117c||'trackChangesLicenseKeyEvaluationLimit'==_0x3f117c||'trackChangesLicenseKeyTrialLimit'==_0x3f117c||'trackChangesLicenseKeyUsageLimit'==_0x3f117c){delete _0x4c6470[_0x50256f],_0x3d5dee=_0x3f117c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3d5dee&&_0x4c6470['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3d5dee&&_0x4c6470['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3d5dee&&_0x4c6470['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3d5dee&&_0x4c6470['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3140a7){const _0x2fec87=this['_suggestionToController']['get'](_0x3140a7);if(!_0x2fec87)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2fec87['view'])||null;}['getSuggestionForAnnotation'](_0x466f8d){const _0x485859=this['_viewToController']['get'](_0x466f8d['innerView']);return _0x485859?_0x485859['model']:null;}['_refreshActiveMarkers'](){const _0x303317=this['editor']['plugins']['get']('Annotations'),_0x392698=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdbdf83=Array['from'](_0x303317['activeAnnotations'],_0x331156=>_0x331156['innerView'])['filter'](_0x5957e3=>this['_viewToController']['has'](_0x5957e3)),_0x144e38=[];for(const _0x2758c9 of _0xdbdf83){const _0x3507a1=this['_viewToController']['get'](_0x2758c9)['model']['getAllAdjacentSuggestions']();_0x144e38['push'](..._0x3507a1['reduce']((_0x203638,_0x37c4e8)=>[..._0x203638,..._0x37c4e8['getMarkerNames']()],[]));}_0x392698['activeMarkers']=_0x144e38;}['_addUIComponentsToFactory'](){const _0x91cb01=this['editor'],_0x172f1d=_0x91cb01['locale'],_0x388643=o(_0x172f1d,'Track\x20changes'),_0xe747ab=new _0x227344([{'type':'switchbutton','model':new _0x46cb95({'withText':!0x0,'isToggleable':!0x0,'label':_0x388643,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x91cb01['plugins']['has']('TrackChangesPreview')&&_0xe747ab['addMany']([{'type':'separator'},{'type':'button','model':new _0x46cb95({'withText':!0x0,'label':o(_0x172f1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2fd1e5 of _0xe747ab)if(ke(_0x2fd1e5)){const _0x66b8cc=_0x91cb01['commands']['get'](_0x2fd1e5['model']['commandName']);_0x2fd1e5['model']['bind']('isOn','isEnabled')['to'](_0x66b8cc,'value','isEnabled');}_0x91cb01['ui']['componentFactory']['add']('trackChanges',_0x2ad26a=>this['_createToolbarButton'](_0x2ad26a,_0xe747ab,_0x388643)),_0x91cb01['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cb588=>this['_createMenuBarMenu'](_0x5cb588,_0xe747ab,_0x388643));}['_createToolbarButton'](_0x7271fb,_0x23a9e1,_0x22f5e4){const _0x49c4f9=_0x196bac(_0x7271fb,_0xcdae04),_0xc697a1=this['editor']['commands']['get']('trackChanges');_0x49c4f9['buttonView']['set']({'tooltip':_0x22f5e4,'label':_0x22f5e4,'icon':_0x2c6346}),_0x49c4f9['buttonView']['bind']('isOn')['to'](_0xc697a1,'value'),_0x49c4f9['buttonView']['on']('execute',()=>{_0xc697a1['execute'](),this['editor']['editing']['view']['focus']();}),_0x342b32(_0x49c4f9,_0x23a9e1,{'role':'menu'});const _0x361c95=[];for(const _0x2c866c of _0x23a9e1)ke(_0x2c866c)&&_0x361c95['push'](this['editor']['commands']['get'](_0x2c866c['model']['commandName']));const _0x25c380=_0x49c4f9['buttonView'];return _0x25c380['actionView']['unbind']('isEnabled'),_0x25c380['arrowView']['unbind']('isEnabled'),_0x25c380['actionView']['bind']('isEnabled')['to'](_0xc697a1,'isEnabled'),_0x25c380['arrowView']['bind']('isEnabled')['toMany'](_0x361c95,'isEnabled',(..._0x61e962)=>_0x61e962['some'](_0x284f35=>_0x284f35)),_0x49c4f9['on']('execute',_0x40dd1c=>{this['editor']['execute'](_0x40dd1c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x49c4f9;}['_createMenuBarMenu'](_0x1636e0,_0x166c1c,_0xeec129){const _0x45dad8=new _0x53ad8c(_0x1636e0),_0x39aa63=this['editor']['commands']['get']('trackChanges');_0x45dad8['buttonView']['set']({'label':_0xeec129,'icon':_0x2c6346});const _0x431dfa=new _0x52e549(_0x1636e0);for(const _0x3ffbfa of _0x166c1c){if('separator'==_0x3ffbfa['type']){_0x431dfa['items']['add'](new _0x2b7c43(_0x1636e0));continue;}const _0x21dfa4=new _0x53d5f0(_0x1636e0,_0x45dad8),_0x3158ba=new _0x5cd0e7(_0x1636e0),_0xd42f56=_0x3ffbfa['model'];_0x3158ba['bind'](...Object['keys'](_0xd42f56))['to'](_0xd42f56),_0x3158ba['delegate']('execute')['to'](_0x45dad8),_0x3158ba['on']('execute',()=>{this['editor']['execute'](_0xd42f56['commandName']),this['editor']['editing']['view']['focus']();}),_0x21dfa4['children']['add'](_0x3158ba),_0x431dfa['items']['add'](_0x21dfa4);}return _0x45dad8['bind']('isEnabled')['to'](_0x39aa63,'isEnabled'),_0x45dad8['panelView']['children']['add'](_0x431dfa),_0x45dad8;}['_initializeController'](_0xef3cfd){const _0x1efff6=this['editor'],_0x3da10a=_0x1efff6['config'],_0xb0a97c=_0x1efff6['plugins']['get']('Annotations'),_0xd671ac=_0x1efff6['plugins']['get']('CommentsRepository'),_0x46649f=_0x1efff6['plugins']['get']('EditorAnnotations'),_0x3bf078=_0x1efff6['plugins']['get'](_0x31b51b)['me'],_0x2e9eb7=_0x3da10a['get']('trackChanges')['SuggestionThreadView'],_0x567c30=_0x3da10a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x49922f,CommentThreadInputView:_0x238986}=_0x1efff6['plugins']['get']('CommentsUI');let _0x1e9244,_0x18c63d,_0x43d4c2;this['_annotationViews']['has'](_0xef3cfd['id'])?(_0x18c63d=this['_annotationViews']['get'](_0xef3cfd['id']),_0x1e9244=_0x18c63d['mainView']):(_0x1e9244=new _0x2e9eb7(_0x1efff6['locale'],_0xef3cfd,_0x3bf078,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3da10a['get']('comments.editorConfig'),'licenseKey':_0x3da10a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3da10a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3da10a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3da10a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x17750a(_0x3da10a['get']('locale'),_0x1efff6['locale']),'CommentView':_0x3da10a['get']('comments')['CommentView'],'CommentsListView':_0x49922f,'CommentThreadInputView':_0x238986,'SuggestionView':_0x567c30}),_0x1e9244['suggestionView']['acceptButton']['on']('execute',()=>{_0x1efff6['editing']['view']['focus']();}),_0x1e9244['suggestionView']['discardButton']['on']('execute',()=>{_0x1efff6['editing']['view']['focus']();}),_0x18c63d=_0xb0a97c['createAnnotationView'](this['editor']['locale'],_0x1e9244),_0x18c63d['bind']('isDirty')['to'](_0x1e9244,'isDirty'),_0x18c63d['bind']('length')['to'](_0x1e9244),_0x18c63d['bind']('type')['to'](_0x1e9244,'type',_0x24fd29=>'suggestion-'+_0x24fd29),_0x1e9244['on']('escape',()=>{_0x43d4c2['fire']('escape');}),this['_annotationViews']['set'](_0xef3cfd['id'],_0x18c63d));const _0x12db09=_0xd671ac['createCommentThreadController'](_0xef3cfd['commentThread'],_0x1e9244),_0x42a6da=new pe(_0x1efff6,_0xef3cfd,_0x1e9244,_0x12db09),_0x261a78=_0xef3cfd['getAllAdjacentSuggestions']()['filter'](_0x28c7fa=>_0x28c7fa['isInContent']);_0x1e9244['descriptionParts']=_0x1efff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x261a78),this['_suggestionToController']['set'](_0xef3cfd,_0x42a6da),this['_viewToController']['set'](_0x1e9244,_0x42a6da),_0x43d4c2=_0xb0a97c['createAnnotation']({'view':_0x18c63d,'target':()=>{const _0x18d4c5=[],_0x33985b=_0xef3cfd['getAllAdjacentSuggestions']()['filter'](_0x3e0974=>_0x3e0974['isInContent']);for(const _0x3151ec of _0x33985b)_0x18d4c5['push'](..._0x3151ec['getMarkers']());return _0x558f14(_0x1efff6['editing'],_0x18d4c5);},'type':()=>'suggestion-'+_0x42a6da['view']['type']}),_0xd671ac['_bindAnnotationToEditors'](_0x1e9244,_0x43d4c2),_0xb0a97c['add'](_0x43d4c2),_0x46649f['registerAnnotation'](_0x43d4c2);}['_destroyController'](_0x7db88d){const _0x1ee63d=this['editor']['plugins']['get']('CommentsRepository'),_0x4046f2=this['editor']['plugins']['get']('Annotations'),_0x32e135=this['_suggestionToController']['get'](_0x7db88d),_0x144375=_0x32e135['view'],_0x52158c=_0x4046f2['getByInnerView'](_0x144375);_0x1ee63d['_unbindEditors'](_0x144375),_0x52158c&&_0x4046f2['remove'](_0x52158c),this['_suggestionToController']['delete'](_0x7db88d),this['_viewToController']['delete'](_0x144375),_0x32e135['destroy']();}['_updateController'](_0x556749){if(!_0x556749['isInContent']||!this['_suggestionToController']['has'](_0x556749))return;const _0xa3a1db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bd6f6=this['_suggestionToController']['get'](_0x556749),_0xb09e6f=_0x556749['getAllAdjacentSuggestions']();_0x4bd6f6['view']['descriptionParts']=_0xa3a1db['descriptionFactory']['getDescriptions'](_0xb09e6f);}['destroy'](){for(const _0xb319ab of this['_suggestionToController']['keys']())this['_destroyController'](_0xb319ab);for(const _0x7b8a24 of this['_annotationViews']['values']())_0x7b8a24['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x28b6e2){return'model'in _0x28b6e2;}class Fe extends _0x96746a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x445dbe){this['editor']['plugins']['get'](d)['adapter']=_0x445dbe;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2d6bf7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2d6bf7);}['getSuggestions']({skipNotAttached:_0x1096b5=!0x1,toJSON:_0x5df629=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1096b5,'toJSON':_0x5df629});}['getSuggestion'](_0x45c122){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x45c122);}}const p=['Pagination'];class re extends _0x96746a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3a4cd9=this['editor'];if(_0x3a4cd9['config']['define']('trackChangesData.editorCreator',_0x1c8102=>{const _0x22c50d=_0x3a4cd9['model']['document']['getRootNames']()['reduce']((_0x1c8082,_0x4e8512)=>(_0x1c8082[_0x4e8512]='',_0x1c8082),{});return _0x3a4cd9['constructor']['create'](_0x22c50d,_0x1c8102);}),'function'!=typeof _0x3a4cd9['config']['get']('trackChangesData')['editorCreator'])throw new _0x3ef735('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x30060c){return P(this['editor'],!0x0,_0x30060c);}['getDataWithDiscardedSuggestions'](_0x563100){return P(this['editor'],!0x1,_0x563100);}}class Ge extends _0x96746a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x981872){function _0x3f7887(_0x10ccd2){return _0x10ccd2['map'](_0xa4f7ac=>String['fromCharCode'](_0xa4f7ac))['join']('');}super(_0x981872),this['result']='end',_0x981872[_0x3f7887([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f7887([0x76,0x69,0x65,0x77])][_0x3f7887([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f7887([0x61,0x75,0x74,0x6f]),_0x981872[_0x3f7887([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f7887([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f7887([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f7887([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f7887([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 $e(_0x511223){return void 0x0!==_0x511223['getRootsAttributes'];}async function P(_0x599b4a,_0x51b6f9,_0x46b8a4){const _0x2fddb2=_0x5cb69a(_0x599b4a,p);_0x2fddb2['plugins']['push'](d,Ge),_0x2fddb2['rootsAttributes']=$e(_0x599b4a)?_0x599b4a['getRootsAttributes']():void 0x0;const _0x11f225=document['createDocumentFragment'](),_0x56fe57=_0x599b4a['config']['get']('trackChangesData')['editorCreator'],_0x404964=await _0x56fe57(_0x2fddb2,()=>function(_0xd96a4e){const _0x13ddcd=document['createElement']('div');return _0xd96a4e['appendChild'](_0x13ddcd),_0x13ddcd;}(_0x11f225));!function(_0x37a757,_0x3d6a38){const _0x1ca1f4=_0x37a757['model']['document']['getRootNames']()['reduce']((_0x327f8d,_0x7b263e)=>(_0x327f8d[_0x7b263e]=_0x37a757['data']['get']({'rootName':_0x7b263e}),_0x327f8d),{}),_0x94563e=_0x37a757['plugins']['get']('Users')['users']['map'](_0x5361ff=>({'id':_0x5361ff['id'],'name':_0x5361ff['name']})),_0x4bab82=_0x37a757['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17d516=_0x37a757['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x266ddc=_0x3d6a38['plugins']['get']('Users'),_0x33538d=_0x3d6a38['plugins']['get']('TrackChangesEditing'),_0x207e97=_0x3d6a38['plugins']['get']('CommentsRepository');for(const _0x7622d4 of _0x207e97['getCommentThreads']())_0x7622d4['remove']();for(const _0x2ae0db of _0x94563e)_0x266ddc['getUser'](_0x2ae0db['id'])||_0x266ddc['addUser'](_0x2ae0db);_0x266ddc['me']||_0x266ddc['useAnonymousUser']();for(const _0x47d1fe of _0x17d516)_0x207e97['addCommentThread'](_0x47d1fe);for(const _0x203a40 of _0x4bab82)_0x33538d['addSuggestionData'](_0x203a40);_0x3d6a38['data']['set'](_0x1ca1f4);}(_0x599b4a,_0x404964),_0x404964['execute'](_0x51b6f9?'acceptAllSuggestions':'discardAllSuggestions');const _0x33b3e0=$e(_0x404964)?_0x404964['getFullData'](_0x46b8a4):_0x404964['data']['get'](_0x46b8a4);return await _0x404964['destroy'](),_0x33b3e0;}class Me extends _0xb8166d{['options'];constructor(_0x4db26e,_0x3c9379){super(_0x4db26e),this['options']=_0x3c9379,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'](_0x15ad85,_0x3841ce){if(!this['element'])return;const _0x464248=[];for(const [_0x38618e,_0x30d14c]of _0x15ad85){const _0x4ff3d8=document['createElement']('div');_0x4ff3d8['setAttribute']('data-ck-root-name',_0x38618e),_0x4ff3d8['className']=_0x30d14c['classes']+'\x20ck-track-changes-preview__root-container',_0x4ff3d8['innerHTML']=_0x30d14c['content'],_0x464248['push'](_0x4ff3d8);}_0x3841ce(this['element'],_0x464248),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x33a692{constructor(_0x14accf){super(_0x14accf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f2f4a=this['editor'],_0x134707=_0x1f2f4a['locale'],_0x351ee0=_0x1f2f4a['plugins']['get']('Dialog');let _0x102cb0;const _0x28edc2=function(_0x11127d){const _0x39dd37={};if('editables'in _0x11127d['ui']['view']){for(const [_0x4371e0,_0x3929d0]of Object['entries'](_0x11127d['ui']['view']['editables']))_0x39dd37[_0x4371e0]=_0x3929d0['element'];}else _0x39dd37[_0x11127d['model']['document']['getRootNames']()[0x0]]=_0x11127d['ui']['view']['editable']['element'];return _0x39dd37;}(_0x1f2f4a),_0xe0288a=function(_0x8c31a4){let _0x3a54b7=0x0;for(const _0x5cc302 of Object['values'](_0x8c31a4))_0x3a54b7=Math['max'](_0x3a54b7,_0x5cc302['getBoundingClientRect']()['width']);let _0x214669=0x0;for(const _0x30320a of Object['values'](_0x8c31a4))_0x214669+=_0x30320a['getBoundingClientRect']()['height'];const _0x4b8bc8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4f8056=Math['min'](_0x214669,_0x4b8bc8);return{'width':_0x3a54b7,'height':_0x4f8056};}(_0x28edc2);_0x351ee0['show']({'id':'finalContentPreview','title':o(_0x134707,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x134707,{'dialogRects':_0xe0288a}),'onHide':()=>{_0x102cb0['detachFromDom']();},'onShow':()=>{_0x1f2f4a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d1e48=>{const _0x539705=this['_standarizeRootsData'](_0x1d1e48,_0x1f2f4a,_0x28edc2);_0x351ee0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x539705,_0x1f2f4a['config']['get']('trackChanges.preview.renderFunction'));}),_0x102cb0=new _0x5dd9c9(_0x134707,[_0x351ee0['view']]),_0x102cb0['attachToDom'](),_0x102cb0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f2f4a['once']('destroy',()=>{_0x102cb0['detachFromDom']();});const _0x39141e=_0x351ee0['view']['headerView']['class'];_0x351ee0['view']['headerView']['class']=_0x39141e?_0x39141e+'\x20ck-reset_all':'ck-reset_all',_0x351ee0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x351ee0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x108237=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3a4753=_0x108237['previewMode'],_0x3d1956={};if('$labels'===_0x3a4753){for(const _0x4a8759 of _0x108237['getMergeFieldsIds']())_0x3d1956[_0x4a8759]=_0x108237['getLabel'](_0x4a8759)||_0x4a8759;}else{const _0x2b0de0='$defaultValues'===_0x3a4753?_0x108237['getDefaultValues']():_0x108237['getDataSetValues'](_0x3a4753,!0x0);for(const _0x36f883 of Object['entries'](_0x2b0de0)){const [_0x22879e,_0x45bb5c]=_0x36f883;_0x3d1956[_0x22879e]=null!==_0x45bb5c?_0x45bb5c:_0x108237['getLabel'](_0x22879e)||_0x22879e;}}return{'mergeFieldsData':_0x3d1956};}['_standarizeRootsData'](_0xea2c8e,_0x1d3b05,_0x47bcd0){let _0x376ec9;if('string'==typeof _0xea2c8e){const _0x7138e3=_0x1d3b05['model']['document']['getRootNames']()[0x0];_0x376ec9={[_0x7138e3]:_0xea2c8e};}else _0x376ec9=_0xea2c8e;const _0x4390ce=this['_fixMediaEmbeds'](_0x376ec9,_0x1d3b05),_0x2a1f8e=function(_0x1c78cd,_0x26e8e0){for(const [_0x414895,_0x227920]of _0x1c78cd)_0x227920['classes']=_0x26e8e0[_0x414895]['classList']['value']['replace']('ck-focused','');return _0x1c78cd;}(this['_sortRoots'](_0x1d3b05)['reduce']((_0x354adc,_0x3ff0ca)=>(_0x354adc['push']([_0x3ff0ca,{'content':_0x4390ce[_0x3ff0ca],'classes':''}]),_0x354adc),[]),_0x47bcd0);return _0x2a1f8e;}['_fixMediaEmbeds'](_0xa8af61,_0x230ca7){if(!_0x230ca7['plugins']['has']('MediaEmbedEditing'))return _0xa8af61;const _0x37ec1a=_0x230ca7['plugins']['get']('MediaEmbedEditing');for(const [_0x371d93,_0x32757a]of Object['entries'](_0xa8af61)){const _0x4ddd27=document['createElement']('div');_0x4ddd27['innerHTML']=_0x32757a,(_0x4ddd27['querySelectorAll']('figure.media')['forEach'](_0x52e958=>{const _0x41d26f=_0x52e958['querySelector']('oembed');if(_0x41d26f){const _0x4c2f0b=_0x41d26f['getAttribute']('url');if(_0x4c2f0b){const _0x15bc0a=_0x37ec1a['registry']['getMediaViewElement'](new _0xbb7058(_0x230ca7['editing']['view']['document']),_0x4c2f0b,{'elementName':'','renderForEditingView':!0x0}),_0x36caad=document['createElement']('div');_0x36caad['classList']['add']('ck-media__wrapper'),_0x15bc0a['render'](_0x36caad,_0x230ca7['editing']['view']['domConverter']),_0x41d26f['replaceWith'](_0x36caad);}}}),_0xa8af61[_0x371d93]=_0x4ddd27['innerHTML']);}return _0xa8af61;}['_sortRoots'](_0x1fcb43){if(!function(_0x3df1c5){return void 0x0!==_0x3df1c5['getRootsAttributes'];}(_0x1fcb43))return _0x1fcb43['model']['document']['getRootNames']();const _0x4b1bfa=[],_0x3d87cc=new Map();for(const _0x1e1412 of _0x1fcb43['model']['document']['getRootNames']()){const _0x1c8556=_0x1fcb43['editing']['view']['getDomRoot'](_0x1e1412)['getClientRects']()['item'](0x0);_0x4b1bfa['push'](_0x1e1412),_0x3d87cc['set'](_0x1e1412,_0x1c8556);}return _0x4b1bfa['sort']((_0x3d808a,_0x2801ff)=>{const _0x567663=_0x3d87cc['get'](_0x3d808a),_0x552146=_0x3d87cc['get'](_0x2801ff);return _0x567663['y']-_0x552146['y']||_0x567663['x']-_0x552146['x'];}),_0x4b1bfa;}}class He extends _0x96746a{static get['requires'](){return[re,_0x3e3202];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xce711b){super(_0xce711b),_0xce711b['commands']['add']('previewFinalContent',new te(this['editor'])),_0xce711b['config']['define']('trackChanges.preview.renderFunction',(_0x5c3d50,_0x2218a9)=>{for(const _0x37bd4d of _0x2218a9)_0x5c3d50['appendChild'](_0x37bd4d);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x1ceda1,Plugin as _0x559983,PendingActions as _0x5e448f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x346a74,ObservableMixin as _0x4f27e0,uid as _0x20cf05,priorities as _0x3a0027,insertToPriorityArray as _0x838c40,toArray as _0x549793,logWarning as _0xe69762,getEnvKeystrokeText as _0x538503,FocusTracker as _0x231eb3,KeystrokeHandler as _0x1ffabe,Collection as _0x30f5d4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x34b441,IconCancel as _0x40347d,IconTrackChanges as _0x2f5b1a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x542ec3,View as _0x59a488,ViewCollection as _0x56d81b,FocusCycler as _0x3129c0,UIModel as _0x4d3856,createDropdown as _0x1e80c3,SplitButtonView as _0x552a5f,addListToDropdown as _0x56cc45,MenuBarMenuView as _0x2f852e,MenuBarMenuListView as _0xa85213,ListSeparatorView as _0x381151,MenuBarMenuListItemView as _0x32fd6e,MenuBarMenuListItemButtonView as _0x5ce50d,BodyCollection as _0x107e82,Dialog as _0x401523}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x597f1a,hashObject as _0x2fe077,surroundingMarkersDetector as _0x138bd3,FOCUS_ANNOTATION_KEYSTROKE as _0x49096d,AriaDescriptionView as _0x395108,setupThreadKeyboardNavigation as _0x163ace,trimHtml as _0x347682,UserView as _0x3b83ce,LateFocusButtonView as _0x2ec40b,getDateTimeFormatter as _0x4f5d71,getAllMarkersDomElementsSorted as _0x3a0d9a,sanitizeEditorConfig as _0x17c6af}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x10593b,ModelLiveRange as _0x334b1a,ModelLivePosition as _0x333b95,ViewDowncastWriter as _0x3be5d0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x186ae4,toWidget as _0x1a071f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3e2439,set as _0x39eb1c,isEqual as _0x17f578,unset as _0x5d356b,omit as Ut}from'es-toolkit/compat';import{Delete as _0x35d7e9,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bca97}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x9367c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ceda1{['_enabledCommands'];constructor(_0x10a7df,_0x4043a8){super(_0x10a7df),this['_enabledCommands']=_0x4043a8,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 _0x4b395f of this['editor']['commands']['commands']())_0x4b395f['affectsData']&&!this['_enabledCommands']['has'](_0x4b395f)&&_0x4b395f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x57769a of this['editor']['commands']['commands']())_0x57769a['affectsData']&&!this['_enabledCommands']['has'](_0x57769a)&&_0x57769a['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ceda1{['_suggestions'];constructor(_0x5be312,_0x4e6bef){super(_0x5be312),this['_suggestions']=_0x4e6bef,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23bcb8){const _0xa7b4e4=this['_suggestions']['get'](_0x23bcb8);if(!_0xa7b4e4)throw new _0x346a74('track-changes-accept-suggestion-not-found',this);const _0x174ff6=_0xa7b4e4['getRanges']();this['editor']['model']['canEditAt'](_0x174ff6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa7b4e4);}}class M extends _0x1ceda1{['_suggestions'];constructor(_0x5a76d3,_0x2185f7){super(_0x5a76d3),this['_suggestions']=_0x2185f7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x588ad3){const _0x3d8b86=this['_suggestions']['get'](_0x588ad3);if(!_0x3d8b86)throw new _0x346a74('track-changes-discard-suggestion-not-found',this);const _0x2ca09c=_0x3d8b86['getRanges']();this['editor']['model']['canEditAt'](_0x2ca09c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d8b86);}}function ls(_0x47c11f,_0xcad8f9){let _0x4b40dd='';return _0x4b40dd+=_0x47c11f['split']('*')['map']((_0x2a192a,_0x2c08be)=>_0x2c08be%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x2a192a)+'</span>':Yt(_0x2a192a))['join'](''),_0xcad8f9&&(_0x4b40dd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xcad8f9['value']+'\x22\x20title=\x22'+_0xcad8f9['title']+'\x22></span>'),_0x4b40dd;}function Yt(_0xdba502){const _0x55adea=document['createElement']('span');return _0x55adea['innerText']=_0xdba502,_0x55adea['innerHTML'];}function ts(_0x2786e6){return _0x2786e6['sort']((_0x5b8dff,_0x239cd5)=>'attribute'===_0x5b8dff['type']&&'attribute'!==_0x239cd5['type']?-0x1:'attribute'!==_0x5b8dff['type']&&'attribute'===_0x239cd5['type']?0x1:'deletion'==_0x5b8dff['type']&&'deletion'!=_0x239cd5['type']?-0x1:'deletion'!=_0x5b8dff['type']&&'deletion'==_0x239cd5['type']?0x1:0x0);}function to(_0xc13dcb,_0x436584){let _0x566e85,_0x245f7f=0x0;const _0x34e125=[],_0x2f07e8=_0x436584['schema'];for(;_0x245f7f<_0xc13dcb['length'];){const _0x120387=_0xc13dcb[_0x245f7f],_0x1fdd8a=_0xc13dcb[_0x245f7f+0x1];_0x566e85||(_0x566e85=_0x436584['createPositionBefore'](_0x120387)),Zt(_0x436584,_0x120387,_0x1fdd8a)||(_0x34e125['push'](_0x436584['createRange'](_0x566e85,_0x2f07e8['isObject'](_0x120387)?_0x436584['createPositionAfter'](_0x120387):_0x436584['createPositionAt'](_0x120387,'end'))),_0x566e85=null),_0x245f7f++;}return _0x34e125;}function Zt(_0x5864de,_0x1f2b57,_0x423046){if(!_0x423046)return!0x1;const _0x438d91=_0x5864de['createPositionAfter'](_0x1f2b57),_0x3e7bd0=_0x5864de['createPositionBefore'](_0x423046);return _0x438d91['isTouching'](_0x3e7bd0);}function rs(_0x18325c,_0x51096a,_0x3fb6a5){for(;_0x3fb6a5['length'];){const _0x5db7f0=_0x3fb6a5['splice'](0x0,0x64);_0x18325c['change'](()=>{for(const _0x1bebb5 of _0x5db7f0)_0x1bebb5['isInContent']&&_0x51096a['execute'](_0x1bebb5['id']);});}}class $ extends _0x1ceda1{['_command'];['_suggestions'];constructor(_0xc772dd,_0x52a38c,_0x19704c){super(_0xc772dd),this['_command']=_0x52a38c,this['_suggestions']=_0x19704c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3daa7c=Array['from'](this['_suggestions']['values']())['some'](_0x44cbd7=>_0x44cbd7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3daa7c;}['execute'](){const _0x4ce0cd=ts(Array['from'](this['_suggestions']['values']()));for(const _0x58a4ff of _0x4ce0cd){const _0x187c58=_0x58a4ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x187c58))return;}rs(this['editor']['model'],this['_command'],_0x4ce0cd);}}class B extends _0x1ceda1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x123f8a,_0x3e4128,_0x360ef6){super(_0x123f8a),this['_command']=_0x3e4128,this['_suggestions']=_0x360ef6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44f629=this['editor']['model']['document']['selection'],_0x4cc609=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xd92b2b,_0x1e03ef){const _0x389e3d=Array['from'](_0xd92b2b['getRanges']()),_0x62e653=new Set();for(const _0x15fdcf of _0x1e03ef)if(_0x15fdcf['isInContent']){for(const _0xcb22ac of _0x389e3d)for(const _0x35c939 of _0x15fdcf['getRanges']())(_0xcb22ac['isIntersecting'](_0x35c939)||_0xd92b2b['isCollapsed']&&!_0x15fdcf['isMultiRange']&&_0x15fdcf['next']&&_0x35c939['end']['isTouching'](_0xcb22ac['start']))&&_0x62e653['add'](_0x15fdcf);}return _0x62e653;}(_0x44f629,_0x4cc609),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x93448d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b9f2e of _0x93448d){const _0x4b0fb0=_0x4b9f2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b0fb0))return;}rs(this['editor']['model'],this['_command'],_0x93448d);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4f27e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x509a45,_0x2a92b1){super(),this['id']=_0x2a92b1['id'],this['type']=_0x2a92b1['type'],this['subType']=_0x2a92b1['subType']||null,this['author']=_0x2a92b1['author'],this['creator']=_0x2a92b1['creator']||_0x2a92b1['author'],this['isExternal']=Boolean(_0x2a92b1['attributes']&&_0x2a92b1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2a92b1['originalSuggestionId']||null,this['_model']=_0x509a45,this['_onAccept']=_0x2a92b1['onAccept'],this['_onDiscard']=_0x2a92b1['onDiscard'],this['_onAttributesChange']=_0x2a92b1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2a92b1['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 _0x29f988=this;for(;_0x29f988['previous'];)_0x29f988=_0x29f988['previous'];return _0x29f988;}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'](_0x27b1d8){this['_markerNames']['add'](_0x27b1d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x466132=>this['_model']['markers']['get'](_0x466132))['filter'](_0x41ed1f=>_0x41ed1f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5c0544=>{for(const _0x4818a2 of this['getMarkers']())_0x5c0544['removeMarker'](_0x4818a2);}),this['_markerNames']['clear']();}['removeMarker'](_0x568730){this['_model']['change'](_0xb54f74=>{_0xb54f74['removeMarker'](_0x568730);}),this['_markerNames']['delete'](_0x568730);}['addRange'](_0x2a4dd9){const _0x5614c1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5614c1),this['_model']['change'](_0x2b120a=>{_0x2b120a['addMarker'](_0x5614c1,{'range':_0x2a4dd9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28c143){for(const _0x53512b of this['getRanges']())if(_0x53512b['isIntersecting'](_0x28c143))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a9c16=>_0x4a9c16['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4eb1b7,_0x5f8511)=>[..._0x4eb1b7,..._0x5f8511['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x35433d=this['getRanges']();if(0x1!=_0x35433d['length'])return null;const _0x26a322=_0x35433d[0x0],_0x4a4788=_0x26a322['start']['nodeAfter'],_0x4a9b22=_0x26a322['end']['nodeBefore'];return _0x4a4788 instanceof _0x10593b?_0x4a4788!=_0x4a9b22?null:_0x4a4788: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 _0x2c494c=[];let _0x4f2df2=this['head'];for(;_0x4f2df2;)_0x2c494c['push'](_0x4f2df2),_0x4f2df2=_0x4f2df2['next'];return _0x2c494c;}['setAttribute'](_0x21f4c2,_0x141afb){const _0x56de02=_0x3e2439(this['attributes']);_0x39eb1c(_0x56de02,_0x21f4c2,_0x141afb),_0x17f578(_0x56de02,this['attributes'])||(this['attributes']=_0x56de02,this['_onAttributesChange'](_0x56de02));}['removeAttribute'](_0x55fcf5){const _0x1c7834=_0x3e2439(this['attributes']);_0x5d356b(_0x1c7834,_0x55fcf5),_0x17f578(_0x1c7834,this['attributes'])||(this['attributes']=_0x1c7834,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 _0x20cf05()['substr'](0x1,0x5);}}function o(_0x30671f,_0x4ccdb0,_0x421bfa){const _0x703a8=_0x30671f['t'],t=_0x30671f['t'];switch(_0x4ccdb0){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',_0x421bfa);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x421bfa);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x421bfa);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x421bfa);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x421bfa);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',_0x421bfa);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x421bfa);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',_0x421bfa);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x421bfa);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x421bfa);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x421bfa);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x421bfa);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x421bfa);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x421bfa);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x421bfa);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x421bfa);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x421bfa);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x421bfa);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x421bfa);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x421bfa);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x421bfa);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x421bfa);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x421bfa);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x421bfa);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x421bfa);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'},_0x421bfa);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x421bfa);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x421bfa);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x421bfa);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x421bfa);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x421bfa);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x421bfa);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x421bfa);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x421bfa);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x421bfa);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x421bfa);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x421bfa);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'},_0x421bfa);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x421bfa);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 _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x421bfa);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x703a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x421bfa);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);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'},_0x421bfa);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ccdb0;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c4fc5,_0x5e76c8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c4fc5,this['_locale']=_0x5e76c8;}['getDescriptions'](_0x30dcdf){const _0xb22d53=[],_0x35b3f7=new Set(),_0x3397ce=new Set();for(let _0x3ff526=0x0;_0x3ff526<_0x30dcdf['length'];_0x3ff526++){const _0x4edf4d=_0x30dcdf[_0x3ff526];if(!_0x4edf4d['isInContent'])continue;const _0x508210=this['_handleCustomCallbackDescription'](_0x4edf4d);if(_0x508210){if(null!=_0x4edf4d['subType']){if(_0x35b3f7['has'](_0x4edf4d['subType']))continue;_0x35b3f7['add'](_0x4edf4d['subType']);}_0xb22d53['push'](_0x508210);}else{if('attribute'==_0x4edf4d['type']){const _0x390345=_0x4edf4d['data']['key'];if(_0x3397ce['has'](_0x390345))continue;_0x3397ce['add'](_0x4edf4d['data']['key']),_0x390345==m?this['_handleRenameSuggestionDescription'](_0xb22d53,_0x4edf4d):this['_handleAttributeSuggestionDescription'](_0xb22d53,_0x4edf4d);continue;}'insertion'!=_0x4edf4d['type']&&'deletion'!=_0x4edf4d['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb22d53,_0x4edf4d,_0x30dcdf[_0x3ff526+0x1]);}}return this['_resolveDescriptionItems'](_0xb22d53);}['registerDescriptionCallback'](_0x5259d7){this['_customCallbacks']['push'](_0x5259d7);}['registerElementLabel'](_0x5d13ce,_0x564876,_0x561866=_0x3a0027['normal']){'function'==typeof _0x5d13ce?_0x838c40(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d13ce,'label':_0x564876,'priority':_0x561866}):this['_itemLabels']['set'](_0x5d13ce,_0x564876);}['registerAttributeLabel'](_0x1e3846,_0x562639){this['_attributeLabels']['set'](_0x1e3846,_0x562639);}['getItemLabel'](_0x19b46f,_0x56a25f=0x1){let _0x328397;for(const _0x4075af of this['_itemLabelsCallbacks'])if(_0x4075af['matchingCallback'](_0x19b46f)){_0x328397=_0x4075af['label'];break;}return _0x328397||(_0x328397=this['_itemLabels']['get'](_0x19b46f['name'])),_0x328397?_0x328397(_0x56a25f):0x1!==_0x56a25f?_0x56a25f+'\x20'+_0x19b46f['name']+'s':''+_0x19b46f['name'];}['_addDescriptionItems'](_0x24c6d9,_0x156dfd){const _0x133ab3=_0x156dfd['getFirstRange']()['getWalker'](),_0x2dab09='insertion'==_0x156dfd['type']?'add':'remove';for(const _0x39ce94 of _0x133ab3){const _0x2ca1a5=_0x39ce94['item'],_0x20295f=_0x24c6d9[_0x24c6d9['length']-0x1];if(_0x2ca1a5['is']('$textProxy'))_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),_0x20295f&&'text'==_0x20295f['type']?_0x20295f[_0x2dab09]+=_0x2ca1a5['data']:_0x24c6d9['push']({'type':'text','add':'add'==_0x2dab09?_0x2ca1a5['data']:'','remove':'remove'==_0x2dab09?_0x2ca1a5['data']:''});else{if(this['_schema']['isObject'](_0x2ca1a5)){const _0x4fd613=_0x2ca1a5;if(_0x20295f&&_0x20295f['type']['indexOf']('Container')>-0x1&&_0x24c6d9['pop'](),'elementEnd'==_0x39ce94['type'])continue;_0x20295f&&_0x20295f['type']==_0x2dab09+'Object'&&_0x20295f['element']['name']==_0x4fd613['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'Object','element':_0x4fd613,'quantity':0x1}),_0x133ab3['skip'](_0x117124=>!('elementEnd'==_0x117124['type']&&_0x117124['item']==_0x2ca1a5));}else{if(this['_schema']['checkChild'](_0x2ca1a5,'$text')||_0x2ca1a5['is']('element','softBreak')){const _0x559f62=_0x2ca1a5;if('add'==_0x2dab09&&'elementStart'==_0x39ce94['type']||'remove'==_0x2dab09&&'elementEnd'==_0x39ce94['type'])continue;if(_0x20295f&&-0x1==_0x20295f['type']['indexOf']('Container')){'text'==_0x20295f['type']&&(_0x20295f[_0x2dab09]+='\x0a');continue;}let _0x52acf4;if(_0x52acf4='add'==_0x2dab09?_0x559f62['nextSibling']&&!this['_schema']['isObject'](_0x559f62['nextSibling'])?_0x559f62['nextSibling']:null:_0x559f62['previousSibling']&&!this['_schema']['isObject'](_0x559f62['previousSibling'])?_0x559f62['previousSibling']:null,_0x559f62['isEmpty']||_0x52acf4&&_0x52acf4['isEmpty']){const _0x4be9b2=_0x52acf4&&_0x52acf4['isEmpty']?_0x52acf4:_0x559f62;_0x20295f&&_0x20295f['type']==_0x2dab09+'EmptyContainer'&&_0x20295f['element']['name']==_0x4be9b2['name']?_0x20295f['quantity']++:_0x24c6d9['push']({'type':_0x2dab09+'EmptyContainer','element':_0x4be9b2,'quantity':0x1});}else _0x24c6d9['push']({'type':_0x2dab09+'Container','element':_0x559f62});}}}}}['_resolveDescriptionItems'](_0x208d8d){const _0x36abb9=this['_locale'],_0x2e3198=[],_0x1e6799=[],_0x76c728=[];for(const _0x45adc1 of _0x208d8d)switch(_0x45adc1['type']){case'text':if(_0x45adc1['add']=_0x45adc1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45adc1['remove']=_0x45adc1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45adc1['add']&&''!=_0x45adc1['remove']){_0x2e3198['push']({'type':'replace','content':o(_0x36abb9,'REPLACE_TEXT',['\x22'+_0x45adc1['remove']+'\x22','\x22'+_0x45adc1['add']+'\x22'])});continue;}if(null!=_0x45adc1['add']['match'](/^ +$/)){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['add']['length']))});continue;}if(null!=_0x45adc1['remove']['match'](/^ +$/)){_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',o(_0x36abb9,'ELEMENT_SPACE',_0x45adc1['remove']['length']))});continue;}if(''!=_0x45adc1['add']){_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0','\x22'+_0x45adc1['add']+'\x22')});continue;}_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0','\x22'+_0x45adc1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Insert:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Remove:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addContainer':_0x2e3198['push']({'type':'insertion','content':o(_0x36abb9,'*Split:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'removeContainer':_0x2e3198['push']({'type':'deletion','content':o(_0x36abb9,'*Merge:*\x20%0',this['getItemLabel'](_0x45adc1['element'],_0x45adc1['quantity']))});continue;case'addFormat':_0x1e6799['push'](_0x45adc1['key']);continue;case'removeFormat':_0x76c728['push'](_0x45adc1['key']);continue;default:_0x2e3198['push'](_0x45adc1);}if(_0x1e6799['length']){const _0x23d03f=_0x1e6799['map'](_0x15e38b=>this['_attributeLabels']['has'](_0x15e38b)?this['_attributeLabels']['get'](_0x15e38b):_0x15e38b)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x23d03f)});}if(_0x76c728['length']){const _0xdd3780=_0x76c728['map'](_0x143807=>this['_attributeLabels']['has'](_0x143807)?this['_attributeLabels']['get'](_0x143807):_0x143807)['join'](',\x20');_0x2e3198['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xdd3780)});}return _0x2e3198;}['_handleCustomCallbackDescription'](_0x52c856){for(const _0x3adb42 of this['_customCallbacks']){const _0x265ac8=_0x3adb42(_0x52c856);if(_0x265ac8&&'type'in _0x265ac8)return _0x265ac8;}}['_handleAttributeSuggestionDescription'](_0x548ab5,_0x3a8072){const _0x1e50e6=_0x3a8072['data'],_0x4a37ab=void 0x0===_0x1e50e6['newValue']?'removeFormat':'addFormat';_0x548ab5['push']({'type':_0x4a37ab,'key':_0x1e50e6['key']});}['_handleRenameSuggestionDescription'](_0x23d942,_0x5c0f5e){_0x23d942['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c0f5e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x57dcd8,_0x58020c,_0x1fda90){if(this['_addDescriptionItems'](_0x57dcd8,_0x58020c),_0x1fda90&&_0x1fda90['getFirstRange']()&&!_0x58020c['getFirstRange']()['end']['isEqual'](_0x1fda90['getFirstRange']()['start'])){const _0x5c4f2a=_0x57dcd8[_0x57dcd8['length']-0x1],_0x4f1ca5='insertion'==_0x58020c['type']?'add':'remove';_0x5c4f2a&&'text'==_0x5c4f2a['type']&&(_0x5c4f2a[_0x4f1ca5]+='\x0a');}}}class O extends _0x559983{['afterInit'](){const _0x5a5561=this['editor'],_0x21a249=_0x5a5561['plugins']['get']('TrackChangesEditing');_0x5a5561['commands']['get']('showAIAssistant')&&_0x21a249['enableCommand']('showAIAssistant');}}class E extends _0x559983{['afterInit'](){const _0x11eda3=this['editor'],_0x41becf=_0x11eda3['locale'];if(!_0x11eda3['plugins']['has']('AlignmentEditing'))return;const _0x26a6aa=_0x11eda3['plugins']['get']('TrackChangesEditing');_0x26a6aa['enableDefaultAttributesIntegration']('alignment'),_0x26a6aa['registerBlockAttribute']('alignment'),_0x26a6aa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41becf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e58bd=this['editor'],_0x118933=_0x5e58bd['locale'];_0x5e58bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x204e45=>{if('formatBlock'!=_0x204e45['type'])return;const {data:_0x2d15f0}=_0x204e45;if(_0x2d15f0&&'alignment'==_0x2d15f0['commandName']){const _0x254ac1=_0x2d15f0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x118933,'*Format:*\x20%0',function(_0x2b3046){switch(_0x2b3046){case'left':return o(_0x118933,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x118933,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x118933,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x118933,'FORMAT_JUSTIFY_TEXT');}}(_0x254ac1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x559983{['afterInit'](){const _0x1ca13d=this['editor'],_0x3795c1=_0x1ca13d['plugins']['get']('TrackChangesEditing'),_0x198c6b=_0x1ca13d['locale'];for(const _0x42a65a of ti){if(!_0x1ca13d['plugins']['has'](_0x42a65a))continue;const _0x7fa956=_0x42a65a['slice'](0x0,-0x7)['toLowerCase'](),_0x13e2f3='FORMAT_'+_0x7fa956['toUpperCase']();_0x3795c1['enableDefaultAttributesIntegration'](_0x7fa956),_0x3795c1['registerInlineAttribute'](_0x7fa956),_0x3795c1['descriptionFactory']['registerAttributeLabel'](_0x7fa956,o(_0x198c6b,_0x13e2f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c32e7=this['editor'],_0x39ebb5=_0x4c32e7['locale'],_0x134742=_0x4c32e7['plugins']['get']('TrackChangesEditing');function _0x4069de(_0x284a76,_0x4b4645){_0x134742['descriptionFactory']['registerDescriptionCallback'](_0x4a2fa8=>{if('formatInline'!=_0x4a2fa8['type'])return;const {data:_0x2e5dbc}=_0x4a2fa8;return _0x2e5dbc&&_0x2e5dbc['commandName']===_0x284a76?_0x2e5dbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39ebb5,'*Format:*\x20%0',_0x4b4645)}:{'type':'format','content':o(_0x39ebb5,'*Remove\x20format:*\x20%0',_0x4b4645)}:void 0x0;});}_0x4069de('bold',o(_0x39ebb5,'FORMAT_BOLD')),_0x4069de('italic',o(_0x39ebb5,'FORMAT_ITALIC')),_0x4069de('underline',o(_0x39ebb5,'FORMAT_UNDERLINE')),_0x4069de('code',o(_0x39ebb5,'FORMAT_CODE')),_0x4069de('strikethrough',o(_0x39ebb5,'FORMAT_STRIKETHROUGH')),_0x4069de('subscript',o(_0x39ebb5,'FORMAT_SUBSCRIPT')),_0x4069de('superscript',o(_0x39ebb5,'FORMAT_SUPERSCRIPT'));}}class U extends _0x559983{['afterInit'](){const _0x281da8=this['editor'],_0x5237d9=_0x281da8['locale'];if(!_0x281da8['plugins']['has']('BlockQuoteEditing'))return;const _0xc56995=_0x281da8['plugins']['get']('TrackChangesEditing'),_0x14bb6c=this['editor']['commands']['get']('blockQuote');_0xc56995['enableCommand']('blockQuote',(_0x484e5e,_0x4092ad={})=>{const _0x301489=this['editor']['model']['document']['selection'],_0x5b8563=_0x4092ad&&void 0x0!==_0x4092ad['forceValue']?_0x4092ad['forceValue']:!_0x14bb6c['value'];let _0x4ce808=[];if(_0x5b8563){const _0x1530d5=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x1c5299=>oo(_0x1c5299)||function(_0x420812,_0x14f26b){const _0x4ad019=_0x14f26b['checkChild'](_0x420812['parent'],'blockQuote'),_0x21a8e5=_0x14f26b['checkChild'](['$root','blockQuote'],_0x420812);return _0x4ad019&&_0x21a8e5;}(_0x1c5299,this['editor']['model']['schema']));_0x4ce808=to(_0x1530d5,_0x281da8['model']);}else{const _0x55984a=Array['from'](_0x301489['getSelectedBlocks']())['filter'](_0x24c4b2=>oo(_0x24c4b2));_0x4ce808=to(_0x55984a,_0x281da8['model']);}_0x281da8['model']['change'](()=>{for(const _0x1d7bcf of _0x4ce808)_0xc56995['markBlockFormat'](_0x1d7bcf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b8563}]});});}),_0xc56995['descriptionFactory']['registerDescriptionCallback'](_0x2bf013=>{const {data:_0x2f932d}=_0x2bf013;if(_0x2f932d&&'blockQuote'==_0x2f932d['commandName']){const _0x31ea07=o(_0x5237d9,'ELEMENT_BLOCK_QUOTE');return _0x2f932d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5237d9,'*Set\x20format:*\x20%0',_0x31ea07)}:{'type':'format','content':o(_0x5237d9,'*Remove\x20format:*\x20%0',_0x31ea07)};}});}}function oo(_0x3dc317){return'blockQuote'==_0x3dc317['parent']['name'];}class V extends _0x559983{['afterInit'](){const _0x2fc883=this['editor'],_0x48726c=_0x2fc883['locale'],_0x5a82da=_0x2fc883['plugins']['get']('TrackChangesEditing');_0x2fc883['plugins']['has']('BookmarkEditing')&&(_0x5a82da['enableCommand']('insertBookmark'),_0x5a82da['enableDefaultAttributesIntegration']('updateBookmark'),_0x5a82da['registerBlockAttribute']('bookmarkId'),_0x5a82da['descriptionFactory']['registerDescriptionCallback'](_0x53eb59=>{if('insertion'!=_0x53eb59['type']&&'deletion'!=_0x53eb59['type']&&'attribute'!=_0x53eb59['type'])return;const _0x469b7c=_0x53eb59['getContainedElement']();if(null==_0x469b7c)return;if(!_0x469b7c['is']('element','bookmark'))return;const _0x4e65d8=_0x469b7c['getAttribute']('bookmarkId');if('insertion'==_0x53eb59['type'])return{'type':'insertion','content':o(_0x48726c,'*Insert:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53eb59['type'])return{'type':'deletion','content':o(_0x48726c,'*Remove:*\x20%0','\x22'+_0x4e65d8+'\x22\x20'+o(_0x48726c,'ELEMENT_BOOKMARK'))};const {data:_0x5ae6d8}=_0x53eb59;if(!_0x5ae6d8||'bookmarkId'!=_0x5ae6d8['key'])return;return{'type':'format','content':o(_0x48726c,'*Set\x20bookmark:*\x20%0','\x22'+_0x5ae6d8['newValue']+'\x22')};}));}}class F extends _0x559983{['afterInit'](){const _0x42614a=this['editor'];_0x42614a['plugins']['has']('CaseChange')&&(_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42614a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x559983{['afterInit'](){const _0x1a0956=this['editor'];_0x1a0956['commands']['get']('ckbox')&&_0x1a0956['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x559983{['afterInit'](){const _0x3dc6be=this['editor'];if(!_0x3dc6be['plugins']['has']('CodeBlock'))return;const _0x50a8e9=_0x3dc6be['plugins']['get']('TrackChangesEditing'),_0x1cb70d=_0x3dc6be['locale'],_0x2fb454=_0x3dc6be['config']['get']('codeBlock')['languages'],_0x1f7947=_0x3dc6be['commands']['get']('codeBlock');_0x50a8e9['enableCommand']('indentCodeBlock'),_0x50a8e9['enableCommand']('outdentCodeBlock'),_0x50a8e9['enableCommand']('codeBlock',(_0x593334,_0x55da66={})=>{const _0x4f5775=_0x3dc6be['model'],_0x32c53e=_0x3dc6be['model']['document']['selection'],_0x144bef=_0x55da66&&void 0x0!==_0x55da66['forceValue']?_0x55da66['forceValue']:!_0x1f7947['value'];let _0x1121f3;_0x55da66['language']||(_0x55da66['language']=_0x2fb454[0x0]['language']),_0x1121f3=_0x144bef?Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x13bbb1=>co(_0x13bbb1)||function(_0x3f3eed,_0x5af99e){if(_0x3f3eed['is']('rootElement')||_0x5af99e['isLimit'](_0x3f3eed))return!0x1;return _0x5af99e['checkChild'](_0x3f3eed['parent'],'codeBlock');}(_0x13bbb1,_0x4f5775['schema'])):Array['from'](_0x32c53e['getSelectedBlocks']())['filter'](_0x4b8f4f=>co(_0x4b8f4f));const _0x20ae54=to(_0x1121f3,_0x4f5775);_0x4f5775['change'](()=>{for(const _0x288e45 of _0x20ae54)_0x50a8e9['markBlockFormat'](_0x288e45,{'commandName':'codeBlock','commandParams':[{..._0x55da66,'forceValue':_0x144bef}],'formatGroupId':'blockName'});});}),(_0x50a8e9['descriptionFactory']['registerElementLabel']('codeBlock',_0x30da98=>o(_0x1cb70d,'ELEMENT_CODE_BLOCK',_0x30da98)),_0x50a8e9['descriptionFactory']['registerDescriptionCallback'](_0x29974e=>{if('formatBlock'!=_0x29974e['type'])return;const _0x324464=_0x1cb70d['t'],{data:_0x43875e}=_0x29974e;if(!_0x43875e||'codeBlock'!=_0x43875e['commandName'])return;const _0x1a28fb=_0x43875e['commandParams'][0x0]['language'],_0x55f382=_0x324464(_0x2fb454['find'](_0x4f1b8e=>_0x4f1b8e['language']===_0x1a28fb)['label'])['toLowerCase']();return _0x43875e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cb70d,'*Set\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x55f382+')')}:{'type':'format','content':o(_0x1cb70d,'*Remove\x20format:*\x20%0',o(_0x1cb70d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3ff004){return'codeBlock'==_0x3ff004['name'];}class J extends _0x559983{['afterInit'](){const _0x4bf834=this['editor'];if(!_0x4bf834['plugins']['has']('CommentsEditing'))return;_0x4bf834['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe89933,_0x337507,_0x5b437c){const _0x213d32=[];for(const _0x233f1d of _0x337507['getItems']())_0x233f1d['hasAttribute'](_0xe89933)&&_0x213d32['push'](_0x5b437c['createRangeOn'](_0x233f1d));return _0x213d32;}function De(_0x197120,_0x515e41,{showActiveMarker:_0x46c28e=!0x0}={}){const _0x448413=_0x197120['plugins']['get']('TrackChangesEditing');return(_0x1c9068,_0x48f092,_0x7eedac)=>{if(!_0x7eedac['consumable']['test'](_0x48f092['markerRange'],_0x1c9068['name']))return;const _0x4de17=_0x48f092['markerRange']['getWalker'](),_0x412a6a=_0x48f092['markerRange']['start'],_0x22b920=_0x197120['model']['schema'];let _0x303989=null,_0x3cc075=null,_0x4ace48=!0x1,_0x5b360e=!0x1;for(const _0x48234b of _0x4de17){const _0x26d627=_0x48234b['item'];_0x4ace48=_0x4ace48||_0x22b920['isContent'](_0x26d627);const _0x5f3cc2=_0x7eedac['mapper']['toViewElement'](_0x26d627);if(_0x5f3cc2&&_0x5f3cc2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x48234b['type']&&(_0x22b920['isBlock'](_0x26d627)&&!_0x22b920['isLimit'](_0x26d627)&&(_0x26d627['nextSibling']||_0x412a6a['isAtEnd']?_0x303989&&_0x303989['parent']==_0x26d627||(_0x303989=_0x26d627,_0x37510d(_0x48234b['previousPosition']),_0x5b360e=!0x0):_0x3cc075=_0x3cc075||_0x48234b['previousPosition']));}function _0x37510d(_0x50dc68){const {id:_0x50e85c,authorId:_0x1252ce}=_0x448413['_splitMarkerName'](_0x48f092['markerName']),_0x4319b8=_0x7eedac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x515e41,'data-suggestion':_0x50e85c,'data-author-id':_0x1252ce}),_0x5042ef=_0x7eedac['mapper']['toViewPosition'](_0x50dc68);_0x46c28e&&_0x448413['activeMarkers']['includes'](_0x48f092['markerName'])&&_0x7eedac['writer']['addClass']('ck-suggestion-marker--active',_0x4319b8),_0x7eedac['writer']['insert'](_0x5042ef,_0x4319b8),_0x7eedac['mapper']['bindElementToMarker'](_0x4319b8,_0x48f092['markerName']);}_0x4ace48||_0x5b360e||!_0x3cc075||_0x37510d(_0x3cc075);};}class K extends _0x559983{static get['requires'](){return[_0x35d7e9];}['init'](){const _0x349690=this['editor'],_0x3c679c=_0x349690['plugins']['get']('TrackChangesEditing');_0x3c679c['enableCommand']('delete');const _0x5d9a09=_0x349690['commands']['get']('deleteForward');_0x3c679c['enableCommand']('deleteForward',(_0x4890c0,_0x12adfd={})=>{const _0x546aae=_0x349690['model']['createSelection'](_0x349690['model']['document']['selection']);_0x546aae['isCollapsed']&&_0x349690['model']['modifySelection'](_0x546aae,{'direction':'forward','unit':_0x12adfd['unit']});const _0x350756=_0x546aae['getFirstRange'](),_0x37fea8=_0x334b1a['fromRange'](_0x350756);let _0x2c1767;_0x4890c0(_0x12adfd),_0x2c1767='$graveyard'==_0x37fea8['root']['rootName']?_0x349690['model']['createRange'](_0x350756['start']):_0x349690['model']['createRange'](_0x37fea8['start'],_0x37fea8['end']),_0x37fea8['detach'](),_0x349690['model']['enqueueChange'](_0x5d9a09['buffer']['batch'],_0x400b43=>{_0x5d9a09['buffer']['lock'](),_0x400b43['setSelection'](_0x400b43['createRange'](_0x2c1767['end'])),_0x5d9a09['buffer']['unlock']();});}),_0x349690['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x349690,'merge'),{'priority':'high'}),_0x349690['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x435610,_0x2fbe71,_0x28b743)=>{_0x28b743['options']['showSuggestionHighlights']&&De(_0x349690,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x435610,_0x2fbe71,_0x28b743);},{'priority':'high'}),_0x349690['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3de3f1,_0x4c1d45,_0x4f96f8)=>{const _0x1b9fd4=_0x4f96f8['mapper']['markerNameToElements'](_0x4c1d45['markerName']);if(_0x1b9fd4){for(const _0x60c0bf of _0x1b9fd4)_0x60c0bf['is']('uiElement')&&(_0x4f96f8['mapper']['unbindElementFromMarkerName'](_0x60c0bf,_0x4c1d45['markerName']),_0x4f96f8['writer']['remove'](_0x60c0bf));}},{'priority':'high'});}}class H extends _0x559983{['afterInit'](){const _0x21b8ef=this['editor'];if(!_0x21b8ef['plugins']['has']('ListEditing'))return;const _0x4b7368=_0x21b8ef['locale'],_0x1cf8b2=_0x21b8ef['plugins']['get']('TrackChangesEditing'),_0x77d31d=_0x21b8ef['plugins']['has']('TodoListEditing'),_0xb54a86=!!_0x21b8ef['config']['get']('list.multiBlock');function _0xf28a34(_0xf5c83e){return{'type':'format','content':''+o(_0x4b7368,'*Set\x20format:*\x20%0',_0xf5c83e)};}function _0x4c8cc3(_0x37303c){return{'type':'format','content':''+o(_0x4b7368,'*Remove\x20format:*\x20%0',_0x37303c)};}_0x1cf8b2['enableDefaultAttributesIntegration']('numberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('bulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cf8b2['enableDefaultAttributesIntegration']('indentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('outdentList'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cf8b2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cf8b2['registerBlockAttribute']('listItemId'),_0x1cf8b2['registerBlockAttribute']('listType'),_0x1cf8b2['registerBlockAttribute']('listIndent'),_0xb54a86&&(_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cf8b2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x77d31d&&(_0x1cf8b2['enableDefaultAttributesIntegration']('todoList'),_0x1cf8b2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cf8b2['registerBlockAttribute']('todoListChecked'),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x170688=>{const {data:_0x2c04ce}=_0x170688;if(_0x2c04ce&&'todoListChecked'==_0x2c04ce['key'])return{'type':'format','content':_0x2c04ce['newValue']?o(_0x4b7368,'*Check\x20item*'):o(_0x4b7368,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x532e64=>{if(_0x532e64['batch']['isUndo'])return!0x1;let _0x1ecc87=!0x1;const _0x51ab05=_0x1cf8b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12e8c6=>'todoListChecked'===_0x1cf8b2['_getAttributeKey'](_0x12e8c6));for(const _0x5ea20b of _0x51ab05){'todo'!=_0x5ea20b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cf8b2['_findSuggestions'](_0x5ea20b['getFirstRange'](),'attribute')['find'](_0x160c32=>'listType'===_0x1cf8b2['_getAttributeKey'](_0x160c32['suggestion']))||(_0x532e64['removeMarker'](_0x5ea20b['getFirstMarker']()),_0x1ecc87=!0x0));}return _0x1ecc87;})),_0x1cf8b2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b7368,'FORMAT_INDENT'));const _0x4e6149={'type':'format','content':''};_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x3d141b=>{const {data:_0x13f047}=_0x3d141b;if(!_0x13f047||'listType'!=_0x13f047['key'])return;let _0x334aad=_0x3d141b['head'];for(;_0x334aad;){if(_0x334aad['data']&&(('listStyle'==_0x334aad['data']['key']||'listMarkerStyle'==_0x334aad['data']['key'])&&(_0x334aad['data']['newValue']&&'default'!=_0x334aad['data']['newValue']||'default'!=_0x334aad['data']['oldValue']&&!_0x13f047['newValue'])||!_0xb54a86&&_0x334aad['data']['key']==m))return _0x4e6149;_0x334aad=_0x334aad['next'];}if(null==_0x13f047['newValue'])switch(_0x13f047['oldValue']){case'bulleted':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c8cc3(o(_0x4b7368,'ELEMENT_TODO_LIST'));}switch(_0x13f047['newValue']){case'bulleted':return _0xf28a34(o(_0x4b7368,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf28a34(o(_0x4b7368,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf28a34(o(_0x4b7368,'ELEMENT_TODO_LIST'));}}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x1878fa=>{const {data:_0xab3a59}=_0x1878fa;if(_0xab3a59&&'listIndent'==_0xab3a59['key'])return null==_0xab3a59['newValue']||null==_0xab3a59['oldValue']&&0x0==_0xab3a59['newValue']?_0x4e6149:void 0x0;}),_0x1cf8b2['descriptionFactory']['registerDescriptionCallback'](_0x455524=>{if('attribute'!=_0x455524['type'])return;const {data:_0x3053b9}=_0x455524;if(!_0x3053b9||'listItemId'!=_0x3053b9['key'])return;const _0x35e222=Te(_0x455524);return'newValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Merge:*\x20list\x20item')}:'oldValue'==_0x35e222?{'type':'format','content':o(_0x4b7368,'*Split:*\x20list\x20item')}:_0x4e6149;}),_0x21b8ef['model']['document']['registerPostFixer'](_0xb758ce=>this['listItemIdFixer'](_0xb758ce)),_0x21b8ef['model']['document']['registerPostFixer'](_0x3af6e7=>this['noTrackChangesFixer'](_0x3af6e7)),_0x21b8ef['model']['document']['on']('change:data',(_0x4d03f8,_0xe0c753)=>{if(_0xe0c753['isUndo']||!_0xe0c753['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23fe35){if(_0x23fe35['batch']['isUndo']||!_0x23fe35['batch']['isLocal'])return!0x1;let _0x55b32f=!0x1;const _0x187439=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x197f52=>_0x197f52['data']&&'listItemId'==_0x197f52['data']['key'])['filter'](_0x347092=>_0x347092['data']['newValue']&&_0x347092['data']['oldValue']);for(const _0x87f01c of _0x187439)Te(_0x87f01c)||(_0x23fe35['removeMarker'](_0x87f01c['getFirstMarker']()),_0x55b32f=!0x0);return _0x55b32f;}['noTrackChangesFixer'](_0x46be35){if(_0x46be35['batch']['isUndo']||!_0x46be35['batch']['isLocal'])return!0x1;const _0x54ef6d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x54ef6d['trackChangesCommand']['value'])return!0x1;let _0x127f3b=!0x1;const _0x1e0441=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26461b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x65ae42=>'attribute'==_0x65ae42['type'])['filter'](_0xcb5560=>_0x1e0441['includes'](_0xcb5560['attributeKey']));if(0x0==_0x26461b['length'])return _0x127f3b;for(const _0x2b5d9b of _0x26461b){const _0x51b73c=_0x54ef6d['_findSuggestions'](_0x2b5d9b['range'],'attribute')['filter'](_0x8da664=>!_0x8da664['meta']['isNextTo'])['map'](_0x54e400=>_0x54e400['suggestion'])['filter'](_0x3ac0da=>{const _0x2240e9=_0x54ef6d['_getAttributeKey'](_0x3ac0da);return _0x1e0441['includes'](_0x2240e9);});if(_0x51b73c['length']){for(const _0x12f219 of _0x51b73c)_0x46be35['removeMarker'](_0x12f219['getFirstMarker']());_0x127f3b=!0x0;}}return _0x127f3b;}['assureChains'](){const _0x2991d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec907c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26022e;const _0x22f5a0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26ad1e=>{if(_0x26ad1e['data']['oldRange']||!_0x26ad1e['data']['newRange'])return null;if(!_0x26ad1e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e834e}=_0x2991d7['_splitMarkerName'](_0x26ad1e['name']);if(!_0x2991d7['hasSuggestion'](_0x4e834e))return null;const _0x20da3d=_0x2991d7['getSuggestion'](_0x4e834e);return _0xec907c['includes'](_0x20da3d['data']['key']);})['map'](_0x5e1f76=>{const {id:_0x9f7e26}=_0x2991d7['_splitMarkerName'](_0x5e1f76['name']),_0x5ac37d=_0x2991d7['getSuggestion'](_0x9f7e26);return _0x26022e=_0x5ac37d['attributes']['groupId'],_0x5ac37d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22f5a0['size'])return;const _0x3208b7=_0x2991d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x573a8f=>'attribute'==_0x573a8f['type']&&_0x573a8f['data']&&_0xec907c['includes'](_0x573a8f['data']['key'])&&_0x573a8f['attributes']['groupId']!=_0x26022e)['map'](_0x578315=>({'listItem':_0x578315['getFirstRange']()['start']['nodeAfter'],'groupId':_0x578315['attributes']['groupId']})),_0x3b3ba2=new Set();for(const {groupId:_0x447aa1,listItem:_0x37a1f4}of _0x3208b7)_0x22f5a0['has'](_0x37a1f4)&&_0x3b3ba2['add'](_0x447aa1);for(const _0x4c7e11 of _0x2991d7['getSuggestions']())_0x3b3ba2['has'](_0x4c7e11['attributes']['groupId'])&&_0x4c7e11['setAttribute']('groupId',_0x26022e);}['_supportLegacySuggestions'](){const _0x4bd490=this['editor'],_0x149901=_0x4bd490['locale'],_0x4cf1c1=_0x4bd490['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4cf1c1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49d7d9,_0x1dadce){const _0x551988=[];for(let _0x36c227 of _0x49d7d9)_0x36c227['start']['nodeAfter']===_0x36c227['end']['parent']&&(_0x36c227=_0x4bd490['model']['createRange'](_0x4bd490['model']['createPositionAt'](_0x36c227['start']['nodeAfter'],0x0))),_0x551988['push'](_0x36c227);_0x4bd490['model']['change'](_0x69413=>{const _0x564a0c=_0x4bd490['model']['document']['selection'],_0x1a7c8c=Array['from'](_0x564a0c['getRanges']())['map'](_0x846b4c=>_0x334b1a['fromRange'](_0x846b4c));_0x69413['setSelection'](_0x551988),_0x4bd490['commands']['get'](_0x1dadce['commandName'])['refresh'](),_0x1dadce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4bd490['execute'](_0x1dadce['commandName'],..._0x1dadce['commandParams']),_0x69413['setSelection'](_0x1a7c8c);for(const _0x570870 of _0x1a7c8c)_0x570870['detach']();});}),_0x4cf1c1['descriptionFactory']['registerElementLabel'](function(_0x57e446){const _0x8ea621=!_0x4bd490['model']['schema']['isObject'](_0x57e446),_0xa1889c=_0x57e446['previousSibling'],_0x4791bb=_0x57e446['nextSibling'],_0x5b4997=_0x57e446['getAttribute']('listItemId'),_0x27408e=!_0xa1889c||_0xa1889c['getAttribute']('listItemId')!==_0x5b4997,_0x30217f=!_0x4791bb||_0x4791bb['getAttribute']('listItemId')!==_0x5b4997;return _0x8ea621&&Boolean(_0x5b4997)&&_0x27408e&&_0x30217f;},_0x2b5ec3=>o(_0x149901,'ELEMENT_LIST_ITEM',_0x2b5ec3));}['_registerLegacyDescription'](){const _0x275d8b=this['editor'],_0x1323bc=_0x275d8b['locale'];function _0xf7a411(_0xfe1c87){const _0x596b05=_0x275d8b['commands']['get']('bulletedList')['value'],_0x47bb47=_0x275d8b['commands']['get']('numberedList')['value'];return'numberedList'===_0xfe1c87?_0x596b05:_0x47bb47;}_0x275d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x10545c){if('formatBlock'!=_0x10545c['type'])return;const {data:_0x4128a9}=_0x10545c;if(!_0x4128a9)return;let _0x4cd94f,_0x2cb3f2,_0x50896f,_0x3c74c7;switch(_0x4128a9['commandName']){case'bulletedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50896f=_0x4128a9['commandParams'][0x0]['forceValue'],_0x3c74c7=_0xf7a411(_0x4128a9['commandName']),_0x4cd94f=_0x50896f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c74c7&&_0x275d8b['config']['get']('list.multiBlock')||(_0x4cd94f='*Change\x20to:*\x20%0'),_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4cd94f='*Indent:*\x20%0',_0x2cb3f2={'type':'format','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4cd94f=function(_0x4364f5){const _0x49b6a5=_0x4364f5['getFirstRange']();let _0x381100=_0x49b6a5['start']['nodeAfter'];for(;_0x381100&&_0x49b6a5['containsItem'](_0x381100);){if(_0x381100['getAttribute']('listIndent')>0x0)return!0x1;_0x381100=_0x381100['nextSibling'];}return!0x0;}(_0x10545c)?o(_0x1323bc,'*Format:*\x20remove\x20from\x20%0',o(_0x1323bc,function(_0x131007){return'ELEMENT_'+_0x131007['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x10545c))):o(_0x1323bc,'*Outdent:*\x20%0',o(_0x1323bc,'ELEMENT_LIST_ITEM')),_0x2cb3f2={'type':'format','content':_0x4cd94f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4128a9['multipleBlocks']&&(_0x4cd94f='*Merge:*\x20%0',_0x2cb3f2={'type':'deletion','content':o(_0x1323bc,_0x4cd94f,o(_0x1323bc,'ELEMENT_LIST_ITEM'))});}return _0x2cb3f2;});}}function Te(_0x39add4){let _0xd05927=_0x39add4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd05927;){const _0x1f1c9c=_0xd05927['getAttribute']('listItemId');if(!_0x1f1c9c)return!0x1;if(_0x1f1c9c==_0x39add4['data']['newValue'])return'newValue';if(_0x1f1c9c==_0x39add4['data']['oldValue'])return'oldValue';_0xd05927=_0xd05927['previousSibling'];}return!0x1;}class q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133606=this['editor']['config']['get']('list.properties'),_0x175e71=this['editor']['plugins']['get']('TrackChangesEditing');_0x133606['styles']&&(_0x175e71['enableDefaultAttributesIntegration']('listStyle'),_0x175e71['registerBlockAttribute']('listStyle')),_0x133606['reversed']&&(_0x175e71['enableDefaultAttributesIntegration']('listReversed'),_0x175e71['registerBlockAttribute']('listReversed')),_0x133606['startIndex']&&(_0x175e71['enableDefaultAttributesIntegration']('listStart'),_0x175e71['registerBlockAttribute']('listStart'));const _0xf1cb7e={'type':'format','content':''};_0x175e71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b862b=this['editor']['locale'];_0x175e71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b862b,'FORMAT_LIST_REVERSED')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x4d7038=>{const {data:_0x148cc0}=_0x4d7038;if(_0x148cc0&&'listReversed'==_0x148cc0['key'])return null==_0x148cc0['newValue']||0x0==_0x148cc0['newValue']&&null==_0x148cc0['oldValue']?_0xf1cb7e:void 0x0;}),_0x175e71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b862b,'FORMAT_LIST_START')),_0x175e71['descriptionFactory']['registerDescriptionCallback'](_0x59a6aa=>{const {data:_0xbe76b9}=_0x59a6aa;if(_0xbe76b9&&'listStart'==_0xbe76b9['key'])return null==_0xbe76b9['newValue']||0x1==_0xbe76b9['newValue']&&null==_0xbe76b9['oldValue']?_0xf1cb7e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f517c=>{if(_0x1f517c['batch']['isUndo'])return!0x1;let _0x5934fe=!0x1;const _0x3ea7ce=_0x175e71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3060bb=>{const _0xdfcb0c=_0x175e71['_getAttributeKey'](_0x3060bb);return'listStart'==_0xdfcb0c||'listReversed'==_0xdfcb0c;});for(const _0x409050 of _0x3ea7ce){const _0x42b91a=_0x409050['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42b91a||'customNumbered'==_0x42b91a)continue;_0x175e71['_findSuggestions'](_0x409050['getFirstRange'](),'attribute')['find'](_0x4b1913=>'listType'==_0x175e71['_getAttributeKey'](_0x4b1913['suggestion']))||(_0x1f517c['removeMarker'](_0x409050['getFirstMarker']()),_0x5934fe=!0x0);}return _0x5934fe;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c64c4){const _0x118336=this['editor']['locale'],{data:_0x6e5893}=_0x2c64c4,_0xd8b62c={'type':'format','content':''};if(!_0x6e5893||'listStyle'!=_0x6e5893['key'])return;if(!_0x6e5893['oldValue'])return'default'==_0x6e5893['newValue']?_0xd8b62c:{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};if(!_0x6e5893['newValue']){if('default'==_0x6e5893['oldValue'])return _0xd8b62c;let _0x481fdf=_0x2c64c4['head'];for(;_0x481fdf;){if(_0x481fdf['data']&&'listType'==_0x481fdf['data']['key']&&_0x481fdf['data']['newValue'])return _0xd8b62c;_0x481fdf=_0x481fdf['next'];}return{'type':'format','content':''+o(_0x118336,'*Remove\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['oldValue'])))};}if('default'!=_0x6e5893['newValue'])return{'type':'format','content':''+o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,this['_getTranslationKeyForListStyle'](_0x6e5893['newValue'])))};let _0x59925b=_0x2c64c4['head'];for(;_0x59925b;){if(_0x59925b['data']&&'listType'==_0x59925b['data']['key']&&_0x59925b['data']['newValue']&&_0x59925b['data']['oldValue'])return _0xd8b62c;_0x59925b=_0x59925b['next'];}return{'type':'format','content':o(_0x118336,'*Set\x20format:*\x20%0',o(_0x118336,'ELEMENT_'+_0x2c64c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x12c189=this['editor'],_0x1a8b40=_0x12c189['locale'];_0x12c189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5efe88=>{if('formatBlock'!=_0x5efe88['type'])return;const {data:_0xf69680}=_0x5efe88;if(!_0xf69680)return;let _0xb38ab3,_0x398083;switch(_0xf69680['commandName']){case'listStyle':_0xb38ab3='*Change\x20to:*\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,o(_0x1a8b40,this['_getTranslationKeyForListStyle'](_0xf69680['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb38ab3=_0xf69680['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3)};break;case'listStart':_0xb38ab3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x398083={'type':'format','content':o(_0x1a8b40,_0xb38ab3,_0xf69680['commandParams'][0x0]['startIndex'])};}return _0x398083;});}['_getTranslationKeyForListStyle'](_0x1850ca){return'ELEMENT_'+function(_0x468565){if(Se['includes'](_0x468565))return'bulleted';if(_e['includes'](_0x468565))return'numbered';return null;}(_0x1850ca)['toUpperCase']()+'_LIST_'+_0x1850ca['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x559983{['afterInit'](){const _0x5ad632=this['editor'];_0x5ad632['commands']['get']('emoji')&&_0x5ad632['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x559983{static get['requires'](){return[_0x5bca97];}['init'](){const _0x586bb3=this['editor'],_0x457a86=_0x586bb3['plugins']['get']('TrackChangesEditing'),_0x46b67b=_0x586bb3['commands']['get']('enter');_0x457a86['enableCommand']('enter',()=>{_0x586bb3['model']['change'](_0x399a75=>{const _0x55ec53=_0x586bb3['model']['document']['selection'],_0x52ce4f=_0x55ec53['getFirstPosition'](),_0x11be70=_0x334b1a['fromRange'](_0x55ec53['getFirstRange']());if(_0x46b67b['enterBlock'](_0x399a75)){const _0x5189c9=_0x586bb3['model']['createPositionAt'](_0x52ce4f['parent']['nextSibling'],0x0),_0x5a27e7=_0x399a75['createRange'](_0x52ce4f,_0x5189c9);_0x457a86['markInsertion'](_0x5a27e7);}else _0x399a75['setSelection'](_0x399a75['createRange'](_0x11be70['end']));_0x11be70['detach'](),_0x46b67b['fire']('afterExecute',{'writer':_0x399a75});});}),_0x586bb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x586bb3,'split'),{'priority':'high'}),_0x586bb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5cae34,_0x516796,_0x1c9944)=>{const _0x562f51=_0x1c9944['mapper']['markerNameToElements'](_0x516796['markerName']);if(_0x562f51){for(const _0x195e4e of _0x562f51)_0x195e4e['hasClass']('ck-suggestion-marker-split')&&(_0x1c9944['mapper']['unbindElementFromMarkerName'](_0x195e4e,_0x516796['markerName']),_0x1c9944['writer']['remove'](_0x195e4e));}},{'priority':'high'}),_0x586bb3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf6637f,_0x40b022,_0x9f2980)=>{_0x9f2980['options']['showSuggestionHighlights']&&De(_0x586bb3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf6637f,_0x40b022,_0x9f2980);},{'priority':'high'});}}class Q extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44255b=this['editor']['plugins']['get']('TrackChangesEditing');_0x44255b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44255b['enableCommand']('findNext'),_0x44255b['enableCommand']('findPrevious'),_0x44255b['enableCommand']('replace'),_0x44255b['enableCommand']('replaceAll');}['handleFindCommand'](_0x48d867,_0x2f0536,_0x1677bf={}){const _0x340362=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48d867(_0x4e3926=>{let _0x155c95=('string'==typeof _0x2f0536?_0x340362['findByTextCallback'](_0x2f0536,_0x1677bf):_0x2f0536)(_0x4e3926);Array['isArray'](_0x155c95)&&(_0x155c95={'results':_0x155c95,'searchText':'string'==typeof _0x2f0536?_0x2f0536:''});const _0x12cf01=_0x155c95['results']['filter'](_0x1f5555=>!0x1===this['_isInDeletionRange'](_0x1f5555,_0x4e3926['item']));return{..._0x155c95,'results':_0x12cf01};},_0x1677bf);}['_isInDeletionRange'](_0x51796c,_0x4aa644){const _0x329da9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['start']),this['editor']['model']['createPositionAt'](_0x4aa644,_0x51796c['end']));for(const _0x2d6f9f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x329da9['getIntersection'](_0x2d6f9f['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 _0x559983{['afterInit'](){const _0x4c7f5d=this['editor']['locale'],_0x49ec8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30d7d1,commandName:_0x526404}of eo)this['editor']['plugins']['has'](_0x30d7d1)&&(_0x49ec8d['enableDefaultAttributesIntegration'](_0x526404),_0x49ec8d['registerInlineAttribute'](_0x526404));_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7f5d,'FORMAT_FONT_SIZE')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7f5d,'FORMAT_FONT_FAMILY')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7f5d,'FORMAT_FONT_COLOR')),_0x49ec8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7f5d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21206a=this['editor'],_0x1a36aa=_0x21206a['locale'];_0x21206a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404109=>{const _0x5b47ec=_0x1a36aa['t'];if('formatInline'!=_0x404109['type'])return;const {data:_0x281a6b}=_0x404109;if(null!=_0x281a6b){if('fontSize'==_0x281a6b['commandName']){const _0x11dde8=_0x281a6b['commandParams'][0x0]['value'];if(_0x11dde8){const _0x4d2d72=_0x5b47ec(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xdf8158=>_0xdf8158['model']==_0x11dde8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20size:*\x20%0',_0x4d2d72)};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281a6b['commandName']){const _0x118fe5=_0x281a6b['commandParams'][0x0]['value'];return _0x118fe5?{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20family:*\x20%0',_0x118fe5)}:{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281a6b['commandName']){const _0x50f175=_0x281a6b['commandParams'][0x0]['value'];if(_0x50f175){const _0x9fe841=_0x542ec3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516e7a=>_0x516e7a['model']==_0x50f175);let _0x6ee6db=_0x50f175,_0x3d6a78='';return _0x9fe841&&(_0x6ee6db=_0x9fe841['label'],_0x3d6a78=_0x5b47ec(_0x6ee6db)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20color:*\x20%0',_0x3d6a78)['trim'](),'color':{'value':_0x50f175,'title':_0x3d6a78||_0x6ee6db}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281a6b['commandName']){const _0x217e6f=_0x281a6b['commandParams'][0x0]['value'];if(_0x217e6f){const _0x3591b=_0x542ec3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47ee41=>_0x47ee41['model']==_0x217e6f);let _0x43adcc=_0x217e6f,_0x45b202='';return _0x3591b&&(_0x43adcc=_0x3591b['label'],_0x45b202=_0x5b47ec(_0x43adcc)['toLowerCase']()),{'type':'format','content':o(_0x1a36aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x45b202)['trim'](),'color':{'value':_0x217e6f,'title':_0x45b202||_0x43adcc}};}return{'type':'format','content':o(_0x1a36aa,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x559983{['afterInit'](){const _0x5412cd=this['editor'],_0x2eb79a=_0x5412cd['plugins']['get']('TrackChangesEditing'),_0x4d6604=_0x5412cd['commands']['get']('copyFormat'),_0x303d30=_0x5412cd['commands']['get']('pasteFormat');_0x4d6604&&_0x303d30&&(_0x2eb79a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2eb79a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3dfe22=this['editor'],_0x482f67=_0x3dfe22['locale'];_0x3dfe22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2944ac=>{if('formatBlock'!=_0x2944ac['type']&&'formatInline'!=_0x2944ac['type'])return;const {data:_0x16966b}=_0x2944ac;if(_0x16966b&&'pasteFormat'===_0x16966b['commandName']){const _0x3e88fd=[],_0x4165a8=_0x16966b['commandParams'][0x0];for(const [_0x151537,_0x36749d]of Object['entries'](_0x4165a8))_0x3e88fd['push'](ro(_0x3dfe22,_0x151537,_0x36749d));return _0x3e88fd['length']?{'type':'format','content':o(_0x482f67,'*Set\x20format\x20to:*\x20%0',_0x3e88fd['join'](',\x20'))}:{'type':'format','content':o(_0x482f67,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2a015d,_0x5061db,_0x221795){const _0x11d8a2=_0x2a015d['locale']['t'],_0x31eda1=_0x5061db['split'](/(?=[A-Z])/)['join']('\x20'),_0x483611=_0x11d8a2(_0x31eda1['charAt'](0x0)['toUpperCase']()+_0x31eda1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x221795)return _0x483611;if('fontColor'===_0x5061db||'fontBackgroundColor'===_0x5061db){const _0xc31f7f=_0x542ec3(_0x2a015d['config']['get']('fontColor.colors'))['find'](_0x6dec29=>_0x6dec29['model']==_0x221795);return _0x483611+'\x20('+(_0xc31f7f?_0x11d8a2(_0xc31f7f['label'])['toLowerCase']():_0x221795)+')';}if('fontSize'===_0x5061db&&isNaN(parseFloat(_0x221795))){const _0x18e974=_0x2a015d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a015d['config']['get']('fontSize.options'))['find'](_0x249cf6=>_0x249cf6['model']==_0x221795);return _0x483611+'\x20('+(_0x18e974?_0x11d8a2(_0x18e974['title'])['toLowerCase']():_0x221795)+')';}return _0x483611+'\x20('+_0x221795+')';}class Z extends _0x559983{['_headingOptions'];['afterInit'](){const _0x5bfe97=this['editor'];if(!_0x5bfe97['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5bfe97['config']['get']('heading.options');const _0x41bca0=_0x5bfe97['locale'],_0x37b564=_0x5bfe97['plugins']['get']('TrackChangesEditing');_0x37b564['enableDefaultAttributesIntegration']('heading');for(const _0x1607e6 of this['_headingOptions'])'paragraph'!=_0x1607e6['model']&&_0x37b564['descriptionFactory']['registerElementLabel'](_0x1607e6['model'],_0x3f16fe=>{const _0x452d87=this['_getHeadingLevel'](_0x1607e6['model']);return null!==_0x452d87?_0x1e2c2b(_0x3f16fe,_0x452d87):_0x454745(_0x3f16fe,_0x1607e6['title']);});function _0x1e2c2b(_0x254c70,_0x691e48){return o(_0x41bca0,'ELEMENT_HEADING',[_0x254c70,_0x691e48]);}function _0x454745(_0x5a7d5a,_0x119a2d){return o(_0x41bca0,'ELEMENT_HEADING_CUSTOM',[_0x5a7d5a,_0x119a2d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1507d2=this['editor'],_0x57b68b=_0x1507d2['locale'];function _0x58dc85(_0x1b0581,_0x469aa3){return o(_0x57b68b,'ELEMENT_HEADING_CUSTOM',[_0x1b0581,_0x469aa3]);}_0x1507d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2382=>{if('formatBlock'!=_0x1b2382['type'])return;const {data:_0x206c15}=_0x1b2382;if(_0x206c15&&'heading'==_0x206c15['commandName']){const _0x43c318=_0x206c15['commandParams'][0x0]['value'],_0x399c10=this['_getHeadingLevel'](_0x43c318);if(null!==_0x399c10)return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',(_0x39de28=0x1,_0x4c7f0a=_0x399c10,o(_0x57b68b,'ELEMENT_HEADING',[_0x39de28,_0x4c7f0a])))};const _0x2081a9=this['_headingOptions']['find'](_0x569e15=>_0x569e15['model']===_0x43c318)['title'];return{'type':'format','content':o(_0x57b68b,'*Change\x20to:*\x20%0',_0x58dc85(0x1,_0x2081a9))};}var _0x39de28,_0x4c7f0a;});}['_getHeadingLevel'](_0x2d75d6){const _0xdeef9f=_0x2d75d6['match'](/^heading(\d+)/);if(_0xdeef9f)return _0xdeef9f[0x1];const _0x14e42f=this['_headingOptions']?.['find'](_0x4ffa39=>_0x4ffa39['model']==_0x2d75d6);if(_0x14e42f&&_0x14e42f['view']){const _0x4cf6a5=_0x14e42f['view'],_0x174857=(_0x4cf6a5['name']??_0x4cf6a5)['match'](/^h(\d+)/);if(_0x174857)return _0x174857[0x1];}return null;}}class tt extends _0x559983{['afterInit'](){const _0x50a792=this['editor'];if(!_0x50a792['plugins']['has']('HighlightEditing'))return;const _0x4fbc0e=_0x50a792['plugins']['get']('TrackChangesEditing'),_0x4e1663=_0x50a792['locale'];_0x4fbc0e['enableDefaultAttributesIntegration']('highlight'),_0x4fbc0e['registerInlineAttribute']('highlight'),_0x4fbc0e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4e1663,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c576c=this['editor'],_0x2fed5f=_0x3c576c['locale'];_0x3c576c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274dc7=>{if('formatInline'!=_0x274dc7['type'])return;const {data:_0x216ba0}=_0x274dc7;if(_0x216ba0&&'highlight'==_0x216ba0['commandName']){const _0x17fb4c=_0x2fed5f['t'],_0x5540bd=_0x216ba0['commandParams'][0x0]['value'];if(_0x5540bd){const _0x17b41f=_0x3c576c['config']['get']('highlight.options')['find'](_0x70e6a5=>_0x70e6a5['model']==_0x5540bd),_0x479322=_0x17fb4c(_0x17b41f['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fed5f,'*Set\x20highlight:*\x20%0',_0x479322),'color':{'value':_0x17b41f['color'],'title':_0x17b41f['title']}};}return{'type':'format','content':o(_0x2fed5f,'*Remove\x20highlight*',o(_0x2fed5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x559983{['afterInit'](){const _0x3d6da2=this['editor'];if(!_0x3d6da2['plugins']['has']('HorizontalLineEditing'))return;_0x3d6da2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x406983=_0x3d6da2['plugins']['get']('TrackChangesEditing'),_0x4c9a14=_0x3d6da2['locale'];_0x406983['descriptionFactory']['registerElementLabel']('horizontalLine',_0x491ff0=>o(_0x4c9a14,'ELEMENT_HORIZONTAL_LINE',_0x491ff0)),_0x3d6da2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5ec920,{writer:_0x44a883,options:_0x5bafb6})=>{if(!_0x5bafb6['showSuggestionHighlights'])return null;const _0x348e42=_0x44a883['createContainerElement']('div'),_0x560ecb=_0x44a883['createEmptyElement']('hr');return _0x44a883['addClass']('ck-horizontal-line',_0x348e42),_0x44a883['insert'](_0x44a883['createPositionAt'](_0x348e42,0x0),_0x560ecb),_0x348e42;},'converterPriority':'high'});}}class nt extends _0x559983{['afterInit'](){const _0x493135=this['editor'];if(!_0x493135['plugins']['has']('HtmlEmbed'))return;const _0x5326ac=_0x493135['plugins']['get']('TrackChangesEditing'),_0xf10b7f=_0x493135['locale'];_0x5326ac['descriptionFactory']['registerElementLabel']('rawHtml',_0xced4a8=>o(_0xf10b7f,'ELEMENT_HTML_EMBED',_0xced4a8)),_0x5326ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5326ac['registerBlockAttribute']('value'),_0x5326ac['descriptionFactory']['registerDescriptionCallback'](_0xb477a1=>{if('attribute'!=_0xb477a1['type'])return;const {data:_0x4ad33c}=_0xb477a1;if(_0x4ad33c&&'value'==_0x4ad33c['key']&&_0xb477a1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x17fc18=o(_0xf10b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf10b7f,'*Change\x20%0\x20content*',_0x17fc18)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccab9=this['editor'],_0x5bd46d=_0x4ccab9['locale'];_0x4ccab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ada16=>{if('formatBlock'!=_0x5ada16['type'])return;const {data:_0x309805}=_0x5ada16;if(_0x309805&&'htmlEmbed'==_0x309805['commandName']){const _0x30e7fd=o(_0x5bd46d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bd46d,'*Change\x20%0\x20content*',_0x30e7fd)};}});}}class et extends _0x559983{['afterInit'](){const _0x32d569=this['editor'];if(!_0x32d569['plugins']['has']('ImageEditing'))return;const _0x31b76c=_0x32d569['plugins']['get']('TrackChangesEditing'),_0x284fd2=_0x32d569['plugins']['get']('ImageUtils'),_0x4cab40=_0x32d569['locale'];_0x31b76c['enableCommand']('insertImage'),_0x31b76c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e3ad6=>o(_0x4cab40,'ELEMENT_IMAGE',_0x1e3ad6)),_0x31b76c['descriptionFactory']['registerElementLabel']('imageInline',_0x2edb7e=>o(_0x4cab40,'ELEMENT_INLINE_IMAGE',_0x2edb7e)),_0x31b76c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4cab40,'ELEMENT_CAPTION')),_0x32d569['plugins']['has']('ImageUploadEditing')&&_0x31b76c['enableCommand']('uploadImage'),_0x32d569['plugins']['has']('ImageBlockEditing')&&_0x32d569['plugins']['has']('ImageInlineEditing')&&(_0x31b76c['enableCommand']('imageTypeInline',(_0x18a7a3,_0x5b0b5b)=>{const _0x24ac75=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']);_0x32d569['model']['change'](()=>{_0x31b76c['markBlockFormat'](_0x24ac75,{'commandName':'imageTypeInline','commandParams':[_0x5b0b5b]},[],'convertBlockImageToInline');});}),_0x31b76c['enableCommand']('imageTypeBlock',(_0x57d90c,_0x31ccb5)=>{_0x32d569['model']['change'](_0x23b5c9=>{let _0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x43c4e3=_0x333b95['fromPosition'](_0x2a326d['start'],'toPrevious'),_0xacf220=_0x333b95['fromPosition'](_0x2a326d['end'],'toNext');_0x31b76c['forceDefaultExecution'](()=>_0x57d90c(_0x31ccb5)),_0x1ae1fe=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x2a326d=_0x23b5c9['createRangeOn'](_0x1ae1fe);const _0x51cc58=_0x23b5c9['createRange'](_0x43c4e3,_0xacf220);_0x43c4e3['detach'](),_0xacf220['detach'](),_0x31b76c['markBlockFormat'](_0x1ae1fe,{'commandName':'imageTypeInline','commandParams':[_0x31ccb5]},[],'convertInlineImageToBlock'),_0x51cc58['start']['isBefore'](_0x2a326d['start'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x51cc58['start'],_0x2a326d['start']),'convertInlineImageToBlock'),_0x2a326d['end']['isBefore'](_0x51cc58['end'])&&_0x31b76c['markInsertion'](_0x23b5c9['createRange'](_0x2a326d['end'],_0x51cc58['end']),'convertInlineImageToBlock');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x31b76c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xfa7d66])=>{const _0x3b3cc9=_0x31b76c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xda88bd=_0xfa7d66['start'],_0x245333=_0xfa7d66['end'];const _0x7ca3f0=_0x32d569['model']['schema']['getNearestSelectionRange'](_0xda88bd,'backward'),_0x588bb1=_0x32d569['model']['schema']['getNearestSelectionRange'](_0x245333,'forward');_0x7ca3f0['isCollapsed']&&(_0xda88bd=_0x7ca3f0['start']),_0x588bb1['isCollapsed']&&(_0x245333=_0x588bb1['end']),_0x3b3cc9([_0x32d569['model']['createRange'](_0xda88bd,_0x245333)]);}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18d5bf),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18d5bf)),_0x32d569['plugins']['has']('ImageCaptionEditing')&&(_0x31b76c['enableCommand']('toggleImageCaption',(_0x3d5fad,_0x18425d)=>{const _0xa5ca53=_0x32d569['plugins']['get']('ImageCaptionUtils');let _0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715);_0x32d569['model']['change'](()=>{if(_0x4f3e30)return void _0x31b76c['markDeletion'](_0x32d569['model']['createRangeOn'](_0x4f3e30));const _0x250b2e=_0x284fd2['isBlockImage'](_0x4e1715);_0x3d5fad(_0x18425d),_0x4e1715=_0x284fd2['getClosestSelectedImageElement'](_0x32d569['model']['document']['selection']),_0x4f3e30=_0xa5ca53['getCaptionFromImageModelElement'](_0x4e1715),_0x31b76c['markInsertion'](_0x32d569['model']['createRangeOn'](_0x4f3e30),_0x250b2e?null:'imageCaption');});}),_0x31b76c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18d5bf));const _0x4dfb4f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x208dd8(_0x399d3c,_0xd32e71){const _0x1522c2=_0x4dfb4f['findIndex'](({type:_0x1b89a7,subType:_0x21f0f4})=>_0x399d3c['type']==_0x1b89a7&&_0x399d3c['subType']==_0x21f0f4),_0x14b4f0=_0x4dfb4f['findIndex'](({type:_0x25ff91,subType:_0x15856b})=>_0xd32e71['type']==_0x25ff91&&_0xd32e71['subType']==_0x15856b);if(_0x1522c2<0x0||_0x14b4f0<0x0)return!0x1;const _0x2cb6e3=_0x399d3c['getFirstRange'](),_0x20c656=_0xd32e71['getFirstRange']();if((0x0==_0x1522c2||0x1==_0x1522c2)&&0x2==_0x14b4f0&&_0x2cb6e3['isIntersecting'](_0x20c656))return!0x0;if(0x2==_0x1522c2&&0x3==_0x14b4f0){const _0x13ddc8=_0x31b76c['_findSuggestions'](_0x2cb6e3,'insertion')['filter'](({suggestion:_0x483396,meta:_0x44bfbc})=>_0x44bfbc['isOwn']&&'convertInlineImageToBlock'==_0x483396['subType']);if(_0x13ddc8['length']>0x1&&_0x20c656['end']['isEqual'](_0x2cb6e3['start']))return!0x0;if(0x1==_0x13ddc8['length']&&(_0x2cb6e3['start']['isEqual'](_0x20c656['end'])||_0x2cb6e3['end']['isEqual'](_0x20c656['start'])))return!0x0;}if(0x3==_0x1522c2&&0x3==_0x14b4f0&&_0x2cb6e3['start']['isBefore'](_0x20c656['start'])){const _0x493137=_0x2cb6e3['end']['nodeAfter'],_0x55c34c=_0x20c656['start']['nodeBefore'];return _0x284fd2['isBlockImage'](_0x493137)&&_0x493137===_0x55c34c;}return!0x1;}function _0x18d5bf(_0x3a5a75,_0x194dc8){return _0x208dd8(_0x3a5a75,_0x194dc8)?[_0x3a5a75,_0x194dc8]:_0x208dd8(_0x194dc8,_0x3a5a75)?[_0x194dc8,_0x3a5a75]:null;}_0x32d569['plugins']['has']('ImageResize')&&(_0x31b76c['enableDefaultAttributesIntegration']('resizeImage'),_0x31b76c['registerBlockAttribute']('resizedWidth'),_0x31b76c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4cab40,'FORMAT_IMAGE_SIZE'))),_0x32d569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x31b76c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x31b76c['registerBlockAttribute']('alt')),_0x32d569['plugins']['has']('PictureEditing')&&(_0x31b76c['registerBlockAttribute']('sources'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x1cb923=>{if('attribute'!=_0x1cb923['type'])return;const {data:_0x47c625}=_0x1cb923;return _0x47c625&&'sources'==_0x47c625['key']?{'type':'format','content':''}:void 0x0;})),_0x32d569['plugins']['has']('ImageSizeAttributes')&&(_0x31b76c['registerBlockAttribute']('width'),_0x31b76c['registerBlockAttribute']('height'),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x32d4d5=>{if('attribute'!=_0x32d4d5['type'])return;const {data:_0x886710}=_0x32d4d5;return!_0x886710||'width'!=_0x886710['key']&&'height'!=_0x886710['key']?void 0x0:{'type':'format','content':''};})),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x57f211=>{if(!!_0x4dfb4f['find'](({type:_0x374e02,subType:_0x578e22})=>_0x57f211['type']==_0x374e02&&_0x57f211['subType']==_0x578e22))return _0x57f211['previous']?{}:void 0x0;}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x410473=>{if('insertion'==_0x410473['type']||'deletion'==_0x410473['type']){const _0x24a2a4=_0x410473['getContainedElement']();if(_0x24a2a4&&_0x24a2a4['is']('element','caption'))return{'type':'insertion'==_0x410473['type']?'addObject':'removeObject','element':_0x24a2a4,'quantity':0x1};}}),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x330054=>'formatBlock'==_0x330054['type']&&'convertInlineImageToBlock'==_0x330054['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x330054['type']&&'convertBlockImageToInline'==_0x330054['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x31b76c['descriptionFactory']['registerDescriptionCallback'](_0x49e103=>{if('attribute'!=_0x49e103['type'])return;const {data:_0x255b72}=_0x49e103;if(!_0x255b72||'alt'!=_0x255b72['key'])return;const _0x9596bc=_0x255b72['newValue'];return _0x9596bc?{'type':'format','content':o(_0x4cab40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9596bc+'\x22')}:{'type':'format','content':o(_0x4cab40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x576560=this['editor'],_0x10268b=_0x576560['locale'];_0x576560['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504461=>{if('formatBlock'!=_0x504461['type']&&'formatInline'!=_0x504461['type'])return;const {data:_0x1d83fe}=_0x504461;if(_0x1d83fe){if('imageTextAlternative'==_0x1d83fe['commandName']){const _0x4a93f7=_0x1d83fe['commandParams'][0x0]['newValue'];return _0x4a93f7?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a93f7+'\x22')}:{'type':'format','content':o(_0x10268b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d83fe['commandName']){const _0x2103d9=_0x1d83fe['commandParams'][0x0]['width'];return _0x2103d9?{'type':'format','content':o(_0x10268b,'*Set\x20image\x20width:*\x20%0',_0x2103d9)}:{'type':'format','content':o(_0x10268b,'*Reset\x20image\x20width*')};}}});}}class st extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3a8128=this['editor']['locale'],_0x17f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17f70c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17f70c['registerBlockAttribute']('src'),_0x17f70c['descriptionFactory']['registerDescriptionCallback'](_0x92e2b6=>{if('attribute'!=_0x92e2b6['type'])return;const {data:_0x1d1ab8}=_0x92e2b6;return _0x1d1ab8&&'src'==_0x1d1ab8['key']?_0x1d1ab8['newValue']&&_0x1d1ab8['oldValue']?{'type':'format','content':o(_0x3a8128,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x7d7765=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7d7765['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7d7765['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x627f65=this['editor'],_0x3a5401=_0x627f65['locale'];_0x627f65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c286b=>{if('formatBlock'!=_0x3c286b['type']&&'formatInline'!=_0x3c286b['type'])return;const {data:_0x338f17}=_0x3c286b;if(!_0x338f17||'replaceImageSource'!=_0x338f17['commandName'])return;return{'type':'format','content':o(_0x3a5401,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x559983{['afterInit'](){const _0x59bd74=this['editor'];if(!_0x59bd74['plugins']['has']('ImageStyleEditing'))return;const _0x48918e=_0x59bd74['plugins']['get']('TrackChangesEditing'),_0x216671=_0x59bd74['plugins']['get']('ImageUtils'),_0x599e5c={};_0x48918e['enableCommand']('imageStyle',(_0x5a48a5,_0x29b1cb)=>{const _0xf6e101=_0x59bd74['plugins']['get']('Users')['me'],_0x18c3fb=_0x59bd74['commands']['get']('imageStyle');let _0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x55d718=_0x18c3fb['value'];if(_0x55d718==_0x29b1cb['value'])return;const _0xf0ab1b={'commandName':'imageStyle','commandParams':[_0x29b1cb],'formatGroupId':_0x20cf05()};_0x59bd74['model']['change'](()=>{if(_0x48918e['getSuggestions']()['filter'](_0x13f4dc=>_0x13f4dc['isInContent']&&_0xf6e101==_0x13f4dc['author']&&('formatBlock'==_0x13f4dc['type']||'formatInline'==_0x13f4dc['type'])&&('imageStylePreApply'==_0x13f4dc['subType']||'imageStylePostApply'==_0x13f4dc['subType'])&&_0x13f4dc['getFirstRange']()['isEqual'](_0x3d15ba))['forEach'](_0x147013=>_0x48918e['discardSuggestion'](_0x147013['head'])),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),_0x3d15ba=_0x59bd74['model']['createRangeOn'](_0x284857),_0x18c3fb['refresh'](),_0x59bd74['commands']['get']('imageTypeInline')['refresh'](),_0x59bd74['commands']['get']('imageTypeBlock')['refresh'](),_0x55d718=_0x18c3fb['value'],_0x55d718!=_0x29b1cb['value'])return _0x216671['isInlineImage'](_0x284857)&&_0x18c3fb['shouldConvertImageType'](_0x29b1cb['value'],_0x284857)?(_0x5a48a5({..._0x29b1cb,'setImageSizes':!0x1}),_0x284857=_0x216671['getClosestSelectedImageElement'](_0x59bd74['model']['document']['selection']),void _0x48918e['markBlockFormat'](_0x284857,{..._0xf0ab1b,'commandReversedParams':[{'value':_0x55d718||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x216671['isBlockImage'](_0x284857)?_0x48918e['markBlockFormat'](_0x284857,_0xf0ab1b,[],'imageStylePostApply'):_0x48918e['markInlineFormat'](_0x3d15ba,_0xf0ab1b,'imageStylePostApply'));});});for(const _0x2f5e76 of _0x59bd74['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x599e5c[_0x2f5e76['name']]=_0x2f5e76['title']['toLowerCase']();_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20906d])=>{_0x216671['setImageNaturalSizeAttributes'](_0x20906d['getContainedElement']());}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1611a8,_0x25e6a4)=>{_0x48918e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1611a8,{'commandName':_0x25e6a4['commandName'],'commandParams':_0x25e6a4['commandReversedParams']});}),_0x48918e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21998c,_0x60bb42){if(_0xfa874e(_0x21998c,_0x60bb42))return[_0x21998c,_0x60bb42];if(_0xfa874e(_0x60bb42,_0x21998c))return[_0x60bb42,_0x21998c];return null;});const _0x321089=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa874e(_0x2014de,_0x263f3b){const _0xbb4bfe=_0x321089['findIndex'](({type:_0x4ecb59,subType:_0x22b121})=>_0x2014de['type']==_0x4ecb59&&_0x2014de['subType']==_0x22b121),_0x8fe3b1=_0x321089['findIndex'](({type:_0x1f48be,subType:_0x30e69c})=>_0x263f3b['type']==_0x1f48be&&_0x263f3b['subType']==_0x30e69c);if(_0xbb4bfe<0x0||_0x8fe3b1<0x0)return!0x1;const _0x1d755c=_0x2014de['getFirstRange'](),_0x221c94=_0x263f3b['getFirstRange']();if((0x0==_0xbb4bfe||0x1==_0xbb4bfe)&&0x2==_0x8fe3b1&&_0x1d755c['isIntersecting'](_0x221c94))return!0x0;if(0x2==_0xbb4bfe&&0x3==_0x8fe3b1){const _0xa18bb=_0x48918e['_findSuggestions'](_0x1d755c,'insertion')['filter'](({suggestion:_0x4ad890,meta:_0x120e20})=>_0x120e20['isOwn']&&'convertInlineImageToBlock'==_0x4ad890['subType']);if(_0xa18bb['length']>0x1&&_0x221c94['end']['isEqual'](_0x1d755c['start']))return!0x0;if(0x1==_0xa18bb['length']&&(_0x1d755c['start']['isEqual'](_0x221c94['end'])||_0x1d755c['end']['isEqual'](_0x221c94['start'])))return!0x0;}if(0x3==_0xbb4bfe&&0x3==_0x8fe3b1&&_0x1d755c['start']['isBefore'](_0x221c94['start'])){const _0x455869=_0x1d755c['end']['nodeAfter'],_0x33b733=_0x221c94['start']['nodeBefore'];return _0x216671['isBlockImage'](_0x455869)&&_0x455869===_0x33b733;}return!0x1;}_0x59bd74['model']['document']['registerPostFixer'](()=>{let _0x159f23=!0x1;const _0xbe37b3=Array['from'](_0x59bd74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x448108,data:_0x3492d4}of _0xbe37b3){const {group:_0x3f2ec9,type:_0xbaaf74,subType:_0x31f0c2,id:_0x5bee91}=_0x48918e['_splitMarkerName'](_0x448108);if('suggestion'==_0x3f2ec9&&_0x48918e['hasSuggestion'](_0x5bee91)){if('formatBlock'==_0xbaaf74&&('imageStylePreApply'==_0x31f0c2||'imageStylePostApply'==_0x31f0c2)){const _0x2715e1=_0x48918e['getSuggestion'](_0x5bee91);if(_0x3492d4['newRange']){const _0x224dfc=_0x2715e1['getFirstRange']()['getContainedElement']();if(_0x216671['isBlockImage'](_0x224dfc))continue;_0x48918e['discardSuggestion'](_0x2715e1),_0x159f23=!0x0;}}if('insertion'==_0xbaaf74&&'imageCaption'==_0x31f0c2&&!_0x3492d4['newRange']){const _0x28e501=_0x48918e['getSuggestion'](_0x5bee91);_0x28e501['next']&&_0x28e501['next']['isInContent']&&(_0x48918e['discardSuggestion'](_0x28e501['next']),_0x159f23=!0x0);}}}return _0x159f23;}),this['_registerLegacyDescription'](_0x599e5c);}['_registerLegacyDescription'](_0x18ce48){const _0x13ec39=this['editor'],_0x54009e=_0x13ec39['locale'];_0x13ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d131=>{if('formatBlock'!=_0x10d131['type']&&'formatInline'!=_0x10d131['type'])return;const {data:_0x17ca4c}=_0x10d131;if(!_0x17ca4c||'imageStyle'!=_0x17ca4c['commandName'])return;const _0x448334=_0x17ca4c['commandParams'][0x0]['value'];return _0x2bf2bc('side'===_0x448334?o(_0x54009e,'FORMAT_SIDE_IMAGE'):_0x18ce48[_0x448334]||_0x448334);function _0x2bf2bc(_0x9a7a4a){return{'type':'format','content':o(_0x54009e,'*Format:*\x20%0',_0x9a7a4a)};}});}}class rt extends _0x559983{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d933e){super(_0x5d933e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b9419=this['editor'],_0x234e55=_0x4b9419['commands']['get']('importWord'),_0x146b1a=_0x4b9419['commands']['get']('trackChanges');_0x234e55&&(_0x234e55['on']('execute',(_0x3e927b,[,_0x594d9c])=>{this['_trackChangesValueDuringImport']=_0x146b1a['value'],_0x594d9c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x234e55,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x234e55,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x146b1a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b9419['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x552960,_0x425eb8){const {suggestions:_0x378efd}=_0x425eb8,_0x3fa348=this['editor']['commands']['get']('trackChanges'),_0x180f69=_0x3fa348['value'];this['_trackChangesValueDuringImport']!==_0x180f69&&(_0x3fa348['execute'](),this['_trackChangesExecuted']=!0x0),_0x378efd&&_0x378efd['forEach'](({id:_0xb2cd56,type:_0x33dedf,author:_0x4f2aba,created_at:_0x2bce55})=>{const _0x1c66f2={'id':_0xb2cd56,'type':_0x33dedf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2aba,'createdAt':_0x2bce55?new Date(_0x2bce55):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c66f2);});}}class at extends _0x559983{['afterInit'](){const _0xb95243=this['editor'],_0x1c2500=_0xb95243['plugins']['get']('TrackChangesEditing');if(_0xb95243['plugins']['has']('IndentEditing')&&(_0x1c2500['enableCommand']('indent'),_0x1c2500['enableCommand']('outdent')),_0xb95243['plugins']['has']('IndentBlock')){for(const _0x36285b of['indentBlock','outdentBlock'])_0x1c2500['enableDefaultAttributesIntegration'](_0x36285b);}const _0x450f78=_0xb95243['locale'];_0x1c2500['registerBlockAttribute']('blockIndent'),_0x1c2500['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x450f78,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ab84e=this['editor'],_0x455908=_0x4ab84e['locale'],_0x5857c9=_0x4ab84e['plugins']['get']('TrackChangesEditing');_0x5857c9['descriptionFactory']['registerDescriptionCallback'](_0xf82e15=>{if('formatBlock'!=_0xf82e15['type'])return;const {data:_0x429279}=_0xf82e15;if(!_0x429279)return;if('indentBlock'!=_0x429279['commandName']&&'outdentBlock'!=_0x429279['commandName'])return;const _0x46be02=_0xf82e15['getItems']()[0x0],_0x5bd58a=_0x5857c9['descriptionFactory']['getItemLabel'](_0x46be02);return'indentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Indent:*\x20%0',_0x5bd58a)}:'outdentBlock'==_0x429279['commandName']?{'type':'format','content':o(_0x455908,'*Outdent:*\x20%0',_0x5bd58a)}:void 0x0;});}}class ct extends _0x559983{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x559983{['afterInit'](){const _0x56ba5d=this['editor'];if(!_0x56ba5d['plugins']['has']('LinkEditing'))return;const _0x455de7=_0x56ba5d['plugins']['get']('TrackChangesEditing'),_0x11e40c=_0x56ba5d['commands']['get']('link');_0x455de7['enableDefaultAttributesIntegration']('link'),_0x455de7['enableDefaultAttributesIntegration']('unlink'),_0x455de7['registerInlineAttribute']('linkHref');for(const _0x309bc0 of _0x11e40c['manualDecorators'])_0x455de7['registerInlineAttribute'](_0x309bc0['id']),_0x455de7['descriptionFactory']['registerAttributeLabel'](_0x309bc0['id'],'link\x20('+_0x309bc0['label']['toLowerCase']()+')');_0x455de7['descriptionFactory']['registerDescriptionCallback'](_0x34f0a4=>{if('attribute'!=_0x34f0a4['type'])return;const {data:_0x267cd7}=_0x34f0a4;if(!_0x267cd7||'linkHref'!=_0x267cd7['key'])return;const _0x931d38=_0x267cd7['newValue'],_0x450060=_0x56ba5d['locale'];return{'type':'format','content':null==_0x931d38?o(_0x450060,'*Remove\x20link*'):o(_0x450060,'*Set\x20link:*\x20%0','\x22'+_0x931d38+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485be0=this['editor'],_0x324eff=_0x485be0['locale'];_0x485be0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b01d6=>{if('formatInline'!=_0x3b01d6['type'])return;const {data:_0x49188b}=_0x3b01d6;if(_0x49188b){if('link'==_0x49188b['commandName']){const _0x4847a2=_0x49188b['commandParams'][0x0];return{'type':'format','content':o(_0x324eff,'*Set\x20link:*\x20%0','\x22'+_0x4847a2+'\x22')};}return'unlink'==_0x49188b['commandName']?{'type':'format','content':o(_0x324eff,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x559983{['afterInit'](){const _0x56fa0c=this['editor'],_0x5dcf85=_0x56fa0c['locale'];if(!_0x56fa0c['plugins']['has']('LegacyListEditing'))return;const _0x3001b0=_0x56fa0c['plugins']['get']('TrackChangesEditing'),_0x2209bd=_0x56fa0c['plugins']['has']('LegacyTodoListEditing');function _0x235c03(_0x164912){return()=>{const _0x40399c=_0x56fa0c['model']['document']['selection'],_0x15f023=_0x56fa0c['commands']['get'](_0x164912);if(_0x15f023['value'])return void _0x56fa0c['execute']('paragraph',{});const _0x29aa39=_0x164912['slice'](0x0,-0x4),_0x970162=function(_0x461742,_0x1e6d8a,_0x27b306){let _0x2c5896=Array['from'](_0x461742)['filter'](_0x1239fd=>function(_0x4fff23,_0x58d8c5){return _0x58d8c5['checkChild'](_0x4fff23['parent'],'listItem')&&!_0x58d8c5['isObject'](_0x4fff23);}(_0x1239fd,_0x27b306));_0x2c5896=_0x2c5896['filter'](_0x50cd51=>!_0x50cd51['is']('element','listItem')||_0x50cd51['getAttribute']('listType')!=_0x1e6d8a);const _0x44059a=new Set();for(const _0x59dd38 of _0x2c5896)_0x59dd38['is']('element','listItem')?_0x44059a['add'](Le(_0x59dd38)):_0x44059a['add'](_0x59dd38);return Array['from'](_0x44059a);}(_0x40399c['getSelectedBlocks'](),_0x29aa39,_0x56fa0c['model']['schema']);_0x56fa0c['model']['change'](()=>{for(const _0x337255 of _0x970162)_0x3001b0['markBlockFormat'](_0x337255,{'commandName':_0x164912,'commandParams':[{'forceValue':!_0x15f023['value']}],'formatGroupId':'blockName'},Ee(_0x337255));});};}function _0x5785e1(_0x12c935){return()=>{const _0x33cd06=function(_0x3651d6){let _0x32ab17=Array['from'](_0x3651d6);const _0xf0470=_0x32ab17['findIndex'](_0x366d85=>'listItem'!=_0x366d85['name']);return _0xf0470>-0x1&&(_0x32ab17=_0x32ab17['slice'](0x0,_0xf0470)),_0x32ab17;}(_0x56fa0c['model']['document']['selection']['getSelectedBlocks']()),_0x16be30=_0x56fa0c['model']['createRange'](_0x56fa0c['model']['createPositionAt'](_0x33cd06[0x0],'before'),_0x56fa0c['model']['createPositionAt'](_0x33cd06[_0x33cd06['length']-0x1],'end'));_0x56fa0c['model']['change'](()=>{_0x3001b0['markBlockFormat'](_0x16be30,{'commandName':_0x12c935,'commandParams':[],'formatGroupId':'listIndent'},function(_0x502a58){const _0x48482d=new Set();for(const _0x170032 of _0x502a58){let _0x14ef18=_0x170032['nextSibling'];for(;_0x14ef18&&_0x14ef18['getAttribute']('listIndent')>_0x170032['getAttribute']('listIndent');)_0x48482d['add'](_0x14ef18),_0x14ef18=_0x14ef18['nextSibling'];}return Array['from'](_0x48482d);}(_0x33cd06));});};}_0x3001b0['enableCommand']('numberedList',_0x235c03('numberedList')),_0x3001b0['enableCommand']('bulletedList',_0x235c03('bulletedList')),_0x2209bd&&_0x3001b0['enableCommand']('todoList',_0x235c03('todoList')),_0x3001b0['enableCommand']('indentList',_0x5785e1('indentList')),_0x3001b0['enableCommand']('outdentList',_0x5785e1('outdentList')),_0x2209bd&&_0x3001b0['enableCommand']('checkTodoList',()=>{const _0x316067=_0x56fa0c['commands']['get']('checkTodoList'),_0x4ea747=Array['from'](_0x316067['_selectedElements']);_0x4ea747['filter'](_0x2c187c=>_0x2c187c['getAttribute']('todoListChecked')!=_0x316067['value']),_0x56fa0c['model']['change'](()=>{for(const _0x32fe43 of _0x4ea747)_0x3001b0['markBlockFormat'](_0x32fe43,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x316067['value']}]});});}),_0x3001b0['descriptionFactory']['registerElementLabel']('listItem',_0x2dc31b=>o(_0x5dcf85,'ELEMENT_LIST_ITEM',_0x2dc31b)),_0x3001b0['descriptionFactory']['registerDescriptionCallback'](_0x4888cb=>{if('formatBlock'!=_0x4888cb['type']&&'formatInline'!=_0x4888cb['type'])return;const {data:_0x226935}=_0x4888cb;if(_0x226935){if('numberedList'==_0x226935['commandName']||'bulletedList'==_0x226935['commandName']||'todoList'==_0x226935['commandName'])switch(_0x226935['commandName']['replace']('List','')){case'bulleted':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x75bbd8(o(_0x5dcf85,'ELEMENT_TODO_LIST'));}if('indentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Indent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x226935['commandName'])return{'type':'format','content':o(_0x5dcf85,'*Outdent:*\x20%0',o(_0x5dcf85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x226935['commandName'])return _0x226935['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dcf85,'*Check\x20item*')}:{'type':'format','content':o(_0x5dcf85,'*Uncheck\x20item*')};}function _0x75bbd8(_0x66acff){return{'type':'format','content':o(_0x5dcf85,'*Change\x20to:*\x20%0',_0x66acff)};}});}}function Le(_0x498e0f){const _0xd4888e=_0x498e0f['getAttribute']('listIndent');if(0x0==_0xd4888e)return _0x498e0f;let _0x39d32a=_0x498e0f;for(;_0x498e0f['previousSibling']&&_0x498e0f['previousSibling']['is']('element','listItem');){const _0x4abe34=_0x498e0f['previousSibling']['getAttribute']('listIndent');if(_0x4abe34==_0xd4888e)_0x39d32a=_0x498e0f['previousSibling'];else{if(_0x4abe34<_0xd4888e)break;}_0x498e0f=_0x498e0f['previousSibling'];}return _0x39d32a;}function Ee(_0xb6db7c){const _0x3861ca=[];if(_0xb6db7c['is']('element','listItem')&&_0xb6db7c['getAttribute']('listIndent')>0x0){let _0x40d0a9=_0xb6db7c['nextSibling'];for(;_0x40d0a9&&'listItem'==_0x40d0a9['name']&&_0x40d0a9['getAttribute']('listIndent')==_0xb6db7c['getAttribute']('listIndent');)_0x3861ca['push'](_0x40d0a9),_0x40d0a9=_0x40d0a9['nextSibling'];}return _0x3861ca;}class ht extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46f863=this['editor']['config']['get']('list.properties'),_0xa8603d=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f863['styles']&&_0xa8603d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46f863['reversed']&&_0xa8603d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46f863['startIndex']&&_0xa8603d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa8603d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3bca6b,_0x4f0819={}){const _0x29a1bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42519f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29a1bd['markMultiRangeBlockFormat'](_0x42519f,{'commandName':'listStyle','commandParams':[{'type':_0x4f0819['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x485c04,_0x2986a2={}){const _0x2291e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47414d=this['_getSuggestionBlocks'](_0x2b8fc7=>_0x2b8fc7['is']('element','listItem')&&'numbered'===_0x2b8fc7['getAttribute']('listType'));if(_0x47414d['length']<0x1)return;const _0x11d1bf=_0x47414d['map'](_0x296c93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296c93,'before'),this['editor']['model']['createPositionAt'](_0x296c93,0x0)));this['editor']['model']['change'](()=>{_0x2291e8['markMultiRangeBlockFormat'](_0x11d1bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x2986a2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1dc0a4,_0x1992f8={}){const _0x21b50b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a4c06=this['_getSuggestionBlocks'](_0x10ce85=>_0x10ce85['is']('element','listItem')&&'numbered'===_0x10ce85['getAttribute']('listType'));if(_0x3a4c06['length']<0x1)return;const _0x28fbfe=_0x3a4c06['map'](_0xfdeb7b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfdeb7b,'before'),this['editor']['model']['createPositionAt'](_0xfdeb7b,0x0)));this['editor']['model']['change'](()=>{_0x21b50b['markMultiRangeBlockFormat'](_0x28fbfe,{'commandName':'listStart','commandParams':[{'startIndex':_0x1992f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1540ff){if('formatBlock'!=_0x1540ff['type']&&'formatInline'!=_0x1540ff['type'])return;const _0x42f350=this['editor']['locale'],{data:_0x3c886d}=_0x1540ff;if(!_0x3c886d)return;let _0x4bdcaf,_0x154b87;switch(_0x3c886d['commandName']){case'listStyle':_0x4bdcaf='*Change\x20to:*\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,o(_0x42f350,this['_getTranslationKeyForListStyle'](_0x3c886d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4bdcaf=_0x3c886d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf)};break;case'listStart':_0x4bdcaf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x154b87={'type':'format','content':o(_0x42f350,_0x4bdcaf,_0x3c886d['commandParams'][0x0]['startIndex'])};}return _0x154b87;}['_getSuggestionBlocksForListStyle'](){const _0x4072fc=this['editor']['plugins']['get']('LegacyListUtils');let _0xa8057a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa8057a[0x0]?.['is']('element','listItem')&&_0xa8057a['unshift'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa8057a[_0xa8057a['length']-0x1]?.['is']('element','listItem')&&_0xa8057a['push'](..._0x4072fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa8057a=[...new Set(_0xa8057a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa8057a=_0xa8057a['filter'](_0x3e99b4=>_0x3e99b4['is']('element','listItem'))),_0xa8057a;}['_getSuggestionBlocks'](_0x467705){const _0x48fd5b=this['editor']['plugins']['get']('LegacyListUtils');let _0x8f9109=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x467705)['map'](_0x5dd6c5=>{const _0x52eb55=this['editor']['model']['createPositionAt'](_0x5dd6c5,0x0);return[..._0x48fd5b['getSiblingNodes'](_0x52eb55,'backward'),..._0x48fd5b['getSiblingNodes'](_0x52eb55,'forward')];})['flat']();return _0x8f9109=[...new Set(_0x8f9109)],_0x8f9109;}['_getTranslationKeyForListStyle'](_0x1f2132){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f2132)||'default')['toUpperCase']()+'_LIST_'+_0x1f2132['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x559983{['afterInit'](){const _0xd8a30d=this['editor'];if(!_0xd8a30d['plugins']['has']('MediaEmbedEditing'))return;const _0x3e3e05=_0xd8a30d['plugins']['get']('TrackChangesEditing'),_0x1860dc=_0xd8a30d['locale'];_0x3e3e05['enableCommand']('mediaEmbed'),_0x3e3e05['descriptionFactory']['registerElementLabel']('media',_0x51eedc=>o(_0x1860dc,'ELEMENT_MEDIA',_0x51eedc)),_0xd8a30d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3437fc,{writer:_0x13c1ed,options:_0x73f205})=>{if(_0x73f205['showSuggestionHighlights'])return _0x13c1ed['createEmptyElement']('div');},'converterPriority':'high'}),_0xd8a30d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x597327,_0x3f8cf4,_0x597b13)=>{_0x597b13['options']['showSuggestionHighlights']&&_0x597327['stop']();},{'priority':'high'});}}class lt extends _0x559983{['afterInit'](){const _0x2dd547=this['editor'];_0x2dd547['plugins']['has']('MentionEditing')&&_0x2dd547['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x559983{['afterInit'](){const _0x3e5266=this['editor'];if(!_0x3e5266['plugins']['has']('MergeFieldsEditing'))return;const _0x325998=_0x3e5266['plugins']['get']('TrackChangesEditing'),_0x541ad8=_0x3e5266['locale'];_0x325998['enableCommand']('insertMergeField'),_0x325998['enableCommand']('insertMergeFieldBlock'),_0x325998['enableCommand']('insertMergeFieldImage'),_0x325998['descriptionFactory']['registerElementLabel']('mergeField',_0xf310bc=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0xf310bc)),_0x325998['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2768b7=>o(_0x541ad8,'ELEMENT_MERGE_FIELD',_0x2768b7)),_0x325998['descriptionFactory']['registerDescriptionCallback'](_0x13def5=>{if('insertion'!=_0x13def5['type']&&'deletion'!=_0x13def5['type'])return;const _0x52a8c3=_0x13def5['getContainedElement']();if(null==_0x52a8c3)return;const _0x9db6=_0x3e5266['plugins']['get']('MergeFieldsEditing');let _0x10f74e;switch(_0x9db6['getMergeFieldType'](_0x52a8c3)){case null:return;case'image':{const _0x15be9c=_0x9db6['unwrapAffixes'](_0x52a8c3['getAttribute']('src'));_0x10f74e=_0x9db6['getLabel'](_0x15be9c)||_0x15be9c;break;}default:{const _0x37137a=_0x52a8c3['getAttribute']('id');_0x10f74e=_0x9db6['getLabel'](_0x37137a)||_0x37137a;break;}}return'insertion'==_0x13def5['type']?{'type':'insertion','content':o(_0x541ad8,'*Insert:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x541ad8,'*Remove:*\x20%0','\x22'+_0x10f74e+'\x22\x20'+o(_0x541ad8,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x559983{['afterInit'](){const _0xbbcc26=this['editor'],_0x21d624=_0xbbcc26['plugins']['get']('TrackChangesEditing');_0xbbcc26['plugins']['has']('MultiLevelList')&&(_0x21d624['enableDefaultAttributesIntegration']('multiLevelList'),_0x21d624['registerBlockAttribute']('listMarkerStyle'),_0x21d624['descriptionFactory']['registerDescriptionCallback'](_0x1535ee=>this['handleDescriptions'](_0x1535ee)));}['handleDescriptions'](_0x3d4513){const _0x1b0a82=this['editor']['locale'],{data:_0x2d4dd1}=_0x3d4513,_0x5f4889={'type':'format','content':''};if(_0x2d4dd1&&'listMarkerStyle'==_0x2d4dd1['key']){if(!_0x2d4dd1['oldValue'])return{'type':'format','content':o(_0x1b0a82,'*Set\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['newValue']+')'};if(!_0x2d4dd1['newValue']){let _0x1d78a3=_0x3d4513['head'];for(;_0x1d78a3;){if(_0x1d78a3['data']&&'listType'==_0x1d78a3['data']['key']&&_0x1d78a3['data']['newValue'])return _0x5f4889;_0x1d78a3=_0x1d78a3['next'];}return{'type':'format','content':o(_0x1b0a82,'*Remove\x20format:*\x20%0',o(_0x1b0a82,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d4dd1['oldValue']+')'};}}}}class pt extends _0x559983{['afterInit'](){const _0x5d27b1=this['editor'];if(!_0x5d27b1['plugins']['has']('PageBreakEditing'))return;_0x5d27b1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x9672e=_0x5d27b1['plugins']['get']('TrackChangesEditing'),_0xd06b0d=_0x5d27b1['locale'];_0x9672e['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fb6e9=>o(_0xd06b0d,'ELEMENT_PAGE_BREAK',_0x1fb6e9));}}class kt extends _0x559983{['afterInit'](){const _0x436ba3=this['editor'];if(!_0x436ba3['plugins']['has']('Paragraph'))return;const _0x41b51a=_0x436ba3['locale'],_0x46ba70=_0x436ba3['plugins']['get']('TrackChangesEditing');_0x46ba70['descriptionFactory']['registerElementLabel']('paragraph',_0x241a86=>o(_0x41b51a,'ELEMENT_PARAGRAPH',_0x241a86)),_0x46ba70['enableDefaultAttributesIntegration']('paragraph'),_0x46ba70['enableCommand']('insertParagraph'),_0x436ba3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x436ba3),{'priority':'highest'}),_0x436ba3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52123,_0x49d470,_0x48feeb)=>{_0x48feeb['options']['showSuggestionHighlights']&&nr(_0x436ba3,{'showActiveMarker':!0x1})(_0x52123,_0x49d470,_0x48feeb);},{'priority':'highest'});const _0x10241c=_0x46ba70['descriptionFactory'];_0x10241c['registerDescriptionCallback'](_0x2e2560=>{if('insertion'!==_0x2e2560['type'])return;const {start:_0xbaba32,end:_0x2cca42}=_0x2e2560['getFirstRange']();if(!_0xbaba32['isTouching'](_0x2cca42)||!_0xbaba32['nodeAfter'])return;const _0x109c7e=_0x436ba3['model']['schema'],_0x26c20c=_0xbaba32['nodeAfter'];return _0x109c7e['isBlock'](_0x26c20c)&&!_0x109c7e['isLimit'](_0x26c20c)&&_0x109c7e['checkChild'](_0x26c20c,'$text')?{'type':'insertion','content':o(_0x41b51a,'*Insert:*\x20%0',_0x10241c['getItemLabel'](_0x26c20c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398fe3=this['editor'],_0xb2c0e0=_0x398fe3['locale'];_0x398fe3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474ae4=>{if('formatBlock'!=_0x474ae4['type'])return;const {data:_0x756201}=_0x474ae4;return _0x756201&&'paragraph'==_0x756201['commandName']?{'type':'format','content':o(_0xb2c0e0,'*Change\x20to:*\x20%0',o(_0xb2c0e0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd54cb2,{showActiveMarker:_0x345280=!0x0}={}){return(_0x3064e7,_0x4ba056,_0x460c17)=>{const _0x1078b3=_0xd54cb2['plugins']['get']('TrackChangesEditing'),_0x16c0a3=_0x4ba056['markerRange']['start'],_0x10f4ea=_0x4ba056['markerRange']['end'],_0x47e0e1=_0xd54cb2['model']['schema'];if(!_0x16c0a3['isTouching'](_0x10f4ea)||!_0x16c0a3['nodeAfter'])return;const _0x36c0d1=_0x16c0a3['nodeAfter'];if(_0x47e0e1['isBlock'](_0x36c0d1)&&!_0x47e0e1['isLimit'](_0x36c0d1)&&_0x47e0e1['checkChild'](_0x36c0d1,'$text')){if(!_0x460c17['consumable']['consume'](_0x4ba056['markerRange'],_0x3064e7['name']))return;const {id:_0x43f2fb,authorId:_0x51f5f4}=_0x1078b3['_splitMarkerName'](_0x4ba056['markerName']),_0x12a739=_0x460c17['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x43f2fb,'data-author-id':_0x51f5f4}),_0x4f77b4=_0x460c17['mapper']['toViewPosition'](_0x10f4ea);_0x345280&&_0x1078b3['activeMarkers']['includes'](_0x4ba056['markerName'])&&_0x460c17['writer']['addClass']('ck-suggestion-marker--active',_0x12a739),_0x460c17['writer']['insert'](_0x4f77b4,_0x12a739),_0x460c17['mapper']['bindElementToMarker'](_0x12a739,_0x4ba056['markerName']);}};}class wt extends _0x559983{['afterInit'](){const _0x4e00e1=this['editor'];_0x4e00e1['commands']['get']('replaceSource')&&_0x4e00e1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x559983{['afterInit'](){const _0xb46dbb=this['editor'];if(!_0xb46dbb['plugins']['has']('RemoveFormatEditing'))return;_0xb46dbb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e482=this['editor'];_0x42e482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b603=>{if('formatBlock'!=_0x40b603['type']&&'formatInline'!=_0x40b603['type'])return;const {data:_0x59e7e9}=_0x40b603;return _0x59e7e9&&'removeFormat'==_0x59e7e9['commandName']?{'type':'format','content':o(_0x42e482['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x559983{['afterInit'](){const _0x545b52=this['editor'];if(!_0x545b52['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x152458=_0x545b52['plugins']['get']('TrackChangesEditing');_0x152458['enableCommand']('goToPreviousRestrictedEditingException'),_0x152458['enableCommand']('goToNextRestrictedEditingException');const _0xef1e26=_0x545b52['plugins']['get']('RestrictedEditingModeEditing');_0xef1e26['enableCommand']('trackChanges'),_0xef1e26['enableCommand']('acceptSuggestion'),_0xef1e26['enableCommand']('discardSuggestion'),_0xef1e26['enableCommand']('acceptAllSuggestions'),_0xef1e26['enableCommand']('discardAllSuggestions'),_0xef1e26['enableCommand']('acceptSelectedSuggestions'),_0xef1e26['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x559983{['afterInit'](){const _0x4536a7=this['editor'];if(!_0x4536a7['plugins']['has']('ShiftEnter'))return;const _0x835daa=_0x4536a7['plugins']['get']('TrackChangesEditing');_0x835daa['enableCommand']('shiftEnter'),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4536a7),{'priority':'high'}),_0x4536a7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373547,_0x176b3c,_0x478ea2)=>{_0x478ea2['options']['showSuggestionHighlights']&&je(_0x4536a7,{'showActiveMarker':!0x1})(_0x373547,_0x176b3c,_0x478ea2);}),_0x835daa['descriptionFactory']['registerElementLabel']('softBreak',_0x55b014=>o(_0x4536a7['locale'],'ELEMENT_LINE_BREAK',_0x55b014));}}function je(_0x42b0ed,{showActiveMarker:_0x5c44a7=!0x0}={}){return(_0xb558b0,_0x2910fa,_0x48f9ce)=>{const _0x7bea16=_0x42b0ed['plugins']['get']('TrackChangesEditing');if(!_0x48f9ce['consumable']['test'](_0x2910fa['markerRange'],_0xb558b0['name']))return;const _0x2e65dd=_0x42b0ed['model'];for(const _0x408761 of _0x2910fa['markerRange']['getItems']()){if(!_0x408761['is']('element','softBreak'))continue;const _0x4fae2c='deletion'==_0x2910fa['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ff91e,authorId:_0x102c44}=_0x7bea16['_splitMarkerName'](_0x2910fa['markerName']),_0x152fbf=_0x48f9ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fae2c,'data-suggestion':_0x1ff91e,'data-author-id':_0x102c44}),_0xcd2b3c=_0x48f9ce['mapper']['toViewPosition'](_0x2e65dd['createPositionBefore'](_0x408761));_0x5c44a7&&_0x7bea16['activeMarkers']['includes'](_0x2910fa['markerName'])&&_0x48f9ce['writer']['addClass']('ck-suggestion-marker--active',_0x152fbf),_0x48f9ce['writer']['insert'](_0xcd2b3c,_0x152fbf),_0x48f9ce['mapper']['bindElementToMarker'](_0x152fbf,_0x2910fa['markerName']);}};}class St extends _0x559983{['afterInit'](){const _0x2505e5=this['editor'],_0x528fb4=_0x2505e5['model'],_0x40d3ab=_0x2505e5['locale'];if(!_0x2505e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x4d705f=_0x2505e5['plugins']['get']('TrackChangesEditing'),_0x110c9b='restrictedEditingException',_0x576709=_0x2505e5['commands']['get'](_0x110c9b);_0x4d705f['enableCommand'](_0x110c9b,(_0x53bf72,_0x200121={})=>{const _0x4e6c1e=_0x528fb4['document']['selection'];if(_0x4e6c1e['isCollapsed'])return void _0x53bf72(_0x200121);const _0x751654=void 0x0!==_0x200121['forceValue']?_0x200121['forceValue']:!_0x576709['value'];_0x528fb4['change'](()=>{const _0x2777a2=Array['from'](_0x4e6c1e['getRanges']());for(const _0x690aa8 of _0x2777a2){const _0x5a0873=_0x751654?[_0x690aa8]:io(_0x110c9b,_0x690aa8,_0x528fb4);for(const _0x2f9c2e of _0x5a0873)_0x4d705f['markInlineFormat'](_0x2f9c2e,{'commandName':_0x110c9b,'commandParams':[{'forceValue':_0x751654}]});}});}),_0x4d705f['descriptionFactory']['registerDescriptionCallback'](_0x4b0cef=>{if('formatBlock'!=_0x4b0cef['type']&&'formatInline'!=_0x4b0cef['type'])return;const {data:_0x3c128a}=_0x4b0cef;return _0x3c128a&&_0x3c128a['commandName']==_0x110c9b?_0x3c128a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x40d3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x559983{['afterInit'](){const _0x11a734=this['editor'];if(!_0x11a734['plugins']['has']('Style')||!_0x11a734['plugins']['has']('DataSchema'))return;const _0x4c7a9c=_0x11a734['plugins']['get']('TrackChangesEditing'),_0xb15dc0=_0x11a734['locale'],_0x3509da=_0x11a734['config']['get']('style')||{},_0x2772b0=_0x11a734['plugins']['get']('GeneralHtmlSupport'),_0x7e5b=_0x11a734['plugins']['get']('StyleUtils')['normalizeConfig'](_0x11a734['plugins']['get']('DataSchema'),_0x3509da['definitions']);_0x4c7a9c['enableDefaultAttributesIntegration']('style');const _0x381e1c=new Set();for(const _0x4a5f01 of _0x7e5b['block']){const _0x5ed6d8=_0x2772b0['getGhsAttributeNameForElement'](_0x4a5f01['element']);_0x381e1c['add'](_0x5ed6d8);}const _0x157b32=new Set();for(const _0x23d22e of _0x7e5b['inline']){const _0x46d0a5=_0x2772b0['getGhsAttributeNameForElement'](_0x23d22e['element']);_0x157b32['add'](_0x46d0a5);for(const _0x84ad1d of _0x23d22e['ghsAttributes'])_0x157b32['add'](_0x84ad1d);}for(const _0x71b3af of _0x381e1c)_0x4c7a9c['registerBlockAttribute'](_0x71b3af),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x71b3af,o(_0xb15dc0,'FORMAT_STYLE'));for(const _0x3987e6 of _0x157b32)_0x4c7a9c['registerInlineAttribute'](_0x3987e6),_0x4c7a9c['descriptionFactory']['registerAttributeLabel'](_0x3987e6,o(_0xb15dc0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2f1c=this['editor'],_0x6be108=_0x1f2f1c['locale'];_0x1f2f1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a5bfe=>{if('formatBlock'!=_0x4a5bfe['type']&&'formatInline'!=_0x4a5bfe['type'])return;const {data:_0xe4ad9f}=_0x4a5bfe;return _0xe4ad9f&&'style'===_0xe4ad9f['commandName']?_0xe4ad9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6be108,'*Set\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6be108,'*Remove\x20format:*\x20%0',_0xe4ad9f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x559983{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a8e5f){super(_0x3a8e5f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31f9ad=this['editor'],_0x1427a1=_0x31f9ad['model']['document']['selection'];if(!_0x31f9ad['plugins']['has']('TableEditing'))return;const _0x576601=_0x31f9ad['locale'],_0x4f7bfb=_0x31f9ad['plugins']['get']('TrackChangesEditing'),_0x3e5c5c=_0x31f9ad['plugins']['get']('TableUtils');_0x4f7bfb['descriptionFactory']['registerElementLabel']('table',_0xee0f5=>o(_0x576601,'ELEMENT_TABLE',_0xee0f5)),this['_setupColumnsRowsFixing'](),_0x4f7bfb['enableCommand']('insertTable'),_0x4f7bfb['enableCommand']('selectTableRow'),_0x4f7bfb['enableCommand']('selectTableColumn');for(const _0x2f89c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x3d31d7=_0x31f9ad['commands']['get'](_0x2f89c4);_0x4f7bfb['enableCommand'](_0x2f89c4,_0x30d092=>{_0x31f9ad['model']['change'](_0x31b9ad=>{_0x30d092();const _0x846286='above'===_0x3d31d7['order'],_0x3be933=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x31fe8d=_0x3e5c5c['getRowIndexes'](_0x3be933),_0x1624ab=_0x846286?_0x31fe8d['first']-0x1:_0x31fe8d['last']+0x1,_0x3e0bd1=_0x3be933[0x0]['findAncestor']('table'),_0x43e0d3=_0x3e5c5c['createTableWalker'](_0x3e0bd1,{'startRow':_0x1624ab,'endRow':_0x1624ab}),_0x5794f4=Array['from'](_0x43e0d3)['map'](_0x55068b=>_0x31b9ad['createRangeOn'](_0x55068b['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x5794f4,'tableRow');});});}for(const _0x2aa8dc of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e767e=_0x31f9ad['commands']['get'](_0x2aa8dc);_0x4f7bfb['enableCommand'](_0x2aa8dc,_0x591fe7=>{_0x31f9ad['model']['change'](_0x331273=>{_0x591fe7();const _0x42a605='left'===_0x5e767e['order'],_0x55bcc7=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0x3ab19e=_0x3e5c5c['getColumnIndexes'](_0x55bcc7),_0x8b6592=_0x42a605?_0x3ab19e['first']-0x1:_0x3ab19e['last']+0x1,_0x3790db=_0x55bcc7[0x0]['findAncestor']('table'),_0x526ac0=_0x3e5c5c['createTableWalker'](_0x3790db,{'startRow':0x0,'column':_0x8b6592,'includeAllSlots':!0x1}),_0x39650f=Array['from'](_0x526ac0)['map'](_0x242878=>_0x331273['createRangeOn'](_0x242878['cell']));_0x4f7bfb['markMultiRangeInsertion'](_0x39650f,'tableColumn');});});}for(const _0x39f158 of['removeTableRow','removeTableColumn']){const _0x4ad6f0=_0x39f158['substr'](0xb),_0x32003c=_0x4ad6f0['toLowerCase'](),_0x1a44ed=_0x32003c['substr'](0x0,0x3)+'span',_0x2e0203='table'+_0x4ad6f0,_0x49e344='min'+_0x4ad6f0,_0x19534c='max'+_0x4ad6f0;_0x4f7bfb['enableCommand'](_0x39f158,()=>{_0x31f9ad['model']['change'](_0x3d1e75=>{const _0x391869=_0x3e5c5c['getSelectionAffectedTableCells'](_0x1427a1),_0xee3136=_0x391869[0x0]['findAncestor']('table');let _0x307eb9;if('removeTableRow'==_0x39f158){const _0x731ff=_0x3e5c5c['getRowIndexes'](_0x391869);_0x307eb9={'startRow':_0x731ff['first'],'endRow':_0x731ff['last'],'includeAllSlots':!0x0};}else{const _0x52472d=_0x3e5c5c['getColumnIndexes'](_0x391869);_0x307eb9={'startColumn':_0x52472d['first'],'endColumn':_0x52472d['last'],'includeAllSlots':!0x0};}const _0x138392=_0x3e5c5c['createTableWalker'](_0xee3136,_0x307eb9),_0x3bedd6=Array['from'](_0x138392)['map'](({cell:_0x59d1f9})=>_0x59d1f9),_0x572ec7=Ne(_0x3bedd6['filter'](_0x2b704e=>_0x2b704e['hasAttribute'](_0x1a44ed))),_0x509963=Ne(_0x3bedd6['filter'](_0x592370=>!_0x592370['hasAttribute'](_0x1a44ed)))['map'](_0x39131e=>_0x3d1e75['createRangeOn'](_0x39131e)),_0x4ba2ad=_0x4f7bfb['markMultiRangeDeletion'](_0x509963,_0x2e0203);if(_0x4ba2ad&&('tableRow'==_0x4ba2ad['subType']||'tableColumn'==_0x4ba2ad['subType'])){const _0x91462d=this['_getSuggestionCoords'](_0x4ba2ad);for(const _0x2157ce of _0x572ec7){const _0x15d920=_0x3d1e75['createRangeOn'](_0x2157ce),_0x49879c=_0x3e5c5c['getCellLocation'](_0x2157ce),_0x3eaeec=_0x2157ce['getAttribute'](_0x1a44ed)-0x1,_0xbc571e=_0x91462d[_0x49e344],_0x29ff47=_0x91462d[_0x19534c];_0xbc571e<=_0x49879c[_0x32003c]&&_0x49879c[_0x32003c]+_0x3eaeec<=_0x29ff47&&_0x4ba2ad['addRange'](_0x15d920);}}});});}function _0x45d895(_0x2d6d6f){const _0x479041=Array['from'](_0x1427a1['getRanges']())['map'](_0x3e521e=>_0x334b1a['fromRange'](_0x3e521e));_0x31f9ad['model']['change'](_0x4c91c9=>{const _0x4c73a0=_0x4c91c9['batch'];_0x2d6d6f=_0x2d6d6f['filter'](_0x6350b8=>'$graveyard'!=_0x6350b8['root']['rootName']),_0x4c91c9['setSelection'](_0x2d6d6f),_0x31f9ad['commands']['get']('removeTableRow')['refresh'](),_0x31f9ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31f9ad['model']['enqueueChange'](()=>{_0x31f9ad['model']['enqueueChange'](_0x4c73a0,_0x18229c=>{const _0xc61e6b=_0x479041['filter'](_0x592556=>'$graveyard'!=_0x592556['root']['rootName']);_0xc61e6b['length']>0x0&&_0x18229c['setSelection'](_0xc61e6b);for(const _0xab535d of _0x479041)_0xab535d['detach']();});});});}function _0x6063d1(_0x282eb6){_0x31f9ad['model']['change'](_0x54ab5e=>{const _0x2ebab0=Array['from'](_0x1427a1['getRanges']())['map'](_0xfc7165=>_0x334b1a['fromRange'](_0xfc7165)),_0x1b19c6=[];for(const _0x423100 of _0x282eb6)for(const _0x38f4a4 of _0x423100['getItems']({'shallow':!0x0}))_0x1b19c6['push'](_0x38f4a4);for(const _0x28eda9 of _0x1b19c6)'$graveyard'!=_0x28eda9['root']['rootName']&&(_0x54ab5e['setSelection'](_0x54ab5e['createPositionAt'](_0x28eda9,0x0)),_0x31f9ad['commands']['get']('removeTableColumn')['refresh'](),_0x31f9ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x13d2c3=_0x2ebab0['filter'](_0x187140=>'$graveyard'!=_0x187140['root']['rootName']);_0x13d2c3['length']>0x0&&_0x54ab5e['setSelection'](_0x13d2c3);for(const _0x4b00b5 of _0x2ebab0)_0x4b00b5['detach']();});}function _0x4ad8a1(_0x45ec06,_0x1225ab){return _0x1225ab['every'](_0x5deeef=>_0x45ec06['some'](_0x44d345=>_0x44d345['end']['isEqual'](_0x5deeef['start'])||_0x5deeef['end']['isEqual'](_0x44d345['start'])));}function _0x2fadc6(_0x27d259,_0x50982c){return!_0x27d259['some'](_0x4437f8=>_0x50982c['some'](_0x40f178=>_0x4437f8['isIntersecting'](_0x40f178)))&&_0x27d259['some'](_0x30c235=>_0x50982c['some'](_0x568e7a=>_0x30c235['end']['isTouching'](_0x568e7a['start'])));}_0x31f9ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x948ef4,_0x1ffc56,_0x3cc1a4)=>{if(!_0x3cc1a4['options']['showSuggestionHighlights'])return;const _0xde9df1=_0x1ffc56['item'];if(!_0xde9df1||!_0xde9df1['is']('element','tableCell'))return;const _0x5e05d1=_0x3cc1a4['mapper']['toViewElement'](_0xde9df1);if(_0x5e05d1){const {id:_0x303f43,authorId:_0x199296}=_0x4f7bfb['_splitMarkerName'](_0x1ffc56['markerName']);_0x186ae4(_0x5e05d1,_0x3cc1a4['writer'],(_0x237548,_0x250050,_0x160d33)=>{_0x160d33['addClass'](_0x549793(_0x250050['classes']),_0x237548),_0x160d33['setAttribute']('data-suggestion-id',_0x303f43,_0x237548),_0x160d33['setAttribute']('data-author-id',_0x199296,_0x237548);},(_0x27903d,_0x56fcc9,_0x5a8cfa)=>{_0x5a8cfa['removeClass'](_0x549793(_0x56fcc9['classes']),_0x27903d),_0x5a8cfa['removeAttribute']('data-suggestion-id',_0x27903d),_0x5a8cfa['removeAttribute']('data-author-id',_0x27903d);});}},{'priority':'highest'}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x3d65ac=>{if('insertion'!=_0x3d65ac['type']&&'deletion'!=_0x3d65ac['type'])return;const _0x515829=_0x3d65ac['getContainedElement']();if(null!=_0x515829&&_0x515829['is']('element','table')){if('insertion'==_0x3d65ac['type']){const _0x42f0f4=_0x3d65ac['getItems']()['filter'](_0x4cd210=>_0x4cd210['is']('$textProxy'))['map'](_0x2961f0=>_0x2961f0['data']);if(_0x42f0f4['length'])return{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f0f4['join']('\x20')+'\x22'))};}if('deletion'==_0x3d65ac['type']){const _0x52b6f4=_0x3d65ac['getItems']()['filter'](_0x321591=>_0x321591['is']('$textProxy'))['map'](_0x7584d2=>_0x7584d2['data']);if(_0x52b6f4['length'])return{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52b6f4['join']('\x20')+'\x22'))};}}}),_0x4f7bfb['descriptionFactory']['registerDescriptionCallback'](_0x42bcc7=>{if('tableRow'==_0x42bcc7['subType']){const _0x3bbb79=_0x42bcc7['getItems']()['filter'](_0x3e2c1f=>_0x3e2c1f['is']('$textProxy'))['map'](_0x206f97=>_0x206f97['data']),_0x3c4491=this['_getSuggestionCoords'](_0x42bcc7),_0x2a14fd=_0x3c4491['maxRow']-_0x3c4491['minRow']+0x1;if('insertion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};if('deletion'==_0x42bcc7['type'])return _0x3bbb79['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a14fd,'\x22'+_0x3bbb79['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_ROW',_0x2a14fd))};}if('tableColumn'==_0x42bcc7['subType']){const _0x52acd6=_0x42bcc7['getItems']()['filter'](_0xd3e460=>_0xd3e460['is']('$textProxy'))['map'](_0x176146=>_0x176146['data']),_0x187a5d=this['_getSuggestionCoords'](_0x42bcc7),_0x2c146d=_0x187a5d['maxColumn']-_0x187a5d['minColumn']+0x1;if('insertion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x576601,'*Insert:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};if('deletion'==_0x42bcc7['type'])return _0x52acd6['length']?{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c146d,'\x22'+_0x52acd6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x576601,'*Remove:*\x20%0',o(_0x576601,'ELEMENT_TABLE_COLUMN',_0x2c146d))};}}),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x45d895),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6063d1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4ad8a1),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2fadc6),_0x4f7bfb['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2fadc6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5e8547=this['editor'],_0x214364=_0x5e8547['model']['document']['selection'];return(_0x2805dd,_0xa1e9ed)=>{_0x5e8547['model']['change'](_0x343a04=>{const {commandName:_0x1c0c34,commandParams:_0x4688b3}=_0xa1e9ed;let _0x4dc1e9=_0x2805dd[0x0]['end']['nodeBefore'];_0x4688b3&&_0x4688b3[0x0]&&!0x1===_0x4688b3[0x0]['forceValue']&&(_0x4dc1e9=_0x2805dd[0x0]['start']['nodeAfter']);const _0x385c9f=_0x343a04['createRangeIn'](_0x4dc1e9);if('$graveyard'==_0x385c9f['root']['rootName'])return;const _0x7b0640=Array['from'](_0x214364['getRanges']())['map'](_0x533e91=>_0x334b1a['fromRange'](_0x533e91));_0x343a04['setSelection'](_0x385c9f),_0x5e8547['commands']['get'](_0x1c0c34)['refresh'](),_0x4688b3['push']({'forceDefaultExecution':!0x0}),_0x5e8547['execute'](_0x1c0c34,..._0x4688b3);const _0x50f6c6=_0x7b0640['filter'](_0x9c8f83=>'$graveyard'!=_0x9c8f83['root']['rootName']);_0x50f6c6['length']>0x0&&_0x343a04['setSelection'](_0x50f6c6);for(const _0x515f7b of _0x7b0640)_0x515f7b['detach']();});};}['_getCoordsForCells'](_0x40c1d0){const _0x43486b=this['editor']['plugins']['get']('TableUtils');let _0x281c0f=Number['MAX_SAFE_INTEGER'],_0xf2de73=Number['MIN_SAFE_INTEGER'],_0x231495=Number['MAX_SAFE_INTEGER'],_0x5c1849=Number['MIN_SAFE_INTEGER'];for(const _0x5be48c of _0x40c1d0){if('$graveyard'==_0x5be48c['root']['rootName'])continue;const {row:_0x3c668e,column:_0x38c018}=_0x43486b['getCellLocation'](_0x5be48c),_0x1cf6b7=_0x5be48c['hasAttribute']('rowspan')?_0x5be48c['getAttribute']('rowspan')-0x1:0x0,_0x22659f=_0x5be48c['hasAttribute']('colspan')?_0x5be48c['getAttribute']('colspan')-0x1:0x0;_0x281c0f=_0x3c668e<_0x281c0f?_0x3c668e:_0x281c0f,_0xf2de73=_0x3c668e+_0x1cf6b7>_0xf2de73?_0x3c668e+_0x1cf6b7:_0xf2de73,_0x231495=_0x38c018<_0x231495?_0x38c018:_0x231495,_0x5c1849=_0x38c018+_0x22659f>_0x5c1849?_0x38c018+_0x22659f:_0x5c1849;}return{'minRow':_0x281c0f,'maxRow':_0xf2de73,'minColumn':_0x231495,'maxColumn':_0x5c1849};}['_setupColumnsRowsFixing'](){const _0x453365=this['editor'],_0x2fdb66=_0x453365['plugins']['get']('TrackChangesEditing'),_0x34c1d4=_0x453365['plugins']['get']('TableUtils');_0x453365['model']['document']['on']('change:data',()=>{const _0x150b44=Array['from'](_0x453365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3349fd,data:_0x30828e}of _0x150b44){const {group:_0x1ed4bd,id:_0x1f14eb,subType:_0x18e47c}=_0x2fdb66['_splitMarkerName'](_0x3349fd);if('suggestion'!=_0x1ed4bd)continue;if(null!=_0x30828e['oldRange'])continue;const _0x88fc23=_0x2fdb66['getSuggestion'](_0x1f14eb);this['_tablePostFixingSubtypes']['includes'](_0x18e47c)&&this['_tableSuggestions']['add'](_0x88fc23);}},{'priority':'low'});const _0x1376e3=(_0x501e86,_0x227127)=>{let _0x2665da=!0x1;const _0x475938=_0x227127['createRangeOn'](_0x501e86),_0x264a53=_0x501e86['findAncestor']('table'),_0x5b2ac6=_0x34c1d4['getCellLocation'](_0x501e86);for(const _0x1abd7a of this['_tableSuggestions']){const _0x182991=_0x1abd7a['subType'],_0x4ce38b=_0x182991['startsWith']('tablePaste'),_0x4200ed=_0x182991['substr'](_0x4ce38b?0xa:0x5),_0x14dd81=_0x4200ed['toLowerCase'](),_0x298ad0=_0x14dd81['substr'](0x0,0x3)+'span',_0x118ea8='min'+_0x4200ed,_0x83dadc='max'+_0x4200ed;if(!_0x1abd7a['isInContent'])continue;if(_0x264a53!=_0x1abd7a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1abd7a['isIntersectingWithRange'](_0x475938))continue;const _0x2a0ad0=_0x501e86['hasAttribute'](_0x298ad0)?_0x501e86['getAttribute'](_0x298ad0)-0x1:0x0,_0x43dbd7=this['_getSuggestionCoords'](_0x1abd7a),_0x4c85fa=_0x43dbd7[_0x118ea8],_0x1860c9=_0x43dbd7[_0x83dadc];_0x4c85fa<=_0x5b2ac6[_0x14dd81]&&_0x5b2ac6[_0x14dd81]+_0x2a0ad0<=_0x1860c9&&(_0x1abd7a['addRange'](_0x475938),_0x2665da=!0x0);}return _0x2665da;};_0x453365['model']['document']['registerPostFixer'](_0x50ac70=>{let _0x3f0255=!0x1;for(const _0x7e6944 of _0x453365['model']['document']['differ']['getChanges']())if('insert'==_0x7e6944['type']){if('tableRow'==_0x7e6944['name']){for(const _0x4c651b of _0x7e6944['position']['nodeAfter']['getChildren']())_0x3f0255=_0x3f0255||_0x1376e3(_0x4c651b,_0x50ac70);}else'tableCell'==_0x7e6944['name']&&(_0x3f0255=_0x3f0255||_0x1376e3(_0x7e6944['position']['nodeAfter'],_0x50ac70));}return _0x3f0255;});}['_getSuggestionCoords'](_0x5cab69){return this['_getCoordsForCells'](_0x5cab69['getRanges']()['map'](_0x4a7e5e=>_0x4a7e5e['start']['nodeAfter']));}}function Ne(_0x2f2adb){return Array['from'](new Set(_0x2f2adb)['values']());}class _t extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x4d23e0=this['editor'],_0xacdd55=_0x4d23e0['model']['document']['selection'],_0x1f1d1b=_0x4d23e0['locale'];if(!_0x4d23e0['plugins']['has']('TableEditing'))return;const _0x177b32=_0x4d23e0['plugins']['get']('TrackChangesEditing'),_0x579241=_0x4d23e0['plugins']['get']('TableUtils'),_0xcb6b5a=_0x4d23e0['plugins']['get'](At);_0xcb6b5a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177b32['enableCommand']('mergeTableCells',()=>{const _0x766583=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection']);_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat'](_0x766583,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4d23e0['commands']['get']('mergeTableCells')['on']('execute',(_0x442ceb,_0x32a430)=>{_0x4d23e0['commands']['get']('trackChanges')['value']&&(_0x32a430['length']>0x0&&_0x32a430[_0x32a430['length']-0x1]&&_0x32a430[_0x32a430['length']-0x1]['forceDefaultExecution']||_0x177b32['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x442ceb['stop']());},{'priority':'highest'});for(const _0x4ef318 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x824f33=_0x4d23e0['commands']['get'](_0x4ef318);_0x177b32['enableCommand'](_0x4ef318,()=>{const _0x3969aa=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x133f31=>_0x133f31['is']('element','tableCell')),_0x2a858e=_0x824f33['value'];_0x4d23e0['model']['change'](()=>{_0x177b32['markMultiRangeBlockFormat']([_0x3969aa,_0x2a858e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37be7c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37ba43=_0x4d23e0['commands']['get'](_0x37be7c);_0x177b32['enableCommand'](_0x37be7c,()=>{const _0x3f4fc3=_0x579241['getSelectionAffectedTableCells'](_0x4d23e0['model']['document']['selection'])[0x0],_0x68561b=_0x3f4fc3['findAncestor']('table'),{column:_0x2a8466,row:_0x53786d}=_0x579241['getCellLocation'](_0x3f4fc3);let _0xe554b8=[];if('horizontally'==_0x37ba43['direction']){const _0x1e5961=_0x579241['createTableWalker'](_0x68561b,{'startRow':_0x53786d,'endRow':_0x53786d,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x1e5961)['map'](_0x521bd4=>_0x521bd4['cell']);}else{const _0x30629e=_0x579241['createTableWalker'](_0x68561b,{'column':_0x2a8466,'includeAllSlots':!0x0});_0xe554b8=Array['from'](_0x30629e)['map'](_0x1cd2e3=>_0x1cd2e3['cell']);}_0x4d23e0['model']['change'](_0xfa2b6a=>{_0x177b32['markBlockFormat'](_0xfa2b6a['createRangeOn'](_0x3f4fc3),{'commandName':_0x37be7c,'commandParams':[]},_0xe554b8,_0x37be7c);});});}_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x4e9b1f=>{if('formatBlock'!=_0x4e9b1f['type']&&'formatInline'!=_0x4e9b1f['type'])return;const {data:_0x40d995}=_0x4e9b1f;return _0x40d995&&'mergeTableCells'==_0x40d995['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Merge\x20cells*')}:void 0x0;}),_0x177b32['descriptionFactory']['registerDescriptionCallback'](_0x3a3f5f=>{if('formatBlock'!=_0x3a3f5f['type']&&'formatInline'!=_0x3a3f5f['type'])return;const {data:_0x3c5b8b}=_0x3a3f5f;return _0x3c5b8b?'splitTableCellVertically'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c5b8b['commandName']?{'type':'format','content':o(_0x1f1d1b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x509888=_0xcb6b5a['_acceptFormatSuggestionCallbackFactory']();for(const _0x15fd36 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15fd36,'accept',_0x509888);for(const _0x249d35 of['splitTableCellVertically','splitTableCellHorizontally'])_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x249d35,'accept',_0x509888);_0x177b32['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2afb2e=>{_0x4d23e0['model']['change'](_0x55db0c=>{const _0x4f85f7=Array['from'](_0xacdd55['getRanges']())['map'](_0x6d0d51=>_0x334b1a['fromRange'](_0x6d0d51));_0x55db0c['setSelection'](_0x2afb2e),_0x4d23e0['commands']['get']('mergeTableCells')['refresh'](),_0x4d23e0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x234371=_0x4f85f7['filter'](_0x55c33e=>'$graveyard'!=_0x55c33e['root']['rootName']);_0x234371['length']>0x0&&_0x55db0c['setSelection'](_0x234371);for(const _0x4d15dd of _0x4f85f7)_0x4d15dd['detach']();});});for(const _0x416ee8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25b248=_0x4d23e0['commands']['get'](_0x416ee8);_0x25b248['on']('set:isEnabled',(_0x1d4fbd,_0x15a53f,_0x5bbcc6)=>{if(_0x5bbcc6){const _0x167d61=_0x4d23e0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x57038c=>_0x57038c['is']('element','tableCell'));this['_areMergableCells'](_0x25b248['value'],_0x167d61)||(_0x1d4fbd['return']=!0x1,_0x1d4fbd['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5563e2=this['editor']['commands']['get']('mergeTableCells'),_0x76bf74=this['editor']['plugins']['get']('TableUtils');if(!_0x5563e2['isEnabled'])return!0x1;const _0x15d747=_0x76bf74['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4893da of _0x15d747)for(const _0x5090b3 of _0x15d747)if(_0x4893da!=_0x5090b3&&!this['_areMergableCells'](_0x4893da,_0x5090b3))return!0x1;return!0x0;}['_areMergableCells'](_0x56398a,_0x1e1941){const _0x198147=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366e03=this['editor']['model']['createRangeOn'](_0x56398a),_0x4b8182=this['editor']['model']['createRangeOn'](_0x1e1941),_0x1f5096=new Set(),_0x14090f=new Set();for(const _0x5d9647 of _0x198147['getSuggestions']())if(('insertion'==_0x5d9647['type']||'deletion'==_0x5d9647['type']||'mergeTableCells'==_0x5d9647['subType'])&&_0x5d9647['isInContent']){for(const _0x2f2159 of _0x5d9647['getRanges']())_0x2f2159['containsRange'](_0x366e03,!0x0)&&_0x1f5096['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']),_0x2f2159['containsRange'](_0x4b8182,!0x0)&&_0x14090f['add'](_0x5d9647['type']+':'+_0x5d9647['author']['id']);}if(_0x1f5096['size']!=_0x14090f['size'])return!0x1;for(const _0x43b290 of _0x1f5096)if(!_0x14090f['has'](_0x43b290))return!0x1;return!0x0;}}class Ct extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x41d2bd=this['editor'];if(!_0x41d2bd['plugins']['has']('TableEditing'))return;const _0xa516bf=_0x41d2bd['locale'],_0x517d6d=_0x41d2bd['plugins']['get']('TrackChangesEditing');_0x517d6d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x517d6d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x517d6d['registerBlockAttribute']('headingRows'),_0x517d6d['registerBlockAttribute']('headingColumns'),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xa516bf,'FORMAT_HEADER_ROW')),_0x517d6d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xa516bf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4219f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f04f4=this['editor']['plugins']['get']('TableUtils'),_0x30f93c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2c8454({showActiveMarker:_0x3f7595=!0x0,setDataAttribute:_0x44ec8e=!0x0}={}){return(_0x44c853,_0x57105f,_0x53a227)=>{const {type:_0xe07dcf,id:_0x239b4b}=_0x4219f2['_splitMarkerName'](_0x57105f['markerName']),_0x3cf833=_0x4219f2['getSuggestion'](_0x239b4b),_0x4b165d=_0x3cf833['data'];if('formatBlock'!=_0x3cf833['type']||!_0x4b165d||'setTableColumnHeader'!=_0x4b165d['commandName'])return;if(_0x57105f['item'])return void _0x44c853['stop']();if(!_0x53a227['consumable']['consume'](_0x57105f['markerRange'],_0x44c853['name']))return;const _0x10c5b1=_0x57105f['markerRange']['start']['nodeAfter'],_0x15850c=_0x57105f['markerRange']['end']['nodeBefore'],_0x393338=_0x10c5b1['parent']['parent'],{column:_0x1f448b}=_0x1f04f4['getCellLocation'](_0x10c5b1),{column:_0x41a6e6}=_0x1f04f4['getCellLocation'](_0x15850c);for(let _0x53ebf6=_0x1f448b;_0x53ebf6<=_0x41a6e6;_0x53ebf6++){const _0x19c0d2=_0x1f04f4['createTableWalker'](_0x393338,{'column':_0x53ebf6,'includeAllSlots':!0x1});for(const _0x12380f of _0x19c0d2){const _0x1bd958=_0x12380f['cell'],_0x22eb24=_0x53a227['mapper']['toViewElement'](_0x1bd958);_0x53a227['writer']['addClass']('ck-suggestion-marker-'+_0xe07dcf,_0x22eb24),_0x44ec8e&&_0x53a227['writer']['setAttribute']('data-suggestion',_0x239b4b,_0x22eb24),_0x53a227['mapper']['bindElementToMarker'](_0x22eb24,_0x57105f['markerName']),_0x3f7595&&(_0x4219f2['activeMarkers']['includes'](_0x57105f['markerName'])?_0x53a227['writer']['addClass']('ck-suggestion-marker--active',_0x22eb24):_0x53a227['writer']['removeClass']('ck-suggestion-marker--active',_0x22eb24));}}};}_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30f93c),_0x4219f2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30f93c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c8454(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf298a2,_0x3d6c4f,_0x146195)=>{_0x146195['options']['showSuggestionHighlights']&&_0x2c8454({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf298a2,_0x3d6c4f,_0x146195);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x266439,_0x1d8ba8,_0x81caf1)=>{const {type:_0xdf3783,id:_0x24602e}=_0x4219f2['_splitMarkerName'](_0x1d8ba8['markerName']),_0x12ff03=_0x4219f2['getSuggestion'](_0x24602e),_0x33cf9c=_0x12ff03['data'];if('formatBlock'!=_0x12ff03['type']||!_0x33cf9c||'setTableColumnHeader'!=_0x33cf9c['commandName'])return;const _0x4c9462=_0x81caf1['mapper']['markerNameToElements'](_0x1d8ba8['markerName']);if(_0x4c9462){for(const _0x316108 of _0x4c9462)_0x81caf1['writer']['removeClass']('ck-suggestion-marker-'+_0xdf3783,_0x316108),_0x81caf1['writer']['removeClass']('ck-suggestion-marker--active',_0x316108),_0x81caf1['writer']['removeAttribute']('data-suggestion',_0x316108),_0x81caf1['mapper']['unbindElementFromMarkerName'](_0x316108,_0x1d8ba8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1528b7=this['editor'],_0x2615ad=_0x1528b7['locale'];function _0x260999(_0x267e12){return{'type':'format','content':o(_0x2615ad,'*Format:*\x20%0',_0x267e12)};}_0x1528b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x212342=>{if('formatBlock'!=_0x212342['type'])return;const {data:_0x1ad803}=_0x212342;if(_0x1ad803){if('setTableRowHeader'==_0x1ad803['commandName']){const _0x1238f9=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x1238f9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ad803['commandName']){const _0x35d242=_0x1ad803['commandParams'][0x0]['forceValue'];return _0x260999(o(_0x2615ad,_0x35d242?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x559983{['afterInit'](){const _0x4122cb=this['editor'],_0x2e6b0a=_0x4122cb['locale'],_0x175734=_0x4122cb['plugins']['get']('TrackChangesEditing');function _0x532b93(_0x278830){return{'type':'format','content':''+o(_0x2e6b0a,'*Set\x20table\x20type:*\x20%0',_0x278830)};}_0x4122cb['plugins']['has']('TableLayout')&&(_0x175734['enableCommand']('insertTableLayout'),_0x175734['enableDefaultAttributesIntegration']('tableType'),_0x175734['registerBlockAttribute']('tableType'),_0x175734['descriptionFactory']['registerElementLabel'](_0x1a0bd8=>_0x1a0bd8['is']('element','table')&&'layout'===_0x1a0bd8['getAttribute']('tableType'),_0x520501=>o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE',_0x520501)),_0x175734['descriptionFactory']['registerDescriptionCallback'](_0x353f3e=>{const {data:_0x47c894}=_0x353f3e;if(_0x47c894&&'tableType'==_0x47c894['key'])switch(_0x47c894['newValue']){case'layout':return _0x532b93(o(_0x2e6b0a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x532b93(o(_0x2e6b0a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x46e8e2=>[_0x46e8e2,null]));class Nt extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2fd095=this['editor'];if(!_0x2fd095['plugins']['has']('TableClipboard'))return;const _0x136206=_0x2fd095['plugins']['get']('TrackChangesEditing'),_0x2e4b71=_0x2fd095['plugins']['get']('TableUtils'),_0x2579d0=_0x2fd095['plugins']['get'](At),_0xabbbb9=_0x2fd095['plugins']['get']('TableClipboard'),_0x365de2=_0x2fd095['plugins']['get']('TableSelection'),_0xc4156b=_0x2fd095['plugins']['get'](_0x9367c);_0x2579d0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2fd095['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2fd095['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46f3f4=null,_0x33f587=!0x1;_0xc4156b['on']('contentInsertion',(_0xbbbadd,_0x2ba014)=>{_0x33f587='paste'===_0x2ba014['method'];}),_0x2fd095['model']['on']('insertContent',(_0x37f7a8,_0x16456c)=>{if(!_0x33f587&&null===_0x365de2['getSelectedTableCells']())return;const [_0x4aad2d,_0x2a523b]=_0x16456c,_0x3655ae=_0x16456c[_0x16456c['length']-0x1];_0x3655ae&&_0x3655ae['forceDefaultExecution']||_0x136206['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2bd6ff,_0xd45e45,_0x13f739,_0x291b84,_0x2fed87){if(_0xd45e45&&!_0xd45e45['is']('documentSelection'))return!0x1;const _0x48a26d=_0x2fed87['getTableIfOnlyTableInContent'](_0x2bd6ff,_0x13f739);if(!_0x48a26d||!Ue(_0x48a26d,void 0x0,_0x291b84))return!0x1;const _0x5db761=_0x291b84['getSelectionAffectedTableCells'](_0x13f739['document']['selection']);if(!_0x5db761['length'])return!0x1;const _0x137a3f=_0x5db761[0x0]['findAncestor']('table'),_0x337a09=_0x291b84['getRowIndexes'](_0x5db761),_0x527912=_0x291b84['getColumnIndexes'](_0x5db761),_0x5102e1={'startRow':_0x337a09['first'],'endRow':_0x337a09['last'],'startColumn':_0x527912['first'],'endColumn':_0x527912['last']};return 0x1==_0x5db761['length']&&(_0x5102e1['endRow']+=_0x291b84['getRows'](_0x48a26d)-0x1,_0x5102e1['endColumn']+=_0x291b84['getColumns'](_0x48a26d)-0x1),Ue(_0x137a3f,_0x5102e1,_0x291b84);}(_0x4aad2d,_0x2a523b,_0x2fd095['model'],_0x2e4b71,_0xabbbb9)&&(_0x37f7a8['stop'](),_0x46f3f4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2fd095['model']['change'](()=>{_0x2fd095['model']['insertContent'](_0x16456c[0x0],_0x16456c[0x1],_0x16456c[0x2],{'forceDefaultExecution':!0x0});const _0x580ddd=_0x20cf05(),{rowInsertionRanges:_0x34e858,columnInsertionRanges:_0x22aaf6,insertionRanges:_0x2b488b,deletionRanges:_0x306b2b,cells:_0x4b45a5}=_0x46f3f4;_0x34e858['length']&&_0x136206['markMultiRangeInsertion'](_0x34e858,'tablePasteRow',{'tablePasteChainId':_0x580ddd}),_0x22aaf6['length']&&_0x136206['markMultiRangeInsertion'](_0x22aaf6,'tablePasteColumn',{'tablePasteChainId':_0x580ddd}),_0x2b488b['length']&&(_0x136206['markMultiRangeInsertion'](_0x2b488b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x2b488b['forEach'](_0xd04a0c=>_0xd04a0c['detach']?.())),_0x306b2b['length']&&(_0x136206['markMultiRangeDeletion'](_0x306b2b,'tablePaste',{'tablePasteChainId':_0x580ddd,'skipNestingCheck':!0x0}),_0x306b2b['forEach'](_0x29f4ad=>_0x29f4ad['detach']?.()));const _0x4bf1f9=_0x136206['markMultiRangeBlockFormat'](_0x4b45a5['map'](({element:_0x466038})=>_0x466038),{'formatGroupId':_0x20cf05()},[],'tablePasteCell',{'tablePasteChainId':_0x580ddd});if(_0x4bf1f9){const _0x548b5b=_0x4bf1f9['getMarkers'](),_0x452c56=[];for(const {element:_0x52a98c,attributes:_0x248ffc}of _0x4b45a5){if(!_0x248ffc)continue;const _0x468370=_0x2fd095['model']['createRangeOn'](_0x52a98c),_0x52aca7=_0x548b5b['find'](_0x1e1a9c=>_0x1e1a9c['getRange']()['isEqual'](_0x468370));_0x52aca7&&_0x452c56['push']([_0x52aca7['name'],_0x248ffc]);}_0x452c56['length']&&_0x4bf1f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x452c56));}_0x46f3f4=null;}));},{'priority':_0x3a0027['high']+0xa}),_0xc4156b['on']('contentInsertion',()=>{_0x33f587=!0x1;},{'priority':'lowest'}),_0x2fd095['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44a354,_0x55a911)=>{const [_0x3dfa33,_0x72be0c,,_0x29b2fc]=_0x55a911;if(!_0x46f3f4)return;_0x44a354['stop']();const _0xbd090c=_0x3dfa33['cell'],_0x3cc856=_0x72be0c,_0x2d3e13=Oe(_0xbd090c),_0x2c9f21=Oe(_0x3cc856);_0x44a354['return']=_0xbd090c;let _0x436242=null,_0x23224c=null;if(_0x2c9f21||_0x2d3e13){if(_0x2d3e13&&!_0x2c9f21){_0x29b2fc['remove'](_0xbd090c['getChild'](0x0));for(const _0x128f75 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x128f75,_0xbd090c,'end');const _0x4333cc=_0x46f3f4['rowInsertionIndexes']['includes'](_0x3dfa33['row']),_0x14c64f=_0x46f3f4['columnInsertionIndexes']['includes'](_0x3dfa33['column']);_0x4333cc||_0x14c64f||(_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeIn'](_0xbd090c)));}else _0x2c9f21&&!_0x2d3e13&&(_0x23224c=_0x29b2fc['createRangeIn'](_0xbd090c));}else{const _0x2f166a=_0x29b2fc['createElement']('tableCellSuggestion'),_0x5cb6fb=_0x29b2fc['createElement']('tableCellSuggestion');_0x29b2fc['wrap'](_0x29b2fc['createRangeIn'](_0xbd090c),_0x5cb6fb),_0x29b2fc['insert'](_0x2f166a,_0xbd090c,0x0);for(const _0x20c617 of Array['from'](_0x3cc856['getChildren']()))_0x29b2fc['insert'](_0x20c617,_0x2f166a,'end');_0x436242=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x2f166a)),_0x23224c=_0x334b1a['fromRange'](_0x29b2fc['createRangeOn'](_0x5cb6fb));}const _0x38578=Array['from'](_0x3cc856['getAttributes']())['filter'](([_0x4da127])=>Be['includes'](_0x4da127));_0x46f3f4['cells']['push']({'element':_0xbd090c,'attributes':_0x38578['length']?Object['fromEntries'](_0x38578):null}),_0x436242&&_0x46f3f4['insertionRanges']['push'](_0x436242),_0x23224c&&_0x46f3f4['deletionRanges']['push'](_0x23224c);},{'priority':'high'}),_0x2e4b71['on']('insertColumns',(_0x2d6558,_0x43d45a)=>{const [_0x40af8f,_0x50cad3={}]=_0x43d45a;if(!_0x46f3f4)return;const _0x408bd2=_0x50cad3['at']||0x0,_0x2f08a2=_0x50cad3['columns']||0x1;_0x46f3f4['columnInsertionIndexes']=new Array(_0x2f08a2)['fill'](_0x408bd2)['map']((_0xcd6914,_0x3f7890)=>_0xcd6914+_0x3f7890);for(const {cell:_0xa7f81d}of _0x2e4b71['createTableWalker'](_0x40af8f,{'startColumn':_0x408bd2,'endColumn':_0x408bd2+_0x2f08a2-0x1}))_0x46f3f4['columnInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0xa7f81d));},{'priority':'low'}),_0x2e4b71['on']('insertRows',(_0x12d930,_0x51666d)=>{const [_0x547b3b,_0x1f3266={}]=_0x51666d;if(!_0x46f3f4)return;const _0x5bd135=_0x1f3266['at']||0x0,_0x5cbfce=_0x1f3266['rows']||0x1;_0x46f3f4['rowInsertionIndexes']=new Array(_0x5cbfce)['fill'](_0x5bd135)['map']((_0x54dccf,_0x3c1813)=>_0x54dccf+_0x3c1813);for(const {cell:_0x2c01a1}of _0x2e4b71['createTableWalker'](_0x547b3b,{'startRow':_0x5bd135,'endRow':_0x5bd135+_0x5cbfce-0x1}))_0x46f3f4['rowInsertionRanges']['push'](_0x2fd095['model']['createRangeOn'](_0x2c01a1));},{'priority':'low'}),_0x136206['descriptionFactory']['registerDescriptionCallback'](_0x20d28=>{if(_0x20d28['subType']&&_0x20d28['subType']['startsWith']('tablePaste'))return _0x20d28['previous']?{}:{'type':'insertion','content':o(_0x2fd095['locale'],'*Replace\x20table\x20cells*')};});const _0x576112=()=>!0x1;for(const _0xb97b60 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x136206['_suggestionFactory']['registerCustomCallback']('insertion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('deletion',_0xb97b60,'join',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xb97b60,'join',_0x576112);_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x576112),_0x136206['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xd56cdc,_0x307754,_0x8ea4bc)=>{const _0x5054a8=_0xd56cdc['map'](_0x343faf=>_0x343faf['getContainedElement']())['filter'](_0x137530=>_0x137530),_0x4cc8ce=new Map(_0x5054a8['map'](_0x2856d2=>[_0x2856d2,null]));if(_0x46f3f4){for(const {element:_0x4edbfb,attributes:_0x1f424e}of _0x46f3f4['cells'])_0x1f424e&&_0x4cc8ce['set'](_0x4edbfb,_0x1f424e);}else{if(_0x8ea4bc&&_0x8ea4bc['markerAttributes'])for(const [_0x531073,_0x2e3e56]of Object['entries'](_0x8ea4bc['markerAttributes'])){const _0x39d44e=_0x2fd095['model']['markers']['get'](_0x531073),_0x91cbf=_0x39d44e?_0x39d44e['getRange']()['getContainedElement']():null;_0x91cbf&&_0x4cc8ce['set'](_0x91cbf,_0x2e3e56);}}_0x2fd095['model']['change'](_0x12e532=>{for(const [_0x4d6878,_0x694b04]of _0x4cc8ce)_0x12e532['setAttributes']({...xe,..._0x694b04},_0x4d6878);});});const _0x4516d8=(_0x3ca69d,_0x1a05ac)=>{_0x136206['_suggestionFactory']['registerCustomCallback'](_0x3ca69d,'tablePaste',_0x1a05ac,(_0x456ae6,_0x13a6fc,_0xfe318d)=>{_0x2fd095['model']['change'](_0x3a0c9b=>{const _0xc8bd93=[];for(const _0x19c8a7 of _0x456ae6){const _0xc7c95f=_0x19c8a7['start']['nodeAfter'];_0xc7c95f['is']('element','tableCellSuggestion')&&_0xc8bd93['push'](_0xc7c95f);}_0x136206['_suggestionFactory']['getSuggestionCallback'](_0x3ca69d,null,_0x1a05ac)(_0x456ae6,_0x13a6fc,_0xfe318d);for(const _0x470511 of _0xc8bd93)'$graveyard'!=_0x470511['root']['rootName']&&_0x3a0c9b['unwrap'](_0x470511);});});};_0x4516d8('insertion','accept'),_0x4516d8('insertion','discard'),_0x4516d8('deletion','accept'),_0x4516d8('deletion','discard'),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1c4872=>{const _0x16a4c5=_0x1c4872['map'](_0x127182=>_0x127182['getContainedElement']()),_0x4f86b1=_0x16a4c5[0x0]['findAncestor']('table'),{minRow:_0x80db34,maxRow:_0x59e938}=_0x2579d0['_getCoordsForCells'](_0x16a4c5);_0x2e4b71['removeRows'](_0x4f86b1,{'at':_0x80db34,'rows':_0x59e938-_0x80db34+0x1});}),_0x136206['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x17f49d=>{const _0x1145e7=_0x17f49d['map'](_0x419231=>_0x419231['getContainedElement']()),_0x50ef80=_0x1145e7[0x0]['findAncestor']('table'),{minColumn:_0x3c257b,maxColumn:_0x4098da}=_0x2579d0['_getCoordsForCells'](_0x1145e7);_0x2e4b71['removeColumns'](_0x50ef80,{'at':_0x3c257b,'columns':_0x4098da-_0x3c257b+0x1});});const _0xdefbca=(_0x10293a,_0xbb2d4b)=>{if(!_0xbb2d4b['subType']||!_0xbb2d4b['subType']['startsWith']('tablePaste'))return;const _0x3a9562=_0xbb2d4b['attributes']['tablePasteChainId'],_0x3e95ad=_0x136206['getSuggestions']()['filter'](_0x436a39=>_0x436a39['isInContent']&&_0x436a39['attributes']&&_0x436a39['attributes']['tablePasteChainId']==_0x3a9562);_0x3e95ad['length']&&_0xbb2d4b['getAllAdjacentSuggestions']()['length']!=_0x3e95ad['length']&&_0x3e95ad['reduce']((_0x49ba7a,_0xad23f4)=>(_0x49ba7a['next']=_0xad23f4,_0xad23f4['previous']=_0x49ba7a,_0xad23f4));};function _0x2408bb(_0x120e9f,_0x35ddef=!0x0){const {id:_0x57c808,authorId:_0x656252}=_0x136206['_splitMarkerName'](_0x120e9f['markerName']),_0x12b9cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4c44fd=_0x136206['activeMarkers']['includes'](_0x120e9f['markerName']);return _0x4c44fd&&_0x12b9cb['push']('ck-suggestion-marker--active'),{'classes':_0x12b9cb,'attributes':{'data-suggestion':_0x57c808,'data-author-id':_0x656252},'priority':_0x4c44fd&&_0x35ddef?0xbc2:0xbb8};}_0x136206['on']('suggestionLoaded',_0xdefbca,{'priority':'high'}),_0x136206['on']('suggestionUnloaded',_0xdefbca,{'priority':'high'}),_0x2fd095['model']['document']['registerPostFixer'](()=>{let _0x1b03c6=!0x1;const _0x1fb45b=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cdd8d,data:_0x6336f5}of _0x1fb45b){const {group:_0x306072,type:_0x3a238b,id:_0x4b4a15}=_0x136206['_splitMarkerName'](_0x5cdd8d);if('suggestion'!=_0x306072||'deletion'!=_0x3a238b||_0x6336f5['oldRange'])continue;if(!_0x136206['hasSuggestion'](_0x4b4a15))continue;const _0x2a9e4c=_0x136206['getSuggestion'](_0x4b4a15)['getRanges'](),_0xd909f=_0x2fd095['plugins']['get']('Users')['me'];for(const _0x48200f of _0x136206['getSuggestions']()){if(!_0x48200f['isInContent']||_0x48200f['author']!=_0xd909f)continue;if('formatBlock'!=_0x48200f['type']||'tablePasteCell'!=_0x48200f['subType'])continue;if(_0x48200f['getRanges']()['every'](_0x18935b=>_0x2a9e4c['some'](_0xe9f921=>_0xe9f921['containsRange'](_0x18935b,!0x0)))){for(const _0xabdef9 of _0x48200f['getAllAdjacentSuggestions']())_0xabdef9['isInContent']&&(_0xabdef9['discard'](),_0x1b03c6=!0x0);}}}return _0x1b03c6;}),_0x2fd095['model']['document']['registerPostFixer'](_0x4d39ec=>{const _0x40f23f=_0x2fd095['commands']['get']('redo');if(!_0x40f23f||!_0x40f23f['_createdBatches']['has'](_0x4d39ec['batch']))return!0x1;let _0x17359f=!0x1;const _0x4c71ca=_0x2fd095['plugins']['get']('Users')['me'],_0x25f248=_0x2fd095['model']['document']['differ']['getChanges'](),_0x5245b5=Array['from'](_0x2fd095['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xbcb808,data:_0x473b75})=>{const {group:_0x4d70a1,subType:_0x3089c3,authorId:_0x2799e8}=_0x136206['_splitMarkerName'](_0xbcb808);return'suggestion'==_0x4d70a1&&'tablePaste'==_0x3089c3&&_0x2799e8==_0x4c71ca['id']&&!_0x473b75['oldRange'];});for(const _0x5a8110 of _0x25f248){if('insert'!=_0x5a8110['type']||'tableCellSuggestion'!=_0x5a8110['name']||0x1!=_0x5a8110['length'])continue;const _0x1b070c=_0x4d39ec['createRange'](_0x5a8110['position'],_0x5a8110['position']['getShiftedBy'](0x1));if(!_0x5245b5['find'](({data:_0xf92e0b})=>_0xf92e0b['newRange']['isEqual'](_0x1b070c))){for(const {name:_0x237510,data:_0xb3d601}of _0x5245b5)if(_0x1b070c['containsRange'](_0xb3d601['newRange'])){_0x4d39ec['updateMarker'](_0x237510,{'range':_0x1b070c}),_0x17359f=!0x0;break;}}}return _0x17359f;}),_0x2fd095['model']['document']['registerPostFixer'](_0x5dee4d=>{let _0x287a1f=!0x1;const _0x134f8d=_0x2fd095['plugins']['get']('Users')['me'],_0x4228b8=_0x136206['getSuggestions']()['filter'](_0x42bbb3=>_0x42bbb3['isInContent']&&_0x42bbb3['author']==_0x134f8d),_0x4ab2ca=new Set(),_0x5c726b=new Set();for(const _0x24c1e2 of _0x4228b8)if('tablePaste'==_0x24c1e2['subType'])for(const _0x31160b of _0x24c1e2['getMarkers']()){const _0x492950=_0x31160b['getRange']()['getContainedElement']();if(_0x492950){if(_0x492950['is']('element','tableCellSuggestion')&&Oe(_0x492950)){_0x24c1e2['removeMarker'](_0x31160b['name']),_0x4ab2ca['add'](_0x492950),_0x287a1f=!0x0;const _0x11a07f=_0x492950['nextSibling'],_0x2bc1e9=_0x492950['previousSibling'],_0x5a597c=_0x11a07f&&_0x11a07f['is']('element','tableCellSuggestion'),_0x327400=_0x2bc1e9&&_0x2bc1e9['is']('element','tableCellSuggestion');_0x5a597c&&!_0x4ab2ca['has'](_0x11a07f)&&_0x5c726b['add'](_0x11a07f),_0x327400&&!_0x4ab2ca['has'](_0x2bc1e9)&&_0x5c726b['add'](_0x2bc1e9);}else _0x492950['is']('element','paragraph')&&_0x492950['isEmpty']&&(_0x24c1e2['removeMarker'](_0x31160b['name']),_0x287a1f=!0x0);}}else{if('tablePasteCell'==_0x24c1e2['subType']){if(!_0x24c1e2['attributes']||!_0x24c1e2['attributes']['tablePasteChainId'])continue;const _0x5dd3ab=_0x24c1e2['attributes']['markerAttributes'];if(_0x5dd3ab&&Object['keys'](_0x5dd3ab)['length'])continue;const _0x4a7242=_0x24c1e2['attributes']['tablePasteChainId'];let _0x36d0b2=!0x0,_0x278efb=!0x0;for(const _0x133fcf of _0x4228b8)if(_0x133fcf['subType']&&_0x133fcf['subType']['startsWith']('tablePaste')){if(!_0x133fcf['attributes']['tablePasteChainId']){_0x278efb=!0x1;break;}if(_0x133fcf['id']!=_0x24c1e2['id']&&_0x133fcf['attributes']['tablePasteChainId']==_0x4a7242){_0x36d0b2=!0x1;break;}}_0x278efb&&_0x36d0b2&&(_0x24c1e2['removeMarkers'](),_0x287a1f=!0x0);}}for(const _0xaadaec of _0x4ab2ca)_0x5dee4d['remove'](_0xaadaec);for(const _0x4ceb99 of _0x5c726b)_0x5dee4d['unwrap'](_0x4ceb99);return _0x287a1f;}),_0x2fd095['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e0cfe=>_0x2408bb(_0x5e0cfe),'converterPriority':'high'}),_0x2fd095['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d0104,_0x46d9b8)=>_0x46d9b8['options']['showSuggestionHighlights']?_0x2408bb(_0x2d0104,!0x1):null,'converterPriority':'high'});const _0x2a1671=_0x2fd095['editing']['view'];this['listenTo'](_0x2a1671['document'],'clipboardOutput',(_0x1587ce,_0x5a0498)=>{const _0x105e47=[];for(const _0x541189 of _0x2a1671['createRangeIn'](_0x5a0498['content'])['getItems']())_0x541189['is']('element','suggestion-td')&&_0x105e47['push'](_0x541189);_0x2a1671['change'](_0x1cd808=>{for(const _0x37086a of _0x105e47)_0x1cd808['move'](_0x1cd808['createRangeIn'](_0x37086a),_0x1cd808['createPositionBefore'](_0x37086a)),_0x1cd808['remove'](_0x37086a);});});}}function Oe(_0x574ab9){if(_0x574ab9['isEmpty'])return!0x0;const _0x3a68c3=_0x574ab9['getChild'](0x0);return _0x3a68c3['is']('element','paragraph')&&_0x3a68c3['isEmpty'];}function Ue(_0x925738,_0x58783c={},_0x32117d){for(const {isAnchor:_0x4c7902,cellHeight:_0x304048,cellWidth:_0x2149ba}of _0x32117d['createTableWalker'](_0x925738,{'includeAllSlots':!0x0,..._0x58783c}))if(!_0x4c7902||0x1!=_0x304048||0x1!=_0x2149ba)return!0x1;return!0x0;}class Dt extends _0x559983{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6c2116=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c2116['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c2116['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x6c2116['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x6c2116['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x299a11,_0x4bdabe){const _0x1d46ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b9f23=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cce2f=_0x4bdabe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x216876=_0x2b9f23['getColumnGroupElement'](_0x4cce2f);let _0x4652d0=_0x216876?_0x2b9f23['getTableColumnsWidths'](_0x216876):null,_0x3867dd=_0x4cce2f['getAttribute']('tableWidth')||null;const _0x59b378=_0x4bdabe['tableWidth']||_0x3867dd,_0xd19d54=_0x4bdabe['columnWidths']||_0x4652d0,_0xa6d6fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x358139 of _0x1d46ee['getSuggestions']()){const _0x490ce5=_0x358139['getContainedElement']();if('resizeTable'===_0x358139['subType']&&_0x490ce5===_0x4cce2f){_0x358139['author']!==_0xa6d6fa&&_0x358139['discard']();const _0x5bde8c=_0x358139['data']['commandParams'];_0x3867dd=_0x5bde8c[0x0]['tableWidth'],_0x4652d0=_0x5bde8c[0x0]['columnWidths'];break;}}_0x299a11({'table':_0x4cce2f,'tableWidth':_0x59b378,'columnWidths':_0xd19d54}),_0x1d46ee['markBlockFormat'](_0x4cce2f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3867dd,'columnWidths':_0x4652d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x6b7bda){if('formatBlock'!=_0x6b7bda['type']&&'formatInline'!=_0x6b7bda['type'])return;const {data:_0x2b0259}=_0x6b7bda;if(_0x2b0259&&'resizeTable'===_0x2b0259['formatGroupId']){const _0x49eee6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49eee6)};}}}class Mt extends _0x559983{['afterInit'](){const _0x433caf=this['editor'];_0x433caf['plugins']['has']('Template')&&_0x433caf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x559983{['afterInit'](){const _0x374510=this['editor'];if(!_0x374510['commands']['get']('insertTableOfContents'))return;_0x374510['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7bc32f=_0x374510['plugins']['get']('TrackChangesEditing'),_0x5cbf90=_0x374510['locale'];_0x7bc32f['descriptionFactory']['registerElementLabel']('tableOfContents',_0xfb58c2=>o(_0x5cbf90,'ELEMENT_TABLE_OF_CONTENTS',_0xfb58c2));}}class Bt extends _0x559983{['afterInit'](){const _0xe920c=this['editor'];if(!_0xe920c['plugins']['has']('Title'))return;const _0x419486=_0xe920c['plugins']['get']('TrackChangesEditing');_0x419486['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe920c['locale'],'ELEMENT_TITLE')),_0xe920c['model']['document']['registerPostFixer'](_0x4d77ac=>{let _0x4a20e8=!0x1;const _0x3e87b5=Array['from'](_0xe920c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b6846,data:_0x1353af}of _0x3e87b5){const {group:_0x25d295}=_0x419486['_splitMarkerName'](_0x3b6846);if('suggestion'!==_0x25d295||!_0x1353af['newRange'])continue;const _0x150c8f=_0x1353af['newRange'],_0x323c1f=_0x150c8f['end']['nodeBefore'];if(!_0x323c1f||!_0x323c1f['is']('element','title-content'))continue;if(!_0x150c8f['start']['isTouching'](_0x150c8f['end']))continue;const _0x322c40=_0xe920c['model']['schema']['getNearestSelectionRange'](_0x150c8f['end'],'forward');if(_0x322c40&&_0x322c40['isCollapsed']){const _0x36f3a7=_0x4d77ac['createRange'](_0x150c8f['start'],_0x322c40['start']);_0x36f3a7['isEqual'](_0x150c8f)||(_0x4d77ac['updateMarker'](_0x3b6846,{'range':_0x36f3a7}),_0x4a20e8=!0x0);}_0x4a20e8||(_0x4d77ac['removeMarker'](_0x3b6846),_0x4a20e8=!0x0);}return _0x4a20e8;});}}class Tt extends _0x559983{['afterInit'](){const _0x3e5909=this['editor'],_0x23fac3=_0x3e5909['plugins']['get']('TrackChangesEditing');_0x3e5909['plugins']['has']('Uploadcare')&&(_0x23fac3['enableCommand']('uploadcare'),_0x3e5909['plugins']['has']('UploadcareImageEdit')&&(_0x23fac3['enableCommand']('uploadcareImageEdit'),_0x23fac3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23fac3['registerBlockAttribute']('uploadcareImageId'),_0x23fac3['descriptionFactory']['registerDescriptionCallback'](_0x275b86=>{if('attribute'!=_0x275b86['type'])return;const {data:_0x4bbd3e}=_0x275b86;return _0x4bbd3e&&'uploadcareImageId'==_0x4bbd3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x559983{['afterInit'](){const _0x1318d0=this['editor'],_0x2e4e9b=_0x1318d0['plugins']['get']('TrackChangesEditing');_0x1318d0['plugins']['has']('UndoEditing')&&(_0x2e4e9b['enableCommand']('undo'),_0x2e4e9b['enableCommand']('redo'));}}class Ot extends _0x559983{static get['requires'](){return[At];}['afterInit'](){const _0x2de04f=this['editor'];if(!_0x2de04f['plugins']['has']('TableCaptionEditing'))return;_0x2de04f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x559983{['tableProperties'];['tableCellProperties'];constructor(_0x52d472){super(_0x52d472),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 _0x41f134=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xf3fce4 of this['tableProperties'])_0x41f134['enableCommand'](_0xf3fce4,(_0x44c4a0,_0x5a88b5)=>{const _0x462057=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xf3fce4,[_0x462057],this['tableProperties'],'tableProperties',_0x44c4a0,_0x5a88b5);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x44988b,_0x1aa11c)=>this['handleDiscardAction'](this['tableProperties'],_0x44988b,_0x1aa11c)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f9fd9 of this['tableCellProperties'])_0x41f134['enableCommand'](_0x1f9fd9,(_0x5b842a,_0x407da2)=>{const _0x46d848=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f9fd9,_0x46d848,this['tableCellProperties'],'tableCellProperties',_0x5b842a,_0x407da2);});_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41f134['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e02e0,_0x14f2f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e02e0,_0x14f2f0)),_0x41f134['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x41f134['descriptionFactory']['registerDescriptionCallback'](_0x1ff34e=>this['handleSuggestionDescription'](_0x1ff34e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b2e41,_0x4e4b49,_0x5ed8d7,_0xb6595f,_0x10bc50,_0x26d1e7){const _0x1e067b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26d1e7['batch'],()=>{for(const _0x5c102b of _0x4e4b49){if(this['_getSuggestion'](_0x5c102b,_0xb6595f))_0x10bc50(_0x26d1e7);else{const _0x2467e3={};for(const _0x14c385 of _0x5ed8d7){const _0x7cb274=_0x5c102b['getAttribute'](_0x14c385);void 0x0!==_0x7cb274&&(_0x2467e3[_0x14c385]=_0x7cb274);}_0x10bc50(_0x26d1e7),_0x1e067b['markBlockFormat'](_0x5c102b,{'commandParams':[_0x2467e3]},[],_0xb6595f);}}});}['handleDiscardAction'](_0x17ceab,_0x2b44d6,_0x14ad58){const _0x4c283d=_0x2b44d6[0x0]['start']['nodeAfter'],_0x15fea8=_0x14ad58['commandParams'][0x0];this['editor']['model']['change'](_0x708dd3=>{for(const _0x3f5e9c of _0x17ceab)void 0x0!==_0x15fea8[_0x3f5e9c]?_0x708dd3['setAttribute'](_0x3f5e9c,_0x15fea8[_0x3f5e9c],_0x4c283d):_0x708dd3['removeAttribute'](_0x3f5e9c,_0x4c283d);});}['handleSuggestionDescription'](_0x334bdb){if(_0x334bdb['data'])switch(_0x334bdb['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'](_0x10c081,_0x2ee6a5){const _0x243495=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50516a of _0x243495['getSuggestions']({'skipNotAttached':!0x0})){const _0x489d1b=_0x50516a['getContainedElement']();if(_0x50516a['subType']===_0x2ee6a5&&_0x489d1b===_0x10c081)return _0x50516a;}return null;}['_registerTablePropertiesAttributes'](){const _0xab091a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421d22=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x433b94 of _0x421d22){const _0x148ee3=_0x433b94['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xab091a['registerBlockAttribute'](_0x433b94),_0xab091a['descriptionFactory']['registerAttributeLabel'](_0x433b94,o(this['editor']['locale'],'FORMAT_'+_0x148ee3));}}}class Rt extends _0x559983{['afterInit'](){const _0x157a82=this['editor'];if(!_0x157a82['plugins']['has']('LineHeight'))return;const _0x3a7db7=_0x157a82['plugins']['get']('TrackChangesEditing'),_0x52ef3c=_0x157a82['locale'];_0x3a7db7['enableDefaultAttributesIntegration']('lineHeight'),_0x3a7db7['registerBlockAttribute']('lineHeight'),_0x3a7db7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52ef3c,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x559983{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x597f1a,_0x5e448f,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,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b062f){super(_0x4b062f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x300c5a,_0x2e449e,_0x2c44ef,_0x11ee52)=>{this['_model']['change'](()=>{for(const _0x4247a9 of[..._0x11ee52,..._0x2c44ef])this['_model']['markers']['has'](_0x4247a9)&&_0x4b062f['editing']['reconvertMarker'](_0x4247a9);});}),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']=_0x4b062f['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(),_0x4b062f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b062f['config']['get']('trackChanges.trackFormatChanges'),_0x4b062f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b062f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4b062f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x23bca9=this['editor'],_0x56645c=(_0x4d7565,_0x114800)=>{if('attribute'!=_0x4d7565)return'ck-suggestion-marker-'+_0x4d7565;const _0xc82358=_0x114800['split']('|')[0x0];return this['_isBlockAttribute'](_0xc82358)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23bca9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf09776=>{const {id:_0x4b03eb,authorId:_0x734fae,type:_0x5a0539,subType:_0x4c8384}=this['_splitMarkerName'](_0xf09776['markerName']),_0x548817=['ck-suggestion-marker',_0x56645c(_0x5a0539,_0x4c8384)];let _0x7db6b5=0xbb8;return this['activeMarkers']['includes'](_0xf09776['markerName'])&&(_0x548817['push']('ck-suggestion-marker--active'),_0x7db6b5=0xbc2),'deletion'==_0x5a0539&&(_0x7db6b5+=0x5),{'classes':_0x548817,'attributes':{'data-suggestion':_0x4b03eb,'data-author-id':_0x734fae},'priority':_0x7db6b5};}}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x4655c7=>{_0x4655c7['on']('addMarker:suggestion',(_0x47871c,_0x216b12,_0x1ece88)=>{if(!_0x1ece88['options']['showSuggestionHighlights'])return;const _0x33f679=_0x216b12['item'];if(!_0x33f679)return;const _0x3bb3da=_0x1ece88['mapper']['toViewElement'](_0x33f679);_0x23bca9['model']['schema']['isObject'](_0x33f679)&&_0x3bb3da&&!_0x3bb3da['getCustomProperty']('widget')&&_0x3bb3da['is']('containerElement')&&_0x1a071f(_0x3bb3da,_0x1ece88['writer']);},{'priority':'high'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18c326,_0x182639)=>{if(!_0x182639['options']['showSuggestionHighlights'])return null;const {id:_0x2dee30,authorId:_0x59d738,type:_0xc22673,subType:_0x3e5245}=this['_splitMarkerName'](_0x18c326['markerName']);return{'classes':['ck-suggestion-marker',_0x56645c(_0xc22673,_0x3e5245)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2dee30,'data-author-id':_0x59d738}};}});const _0x3b00ff=({showActiveMarkers:_0x3405bc=!0x0,isAttributeSuggestion:_0x5f44dc=!0x1}={})=>(_0x128766,_0x58a15c,_0x182d07)=>{if(!_0x58a15c['item'])return;const {id:_0x259d4d,authorId:_0x2e556c}=this['_splitMarkerName'](_0x58a15c['markerName']);if(_0x5f44dc){const _0xa88727=this['_suggestions']['get'](_0x259d4d),_0x12f7cb=this['_getAttributeKey'](_0xa88727);if(!this['_isBlockAttribute'](_0x12f7cb))return;}if(_0x58a15c['item']['is']('selection'))return void _0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);const _0x15e0bc=_0x182d07['mapper']['toViewElement'](_0x58a15c['item']);if(_0x58a15c['item']['is']('element')&&_0x23bca9['model']['schema']['isBlock'](_0x58a15c['item'])&&!_0x15e0bc['getCustomProperty']('addHighlight')){_0x182d07['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15e0bc),_0x182d07['writer']['setAttribute']('data-suggestion',_0x259d4d,_0x15e0bc),_0x182d07['writer']['setAttribute']('data-author-id',_0x2e556c,_0x15e0bc),_0x182d07['mapper']['bindElementToMarker'](_0x15e0bc,_0x58a15c['markerName']),_0x3405bc&&(this['activeMarkers']['includes'](_0x58a15c['markerName'])?_0x182d07['writer']['addClass']('ck-suggestion-marker--active',_0x15e0bc):_0x182d07['writer']['removeClass']('ck-suggestion-marker--active',_0x15e0bc));for(const _0x513398 of _0x23bca9['model']['createRangeIn'](_0x58a15c['item'])['getItems']())_0x182d07['consumable']['consume'](_0x513398,_0x128766['name']);_0x182d07['consumable']['consume'](_0x58a15c['item'],_0x128766['name']);}};_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x1fb4ec=>{_0x1fb4ec['on']('addMarker:suggestion:formatBlock',(_0x1ba42b,_0x23f210,_0x4220ac)=>{_0x4220ac['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1})(_0x1ba42b,_0x23f210,_0x4220ac);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['add'](_0x17be71=>{_0x17be71['on']('addMarker:suggestion:attribute',(_0x35f425,_0x5ed581,_0x343627)=>{_0x343627['options']['showSuggestionHighlights']&&_0x3b00ff({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35f425,_0x5ed581,_0x343627);},{'priority':'highest'});}),_0x23bca9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e8250,_0x312fb6)=>{if(_0x312fb6['options']['showSuggestionHighlights']){const {id:_0x374d5f,authorId:_0x675006}=this['_splitMarkerName'](_0x1e8250);return _0x1e8250['includes'](':split')||_0x1e8250['includes'](':merge')?{'group':'suggestion','name':_0x1e8250['substr'](0xb),'attributes':{'data-suggestion':_0x374d5f,'data-author-id':_0x675006}}:null;}return{'group':'suggestion','name':_0x1e8250['substr'](0xb)};}}),_0x23bca9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ea570,{writer:_0x410278})=>{let _0xdf8d70='suggestion:'+_0x1ea570['getAttribute']('suggestion-type')+':'+_0x1ea570['getAttribute']('id');return _0x1ea570['getAttribute']('marker-count')&&(_0xdf8d70+=':'+_0x1ea570['getAttribute']('marker-count')),_0x410278['createElement']('$marker',{'data-name':_0xdf8d70});}}),_0x23bca9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x12daec=>{_0x12daec['on']('addMarker:suggestion:formatBlock',_0x3b00ff(),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4b5e53=>{_0x4b5e53['on']('addMarker:suggestion:attribute',_0x3b00ff({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x4031a0=>{_0x4031a0['on']('removeMarker:suggestion:formatBlock',(_0x2d82ed,_0x34cfd5,_0x2eca93)=>{const _0x27b824=_0x2eca93['mapper']['markerNameToElements'](_0x34cfd5['markerName']);if(_0x27b824){for(const _0x3df03a of _0x27b824)_0x3df03a['getCustomProperty']('addHighlight')||(_0x2eca93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-suggestion',_0x3df03a),_0x2eca93['writer']['removeAttribute']('data-author-id',_0x3df03a),_0x2eca93['mapper']['unbindElementFromMarkerName'](_0x3df03a,_0x34cfd5['markerName']));}},{'priority':'high'});}),_0x23bca9['conversion']['for']('editingDowncast')['add'](_0x26b909=>{_0x26b909['on']('removeMarker:suggestion:attribute',(_0x492e9d,_0x24e9a9,_0x8b826e)=>{const _0x55bcdd=_0x8b826e['mapper']['markerNameToElements'](_0x24e9a9['markerName']);if(!_0x55bcdd)return;const {id:_0x45d054}=this['_splitMarkerName'](_0x24e9a9['markerName']),_0x267cce=this['_suggestions']['get'](_0x45d054),_0x532881=this['_getAttributeKey'](_0x267cce);if(this['_isBlockAttribute'](_0x532881)){for(const _0x29ed9b of _0x55bcdd)_0x29ed9b['getCustomProperty']('addHighlight')||(_0x8b826e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-suggestion',_0x29ed9b),_0x8b826e['writer']['removeAttribute']('data-author-id',_0x29ed9b),_0x8b826e['mapper']['unbindElementFromMarkerName'](_0x29ed9b,_0x24e9a9['markerName']));}},{'priority':'high'});}),_0x23bca9['model']['document']['registerPostFixer'](_0x4ba6c0=>{let _0xd61779=!0x1;const _0x4fbcab=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']()),_0x45faa4=new Set();for(const {name:_0x5ee20f,data:_0x303cc9}of _0x4fbcab){const {group:_0x43123c,type:_0x109ac6,subType:_0x4cf9ff,id:_0x55bb09}=this['_splitMarkerName'](_0x5ee20f);if('suggestion'!==_0x43123c)continue;const _0x53d43c=this['_suggestions']['get'](_0x55bb09);if(null!=_0x303cc9['newRange']){'formatInline'==_0x109ac6&&(_0xd61779=_0xd61779||Gt(_0x303cc9['newRange'],_0x5ee20f,_0x4ba6c0,_0x23bca9['model']['schema']));const _0x4a4692='attribute'==_0x109ac6&&this['_isBlockAttribute'](_0x4cf9ff['split']('|')[0x0]);if(_0x303cc9['newRange']['isCollapsed']||'$graveyard'==_0x303cc9['newRange']['root']['rootName']||'formatBlock'==_0x109ac6&&!Jt(_0x303cc9['newRange'])||_0x4a4692&&!Jt(_0x303cc9['newRange'])||'deletion'==_0x109ac6&&!Kt(_0x303cc9['newRange']))_0x4ba6c0['removeMarker'](_0x5ee20f),_0xd61779=!0x0;else{if(!_0x53d43c||!_0x53d43c['isInContent'])continue;if(_0x303cc9['newRange']&&_0x303cc9['oldRange']&&_0x303cc9['newRange']['isEqual'](_0x303cc9['oldRange']))continue;_0x45faa4['add'](_0x53d43c);}}}return _0x45faa4['size']>0x0&&(_0xd61779=!!this['_joinWithAdjacentSuggestions'](_0x45faa4)||_0xd61779),_0xd61779;}),_0x23bca9['model']['document']['registerPostFixer'](_0x101241=>{let _0x30b477=!0x1;for(const _0x77bfc8 of _0x23bca9['model']['document']['differ']['getChanges']())if('insert'==_0x77bfc8['type'])for(const _0x36dfe5 of this['_suggestions']['values']()){if(_0x36dfe5['isMultiRange']||!_0x36dfe5['isInContent'])continue;const _0x50f72b='formatBlock'==_0x36dfe5['type'],_0x4618b8=this['_getAttributeKey'](_0x36dfe5),_0x2f0c33=_0x4618b8&&this['_isBlockAttribute'](_0x4618b8);if(!_0x50f72b&&!_0x2f0c33)continue;const _0x124d1d=_0x36dfe5['getFirstRange']();if(_0x124d1d['start']['parent']!=_0x124d1d['end']['parent']&&!_0x124d1d['end']['isAtEnd']){const _0x4e1821=_0x23bca9['model']['createPositionAt'](_0x124d1d['start']['nodeAfter'],'end'),_0x2f90a9=_0x23bca9['model']['createRange'](_0x124d1d['start'],_0x4e1821);_0x101241['updateMarker'](_0x36dfe5['getFirstMarker'](),{'range':_0x2f90a9}),_0x30b477=!0x0;}}return _0x30b477;}),_0x23bca9['model']['document']['registerPostFixer'](_0x7f28d3=>this['_processAttributeChanges'](_0x7f28d3)),_0x23bca9['model']['document']['registerPostFixer'](_0x15fb5c=>!_0x15fb5c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x15fb5c)),_0x23bca9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23bca9['model']['document']['on']('change:data',(_0x838a48,_0x474892)=>{if(!_0x474892['isLocal']||_0x474892['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x455f18=_0x23bca9['model']['document']['differ']['getChanges']();if(0x0==_0x455f18['length'])return;const _0x115431=[],_0x5292e2=_0x455f18['filter'](_0x30bf65=>'attribute'==_0x30bf65['type']),_0x5e7f2a=_0x455f18['filter'](_0x1002b2=>'insert'==_0x1002b2['type']&&'$text'!=_0x1002b2['name']);for(const _0x5996bc of _0x5292e2)this['_isRegisteredAttribute'](_0x5996bc['attributeKey'])&&_0x115431['push']({'key':_0x5996bc['attributeKey'],'newValue':_0x5996bc['attributeNewValue'],'oldValue':_0x5996bc['attributeOldValue'],'range':Ht(_0x5996bc['range'],_0x23bca9['model'])});for(const _0x15ec31 of _0x5e7f2a){if('rename'!=_0x15ec31['action']&&'refresh'!=_0x15ec31['action'])continue;const _0x2da076=qt(_0x15ec31['position']['nodeAfter'],_0x23bca9['model']),_0x4f6316=_0x15ec31['before'];'rename'==_0x15ec31['action']&&_0x115431['push']({'key':m,'newValue':_0x15ec31['name'],'oldValue':_0x4f6316['name'],'range':_0x2da076});for(const [_0x29d76b,_0xc451ef]of _0x4f6316['attributes']){if(!this['_isRegisteredAttribute'](_0x29d76b))continue;const _0x84277b=_0x15ec31['attributes']['get'](_0x29d76b);_0xc451ef!==_0x84277b&&_0x115431['push']({'key':_0x29d76b,'newValue':_0x84277b,'oldValue':_0xc451ef,'range':_0x2da076});}for(const [_0x4fb0b1,_0xc1111f]of _0x15ec31['attributes'])this['_isRegisteredAttribute'](_0x4fb0b1)&&(_0x4f6316['attributes']['has'](_0x4fb0b1)||_0x115431['push']({'key':_0x4fb0b1,'newValue':_0xc1111f,'oldValue':null,'range':_0x2da076}));}0x0!=_0x115431['length']&&_0x23bca9['model']['enqueueChange'](_0x474892,_0x16c7bd=>{const _0x339dd1=_0x20cf05();for(const {range:_0x4cd2b9,key:_0x33f81c,oldValue:_0x4b8d4f,newValue:_0x462c39}of _0x115431)this['markAttributeChange'](_0x4cd2b9,_0x33f81c,_0x4b8d4f,_0x462c39,{'groupId':_0x339dd1});this['_reduceExistingSuggestions'](_0x16c7bd,_0x115431);});},{'priority':'lowest'}),_0x23bca9['model']['markers']['on']('update:suggestion',(_0x3bb1d6,_0x446720,_0x4c7e46)=>{if(null==_0x4c7e46){const {id:_0x200c93}=this['_splitMarkerName'](_0x446720['name']),_0x27e5de=this['_suggestions']['get'](_0x200c93);_0x27e5de&&_0x27e5de['addMarkerName'](_0x446720['name']);}}),_0x23bca9['model']['document']['on']('change:data',()=>{const _0x51e784=Array['from'](_0x23bca9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46ec89=>'suggestion'===this['_splitMarkerName'](_0x46ec89['name'])['group']);if(0x0===_0x51e784['length'])return;_0x51e784['sort']((_0x1f845b,_0x2379a9)=>{const _0xb3271=_0x1f845b['data']['oldRange'],_0x1251dd=_0x2379a9['data']['oldRange'];return null===_0xb3271&&null===_0x1251dd?0x0:null===_0xb3271&&null!==_0x1251dd?-0x1:null!==_0xb3271&&null===_0x1251dd?0x1:_0xb3271['start']['isBefore'](_0x1251dd['start'])?-0x1:0x1;});const _0x14b2f8=new Set(),_0x560b69=new Set();for(const {name:_0x2993c4,data:_0x487dec}of _0x51e784){const {id:_0x3d09f8}=this['_splitMarkerName'](_0x2993c4);if(null===_0x487dec['oldRange']){const _0x69a6dd=this['_handleNewSuggestionMarker'](_0x2993c4);_0x560b69['add'](_0x69a6dd);}else{const _0x55db7e=this['_suggestions']['get'](_0x3d09f8);null!==_0x487dec['newRange']||_0x55db7e['isInContent']?(_0x14b2f8['add'](_0x55db7e['head']),_0x560b69['add'](_0x55db7e)):this['_removeSuggestion'](_0x55db7e);}}_0x560b69['size']>0x0&&this['_refreshSuggestionsChain'](_0x560b69);for(const _0x59587b of _0x14b2f8)this['fire']('suggestionChanged',_0x59587b);}),_0x23bca9['model']['on']('applyOperation',(_0x35a964,_0x56cb30)=>{const _0x38d2e2=_0x56cb30[0x0];if(!this['_suggestions']['size'])return;if(!_0x38d2e2['isDocumentOperation'])return;if(_0x38d2e2['batch']['isUndo']||!_0x38d2e2['batch']['isLocal'])return;let _0x490ad9,_0x4d06db;switch(_0x38d2e2['type']){case'insert':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['position']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;case'split':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['splitPosition']),_0x4d06db=_0x23bca9['model']['createPositionAt'](_0x38d2e2['moveTargetPosition']);break;case'move':_0x490ad9=_0x23bca9['model']['createPositionAt'](_0x38d2e2['targetPosition']),_0x4d06db=_0x490ad9['getShiftedBy'](_0x38d2e2['howMany']);break;default:return;}const _0x5e2848=_0x23bca9['model']['createRange'](_0x490ad9,_0x4d06db);_0x23bca9['model']['change'](()=>{for(const {suggestion:_0x19947f,meta:_0x17e615}of this['_findSuggestions'](_0x5e2848)){if(_0x19947f['isMultiRange'])continue;if('formatInline'==_0x19947f['type'])continue;const _0x3f34ff=this['_getAttributeKey'](_0x19947f);if(_0x3f34ff&&this['_isBlockAttribute'](_0x3f34ff)&&'split'!=_0x38d2e2['type'])continue;const _0x54aa49=_0x19947f['data']&&_0x19947f['data']['multipleBlocks'];('formatBlock'!=_0x19947f['type']||'split'==_0x38d2e2['type']&&!_0x54aa49)&&(_0x17e615['containsRangeInObject']||'insertion'==_0x19947f['type']&&_0x17e615['isOwn']||_0x19947f['getFirstRange']()['containsRange'](_0x5e2848)&&this['_breakSuggestionMarker'](_0x19947f,_0x490ad9,_0x4d06db));}});},{'priority':'lowest'}),_0x23bca9['model']['on']('deleteContent',(_0x58fc64,_0x492cf2)=>{const _0x3b4c3a=_0x492cf2[0x0],_0x29f5d6=_0x492cf2[0x1];if(_0x29f5d6&&_0x29f5d6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3b4c3a['isCollapsed'])return;const _0x264b8b=_0x23bca9['model']['schema'],{start:_0x42ed71,end:_0x86923b}=_0x3b4c3a['getFirstRange'](),_0x24535e=_0x42ed71['nodeAfter']&&_0x264b8b['isLimit'](_0x42ed71['nodeAfter'])?null:_0x264b8b['getNearestSelectionRange'](_0x42ed71,'forward'),_0x912057=_0x86923b['nodeBefore']&&_0x264b8b['isLimit'](_0x86923b['nodeBefore'])?null:_0x264b8b['getNearestSelectionRange'](_0x86923b,'backward'),_0x1fb918=_0x23bca9['model']['createRange'](_0x24535e?_0x24535e['start']:_0x42ed71,_0x912057?_0x912057['end']:_0x86923b);_0x23bca9['model']['change'](_0x2d7843=>{this['markDeletion'](_0x1fb918);const _0x335305=_0x23bca9['model']['schema']['getNearestSelectionRange'](_0x1fb918['start']);_0x3b4c3a['is']('documentSelection')?_0x2d7843['setSelection'](_0x335305):_0x3b4c3a['setTo'](_0x335305);}),_0x58fc64['stop']();},{'priority':_0x3a0027['normal']+0xa}),_0x23bca9['model']['on']('insertContent',(_0x2f18c3,_0x4d1122)=>{const _0x59e4c6=_0x4d1122[_0x4d1122['length']-0x1];_0x59e4c6&&_0x59e4c6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23bca9['model']['change'](()=>{let _0xfda2b7=_0x23bca9['model']['insertContent'](_0x4d1122[0x0],_0x4d1122[0x1],_0x4d1122[0x2],{'forceDefaultExecution':!0x0});if(!_0xfda2b7)return;_0x2f18c3['return']=_0xfda2b7['clone']();const _0x35ad52=_0xfda2b7['end']['nodeBefore'],_0x46fef5=_0x23bca9['model']['schema'];_0x35ad52&&_0x46fef5['isBlock'](_0x35ad52)&&!_0x46fef5['isObject'](_0x35ad52)&&(_0xfda2b7=_0x23bca9['model']['createRange'](_0xfda2b7['start'],_0x23bca9['model']['createPositionAt'](_0x35ad52,'end'))),this['markInsertion'](_0xfda2b7);}),_0x2f18c3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x14ced0=new D(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('acceptSuggestion',_0x14ced0),this['enableCommand']('acceptSuggestion');const _0x284cac=new M(_0x23bca9,this['_suggestions']);_0x23bca9['commands']['add']('discardSuggestion',_0x284cac),this['enableCommand']('discardSuggestion'),_0x23bca9['commands']['add']('acceptAllSuggestions',new $(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23bca9['commands']['add']('discardAllSuggestions',new $(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23bca9['commands']['add']('acceptSelectedSuggestions',new B(_0x23bca9,_0x14ced0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23bca9['commands']['add']('discardSelectedSuggestions',new B(_0x23bca9,_0x284cac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x320370=_0x23bca9['plugins']['get']('CommentsRepository');this['listenTo'](_0x320370,'addComment',(_0x118770,{threadId:_0x51bf3a})=>{const _0x49a7fc=this['_suggestions']['get'](_0x51bf3a);_0x49a7fc&&_0x49a7fc['commentThread']&&0x1===_0x49a7fc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf3a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x320370,'removeComment',(_0x1a9bc4,{threadId:_0x4ae482})=>{const _0x4d806b=this['_suggestions']['get'](_0x4ae482);_0x4d806b&&_0x4d806b['commentThread']&&!_0x4d806b['commentThread']['length']&&this['_updateSuggestionData'](_0x4ae482,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1b9b0d){const _0x4f5590=_0x24c341([0x6c,0x79,0x4b,0x6b,0x32,0x58,0x75,0x74,0x78,0x55,0x61,0x53,0x33,0x6d,0x35,0x38,0x5a,0x41,0x64,0x4f,0x45,0x4a,0x50,0x36,0x69,0x65,0x6f,0x59,0x42,0x66,0x57,0x76,0x39,0x31,0x56,0x49,0x30,0x70,0x48,0x34,0x72,0x7a,0x6e,0x4d,0x68,0x52,0x77,0x67,0x62,0x6a,0x37,0x73,0x46,0x54,0x63,0x43,0x71,0x51,0x47,0x4c,0x4e,0x44]),_0x5dbf5b=0x59bb6ff8,_0x55432d=0x59bc0330^_0x5dbf5b,_0x58ce10=window[_0x24c341([0x44,0x61,0x74,0x65])][_0x24c341([0x6e,0x6f,0x77])](),_0x3b6ec9=_0x1b9b0d[_0x24c341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15aba8=new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1527fe=>{_0x3b6ec9[_0x24c341([0x6f,0x6e,0x63,0x65])](_0x24c341([0x72,0x65,0x61,0x64,0x79]),_0x1527fe);}),_0x160b80={[_0x24c341([0x6b,0x74,0x79])]:_0x24c341([0x45,0x43]),[_0x24c341([0x75,0x73,0x65])]:_0x24c341([0x73,0x69,0x67]),[_0x24c341([0x63,0x72,0x76])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36]),[_0x24c341([0x78])]:_0x24c341([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]),[_0x24c341([0x79])]:_0x24c341([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]),[_0x24c341([0x61,0x6c,0x67])]:_0x24c341([0x45,0x53,0x32,0x35,0x36])},_0x135718=_0x3b6ec9[_0x24c341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24c341([0x67,0x65,0x74])](_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a2cad(){let _0x437eba,_0x3eef64=null,_0x111617=null;try{if(_0x135718==_0x24c341([0x47,0x50,0x4c]))return _0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x437eba=_0x5d0ce2(),!_0x437eba)return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x111617=_0x197b1a(_0x437eba[_0x24c341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x437eba[_0x24c341([0x6a,0x74,0x69])])),await _0x770d51()?_0x456959()?_0x574a8c()?_0x24c341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xac9589()?(_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3eef64=_0x34a973(_0x24c341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24c341([0x74,0x72,0x69,0x61,0x6c])&&(_0x3eef64=_0x34a973(_0x24c341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304eec()):_0x24c341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24c341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x574a8c(){const _0x5efd7a=[_0x24c341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24c341([0x74,0x72,0x69,0x61,0x6c])][_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58ce10/0x3e8:0xe10*_0x55432d;return _0x437eba[_0x24c341([0x65,0x78,0x70])]<_0x5efd7a;}function _0x456959(){const _0x29f04a=_0x437eba[_0x24c341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29f04a)return!0x1;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x54,0x43])))return!0x0;if(_0x29f04a[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x52,0x54,0x43]))){if(_0x39bb6f())return!0x0;if(_0x28fc5f()||_0x4420d4())return!0x0;}return!0x1;}function _0xac9589(){const _0x4abc13=_0x437eba[_0x24c341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4abc13||0x0==_0x4abc13[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x399d7f}=new URL(window[_0x24c341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4abc13[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x399d7f))return!0x0;const _0x3d186a=_0x399d7f[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));return _0x4abc13[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26b84f=>_0x26b84f[_0x24c341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24c341([0x2a])))[_0x24c341([0x6d,0x61,0x70])](_0x3f8220=>_0x3f8220[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])))[_0x24c341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e5b8d=>_0x1e5b8d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x6d,0x61,0x70])](_0x59cff1=>Array(_0x3d186a[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x59cff1[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24c341([0x66,0x69,0x6c,0x6c])](_0x59cff1[0x0]===_0x24c341([0x2a])?_0x24c341([0x2a]):'')[_0x24c341([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x59cff1))[_0x24c341([0x73,0x6f,0x6d,0x65])](_0x222a18=>_0x3d186a[_0x24c341([0x65,0x76,0x65,0x72,0x79])]((_0x188dac,_0x32310)=>_0x222a18[_0x32310]===_0x188dac||_0x222a18[_0x32310]===_0x24c341([0x2a])));}function _0x304eec(){return _0x3eef64&&_0x111617?new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x428bd8,_0x440a5f)=>{_0x3eef64[_0x24c341([0x74,0x68,0x65,0x6e])](_0x428bd8,_0x440a5f),_0x111617[_0x24c341([0x74,0x68,0x65,0x6e])](_0x42f73f=>{_0x42f73f!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x428bd8(_0x42f73f);},_0x440a5f);}):_0x3eef64||_0x111617||_0x24c341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x197b1a(_0x4d5242,_0x212910){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2548e7=>{if(_0x385652())return _0x2548e7(_0x24c341([0x56,0x61,0x6c,0x69,0x64]));_0x4b2144(),_0x3b6ec9[_0x24c341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x284aaa=!0x1;const _0x36f1b7=_0x20cf05();function _0x816ede(_0x3c64f0){return!!_0x3c64f0&&(typeof _0x3c64f0===_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c64f0===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c64f0[_0x24c341([0x74,0x68,0x65,0x6e])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c64f0[_0x24c341([0x63,0x61,0x74,0x63,0x68])]===_0x24c341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57a2b1(_0x30a75e){_0x497ff5(_0x30a75e)[_0x24c341([0x74,0x68,0x65,0x6e])](_0x56f46c=>{if(!_0x56f46c||_0x56f46c[_0x24c341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24c341([0x6f,0x6b]))return _0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50cf3b(_0x4e569b(_0x36f1b7+_0x212910))!=_0x56f46c[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24c341([0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x3c6bce=>(_0x1b0923(),_0x3c6bce),()=>{const _0x238a8c=_0x55dda7();return null==_0x238a8c?(_0x1b0923(),_0x24c341([0x56,0x61,0x6c,0x69,0x64])):_0x24c341(_0x58ce10-_0x238a8c>(0x7db7ebf8^_0x5dbf5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24c341([0x74,0x68,0x65,0x6e])](_0x2548e7)[_0x24c341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3949f2=0x598d8178^_0x5dbf5b;function _0x1b0923(){const _0x403bb0=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0x1516e=_0x1e5e12(_0x50cf3b(window[_0x24c341([0x4d,0x61,0x74,0x68])][_0x24c341([0x63,0x65,0x69,0x6c])](_0x58ce10/_0x3949f2)));window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403bb0,_0x1516e);}function _0x55dda7(){const _0x214e6e=_0x24c341([0x6c,0x6c,0x63,0x74,0x2d])+_0x50cf3b(_0x4e569b(_0x4d5242)),_0xe5eb1d=window[_0x24c341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24c341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x214e6e);return _0xe5eb1d?window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5e12(_0xe5eb1d),0x10)*_0x3949f2:null;}function _0x497ff5(_0x33cffd){return new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33c0ee,_0x220719)=>{_0x33cffd[_0x24c341([0x74,0x68,0x65,0x6e])](_0x33c0ee,_0x220719),window[_0x24c341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x220719,0x59babb38^_0x5dbf5b);});}}_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x159182,_0x247d76)=>{if(_0x247d76[0x0]!=_0x4d5242)return _0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x247d76[0x1]={..._0x247d76[0x1],[_0x24c341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36f1b7};},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x68,0x69,0x67,0x68])}),_0x3b6ec9[_0x24c341([0x6f,0x6e])](_0x24c341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x124ea6=>{_0x816ede(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x284aaa=!0x0,_0x57a2b1(_0x124ea6[_0x24c341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24c341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24c341([0x6c,0x6f,0x77])}),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>{_0x284aaa||_0x2548e7(_0x24c341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x385652(){return _0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24c341([0x61,0x75,0x74,0x6f]);}function _0x4b2144(){_0x3b6ec9[_0x24c341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24c341([0x76,0x69,0x65,0x77])][_0x24c341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24c341([0x61,0x75,0x74,0x6f]);}}function _0x34a973(_0x408ec9){const _0x583ec6=[new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f5d71=>setTimeout(_0x2f5d71,0x59b25134^_0x5dbf5b)),_0x15aba8[_0x24c341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ec0b=>{let _0x35c87f=0x0;_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x6f,0x6e])](_0x24c341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x119f98,_0x2d079f)=>{_0x2d079f[0x0][_0x24c341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35c87f++,_0x35c87f==(0x59bb6e00^_0x5dbf5b)&&(_0x23ec0b(),_0x119f98[_0x24c341([0x6f,0x66,0x66])]());});}))];return window[_0x24c341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24c341([0x72,0x61,0x63,0x65])](_0x583ec6)[_0x24c341([0x74,0x68,0x65,0x6e])](()=>_0x408ec9);}async function _0x1a6564(){await _0x15aba8,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x6d,0x6f,0x64,0x65,0x6c])][_0x24c341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378e18,_0x3b6ec9[_0x24c341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24c341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39bb6f(){return _0x5edec2(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1090ef(_0x24c341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24c341([0x73,0x74,0x61,0x74,0x65])]==_0x24c341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x28fc5f(){return _0x5edec2(_0x24c341([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 _0x4420d4(){return _0x5edec2(_0x24c341([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51f8ff(_0xd7fb4b){const _0x227a73=_0x40ec2b();_0x3b6ec9[_0x227a73]=_0x24c341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd7fb4b,_0xd7fb4b!=_0x24c341([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6564();}function _0x40ec2b(){const _0x1ccede=window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24c341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24c341([0x6e,0x6f,0x77])]())[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24c341([0x2e]),'');let _0x1c8d76=_0x24c341([0x6c]);for(let _0x5e1575=0x0;_0x5e1575<_0x1ccede[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e1575+=0x2){let _0x451738=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ccede[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e1575,_0x5e1575+0x2));_0x451738>=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x451738-=_0x4f5590[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c8d76+=_0x4f5590[_0x451738];}return _0x1c8d76;}function _0x5d0ce2(){const _0x26172d=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e]));if(0x3!=_0x26172d[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9970(_0x26172d[0x1]);function _0x4e9970(_0x17f50f){const _0x5ba533=_0xb47c02(_0x17f50f);return _0x5ba533&&_0x329639()?_0x5ba533:null;function _0x329639(){const _0x36b7b2=_0x5ba533[_0x24c341([0x6a,0x74,0x69])],_0x16b391=window[_0x24c341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18dd13={..._0x5ba533,[_0x24c341([0x6a,0x74,0x69])]:_0x36b7b2[_0x24c341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x36b7b2[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18dd13[_0x24c341([0x76,0x63])],_0x4e569b(_0x18dd13)==_0x16b391;}}}async function _0x770d51(){let _0x49eb4f=!0x0;try{const _0x44145b=_0x135718[_0x24c341([0x73,0x70,0x6c,0x69,0x74])](_0x24c341([0x2e])),[_0x48b6af,_0x3197e6,_0x4fc7eb]=_0x44145b;return _0x4f7fd1(_0x48b6af),await _0x43c698(_0x48b6af,_0x3197e6,_0x4fc7eb),_0x49eb4f;}catch{return!0x1;}function _0x4f7fd1(_0x40b42e){const _0xfd3d63=_0xb47c02(_0x40b42e);_0xfd3d63&&_0xfd3d63[_0x24c341([0x61,0x6c,0x67])]==_0x24c341([0x45,0x53,0x32,0x35,0x36])||(_0x49eb4f=!0x1);}async function _0x43c698(_0x25ee29,_0x573de5,_0x3bd54d){const _0x581cb5=window[_0x24c341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24c341([0x66,0x72,0x6f,0x6d])](_0x559380(_0x3bd54d),_0x36fcb4=>_0x36fcb4[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce4c=new window[(_0x24c341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24c341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x25ee29+_0x24c341([0x2e])+_0x573de5),_0x107818=window[_0x24c341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24c341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107818)return;const _0x1d609b=await _0x107818[_0x24c341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24c341([0x6a,0x77,0x6b]),_0x160b80,{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24c341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107818[_0x24c341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x45,0x43,0x44,0x53,0x41]),[_0x24c341([0x68,0x61,0x73,0x68])]:{[_0x24c341([0x6e,0x61,0x6d,0x65])]:_0x24c341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d609b,_0x581cb5,_0x34ce4c)||(_0x49eb4f=!0x1);}}function _0xb47c02(_0x46e5e6){return _0x46e5e6[_0x24c341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24c341([0x65,0x79]))?JSON[_0x24c341([0x70,0x61,0x72,0x73,0x65])](_0x559380(_0x46e5e6)):null;}function _0x559380(_0x5ea9ef){return window[_0x24c341([0x61,0x74,0x6f,0x62])](_0x5ea9ef[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24c341([0x2b]))[_0x24c341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24c341([0x2f])));}function _0x4e569b(_0x219128){let _0x443470=0x1505;function _0x3d957c(_0x14ce22){for(let _0x2b5dcf=0x0;_0x2b5dcf<_0x14ce22[_0x24c341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b5dcf++){const _0x538b53=_0x14ce22[_0x24c341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b5dcf);_0x443470=(_0x443470<<0x5)+_0x443470+_0x538b53,_0x443470&=_0x443470;}}function _0x3c7877(_0x5539d1){Array[_0x24c341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5539d1)?_0x5539d1[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3c7877):_0x5539d1&&typeof _0x5539d1==_0x24c341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24c341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5539d1)[_0x24c341([0x73,0x6f,0x72,0x74])]()[_0x24c341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd4c56c,_0x1fc15d])=>{_0x3d957c(_0xd4c56c),_0x3c7877(_0x1fc15d);}):_0x3d957c(window[_0x24c341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5539d1));}return _0x3c7877(_0x219128),_0x443470>>>0x0;}function _0x50cf3b(_0x54dc82){return _0x54dc82[_0x24c341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24c341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24c341([0x30]));}function _0x1e5e12(_0x2ebc07){return _0x2ebc07[_0x24c341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24c341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24c341([0x6a,0x6f,0x69,0x6e])]('');}function _0x5edec2(_0x244efb){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x68,0x61,0x73])](_0x244efb);}function _0x1090ef(_0x2dc17b){return _0x3b6ec9[_0x24c341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24c341([0x67,0x65,0x74])](_0x2dc17b);}function _0x378e18(){}function _0x24c341(_0x508586){return _0x508586['map'](_0x295ee4=>String['fromCharCode'](_0x295ee4))['join']('');}_0x51f8ff(await _0x3a2cad());}(this);}set['adapter'](_0x4a5ed8){if(this['_adapter'])throw new _0x346a74('track-changes-adapter-already-set',this);this['_adapter']=_0x4a5ed8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x42acdd=!0x1,toJSON:_0x52e880=!0x1}={}){const _0x1c0216=[];for(const _0x27a263 of this['_suggestions']['values']())_0x42acdd&&!_0x27a263['isInContent']||_0x1c0216['push'](_0x27a263);return _0x52e880?_0x1c0216['map'](_0x47463f=>_0x47463f['toJSON']()):_0x1c0216;}['getSuggestion'](_0x1ef5c0){const _0x4f0b72=this['_suggestions']['get'](_0x1ef5c0);if(!_0x4f0b72)throw new _0x346a74('track-changes-suggestion-not-found',this);return _0x4f0b72;}['hasSuggestion'](_0x39d5c1){return this['_suggestions']['has'](_0x39d5c1);}['addSuggestionData'](_0xd601a2){const {authorId:_0x3f7b62,id:_0x27d0ce,originalSuggestionId:_0x7da85b,attributes:_0x192f43}=_0xd601a2,[_0x58379c,_0x6cc3fc]=_0xd601a2['type']['split'](':'),_0x2b6e89=this['_suggestions']['get'](_0x27d0ce)||this['_createSuggestion'](_0x58379c,_0x6cc3fc,_0x27d0ce,_0x3f7b62,_0x192f43,_0x7da85b);if(this['_addThreadToSuggestion'](_0x2b6e89),this['_checkSuggestionCorrectness'](_0x2b6e89,_0x58379c,_0x6cc3fc||null,_0x3f7b62),_0x2b6e89['createdAt']=_0xd601a2['createdAt'],_0x2b6e89['_isDataLoaded']=!0x0,_0x192f43&&_0x192f43['@external']){const _0x10c6b2=_0x192f43['@external'],_0x3cd7f4=this['_getExternalAuthor'](_0x10c6b2['authorName']);_0x2b6e89['authoredAt']=_0x10c6b2['createdAt'],_0x2b6e89['author']=_0x3cd7f4,_0x2b6e89['isExternal']=!0x0;}else _0x2b6e89['authoredAt']=_0xd601a2['createdAt'];switch(_0xd601a2['data']&&(_0x2b6e89['data']=_0xd601a2['data']),_0xd601a2['attributes']&&(_0x2b6e89['attributes']=_0xd601a2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b6e89['_saved']=!0x0),this['_suggestionState']['get'](_0x2b6e89)){case'notReady':this['_suggestionState']['set'](_0x2b6e89,'dataReady');break;case'markerReady':_0x2b6e89['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b6e89])),this['_refreshSuggestionsChain'](new Set([_0x2b6e89])),this['_suggestionState']['set'](_0x2b6e89,'ready'),this['fire']('suggestionLoaded',_0x2b6e89)):this['_suggestionState']['set'](_0x2b6e89,'removed');}return _0x2b6e89;}['acceptSuggestion'](_0x5995cb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c2461 of _0x5995cb['getAllAdjacentSuggestions']())_0x4c2461['accept']();});});}['discardSuggestion'](_0x5b0a4d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50f61e of _0x5b0a4d['getAllAdjacentSuggestions']())_0x50f61e['discard']();});});}['enableCommand'](_0x3ddb3e,_0x4e9817){const _0x17217c=this['editor']['commands']['get'](_0x3ddb3e);if(!_0x17217c)throw new _0x346a74('track-changes-command-not-found',this,{'commandName':_0x3ddb3e});if(this['_enabledCommands']['has'](_0x17217c))throw new _0x346a74('track-changes-enable-command-twice',this,{'commandName':_0x3ddb3e});this['_enabledCommands']['add'](_0x17217c),_0x4e9817&&_0x17217c['on']('execute',(_0x2024e4,_0x475612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x475612['length']>0x0&&_0x475612[_0x475612['length']-0x1]&&_0x475612[_0x475612['length']-0x1]['forceDefaultExecution']?_0x475612['pop']():(_0x2024e4['return']=_0x4e9817((..._0x546efd)=>_0x17217c['execute'](..._0x546efd,{'forceDefaultExecution':!0x0}),..._0x475612),_0x2024e4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212253){let _0x173322,_0x9d6393;const _0x51c4bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173322=_0x212253();}catch(_0x2291bb){_0x9d6393=_0x2291bb;}return _0x51c4bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9d6393&&_0x346a74['rethrowUnexpectedError'](_0x9d6393,this),_0x173322;}['markInsertion'](_0x1dbd5d,_0xea407c=null,_0x1adea4={}){if(_0x1dbd5d['isCollapsed'])return null;const _0x3e2184=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1adea4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x377f30,meta:_0x3d2ea9}of this['_findSuggestions'](_0x1dbd5d,'insertion'))if(_0x3d2ea9['isOwn']){if(!_0x3d2ea9['isNextTo']){if(_0x3d2ea9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x377f30,_0x1adea4))continue;return _0x377f30;}if(Qt(_0x377f30,_0x1adea4))return _0x377f30;this['_breakSuggestionMarker'](_0x377f30,_0x1dbd5d['start'],_0x1dbd5d['end']);break;}if(_0xea407c==_0x377f30['subType']&&Qt(_0x377f30,_0x1adea4)){const _0x51af6f=_0x377f30['getFirstRange']();return _0x51af6f['start']['isEqual'](_0x1dbd5d['end'])?this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x1dbd5d['start'],_0x51af6f['end'])):this['_setSuggestionRange'](_0x377f30,this['_model']['createRange'](_0x51af6f['start'],_0x1dbd5d['end'])),_0x377f30;}}const _0x5162b0=_0x20cf05(),_0x495d98=_0x3e2184['id'],_0x23bdfc=_0xea407c?'insertion:'+_0xea407c:'insertion',_0x2e9d0f=this['_setSuggestionData']({'id':_0x5162b0,'type':_0x23bdfc,'createdAt':new Date(),'authorId':_0x495d98,'attributes':_0x1adea4});return this['_addSuggestionMarker'](_0x23bdfc,_0x5162b0,_0x495d98,_0x1dbd5d),_0x2e9d0f;}['markMultiRangeInsertion'](_0x367bde,_0x2f76cf='multi',_0xc01d3a={}){const _0x5274c6=this['editor']['plugins']['get']('Users')['me'],_0x43a906=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f76cf,'join');this['_trackingSessionId']&&(_0xc01d3a['trackingSessionId']=this['_trackingSessionId']);for(const _0x39c486 of this['getSuggestions']())if(_0x39c486['author']['id']==_0x5274c6['id']&&'insertion'==_0x39c486['type']&&_0x39c486['subType']==_0x2f76cf&&Qt(_0x39c486,_0xc01d3a)&&(_0x43a906(_0x39c486['getRanges'](),_0x367bde)||_0x43a906(_0x367bde,_0x39c486['getRanges']()))){for(const _0x4dc499 of _0x367bde)_0x39c486['addRange'](_0x4dc499);return _0x39c486;}for(const {suggestion:_0x1f74f8,meta:_0x2c19fe}of this['_findSuggestions'](_0x367bde,'insertion')){if(!_0x2c19fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2c19fe['containsRangeInObject'])continue;if(!Qt(_0x1f74f8,_0xc01d3a))continue;let _0x36d688=!0x0;for(const _0x42038d of _0x1f74f8['getRanges']())for(const _0x33ea64 of _0x367bde)if(!_0x42038d['containsRange'](_0x33ea64)){_0x36d688=!0x1;break;}if(_0x36d688)return _0x1f74f8;}const _0x322f1f=_0x20cf05(),_0x27e47c=_0x5274c6['id'],_0xd1eec='insertion:'+_0x2f76cf,_0x41b3d7=this['_setSuggestionData']({'id':_0x322f1f,'type':_0xd1eec,'createdAt':new Date(),'authorId':_0x27e47c,'attributes':_0xc01d3a});for(const _0x3194da of _0x367bde)this['_addSuggestionMarker'](_0xd1eec,_0x322f1f,_0x27e47c,_0x3194da,T['getMultiRangeId']());return _0x41b3d7;}['markInlineFormat'](_0x49a499,_0x4f9e99,_0x457905=null,_0x27a6b8={}){if(_0x457905=_0x457905||Lt(_0x4f9e99),_0x49a499['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27a6b8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x307cb9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');return this['forceDefaultExecution'](()=>_0x307cb9([_0x49a499],_0x4f9e99,_0x27a6b8)),null;}const _0x4e5f4d=this['editor']['plugins']['get']('Users')['me'],_0x309363=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d0d52,meta:_0x24f640}of this['_findSuggestions'](_0x49a499,'insertion'))_0x24f640['isOwn']&&!_0x24f640['isInsideObject']&&_0x309363['push'](..._0x3d0d52['getRanges']());}const _0x14a84a=function(_0x4b03a8,_0x5f3877){const _0x574f37=[];for(const _0x1aedbb of _0x5f3877){const _0x438054=_0x4b03a8['getIntersection'](_0x1aedbb);_0x438054&&_0x574f37['push'](_0x438054);}return _0x574f37;}(_0x49a499,_0x309363),_0x4c3d4d=function(_0x4f84ac,_0xf2ba59){const _0x4fdfcd=[_0x4f84ac];for(const _0x5957cd of _0xf2ba59){let _0xc05db8=0x0;for(;_0xc05db8<_0x4fdfcd['length'];){const _0x37b5b6=_0x4fdfcd[_0xc05db8]['getDifference'](_0x5957cd);_0x4fdfcd['splice'](_0xc05db8,0x1,..._0x37b5b6),_0xc05db8+=_0x37b5b6['length'];}}return _0x4fdfcd;}(_0x49a499,_0x309363);_0x14a84a['length']&&this['_model']['change'](()=>{for(const _0xa633db of _0x14a84a){const _0x22680c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x457905,'accept');this['forceDefaultExecution'](()=>_0x22680c([_0xa633db],_0x4f9e99,_0x27a6b8));}});for(const _0x2f47cb of _0x4c3d4d){let _0x437258=null,_0x1cd742=_0x2f47cb['start'],_0x108954=_0x2f47cb['end'];for(const {suggestion:_0x16e855,meta:_0x3cdcde}of this['_findSuggestions'](_0x2f47cb,'formatInline')){if(!_0x3cdcde['isOwn'])continue;if(_0x16e855['subType']!=_0x457905)continue;if(!Qt(_0x16e855,_0x27a6b8))continue;const _0x1f4c18=_0x16e855['getFirstRange']();if(_0x1f4c18['containsRange'](_0x2f47cb,!0x0))return null;_0x1cd742=_0x1cd742['isBefore'](_0x1f4c18['start'])?_0x1cd742:_0x1f4c18['start'],_0x108954=_0x108954['isAfter'](_0x1f4c18['end'])?_0x108954:_0x1f4c18['end'],_0x437258?_0x1f4c18['start']['isBefore'](_0x437258['getFirstRange']()['start'])?(_0x437258['removeMarkers'](),_0x437258=_0x16e855):_0x16e855['removeMarkers']():_0x437258=_0x16e855;}const _0x162dd7=this['_model']['createRange'](_0x1cd742,_0x108954);if(_0x437258)this['_setSuggestionRange'](_0x437258,_0x162dd7);else{const _0x4b6195=_0x20cf05(),_0x32f0cc=_0x4e5f4d['id'];this['_setSuggestionData']({'id':_0x4b6195,'type':'formatInline:'+_0x457905,'data':_0x4f9e99,'createdAt':new Date(),'authorId':_0x32f0cc,'attributes':_0x27a6b8}),this['_addSuggestionMarker']('formatInline:'+_0x457905,_0x4b6195,_0x32f0cc,_0x162dd7);}}return null;}['markBlockFormat'](_0x55f9c7,_0x41c5cc,_0x218a64=[],_0x17bfae=null,_0x59ad7d={}){_0x41c5cc['formatGroupId']||(_0x41c5cc['formatGroupId']=_0x41c5cc['commandName']),_0x41c5cc['multipleBlocks']=_0x55f9c7['is']('range'),_0x17bfae=_0x17bfae||Lt(_0x41c5cc);const _0x40d85f=_0x218a64['map'](_0x5e92e4=>qt(_0x5e92e4,this['_model'])),_0x2f89e0=_0x55f9c7['is']('range')?_0x55f9c7:qt(_0x55f9c7,this['_model']);if(this['_trackingSessionId']&&(_0x59ad7d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8299=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0x2c8299([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}_0x40d85f['push'](_0x2f89e0);let _0x5e81df=!0x0;for(const _0x47a4c8 of _0x40d85f)if(!this['_rangeIsInLocalUserInsertion'](_0x47a4c8)){_0x5e81df=!0x1;break;}if(_0x5e81df&&'always'!==this['_trackFormatChanges']){const _0xada132=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17bfae,'accept');return this['forceDefaultExecution'](()=>_0xada132([_0x2f89e0],_0x41c5cc,_0x59ad7d)),null;}let _0x22e31c=null,_0x7c8810=_0x2f89e0['start'],_0x3280ac=_0x2f89e0['end'];for(const {suggestion:_0x513e3f,meta:_0xd0cea9}of this['_findSuggestions'](_0x2f89e0,'formatBlock')){if(!_0xd0cea9['isOwn'])continue;if(_0xd0cea9['isNextTo']||_0xd0cea9['containsRangeInObject']||_0xd0cea9['isInsideObject'])continue;if(_0x513e3f['data']['formatGroupId']!=_0x41c5cc['formatGroupId'])continue;if(!Qt(_0x513e3f,_0x59ad7d))continue;const _0x4886e3=_0x513e3f['getFirstRange']();if(_0x513e3f['subType']==_0x17bfae){if(_0x4886e3['containsRange'](_0x2f89e0,!0x0))return null;_0x7c8810=_0x7c8810['isBefore'](_0x4886e3['start'])?_0x7c8810:_0x4886e3['start'],_0x3280ac=_0x3280ac['isAfter'](_0x4886e3['end'])?_0x3280ac:_0x4886e3['end'],_0x22e31c?_0x4886e3['start']['isBefore'](_0x22e31c['getFirstRange']()['start'])?(_0x22e31c['removeMarkers'](),_0x22e31c=_0x513e3f):_0x513e3f['removeMarkers']():_0x22e31c=_0x513e3f;}else{const _0xb0823d=_0x2f89e0['getIntersection'](_0x4886e3);this['_cutOutSuggestionMarker'](_0x513e3f,_0xb0823d);}}const _0x19b3e5=this['editor']['plugins']['get']('Users')['me'],_0x5e3613=_0x20cf05(),_0x79c4a0=_0x19b3e5['id'];if(_0x22e31c)return this['_setSuggestionRange'](_0x22e31c,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x22e31c;{const _0x111e90=this['_setSuggestionData']({'id':_0x5e3613,'type':'formatBlock:'+_0x17bfae,'data':_0x41c5cc,'createdAt':new Date(),'authorId':_0x79c4a0,'attributes':_0x59ad7d});return this['_addSuggestionMarker']('formatBlock:'+_0x17bfae,_0x5e3613,_0x79c4a0,this['_model']['createRange'](_0x7c8810,_0x3280ac)),_0x111e90;}}['markMultiRangeBlockFormat'](_0x5a81c4,_0x3defb4,_0x406ab4=[],_0x3198c5=null,_0x328b87={}){_0x3defb4['formatGroupId']||(_0x3defb4['formatGroupId']=_0x3defb4['commandName']);const _0x184efd=_0x5a81c4[0x0];_0x3defb4['multipleBlocks']=_0x184efd['is']('range'),_0x3198c5=_0x3198c5||Lt(_0x3defb4);const _0x40f7d4=_0x406ab4['map'](_0x7a02ac=>qt(_0x7a02ac,this['_model'])),_0x424a4d=_0x184efd['is']('range')?_0x5a81c4:_0x5a81c4['map'](_0x30c3a1=>qt(_0x30c3a1,this['_model']));if(this['_trackingSessionId']&&(_0x328b87['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x557f9a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x557f9a(_0x424a4d,_0x3defb4,_0x328b87)),null;}_0x40f7d4['push'](..._0x424a4d);let _0x492582=!0x0;for(const _0x128962 of _0x40f7d4)if(!this['_rangeIsInLocalUserInsertion'](_0x128962)){_0x492582=!0x1;break;}if(_0x492582&&'always'!==this['_trackFormatChanges']){const _0x15cae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'accept');return this['forceDefaultExecution'](()=>_0x15cae2(_0x424a4d,_0x3defb4,_0x328b87)),null;}const _0x4deaaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf165 of this['getSuggestions']()){const _0x49b92f=_0x5bf165['data'];if(_0x5bf165['author']['id']!=_0x4deaaf['id'])continue;if('formatBlock'!=_0x5bf165['type']||_0x49b92f['formatGroupId']!=_0x3defb4['formatGroupId'])continue;if(!Qt(_0x5bf165,_0x328b87))continue;const _0x177dbf=_0x5bf165['subType']==_0x3198c5;for(let _0x3afb1e=0x0;_0x3afb1e<_0x424a4d['length'];_0x3afb1e++){const _0x5a8e5c=_0x424a4d[_0x3afb1e];for(const _0x218347 of _0x5bf165['getMarkers']()){const _0x4a5ba9=_0x218347['getRange']();if(_0x5a8e5c['isEqual'](_0x4a5ba9)){_0x177dbf?(_0x424a4d['splice'](_0x3afb1e,0x1),_0x3afb1e--):_0x5bf165['removeMarker'](_0x218347['name']);break;}}}}if(0x0==_0x424a4d['length'])return null;const _0x22b382=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3198c5,'join');for(const _0xadbfd6 of this['getSuggestions']()){const _0x682e5f=_0xadbfd6['data'];if(_0xadbfd6['author']['id']==_0x4deaaf['id']&&('formatBlock'==_0xadbfd6['type']&&_0x682e5f['formatGroupId']==_0x3defb4['formatGroupId']&&_0xadbfd6['subType']==_0x3198c5&&Qt(_0xadbfd6,_0x328b87)&&(_0x22b382(_0xadbfd6['getRanges'](),_0x424a4d)||_0x22b382(_0x424a4d,_0xadbfd6['getRanges']())))){for(const _0x431d0b of _0x424a4d)_0xadbfd6['addRange'](_0x431d0b);return _0xadbfd6;}}const _0x59fbf2=_0x20cf05(),_0xd2f487=_0x4deaaf['id'],_0x899bd9='formatBlock:'+_0x3198c5,_0x199c46=this['_setSuggestionData']({'id':_0x59fbf2,'type':_0x899bd9,'data':_0x3defb4,'createdAt':new Date(),'authorId':_0xd2f487,'attributes':_0x328b87});for(const _0x20718a of _0x424a4d)this['_addSuggestionMarker'](_0x899bd9,_0x59fbf2,_0xd2f487,_0x20718a,T['getMultiRangeId']());return _0x199c46;}['markDeletion'](_0x5d5607,_0x2cd1b5=null,_0x47fd60={}){if(_0x5d5607['isCollapsed'])return null;const _0x21fb32=this['editor']['plugins']['get']('Users')['me'],_0x4deedb=new _0x334b1a(_0x5d5607['start'],_0x5d5607['end']);this['_trackingSessionId']&&(_0x47fd60['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x433aaf,meta:_0x464fc0}of this['_findSuggestions'](_0x4deedb,'insertion'))if(_0x464fc0['isOwn']&&!_0x464fc0['isNextTo']){if(_0x433aaf['isMultiRange']){const _0x4d70cd=_0x433aaf['getRanges']()['filter'](_0x5f2279=>'$graveyard'!=_0x5f2279['root']['rootName']);_0x4d70cd['every'](_0x2d9897=>_0x4deedb['containsRange'](_0x2d9897,!0x0))&&_0x433aaf['discard']();if(_0x4d70cd['some'](_0x7c2779=>_0x7c2779['containsRange'](_0x4deedb,!0x0))){const _0x5526e6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2cd1b5,'accept');return this['forceDefaultExecution'](()=>_0x5526e6([_0x4deedb],null,_0x47fd60)),null;}}else{const _0x209f80=_0x4deedb['getIntersection'](_0x433aaf['getFirstRange']());null!==_0x209f80&&_0x433aaf['_onDiscard']([_0x209f80],null,_0x47fd60);}}if(_0x4deedb['detach'](),_0x4deedb['isCollapsed']||'$graveyard'==_0x4deedb['root']['rootName'])return null;let _0x6b7240=null,_0x312623=_0x4deedb['start'],_0x338f5d=_0x4deedb['end'];const _0x240abf=this['_findSuggestions'](_0x4deedb,'deletion');for(const {suggestion:_0x54297e,meta:_0x29c6c1}of _0x240abf){const _0x324966=this['_model']['createRange'](_0x312623,_0x338f5d);if(_0x29c6c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29c6c1['containsRangeInObject']&&!_0x29c6c1['isInsideObject'])){if(_0x54297e['isMultiRange']){if(!Qt(_0x54297e,_0x47fd60))continue;let _0x37f4ad=!0x0;for(const _0x5c5104 of _0x54297e['getRanges']()){if(_0x5c5104['containsRange'](_0x324966,!0x0))return _0x54297e;_0x324966['containsRange'](_0x5c5104)||(_0x37f4ad=!0x1);}_0x37f4ad&&_0x54297e['discard']();}else{const _0x5b2374=_0x54297e['getFirstRange']();if(_0x5b2374['containsRange'](_0x324966,!0x0))return _0x54297e;if(!Qt(_0x54297e,_0x47fd60)){_0x324966['containsRange'](_0x5b2374)?_0x54297e['removeMarkers']():_0x5b2374['containsPosition'](_0x312623)?_0x312623=_0x5b2374['end']:_0x5b2374['containsPosition'](_0x338f5d)&&(_0x338f5d=_0x5b2374['start']);continue;}_0x312623=_0x312623['isBefore'](_0x5b2374['start'])?_0x312623:_0x5b2374['start'],_0x338f5d=_0x338f5d['isAfter'](_0x5b2374['end'])?_0x338f5d:_0x5b2374['end'],_0x47fd60=Object['assign']({},_0x54297e['attributes']),_0x6b7240?_0x5b2374['start']['isBefore'](_0x6b7240['getFirstRange']()['start'])?(_0x6b7240['removeMarkers'](),_0x6b7240=_0x54297e):_0x54297e['removeMarkers']():_0x6b7240=_0x54297e;}}}if(_0x6b7240)return this['_setSuggestionRange'](_0x6b7240,this['_model']['createRange'](_0x312623,_0x338f5d)),_0x6b7240;{const _0x490147=_0x20cf05(),_0x4dc608=this['_model']['createRange'](_0x312623,_0x338f5d),_0x1779da=_0x21fb32['id'],_0xf9c4d0=_0x2cd1b5?'deletion:'+_0x2cd1b5:'deletion',_0x36a987=this['_setSuggestionData']({'id':_0x490147,'type':_0xf9c4d0,'createdAt':new Date(),'authorId':_0x1779da,'attributes':_0x47fd60});return this['_addSuggestionMarker'](_0xf9c4d0,_0x490147,_0x1779da,_0x4dc608),_0x36a987;}}['markMultiRangeDeletion'](_0x41b71f,_0x459cde='multi',_0x32d911={}){const _0x1da170=this['editor']['plugins']['get']('Users')['me'],_0x210981=_0x41b71f['map'](_0x12d14d=>new _0x334b1a(_0x12d14d['start'],_0x12d14d['end'])),_0xa1c4b9=new Set();this['_trackingSessionId']&&(_0x32d911['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b2415,meta:_0x28e770}of this['_findSuggestions'](_0x210981,'insertion'))_0x28e770['isOwn']&&!_0x28e770['isNextTo']&&_0xa1c4b9['add'](_0x5b2415);for(const _0xf2ab2f of _0xa1c4b9)if(_0xf2ab2f['isMultiRange']){const _0x7a7f8=_0xf2ab2f['getRanges']();(!_0xf2ab2f['attributes']||!_0xf2ab2f['attributes']['skipNestingCheck'])&&(_0x7a7f8['every'](_0x581d4f=>_0x210981['some'](_0x61f212=>_0x61f212['containsRange'](_0x581d4f,!0x0)))&&_0xf2ab2f['discard']());if(_0x210981['every'](_0x5a0675=>_0x7a7f8['some'](_0x1fd1bd=>_0x1fd1bd['containsRange'](_0x5a0675,!0x0)))){const _0x3f782b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x3f782b(_0x41b71f,null,_0x32d911)),null;}}else{const _0xd15674=_0xf2ab2f['getFirstRange']();_0x210981['some'](_0x4588b3=>_0x4588b3['containsRange'](_0xd15674,!0x0))&&_0xf2ab2f['discard']();if(_0x210981['every'](_0x51ad7f=>_0xd15674['containsRange'](_0x51ad7f,!0x0))){const _0x45b006=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'accept');return this['forceDefaultExecution'](()=>_0x45b006(_0x210981,null,_0x32d911)),null;}}const _0x103e0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x459cde,'join');let _0x11d36d=null;for(const _0x5b4de5 of this['getSuggestions']())if(_0x5b4de5['author']['id']==_0x1da170['id']&&_0x5b4de5['isInContent']&&'deletion'==_0x5b4de5['type']&&_0x5b4de5['subType']==_0x459cde&&Qt(_0x5b4de5,_0x32d911)&&(_0x103e0c(_0x5b4de5['getRanges'](),_0x210981)||_0x103e0c(_0x210981,_0x5b4de5['getRanges']()))){if(_0x11d36d){if(_0x5b4de5['commentThread']&&_0x5b4de5['commentThread']['length'])continue;for(const _0x215e18 of _0x5b4de5['getRanges']())_0x11d36d['isIntersectingWithRange'](_0x215e18)||_0x11d36d['addRange'](_0x215e18);_0x5b4de5['removeMarkers']();}else{_0x11d36d=_0x5b4de5;for(const _0x554b88 of _0x210981)_0x5b4de5['isIntersectingWithRange'](_0x554b88)||_0x5b4de5['addRange'](_0x554b88);}}if(_0x11d36d)return _0x11d36d;_0xa1c4b9['clear']();for(const {suggestion:_0x3bff2b,meta:_0x27e919}of this['_findSuggestions'](_0x210981,'deletion'))_0x27e919['isOwn']&&(this['_mergeNestedSuggestions']||!_0x27e919['containsRangeInObject']&&!_0x27e919['isInsideObject'])&&Qt(_0x3bff2b,_0x32d911)&&_0xa1c4b9['add'](_0x3bff2b);for(const _0x8d2527 of _0xa1c4b9){const _0x580dec=_0x8d2527['getRanges']();if(!_0x32d911||!_0x32d911['skipNestingCheck']){if(_0x210981['every'](_0x2dd46c=>_0x580dec['some'](_0x157109=>_0x157109['containsRange'](_0x2dd46c,!0x0))))return _0x8d2527;}(!_0x8d2527['attributes']||!_0x8d2527['attributes']['skipNestingCheck'])&&(_0x580dec['every'](_0x2e374b=>_0x210981['some'](_0x5ccbed=>_0x5ccbed['containsRange'](_0x2e374b,!0x0)))&&_0x8d2527['discard']());}const _0x1c52da=_0x20cf05(),_0x17e28f=_0x1da170['id'],_0x3c7281='deletion:'+_0x459cde,_0x202993=this['_setSuggestionData']({'id':_0x1c52da,'type':_0x3c7281,'createdAt':new Date(),'authorId':_0x17e28f,'attributes':_0x32d911});for(const _0x2d8fa3 of _0x210981)_0x2d8fa3['detach'](),_0x2d8fa3['isCollapsed']||'$graveyard'==_0x2d8fa3['root']['rootName']||this['_addSuggestionMarker'](_0x3c7281,_0x1c52da,_0x17e28f,_0x2d8fa3,T['getMultiRangeId']());return _0x202993;}['markAttributeChange'](_0x29541e,_0x331180,_0x514f53,_0x470510,_0x521176){if(_0x29541e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e38c1=this['editor']['plugins']['get']('Users')['me']['id'],_0x42ad6a=Array['from'](this['_suggestions']['values']())['filter'](_0x41db17=>'attribute'==_0x41db17['type']&&_0x41db17['data']['key']==_0x331180&&_0x41db17['isIntersectingWithRange'](_0x29541e));if(this['_trackingSessionId']&&(_0x521176['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4e69da=this['_findSuggestions'](_0x29541e,'insertion')['filter'](({meta:_0x11d491})=>_0x11d491['isOwn']&&!_0x11d491['isInsideObject']&&!_0x11d491['isNextTo'])['map'](({suggestion:_0x29350a})=>_0x29350a);_0x42ad6a['unshift'](..._0x4e69da);}const _0x42f402=new Map([[_0x29541e,_0x514f53]]);for(const _0x415bbc of _0x42ad6a){const _0x49faf6='attribute'==_0x415bbc['type']?_0x415bbc['data']['oldValue']:void 0x0,_0x2d6865=_0x415bbc['getFirstRange'](),_0x3c0a26=Array['from'](_0x42f402['keys']())['find'](_0x16e535=>_0x16e535['isIntersecting'](_0x2d6865));if(!_0x3c0a26)continue;const _0x3e4ec4=_0x3c0a26['getDifference'](_0x2d6865);this['_isBlockAttribute'](_0x331180)&&'insertion'==_0x415bbc['type']&&0x0!=_0x3e4ec4['length']||(_0x42f402['delete'](_0x3c0a26),_0x3e4ec4['forEach'](_0x233598=>{_0x42f402['set'](_0x233598,_0x514f53);}),'insertion'!=_0x415bbc['type']&&_0x49faf6!=_0x470510&&_0x42f402['set'](_0x3c0a26['getIntersection'](_0x2d6865),_0x49faf6));}const _0x5ab0a4=[];for(const [_0x1c0e3e,_0x5ae741]of _0x42f402){const _0x59e52b=_0x20cf05(),_0x5c6b1e={'key':_0x331180,'oldValue':_0x5ae741,'newValue':_0x470510};_0x331180['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':_0x331180});const _0x110ec4=('attribute:'+(_0x331180+'|'+Lt({'newValue':_0x470510})))['substring'](0x0,0x3c),_0x50764f=this['_setSuggestionData']({'id':_0x59e52b,'type':_0x110ec4,'data':_0x5c6b1e,'createdAt':new Date(),'authorId':_0x1e38c1,'attributes':_0x521176});_0x5ab0a4['push'](_0x50764f),this['_addSuggestionMarker'](_0x110ec4,_0x59e52b,_0x1e38c1,_0x1c0e3e);}return _0x5ab0a4;}['enableDefaultAttributesIntegration'](_0x3f2054){this['enableCommand'](_0x3f2054,(_0x7ae829,..._0xead809)=>{this['recordAttributeChanges'](()=>{_0x7ae829(..._0xead809);});});}['registerBlockAttribute'](_0x17c9ee){this['_blockAttributeKeys']['add'](_0x17c9ee);}['registerInlineAttribute'](_0x2d5e5d){this['_inlineAttributeKeys']['add'](_0x2d5e5d);}['startTrackingSession'](_0x54c578){return this['_trackingSessionId']=void 0x0!==_0x54c578?_0x54c578:_0x20cf05(),this['_trackingSessionId'];}['_getAttributeKey'](_0x412863){return'attribute'==_0x412863['type']?_0x412863['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46e37d,_0x3ede74){const _0xc02f6b=_0x46e37d['getFirstMarker']();this['_model']['change'](_0x2c4ef4=>{_0x2c4ef4['updateMarker'](_0xc02f6b,{'range':_0x3ede74});});}['_addThreadToSuggestion'](_0x24a4fb){const _0x255765=_0x24a4fb['id'],_0x229704=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x255765)||this['_commentsRepository']['addCommentThread']({'channelId':_0x229704,'threadId':_0x255765,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x274582=this['_commentsRepository']['getCommentThread'](_0x255765);_0x274582['unbind']('isRemovable'),_0x274582['isRemovable']=!0x1,_0x24a4fb['commentThread']=_0x274582;}['_checkSuggestionCorrectness'](_0x40b556,_0x1ded28,_0x3dd745,_0xe74ca1){if(_0x40b556['type']!=_0x1ded28||_0x40b556['subType']!=_0x3dd745||_0x40b556['creator']['id']!=_0xe74ca1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x346a74('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x268099,_0x5ae248){const _0x206b3a=_0x268099['getFirstRange']();if(_0x5ae248['isEqual'](_0x206b3a))_0x268099['removeMarkers']();else{if(_0x206b3a['containsRange'](_0x5ae248)){const _0x4304b6=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x4304b6));const _0x49fd93=_0x20cf05(),_0x543003=_0x268099['creator']['id'],_0x5a95a4=_0x268099['type']+':'+_0x268099['subType'];this['_setSuggestionData']({'id':_0x49fd93,'type':_0x5a95a4,'createdAt':new Date(),'authorId':_0x543003,'data':_0x268099['data'],'attributes':_0x268099['attributes']});const _0x477722=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after'),_0x838512=this['_model']['createRange'](_0x477722,_0x206b3a['end']);this['_addSuggestionMarker'](_0x5a95a4,_0x49fd93,_0x543003,_0x838512);}else{if(_0x206b3a['containsPosition'](_0x5ae248['start'])){const _0x2092c7=this['_model']['createPositionAt'](_0x5ae248['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x206b3a['start'],_0x2092c7));}else{const _0x603ab7=this['_model']['createPositionAt'](_0x5ae248['end']['parent'],'after');this['_setSuggestionRange'](_0x268099,this['_model']['createRange'](_0x603ab7,_0x206b3a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4659ce){for(const {suggestion:_0x219c00,meta:_0x53fb71}of this['_findSuggestions'](_0x4659ce,'insertion')){if(!_0x53fb71['isOwn'])continue;const _0x5b5b1b=_0x219c00['getRanges']();for(const _0x34d587 of _0x5b5b1b)if(!_0x4659ce['getDifference'](_0x34d587)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc30c8a){const _0x39a794=this['editor']['plugins']['get']('Users')['getUser'](_0xc30c8a);if(!_0x39a794)throw new _0x346a74('track-changes-user-not-found',this);return _0x39a794;}['_getExternalAuthor'](_0x4a74df){const _0x2c6c95=this['editor']['plugins']['get']('Users'),_0x5ed7a6=_0x2fe077('external:'+_0x4a74df),_0x9a8763=_0x2c6c95['getUser'](_0x5ed7a6);return _0x9a8763||_0x2c6c95['addUser']({'id':_0x5ed7a6,'name':_0x4a74df});}['_createSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x469152,_0x25e253,_0x15049c){const _0x1347ce=this['_getAuthorFromId'](_0x469152),_0x3c85be=this['_suggestionFactory']['buildSuggestion'](_0x4f8f50,_0x37369d,_0x4b7f53,_0x1347ce,_0x25e253,_0x3d53dc=>{this['_updateSuggestionData'](_0x4b7f53,{'attributes':_0x3d53dc});const _0x4fb61d=this['getSuggestion'](_0x4b7f53);this['_joinWithAdjacentSuggestions'](new Set([_0x4fb61d])),this['_refreshSuggestionsChain'](new Set([_0x4fb61d]));},_0x15049c);return this['listenTo'](_0x3c85be,'accept',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c85be,'discard',()=>{this['_updateSuggestionData'](_0x4b7f53,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b7f53,_0x3c85be),this['_suggestionState']['set'](_0x3c85be,'notReady'),_0x3c85be;}['_splitMarkerName'](_0x1d909b){const _0x439a7d=_0x1d909b['split'](':');return{'group':_0x439a7d[0x0],'type':_0x439a7d[0x1],'subType':_0x439a7d['length']>=0x5?_0x439a7d[0x2]:null,'id':_0x439a7d['length']<0x5?_0x439a7d[0x2]:_0x439a7d[0x3],'authorId':_0x439a7d['length']<0x5?_0x439a7d[0x3]:_0x439a7d[0x4],'markerCount':0x6==_0x439a7d['length']?_0x439a7d[0x5]:null};}['_breakSuggestionMarker'](_0x597a68,_0x4371bb,_0x461acb){const _0x499438=_0x597a68['getFirstRange'](),_0xed0004=_0x499438['start'],_0x370f64=_0x499438['end'];this['_setSuggestionRange'](_0x597a68,this['_model']['createRange'](_0xed0004,_0x4371bb));const _0x1e2ea7=_0x20cf05(),_0x444efb=_0x597a68['creator']['id'],_0x99c880=_0x597a68['type']+(_0x597a68['subType']?':'+_0x597a68['subType']:'');this['_setSuggestionData']({'id':_0x1e2ea7,'type':_0x99c880,'createdAt':new Date(),'authorId':_0x444efb,'originalSuggestionId':_0x597a68['_originalSuggestionId']||_0x597a68['id'],'attributes':_0x597a68['attributes'],'data':_0x597a68['data']});const _0x1f0c33=this['_getAttributeKey'](_0x597a68);('formatBlock'==_0x597a68['type']||_0x1f0c33&&this['_isBlockAttribute'](_0x1f0c33))&&(_0x461acb=this['_model']['createPositionBefore'](_0x461acb['parent'])),this['_addSuggestionMarker'](_0x99c880,_0x1e2ea7,_0x444efb,this['_model']['createRange'](_0x461acb,_0x370f64));}['_findSuggestions'](_0x29c149,_0x4d3938=null){const _0x5113c5=[],_0x423972=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x29c149)||(_0x29c149=[_0x29c149]);for(const _0x5b6b4f of this['getSuggestions']()){if(!_0x5b6b4f['isInContent'])continue;if(_0x4d3938&&_0x5b6b4f['type']!=_0x4d3938)continue;let _0x50a3da=!0x1;for(const _0x5550ab of _0x5b6b4f['getRanges']()){for(const _0x5dc22e of _0x29c149){const _0x29287b=_0x5dc22e['start']['isEqual'](_0x5550ab['end'])||_0x5dc22e['end']['isEqual'](_0x5550ab['start']);if(_0x29287b||_0x5dc22e['getIntersection'](_0x5550ab)){const _0x218d8e=_0x5dc22e['containsRange'](_0x5550ab)&&Ft(this['_model']['schema'],_0x5550ab['start'],_0x5dc22e),_0x6d0d75=_0x5550ab['containsRange'](_0x5dc22e)&&Ft(this['_model']['schema'],_0x5dc22e['start'],_0x5550ab);_0x5113c5['push']({'suggestion':_0x5b6b4f,'meta':{'isOwn':_0x423972==_0x5b6b4f['author'],'isNextTo':_0x29287b,'isInsideObject':_0x218d8e,'containsRangeInObject':_0x6d0d75}}),_0x50a3da=!0x0;break;}}if(_0x50a3da)break;}}return _0x5113c5;}['_addSuggestionMarker'](_0x1fc379,_0x1866c9,_0x587a03,_0x2f15c2,_0x304e53){this['_model']['change'](_0x3924b2=>{let _0x4e0370='suggestion:'+_0x1fc379+':'+_0x1866c9+':'+_0x587a03;_0x304e53&&(_0x4e0370=_0x4e0370+':'+_0x304e53),_0x3924b2['addMarker'](_0x4e0370,{'range':_0x2f15c2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1adc44){const _0x637892=_0x1adc44['previous'],_0x503010=_0x1adc44['next'];_0x1adc44['previous']=null,_0x1adc44['next']=null,null!=_0x637892&&_0x637892['next']==_0x1adc44&&(_0x637892['next']=_0x503010),null!=_0x503010&&_0x503010['previous']==_0x1adc44&&(_0x503010['previous']=_0x637892),'ready'==this['_suggestionState']['get'](_0x1adc44)&&(this['_suggestionState']['set'](_0x1adc44,'removed'),this['fire']('suggestionUnloaded',_0x1adc44,_0x637892,_0x503010));}['_setSuggestionData'](_0x1b01c4){const _0x162192=_0x1b01c4['id'],_0x4be6bd=this['addSuggestionData'](_0x1b01c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13582b=this['editor']['plugins']['get']('PendingActions'),_0x41a850=_0x4be6bd['hasComments'],_0x1c01c3=_0x4be6bd['subType']?_0x4be6bd['type']+':'+_0x4be6bd['subType']:_0x4be6bd['type'],_0x5d19a4=this['editor']['locale'],_0x1bae4b=_0x13582b['add'](o(_0x5d19a4,'PENDING_ACTION_SUGGESTION')),_0x597471={'id':_0x162192,'type':_0x1c01c3,'hasComments':_0x41a850,'data':_0x1b01c4['data']||null,'originalSuggestionId':_0x1b01c4['originalSuggestionId']||null,'attributes':_0x4be6bd['attributes']};this['_adapter']['addSuggestion'](_0x597471)['then'](_0x3703f9=>{_0x4be6bd['_saved']=!0x0,_0x13582b['remove'](_0x1bae4b),_0x3703f9&&_0x3703f9['createdAt']&&(this['_suggestions']['get'](_0x162192)['createdAt']=_0x3703f9['createdAt']);})['catch'](_0x39a9af=>{throw _0xe69762('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4be6bd['discard']();}),_0x4be6bd['stopListening'](),this['_suggestions']['delete'](_0x4be6bd['id']),this['_suggestionState']['delete'](_0x4be6bd),_0x39a9af;});}return _0x4be6bd;}['_isBlockAttribute'](_0xed2b91){return this['_blockAttributeKeys']['has'](_0xed2b91);}['_updateSuggestionData'](_0x5bf0d9,_0x1187fd){const _0x5b3ab0=this['editor']['plugins']['get']('PendingActions'),_0x3e547e=this['getSuggestion'](_0x5bf0d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e547e['_saved']){const _0x956b56=_0x5b3ab0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5bf0d9,_0x1187fd)['then'](()=>{_0x5b3ab0['remove'](_0x956b56);});}else _0x3e547e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5bf0d9,_0x1187fd);});}}['_getSuggestionData'](_0x4f13f1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x346a74('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f13f1);}['_handleNewSuggestionMarker'](_0x481c56){const {id:_0x5a6a2a,type:_0x4ec9e3,subType:_0x329300,authorId:_0x2ccfa5}=this['_splitMarkerName'](_0x481c56),_0x57c834=this['_suggestions']['get'](_0x5a6a2a)||this['_createSuggestion'](_0x4ec9e3,_0x329300,_0x5a6a2a,_0x2ccfa5,{});switch(this['_checkSuggestionCorrectness'](_0x57c834,_0x4ec9e3,_0x329300,_0x2ccfa5),this['_suggestionState']['get'](_0x57c834)){case'notReady':this['_getSuggestionData'](_0x5a6a2a)['then'](_0x14ee63=>{let _0x21ec3d=Promise['resolve']();_0x14ee63['hasComments']&&(_0x21ec3d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a6a2a})),_0x21ec3d['then'](()=>{this['addSuggestionData'](_0x14ee63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57c834,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a6a2a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57c834,'ready'),this['fire']('suggestionLoaded',_0x57c834);break;case'ready':this['fire']('suggestionChanged',_0x57c834);}return _0x57c834['addMarkerName'](_0x481c56),_0x57c834;}['_refreshSuggestionsChain'](_0x1b878a){const _0x539b5c=Array['from'](_0x1b878a),_0x185a11=_0x539b5c['filter'](_0x26120f=>'attribute'==_0x26120f['type']);this['_refreshAttributeSuggestionsChain'](_0x185a11);const _0x254b59=_0x539b5c['filter'](_0x716271=>!_0x716271['isMultiRange']&&'attribute'!=_0x716271['type']),_0x407320=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3371ac=>!_0x3371ac['isMultiRange']&&'attribute'!=_0x3371ac['type']),_0x504524=_0x407320['filter'](_0x5518f2=>!_0x1b878a['has'](_0x5518f2)),_0x3729de=new Map(_0x407320['map'](_0x3cf968=>[_0x3cf968,this['_suggestionFactory']['getSuggestionCallback'](_0x3cf968['type'],_0x3cf968['subType'],'chain')])),_0x142f5c=new Map(_0x407320['map'](_0xfb3766=>[_0xfb3766,_0xfb3766['getFirstRange']()])),_0x1b11d9=new Set(),_0x118407=new Set();for(let _0x5cb609=0x0;_0x5cb609<_0x254b59['length'];_0x5cb609++)_0x9fef86(_0x254b59[_0x5cb609],_0x254b59,_0x5cb609+0x1);for(let _0x33aa5f=0x0;_0x33aa5f<_0x254b59['length'];_0x33aa5f++)_0x9fef86(_0x254b59[_0x33aa5f],_0x504524,0x0);const _0x4c6b4f=new Set();for(let _0x28f535=0x0;_0x28f535<_0x254b59['length'];_0x28f535++){const _0x2be495=_0x254b59[_0x28f535];!_0x118407['has'](_0x2be495)&&_0x2be495['previous']&&(_0x4c6b4f['add'](_0x2be495['previous']),_0x2be495['previous']['next']===_0x2be495&&(_0x2be495['previous']['next']=null),_0x2be495['previous']=null),!_0x1b11d9['has'](_0x2be495)&&_0x2be495['next']&&(_0x4c6b4f['add'](_0x2be495['next']),_0x2be495['next']['previous']===_0x2be495&&(_0x2be495['next']['previous']=null),_0x2be495['next']=null);}function _0x9fef86(_0x3d5ee2,_0x24b4b6,_0x53f3db){for(let _0x14b8d4=_0x53f3db;_0x14b8d4<_0x24b4b6['length'];_0x14b8d4++){const _0x5be58e=_0x5c2aab(_0x3d5ee2,_0x24b4b6[_0x14b8d4]);_0x5be58e&&(_0x5be58e[0x0]['next']=_0x5be58e[0x1],_0x5be58e[0x1]['previous']=_0x5be58e[0x0],_0x1b11d9['add'](_0x5be58e[0x0]),_0x118407['add'](_0x5be58e[0x1]));}}function _0x5c2aab(_0x1c42e3,_0x18aefa){if(_0x1c42e3['author']['id']!==_0x18aefa['author']['id'])return null;const _0x18bac2=_0x3729de['get'](_0x1c42e3)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa));if(!_0x18bac2)return null;return _0x3729de['get'](_0x18aefa)(_0x1c42e3,_0x18aefa,_0x142f5c['get'](_0x1c42e3),_0x142f5c['get'](_0x18aefa))?_0x18bac2[0x1]['commentThread']&&_0x18bac2[0x1]['commentThread']['length']?null:_0x18bac2:null;}_0x4c6b4f['size']&&this['_refreshSuggestionsChain'](_0x4c6b4f);}['_refreshAttributeSuggestionsChain'](_0x2142fd){if(0x0==_0x2142fd['length'])return;const _0x42252b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18ff57=>'attribute'==_0x18ff57['type']&&_0x18ff57['_isDataLoaded']),_0x46b080=[],_0x5d0001=new Map();for(const _0x187f9e of _0x42252b){const _0x2173b8=_0x2fe077(_0x187f9e['attributes']);_0x5d0001['has'](_0x2173b8)||(_0x5d0001['set'](_0x2173b8,_0x46b080['length']),_0x46b080['push']([]));const _0x371f72=_0x5d0001['get'](_0x2173b8);_0x46b080[_0x371f72]['push'](_0x187f9e);}!(function(){_0x46b080['sort']((_0xc9542e,_0x367cef)=>{const _0x3d2676=_0xc9542e[0x0]['createdAt'],_0x218856=_0x367cef[0x0]['createdAt'];return _0x3d2676==_0x218856?_0xc9542e[0x0]['attributes']['groupId']<_0x367cef[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d2676<_0x218856?-0x1:0x1;});for(const _0x1cc170 of _0x46b080)_0x1cc170['sort']((_0x3c0a4f,_0x1bfc00)=>_0x3c0a4f['id']<_0x1bfc00['id']?-0x1:0x1);}());for(let _0x2d5466=0x0;_0x2d5466<_0x46b080['length'];_0x2d5466++){if(0x0==_0x46b080[_0x2d5466]['length'])continue;const _0x590222=[];for(let _0x292b1b=_0x2d5466+0x1;_0x292b1b<_0x46b080['length'];_0x292b1b++)0x0!=_0x46b080[_0x292b1b]['length']&&_0x2bc0cb(_0x46b080[_0x2d5466],_0x46b080[_0x292b1b])&&_0x590222['push'](_0x292b1b);for(const _0x23d571 of _0x590222)_0x46b080[_0x2d5466]=_0x46b080[_0x2d5466]['concat'](_0x46b080[_0x23d571]),_0x46b080[_0x23d571]=[];}for(const _0x418d75 of _0x46b080)for(let _0x237d66=0x0;_0x237d66<_0x418d75['length'];_0x237d66++){const _0x587a2f=_0x418d75[_0x237d66+0x1]||null;_0x418d75[_0x237d66]['next']!==_0x587a2f&&(_0x418d75[_0x237d66]['next']=_0x587a2f);}for(const _0x16bddd of _0x46b080)for(let _0x1009a1=0x0;_0x1009a1<_0x16bddd['length'];_0x1009a1++){const _0xcb19cd=_0x16bddd[_0x1009a1-0x1]||null;_0x16bddd[_0x1009a1]['previous']!==_0xcb19cd&&(_0x16bddd[_0x1009a1]['previous']=_0xcb19cd);}function _0x2bc0cb(_0x3e9aa2,_0x461616){if(_0x3e9aa2[0x0]['attributes']['groupId']!==_0x461616[0x0]['attributes']['groupId']&&_0x3e9aa2[0x0]['author']!==_0x461616[0x0]['author'])return!0x1;if(!function(_0x2caa51,_0x12f35a){if(!_0x2caa51['hasComments']&&!_0x12f35a['hasComments'])return!0x0;if(_0x2caa51['hasComments']&&_0x12f35a['hasComments'])return!0x1;if(_0x2caa51['hasComments']&&_0x12f35a['createdAt']<_0x2caa51['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x12f35a['hasComments']&&_0x2caa51['createdAt']<_0x12f35a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3e9aa2[0x0],_0x461616[0x0]))return!0x1;const _0x1e4c0b=Ut(_0x3e9aa2[0x0]['attributes'],['groupId','trackingSessionId']),_0x44c4b4=Ut(_0x461616[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x17f578(_0x1e4c0b,_0x44c4b4))return!0x1;if(_0x3e9aa2[0x0]['attributes']['groupId']==_0x461616[0x0]['attributes']['groupId'])return!0x0;if(_0x3e9aa2[0x0]['attributes']['trackingSessionId']!==_0x461616[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3e9aa2['every'](_0xc170ac=>_0x461616['some'](_0xf3f6b1=>_0xc170ac['getFirstRange']()['isEqual'](_0xf3f6b1['getFirstRange']())))&&_0x461616['every'](_0x30f228=>_0x3e9aa2['some'](_0x18ec58=>_0x30f228['getFirstRange']()['isEqual'](_0x18ec58['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x55dcd4){const _0x38a7de=Array['from'](_0x55dcd4),_0xccaf5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc3e671=_0xccaf5e['filter'](_0x4cbed3=>!_0x55dcd4['has'](_0x4cbed3)),_0x4bb7fc=new Map(_0x38a7de['map'](_0x3f09f4=>[_0x3f09f4,this['_suggestionFactory']['getSuggestionCallback'](_0x3f09f4['type'],_0x3f09f4['subType'],'join')])),_0x729ff=new Map(_0xccaf5e['map'](_0x1a2dcf=>[_0x1a2dcf,_0x1a2dcf['getRanges']()]));for(let _0x4b23cd=0x0;_0x4b23cd<_0x38a7de['length'];_0x4b23cd++){if(_0x528d1c(this,_0x38a7de[_0x4b23cd],_0x38a7de,_0x4b23cd+0x1))return!0x0;}for(let _0x3cc86e=0x0;_0x3cc86e<_0x38a7de['length'];_0x3cc86e++){if(_0x528d1c(this,_0x38a7de[_0x3cc86e],_0xc3e671,0x0))return!0x0;}return!0x1;function _0x528d1c(_0x2b67c8,_0x52b7aa,_0x3d72c2,_0x2001d7){for(let _0x1f2e3b=_0x2001d7;_0x1f2e3b<_0x3d72c2['length'];_0x1f2e3b++){const _0x4cece6=_0x3d72c2[_0x1f2e3b];if(_0x4cece6['type']!==_0x52b7aa['type']||_0x4cece6['author']['id']!==_0x52b7aa['author']['id']||_0x4cece6['subType']!==_0x52b7aa['subType'])continue;if(!Wt(_0x52b7aa,_0x4cece6))continue;if('attribute'==_0x52b7aa['type']&&_0x52b7aa['data']['oldValue']!=_0x4cece6['data']['oldValue'])continue;if('attribute'==_0x52b7aa['type']&&_0x2b67c8['_isBlockAttribute'](_0x52b7aa['data']['key']))continue;if('formatBlock'==_0x52b7aa['type']){const _0x3dd0ce=_0x2b67c8['editor']['model'],_0x21b577=_0x52b7aa['getContainedElement']();if(_0x21b577&&(_0x3dd0ce['schema']['isObject'](_0x21b577)||_0x3dd0ce['schema']['isLimit'](_0x21b577)))continue;}const _0x5d6446=_0x4bb7fc['get'](_0x52b7aa),_0x4d9560=_0x729ff['get'](_0x52b7aa),_0x424471=_0x729ff['get'](_0x4cece6),_0x428aeb=_0x52b7aa['commentThread']&&_0x52b7aa['commentThread']['length'],_0x1ff173=_0x4cece6['commentThread']&&_0x4cece6['commentThread']['length'];if(!_0x428aeb&&_0x5d6446(_0x424471,_0x4d9560))return _0x2b67c8['_joinSuggestions'](_0x4cece6,_0x52b7aa),_0x729ff['delete'](_0x52b7aa),!0x0;if(!_0x1ff173&&_0x5d6446(_0x4d9560,_0x424471))return _0x2b67c8['_joinSuggestions'](_0x52b7aa,_0x4cece6),_0x729ff['delete'](_0x4cece6),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa8b28b,_0x1993ed){if(_0xa8b28b['isMultiRange']){for(const _0x28bf75 of _0x1993ed['getRanges']())_0xa8b28b['addRange'](_0x28bf75);}else{const _0x151169=_0x1993ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa8b28b,this['_model']['createRange'](_0xa8b28b['getFirstRange']()['start'],_0x151169));}_0x1993ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1925be,_0x2c9c60,_0x5d14e9){const _0x5959fc=_0x1925be['startsWith']('format')||_0x1925be['startsWith']('attribute')?'FORMATTING':_0x1925be['toUpperCase']();return o(this['editor']['locale'],_0x2c9c60+'_'+_0x5959fc+'_SUGGESTION_ANNOUNCEMENT',_0x5d14e9);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fd82f=this['editor'];if(!_0x2fd82f['ui'])return;const {ariaLiveAnnouncer:_0x33bf36}=_0x2fd82f['ui'];_0x138bd3(this['_model'],({left:_0x533dd4,entered:_0xb9d3b9})=>{for(const _0x25afbe of _0x533dd4){const {group:_0x4335ec,type:_0x1220ff}=this['_splitMarkerName'](_0x25afbe['name']);if('suggestion'===_0x4335ec){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0x1220ff,'LEAVE'));break;}}for(const _0x2e4a21 of _0xb9d3b9){const {group:_0x181ff1,type:_0xcbd3d7}=this['_splitMarkerName'](_0x2e4a21['name']);if('suggestion'===_0x181ff1){_0x33bf36['announce'](this['_getMarkerAnnouncementText'](_0xcbd3d7,'ENTER',_0x538503(_0x49096d)));break;}}});}['_processAttributeChanges'](_0x48eed6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e9bf1=this['editor'],_0x28db08=_0x1e9bf1['model']['document']['differ']['getChanges']();if(0x0==_0x28db08['length'])return!0x1;const _0x49a61c=[],_0x4b7b80=_0x28db08['filter'](_0x1d34fd=>'attribute'==_0x1d34fd['type']),_0x2c5f1a=_0x28db08['filter'](_0x4defc7=>'insert'==_0x4defc7['type']&&'$text'!=_0x4defc7['name']),_0x37e164=_0x28db08['filter'](_0xc93c91=>'remove'==_0xc93c91['type']&&'$text'!=_0xc93c91['name']);for(const _0x40f70d of _0x4b7b80)_0x49a61c['push']({'key':_0x40f70d['attributeKey'],'newValue':_0x40f70d['attributeNewValue'],'oldValue':_0x40f70d['attributeOldValue'],'range':Ht(_0x40f70d['range'],_0x1e9bf1['model'])});for(const _0x5b8dbb of _0x2c5f1a){const _0x4fd1a5=_0x37e164['find'](_0xfe3e01=>_0xfe3e01['position']['isEqual'](_0x5b8dbb['position']));_0x4fd1a5&&_0x49a61c['push']({'key':m,'newValue':_0x5b8dbb['name'],'oldValue':_0x4fd1a5['name'],'range':_0x1e9bf1['model']['createRangeOn'](_0x5b8dbb['position']['nodeAfter'])});}return 0x0!=_0x49a61c['length']&&this['_reduceExistingSuggestions'](_0x48eed6,_0x49a61c);}['_processAttributeSuggestions'](_0x3330a6){let _0x4fa1e4=!0x1;const _0x23b8b0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ea2e1=>_0x3ea2e1['data']['newRange']&&_0x3ea2e1['name']['startsWith']('suggestion:attribute:'));for(const _0x15a107 of _0x23b8b0){const {subType:_0x168b4d,id:_0x267c9b}=this['_splitMarkerName'](_0x15a107['name']),_0x588638=_0x168b4d['split']('|')[0x0];for(const _0x112f1b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x112f1b['id']!=_0x267c9b&&'attribute'==_0x112f1b['type']&&_0x112f1b['data']&&_0x112f1b['data']['key']==_0x588638&&_0x112f1b['getFirstRange']()['isIntersecting'](_0x15a107['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x112f1b,_0x15a107['data']['newRange'],_0x3330a6),_0x4fa1e4=!0x0);}return _0x4fa1e4;}['recordAttributeChanges'](_0x55fd1f){this['_recordAttributeSuggestions']=!0x0,_0x55fd1f();}['_isRegisteredAttribute'](_0xbb2189){const _0x1d7802=this['_isBlockAttribute'](_0xbb2189),_0x38c83b=this['_inlineAttributeKeys']['has'](_0xbb2189);return _0x1d7802||_0x38c83b;}['_reduceExistingSuggestions'](_0xcddf79,_0x1e2311){if(0x0==_0x1e2311['length'])return!0x1;let _0x5489fc=!0x1;for(const _0x1fa094 of _0x1e2311){const _0x49063a=this['_findSuggestions'](_0x1fa094['range'],'attribute')['filter'](_0x3eaa69=>!_0x3eaa69['meta']['isNextTo'])['map'](_0x51ef30=>_0x51ef30['suggestion']),_0x537ccd=_0x2fe077({'newValue':_0x1fa094['newValue']});_0x49063a['filter'](_0x17e91a=>{const [_0xa53ea5,_0x4e23ed]=_0x17e91a['subType']['split']('|');return _0xa53ea5==_0x1fa094['key']&&_0x4e23ed!=_0x537ccd;})['forEach'](_0x431de9=>{this['_reduceSuggestionAttributeRange'](_0x431de9,_0x1fa094['range'],_0xcddf79),_0x5489fc=!0x0;});}return _0x5489fc;}['_reduceSuggestionAttributeRange'](_0x4ef69d,_0x2cf90b,_0x2801a6){const _0x190fbe=_0x4ef69d['getFirstRange']()['getDifference'](_0x2cf90b);0x0!==_0x190fbe['length']?0x1!==_0x190fbe['length']?this['_breakSuggestionMarker'](_0x4ef69d,_0x2cf90b['start'],_0x2cf90b['end']):this['_setSuggestionRange'](_0x4ef69d,_0x190fbe[0x0]):_0x2801a6['removeMarker'](_0x4ef69d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xd69aeb){this['_editor']=_0xd69aeb,this['_model']=_0xd69aeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5b8b41,_0x35992d,_0x4ccd5b,_0x5bce8b,_0x24bb61,_0x4189f3,_0x5c542b){return new T(this['_model'],{'type':_0x5b8b41,'subType':_0x35992d,'id':_0x4ccd5b,'originalSuggestionId':_0x5c542b,'author':_0x5bce8b,'creator':_0x5bce8b,'attributes':_0x24bb61,'onAttributesChange':_0x4189f3,'onAccept':(..._0x44d4b4)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'accept')(..._0x44d4b4),'onDiscard':(..._0x307eff)=>this['getSuggestionCallback'](_0x5b8b41,_0x35992d,'discard')(..._0x307eff)});}['registerCustomCallback'](_0x3bf96f,_0x3e9390,_0x249de0,_0x225e6c){const _0x1498a4=_0x3bf96f+':'+_0x3e9390+':'+_0x249de0;this['_customCallbacks']['set'](_0x1498a4,_0x225e6c);}['getSuggestionCallback'](_0x4947c6,_0x3028fd,_0x4a5ff7){const _0x362f87=_0x4947c6+':'+_0x3028fd+':'+_0x4a5ff7;return this['_customCallbacks']['get'](_0x362f87)||this['_defaultCallbacks']['get'](_0x4947c6+':'+_0x4a5ff7);}['_registerDefaultCallbacks'](){const _0x455c4d=()=>!0x1,_0x4d071d=_0x187866=>{_0x187866['sort']((_0x1bce9b,_0x4f83d0)=>_0x1bce9b['start']['isBefore'](_0x4f83d0['start'])?0x1:-0x1),this['_model']['change'](_0x1b4c2c=>{for(const _0x215de of _0x187866){let _0x1bfc9a;_0x1bfc9a=_0x215de['end']['isAtEnd']&&_0x215de['end']['parent']==_0x215de['start']['nodeAfter']?_0x1b4c2c['createSelection'](_0x215de['start']['nodeAfter'],'on'):_0x1b4c2c['createSelection'](_0x215de),this['_model']['deleteContent'](_0x1bfc9a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2fddd8=(_0x552e47,_0x1d8f54)=>{_0x1d8f54&&this['_model']['change'](_0x1ab9b9=>{const {commandName:_0xa30b3b,commandParams:_0x4541de=[]}=_0x1d8f54,_0x2633a8=_0x552e47['map'](_0x36410d=>(Pt(_0x36410d)&&(_0x36410d=this['_model']['createRange'](_0x36410d['end'])),_0x36410d))['filter'](_0xe1a750=>'$graveyard'!==_0xe1a750['root']['rootName']);if(_0x2633a8['length']<0x1)return;const _0x524d37=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3013f6=>_0x334b1a['fromRange'](_0x3013f6));_0x1ab9b9['setSelection'](_0x2633a8);for(const _0x3de3f3 of this['_editor']['commands']['commands']())_0x3de3f3['refresh']();_0x4541de['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa30b3b,..._0x4541de);const _0x1ea174=_0x524d37['filter'](_0x2cd14e=>'$graveyard'!=_0x2cd14e['root']['rootName']);_0x1ea174['length']>0x0&&_0x1ab9b9['setSelection'](_0x1ea174);for(const _0x296807 of _0x524d37)_0x296807['detach']();});},_0x237d15=(_0x598ff0,_0x457f0c)=>0x1==_0x598ff0['length']&&0x1==_0x457f0c['length']&&_0x598ff0[0x0]['end']['isEqual'](_0x457f0c[0x0]['start']),_0x1f7b49=(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)=>zt(_0x48beb6,_0x102a05,_0x5cc86c,_0x11c972)?[_0x48beb6,_0x102a05]:zt(_0x102a05,_0x48beb6,_0x11c972,_0x5cc86c)?[_0x102a05,_0x48beb6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x455c4d),this['_defaultCallbacks']['set']('insertion:discard',_0x4d071d),this['_defaultCallbacks']['set']('insertion:join',_0x237d15),this['_defaultCallbacks']['set']('insertion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('deletion:accept',_0x4d071d),this['_defaultCallbacks']['set']('deletion:discard',_0x455c4d),this['_defaultCallbacks']['set']('deletion:join',_0x237d15),this['_defaultCallbacks']['set']('deletion:chain',_0x1f7b49),this['_defaultCallbacks']['set']('formatInline:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatInline:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatInline:join',_0x237d15),this['_defaultCallbacks']['set']('formatInline:chain',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2fddd8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x455c4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x237d15),this['_defaultCallbacks']['set']('formatBlock:chain',_0x455c4d),this['_defaultCallbacks']['set']('attribute:accept',_0x455c4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e1216,_0x201f0e)=>{if(!_0x201f0e)return;const _0x103cea=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1d6a56=>{if(_0x201f0e['key']==m)for(const _0x45deac of _0x2e1216){const _0x6474e5=_0x45deac['start']['nodeAfter'],_0x539feb=_0x201f0e['oldValue'];_0x1d6a56['rename'](_0x6474e5,_0x539feb);}else{if(_0x103cea['_isBlockAttribute'](_0x201f0e['key'])){for(const _0x2a98bb of _0x2e1216)void 0x0!==_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x2a98bb['start']['nodeAfter']):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x2a98bb['start']['nodeAfter']);}else{for(const _0x32f530 of _0x2e1216)_0x201f0e['oldValue']?_0x1d6a56['setAttribute'](_0x201f0e['key'],_0x201f0e['oldValue'],_0x32f530):_0x1d6a56['removeAttribute'](_0x201f0e['key'],_0x32f530);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x237d15);}}function Ft(_0x4a9d80,_0xe81ce2,_0x1ff9b7){for(const _0x283584 of _0xe81ce2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x283584['root']==_0x283584)return!0x1;if(!_0x1ff9b7['containsItem'](_0x283584))return!0x1;if(_0x4a9d80['isObject'](_0x283584)||_0x4a9d80['isLimit'](_0x283584))return!0x0;}return!0x1;}function Pt(_0x3d424b){return _0x3d424b['end']['parent']==_0x3d424b['start']['nodeAfter']&&_0x3d424b['end']['isAtStart'];}function Gt(_0x864747,_0x2cd35f,_0xfe925d,_0x5acfd8){const _0x9e2997=_0x50d7c8=>!_0x50d7c8['item']['is']('$textProxy')&&!_0x5acfd8['isObject'](_0x50d7c8['item']),_0x4029c5=_0x864747['start']['getLastMatchingPosition'](_0x9e2997),_0x95678b=_0x864747['end']['getLastMatchingPosition'](_0x9e2997,{'direction':'backward'});return(!_0x864747['start']['isEqual'](_0x4029c5)||!_0x864747['end']['isEqual'](_0x95678b))&&(_0x4029c5['isBefore'](_0x95678b)?_0xfe925d['updateMarker'](_0x2cd35f,{'range':_0xfe925d['createRange'](_0x4029c5,_0x95678b)}):_0xfe925d['removeMarker'](_0x2cd35f),!0x0);}function Lt(_0xa835ad){return _0x2fe077(_0xa835ad);}function Jt(_0x5b0f62){const _0x2b48d3=_0x5b0f62['start']['nodeAfter'];return _0x2b48d3&&_0x2b48d3['is']('element');}function Kt(_0x221709){return!Pt(_0x221709)&&!function(_0x533627){return _0x533627['start']['parent']==_0x533627['end']['nodeBefore']&&_0x533627['start']['isAtEnd'];}(_0x221709);}function Ht(_0x285217,_0x5dbde8){return null==_0x285217['end']['nodeBefore']&&_0x285217['end']['parent']==_0x285217['start']['nodeAfter']?qt(_0x285217['start']['nodeAfter'],_0x5dbde8):_0x285217;}function qt(_0x2202c7,_0x178e0d){const _0x1110f8=_0x178e0d['schema']['isObject'](_0x2202c7)||_0x178e0d['schema']['isSelectable'](_0x2202c7);return _0x178e0d['createRange'](_0x178e0d['createPositionAt'](_0x2202c7,'before'),_0x1110f8?_0x178e0d['createPositionAfter'](_0x2202c7):_0x178e0d['createPositionAt'](_0x2202c7,'end'));}function zt(_0x294583,_0xced17e,_0x226bce,_0x16b215){return!!Wt(_0x294583,_0xced17e)&&_0x226bce['end']['isEqual'](_0x16b215['start']);}function Wt(_0x267a96,_0x4ea59d){if(!_0x267a96['_isDataLoaded']||!_0x4ea59d['_isDataLoaded'])return!0x1;const _0x56c82f=new Set(Object['keys'](_0x267a96['attributes'])),_0x4e4313=new Set(Object['keys'](_0x4ea59d['attributes']));if(_0x56c82f['delete']('groupId'),_0x4e4313['delete']('groupId'),0x0==_0x56c82f['size']&&0x0==_0x4e4313['size'])return!0x0;if(_0x56c82f['size']!=_0x4e4313['size'])return!0x1;const _0x3854ad={..._0x267a96['attributes']},_0x2f81ad={..._0x4ea59d['attributes']};return delete _0x3854ad['groupId'],delete _0x2f81ad['groupId'],JSON['stringify'](_0x3854ad)==JSON['stringify'](_0x2f81ad);}function Qt(_0x459499,_0x3ba21f){const _0x1c2ca8=Xt(_0x459499['attributes']),_0xc10a30=Xt(_0x3ba21f);if(!_0x459499['_isDataLoaded'])return!0x1;for(const _0x4ddb19 of Object['keys'](_0xc10a30))if(!_0x17f578(_0x1c2ca8[_0x4ddb19],_0xc10a30[_0x4ddb19]))return!0x1;return!0x0;}function Xt(_0x51bec3){const _0x18bea4=Object['assign']({},_0x51bec3);return delete _0x18bea4['skipNestingCheck'],delete _0x18bea4['tablePasteChainId'],_0x18bea4;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4f27e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29c21f,_0x365790,_0x446f2c,_0x48fd6e){super(),this['model']=_0x365790,this['view']=_0x446f2c,this['commentThreadController']=_0x48fd6e,this['_editor']=_0x29c21f,this['_acceptCommand']=_0x29c21f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29c21f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x204be6,_0x4b41f8)=>_0x204be6||_0x4b41f8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x323da6=>_0x323da6&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3f5c41=>_0x3f5c41&&this['_editor']['model']['canEditAt'](_0x365790['getRanges']())),this['_pendingAction']=null,_0x446f2c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x446f2c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x446f2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x446f2c,'change:isDirty',()=>{_0x446f2c['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 _0x38623d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x38623d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x59a488{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2d5ef3,_0x3eb8bc,_0x3d158b,_0x279cbe){super(_0x2d5ef3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x395108(_0x2d5ef3,o(_0x2d5ef3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3eb8bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3eb8bc),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',_0x3eb8bc,'authoredAt',this,'descriptionParts',(_0x37b940,_0x53eb6b,_0x521e0a)=>{const _0x381c19=_0x521e0a['map'](_0x1dd608=>ls(_0x1dd608['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x37b940-0x1,_0x3eb8bc['author']['name'],_0x53eb6b?_0x279cbe['formatDateTime'](_0x53eb6b):'',new DOMParser()['parseFromString'](_0x381c19,'text/html')['body']['textContent']]);}),this['focusables']=new _0x56d81b(),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3931e7=>_0x3931e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3eb8bc,this['_localUser']=_0x3d158b,this['_config']=_0x279cbe,_0x279cbe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x163ace(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4cd545}=this['_config'];this['commentsListView']=new _0x4cd545(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',_0x7cfbf6=>_0x7cfbf6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3cf5ce,_0x4f92fb)=>_0x3cf5ce||!!_0x4f92fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c7ae8}=this['_config'],_0x59e5f8=new _0x4c7ae8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xfe4902=_0x59e5f8['commentInputView'];return _0x59e5f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xfe4902,'value',(_0x428201,_0x1bc52f,_0x2b593b)=>!!_0x2b593b||_0x428201&&!_0x1bc52f),_0xfe4902['on']('submit',(_0x16ab9c,_0x564b21)=>{this['fire']('addComment',_0x564b21),_0xfe4902['editor']['setData']('');}),_0xfe4902['on']('cancel',()=>this['focus']()),_0xfe4902['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x59e5f8;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef){super(_0x59b7e2,_0x4bd3f6,_0x4b688f,_0x2729ef),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b4135=>_0x3b4135&&_0x3b4135[0x0]?_0x3b4135[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2d88b8,_0x34823f)=>{let _0x25d26d='';for(const _0x27ecc3 of _0x2d88b8)_0x25d26d+='<p>'+ls(_0x27ecc3['content'],_0x27ecc3['color'])+'</p>';return _0x34823f?_0x25d26d:_0x347682(_0x25d26d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2729ef['SuggestionView'](_0x59b7e2,_0x4bd3f6,{'formatDateTime':_0x2729ef['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 _0x3ac019=this['bindTemplate'],_0x4acc01=[this['suggestionView']];return this['commentsListView']&&_0x4acc01['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4acc01['push'](this['commentThreadInputView']),_0x4acc01['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3ac019['if']('isActive','ck-suggestion-wrapper--active'),_0x3ac019['to']('type',_0x4573c9=>'ck-suggestion-'+_0x4573c9),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':_0x3ac019['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4acc01};}['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 _0x59a488{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a7235,_0x2ce77b,_0x254f25){super(_0x3a7235),this['_model']=_0x2ce77b,this['_config']=_0x254f25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2ce77b),this['acceptButton']=this['_createButton'](o(_0x3a7235,'Accept\x20suggestion'),_0x34b441,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a7235,'Discard\x20suggestion'),_0x40347d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3b83ce(_0x3a7235,_0x2ce77b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x56d81b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x231eb3(),this['keystrokes']=new _0x1ffabe(),this['focusCycler']=new _0x3129c0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8e28e7=>_0x8e28e7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x321771=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x321771['innerHTML']=this['description'],this['on']('change:description',(_0x29921a,_0x140729,_0x3d69cd)=>{_0x321771['innerHTML']=_0x3d69cd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x52a1e2=this['bindTemplate'],_0x5bb0ac=[{'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':_0x52a1e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x52a1e2['to']('authoredAt',_0x4fbb39=>this['_config']['formatDateTime'](_0x4fbb39))}]}]},{'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']&&_0x5bb0ac['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':_0x5bb0ac}]};}['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'](_0x2d3b9f,_0xf7f6d2,_0x26a969,_0x2a5cff,_0x4302bb){const _0x50f986=new _0x2ec40b(this['locale']);return _0x50f986['set']({'label':_0x2d3b9f,'icon':_0xf7f6d2,'tooltip':!0x0,'tooltipPosition':_0x4302bb}),_0x50f986['extendTemplate']({'attributes':{'class':_0x26a969}}),_0x50f986['on']('execute',()=>{this['fire'](_0x2a5cff,this['_model']['id']);}),_0x50f986;}['_setupKeyboardNavigation'](){const _0x577226=this['element'];this['keystrokes']['listenTo'](_0x577226);for(const _0x16028e of this['focusables'])this['focusTracker']['add'](_0x16028e['element']),this['keystrokes']['listenTo'](_0x16028e['element']);this['keystrokes']['set']('enter',(_0x41c443,_0x3d2def)=>{_0x577226===_0x41c443['target']&&(this['focusCycler']['focusFirst'](),_0x3d2def());}),this['keystrokes']['set']('esc',(_0x1855af,_0x5c54c3)=>{_0x577226!==_0x1855af['target']&&(this['focus'](),_0x5c54c3());});}}class u extends _0x559983{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x597f1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x568d6b){super(_0x568d6b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x121840=this['editor']['config'];_0x121840['define']('trackChanges.SuggestionThreadView',fe),_0x121840['define']('trackChanges.SuggestionView',we),_0x121840['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x121840['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x445c7a,_0x4f9a22){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf92fc4,_0x5b0842]of this['_handleControllerBuffer']){const _0x104f0c=this['_suggestionToController']['has'](_0xf92fc4);_0x104f0c||_0x5b0842?_0x104f0c&&_0x5b0842&&this['_destroyController'](_0xf92fc4):this['_initializeController'](_0xf92fc4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x445c7a,_0x4f9a22);}['init'](){const _0x209af1=this['editor'],_0x1de06b=_0x209af1['plugins']['get']('TrackChangesEditing'),_0x5225da=_0x209af1['plugins']['get']('Annotations'),_0x16118f=_0x209af1['plugins']['get']('EditorAnnotations'),_0x1cb947=_0x209af1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16118f['addSourceCollector'](()=>{const _0x3a907b=[];for(const [_0x1b04a8,_0x2ffe4d]of Array['from'](this['_suggestionToController'])){const _0x2d581c=_0x1b04a8['getAllAdjacentSuggestions'](),_0x2a5a38=[];for(const _0xc7b089 of _0x2d581c){if(!_0xc7b089['isInContent'])continue;if(_0xc7b089['isMultiRange']){_0x2a5a38['push'](..._0xc7b089['getRanges']());continue;}const _0x3d229e=_0xc7b089['getFirstRange']();if(_0x2a5a38['length']>0x0){const _0x23b6cb=_0x2a5a38[0x0]['getJoined'](_0x3d229e);if(_0x23b6cb){_0x2a5a38[0x0]=_0x23b6cb;continue;}}_0x2a5a38['push'](_0x3d229e);}_0x3a907b['push']([_0x2ffe4d['view'],_0x2a5a38]);}return _0x3a907b;}),this['listenTo'](_0x1de06b,'suggestionLoaded',(_0xccd635,_0x1602bb)=>{this['listenTo'](_0x1602bb,'change:previous',(_0x55206a,_0x4be9c3,_0x1d2672,_0x1257c6)=>{_0x1602bb['isInContent']&&(null==_0x1d2672?(this['_updateController'](_0x1257c6['head']),this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1)):(this['_updateController'](_0x1d2672['head']),null==_0x1257c6&&this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x0)));}),null!==_0x1602bb['previous']?this['_updateController'](_0x1602bb['head']):this['_handleSuggestionControllerDelayed'](_0x1602bb,!0x1);}),this['listenTo'](_0x1de06b,'suggestionUnloaded',(_0x3a9ae3,_0x3e1594,_0x7eb405)=>{this['stopListening'](_0x3e1594,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e1594),this['_suggestionToController']['has'](_0x3e1594)&&this['_destroyController'](_0x3e1594),_0x7eb405&&this['_updateController'](_0x7eb405['head']);}),this['listenTo'](_0x1de06b,'suggestionChanged',(_0x282d1f,_0x381b4d)=>{this['_updateController'](_0x381b4d);}),this['listenTo'](_0x5225da,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1cb947,'addComment',(_0xc75cd0,{threadId:_0x3057c7,isFromAdapter:_0x3e3324})=>{if(_0x3e3324||!_0x1de06b['hasSuggestion'](_0x3057c7))return;const _0x2938ee=_0x1de06b['getSuggestion'](_0x3057c7);this['_suggestionToController']['get'](_0x2938ee)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xbb86a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ffad4;for(const _0x286c37 in _0xbb86a7){const _0x38dae0=_0x286c37,_0x450e3f=_0xbb86a7[_0x38dae0];if('trackChangesLicenseKeyValid'==_0x450e3f||'trackChangesLicenseKeyInvalid'==_0x450e3f||'trackChangesLicenseKeyExpired'==_0x450e3f||'trackChangesLicenseKeyDomainLimit'==_0x450e3f||'trackChangesLicenseKeyNotAllowed'==_0x450e3f||'trackChangesLicenseKeyEvaluationLimit'==_0x450e3f||'trackChangesLicenseKeyTrialLimit'==_0x450e3f||'trackChangesLicenseKeyUsageLimit'==_0x450e3f){delete _0xbb86a7[_0x38dae0],_0x7ffad4=_0x450e3f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x7ffad4&&_0xbb86a7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2eedf6){const _0x35b0da=this['_suggestionToController']['get'](_0x2eedf6);if(!_0x35b0da)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x35b0da['view'])||null;}['getSuggestionForAnnotation'](_0x58a4e7){const _0xa4afff=this['_viewToController']['get'](_0x58a4e7['innerView']);return _0xa4afff?_0xa4afff['model']:null;}['_refreshActiveMarkers'](){const _0x12aefd=this['editor']['plugins']['get']('Annotations'),_0x207d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x444ac6=Array['from'](_0x12aefd['activeAnnotations'],_0x3eacbc=>_0x3eacbc['innerView'])['filter'](_0x7bd554=>this['_viewToController']['has'](_0x7bd554)),_0x3b32b2=[];for(const _0x3e8146 of _0x444ac6){const _0x391d51=this['_viewToController']['get'](_0x3e8146)['model']['getAllAdjacentSuggestions']();_0x3b32b2['push'](..._0x391d51['reduce']((_0x51a6ca,_0x4e9de9)=>[..._0x51a6ca,..._0x4e9de9['getMarkerNames']()],[]));}_0x207d2d['activeMarkers']=_0x3b32b2;}['_addUIComponentsToFactory'](){const _0x35fba4=this['editor'],_0x479166=_0x35fba4['locale'],_0x41c929=o(_0x479166,'Track\x20changes'),_0x1efd51=new _0x30f5d4([{'type':'switchbutton','model':new _0x4d3856({'withText':!0x0,'isToggleable':!0x0,'label':_0x41c929,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35fba4['plugins']['has']('TrackChangesPreview')&&_0x1efd51['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d3856({'withText':!0x0,'label':o(_0x479166,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3213ae of _0x1efd51)if(ke(_0x3213ae)){const _0x3a5a3e=_0x35fba4['commands']['get'](_0x3213ae['model']['commandName']);_0x3213ae['model']['bind']('isOn','isEnabled')['to'](_0x3a5a3e,'value','isEnabled');}_0x35fba4['ui']['componentFactory']['add']('trackChanges',_0x1f2da9=>this['_createToolbarButton'](_0x1f2da9,_0x1efd51,_0x41c929)),_0x35fba4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eeccb=>this['_createMenuBarMenu'](_0x3eeccb,_0x1efd51,_0x41c929));}['_createToolbarButton'](_0x34b562,_0x4bb64f,_0x394a58){const _0x4f3a81=_0x1e80c3(_0x34b562,_0x552a5f),_0x3c27d2=this['editor']['commands']['get']('trackChanges');_0x4f3a81['buttonView']['set']({'tooltip':_0x394a58,'label':_0x394a58,'icon':_0x2f5b1a}),_0x4f3a81['buttonView']['bind']('isOn')['to'](_0x3c27d2,'value'),_0x4f3a81['buttonView']['on']('execute',()=>{_0x3c27d2['execute'](),this['editor']['editing']['view']['focus']();}),_0x56cc45(_0x4f3a81,_0x4bb64f,{'role':'menu'});const _0x5be482=[];for(const _0xee336c of _0x4bb64f)ke(_0xee336c)&&_0x5be482['push'](this['editor']['commands']['get'](_0xee336c['model']['commandName']));const _0x5088a2=_0x4f3a81['buttonView'];return _0x5088a2['actionView']['unbind']('isEnabled'),_0x5088a2['arrowView']['unbind']('isEnabled'),_0x5088a2['actionView']['bind']('isEnabled')['to'](_0x3c27d2,'isEnabled'),_0x5088a2['arrowView']['bind']('isEnabled')['toMany'](_0x5be482,'isEnabled',(..._0x54f444)=>_0x54f444['some'](_0x29b87e=>_0x29b87e)),_0x4f3a81['on']('execute',_0x2639c4=>{this['editor']['execute'](_0x2639c4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f3a81;}['_createMenuBarMenu'](_0x1ecba6,_0x2870e8,_0x22684a){const _0x2dde9d=new _0x2f852e(_0x1ecba6),_0x506995=this['editor']['commands']['get']('trackChanges');_0x2dde9d['buttonView']['set']({'label':_0x22684a,'icon':_0x2f5b1a});const _0x3daf20=new _0xa85213(_0x1ecba6);for(const _0x403e03 of _0x2870e8){if('separator'==_0x403e03['type']){_0x3daf20['items']['add'](new _0x381151(_0x1ecba6));continue;}const _0x5c6c9b=new _0x32fd6e(_0x1ecba6,_0x2dde9d),_0x2f1751=new _0x5ce50d(_0x1ecba6),_0x15cfce=_0x403e03['model'];_0x2f1751['bind'](...Object['keys'](_0x15cfce))['to'](_0x15cfce),_0x2f1751['delegate']('execute')['to'](_0x2dde9d),_0x2f1751['on']('execute',()=>{this['editor']['execute'](_0x15cfce['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c6c9b['children']['add'](_0x2f1751),_0x3daf20['items']['add'](_0x5c6c9b);}return _0x2dde9d['bind']('isEnabled')['to'](_0x506995,'isEnabled'),_0x2dde9d['panelView']['children']['add'](_0x3daf20),_0x2dde9d;}['_initializeController'](_0x9c0179){const _0x5a8483=this['editor'],_0x49bf04=_0x5a8483['config'],_0x24c815=_0x5a8483['plugins']['get']('Annotations'),_0x1519a7=_0x5a8483['plugins']['get']('CommentsRepository'),_0x175632=_0x5a8483['plugins']['get']('EditorAnnotations'),_0x317e0f=_0x5a8483['plugins']['get'](_0x597f1a)['me'],_0x54eb7c=_0x49bf04['get']('trackChanges')['SuggestionThreadView'],_0x3fa1da=_0x49bf04['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b4fbe,CommentThreadInputView:_0x9575be}=_0x5a8483['plugins']['get']('CommentsUI');let _0x228758,_0xeb176,_0x1b282f;this['_annotationViews']['has'](_0x9c0179['id'])?(_0xeb176=this['_annotationViews']['get'](_0x9c0179['id']),_0x228758=_0xeb176['mainView']):(_0x228758=new _0x54eb7c(_0x5a8483['locale'],_0x9c0179,_0x317e0f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x49bf04['get']('comments.editorConfig'),'licenseKey':_0x49bf04['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x49bf04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x49bf04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x49bf04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4f5d71(_0x49bf04['get']('locale'),_0x5a8483['locale']),'CommentView':_0x49bf04['get']('comments')['CommentView'],'CommentsListView':_0x2b4fbe,'CommentThreadInputView':_0x9575be,'SuggestionView':_0x3fa1da}),_0x228758['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0x228758['suggestionView']['discardButton']['on']('execute',()=>{_0x5a8483['editing']['view']['focus']();}),_0xeb176=_0x24c815['createAnnotationView'](this['editor']['locale'],_0x228758),_0xeb176['bind']('isDirty')['to'](_0x228758,'isDirty'),_0xeb176['bind']('length')['to'](_0x228758),_0xeb176['bind']('type')['to'](_0x228758,'type',_0x6c2355=>'suggestion-'+_0x6c2355),_0x228758['on']('escape',()=>{_0x1b282f['fire']('escape');}),this['_annotationViews']['set'](_0x9c0179['id'],_0xeb176));const _0x5c0715=_0x1519a7['createCommentThreadController'](_0x9c0179['commentThread'],_0x228758),_0x5b8f09=new pe(_0x5a8483,_0x9c0179,_0x228758,_0x5c0715),_0x3e40bd=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x5502ba=>_0x5502ba['isInContent']);_0x228758['descriptionParts']=_0x5a8483['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e40bd),this['_suggestionToController']['set'](_0x9c0179,_0x5b8f09),this['_viewToController']['set'](_0x228758,_0x5b8f09),_0x1b282f=_0x24c815['createAnnotation']({'view':_0xeb176,'target':()=>{const _0x7327c=[],_0xd9abcb=_0x9c0179['getAllAdjacentSuggestions']()['filter'](_0x3074d9=>_0x3074d9['isInContent']);for(const _0x5beb6c of _0xd9abcb)_0x7327c['push'](..._0x5beb6c['getMarkers']());return _0x3a0d9a(_0x5a8483['editing'],_0x7327c);},'type':()=>'suggestion-'+_0x5b8f09['view']['type']}),_0x1519a7['_bindAnnotationToEditors'](_0x228758,_0x1b282f),_0x24c815['add'](_0x1b282f),_0x175632['registerAnnotation'](_0x1b282f);}['_destroyController'](_0x46730c){const _0xdf4d16=this['editor']['plugins']['get']('CommentsRepository'),_0x2ab652=this['editor']['plugins']['get']('Annotations'),_0x54bf61=this['_suggestionToController']['get'](_0x46730c),_0x182b0b=_0x54bf61['view'],_0x202094=_0x2ab652['getByInnerView'](_0x182b0b);_0xdf4d16['_unbindEditors'](_0x182b0b),_0x202094&&_0x2ab652['remove'](_0x202094),this['_suggestionToController']['delete'](_0x46730c),this['_viewToController']['delete'](_0x182b0b),_0x54bf61['destroy']();}['_updateController'](_0x107d65){if(!_0x107d65['isInContent']||!this['_suggestionToController']['has'](_0x107d65))return;const _0x2ce008=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229463=this['_suggestionToController']['get'](_0x107d65),_0x2a37b7=_0x107d65['getAllAdjacentSuggestions']();_0x229463['view']['descriptionParts']=_0x2ce008['descriptionFactory']['getDescriptions'](_0x2a37b7);}['destroy'](){for(const _0x40bc4f of this['_suggestionToController']['keys']())this['_destroyController'](_0x40bc4f);for(const _0x3363d1 of this['_annotationViews']['values']())_0x3363d1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2e486b){return'model'in _0x2e486b;}class Fe extends _0x559983{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4e470c){this['editor']['plugins']['get'](d)['adapter']=_0x4e470c;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x37f429){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x37f429);}['getSuggestions']({skipNotAttached:_0x51d968=!0x1,toJSON:_0x5c0160=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x51d968,'toJSON':_0x5c0160});}['getSuggestion'](_0x4ecf16){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4ecf16);}}const p=['Pagination'];class re extends _0x559983{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2e3e59=this['editor'];if(_0x2e3e59['config']['define']('trackChangesData.editorCreator',_0x4f00e9=>{const _0x14344d=_0x2e3e59['model']['document']['getRootNames']()['reduce']((_0x10c1aa,_0x12e03c)=>(_0x10c1aa[_0x12e03c]='',_0x10c1aa),{});return _0x2e3e59['constructor']['create'](_0x14344d,_0x4f00e9);}),'function'!=typeof _0x2e3e59['config']['get']('trackChangesData')['editorCreator'])throw new _0x346a74('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47bf8c){return P(this['editor'],!0x0,_0x47bf8c);}['getDataWithDiscardedSuggestions'](_0x20e1af){return P(this['editor'],!0x1,_0x20e1af);}}class Ge extends _0x559983{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1385dc){function _0x58fc20(_0x4b64d1){return _0x4b64d1['map'](_0x22f813=>String['fromCharCode'](_0x22f813))['join']('');}super(_0x1385dc),this['result']='end',_0x1385dc[_0x58fc20([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58fc20([0x76,0x69,0x65,0x77])][_0x58fc20([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58fc20([0x61,0x75,0x74,0x6f]),_0x1385dc[_0x58fc20([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58fc20([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58fc20([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58fc20([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58fc20([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(_0x1c90f4){return void 0x0!==_0x1c90f4['getRootsAttributes'];}async function P(_0xdf611,_0x7afc97,_0x4d2933){const _0x12148f=_0x17c6af(_0xdf611,p);_0x12148f['plugins']['push'](d,Ge),_0x12148f['rootsAttributes']=He(_0xdf611)?_0xdf611['getRootsAttributes']():void 0x0;const _0x3247e7=document['createDocumentFragment'](),_0x5a6204=_0xdf611['config']['get']('trackChangesData')['editorCreator'],_0x2c4d4c=await _0x5a6204(_0x12148f,()=>function(_0x5b552c){const _0x23480c=document['createElement']('div');return _0x5b552c['appendChild'](_0x23480c),_0x23480c;}(_0x3247e7));!function(_0x536be4,_0x3b8f27){const _0x33b580=_0x536be4['model']['document']['getRootNames']()['reduce']((_0x25ec2d,_0x5dbfb4)=>(_0x25ec2d[_0x5dbfb4]=_0x536be4['data']['get']({'rootName':_0x5dbfb4}),_0x25ec2d),{}),_0x27e1bd=_0x536be4['plugins']['get']('Users')['users']['map'](_0x25fb80=>({'id':_0x25fb80['id'],'name':_0x25fb80['name']})),_0x4f7bd2=_0x536be4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x217edc=_0x536be4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x191141=_0x3b8f27['plugins']['get']('Users'),_0x3236ca=_0x3b8f27['plugins']['get']('TrackChangesEditing'),_0x100ef8=_0x3b8f27['plugins']['get']('CommentsRepository');for(const _0xd85748 of _0x100ef8['getCommentThreads']())_0xd85748['remove']();for(const _0x26df00 of _0x27e1bd)_0x191141['getUser'](_0x26df00['id'])||_0x191141['addUser'](_0x26df00);_0x191141['me']||_0x191141['useAnonymousUser']();for(const _0x3cffc4 of _0x217edc)_0x100ef8['addCommentThread'](_0x3cffc4);for(const _0x26350f of _0x4f7bd2)_0x3236ca['addSuggestionData'](_0x26350f);_0x3b8f27['data']['set'](_0x33b580);}(_0xdf611,_0x2c4d4c),_0x2c4d4c['execute'](_0x7afc97?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e4e70=He(_0x2c4d4c)?_0x2c4d4c['getFullData'](_0x4d2933):_0x2c4d4c['data']['get'](_0x4d2933);return await _0x2c4d4c['destroy'](),_0x3e4e70;}class Me extends _0x59a488{['options'];constructor(_0x32214f,_0x421226){super(_0x32214f),this['options']=_0x421226,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'](_0x223509,_0xb553f6){if(!this['element'])return;const _0x2029cf=[];for(const [_0x206b44,_0x2388f2]of _0x223509){const _0x1fbd00=document['createElement']('div');_0x1fbd00['setAttribute']('data-ck-root-name',_0x206b44),_0x1fbd00['className']=_0x2388f2['classes']+'\x20ck-track-changes-preview__root-container',_0x1fbd00['innerHTML']=_0x2388f2['content'],_0x2029cf['push'](_0x1fbd00);}_0xb553f6(this['element'],_0x2029cf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ceda1{constructor(_0x53efba){super(_0x53efba),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x510332=this['editor'],_0x3a1494=_0x510332['locale'],_0x3b577e=_0x510332['plugins']['get']('Dialog');let _0x2ece02;const _0x560705=function(_0x337c2e){const _0x2baf30={};if('editables'in _0x337c2e['ui']['view']){for(const [_0x3c068f,_0x507ce0]of Object['entries'](_0x337c2e['ui']['view']['editables']))_0x2baf30[_0x3c068f]=_0x507ce0['element'];}else _0x2baf30[_0x337c2e['model']['document']['getRootNames']()[0x0]]=_0x337c2e['ui']['view']['editable']['element'];return _0x2baf30;}(_0x510332),_0x4625b0=function(_0x4e9299){let _0xfc975=0x0;for(const _0x3b4deb of Object['values'](_0x4e9299))_0xfc975=Math['max'](_0xfc975,_0x3b4deb['getBoundingClientRect']()['width']);let _0x499e78=0x0;for(const _0x21a907 of Object['values'](_0x4e9299))_0x499e78+=_0x21a907['getBoundingClientRect']()['height'];const _0xbadc94=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x441dbc=Math['min'](_0x499e78,_0xbadc94);return{'width':_0xfc975,'height':_0x441dbc};}(_0x560705);_0x3b577e['show']({'id':'finalContentPreview','title':o(_0x3a1494,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a1494,{'dialogRects':_0x4625b0}),'onHide':()=>{_0x2ece02['detachFromDom']();},'onShow':()=>{_0x510332['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b1a1c=>{const _0x17639a=this['_standarizeRootsData'](_0x4b1a1c,_0x510332,_0x560705);_0x3b577e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17639a,_0x510332['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ece02=new _0x107e82(_0x3a1494,[_0x3b577e['view']]),_0x2ece02['attachToDom'](),_0x2ece02['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x510332['once']('destroy',()=>{_0x2ece02['detachFromDom']();});const _0x2ad7ae=_0x3b577e['view']['headerView']['class'];_0x3b577e['view']['headerView']['class']=_0x2ad7ae?_0x2ad7ae+'\x20ck-reset_all':'ck-reset_all',_0x3b577e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3b577e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244881=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4298cf=_0x244881['previewMode'],_0x544a57={};if('$labels'===_0x4298cf){for(const _0x4c1b1a of _0x244881['getMergeFieldsIds']())_0x544a57[_0x4c1b1a]=_0x244881['getLabel'](_0x4c1b1a)||_0x4c1b1a;}else{const _0x478dc6='$defaultValues'===_0x4298cf?_0x244881['getDefaultValues']():_0x244881['getDataSetValues'](_0x4298cf,!0x0);for(const _0x460d7d of Object['entries'](_0x478dc6)){const [_0x272124,_0x40510b]=_0x460d7d;_0x544a57[_0x272124]=null!==_0x40510b?_0x40510b:_0x244881['getLabel'](_0x272124)||_0x272124;}}return{'mergeFieldsData':_0x544a57};}['_standarizeRootsData'](_0x4111aa,_0x59a31b,_0x6286ae){let _0x18c35f;if('string'==typeof _0x4111aa){const _0x46ebd1=_0x59a31b['model']['document']['getRootNames']()[0x0];_0x18c35f={[_0x46ebd1]:_0x4111aa};}else _0x18c35f=_0x4111aa;const _0x2767e7=this['_fixMediaEmbeds'](_0x18c35f,_0x59a31b),_0x153e36=function(_0x29ec41,_0x56a1dd){for(const [_0x390807,_0x5e0055]of _0x29ec41)_0x5e0055['classes']=_0x56a1dd[_0x390807]['classList']['value']['replace']('ck-focused','');return _0x29ec41;}(this['_sortRoots'](_0x59a31b)['reduce']((_0x21aa92,_0x2cbe6b)=>(_0x21aa92['push']([_0x2cbe6b,{'content':_0x2767e7[_0x2cbe6b],'classes':''}]),_0x21aa92),[]),_0x6286ae);return _0x153e36;}['_fixMediaEmbeds'](_0x49f20a,_0x5d96ca){if(!_0x5d96ca['plugins']['has']('MediaEmbedEditing'))return _0x49f20a;const _0x527574=_0x5d96ca['plugins']['get']('MediaEmbedEditing');for(const [_0x166e4c,_0x5bfc81]of Object['entries'](_0x49f20a)){const _0xae0037=document['createElement']('div');_0xae0037['innerHTML']=_0x5bfc81,(_0xae0037['querySelectorAll']('figure.media')['forEach'](_0x210422=>{const _0x9b35ab=_0x210422['querySelector']('oembed');if(_0x9b35ab){const _0x252f9b=_0x9b35ab['getAttribute']('url');if(_0x252f9b){const _0x272a12=_0x527574['registry']['getMediaViewElement'](new _0x3be5d0(_0x5d96ca['editing']['view']['document']),_0x252f9b,{'elementName':'','renderForEditingView':!0x0}),_0x450551=document['createElement']('div');_0x450551['classList']['add']('ck-media__wrapper'),_0x272a12['render'](_0x450551,_0x5d96ca['editing']['view']['domConverter']),_0x9b35ab['replaceWith'](_0x450551);}}}),_0x49f20a[_0x166e4c]=_0xae0037['innerHTML']);}return _0x49f20a;}['_sortRoots'](_0x408b5e){if(!function(_0x1a27b3){return void 0x0!==_0x1a27b3['getRootsAttributes'];}(_0x408b5e))return _0x408b5e['model']['document']['getRootNames']();const _0xf9c280=[],_0x154d48=new Map();for(const _0x336c90 of _0x408b5e['model']['document']['getRootNames']()){const _0x4a3218=_0x408b5e['editing']['view']['getDomRoot'](_0x336c90)['getClientRects']()['item'](0x0);_0xf9c280['push'](_0x336c90),_0x154d48['set'](_0x336c90,_0x4a3218);}return _0xf9c280['sort']((_0x2161d5,_0x22cb8a)=>{const _0x6f04b2=_0x154d48['get'](_0x2161d5),_0x524a10=_0x154d48['get'](_0x22cb8a);return _0x6f04b2['y']-_0x524a10['y']||_0x6f04b2['x']-_0x524a10['x'];}),_0xf9c280;}}class $e extends _0x559983{static get['requires'](){return[re,_0x401523];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b200f){super(_0x5b200f),_0x5b200f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5b200f['config']['define']('trackChanges.preview.renderFunction',(_0x57df4e,_0x3cfaf2)=>{for(const _0x34523e of _0x3cfaf2)_0x57df4e['appendChild'](_0x34523e);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ 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,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|