@ckeditor/ckeditor5-track-changes 47.7.5-alpha.0 → 47.7.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/package.json +26 -26
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.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/footnotes.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
|
-
_0xa24922(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f71d6,_0x5380ae){super(),this['id']=_0x5380ae['id'],this['type']=_0x5380ae['type'],this['subType']=_0x5380ae['subType']||null,this['author']=_0x5380ae['author'],this['creator']=_0x5380ae['creator']||_0x5380ae['author'],this['isExternal']=Boolean(_0x5380ae['attributes']&&_0x5380ae['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5380ae['originalSuggestionId']||null,this['_model']=_0x3f71d6,this['_onAccept']=_0x5380ae['onAccept'],this['_onDiscard']=_0x5380ae['onDiscard'],this['_onAttributesChange']=_0x5380ae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5380ae['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 _0x225aad=this;for(;_0x225aad['previous'];)_0x225aad=_0x225aad['previous'];return _0x225aad;}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'](_0x3d06a6){this['_markerNames']['add'](_0x3d06a6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4472c6=>this['_model']['markers']['get'](_0x4472c6))['filter'](_0x3d379c=>_0x3d379c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b574d=>{for(const _0x2b8a00 of this['getMarkers']())_0x3b574d['removeMarker'](_0x2b8a00);}),this['_markerNames']['clear']();}['removeMarker'](_0x169501){this['_model']['change'](_0x413b69=>{_0x413b69['removeMarker'](_0x169501);}),this['_markerNames']['delete'](_0x169501);}['addRange'](_0x4869bf){const _0x286ea4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x286ea4),this['_model']['change'](_0x1470dc=>{_0x1470dc['addMarker'](_0x286ea4,{'range':_0x4869bf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x14a1a8){for(const _0x220a62 of this['getRanges']())if(_0x220a62['isIntersecting'](_0x14a1a8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2aa017=>_0x2aa017['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x10824a,_0x2b8aac)=>[..._0x10824a,..._0x2b8aac['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x432956=this['getRanges']();if(0x1!=_0x432956['length'])return null;const _0x1df300=_0x432956[0x0],_0x41eb78=_0x1df300['start']['nodeAfter'],_0x2045dc=_0x1df300['end']['nodeBefore'];return _0x41eb78 instanceof _0x4004c6?_0x41eb78!=_0x2045dc?null:_0x41eb78: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 _0x27d51e=[];let _0x29191d=this['head'];for(;_0x29191d;)_0x27d51e['push'](_0x29191d),_0x29191d=_0x29191d['next'];return _0x27d51e;}['setAttribute'](_0x1129c6,_0x4389f5){const _0x186a46=_0x34c9e3(this['attributes']);_0x596ca9(_0x186a46,_0x1129c6,_0x4389f5),_0x5c135e(_0x186a46,this['attributes'])||(this['attributes']=_0x186a46,this['_onAttributesChange'](_0x186a46));}['removeAttribute'](_0x48e232){const _0x1b27ef=_0x34c9e3(this['attributes']);_0x19fc1a(_0x1b27ef,_0x48e232),_0x5c135e(_0x1b27ef,this['attributes'])||(this['attributes']=_0x1b27ef,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 _0x34c54d()['substr'](0x1,0x5);}}function o(_0x2d4caa,_0x271c82,_0x31a429){const _0x5b789c=_0x2d4caa['t'],t=_0x2d4caa['t'];switch(_0x271c82){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',_0x31a429);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x31a429);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x31a429);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x31a429);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x31a429);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',_0x31a429);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x31a429);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',_0x31a429);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x31a429);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x31a429);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x31a429);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x31a429);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x31a429);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x31a429);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x31a429);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x31a429);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x31a429);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x31a429);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x31a429);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x31a429);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x31a429);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x31a429);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x31a429);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x31a429);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x31a429);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'},_0x31a429);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x31a429);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x31a429);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x31a429);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x31a429);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x31a429);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x31a429);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x31a429);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'},_0x31a429);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x31a429);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x31a429);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x31a429);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x31a429);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x31a429);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x31a429);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'},_0x31a429);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x31a429);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x31a429);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'},_0x31a429);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x31a429);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'},_0x31a429);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x31a429);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x31a429);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x31a429);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x31a429);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x31a429);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'},_0x31a429);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x31a429);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 _0x5b789c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x31a429);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5b789c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x31a429);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x31a429);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'},_0x31a429);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'},_0x31a429);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'},_0x31a429);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x271c82;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x472eb6,_0x2e4750){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x472eb6,this['_locale']=_0x2e4750;}['getDescriptions'](_0x5b37d5){const _0x84819b=[],_0x57cd1f=new Set(),_0x3ec53b=new Set();for(let _0xa8d04d=0x0;_0xa8d04d<_0x5b37d5['length'];_0xa8d04d++){const _0x4e56ea=_0x5b37d5[_0xa8d04d];if(!_0x4e56ea['isInContent'])continue;const _0x253d1c=this['_handleCustomCallbackDescription'](_0x4e56ea);if(_0x253d1c){if(null!=_0x4e56ea['subType']){if(_0x57cd1f['has'](_0x4e56ea['subType']))continue;_0x57cd1f['add'](_0x4e56ea['subType']);}_0x84819b['push'](_0x253d1c);}else{if('attribute'==_0x4e56ea['type']){const _0x33b55d=_0x4e56ea['data']['key'];if(_0x3ec53b['has'](_0x33b55d))continue;_0x3ec53b['add'](_0x4e56ea['data']['key']),_0x33b55d==m?this['_handleRenameSuggestionDescription'](_0x84819b,_0x4e56ea):this['_handleAttributeSuggestionDescription'](_0x84819b,_0x4e56ea);continue;}'insertion'!=_0x4e56ea['type']&&'deletion'!=_0x4e56ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x84819b,_0x4e56ea,_0x5b37d5[_0xa8d04d+0x1]);}}return this['_resolveDescriptionItems'](_0x84819b);}['registerDescriptionCallback'](_0x5b6eca){this['_customCallbacks']['push'](_0x5b6eca);}['registerElementLabel'](_0x36d5d6,_0x33cd2d,_0x83506=_0x35b182['normal']){'function'==typeof _0x36d5d6?_0x5ca17f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x36d5d6,'label':_0x33cd2d,'priority':_0x83506}):this['_itemLabels']['set'](_0x36d5d6,_0x33cd2d);}['registerAttributeLabel'](_0x13974a,_0x3f04d1){this['_attributeLabels']['set'](_0x13974a,_0x3f04d1);}['getItemLabel'](_0x30d0a6,_0x1731ff=0x1){let _0x3b65a8;for(const _0x18ae65 of this['_itemLabelsCallbacks'])if(_0x18ae65['matchingCallback'](_0x30d0a6)){_0x3b65a8=_0x18ae65['label'];break;}return _0x3b65a8||(_0x3b65a8=this['_itemLabels']['get'](_0x30d0a6['name'])),_0x3b65a8?_0x3b65a8(_0x1731ff):0x1!==_0x1731ff?_0x1731ff+'\x20'+_0x30d0a6['name']+'s':''+_0x30d0a6['name'];}['_addDescriptionItems'](_0x2c705b,_0x4721b9){const _0x3a3f06=_0x4721b9['getFirstRange']()['getWalker'](),_0x330eb5='insertion'==_0x4721b9['type']?'add':'remove';for(const _0x2c2cbf of _0x3a3f06){const _0x8d5510=_0x2c2cbf['item'],_0x48e7aa=_0x2c705b[_0x2c705b['length']-0x1];if(_0x8d5510['is']('$textProxy'))_0x48e7aa&&_0x48e7aa['type']['indexOf']('Container')>-0x1&&_0x2c705b['pop'](),_0x48e7aa&&'text'==_0x48e7aa['type']?_0x48e7aa[_0x330eb5]+=_0x8d5510['data']:_0x2c705b['push']({'type':'text','add':'add'==_0x330eb5?_0x8d5510['data']:'','remove':'remove'==_0x330eb5?_0x8d5510['data']:''});else{if(this['_schema']['isObject'](_0x8d5510)){const _0x3d7a31=_0x8d5510;if(_0x48e7aa&&_0x48e7aa['type']['indexOf']('Container')>-0x1&&_0x2c705b['pop'](),'elementEnd'==_0x2c2cbf['type'])continue;_0x48e7aa&&_0x48e7aa['type']==_0x330eb5+'Object'&&_0x48e7aa['element']['name']==_0x3d7a31['name']?_0x48e7aa['quantity']++:_0x2c705b['push']({'type':_0x330eb5+'Object','element':_0x3d7a31,'quantity':0x1}),_0x3a3f06['skip'](_0x2f144a=>!('elementEnd'==_0x2f144a['type']&&_0x2f144a['item']==_0x8d5510));}else{if(this['_schema']['checkChild'](_0x8d5510,'$text')||_0x8d5510['is']('element','softBreak')){const _0x5ad589=_0x8d5510;if('add'==_0x330eb5&&'elementStart'==_0x2c2cbf['type']||'remove'==_0x330eb5&&'elementEnd'==_0x2c2cbf['type'])continue;if(_0x48e7aa&&-0x1==_0x48e7aa['type']['indexOf']('Container')){'text'==_0x48e7aa['type']&&(_0x48e7aa[_0x330eb5]+='\x0a');continue;}let _0x1c1dd2;if(_0x1c1dd2='add'==_0x330eb5?_0x5ad589['nextSibling']&&!this['_schema']['isObject'](_0x5ad589['nextSibling'])?_0x5ad589['nextSibling']:null:_0x5ad589['previousSibling']&&!this['_schema']['isObject'](_0x5ad589['previousSibling'])?_0x5ad589['previousSibling']:null,_0x5ad589['isEmpty']||_0x1c1dd2&&_0x1c1dd2['isEmpty']){const _0x20e149=_0x1c1dd2&&_0x1c1dd2['isEmpty']?_0x1c1dd2:_0x5ad589;_0x48e7aa&&_0x48e7aa['type']==_0x330eb5+'EmptyContainer'&&_0x48e7aa['element']['name']==_0x20e149['name']?_0x48e7aa['quantity']++:_0x2c705b['push']({'type':_0x330eb5+'EmptyContainer','element':_0x20e149,'quantity':0x1});}else _0x2c705b['push']({'type':_0x330eb5+'Container','element':_0x5ad589});}}}}}['_resolveDescriptionItems'](_0x1ae22b){const _0x4920d2=this['_locale'],_0x343975=[],_0xe2736f=[],_0x42f963=[];for(const _0x308dca of _0x1ae22b)switch(_0x308dca['type']){case'text':if(_0x308dca['add']=_0x308dca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x308dca['remove']=_0x308dca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x308dca['add']&&''!=_0x308dca['remove']){_0x343975['push']({'type':'replace','content':o(_0x4920d2,'REPLACE_TEXT',['\x22'+_0x308dca['remove']+'\x22','\x22'+_0x308dca['add']+'\x22'])});continue;}if(null!=_0x308dca['add']['match'](/^ +$/)){_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0',o(_0x4920d2,'ELEMENT_SPACE',_0x308dca['add']['length']))});continue;}if(null!=_0x308dca['remove']['match'](/^ +$/)){_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0',o(_0x4920d2,'ELEMENT_SPACE',_0x308dca['remove']['length']))});continue;}if(''!=_0x308dca['add']){_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0','\x22'+_0x308dca['add']+'\x22')});continue;}_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0','\x22'+_0x308dca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Insert:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Remove:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'addContainer':_0x343975['push']({'type':'insertion','content':o(_0x4920d2,'*Split:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'removeContainer':_0x343975['push']({'type':'deletion','content':o(_0x4920d2,'*Merge:*\x20%0',this['getItemLabel'](_0x308dca['element'],_0x308dca['quantity']))});continue;case'addFormat':_0xe2736f['push'](_0x308dca['key']);continue;case'removeFormat':_0x42f963['push'](_0x308dca['key']);continue;default:_0x343975['push'](_0x308dca);}if(_0xe2736f['length']){const _0x2acc17=_0xe2736f['map'](_0x1b06d9=>this['_attributeLabels']['has'](_0x1b06d9)?this['_attributeLabels']['get'](_0x1b06d9):_0x1b06d9)['join'](',\x20');_0x343975['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2acc17)});}if(_0x42f963['length']){const _0x441e90=_0x42f963['map'](_0x1e9493=>this['_attributeLabels']['has'](_0x1e9493)?this['_attributeLabels']['get'](_0x1e9493):_0x1e9493)['join'](',\x20');_0x343975['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x441e90)});}return _0x343975;}['_handleCustomCallbackDescription'](_0x8f2bd1){for(const _0x3b6b2f of this['_customCallbacks']){const _0xf3b52c=_0x3b6b2f(_0x8f2bd1);if(_0xf3b52c&&'type'in _0xf3b52c)return _0xf3b52c;}}['_handleAttributeSuggestionDescription'](_0x4f52bd,_0x3c5036){const _0x3a0629=_0x3c5036['data'],_0x46ec12=void 0x0===_0x3a0629['newValue']?'removeFormat':'addFormat';_0x4f52bd['push']({'type':_0x46ec12,'key':_0x3a0629['key']});}['_handleRenameSuggestionDescription'](_0x375271,_0x533d05){_0x375271['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x533d05['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xef74d4,_0x4b91be,_0x49f8c1){if(this['_addDescriptionItems'](_0xef74d4,_0x4b91be),_0x49f8c1&&_0x49f8c1['getFirstRange']()&&!_0x4b91be['getFirstRange']()['end']['isEqual'](_0x49f8c1['getFirstRange']()['start'])){const _0x5014ad=_0xef74d4[_0xef74d4['length']-0x1],_0x4d24a5='insertion'==_0x4b91be['type']?'add':'remove';_0x5014ad&&'text'==_0x5014ad['type']&&(_0x5014ad[_0x4d24a5]+='\x0a');}}}class U extends _0x22959f{['afterInit'](){const _0x14b59c=this['editor'],_0x35c044=_0x14b59c['plugins']['get']('TrackChangesEditing');_0x14b59c['commands']['get']('showAIAssistant')&&_0x35c044['enableCommand']('showAIAssistant');}}class V extends _0x22959f{['afterInit'](){const _0x18dd03=this['editor'],_0x20e334=_0x18dd03['plugins']['get']('TrackChangesEditing');_0x18dd03['commands']['get']('toggleAi')&&_0x20e334['enableCommand']('toggleAi');}}class F extends _0x22959f{['afterInit'](){const _0x21788b=this['editor'],_0x165c10=_0x21788b['plugins']['get']('TrackChangesEditing');_0x21788b['commands']['get']('aiQuickAction')&&_0x165c10['enableCommand']('aiQuickAction');}}class G extends _0x22959f{['afterInit'](){const _0x35bf89=this['editor'],_0x3bf462=_0x35bf89['locale'];if(!_0x35bf89['plugins']['has']('AlignmentEditing'))return;const _0x28d05a=_0x35bf89['plugins']['get']('TrackChangesEditing');_0x28d05a['enableDefaultAttributesIntegration']('alignment'),_0x28d05a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3bf462,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f14c0=this['editor'],_0x2a2f4a=_0x3f14c0['locale'];_0x3f14c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e7b5=>{if('formatBlock'!=_0x19e7b5['type'])return;const {data:_0x377a4f}=_0x19e7b5;if(_0x377a4f&&'alignment'==_0x377a4f['commandName']){const _0x401d92=_0x377a4f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a2f4a,'*Format:*\x20%0',function(_0x471e21){switch(_0x471e21){case'left':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a2f4a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a2f4a,'FORMAT_JUSTIFY_TEXT');}}(_0x401d92))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x22959f{['afterInit'](){const _0x46d986=this['editor'],_0xad41a4=_0x46d986['plugins']['get']('TrackChangesEditing'),_0x1d3ca8=_0x46d986['locale'];for(const _0x3c4a8e of ti){if(!_0x46d986['plugins']['has'](_0x3c4a8e))continue;const _0x4029be=_0x3c4a8e['slice'](0x0,-0x7)['toLowerCase'](),_0xa2935a='FORMAT_'+_0x4029be['toUpperCase']();_0xad41a4['enableDefaultAttributesIntegration'](_0x4029be),_0xad41a4['descriptionFactory']['registerAttributeLabel'](_0x4029be,o(_0x1d3ca8,_0xa2935a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9067b0=this['editor'],_0x1e7dae=_0x9067b0['locale'],_0x5cdd77=_0x9067b0['plugins']['get']('TrackChangesEditing');function _0x480216(_0xa4f5f6,_0x1904f2){_0x5cdd77['descriptionFactory']['registerDescriptionCallback'](_0x44d0d2=>{if('formatInline'!=_0x44d0d2['type'])return;const {data:_0x15d4fe}=_0x44d0d2;return _0x15d4fe&&_0x15d4fe['commandName']===_0xa4f5f6?_0x15d4fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e7dae,'*Format:*\x20%0',_0x1904f2)}:{'type':'format','content':o(_0x1e7dae,'*Remove\x20format:*\x20%0',_0x1904f2)}:void 0x0;});}_0x480216('bold',o(_0x1e7dae,'FORMAT_BOLD')),_0x480216('italic',o(_0x1e7dae,'FORMAT_ITALIC')),_0x480216('underline',o(_0x1e7dae,'FORMAT_UNDERLINE')),_0x480216('code',o(_0x1e7dae,'FORMAT_CODE')),_0x480216('strikethrough',o(_0x1e7dae,'FORMAT_STRIKETHROUGH')),_0x480216('subscript',o(_0x1e7dae,'FORMAT_SUBSCRIPT')),_0x480216('superscript',o(_0x1e7dae,'FORMAT_SUPERSCRIPT'));}}class J extends _0x22959f{['afterInit'](){const _0xfb9d2f=this['editor'],_0x5e6efd=_0xfb9d2f['locale'];if(!_0xfb9d2f['plugins']['has']('BlockQuoteEditing'))return;const _0x502498=_0xfb9d2f['plugins']['get']('TrackChangesEditing'),_0x52513c=this['editor']['commands']['get']('blockQuote');_0x502498['enableCommand']('blockQuote',(_0x53a929,_0x1295ae={})=>{const _0x406808=this['editor']['model']['document']['selection'],_0x495991=_0x1295ae&&void 0x0!==_0x1295ae['forceValue']?_0x1295ae['forceValue']:!_0x52513c['value'];let _0x449840=[];if(_0x495991){const _0x526d71=Array['from'](_0x406808['getSelectedBlocks']())['filter'](_0x9cfd95=>oo(_0x9cfd95)||function(_0x8b0937,_0x3a4f19){const _0x5bef08=_0x3a4f19['checkChild'](_0x8b0937['parent'],'blockQuote'),_0x3a50ee=_0x3a4f19['checkChild'](['$root','blockQuote'],_0x8b0937);return _0x5bef08&&_0x3a50ee;}(_0x9cfd95,this['editor']['model']['schema']));_0x449840=to(_0x526d71,_0xfb9d2f['model']);}else{const _0x4623fa=Array['from'](_0x406808['getSelectedBlocks']())['filter'](_0x24a3cc=>oo(_0x24a3cc));_0x449840=to(_0x4623fa,_0xfb9d2f['model']);}_0xfb9d2f['model']['change'](()=>{for(const _0x3789b3 of _0x449840)_0x502498['markBlockFormat'](_0x3789b3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x495991}]});});}),_0x502498['descriptionFactory']['registerDescriptionCallback'](_0x59590c=>{const {data:_0x2a92b2}=_0x59590c;if(_0x2a92b2&&'blockQuote'==_0x2a92b2['commandName']){const _0x4ed399=o(_0x5e6efd,'ELEMENT_BLOCK_QUOTE');return _0x2a92b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e6efd,'*Set\x20format:*\x20%0',_0x4ed399)}:{'type':'format','content':o(_0x5e6efd,'*Remove\x20format:*\x20%0',_0x4ed399)};}});}}function oo(_0x2e4fd6){return'blockQuote'==_0x2e4fd6['parent']['name'];}class q extends _0x22959f{['afterInit'](){const _0x1b8d63=this['editor'],_0x766d09=_0x1b8d63['locale'],_0x4c7a09=_0x1b8d63['plugins']['get']('TrackChangesEditing');_0x1b8d63['plugins']['has']('BookmarkEditing')&&(_0x4c7a09['enableCommand']('insertBookmark'),_0x4c7a09['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c7a09['descriptionFactory']['registerDescriptionCallback'](_0x1049f3=>{if('insertion'!=_0x1049f3['type']&&'deletion'!=_0x1049f3['type']&&'attribute'!=_0x1049f3['type'])return;const _0x5c3cb1=_0x1049f3['getContainedElement']();if(null==_0x5c3cb1)return;if(!_0x5c3cb1['is']('element','bookmark'))return;const _0x3ae389=_0x5c3cb1['getAttribute']('bookmarkId');if('insertion'==_0x1049f3['type'])return{'type':'insertion','content':o(_0x766d09,'*Insert:*\x20%0','\x22'+_0x3ae389+'\x22\x20'+o(_0x766d09,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1049f3['type'])return{'type':'deletion','content':o(_0x766d09,'*Remove:*\x20%0','\x22'+_0x3ae389+'\x22\x20'+o(_0x766d09,'ELEMENT_BOOKMARK'))};const {data:_0x126cdf}=_0x1049f3;if(!_0x126cdf||'bookmarkId'!=_0x126cdf['key'])return;return{'type':'format','content':o(_0x766d09,'*Set\x20bookmark:*\x20%0','\x22'+_0x126cdf['newValue']+'\x22')};}));}}class z extends _0x22959f{['afterInit'](){const _0x269031=this['editor'];_0x269031['plugins']['has']('CaseChange')&&(_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x269031['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x22959f{['afterInit'](){const _0x24256e=this['editor'];_0x24256e['commands']['get']('ckbox')&&_0x24256e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x22959f{['afterInit'](){const _0x5649b0=this['editor'];if(!_0x5649b0['plugins']['has']('CodeBlock'))return;const _0x1cff02=_0x5649b0['plugins']['get']('TrackChangesEditing'),_0x222320=_0x5649b0['locale'],_0x265a77=_0x5649b0['config']['get']('codeBlock')['languages'],_0x445990=_0x5649b0['commands']['get']('codeBlock');_0x1cff02['enableCommand']('indentCodeBlock'),_0x1cff02['enableCommand']('outdentCodeBlock'),_0x1cff02['enableCommand']('codeBlock',(_0x583fc2,_0x3b14ce={})=>{const _0x4d9288=_0x5649b0['model'],_0x372adb=_0x5649b0['model']['document']['selection'],_0x339dff=_0x3b14ce&&void 0x0!==_0x3b14ce['forceValue']?_0x3b14ce['forceValue']:!_0x445990['value'];let _0x21e976;_0x3b14ce['language']||(_0x3b14ce['language']=_0x265a77[0x0]['language']),_0x21e976=_0x339dff?Array['from'](_0x372adb['getSelectedBlocks']())['filter'](_0x5b9527=>co(_0x5b9527)||function(_0x2c4163,_0x5070ed){if(_0x2c4163['is']('rootElement')||_0x5070ed['isLimit'](_0x2c4163))return!0x1;return _0x5070ed['checkChild'](_0x2c4163['parent'],'codeBlock');}(_0x5b9527,_0x4d9288['schema'])):Array['from'](_0x372adb['getSelectedBlocks']())['filter'](_0x209ac7=>co(_0x209ac7));const _0xf6e076=to(_0x21e976,_0x4d9288);_0x4d9288['change'](()=>{for(const _0x282a53 of _0xf6e076)_0x1cff02['markBlockFormat'](_0x282a53,{'commandName':'codeBlock','commandParams':[{..._0x3b14ce,'forceValue':_0x339dff}],'formatGroupId':'blockName'});});}),(_0x1cff02['descriptionFactory']['registerElementLabel']('codeBlock',_0x117be9=>o(_0x222320,'ELEMENT_CODE_BLOCK',_0x117be9)),_0x1cff02['descriptionFactory']['registerDescriptionCallback'](_0x2fefac=>{if('formatBlock'!=_0x2fefac['type'])return;const _0x41972e=_0x222320['t'],{data:_0x4bc15a}=_0x2fefac;if(!_0x4bc15a||'codeBlock'!=_0x4bc15a['commandName'])return;const _0x418eb4=_0x4bc15a['commandParams'][0x0]['language'],_0xb094c5=_0x41972e(_0x265a77['find'](_0xefb46f=>_0xefb46f['language']===_0x418eb4)['label'])['toLowerCase']();return _0x4bc15a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x222320,'*Set\x20format:*\x20%0',o(_0x222320,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb094c5+')')}:{'type':'format','content':o(_0x222320,'*Remove\x20format:*\x20%0',o(_0x222320,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x325f70){return'codeBlock'==_0x325f70['name'];}class H extends _0x22959f{['afterInit'](){const _0x58291a=this['editor'];if(!_0x58291a['plugins']['has']('CommentsEditing'))return;_0x58291a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x22959f{static get['requires'](){return[_0x2253c5];}['init'](){const _0x423c73=this['editor'],_0x303477=_0x423c73['plugins']['get']('TrackChangesEditing');_0x303477['enableCommand']('delete');const _0x267232=_0x423c73['commands']['get']('deleteForward');_0x303477['enableCommand']('deleteForward',(_0xf1cffe,_0x340a62={})=>{const _0x19d8b9=_0x423c73['model']['createSelection'](_0x423c73['model']['document']['selection']);_0x19d8b9['isCollapsed']&&_0x423c73['model']['modifySelection'](_0x19d8b9,{'direction':'forward','unit':_0x340a62['unit']});const _0x4ff7c4=_0x19d8b9['getFirstRange'](),_0x3bd75e=_0xfc1203['fromRange'](_0x4ff7c4);let _0x14ace8;_0xf1cffe(_0x340a62),_0x14ace8='$graveyard'==_0x3bd75e['root']['rootName']?_0x423c73['model']['createRange'](_0x4ff7c4['start']):_0x423c73['model']['createRange'](_0x3bd75e['start'],_0x3bd75e['end']),_0x3bd75e['detach'](),_0x423c73['model']['enqueueChange'](_0x267232['buffer']['batch'],_0x7cc941=>{_0x267232['buffer']['lock'](),_0x7cc941['setSelection'](_0x7cc941['createRange'](_0x14ace8['end'])),_0x267232['buffer']['unlock']();});});}}class X extends _0x22959f{['afterInit'](){const _0x5ca763=this['editor'];if(!_0x5ca763['plugins']['has']('ListEditing'))return;const _0x42c2d1=_0x5ca763['locale'],_0x517718=_0x5ca763['plugins']['get']('TrackChangesEditing'),_0x376033=_0x5ca763['plugins']['has']('TodoListEditing'),_0x56d3ad=!!_0x5ca763['config']['get']('list.multiBlock');function _0x250ed6(_0x437811){return{'type':'format','content':''+o(_0x42c2d1,'*Set\x20format:*\x20%0',_0x437811)};}function _0x3241ce(_0x19c715){return{'type':'format','content':''+o(_0x42c2d1,'*Remove\x20format:*\x20%0',_0x19c715)};}_0x517718['enableDefaultAttributesIntegration']('numberedList'),_0x517718['enableDefaultAttributesIntegration']('bulletedList'),_0x517718['enableDefaultAttributesIntegration']('customNumberedList'),_0x517718['enableDefaultAttributesIntegration']('customBulletedList'),_0x517718['enableDefaultAttributesIntegration']('indentList'),_0x517718['enableDefaultAttributesIntegration']('outdentList'),_0x517718['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x517718['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x56d3ad&&(_0x517718['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x517718['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x376033&&(_0x517718['enableDefaultAttributesIntegration']('todoList'),_0x517718['enableDefaultAttributesIntegration']('checkTodoList'),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x275d0c=>{const {data:_0xd4ea77}=_0x275d0c;if(_0xd4ea77&&'todoListChecked'==_0xd4ea77['key'])return{'type':'format','content':_0xd4ea77['newValue']?o(_0x42c2d1,'*Check\x20item*'):o(_0x42c2d1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x375f02=>{if(_0x375f02['batch']['isUndo'])return!0x1;let _0x535213=!0x1;const _0x3981e4=_0x517718['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28ebb1=>'todoListChecked'===_0x517718['_getAttributeKey'](_0x28ebb1));for(const _0x94fbac of _0x3981e4){'todo'!=_0x94fbac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x517718['_findSuggestions'](_0x94fbac['getFirstRange'](),'attribute')['find'](_0x2a5bbc=>'listType'===_0x517718['_getAttributeKey'](_0x2a5bbc['suggestion']))||(_0x375f02['removeMarker'](_0x94fbac['getFirstMarker']()),_0x535213=!0x0));}return _0x535213;})),_0x517718['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42c2d1,'FORMAT_INDENT'));const _0x360144={'type':'format','content':''};_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x4f4f9f=>{const {data:_0x404f01}=_0x4f4f9f;if(!_0x404f01||'listType'!=_0x404f01['key'])return;let _0x1ab9b5=_0x4f4f9f['head'];for(;_0x1ab9b5;){if(_0x1ab9b5['data']&&(('listStyle'==_0x1ab9b5['data']['key']||'listMarkerStyle'==_0x1ab9b5['data']['key'])&&(_0x1ab9b5['data']['newValue']&&'default'!=_0x1ab9b5['data']['newValue']||'default'!=_0x1ab9b5['data']['oldValue']&&!_0x404f01['newValue'])||!_0x56d3ad&&_0x1ab9b5['data']['key']==m))return _0x360144;_0x1ab9b5=_0x1ab9b5['next'];}if(null==_0x404f01['newValue'])switch(_0x404f01['oldValue']){case'bulleted':return _0x3241ce(o(_0x42c2d1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3241ce(o(_0x42c2d1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3241ce(o(_0x42c2d1,'ELEMENT_TODO_LIST'));}switch(_0x404f01['newValue']){case'bulleted':return _0x250ed6(o(_0x42c2d1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x250ed6(o(_0x42c2d1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x250ed6(o(_0x42c2d1,'ELEMENT_TODO_LIST'));}}),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x2c99fa=>{const {data:_0x28c132}=_0x2c99fa;if(_0x28c132&&'listIndent'==_0x28c132['key'])return null==_0x28c132['newValue']||null==_0x28c132['oldValue']&&0x0==_0x28c132['newValue']?_0x360144:void 0x0;}),_0x517718['descriptionFactory']['registerDescriptionCallback'](_0x59842d=>{if('attribute'!=_0x59842d['type'])return;const {data:_0x11aa08}=_0x59842d;if(!_0x11aa08||'listItemId'!=_0x11aa08['key'])return;const _0x282c28=Te(_0x59842d);return'newValue'==_0x282c28?{'type':'format','content':o(_0x42c2d1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x282c28?{'type':'format','content':o(_0x42c2d1,'*Split:*\x20list\x20item')}:_0x360144;}),_0x5ca763['model']['document']['registerPostFixer'](_0x238d79=>this['listItemIdFixer'](_0x238d79)),_0x5ca763['model']['document']['registerPostFixer'](_0x44c2be=>this['noTrackChangesFixer'](_0x44c2be)),_0x5ca763['model']['document']['on']('change:data',(_0x5aa829,_0x306e9d)=>{if(_0x306e9d['isUndo']||!_0x306e9d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5dfaf3){if(_0x5dfaf3['batch']['isUndo']||!_0x5dfaf3['batch']['isLocal'])return!0x1;let _0x144c7b=!0x1;const _0x5eb95d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494b5b=>_0x494b5b['data']&&'listItemId'==_0x494b5b['data']['key'])['filter'](_0xaebb56=>_0xaebb56['data']['newValue']&&_0xaebb56['data']['oldValue']);for(const _0xf2f4f6 of _0x5eb95d)Te(_0xf2f4f6)||(_0x5dfaf3['removeMarker'](_0xf2f4f6['getFirstMarker']()),_0x144c7b=!0x0);return _0x144c7b;}['noTrackChangesFixer'](_0x301e65){if(_0x301e65['batch']['isUndo']||!_0x301e65['batch']['isLocal'])return!0x1;const _0x4240bb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4240bb['trackChangesCommand']['value'])return!0x1;let _0x43f52f=!0x1;const _0x16f7c6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x517293=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3688bc=>'attribute'==_0x3688bc['type'])['filter'](_0x69f8e5=>_0x16f7c6['includes'](_0x69f8e5['attributeKey']));if(0x0==_0x517293['length'])return _0x43f52f;for(const _0x274cd0 of _0x517293){const _0x36d571=_0x4240bb['_findSuggestions'](_0x274cd0['range'],'attribute')['filter'](_0x3fcdb4=>!_0x3fcdb4['meta']['isNextTo'])['map'](_0xacfc23=>_0xacfc23['suggestion'])['filter'](_0x271ce1=>{const _0x1a23f0=_0x4240bb['_getAttributeKey'](_0x271ce1);return _0x16f7c6['includes'](_0x1a23f0);});if(_0x36d571['length']){for(const _0x3e67ee of _0x36d571)_0x301e65['removeMarker'](_0x3e67ee['getFirstMarker']());_0x43f52f=!0x0;}}return _0x43f52f;}['assureChains'](){const _0x43fd65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f318=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6d7ec6;const _0x473a81=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10d159=>{if(_0x10d159['data']['oldRange']||!_0x10d159['data']['newRange'])return null;if(!_0x10d159['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x6aff16}=_0x43fd65['_splitMarkerName'](_0x10d159['name']);if(!_0x43fd65['hasSuggestion'](_0x6aff16))return null;const _0x421c59=_0x43fd65['getSuggestion'](_0x6aff16);return _0x41f318['includes'](_0x421c59['data']['key']);})['map'](_0x3df219=>{const {id:_0x4f96be}=_0x43fd65['_splitMarkerName'](_0x3df219['name']),_0x3ba098=_0x43fd65['getSuggestion'](_0x4f96be);return _0x6d7ec6=_0x3ba098['attributes']['groupId'],_0x3ba098['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x473a81['size'])return;const _0x4b84f9=_0x43fd65['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e6c41=>'attribute'==_0x4e6c41['type']&&_0x4e6c41['data']&&_0x41f318['includes'](_0x4e6c41['data']['key'])&&_0x4e6c41['attributes']['groupId']!=_0x6d7ec6)['map'](_0xdb443d=>({'listItem':_0xdb443d['getFirstRange']()['start']['nodeAfter'],'groupId':_0xdb443d['attributes']['groupId']})),_0x54f174=new Set();for(const {groupId:_0x56a85a,listItem:_0x367f7f}of _0x4b84f9)_0x473a81['has'](_0x367f7f)&&_0x54f174['add'](_0x56a85a);for(const _0xf29696 of _0x43fd65['getSuggestions']())_0x54f174['has'](_0xf29696['attributes']['groupId'])&&_0xf29696['setAttribute']('groupId',_0x6d7ec6);}['_supportLegacySuggestions'](){const _0x2e0d8c=this['editor'],_0x1ae53c=_0x2e0d8c['locale'],_0x44683e=_0x2e0d8c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x44683e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x262e51,_0x3a66b4){const _0x388f34=[];for(let _0x5e83e9 of _0x262e51)_0x5e83e9['start']['nodeAfter']===_0x5e83e9['end']['parent']&&(_0x5e83e9=_0x2e0d8c['model']['createRange'](_0x2e0d8c['model']['createPositionAt'](_0x5e83e9['start']['nodeAfter'],0x0))),_0x388f34['push'](_0x5e83e9);_0x2e0d8c['model']['change'](_0xc134a2=>{const _0x15da0d=_0x2e0d8c['model']['document']['selection'],_0x1dc559=Array['from'](_0x15da0d['getRanges']())['map'](_0x1c710f=>_0xfc1203['fromRange'](_0x1c710f));_0xc134a2['setSelection'](_0x388f34),_0x2e0d8c['commands']['get'](_0x3a66b4['commandName'])['refresh'](),_0x3a66b4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e0d8c['execute'](_0x3a66b4['commandName'],..._0x3a66b4['commandParams']),_0xc134a2['setSelection'](_0x1dc559);for(const _0x19fdfb of _0x1dc559)_0x19fdfb['detach']();});}),_0x44683e['descriptionFactory']['registerElementLabel'](function(_0x4efb60){const _0x5caab9=!_0x2e0d8c['model']['schema']['isObject'](_0x4efb60),_0x28c895=_0x4efb60['previousSibling'],_0x380885=_0x4efb60['nextSibling'],_0x52934f=_0x4efb60['getAttribute']('listItemId'),_0x403f8e=!_0x28c895||_0x28c895['getAttribute']('listItemId')!==_0x52934f,_0x2b17e5=!_0x380885||_0x380885['getAttribute']('listItemId')!==_0x52934f;return _0x5caab9&&Boolean(_0x52934f)&&_0x403f8e&&_0x2b17e5;},_0x1c447a=>o(_0x1ae53c,'ELEMENT_LIST_ITEM',_0x1c447a));}['_registerLegacyDescription'](){const _0x58d4f1=this['editor'],_0x5dad5d=_0x58d4f1['locale'];function _0x3f3539(_0x3df6ce){const _0x4fb310=_0x58d4f1['commands']['get']('bulletedList')['value'],_0x1f1054=_0x58d4f1['commands']['get']('numberedList')['value'];return'numberedList'===_0x3df6ce?_0x4fb310:_0x1f1054;}_0x58d4f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6506b1){if('formatBlock'!=_0x6506b1['type'])return;const {data:_0x560502}=_0x6506b1;if(!_0x560502)return;let _0x5e1fcd,_0x1a733a,_0x2ab325,_0x2b2073;switch(_0x560502['commandName']){case'bulletedList':_0x2ab325=_0x560502['commandParams'][0x0]['forceValue'],_0x2b2073=_0x3f3539(_0x560502['commandName']),_0x5e1fcd=_0x2ab325?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b2073&&_0x58d4f1['config']['get']('list.multiBlock')||(_0x5e1fcd='*Change\x20to:*\x20%0'),_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ab325=_0x560502['commandParams'][0x0]['forceValue'],_0x2b2073=_0x3f3539(_0x560502['commandName']),_0x5e1fcd=_0x2ab325?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b2073&&_0x58d4f1['config']['get']('list.multiBlock')||(_0x5e1fcd='*Change\x20to:*\x20%0'),_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e1fcd='*Indent:*\x20%0',_0x1a733a={'type':'format','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e1fcd=function(_0x31a87d){const _0xcae84b=_0x31a87d['getFirstRange']();let _0x4acf43=_0xcae84b['start']['nodeAfter'];for(;_0x4acf43&&_0xcae84b['containsItem'](_0x4acf43);){if(_0x4acf43['getAttribute']('listIndent')>0x0)return!0x1;_0x4acf43=_0x4acf43['nextSibling'];}return!0x0;}(_0x6506b1)?o(_0x5dad5d,'*Format:*\x20remove\x20from\x20%0',o(_0x5dad5d,function(_0x1b98ff){return'ELEMENT_'+_0x1b98ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6506b1))):o(_0x5dad5d,'*Outdent:*\x20%0',o(_0x5dad5d,'ELEMENT_LIST_ITEM')),_0x1a733a={'type':'format','content':_0x5e1fcd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x560502['multipleBlocks']&&(_0x5e1fcd='*Merge:*\x20%0',_0x1a733a={'type':'deletion','content':o(_0x5dad5d,_0x5e1fcd,o(_0x5dad5d,'ELEMENT_LIST_ITEM'))});}return _0x1a733a;});}}function Te(_0x3a28f1){let _0x7adbc4=_0x3a28f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x7adbc4;){const _0x47f1f2=_0x7adbc4['getAttribute']('listItemId');if(!_0x47f1f2)return!0x1;if(_0x47f1f2==_0x3a28f1['data']['newValue'])return'newValue';if(_0x47f1f2==_0x3a28f1['data']['oldValue'])return'oldValue';_0x7adbc4=_0x7adbc4['previousSibling'];}return!0x1;}class Y extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ad7c7=this['editor']['config']['get']('list.properties'),_0x2e7121=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ad7c7['styles']&&_0x2e7121['enableDefaultAttributesIntegration']('listStyle'),_0x1ad7c7['reversed']&&_0x2e7121['enableDefaultAttributesIntegration']('listReversed'),_0x1ad7c7['startIndex']&&_0x2e7121['enableDefaultAttributesIntegration']('listStart');const _0xf5a2b0={'type':'format','content':''};_0x2e7121['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x345bb1=this['editor']['locale'];_0x2e7121['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x345bb1,'FORMAT_LIST_REVERSED')),_0x2e7121['descriptionFactory']['registerDescriptionCallback'](_0x234312=>{const {data:_0x2b9915}=_0x234312;if(_0x2b9915&&'listReversed'==_0x2b9915['key'])return null==_0x2b9915['newValue']||0x0==_0x2b9915['newValue']&&null==_0x2b9915['oldValue']?_0xf5a2b0:void 0x0;}),_0x2e7121['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x345bb1,'FORMAT_LIST_START')),_0x2e7121['descriptionFactory']['registerDescriptionCallback'](_0x40de9f=>{const {data:_0x34a21f}=_0x40de9f;if(_0x34a21f&&'listStart'==_0x34a21f['key'])return null==_0x34a21f['newValue']||0x1==_0x34a21f['newValue']&&null==_0x34a21f['oldValue']?_0xf5a2b0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x33b0dd=>{if(_0x33b0dd['batch']['isUndo'])return!0x1;let _0x25d069=!0x1;const _0x39c210=_0x2e7121['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c480e=>{const _0x2a3eda=_0x2e7121['_getAttributeKey'](_0x3c480e);return'listStart'==_0x2a3eda||'listReversed'==_0x2a3eda;});for(const _0x53f997 of _0x39c210){const _0x2b50b4=_0x53f997['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2b50b4||'customNumbered'==_0x2b50b4)continue;_0x2e7121['_findSuggestions'](_0x53f997['getFirstRange'](),'attribute')['find'](_0x320672=>'listType'==_0x2e7121['_getAttributeKey'](_0x320672['suggestion']))||(_0x33b0dd['removeMarker'](_0x53f997['getFirstMarker']()),_0x25d069=!0x0);}return _0x25d069;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13185c){const _0x27e12d=this['editor']['locale'],{data:_0x791758}=_0x13185c,_0x4f2d9f={'type':'format','content':''};if(!_0x791758||'listStyle'!=_0x791758['key'])return;if(!_0x791758['oldValue'])return'default'==_0x791758['newValue']?_0x4f2d9f:{'type':'format','content':''+o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['newValue'])))};if(!_0x791758['newValue']){if('default'==_0x791758['oldValue'])return _0x4f2d9f;let _0x18e9ce=_0x13185c['head'];for(;_0x18e9ce;){if(_0x18e9ce['data']&&'listType'==_0x18e9ce['data']['key']&&_0x18e9ce['data']['newValue'])return _0x4f2d9f;_0x18e9ce=_0x18e9ce['next'];}return{'type':'format','content':''+o(_0x27e12d,'*Remove\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['oldValue'])))};}if('default'!=_0x791758['newValue'])return{'type':'format','content':''+o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,this['_getTranslationKeyForListStyle'](_0x791758['newValue'])))};let _0x22ef63=_0x13185c['head'];for(;_0x22ef63;){if(_0x22ef63['data']&&'listType'==_0x22ef63['data']['key']&&_0x22ef63['data']['newValue']&&_0x22ef63['data']['oldValue'])return _0x4f2d9f;_0x22ef63=_0x22ef63['next'];}return{'type':'format','content':o(_0x27e12d,'*Set\x20format:*\x20%0',o(_0x27e12d,'ELEMENT_'+_0x13185c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x56bbe8=this['editor'],_0x7aedd6=_0x56bbe8['locale'];_0x56bbe8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50d0ca=>{if('formatBlock'!=_0x50d0ca['type'])return;const {data:_0x3b1f75}=_0x50d0ca;if(!_0x3b1f75)return;let _0x22c972,_0x5a4094;switch(_0x3b1f75['commandName']){case'listStyle':_0x22c972='*Change\x20to:*\x20%0',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972,o(_0x7aedd6,this['_getTranslationKeyForListStyle'](_0x3b1f75['commandParams'][0x0]['type'])))};break;case'listReversed':_0x22c972=_0x3b1f75['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972)};break;case'listStart':_0x22c972='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a4094={'type':'format','content':o(_0x7aedd6,_0x22c972,_0x3b1f75['commandParams'][0x0]['startIndex'])};}return _0x5a4094;});}['_getTranslationKeyForListStyle'](_0x24d3c9){return'ELEMENT_'+function(_0x541598){if(ye['includes'](_0x541598))return'bulleted';if(Se['includes'](_0x541598))return'numbered';return null;}(_0x24d3c9)['toUpperCase']()+'_LIST_'+_0x24d3c9['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x22959f{['afterInit'](){const _0x48e222=this['editor'];_0x48e222['commands']['get']('emoji')&&_0x48e222['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x22959f{static get['requires'](){return[_0x3bd78d];}['init'](){const _0x50fd2f=this['editor'],_0x2e515e=_0x50fd2f['plugins']['get']('TrackChangesEditing'),_0x194a2a=_0x50fd2f['commands']['get']('enter');_0x2e515e['enableCommand']('enter',()=>{_0x50fd2f['model']['change'](_0x5908c9=>{const _0x20b744=_0x50fd2f['model']['document']['selection'],_0x3d40dd=_0x20b744['getFirstPosition'](),_0x2fb0bc=_0xfc1203['fromRange'](_0x20b744['getFirstRange']());if(_0x194a2a['enterBlock'](_0x5908c9)){const _0x1fdbe1=_0x50fd2f['model']['createPositionAt'](_0x3d40dd['parent']['nextSibling'],0x0),_0x29ad30=_0x5908c9['createRange'](_0x3d40dd,_0x1fdbe1);_0x2e515e['markInsertion'](_0x29ad30);}else _0x5908c9['setSelection'](_0x5908c9['createRange'](_0x2fb0bc['end']));_0x2fb0bc['detach'](),_0x194a2a['fire']('afterExecute',{'writer':_0x5908c9});});});}}class nt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x26a38d=this['editor']['plugins']['get']('TrackChangesEditing');_0x26a38d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x26a38d['enableCommand']('findNext'),_0x26a38d['enableCommand']('findPrevious'),_0x26a38d['enableCommand']('replace'),_0x26a38d['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b5c86,_0x5d3a90,_0x49c4b4={}){const _0x738a3a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b5c86(_0x4447cd=>{let _0x2bcaab=('string'==typeof _0x5d3a90?_0x738a3a['findByTextCallback'](_0x5d3a90,_0x49c4b4):_0x5d3a90)(_0x4447cd);Array['isArray'](_0x2bcaab)&&(_0x2bcaab={'results':_0x2bcaab,'searchText':'string'==typeof _0x5d3a90?_0x5d3a90:''});const _0x16a3be=_0x2bcaab['results']['filter'](_0xbebaf8=>!0x1===this['_isInDeletionRange'](_0xbebaf8,_0x4447cd['item']));return{..._0x2bcaab,'results':_0x16a3be};},_0x49c4b4);}['_isInDeletionRange'](_0x9f461a,_0x12c41d){const _0x1bbbdb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12c41d,_0x9f461a['start']),this['editor']['model']['createPositionAt'](_0x12c41d,_0x9f461a['end']));for(const _0x29c5be of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bbbdb['getIntersection'](_0x29c5be['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x22959f{['afterInit'](){const _0x5ba6d7=this['editor']['locale'],_0x378706=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x19cfe2,commandName:_0x343623}of eo)this['editor']['plugins']['has'](_0x19cfe2)&&_0x378706['enableDefaultAttributesIntegration'](_0x343623);_0x378706['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ba6d7,'FORMAT_FONT_SIZE')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ba6d7,'FORMAT_FONT_FAMILY')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ba6d7,'FORMAT_FONT_COLOR')),_0x378706['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ba6d7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58483a=this['editor'],_0x439b5b=_0x58483a['locale'];_0x58483a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e9b9=>{const _0x3cc03b=_0x439b5b['t'];if('formatInline'!=_0x24e9b9['type'])return;const {data:_0x38ae11}=_0x24e9b9;if(null!=_0x38ae11){if('fontSize'==_0x38ae11['commandName']){const _0x1ed528=_0x38ae11['commandParams'][0x0]['value'];if(_0x1ed528){const _0x5f1633=_0x3cc03b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x96fa59=>_0x96fa59['model']==_0x1ed528)['title'])['toLowerCase']();return{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20size:*\x20%0',_0x5f1633)};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x38ae11['commandName']){const _0x5885e2=_0x38ae11['commandParams'][0x0]['value'];return _0x5885e2?{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20family:*\x20%0',_0x5885e2)}:{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x38ae11['commandName']){const _0x5883ed=_0x38ae11['commandParams'][0x0]['value'];if(_0x5883ed){const _0xbdad8e=_0x575e27(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a54ee=>_0x5a54ee['model']==_0x5883ed);let _0x16a7d8=_0x5883ed,_0x4b7dd0='';return _0xbdad8e&&(_0x16a7d8=_0xbdad8e['label'],_0x4b7dd0=_0x3cc03b(_0x16a7d8)['toLowerCase']()),{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20color:*\x20%0',_0x4b7dd0)['trim'](),'color':{'value':_0x5883ed,'title':_0x4b7dd0||_0x16a7d8}};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x38ae11['commandName']){const _0xf5fb4a=_0x38ae11['commandParams'][0x0]['value'];if(_0xf5fb4a){const _0x251727=_0x575e27(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x451ed8=>_0x451ed8['model']==_0xf5fb4a);let _0x3f6071=_0xf5fb4a,_0xcee9c0='';return _0x251727&&(_0x3f6071=_0x251727['label'],_0xcee9c0=_0x3cc03b(_0x3f6071)['toLowerCase']()),{'type':'format','content':o(_0x439b5b,'*Set\x20font\x20background\x20color:*\x20%0',_0xcee9c0)['trim'](),'color':{'value':_0xf5fb4a,'title':_0xcee9c0||_0x3f6071}};}return{'type':'format','content':o(_0x439b5b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x22959f{['afterInit'](){const {plugins:_0x4431b6}=this['editor'];_0x4431b6['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4431b6['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x478500,plugins:_0xc47d65,commands:_0x385751}=this['editor'],_0x5a709c=_0xc47d65['get']('TrackChangesEditing');_0x385751['get']('footnotesStyle')&&_0x5a709c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x385751['get']('footnotesStart')&&_0x5a709c['enableDefaultAttributesIntegration']('footnotesStart'),_0x5a709c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x478500,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5a709c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x478500,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5e1919=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x342547,commands:_0x3a9807}=this['editor'];_0x3a9807['get']('insertFootnote')&&_0x5e1919['enableCommand']('insertFootnote'),_0x5e1919['descriptionFactory']['registerElementLabel']('footnoteRef',_0xa8d30b=>o(_0x342547,'ELEMENT_FOOTNOTE_REF',_0xa8d30b)),_0x5e1919['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x32c178=>o(_0x342547,'ELEMENT_FOOTNOTE_DEFINITION',_0x32c178)),_0x5e1919['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xce5293=>o(_0x342547,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xce5293));}}class st extends _0x22959f{['afterInit'](){const _0x4c9f44=this['editor'],_0x271d87=_0x4c9f44['plugins']['get']('TrackChangesEditing'),_0x10b7ee=_0x4c9f44['commands']['get']('copyFormat'),_0x3e34d3=_0x4c9f44['commands']['get']('pasteFormat');_0x10b7ee&&_0x3e34d3&&(_0x271d87['enableDefaultAttributesIntegration']('pasteFormat'),_0x271d87['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19ac2a=this['editor'],_0x589ec2=_0x19ac2a['locale'];_0x19ac2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x486982=>{if('formatBlock'!=_0x486982['type']&&'formatInline'!=_0x486982['type'])return;const {data:_0x664d88}=_0x486982;if(_0x664d88&&'pasteFormat'===_0x664d88['commandName']){const _0x2ff1f4=[],_0x2092dd=_0x664d88['commandParams'][0x0];for(const [_0x2221b0,_0x1f2a37]of Object['entries'](_0x2092dd))_0x2ff1f4['push'](ro(_0x19ac2a,_0x2221b0,_0x1f2a37));return _0x2ff1f4['length']?{'type':'format','content':o(_0x589ec2,'*Set\x20format\x20to:*\x20%0',_0x2ff1f4['join'](',\x20'))}:{'type':'format','content':o(_0x589ec2,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x294c08,_0x3911a5,_0x5cfc55){const _0x1aced3=_0x294c08['locale']['t'],_0x4095a9=_0x3911a5['split'](/(?=[A-Z])/)['join']('\x20'),_0x3269ae=_0x1aced3(_0x4095a9['charAt'](0x0)['toUpperCase']()+_0x4095a9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5cfc55)return _0x3269ae;if('fontColor'===_0x3911a5||'fontBackgroundColor'===_0x3911a5){const _0x2385a0=_0x575e27(_0x294c08['config']['get']('fontColor.colors'))['find'](_0x64241d=>_0x64241d['model']==_0x5cfc55);return _0x3269ae+'\x20('+(_0x2385a0?_0x1aced3(_0x2385a0['label'])['toLowerCase']():_0x5cfc55)+')';}if('fontSize'===_0x3911a5&&isNaN(parseFloat(_0x5cfc55))){const _0x21296c=_0x294c08['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x294c08['config']['get']('fontSize.options'))['find'](_0x2c66f0=>_0x2c66f0['model']==_0x5cfc55);return _0x3269ae+'\x20('+(_0x21296c?_0x1aced3(_0x21296c['title'])['toLowerCase']():_0x5cfc55)+')';}return _0x3269ae+'\x20('+_0x5cfc55+')';}class ot extends _0x22959f{['_headingOptions'];['afterInit'](){const _0x10628c=this['editor'];if(!_0x10628c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x10628c['config']['get']('heading.options');const _0x1fa004=_0x10628c['locale'],_0x572658=_0x10628c['plugins']['get']('TrackChangesEditing');_0x572658['enableDefaultAttributesIntegration']('heading');for(const _0xd7b630 of this['_headingOptions'])'paragraph'!=_0xd7b630['model']&&_0x572658['descriptionFactory']['registerElementLabel'](_0xd7b630['model'],_0x489ae1=>{const _0x362e87=this['_getHeadingLevel'](_0xd7b630['model']);return null!==_0x362e87?_0x2d9249(_0x489ae1,_0x362e87):_0x21aa76(_0x489ae1,_0xd7b630['title']);});function _0x2d9249(_0x395a68,_0xaaa8a4){return o(_0x1fa004,'ELEMENT_HEADING',[_0x395a68,_0xaaa8a4]);}function _0x21aa76(_0x55ba0b,_0x3fa11a){return o(_0x1fa004,'ELEMENT_HEADING_CUSTOM',[_0x55ba0b,_0x3fa11a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59ea6d=this['editor'],_0x30c9eb=_0x59ea6d['locale'];function _0x172dee(_0x33b95a,_0x2d60d1){return o(_0x30c9eb,'ELEMENT_HEADING_CUSTOM',[_0x33b95a,_0x2d60d1]);}_0x59ea6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33215e=>{if('formatBlock'!=_0x33215e['type'])return;const {data:_0x12789f}=_0x33215e;if(_0x12789f&&'heading'==_0x12789f['commandName']){const _0x49b484=_0x12789f['commandParams'][0x0]['value'],_0x599730=this['_getHeadingLevel'](_0x49b484);if(null!==_0x599730)return{'type':'format','content':o(_0x30c9eb,'*Change\x20to:*\x20%0',(_0x16db69=0x1,_0x2ac5ae=_0x599730,o(_0x30c9eb,'ELEMENT_HEADING',[_0x16db69,_0x2ac5ae])))};const _0x2e70ce=this['_headingOptions']['find'](_0x221cc9=>_0x221cc9['model']===_0x49b484)['title'];return{'type':'format','content':o(_0x30c9eb,'*Change\x20to:*\x20%0',_0x172dee(0x1,_0x2e70ce))};}var _0x16db69,_0x2ac5ae;});}['_getHeadingLevel'](_0x5c74a8){const _0x5cd6f5=_0x5c74a8['match'](/^heading(\d+)/);if(_0x5cd6f5)return _0x5cd6f5[0x1];const _0x3d43b9=this['_headingOptions']?.['find'](_0x61710=>_0x61710['model']==_0x5c74a8);if(_0x3d43b9&&_0x3d43b9['view']){const _0x32e4ac=_0x3d43b9['view'],_0x308fcc=(_0x32e4ac['name']??_0x32e4ac)['match'](/^h(\d+)/);if(_0x308fcc)return _0x308fcc[0x1];}return null;}}class rt extends _0x22959f{['afterInit'](){const _0x1f041e=this['editor'];if(!_0x1f041e['plugins']['has']('HighlightEditing'))return;const _0x116b37=_0x1f041e['plugins']['get']('TrackChangesEditing'),_0x2b8ed0=_0x1f041e['locale'];_0x116b37['enableDefaultAttributesIntegration']('highlight'),_0x116b37['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2b8ed0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39beaa=this['editor'],_0x2e3272=_0x39beaa['locale'];_0x39beaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50dc39=>{if('formatInline'!=_0x50dc39['type'])return;const {data:_0x4277fa}=_0x50dc39;if(_0x4277fa&&'highlight'==_0x4277fa['commandName']){const _0x4bbad5=_0x2e3272['t'],_0x485cc4=_0x4277fa['commandParams'][0x0]['value'];if(_0x485cc4){const _0x5bd084=_0x39beaa['config']['get']('highlight.options')['find'](_0x3c419c=>_0x3c419c['model']==_0x485cc4),_0x3406ed=_0x4bbad5(_0x5bd084['title'])['toLowerCase']();return{'type':'format','content':o(_0x2e3272,'*Set\x20highlight:*\x20%0',_0x3406ed),'color':{'value':_0x5bd084['color'],'title':_0x5bd084['title']}};}return{'type':'format','content':o(_0x2e3272,'*Remove\x20highlight*',o(_0x2e3272,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x22959f{['afterInit'](){const _0x4d4bb0=this['editor'];if(!_0x4d4bb0['plugins']['has']('HorizontalLineEditing'))return;_0x4d4bb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5aabec=_0x4d4bb0['plugins']['get']('TrackChangesEditing'),_0x225b8e=_0x4d4bb0['locale'];_0x5aabec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4e4150=>o(_0x225b8e,'ELEMENT_HORIZONTAL_LINE',_0x4e4150));}}class ct extends _0x22959f{['afterInit'](){const _0x1777fe=this['editor'];if(!_0x1777fe['plugins']['has']('HtmlEmbed'))return;const _0x5ce462=_0x1777fe['plugins']['get']('TrackChangesEditing'),_0x28601f=_0x1777fe['locale'];_0x5ce462['descriptionFactory']['registerElementLabel']('rawHtml',_0x103819=>o(_0x28601f,'ELEMENT_HTML_EMBED',_0x103819)),_0x5ce462['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ce462['descriptionFactory']['registerDescriptionCallback'](_0x336d4b=>{if('attribute'!=_0x336d4b['type'])return;const {data:_0x5311c2}=_0x336d4b;if(_0x5311c2&&'value'==_0x5311c2['key']&&_0x336d4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2a1a8c=o(_0x28601f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x28601f,'*Change\x20%0\x20content*',_0x2a1a8c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289ea9=this['editor'],_0xddf16e=_0x289ea9['locale'];_0x289ea9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188a74=>{if('formatBlock'!=_0x188a74['type'])return;const {data:_0xa40523}=_0x188a74;if(_0xa40523&&'htmlEmbed'==_0xa40523['commandName']){const _0x3c1b48=o(_0xddf16e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xddf16e,'*Change\x20%0\x20content*',_0x3c1b48)};}});}}class ut extends _0x22959f{['afterInit'](){const _0x36e180=this['editor'];if(!_0x36e180['plugins']['has']('ImageEditing'))return;const _0x200117=_0x36e180['plugins']['get']('TrackChangesEditing'),_0x29e676=_0x36e180['plugins']['get']('ImageUtils'),_0x2f2915=_0x36e180['locale'];_0x200117['enableCommand']('insertImage'),_0x200117['descriptionFactory']['registerElementLabel']('imageBlock',_0x432eff=>o(_0x2f2915,'ELEMENT_IMAGE',_0x432eff)),_0x200117['descriptionFactory']['registerElementLabel']('imageInline',_0x22147c=>o(_0x2f2915,'ELEMENT_INLINE_IMAGE',_0x22147c)),_0x200117['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f2915,'ELEMENT_CAPTION')),_0x36e180['plugins']['has']('ImageUploadEditing')&&_0x200117['enableCommand']('uploadImage'),_0x36e180['plugins']['has']('ImageBlockEditing')&&_0x36e180['plugins']['has']('ImageInlineEditing')&&(_0x200117['enableCommand']('imageTypeInline',(_0x1b26e0,_0x480ae2)=>{const _0x41068f=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']);_0x36e180['model']['change'](()=>{_0x200117['markBlockFormat'](_0x41068f,{'commandName':'imageTypeInline','commandParams':[_0x480ae2]},[],'convertBlockImageToInline');});}),_0x200117['enableCommand']('imageTypeBlock',(_0x5ea449,_0x24a83e)=>{_0x36e180['model']['change'](_0x2744b3=>{let _0x277a5b=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x170105=_0x2744b3['createRangeOn'](_0x277a5b);const _0x11f286=_0x30aae8['fromPosition'](_0x170105['start'],'toPrevious'),_0x2a32d6=_0x30aae8['fromPosition'](_0x170105['end'],'toNext');_0x200117['forceDefaultExecution'](()=>_0x5ea449(_0x24a83e)),_0x277a5b=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x170105=_0x2744b3['createRangeOn'](_0x277a5b);const _0x453ba6=_0x2744b3['createRange'](_0x11f286,_0x2a32d6);_0x11f286['detach'](),_0x2a32d6['detach'](),_0x200117['markBlockFormat'](_0x277a5b,{'commandName':'imageTypeInline','commandParams':[_0x24a83e]},[],'convertInlineImageToBlock'),_0x453ba6['start']['isBefore'](_0x170105['start'])&&_0x200117['markInsertion'](_0x2744b3['createRange'](_0x453ba6['start'],_0x170105['start']),'convertInlineImageToBlock'),_0x170105['end']['isBefore'](_0x453ba6['end'])&&_0x200117['markInsertion'](_0x2744b3['createRange'](_0x170105['end'],_0x453ba6['end']),'convertInlineImageToBlock');});}),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x200117['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x59cc98])=>{const _0x25e56b=_0x200117['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a7e7d=_0x59cc98['start'],_0x74f317=_0x59cc98['end'];const _0xc1b696=_0x36e180['model']['schema']['getNearestSelectionRange'](_0x4a7e7d,'backward'),_0x46eb11=_0x36e180['model']['schema']['getNearestSelectionRange'](_0x74f317,'forward');_0xc1b696['isCollapsed']&&(_0x4a7e7d=_0xc1b696['start']),_0x46eb11['isCollapsed']&&(_0x74f317=_0x46eb11['end']),_0x25e56b([_0x36e180['model']['createRange'](_0x4a7e7d,_0x74f317)]);}),_0x200117['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x378dc6),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x378dc6)),_0x36e180['plugins']['has']('ImageCaptionEditing')&&(_0x200117['enableCommand']('toggleImageCaption',(_0x5aaca0,_0x225c66)=>{const _0x1e9db9=_0x36e180['plugins']['get']('ImageCaptionUtils');let _0x314c35=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x59f97b=_0x1e9db9['getCaptionFromImageModelElement'](_0x314c35);_0x36e180['model']['change'](()=>{if(_0x59f97b)return void _0x200117['markDeletion'](_0x36e180['model']['createRangeOn'](_0x59f97b));const _0x22c2e5=_0x29e676['isBlockImage'](_0x314c35);_0x5aaca0(_0x225c66),_0x314c35=_0x29e676['getClosestSelectedImageElement'](_0x36e180['model']['document']['selection']),_0x59f97b=_0x1e9db9['getCaptionFromImageModelElement'](_0x314c35),_0x200117['markInsertion'](_0x36e180['model']['createRangeOn'](_0x59f97b),_0x22c2e5?null:'imageCaption');});}),_0x200117['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x378dc6));const _0x1e1e1d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24cdea(_0x5cc65a,_0x2d46a1){const _0x39eeae=_0x1e1e1d['findIndex'](({type:_0x64e769,subType:_0x4974ae})=>_0x5cc65a['type']==_0x64e769&&_0x5cc65a['subType']==_0x4974ae),_0x33d9f9=_0x1e1e1d['findIndex'](({type:_0x1f22ec,subType:_0x44a8d5})=>_0x2d46a1['type']==_0x1f22ec&&_0x2d46a1['subType']==_0x44a8d5);if(_0x39eeae<0x0||_0x33d9f9<0x0)return!0x1;const _0x33bc1c=_0x5cc65a['getFirstRange'](),_0x9efa93=_0x2d46a1['getFirstRange']();if((0x0==_0x39eeae||0x1==_0x39eeae)&&0x2==_0x33d9f9&&_0x33bc1c['isIntersecting'](_0x9efa93))return!0x0;if(0x2==_0x39eeae&&0x3==_0x33d9f9){const _0x15c0f0=_0x200117['_findSuggestions'](_0x33bc1c,'insertion')['filter'](({suggestion:_0x2acded,meta:_0x2dfd39})=>_0x2dfd39['isOwn']&&'convertInlineImageToBlock'==_0x2acded['subType']);if(_0x15c0f0['length']>0x1&&_0x9efa93['end']['isEqual'](_0x33bc1c['start']))return!0x0;if(0x1==_0x15c0f0['length']&&(_0x33bc1c['start']['isEqual'](_0x9efa93['end'])||_0x33bc1c['end']['isEqual'](_0x9efa93['start'])))return!0x0;}if(0x3==_0x39eeae&&0x3==_0x33d9f9&&_0x33bc1c['start']['isBefore'](_0x9efa93['start'])){const _0x1ec376=_0x33bc1c['end']['nodeAfter'],_0x379788=_0x9efa93['start']['nodeBefore'];return _0x29e676['isBlockImage'](_0x1ec376)&&_0x1ec376===_0x379788;}return!0x1;}function _0x378dc6(_0x173128,_0x3f72f8){return _0x24cdea(_0x173128,_0x3f72f8)?[_0x173128,_0x3f72f8]:_0x24cdea(_0x3f72f8,_0x173128)?[_0x3f72f8,_0x173128]:null;}_0x36e180['plugins']['has']('ImageResize')&&(_0x200117['enableDefaultAttributesIntegration']('resizeImage'),_0x200117['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f2915,'FORMAT_IMAGE_SIZE'))),_0x36e180['plugins']['has']('ImageTextAlternativeEditing')&&_0x200117['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x36e180['plugins']['has']('PictureEditing')&&_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x52ac26=>{if('attribute'!=_0x52ac26['type'])return;const {data:_0xb83583}=_0x52ac26;return _0xb83583&&'sources'==_0xb83583['key']?{'type':'format','content':''}:void 0x0;}),_0x36e180['plugins']['has']('ImageSizeAttributes')&&_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x307da7=>{if('attribute'!=_0x307da7['type'])return;const {data:_0x8849f4}=_0x307da7;return!_0x8849f4||'width'!=_0x8849f4['key']&&'height'!=_0x8849f4['key']?void 0x0:{'type':'format','content':''};}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x382e51=>{if(!!_0x1e1e1d['find'](({type:_0x2dfc32,subType:_0x327ef6})=>_0x382e51['type']==_0x2dfc32&&_0x382e51['subType']==_0x327ef6))return _0x382e51['previous']?{}:void 0x0;}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x5a7b12=>{if('insertion'==_0x5a7b12['type']||'deletion'==_0x5a7b12['type']){const _0x2774d2=_0x5a7b12['getContainedElement']();if(_0x2774d2&&_0x2774d2['is']('element','caption'))return{'type':'insertion'==_0x5a7b12['type']?'addObject':'removeObject','element':_0x2774d2,'quantity':0x1};}}),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x2ec13e=>'formatBlock'==_0x2ec13e['type']&&'convertInlineImageToBlock'==_0x2ec13e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ec13e['type']&&'convertBlockImageToInline'==_0x2ec13e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x200117['descriptionFactory']['registerDescriptionCallback'](_0x13c92d=>{if('attribute'!=_0x13c92d['type'])return;const {data:_0x516785}=_0x13c92d;if(!_0x516785||'alt'!=_0x516785['key'])return;const _0x1fb2d8=_0x516785['newValue'];return _0x1fb2d8?{'type':'format','content':o(_0x2f2915,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1fb2d8+'\x22')}:{'type':'format','content':o(_0x2f2915,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18dae1=this['editor'],_0x5a49a2=_0x18dae1['locale'];_0x18dae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36046f=>{if('formatBlock'!=_0x36046f['type']&&'formatInline'!=_0x36046f['type'])return;const {data:_0x52cae5}=_0x36046f;if(_0x52cae5){if('imageTextAlternative'==_0x52cae5['commandName']){const _0xdfd95e=_0x52cae5['commandParams'][0x0]['newValue'];return _0xdfd95e?{'type':'format','content':o(_0x5a49a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xdfd95e+'\x22')}:{'type':'format','content':o(_0x5a49a2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52cae5['commandName']){const _0x413748=_0x52cae5['commandParams'][0x0]['width'];return _0x413748?{'type':'format','content':o(_0x5a49a2,'*Set\x20image\x20width:*\x20%0',_0x413748)}:{'type':'format','content':o(_0x5a49a2,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x79676c=this['editor']['locale'],_0x1b53ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b53ad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1b53ad['descriptionFactory']['registerDescriptionCallback'](_0x4b6a59=>{if('attribute'!=_0x4b6a59['type'])return;const {data:_0xca5109}=_0x4b6a59;return _0xca5109&&'src'==_0xca5109['key']?_0xca5109['newValue']&&_0xca5109['oldValue']?{'type':'format','content':o(_0x79676c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x243c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x243c00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x243c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x243c00['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x243c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x206b74=this['editor'],_0x3a0669=_0x206b74['locale'];_0x206b74['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f45e1=>{if('formatBlock'!=_0x4f45e1['type']&&'formatInline'!=_0x4f45e1['type'])return;const {data:_0x27c2bf}=_0x4f45e1;if(!_0x27c2bf||'replaceImageSource'!=_0x27c2bf['commandName'])return;return{'type':'format','content':o(_0x3a0669,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x22959f{['afterInit'](){const _0x231fe5=this['editor'];if(!_0x231fe5['plugins']['has']('ImageStyleEditing'))return;const _0x5b7501=_0x231fe5['plugins']['get']('TrackChangesEditing'),_0x29f017=_0x231fe5['plugins']['get']('ImageUtils'),_0x3ffd81={};_0x5b7501['enableCommand']('imageStyle',(_0x33b596,_0x2bb4c4)=>{const _0x399ec2=_0x231fe5['plugins']['get']('Users')['me'],_0x675cba=_0x231fe5['commands']['get']('imageStyle');let _0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),_0x4de2a4=_0x231fe5['model']['createRangeOn'](_0x49cb6d),_0x5d4f71=_0x675cba['value'];if(_0x5d4f71==_0x2bb4c4['value'])return;const _0x583db7={'commandName':'imageStyle','commandParams':[_0x2bb4c4],'formatGroupId':_0x34c54d()};_0x231fe5['model']['change'](()=>{if(_0x5b7501['getSuggestions']()['filter'](_0xd61d97=>_0xd61d97['isInContent']&&_0x399ec2==_0xd61d97['author']&&('formatBlock'==_0xd61d97['type']||'formatInline'==_0xd61d97['type'])&&('imageStylePreApply'==_0xd61d97['subType']||'imageStylePostApply'==_0xd61d97['subType'])&&_0xd61d97['getFirstRange']()['isEqual'](_0x4de2a4))['forEach'](_0x15eb2b=>_0x5b7501['discardSuggestion'](_0x15eb2b['head'])),_0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),_0x4de2a4=_0x231fe5['model']['createRangeOn'](_0x49cb6d),_0x675cba['refresh'](),_0x231fe5['commands']['get']('imageTypeInline')['refresh'](),_0x231fe5['commands']['get']('imageTypeBlock')['refresh'](),_0x5d4f71=_0x675cba['value'],_0x5d4f71!=_0x2bb4c4['value'])return _0x29f017['isInlineImage'](_0x49cb6d)&&_0x675cba['shouldConvertImageType'](_0x2bb4c4['value'],_0x49cb6d)?(_0x33b596({..._0x2bb4c4,'setImageSizes':!0x1}),_0x49cb6d=_0x29f017['getClosestSelectedImageElement'](_0x231fe5['model']['document']['selection']),void _0x5b7501['markBlockFormat'](_0x49cb6d,{..._0x583db7,'commandReversedParams':[{'value':_0x5d4f71||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29f017['isBlockImage'](_0x49cb6d)?_0x5b7501['markBlockFormat'](_0x49cb6d,_0x583db7,[],'imageStylePostApply'):_0x5b7501['markInlineFormat'](_0x4de2a4,_0x583db7,'imageStylePostApply'));});});for(const _0x2339c0 of _0x231fe5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3ffd81[_0x2339c0['name']]=_0x2339c0['title']['toLowerCase']();_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d24a6])=>{_0x29f017['setImageNaturalSizeAttributes'](_0x2d24a6['getContainedElement']());}),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d03fb,_0x11f282)=>{_0x5b7501['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d03fb,{'commandName':_0x11f282['commandName'],'commandParams':_0x11f282['commandReversedParams']});}),_0x5b7501['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11fb38,_0x58a32d){if(_0x31d943(_0x11fb38,_0x58a32d))return[_0x11fb38,_0x58a32d];if(_0x31d943(_0x58a32d,_0x11fb38))return[_0x58a32d,_0x11fb38];return null;});const _0x238f48=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31d943(_0x73ffd1,_0x593741){const _0x393f88=_0x238f48['findIndex'](({type:_0x3c9f72,subType:_0x4696bd})=>_0x73ffd1['type']==_0x3c9f72&&_0x73ffd1['subType']==_0x4696bd),_0x5ba0e9=_0x238f48['findIndex'](({type:_0x4d83db,subType:_0x41f4a7})=>_0x593741['type']==_0x4d83db&&_0x593741['subType']==_0x41f4a7);if(_0x393f88<0x0||_0x5ba0e9<0x0)return!0x1;const _0x167272=_0x73ffd1['getFirstRange'](),_0x2bea8d=_0x593741['getFirstRange']();if((0x0==_0x393f88||0x1==_0x393f88)&&0x2==_0x5ba0e9&&_0x167272['isIntersecting'](_0x2bea8d))return!0x0;if(0x2==_0x393f88&&0x3==_0x5ba0e9){const _0x2f96ce=_0x5b7501['_findSuggestions'](_0x167272,'insertion')['filter'](({suggestion:_0x3754eb,meta:_0x5a2b20})=>_0x5a2b20['isOwn']&&'convertInlineImageToBlock'==_0x3754eb['subType']);if(_0x2f96ce['length']>0x1&&_0x2bea8d['end']['isEqual'](_0x167272['start']))return!0x0;if(0x1==_0x2f96ce['length']&&(_0x167272['start']['isEqual'](_0x2bea8d['end'])||_0x167272['end']['isEqual'](_0x2bea8d['start'])))return!0x0;}if(0x3==_0x393f88&&0x3==_0x5ba0e9&&_0x167272['start']['isBefore'](_0x2bea8d['start'])){const _0x1b468c=_0x167272['end']['nodeAfter'],_0x319c5f=_0x2bea8d['start']['nodeBefore'];return _0x29f017['isBlockImage'](_0x1b468c)&&_0x1b468c===_0x319c5f;}return!0x1;}_0x231fe5['model']['document']['registerPostFixer'](()=>{let _0x4c12d6=!0x1;const _0x271a3f=Array['from'](_0x231fe5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2beab0,data:_0x246603}of _0x271a3f){const {group:_0x5577a2,type:_0x42659c,subType:_0x1c2dfb,id:_0x172ed2}=_0x5b7501['_splitMarkerName'](_0x2beab0);if('suggestion'==_0x5577a2&&_0x5b7501['hasSuggestion'](_0x172ed2)){if('formatBlock'==_0x42659c&&('imageStylePreApply'==_0x1c2dfb||'imageStylePostApply'==_0x1c2dfb)){const _0x59716b=_0x5b7501['getSuggestion'](_0x172ed2);if(_0x246603['newRange']){const _0x320df5=_0x59716b['getFirstRange']()['getContainedElement']();if(_0x29f017['isBlockImage'](_0x320df5))continue;_0x5b7501['discardSuggestion'](_0x59716b),_0x4c12d6=!0x0;}}if('insertion'==_0x42659c&&'imageCaption'==_0x1c2dfb&&!_0x246603['newRange']){const _0x606ccc=_0x5b7501['getSuggestion'](_0x172ed2);_0x606ccc['next']&&_0x606ccc['next']['isInContent']&&(_0x5b7501['discardSuggestion'](_0x606ccc['next']),_0x4c12d6=!0x0);}}}return _0x4c12d6;}),this['_registerLegacyDescription'](_0x3ffd81);}['_registerLegacyDescription'](_0x120c10){const _0x528985=this['editor'],_0x11a68a=_0x528985['locale'];_0x528985['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6cd9=>{if('formatBlock'!=_0x2c6cd9['type']&&'formatInline'!=_0x2c6cd9['type'])return;const {data:_0x5ea3f5}=_0x2c6cd9;if(!_0x5ea3f5||'imageStyle'!=_0x5ea3f5['commandName'])return;const _0x201507=_0x5ea3f5['commandParams'][0x0]['value'];return _0x413f6a('side'===_0x201507?o(_0x11a68a,'FORMAT_SIDE_IMAGE'):_0x120c10[_0x201507]||_0x201507);function _0x413f6a(_0x2c1eda){return{'type':'format','content':o(_0x11a68a,'*Format:*\x20%0',_0x2c1eda)};}});}}class lt extends _0x22959f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e8722){super(_0x1e8722),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2702dd=this['editor'],_0x4f085c=_0x2702dd['commands']['get']('importWord'),_0xd9d380=_0x2702dd['commands']['get']('trackChanges');_0x4f085c&&(_0x4f085c['on']('execute',(_0x52c304,[,_0x36eddc])=>{this['_trackChangesValueDuringImport']=_0xd9d380['value'],_0x36eddc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f085c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f085c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd9d380['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2702dd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1228f7,_0x57284e){const {suggestions:_0x71269d}=_0x57284e,_0x274a8a=this['editor']['commands']['get']('trackChanges'),_0x5cc03d=_0x274a8a['value'];this['_trackChangesValueDuringImport']!==_0x5cc03d&&(_0x274a8a['execute'](),this['_trackChangesExecuted']=!0x0),_0x71269d&&_0x71269d['forEach'](({id:_0x2d183c,type:_0x53e101,author:_0x353182,created_at:_0x1e20b2})=>{const _0xe2b47f={'id':_0x2d183c,'type':_0x53e101,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x353182,'createdAt':_0x1e20b2?new Date(_0x1e20b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xe2b47f);});}}class gt extends _0x22959f{['afterInit'](){const _0x2a45ef=this['editor'],_0x45525f=_0x2a45ef['plugins']['get']('TrackChangesEditing');if(_0x2a45ef['plugins']['has']('IndentEditing')&&(_0x45525f['enableCommand']('indent'),_0x45525f['enableCommand']('outdent')),_0x2a45ef['plugins']['has']('IndentBlock')){for(const _0x333990 of['indentBlock','outdentBlock'])_0x45525f['enableDefaultAttributesIntegration'](_0x333990);if(_0x2a45ef['plugins']['has']('ListEditing')){for(const _0x313d03 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x45525f['enableDefaultAttributesIntegration'](_0x313d03);}}const _0x2222aa=_0x2a45ef['locale'];_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2222aa,'FORMAT_INDENT')),_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2222aa,'FORMAT_INDENT')),_0x45525f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2222aa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306ba4=this['editor'],_0x4daba2=_0x306ba4['locale'],_0x303f90=_0x306ba4['plugins']['get']('TrackChangesEditing');_0x303f90['descriptionFactory']['registerDescriptionCallback'](_0x4af692=>{if('formatBlock'!=_0x4af692['type'])return;const {data:_0x559fc5}=_0x4af692;if(!_0x559fc5)return;if('indentBlock'!=_0x559fc5['commandName']&&'outdentBlock'!=_0x559fc5['commandName'])return;const _0x1043d3=_0x4af692['getItems']()[0x0],_0x37bd0b=_0x303f90['descriptionFactory']['getItemLabel'](_0x1043d3);return'indentBlock'==_0x559fc5['commandName']?{'type':'format','content':o(_0x4daba2,'*Indent:*\x20%0',_0x37bd0b)}:'outdentBlock'==_0x559fc5['commandName']?{'type':'format','content':o(_0x4daba2,'*Outdent:*\x20%0',_0x37bd0b)}:void 0x0;});}}class mt extends _0x22959f{static get['requires'](){return[_0x4576bf];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x22959f{['afterInit'](){const _0x3a8432=this['editor'];if(!_0x3a8432['plugins']['has']('LinkEditing'))return;const _0x538c67=_0x3a8432['plugins']['get']('TrackChangesEditing'),_0x2d6419=_0x3a8432['commands']['get']('link');_0x538c67['enableDefaultAttributesIntegration']('link'),_0x538c67['enableDefaultAttributesIntegration']('unlink');for(const _0x99212 of _0x2d6419['manualDecorators'])_0x538c67['descriptionFactory']['registerAttributeLabel'](_0x99212['id'],'link\x20('+_0x99212['label']['toLowerCase']()+')');_0x538c67['descriptionFactory']['registerDescriptionCallback'](_0x15be94=>{if('attribute'!=_0x15be94['type'])return;const {data:_0x47a049}=_0x15be94;if(!_0x47a049||'linkHref'!=_0x47a049['key'])return;const _0x199955=_0x47a049['newValue'],_0x1b18b0=_0x3a8432['locale'];return{'type':'format','content':null==_0x199955?o(_0x1b18b0,'*Remove\x20link*'):o(_0x1b18b0,'*Set\x20link:*\x20%0','\x22'+_0x199955+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ed0e=this['editor'],_0x20b3d9=_0x14ed0e['locale'];_0x14ed0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f0e02=>{if('formatInline'!=_0x2f0e02['type'])return;const {data:_0x3f83e8}=_0x2f0e02;if(_0x3f83e8){if('link'==_0x3f83e8['commandName']){const _0x56212d=_0x3f83e8['commandParams'][0x0];return{'type':'format','content':o(_0x20b3d9,'*Set\x20link:*\x20%0','\x22'+_0x56212d+'\x22')};}return'unlink'==_0x3f83e8['commandName']?{'type':'format','content':o(_0x20b3d9,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x22959f{['afterInit'](){const _0x39bf48=this['editor'],_0x54c863=_0x39bf48['locale'];if(!_0x39bf48['plugins']['has']('LegacyListEditing'))return;const _0xc02110=_0x39bf48['plugins']['get']('TrackChangesEditing'),_0x216c5c=_0x39bf48['plugins']['has']('LegacyTodoListEditing');function _0x469e0d(_0x382f85){return()=>{const _0x45f927=_0x39bf48['model']['document']['selection'],_0x5abd53=_0x39bf48['commands']['get'](_0x382f85);if(_0x5abd53['value'])return void _0x39bf48['execute']('paragraph',{});const _0x5061d5=_0x382f85['slice'](0x0,-0x4),_0x1f1219=function(_0xf8deae,_0x2ef6fd,_0x4b7e39){let _0x5388a1=Array['from'](_0xf8deae)['filter'](_0xd9a1e6=>function(_0x39e4f3,_0x484ffd){return _0x484ffd['checkChild'](_0x39e4f3['parent'],'listItem')&&!_0x484ffd['isObject'](_0x39e4f3);}(_0xd9a1e6,_0x4b7e39));_0x5388a1=_0x5388a1['filter'](_0x442d9b=>!_0x442d9b['is']('element','listItem')||_0x442d9b['getAttribute']('listType')!=_0x2ef6fd);const _0x4ed8f5=new Set();for(const _0x2be62f of _0x5388a1)_0x2be62f['is']('element','listItem')?_0x4ed8f5['add'](Le(_0x2be62f)):_0x4ed8f5['add'](_0x2be62f);return Array['from'](_0x4ed8f5);}(_0x45f927['getSelectedBlocks'](),_0x5061d5,_0x39bf48['model']['schema']);_0x39bf48['model']['change'](()=>{for(const _0x40bef0 of _0x1f1219)_0xc02110['markBlockFormat'](_0x40bef0,{'commandName':_0x382f85,'commandParams':[{'forceValue':!_0x5abd53['value']}],'formatGroupId':'blockName'},Ee(_0x40bef0));});};}function _0x3712a4(_0x12212c){return()=>{const _0x5423c2=function(_0x3579f3){let _0x293f62=Array['from'](_0x3579f3);const _0x424d25=_0x293f62['findIndex'](_0x470f7e=>'listItem'!=_0x470f7e['name']);return _0x424d25>-0x1&&(_0x293f62=_0x293f62['slice'](0x0,_0x424d25)),_0x293f62;}(_0x39bf48['model']['document']['selection']['getSelectedBlocks']()),_0xa016be=_0x39bf48['model']['createRange'](_0x39bf48['model']['createPositionAt'](_0x5423c2[0x0],'before'),_0x39bf48['model']['createPositionAt'](_0x5423c2[_0x5423c2['length']-0x1],'end'));_0x39bf48['model']['change'](()=>{_0xc02110['markBlockFormat'](_0xa016be,{'commandName':_0x12212c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12964c){const _0x493118=new Set();for(const _0x263ece of _0x12964c){let _0x5522a6=_0x263ece['nextSibling'];for(;_0x5522a6&&_0x5522a6['getAttribute']('listIndent')>_0x263ece['getAttribute']('listIndent');)_0x493118['add'](_0x5522a6),_0x5522a6=_0x5522a6['nextSibling'];}return Array['from'](_0x493118);}(_0x5423c2));});};}_0xc02110['enableCommand']('numberedList',_0x469e0d('numberedList')),_0xc02110['enableCommand']('bulletedList',_0x469e0d('bulletedList')),_0x216c5c&&_0xc02110['enableCommand']('todoList',_0x469e0d('todoList')),_0xc02110['enableCommand']('indentList',_0x3712a4('indentList')),_0xc02110['enableCommand']('outdentList',_0x3712a4('outdentList')),_0x216c5c&&_0xc02110['enableCommand']('checkTodoList',()=>{const _0x2d9dac=_0x39bf48['commands']['get']('checkTodoList'),_0x74b2b=Array['from'](_0x2d9dac['_selectedElements']);_0x74b2b['filter'](_0x4bad3a=>_0x4bad3a['getAttribute']('todoListChecked')!=_0x2d9dac['value']),_0x39bf48['model']['change'](()=>{for(const _0x208500 of _0x74b2b)_0xc02110['markBlockFormat'](_0x208500,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d9dac['value']}]});});}),_0xc02110['descriptionFactory']['registerElementLabel']('listItem',_0x557be0=>o(_0x54c863,'ELEMENT_LIST_ITEM',_0x557be0)),_0xc02110['descriptionFactory']['registerDescriptionCallback'](_0x36a503=>{if('formatBlock'!=_0x36a503['type']&&'formatInline'!=_0x36a503['type'])return;const {data:_0x8c819c}=_0x36a503;if(_0x8c819c){if('numberedList'==_0x8c819c['commandName']||'bulletedList'==_0x8c819c['commandName']||'todoList'==_0x8c819c['commandName'])switch(_0x8c819c['commandName']['replace']('List','')){case'bulleted':return _0x2501b5(o(_0x54c863,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2501b5(o(_0x54c863,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2501b5(o(_0x54c863,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8c819c['commandName'])return{'type':'format','content':o(_0x54c863,'*Indent:*\x20%0',o(_0x54c863,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8c819c['commandName'])return{'type':'format','content':o(_0x54c863,'*Outdent:*\x20%0',o(_0x54c863,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8c819c['commandName'])return _0x8c819c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54c863,'*Check\x20item*')}:{'type':'format','content':o(_0x54c863,'*Uncheck\x20item*')};}function _0x2501b5(_0x2146bb){return{'type':'format','content':o(_0x54c863,'*Change\x20to:*\x20%0',_0x2146bb)};}});}}function Le(_0x2377f5){const _0x79ce00=_0x2377f5['getAttribute']('listIndent');if(0x0==_0x79ce00)return _0x2377f5;let _0x2782b7=_0x2377f5;for(;_0x2377f5['previousSibling']&&_0x2377f5['previousSibling']['is']('element','listItem');){const _0x4ea50c=_0x2377f5['previousSibling']['getAttribute']('listIndent');if(_0x4ea50c==_0x79ce00)_0x2782b7=_0x2377f5['previousSibling'];else{if(_0x4ea50c<_0x79ce00)break;}_0x2377f5=_0x2377f5['previousSibling'];}return _0x2782b7;}function Ee(_0x328d7e){const _0x2ec7b1=[];if(_0x328d7e['is']('element','listItem')&&_0x328d7e['getAttribute']('listIndent')>0x0){let _0x3b316a=_0x328d7e['nextSibling'];for(;_0x3b316a&&'listItem'==_0x3b316a['name']&&_0x3b316a['getAttribute']('listIndent')==_0x328d7e['getAttribute']('listIndent');)_0x2ec7b1['push'](_0x3b316a),_0x3b316a=_0x3b316a['nextSibling'];}return _0x2ec7b1;}class wt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35d7fc=this['editor']['config']['get']('list.properties'),_0xdd5439=this['editor']['plugins']['get']('TrackChangesEditing');_0x35d7fc['styles']&&_0xdd5439['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35d7fc['reversed']&&_0xdd5439['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35d7fc['startIndex']&&_0xdd5439['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xdd5439['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50a481,_0x35c39c={}){const _0x70946a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ccaee=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x70946a['markMultiRangeBlockFormat'](_0x1ccaee,{'commandName':'listStyle','commandParams':[{'type':_0x35c39c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x153345,_0x3c0ccf={}){const _0x3e80e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11c864=this['_getSuggestionBlocks'](_0x3bf63c=>_0x3bf63c['is']('element','listItem')&&'numbered'===_0x3bf63c['getAttribute']('listType'));if(_0x11c864['length']<0x1)return;const _0x3ce4ed=_0x11c864['map'](_0xad896a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xad896a,'before'),this['editor']['model']['createPositionAt'](_0xad896a,0x0)));this['editor']['model']['change'](()=>{_0x3e80e4['markMultiRangeBlockFormat'](_0x3ce4ed,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c0ccf['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x182f04,_0x205fc7={}){const _0x199c41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c9e16=this['_getSuggestionBlocks'](_0x5aee54=>_0x5aee54['is']('element','listItem')&&'numbered'===_0x5aee54['getAttribute']('listType'));if(_0x1c9e16['length']<0x1)return;const _0x2d9421=_0x1c9e16['map'](_0x468471=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x468471,'before'),this['editor']['model']['createPositionAt'](_0x468471,0x0)));this['editor']['model']['change'](()=>{_0x199c41['markMultiRangeBlockFormat'](_0x2d9421,{'commandName':'listStart','commandParams':[{'startIndex':_0x205fc7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a0750){if('formatBlock'!=_0x4a0750['type']&&'formatInline'!=_0x4a0750['type'])return;const _0x52706b=this['editor']['locale'],{data:_0x5463e1}=_0x4a0750;if(!_0x5463e1)return;let _0x5bb0b8,_0x329f95;switch(_0x5463e1['commandName']){case'listStyle':_0x5bb0b8='*Change\x20to:*\x20%0',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8,o(_0x52706b,this['_getTranslationKeyForListStyle'](_0x5463e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bb0b8=_0x5463e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8)};break;case'listStart':_0x5bb0b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x329f95={'type':'format','content':o(_0x52706b,_0x5bb0b8,_0x5463e1['commandParams'][0x0]['startIndex'])};}return _0x329f95;}['_getSuggestionBlocksForListStyle'](){const _0x5b0e45=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ccffb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ccffb[0x0]?.['is']('element','listItem')&&_0x4ccffb['unshift'](..._0x5b0e45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ccffb[_0x4ccffb['length']-0x1]?.['is']('element','listItem')&&_0x4ccffb['push'](..._0x5b0e45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ccffb=[...new Set(_0x4ccffb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ccffb=_0x4ccffb['filter'](_0x363c56=>_0x363c56['is']('element','listItem'))),_0x4ccffb;}['_getSuggestionBlocks'](_0x3a442c){const _0x2366b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d6004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3a442c)['map'](_0x1bafd8=>{const _0x2d5db1=this['editor']['model']['createPositionAt'](_0x1bafd8,0x0);return[..._0x2366b8['getSiblingNodes'](_0x2d5db1,'backward'),..._0x2366b8['getSiblingNodes'](_0x2d5db1,'forward')];})['flat']();return _0x2d6004=[...new Set(_0x2d6004)],_0x2d6004;}['_getTranslationKeyForListStyle'](_0x1783f0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1783f0)||'default')['toUpperCase']()+'_LIST_'+_0x1783f0['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x22959f{['afterInit'](){const _0x5eddf2=this['editor'];if(!_0x5eddf2['plugins']['has']('MediaEmbedEditing'))return;const _0x1c83f5=_0x5eddf2['plugins']['get']('TrackChangesEditing'),_0x3d1e83=_0x5eddf2['locale'];_0x1c83f5['enableCommand']('mediaEmbed'),_0x1c83f5['descriptionFactory']['registerElementLabel']('media',_0x3ef55d=>o(_0x3d1e83,'ELEMENT_MEDIA',_0x3ef55d));}}class bt extends _0x22959f{['afterInit'](){const _0x46d4c7=this['editor'];_0x46d4c7['plugins']['has']('MentionEditing')&&_0x46d4c7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x22959f{['afterInit'](){const _0x302eab=this['editor'];if(!_0x302eab['plugins']['has']('MergeFieldsEditing'))return;const _0x3e5875=_0x302eab['plugins']['get']('TrackChangesEditing'),_0x29efd5=_0x302eab['locale'];_0x3e5875['enableCommand']('insertMergeField'),_0x3e5875['enableCommand']('insertMergeFieldBlock'),_0x3e5875['enableCommand']('insertMergeFieldImage'),_0x3e5875['descriptionFactory']['registerElementLabel']('mergeField',_0x35cf2a=>o(_0x29efd5,'ELEMENT_MERGE_FIELD',_0x35cf2a)),_0x3e5875['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3dec17=>o(_0x29efd5,'ELEMENT_MERGE_FIELD',_0x3dec17)),_0x3e5875['descriptionFactory']['registerDescriptionCallback'](_0x3b9551=>{if('insertion'!=_0x3b9551['type']&&'deletion'!=_0x3b9551['type'])return;const _0x5a35bb=_0x3b9551['getContainedElement']();if(null==_0x5a35bb)return;const _0xaaa64b=_0x302eab['plugins']['get']('MergeFieldsEditing');let _0x2d5e69;switch(_0xaaa64b['getMergeFieldType'](_0x5a35bb)){case null:return;case'image':{const _0x52990d=_0xaaa64b['unwrapAffixes'](_0x5a35bb['getAttribute']('src'));_0x2d5e69=_0xaaa64b['getLabel'](_0x52990d)||_0x52990d;break;}default:{const _0x2a7d17=_0x5a35bb['getAttribute']('id');_0x2d5e69=_0xaaa64b['getLabel'](_0x2a7d17)||_0x2a7d17;break;}}return'insertion'==_0x3b9551['type']?{'type':'insertion','content':o(_0x29efd5,'*Insert:*\x20%0','\x22'+_0x2d5e69+'\x22\x20'+o(_0x29efd5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29efd5,'*Remove:*\x20%0','\x22'+_0x2d5e69+'\x22\x20'+o(_0x29efd5,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x22959f{['afterInit'](){const _0x597457=this['editor'],_0x22cccd=_0x597457['plugins']['get']('TrackChangesEditing');_0x597457['plugins']['has']('MultiLevelList')&&(_0x22cccd['enableDefaultAttributesIntegration']('multiLevelList'),_0x22cccd['descriptionFactory']['registerDescriptionCallback'](_0x3102d6=>this['handleDescriptions'](_0x3102d6)));}['handleDescriptions'](_0x1b21fa){const _0x479d2d=this['editor']['locale'],{data:_0x128195}=_0x1b21fa,_0x35680e={'type':'format','content':''};if(_0x128195&&'listMarkerStyle'==_0x128195['key']){if(!_0x128195['oldValue'])return{'type':'format','content':o(_0x479d2d,'*Set\x20format:*\x20%0',o(_0x479d2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x128195['newValue']+')'};if(!_0x128195['newValue']){let _0x113efa=_0x1b21fa['head'];for(;_0x113efa;){if(_0x113efa['data']&&'listType'==_0x113efa['data']['key']&&_0x113efa['data']['newValue'])return _0x35680e;_0x113efa=_0x113efa['next'];}return{'type':'format','content':o(_0x479d2d,'*Remove\x20format:*\x20%0',o(_0x479d2d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x128195['oldValue']+')'};}}}}class St extends _0x22959f{['afterInit'](){const _0x563bc6=this['editor'];if(!_0x563bc6['plugins']['has']('PageBreakEditing'))return;_0x563bc6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ff2ef=_0x563bc6['plugins']['get']('TrackChangesEditing'),_0x283eb9=_0x563bc6['locale'];_0x1ff2ef['descriptionFactory']['registerElementLabel']('pageBreak',_0x55d7da=>o(_0x283eb9,'ELEMENT_PAGE_BREAK',_0x55d7da));}}class It extends _0x22959f{['afterInit'](){const _0xc9df4a=this['editor'];if(!_0xc9df4a['plugins']['has']('Paragraph'))return;const _0x227d34=_0xc9df4a['locale'],_0x403840=_0xc9df4a['plugins']['get']('TrackChangesEditing');_0x403840['descriptionFactory']['registerElementLabel']('paragraph',_0x5eb6c2=>o(_0x227d34,'ELEMENT_PARAGRAPH',_0x5eb6c2)),_0x403840['enableDefaultAttributesIntegration']('paragraph'),_0x403840['enableCommand']('insertParagraph');const _0x1baa1e=_0x403840['descriptionFactory'];_0x1baa1e['registerDescriptionCallback'](_0x15892e=>{if('insertion'!==_0x15892e['type'])return;const {start:_0x24f080,end:_0x1bb0ff}=_0x15892e['getFirstRange']();if(!_0x24f080['isTouching'](_0x1bb0ff)||!_0x24f080['nodeAfter'])return;const _0x16ea31=_0xc9df4a['model']['schema'],_0x17ba87=_0x24f080['nodeAfter'];return _0x16ea31['isBlock'](_0x17ba87)&&!_0x16ea31['isLimit'](_0x17ba87)&&_0x16ea31['checkChild'](_0x17ba87,'$text')?{'type':'insertion','content':o(_0x227d34,'*Insert:*\x20%0',_0x1baa1e['getItemLabel'](_0x17ba87,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b87ff=this['editor'],_0x14273a=_0x2b87ff['locale'];_0x2b87ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c8f5=>{if('formatBlock'!=_0x55c8f5['type'])return;const {data:_0x44aab5}=_0x55c8f5;return _0x44aab5&&'paragraph'==_0x44aab5['commandName']?{'type':'format','content':o(_0x14273a,'*Change\x20to:*\x20%0',o(_0x14273a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x22959f{['afterInit'](){const _0xd21b92=this['editor'];_0xd21b92['commands']['get']('replaceSource')&&_0xd21b92['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x22959f{['afterInit'](){const _0x502e7d=this['editor'];if(!_0x502e7d['plugins']['has']('RemoveFormatEditing'))return;_0x502e7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12fc0b=this['editor'];_0x12fc0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x570832=>{if('formatBlock'!=_0x570832['type']&&'formatInline'!=_0x570832['type'])return;const {data:_0x1a0069}=_0x570832;return _0x1a0069&&'removeFormat'==_0x1a0069['commandName']?{'type':'format','content':o(_0x12fc0b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x22959f{['afterInit'](){const _0x5b6b4e=this['editor'];if(!_0x5b6b4e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x458589=_0x5b6b4e['plugins']['get']('TrackChangesEditing');_0x458589['enableCommand']('goToPreviousRestrictedEditingException'),_0x458589['enableCommand']('goToNextRestrictedEditingException');const _0x35748b=_0x5b6b4e['plugins']['get']('RestrictedEditingModeEditing');_0x35748b['enableCommand']('trackChanges'),_0x35748b['enableCommand']('acceptSuggestion'),_0x35748b['enableCommand']('discardSuggestion'),_0x35748b['enableCommand']('acceptAllSuggestions'),_0x35748b['enableCommand']('discardAllSuggestions'),_0x35748b['enableCommand']('acceptSelectedSuggestions'),_0x35748b['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x22959f{['afterInit'](){const _0x47b011=this['editor'];if(!_0x47b011['plugins']['has']('ShiftEnter'))return;const _0x479900=_0x47b011['plugins']['get']('TrackChangesEditing');_0x479900['enableCommand']('shiftEnter'),_0x479900['descriptionFactory']['registerElementLabel']('softBreak',_0x226c39=>o(_0x47b011['locale'],'ELEMENT_LINE_BREAK',_0x226c39));}}function on(_0x2ecb69,_0x205d59,_0x188653){const _0x399263=[];for(const _0x26db38 of _0x205d59['getItems']())_0x26db38['hasAttribute'](_0x2ecb69)&&_0x399263['push'](_0x188653['createRangeOn'](_0x26db38));return _0x399263;}class $t extends _0x22959f{['afterInit'](){const _0x267747=this['editor'],_0x30ef83=_0x267747['plugins']['get']('TrackChangesEditing');_0x267747['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x30ef83['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x290233=this['editor'],_0x4c5d9c=_0x290233['model'],_0x34e321=_0x290233['locale'],_0x1c9d09=_0x290233['plugins']['get']('TrackChangesEditing'),_0xce05c='restrictedEditingException',_0x297626=_0x290233['commands']['get'](_0xce05c);_0x1c9d09['enableCommand'](_0xce05c,(_0x174489,_0x3d81b7={})=>{const _0x3845ae=_0x4c5d9c['document']['selection'];if(_0x3845ae['isCollapsed'])return void _0x174489(_0x3d81b7);const _0x10d253=void 0x0!==_0x3d81b7['forceValue']?_0x3d81b7['forceValue']:!_0x297626['value'];_0x4c5d9c['change'](()=>{const _0x449253=Array['from'](_0x3845ae['getRanges']());for(const _0x878fff of _0x449253){const _0x152bb3=_0x10d253?[_0x878fff]:on(_0xce05c,_0x878fff,_0x4c5d9c);for(const _0x297878 of _0x152bb3)_0x1c9d09['markInlineFormat'](_0x297878,{'commandName':_0xce05c,'commandParams':[{'forceValue':_0x10d253}]});}});}),_0x1c9d09['descriptionFactory']['registerDescriptionCallback'](_0x242afd=>{if('formatBlock'!=_0x242afd['type']&&'formatInline'!=_0x242afd['type'])return;const {data:_0x2e55c9}=_0x242afd;return _0x2e55c9&&_0x2e55c9['commandName']==_0xce05c?_0x2e55c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34e321,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x34e321,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5d0a97=this['editor'],_0x57352d=_0x5d0a97['locale'],_0x12eb52=_0x5d0a97['plugins']['get']('TrackChangesEditing'),_0x391845='restrictedEditingExceptionBlock',_0x2f8ff5=this['editor']['commands']['get'](_0x391845);_0x12eb52['enableCommand'](_0x391845,(_0x4543d7,_0x4159a={})=>{const _0x1761aa=this['editor']['model']['document']['selection'],_0x46ab76=_0x4159a&&void 0x0!==_0x4159a['forceValue']?_0x4159a['forceValue']:!_0x2f8ff5['value'];let _0x38cf5b=[];if(_0x46ab76){const _0xfc249a=Array['from'](_0x1761aa['getSelectedBlocks']())['filter'](_0x49aca5=>function(_0x1c49bf){return!!_0x1c49bf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x49aca5)||function(_0x4b892a,_0x4f0196){const _0x42708a=_0x4f0196['createContext'](_0x4b892a['parent']);if(!_0x4f0196['checkChild'](_0x42708a,'restrictedEditingException'))return!0x1;if(!_0x4f0196['checkChild'](_0x42708a['push']('restrictedEditingException'),_0x4b892a))return!0x1;return!0x0;}(_0x49aca5,this['editor']['model']['schema']));_0x38cf5b=to(_0xfc249a,_0x5d0a97['model']);}else{const _0x4bd7e5=Array['from'](_0x1761aa['getSelectedBlocks']())['map'](_0x1aa001=>function(_0xb95298){let _0x12a9a9=_0xb95298;for(;_0x12a9a9['parent'];){if('restrictedEditingException'==_0x12a9a9['parent']['name'])return _0x12a9a9;_0x12a9a9=_0x12a9a9['parent'];}return null;}(_0x1aa001))['filter'](_0x14af35=>!!_0x14af35);_0x38cf5b=to(_0x4bd7e5,_0x5d0a97['model']);}_0x5d0a97['model']['change'](()=>{for(const _0x5c0059 of _0x38cf5b)_0x12eb52['markBlockFormat'](_0x5c0059,{'commandName':_0x391845,'commandParams':[{'forceValue':_0x46ab76}]});});}),_0x12eb52['descriptionFactory']['registerDescriptionCallback'](_0x1523e0=>{const {data:_0x462712}=_0x1523e0;if(_0x462712&&_0x462712['commandName']==_0x391845)return _0x462712['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57352d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x57352d,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x22959f{['afterInit'](){const _0x458a32=this['editor'];if(!_0x458a32['plugins']['has']('Style')||!_0x458a32['plugins']['has']('DataSchema'))return;const _0x2a39c4=_0x458a32['plugins']['get']('TrackChangesEditing'),_0x5a983a=_0x458a32['locale'],_0x4651f2=_0x458a32['config']['get']('style')||{},_0x2f6154=_0x458a32['plugins']['get']('GeneralHtmlSupport'),_0x368203=_0x458a32['plugins']['get']('StyleUtils')['normalizeConfig'](_0x458a32['plugins']['get']('DataSchema'),_0x4651f2['definitions']);_0x2a39c4['enableDefaultAttributesIntegration']('style');const _0x2d092b=new Set();for(const _0x1de23d of _0x368203['block']){const _0x38918c=_0x2f6154['getGhsAttributeNameForElement'](_0x1de23d['element']);_0x2d092b['add'](_0x38918c);}const _0x160486=new Set();for(const _0x4703d7 of _0x368203['inline']){const _0x233638=_0x2f6154['getGhsAttributeNameForElement'](_0x4703d7['element']);_0x160486['add'](_0x233638);for(const _0x35d826 of _0x4703d7['ghsAttributes'])_0x160486['add'](_0x35d826);}for(const _0x1260d9 of _0x2d092b)_0x2a39c4['descriptionFactory']['registerAttributeLabel'](_0x1260d9,o(_0x5a983a,'FORMAT_STYLE'));for(const _0x9d04b2 of _0x160486)_0x2a39c4['descriptionFactory']['registerAttributeLabel'](_0x9d04b2,o(_0x5a983a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c983=this['editor'],_0x52c143=_0x34c983['locale'];_0x34c983['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305613=>{if('formatBlock'!=_0x305613['type']&&'formatInline'!=_0x305613['type'])return;const {data:_0x23ba19}=_0x305613;return _0x23ba19&&'style'===_0x23ba19['commandName']?_0x23ba19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52c143,'*Set\x20format:*\x20%0',_0x23ba19['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52c143,'*Remove\x20format:*\x20%0',_0x23ba19['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x22959f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3fd61b){super(_0x3fd61b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x362123=this['editor'],_0x496690=_0x362123['model']['document']['selection'];if(!_0x362123['plugins']['has']('TableEditing'))return;const _0x53efe1=_0x362123['locale'],_0x1efc19=_0x362123['plugins']['get']('TrackChangesEditing'),_0x121a8d=_0x362123['plugins']['get']('TableUtils');_0x1efc19['descriptionFactory']['registerElementLabel']('table',_0x2e4925=>o(_0x53efe1,'ELEMENT_TABLE',_0x2e4925)),this['_setupColumnsRowsFixing'](),_0x1efc19['enableCommand']('insertTable'),_0x1efc19['enableCommand']('selectTableRow'),_0x1efc19['enableCommand']('selectTableColumn');for(const _0x21a8d3 of['insertTableRowAbove','insertTableRowBelow']){const _0x360389=_0x362123['commands']['get'](_0x21a8d3);_0x1efc19['enableCommand'](_0x21a8d3,_0x377b0a=>{_0x362123['model']['change'](_0x3ddbe4=>{_0x377b0a();const _0x2e72c8='above'===_0x360389['order'],_0x233c32=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x3bacf6=_0x121a8d['getRowIndexes'](_0x233c32),_0x86ca63=_0x2e72c8?_0x3bacf6['first']-0x1:_0x3bacf6['last']+0x1,_0x3ffeb6=_0x233c32[0x0]['findAncestor']('table'),_0x5e5d64=_0x121a8d['createTableWalker'](_0x3ffeb6,{'startRow':_0x86ca63,'endRow':_0x86ca63}),_0xbfa496=Array['from'](_0x5e5d64)['map'](_0x4e3216=>_0x3ddbe4['createRangeOn'](_0x4e3216['cell']));_0x1efc19['markMultiRangeInsertion'](_0xbfa496,'tableRow');});});}for(const _0x26402e of['insertTableColumnLeft','insertTableColumnRight']){const _0x530039=_0x362123['commands']['get'](_0x26402e);_0x1efc19['enableCommand'](_0x26402e,_0x1a7301=>{_0x362123['model']['change'](_0x490aaf=>{_0x1a7301();const _0x2716ca='left'===_0x530039['order'],_0x111b96=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x203448=_0x121a8d['getColumnIndexes'](_0x111b96),_0x60fc9c=_0x2716ca?_0x203448['first']-0x1:_0x203448['last']+0x1,_0x589dd5=_0x111b96[0x0]['findAncestor']('table'),_0xe97c61=_0x121a8d['createTableWalker'](_0x589dd5,{'startRow':0x0,'column':_0x60fc9c,'includeAllSlots':!0x1}),_0xfa29fb=Array['from'](_0xe97c61)['map'](_0x1d2304=>_0x490aaf['createRangeOn'](_0x1d2304['cell']));_0x1efc19['markMultiRangeInsertion'](_0xfa29fb,'tableColumn');});});}for(const _0x53daa9 of['removeTableRow','removeTableColumn']){const _0x4c63a6=_0x53daa9['substr'](0xb),_0x53c489=_0x4c63a6['toLowerCase'](),_0xe965ff=_0x53c489['substr'](0x0,0x3)+'span',_0x556737='table'+_0x4c63a6,_0x546d2a='min'+_0x4c63a6,_0x318e57='max'+_0x4c63a6;_0x1efc19['enableCommand'](_0x53daa9,()=>{_0x362123['model']['change'](_0x524aef=>{const _0x52342a=_0x121a8d['getSelectionAffectedTableCells'](_0x496690),_0x3fc33a=_0x52342a[0x0]['findAncestor']('table');let _0x4d8ba7;if('removeTableRow'==_0x53daa9){const _0x3adc81=_0x121a8d['getRowIndexes'](_0x52342a);_0x4d8ba7={'startRow':_0x3adc81['first'],'endRow':_0x3adc81['last'],'includeAllSlots':!0x0};}else{const _0x4a05a3=_0x121a8d['getColumnIndexes'](_0x52342a);_0x4d8ba7={'startColumn':_0x4a05a3['first'],'endColumn':_0x4a05a3['last'],'includeAllSlots':!0x0};}const _0x10ea13=_0x121a8d['createTableWalker'](_0x3fc33a,_0x4d8ba7),_0x44cccb=Array['from'](_0x10ea13)['map'](({cell:_0x270365})=>_0x270365),_0x252687=_e(_0x44cccb['filter'](_0x53c65f=>_0x53c65f['hasAttribute'](_0xe965ff))),_0x321581=_e(_0x44cccb['filter'](_0x5a7eca=>!_0x5a7eca['hasAttribute'](_0xe965ff)))['map'](_0x2916a2=>_0x524aef['createRangeOn'](_0x2916a2)),_0x4ca3fe=_0x1efc19['markMultiRangeDeletion'](_0x321581,_0x556737);if(_0x4ca3fe&&('tableRow'==_0x4ca3fe['subType']||'tableColumn'==_0x4ca3fe['subType'])){const _0x749efc=this['_getSuggestionCoords'](_0x4ca3fe);for(const _0x48f9e7 of _0x252687){const _0x5a6ca0=_0x524aef['createRangeOn'](_0x48f9e7),_0x27b941=_0x121a8d['getCellLocation'](_0x48f9e7),_0x7f4e31=_0x48f9e7['getAttribute'](_0xe965ff)-0x1,_0x546c60=_0x749efc[_0x546d2a],_0x3767d3=_0x749efc[_0x318e57];_0x546c60<=_0x27b941[_0x53c489]&&_0x27b941[_0x53c489]+_0x7f4e31<=_0x3767d3&&_0x4ca3fe['addRange'](_0x5a6ca0);}}});});}function _0x4f2b5a(_0x286942){const _0x1151d5=Array['from'](_0x496690['getRanges']())['map'](_0x2b38c0=>_0xfc1203['fromRange'](_0x2b38c0));_0x362123['model']['change'](_0x1df1f6=>{const _0x3b83fc=_0x1df1f6['batch'];_0x286942=_0x286942['filter'](_0x19d32c=>'$graveyard'!=_0x19d32c['root']['rootName']),_0x1df1f6['setSelection'](_0x286942),_0x362123['commands']['get']('removeTableRow')['refresh'](),_0x362123['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x362123['model']['enqueueChange'](()=>{_0x362123['model']['enqueueChange'](_0x3b83fc,_0x4bbecd=>{const _0x5b258f=_0x1151d5['filter'](_0x50c56a=>'$graveyard'!=_0x50c56a['root']['rootName']);_0x5b258f['length']>0x0&&_0x4bbecd['setSelection'](_0x5b258f);for(const _0x412948 of _0x1151d5)_0x412948['detach']();});});});}function _0x41eec0(_0x266a4e){_0x362123['model']['change'](_0x43176f=>{const _0x268fa1=Array['from'](_0x496690['getRanges']())['map'](_0x8e820f=>_0xfc1203['fromRange'](_0x8e820f)),_0x5e7dae=[];for(const _0x385728 of _0x266a4e)for(const _0x5c808 of _0x385728['getItems']({'shallow':!0x0}))_0x5e7dae['push'](_0x5c808);for(const _0x388e3a of _0x5e7dae)'$graveyard'!=_0x388e3a['root']['rootName']&&(_0x43176f['setSelection'](_0x43176f['createPositionAt'](_0x388e3a,0x0)),_0x362123['commands']['get']('removeTableColumn')['refresh'](),_0x362123['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x158523=_0x268fa1['filter'](_0x35bac7=>'$graveyard'!=_0x35bac7['root']['rootName']);_0x158523['length']>0x0&&_0x43176f['setSelection'](_0x158523);for(const _0x25c33d of _0x268fa1)_0x25c33d['detach']();});}function _0x103d0d(_0x3db4ee,_0x5c1611){return _0x5c1611['every'](_0x26a557=>_0x3db4ee['some'](_0x37d07c=>_0x37d07c['end']['isEqual'](_0x26a557['start'])||_0x26a557['end']['isEqual'](_0x37d07c['start'])));}function _0x93c31a(_0x2a4394,_0x20a6b3){return!_0x2a4394['some'](_0x98362c=>_0x20a6b3['some'](_0x15f93a=>_0x98362c['isIntersecting'](_0x15f93a)))&&_0x2a4394['some'](_0x3401ee=>_0x20a6b3['some'](_0x17c2a9=>_0x3401ee['end']['isTouching'](_0x17c2a9['start'])));}_0x1efc19['descriptionFactory']['registerDescriptionCallback'](_0x948b67=>{if('insertion'!=_0x948b67['type']&&'deletion'!=_0x948b67['type'])return;const _0x4c4c04=_0x948b67['getContainedElement']();if(null!=_0x4c4c04&&_0x4c4c04['is']('element','table')){if('insertion'==_0x948b67['type']){const _0x5e3b6a=_0x948b67['getItems']()['filter'](_0x3980b7=>_0x3980b7['is']('$textProxy'))['map'](_0x37bb4a=>_0x37bb4a['data']);if(_0x5e3b6a['length'])return{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e3b6a['join']('\x20')+'\x22'))};}if('deletion'==_0x948b67['type']){const _0x1fac6c=_0x948b67['getItems']()['filter'](_0x5a4593=>_0x5a4593['is']('$textProxy'))['map'](_0x1c283c=>_0x1c283c['data']);if(_0x1fac6c['length'])return{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fac6c['join']('\x20')+'\x22'))};}}}),_0x1efc19['descriptionFactory']['registerDescriptionCallback'](_0x1ec8e0=>{if('tableRow'==_0x1ec8e0['subType']){const _0x510bf8=_0x1ec8e0['getItems']()['filter'](_0x56ef55=>_0x56ef55['is']('$textProxy'))['map'](_0x223a10=>_0x223a10['data']),_0x4181d5=this['_getSuggestionCoords'](_0x1ec8e0),_0xcabd67=_0x4181d5['maxRow']-_0x4181d5['minRow']+0x1;if('insertion'==_0x1ec8e0['type'])return _0x510bf8['length']?{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xcabd67,'\x22'+_0x510bf8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW',_0xcabd67))};if('deletion'==_0x1ec8e0['type'])return _0x510bf8['length']?{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xcabd67,'\x22'+_0x510bf8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_ROW',_0xcabd67))};}if('tableColumn'==_0x1ec8e0['subType']){const _0x526b48=_0x1ec8e0['getItems']()['filter'](_0x5bf2a6=>_0x5bf2a6['is']('$textProxy'))['map'](_0x593a79=>_0x593a79['data']),_0x32ca31=this['_getSuggestionCoords'](_0x1ec8e0),_0x24ec31=_0x32ca31['maxColumn']-_0x32ca31['minColumn']+0x1;if('insertion'==_0x1ec8e0['type'])return _0x526b48['length']?{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24ec31,'\x22'+_0x526b48['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53efe1,'*Insert:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN',_0x24ec31))};if('deletion'==_0x1ec8e0['type'])return _0x526b48['length']?{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24ec31,'\x22'+_0x526b48['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53efe1,'*Remove:*\x20%0',o(_0x53efe1,'ELEMENT_TABLE_COLUMN',_0x24ec31))};}}),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4f2b5a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4f2b5a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41eec0),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41eec0),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x103d0d),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x103d0d),_0x1efc19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x93c31a),_0x1efc19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x93c31a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4c163f=this['editor'],_0x27905c=_0x4c163f['model']['document']['selection'];return(_0x448e45,_0x57e865)=>{_0x4c163f['model']['change'](_0x2b66cd=>{const {commandName:_0x347fc5,commandParams:_0x3135c8}=_0x57e865;let _0x2da291=_0x448e45[0x0]['end']['nodeBefore'];_0x3135c8&&_0x3135c8[0x0]&&!0x1===_0x3135c8[0x0]['forceValue']&&(_0x2da291=_0x448e45[0x0]['start']['nodeAfter']);const _0x44d884=_0x2b66cd['createRangeIn'](_0x2da291);if('$graveyard'==_0x44d884['root']['rootName'])return;const _0x416d6a=Array['from'](_0x27905c['getRanges']())['map'](_0x1292fd=>_0xfc1203['fromRange'](_0x1292fd));_0x2b66cd['setSelection'](_0x44d884),_0x4c163f['commands']['get'](_0x347fc5)['refresh'](),_0x3135c8['push']({'forceDefaultExecution':!0x0}),_0x4c163f['execute'](_0x347fc5,..._0x3135c8);const _0x5230ab=_0x416d6a['filter'](_0xe11c82=>'$graveyard'!=_0xe11c82['root']['rootName']);_0x5230ab['length']>0x0&&_0x2b66cd['setSelection'](_0x5230ab);for(const _0x21319b of _0x416d6a)_0x21319b['detach']();});};}['_getCoordsForCells'](_0x338849){const _0xbe1d32=this['editor']['plugins']['get']('TableUtils');let _0x2b20b0=Number['MAX_SAFE_INTEGER'],_0x2fcc63=Number['MIN_SAFE_INTEGER'],_0x2c0d1e=Number['MAX_SAFE_INTEGER'],_0x16f3ea=Number['MIN_SAFE_INTEGER'];for(const _0x4547ee of _0x338849){if('$graveyard'==_0x4547ee['root']['rootName'])continue;const {row:_0x30925c,column:_0xd0b453}=_0xbe1d32['getCellLocation'](_0x4547ee),_0x56d4c6=_0x4547ee['hasAttribute']('rowspan')?_0x4547ee['getAttribute']('rowspan')-0x1:0x0,_0x1fec9e=_0x4547ee['hasAttribute']('colspan')?_0x4547ee['getAttribute']('colspan')-0x1:0x0;_0x2b20b0=_0x30925c<_0x2b20b0?_0x30925c:_0x2b20b0,_0x2fcc63=_0x30925c+_0x56d4c6>_0x2fcc63?_0x30925c+_0x56d4c6:_0x2fcc63,_0x2c0d1e=_0xd0b453<_0x2c0d1e?_0xd0b453:_0x2c0d1e,_0x16f3ea=_0xd0b453+_0x1fec9e>_0x16f3ea?_0xd0b453+_0x1fec9e:_0x16f3ea;}return{'minRow':_0x2b20b0,'maxRow':_0x2fcc63,'minColumn':_0x2c0d1e,'maxColumn':_0x16f3ea};}['_setupColumnsRowsFixing'](){const _0x3051ec=this['editor'],_0x106adf=_0x3051ec['plugins']['get']('TrackChangesEditing'),_0x4cd751=_0x3051ec['plugins']['get']('TableUtils');_0x3051ec['model']['document']['on']('change:data',()=>{const _0x938cf9=Array['from'](_0x3051ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1343b6,data:_0x5afa96}of _0x938cf9){const {group:_0x1ac165,id:_0x48dc9b,subType:_0xe647ea}=_0x106adf['_splitMarkerName'](_0x1343b6);if('suggestion'!=_0x1ac165)continue;if(null!=_0x5afa96['oldRange'])continue;const _0x4d9d8f=_0x106adf['getSuggestion'](_0x48dc9b);this['_tablePostFixingSubtypes']['includes'](_0xe647ea)&&this['_tableSuggestions']['add'](_0x4d9d8f);}},{'priority':'low'});const _0x13ae3d=(_0x406ef5,_0x4366ee)=>{let _0xa0250f=!0x1;const _0x47c413=_0x4366ee['createRangeOn'](_0x406ef5),_0x445922=_0x406ef5['findAncestor']('table'),_0x42199c=_0x4cd751['getCellLocation'](_0x406ef5);for(const _0xc21bf1 of this['_tableSuggestions']){const _0x5e9a2a=_0xc21bf1['subType'],_0x3e75e7=_0x5e9a2a['startsWith']('tablePaste'),_0x27c6fb=_0x5e9a2a['substr'](_0x3e75e7?0xa:0x5),_0x5bdff3=_0x27c6fb['toLowerCase'](),_0x47c63e=_0x5bdff3['substr'](0x0,0x3)+'span',_0x3b038b='min'+_0x27c6fb,_0x2bb763='max'+_0x27c6fb;if(!_0xc21bf1['isInContent'])continue;if(_0x445922!=_0xc21bf1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xc21bf1['isIntersectingWithRange'](_0x47c413))continue;const _0x1696cf=_0x406ef5['hasAttribute'](_0x47c63e)?_0x406ef5['getAttribute'](_0x47c63e)-0x1:0x0,_0x598d77=this['_getSuggestionCoords'](_0xc21bf1),_0x3d5cbd=_0x598d77[_0x3b038b],_0x3ef6d4=_0x598d77[_0x2bb763];_0x3d5cbd<=_0x42199c[_0x5bdff3]&&_0x42199c[_0x5bdff3]+_0x1696cf<=_0x3ef6d4&&(_0xc21bf1['addRange'](_0x47c413),_0xa0250f=!0x0);}return _0xa0250f;};_0x3051ec['model']['document']['registerPostFixer'](_0x523654=>{let _0x17ca91=!0x1;for(const _0x3ca055 of _0x3051ec['model']['document']['differ']['getChanges']())if('insert'==_0x3ca055['type']){if('tableRow'==_0x3ca055['name']){for(const _0x599995 of _0x3ca055['position']['nodeAfter']['getChildren']())_0x17ca91=_0x17ca91||_0x13ae3d(_0x599995,_0x523654);}else'tableCell'==_0x3ca055['name']&&(_0x17ca91=_0x17ca91||_0x13ae3d(_0x3ca055['position']['nodeAfter'],_0x523654));}return _0x17ca91;});}['_getSuggestionCoords'](_0x313d25){return this['_getCoordsForCells'](_0x313d25['getRanges']()['map'](_0x125274=>_0x125274['start']['nodeAfter']));}}function _e(_0x4e8169){return Array['from'](new Set(_0x4e8169)['values']());}class Bt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x3a0141=this['editor'],_0x365275=_0x3a0141['model']['document']['selection'],_0x1e240b=_0x3a0141['locale'];if(!_0x3a0141['plugins']['has']('TableEditing'))return;const _0x512711=_0x3a0141['plugins']['get']('TrackChangesEditing'),_0x54e0e9=_0x3a0141['plugins']['get']('TableUtils'),_0x3ca765=_0x3a0141['plugins']['get'](Dt);_0x3ca765['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x512711['enableCommand']('mergeTableCells',()=>{const _0x5cb310=_0x54e0e9['getSelectionAffectedTableCells'](_0x3a0141['model']['document']['selection']);_0x3a0141['model']['change'](()=>{_0x512711['markMultiRangeBlockFormat'](_0x5cb310,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a0141['commands']['get']('mergeTableCells')['on']('execute',(_0x339759,_0xbfa761)=>{_0x3a0141['commands']['get']('trackChanges')['value']&&(_0xbfa761['length']>0x0&&_0xbfa761[_0xbfa761['length']-0x1]&&_0xbfa761[_0xbfa761['length']-0x1]['forceDefaultExecution']||_0x512711['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x339759['stop']());},{'priority':'highest'});for(const _0x13e1ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1aec60=_0x3a0141['commands']['get'](_0x13e1ed);_0x512711['enableCommand'](_0x13e1ed,()=>{const _0x169194=_0x3a0141['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b7b61=>_0x1b7b61['is']('element','tableCell')),_0xcae638=_0x1aec60['value'];_0x3a0141['model']['change'](()=>{_0x512711['markMultiRangeBlockFormat']([_0x169194,_0xcae638],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d063f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30b08e=_0x3a0141['commands']['get'](_0x3d063f);_0x512711['enableCommand'](_0x3d063f,()=>{const _0x1bb491=_0x54e0e9['getSelectionAffectedTableCells'](_0x3a0141['model']['document']['selection'])[0x0],_0xffc6ab=_0x1bb491['findAncestor']('table'),{column:_0x332727,row:_0x5b6bc2}=_0x54e0e9['getCellLocation'](_0x1bb491);let _0x50fe41=[];if('horizontally'==_0x30b08e['direction']){const _0x2425f5=_0x54e0e9['createTableWalker'](_0xffc6ab,{'startRow':_0x5b6bc2,'endRow':_0x5b6bc2,'includeAllSlots':!0x0});_0x50fe41=Array['from'](_0x2425f5)['map'](_0x5a94f2=>_0x5a94f2['cell']);}else{const _0xf0ecf1=_0x54e0e9['createTableWalker'](_0xffc6ab,{'column':_0x332727,'includeAllSlots':!0x0});_0x50fe41=Array['from'](_0xf0ecf1)['map'](_0x57b09c=>_0x57b09c['cell']);}_0x3a0141['model']['change'](_0xcdf52f=>{_0x512711['markBlockFormat'](_0xcdf52f['createRangeOn'](_0x1bb491),{'commandName':_0x3d063f,'commandParams':[]},_0x50fe41,_0x3d063f);});});}_0x512711['descriptionFactory']['registerDescriptionCallback'](_0x2516c7=>{if('formatBlock'!=_0x2516c7['type']&&'formatInline'!=_0x2516c7['type'])return;const {data:_0x3e1582}=_0x2516c7;return _0x3e1582&&'mergeTableCells'==_0x3e1582['commandName']?{'type':'format','content':o(_0x1e240b,'*Merge\x20cells*')}:void 0x0;}),_0x512711['descriptionFactory']['registerDescriptionCallback'](_0x64757c=>{if('formatBlock'!=_0x64757c['type']&&'formatInline'!=_0x64757c['type'])return;const {data:_0x443238}=_0x64757c;return _0x443238?'splitTableCellVertically'==_0x443238['commandName']?{'type':'format','content':o(_0x1e240b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x443238['commandName']?{'type':'format','content':o(_0x1e240b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2eccb8=_0x3ca765['_acceptFormatSuggestionCallbackFactory']();for(const _0x1da231 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1da231,'accept',_0x2eccb8);for(const _0x564095 of['splitTableCellVertically','splitTableCellHorizontally'])_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x564095,'accept',_0x2eccb8);_0x512711['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8596fa=>{_0x3a0141['model']['change'](_0x1e2680=>{const _0x1f5460=Array['from'](_0x365275['getRanges']())['map'](_0x38e9c5=>_0xfc1203['fromRange'](_0x38e9c5));_0x1e2680['setSelection'](_0x8596fa),_0x3a0141['commands']['get']('mergeTableCells')['refresh'](),_0x3a0141['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2515f0=_0x1f5460['filter'](_0x26d145=>'$graveyard'!=_0x26d145['root']['rootName']);_0x2515f0['length']>0x0&&_0x1e2680['setSelection'](_0x2515f0);for(const _0x1108ee of _0x1f5460)_0x1108ee['detach']();});});for(const _0x138f97 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x30b787=_0x3a0141['commands']['get'](_0x138f97);_0x30b787['on']('set:isEnabled',(_0x21cdfa,_0x4cd63e,_0x30876e)=>{if(_0x30876e){const _0x51a05e=_0x3a0141['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11215a=>_0x11215a['is']('element','tableCell'));this['_areMergableCells'](_0x30b787['value'],_0x51a05e)||(_0x21cdfa['return']=!0x1,_0x21cdfa['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47f7af=this['editor']['commands']['get']('mergeTableCells'),_0x5983d8=this['editor']['plugins']['get']('TableUtils');if(!_0x47f7af['isEnabled'])return!0x1;const _0x125513=_0x5983d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ed497 of _0x125513)for(const _0x215f54 of _0x125513)if(_0x3ed497!=_0x215f54&&!this['_areMergableCells'](_0x3ed497,_0x215f54))return!0x1;return!0x0;}['_areMergableCells'](_0x3ce4aa,_0x5c6197){const _0x1a5214=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2436ab=this['editor']['model']['createRangeOn'](_0x3ce4aa),_0xedffbb=this['editor']['model']['createRangeOn'](_0x5c6197),_0x39c18d=new Set(),_0x48746e=new Set();for(const _0x5f5511 of _0x1a5214['getSuggestions']())if(('insertion'==_0x5f5511['type']||'deletion'==_0x5f5511['type']||'mergeTableCells'==_0x5f5511['subType'])&&_0x5f5511['isInContent']){for(const _0x20d84d of _0x5f5511['getRanges']())_0x20d84d['containsRange'](_0x2436ab,!0x0)&&_0x39c18d['add'](_0x5f5511['type']+':'+_0x5f5511['author']['id']),_0x20d84d['containsRange'](_0xedffbb,!0x0)&&_0x48746e['add'](_0x5f5511['type']+':'+_0x5f5511['author']['id']);}if(_0x39c18d['size']!=_0x48746e['size'])return!0x1;for(const _0x4211c6 of _0x39c18d)if(!_0x48746e['has'](_0x4211c6))return!0x1;return!0x0;}}class Ot extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x35cf44=this['editor'];if(!_0x35cf44['plugins']['has']('TableEditing'))return;const _0x447d0a=_0x35cf44['locale'],_0x42e5db=_0x35cf44['plugins']['get']('TrackChangesEditing');_0x42e5db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x42e5db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x42e5db['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x447d0a,'FORMAT_HEADER_ROW')),_0x42e5db['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x447d0a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16255a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a3e8=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x16255a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x11a3e8),_0x16255a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x11a3e8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xb394ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43b21b=this['editor']['plugins']['get']('TableUtils');function _0x3faf6e({showActiveMarker:_0x1c4ab8=!0x0,setDataAttribute:_0x12a865=!0x0}={}){return(_0x38292b,_0x112395,_0x2b49f7)=>{const {type:_0x4610b0,id:_0x259e36}=_0xb394ad['_splitMarkerName'](_0x112395['markerName']);if(!_0xb394ad['hasSuggestion'](_0x259e36))return;const _0x1d1ceb=_0xb394ad['getSuggestion'](_0x259e36),_0x39d00f=_0x1d1ceb['data'];if('formatBlock'!=_0x1d1ceb['type']||!_0x39d00f||'setTableColumnHeader'!=_0x39d00f['commandName'])return;if(_0x112395['item'])return void _0x38292b['stop']();if(!_0x2b49f7['consumable']['consume'](_0x112395['markerRange'],_0x38292b['name']))return;const _0x329b82=_0x112395['markerRange']['start']['nodeAfter'],_0x279610=_0x112395['markerRange']['end']['nodeBefore'],_0x473ac9=_0x329b82['parent']['parent'],{column:_0x1cba14}=_0x43b21b['getCellLocation'](_0x329b82),{column:_0x4c09c7}=_0x43b21b['getCellLocation'](_0x279610);for(let _0x40be8b=_0x1cba14;_0x40be8b<=_0x4c09c7;_0x40be8b++){const _0xd2239f=_0x43b21b['createTableWalker'](_0x473ac9,{'column':_0x40be8b,'includeAllSlots':!0x1});for(const _0x29ff4c of _0xd2239f){const _0x1c48a9=_0x29ff4c['cell'],_0x5cc890=_0x2b49f7['mapper']['toViewElement'](_0x1c48a9);_0x2b49f7['writer']['addClass']('ck-suggestion-marker-'+_0x4610b0,_0x5cc890),_0x12a865&&_0x2b49f7['writer']['setAttribute']('data-suggestion',_0x259e36,_0x5cc890),_0x2b49f7['mapper']['bindElementToMarker'](_0x5cc890,_0x112395['markerName']),_0x1c4ab8&&(_0xb394ad['activeMarkers']['includes'](_0x112395['markerName'])?_0x2b49f7['writer']['addClass']('ck-suggestion-marker--active',_0x5cc890):_0x2b49f7['writer']['removeClass']('ck-suggestion-marker--active',_0x5cc890));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3faf6e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5536bd,_0x29ea61,_0x22f337)=>{_0x22f337['options']['showSuggestionHighlights']&&_0x3faf6e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5536bd,_0x29ea61,_0x22f337);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x478cd5,_0x2c92e1,_0x17064a)=>{const {type:_0x1b3a01,id:_0x42fd22}=_0xb394ad['_splitMarkerName'](_0x2c92e1['markerName']);if(!_0xb394ad['hasSuggestion'](_0x42fd22))return;const _0x52f59a=_0xb394ad['getSuggestion'](_0x42fd22),_0x252b56=_0x52f59a['data'];if('formatBlock'!=_0x52f59a['type']||!_0x252b56||'setTableColumnHeader'!=_0x252b56['commandName'])return;const _0x5d5392=_0x17064a['mapper']['markerNameToElements'](_0x2c92e1['markerName']);if(_0x5d5392){for(const _0x11280b of _0x5d5392)_0x17064a['writer']['removeClass']('ck-suggestion-marker-'+_0x1b3a01,_0x11280b),_0x17064a['writer']['removeClass']('ck-suggestion-marker--active',_0x11280b),_0x17064a['writer']['removeAttribute']('data-suggestion',_0x11280b),_0x17064a['mapper']['unbindElementFromMarkerName'](_0x11280b,_0x2c92e1['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x549b94=this['editor'],_0x4ef78e=_0x549b94['locale'];function _0x457275(_0x3c2e2c){return{'type':'format','content':o(_0x4ef78e,'*Format:*\x20%0',_0x3c2e2c)};}_0x549b94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b211=>{if('formatBlock'!=_0x59b211['type'])return;const {data:_0x43194a}=_0x59b211;if(_0x43194a){if('setTableRowHeader'==_0x43194a['commandName']){const _0x1e226d=_0x43194a['commandParams'][0x0]['forceValue'];return _0x457275(o(_0x4ef78e,_0x1e226d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x43194a['commandName']){const _0x5e8ac8=_0x43194a['commandParams'][0x0]['forceValue'];return _0x457275(o(_0x4ef78e,_0x5e8ac8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x22959f{['afterInit'](){const _0x42565d=this['editor'],_0x3e3e3d=_0x42565d['locale'],_0x4d5b0f=_0x42565d['plugins']['get']('TrackChangesEditing');function _0x40f526(_0x1c967f){return{'type':'format','content':''+o(_0x3e3e3d,'*Set\x20table\x20type:*\x20%0',_0x1c967f)};}_0x42565d['plugins']['has']('TableLayout')&&(_0x4d5b0f['enableCommand']('insertTableLayout'),_0x4d5b0f['enableDefaultAttributesIntegration']('tableType'),_0x4d5b0f['descriptionFactory']['registerElementLabel'](_0x299006=>_0x299006['is']('element','table')&&'layout'===_0x299006['getAttribute']('tableType'),_0x22ce53=>o(_0x3e3e3d,'ELEMENT_LAYOUT_TABLE',_0x22ce53)),_0x4d5b0f['descriptionFactory']['registerDescriptionCallback'](_0x460652=>{const {data:_0x505c33}=_0x460652;if(_0x505c33&&'tableType'==_0x505c33['key'])switch(_0x505c33['newValue']){case'layout':return _0x40f526(o(_0x3e3e3d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x40f526(o(_0x3e3e3d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x5c9657=>[_0x5c9657,null]));class Mt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0xc9fb95=this['editor'];if(!_0xc9fb95['plugins']['has']('TableClipboard'))return;const _0x197c48=_0xc9fb95['plugins']['get']('TrackChangesEditing'),_0x30eab4=_0xc9fb95['plugins']['get']('TableUtils'),_0x4ada52=_0xc9fb95['plugins']['get'](Dt),_0xbad527=_0xc9fb95['plugins']['get']('TableClipboard'),_0x5a553f=_0xc9fb95['plugins']['get']('TableSelection'),_0x155b2c=_0xc9fb95['plugins']['get'](_0xea6e8f);_0x4ada52['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc9fb95['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc9fb95['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x579ce4=null,_0x4d0bef=!0x1;_0x155b2c['on']('contentInsertion',(_0x5f16a2,_0x4ec4aa)=>{_0x4d0bef='paste'===_0x4ec4aa['method'];}),_0xc9fb95['model']['on']('insertContent',(_0x48164f,_0x39dd5f)=>{if(!_0x4d0bef&&null===_0x5a553f['getSelectedTableCells']())return;const [_0x51a6fc,_0x264dee]=_0x39dd5f,_0x2e0389=_0x39dd5f[_0x39dd5f['length']-0x1];_0x2e0389&&_0x2e0389['forceDefaultExecution']||_0x197c48['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x35056f,_0xa87810,_0x312015,_0x4abede,_0x1285fc){if(_0xa87810&&!_0xa87810['is']('documentSelection'))return!0x1;const _0x445048=_0x1285fc['getTableIfOnlyTableInContent'](_0x35056f,_0x312015);if(!_0x445048||!Oe(_0x445048,void 0x0,_0x4abede))return!0x1;const _0x566354=_0x4abede['getSelectionAffectedTableCells'](_0x312015['document']['selection']);if(!_0x566354['length'])return!0x1;const _0x41e4d4=_0x566354[0x0]['findAncestor']('table'),_0x29cd55=_0x4abede['getRowIndexes'](_0x566354),_0x59b0b9=_0x4abede['getColumnIndexes'](_0x566354),_0x3373c9={'startRow':_0x29cd55['first'],'endRow':_0x29cd55['last'],'startColumn':_0x59b0b9['first'],'endColumn':_0x59b0b9['last']};return 0x1==_0x566354['length']&&(_0x3373c9['endRow']+=_0x4abede['getRows'](_0x445048)-0x1,_0x3373c9['endColumn']+=_0x4abede['getColumns'](_0x445048)-0x1),Oe(_0x41e4d4,_0x3373c9,_0x4abede);}(_0x51a6fc,_0x264dee,_0xc9fb95['model'],_0x30eab4,_0xbad527)&&(_0x48164f['stop'](),_0x579ce4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc9fb95['model']['change'](()=>{_0xc9fb95['model']['insertContent'](_0x39dd5f[0x0],_0x39dd5f[0x1],_0x39dd5f[0x2],{'forceDefaultExecution':!0x0});const _0x4173a0=_0x34c54d(),{rowInsertionRanges:_0x4af7dc,columnInsertionRanges:_0x556cdd,insertionRanges:_0x1ba158,deletionRanges:_0x2355a4,cells:_0x576081}=_0x579ce4;_0x4af7dc['length']&&_0x197c48['markMultiRangeInsertion'](_0x4af7dc,'tablePasteRow',{'tablePasteChainId':_0x4173a0}),_0x556cdd['length']&&_0x197c48['markMultiRangeInsertion'](_0x556cdd,'tablePasteColumn',{'tablePasteChainId':_0x4173a0}),_0x1ba158['length']&&(_0x197c48['markMultiRangeInsertion'](_0x1ba158,'tablePaste',{'tablePasteChainId':_0x4173a0,'skipNestingCheck':!0x0}),_0x1ba158['forEach'](_0x5b9709=>_0x5b9709['detach']?.())),_0x2355a4['length']&&(_0x197c48['markMultiRangeDeletion'](_0x2355a4,'tablePaste',{'tablePasteChainId':_0x4173a0,'skipNestingCheck':!0x0}),_0x2355a4['forEach'](_0x54eb0c=>_0x54eb0c['detach']?.()));const _0x53dab6=_0x197c48['markMultiRangeBlockFormat'](_0x576081['map'](({element:_0xc7d0e9})=>_0xc7d0e9),{'formatGroupId':_0x34c54d()},[],'tablePasteCell',{'tablePasteChainId':_0x4173a0});if(_0x53dab6){const _0x17f842=_0x53dab6['getMarkers'](),_0x102ae1=[];for(const {element:_0x58ed07,attributes:_0x641f27}of _0x576081){if(!_0x641f27)continue;const _0x338fb1=_0xc9fb95['model']['createRangeOn'](_0x58ed07),_0x300270=_0x17f842['find'](_0x454048=>_0x454048['getRange']()['isEqual'](_0x338fb1));_0x300270&&_0x102ae1['push']([_0x300270['name'],_0x641f27]);}_0x102ae1['length']&&_0x53dab6['setAttribute']('markerAttributes',Object['fromEntries'](_0x102ae1));}_0x579ce4=null;}));},{'priority':_0x35b182['high']+0xa}),_0x155b2c['on']('contentInsertion',()=>{_0x4d0bef=!0x1;},{'priority':'lowest'}),_0xc9fb95['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x239afc,_0x103315)=>{const [_0x56cf10,_0x54a075,,_0x112468]=_0x103315;if(!_0x579ce4)return;_0x239afc['stop']();const _0x1bab1c=_0x56cf10['cell'],_0x2b4cfc=_0x54a075,_0x1261d9=Be(_0x1bab1c),_0x2b9597=Be(_0x2b4cfc);_0x239afc['return']=_0x1bab1c;let _0x4f6690=null,_0x57e0ba=null;if(_0x2b9597||_0x1261d9){if(_0x1261d9&&!_0x2b9597){_0x112468['remove'](_0x1bab1c['getChild'](0x0));for(const _0x22b371 of Array['from'](_0x2b4cfc['getChildren']()))_0x112468['insert'](_0x22b371,_0x1bab1c,'end');const _0x324a6b=_0x579ce4['rowInsertionIndexes']['includes'](_0x56cf10['row']),_0x2e22fb=_0x579ce4['columnInsertionIndexes']['includes'](_0x56cf10['column']);_0x324a6b||_0x2e22fb||(_0x4f6690=_0xfc1203['fromRange'](_0x112468['createRangeIn'](_0x1bab1c)));}else _0x2b9597&&!_0x1261d9&&(_0x57e0ba=_0x112468['createRangeIn'](_0x1bab1c));}else{const _0x187b96=_0x112468['createElement']('tableCellSuggestion'),_0x3bde5c=_0x112468['createElement']('tableCellSuggestion');_0x112468['wrap'](_0x112468['createRangeIn'](_0x1bab1c),_0x3bde5c),_0x112468['insert'](_0x187b96,_0x1bab1c,0x0);for(const _0x331f46 of Array['from'](_0x2b4cfc['getChildren']()))_0x112468['insert'](_0x331f46,_0x187b96,'end');_0x4f6690=_0xfc1203['fromRange'](_0x112468['createRangeOn'](_0x187b96)),_0x57e0ba=_0xfc1203['fromRange'](_0x112468['createRangeOn'](_0x3bde5c));}const _0x2bd4dd=Array['from'](_0x2b4cfc['getAttributes']())['filter'](([_0x1cdf95])=>Re['includes'](_0x1cdf95));_0x579ce4['cells']['push']({'element':_0x1bab1c,'attributes':_0x2bd4dd['length']?Object['fromEntries'](_0x2bd4dd):null}),_0x4f6690&&_0x579ce4['insertionRanges']['push'](_0x4f6690),_0x57e0ba&&_0x579ce4['deletionRanges']['push'](_0x57e0ba);},{'priority':'high'}),_0x30eab4['on']('insertColumns',(_0x1f7122,_0x204957)=>{const [_0x3a4a6d,_0x32035b={}]=_0x204957;if(!_0x579ce4)return;const _0x35b6eb=_0x32035b['at']||0x0,_0x143102=_0x32035b['columns']||0x1;_0x579ce4['columnInsertionIndexes']=new Array(_0x143102)['fill'](_0x35b6eb)['map']((_0x5e05ff,_0x31485f)=>_0x5e05ff+_0x31485f);for(const {cell:_0x4c061a}of _0x30eab4['createTableWalker'](_0x3a4a6d,{'startColumn':_0x35b6eb,'endColumn':_0x35b6eb+_0x143102-0x1}))_0x579ce4['columnInsertionRanges']['push'](_0xc9fb95['model']['createRangeOn'](_0x4c061a));},{'priority':'low'}),_0x30eab4['on']('insertRows',(_0x10ee0d,_0x687590)=>{const [_0x3398f6,_0x414169={}]=_0x687590;if(!_0x579ce4)return;const _0x318d8b=_0x414169['at']||0x0,_0x1ca3c2=_0x414169['rows']||0x1;_0x579ce4['rowInsertionIndexes']=new Array(_0x1ca3c2)['fill'](_0x318d8b)['map']((_0x4d1018,_0x13b3ef)=>_0x4d1018+_0x13b3ef);for(const {cell:_0xf89625}of _0x30eab4['createTableWalker'](_0x3398f6,{'startRow':_0x318d8b,'endRow':_0x318d8b+_0x1ca3c2-0x1}))_0x579ce4['rowInsertionRanges']['push'](_0xc9fb95['model']['createRangeOn'](_0xf89625));},{'priority':'low'}),_0x197c48['descriptionFactory']['registerDescriptionCallback'](_0xc67c21=>{if(_0xc67c21['subType']&&_0xc67c21['subType']['startsWith']('tablePaste'))return _0xc67c21['previous']?{}:{'type':'insertion','content':o(_0xc9fb95['locale'],'*Replace\x20table\x20cells*')};});const _0x19f061=()=>!0x1;for(const _0x2b66e4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion',_0x2b66e4,'join',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('deletion',_0x2b66e4,'join',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b66e4,'join',_0x19f061);_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x19f061),_0x197c48['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x9aeb9a,_0x4bb805,_0x496f6c)=>{const _0x396ff2=_0x9aeb9a['map'](_0x401d26=>_0x401d26['getContainedElement']())['filter'](_0x39dde2=>_0x39dde2),_0x1dd7e2=new Map(_0x396ff2['map'](_0x1efc7b=>[_0x1efc7b,null]));if(_0x579ce4){for(const {element:_0x3674b0,attributes:_0x5c4172}of _0x579ce4['cells'])_0x5c4172&&_0x1dd7e2['set'](_0x3674b0,_0x5c4172);}else{if(_0x496f6c&&_0x496f6c['markerAttributes'])for(const [_0x1b7df7,_0x2a6ae0]of Object['entries'](_0x496f6c['markerAttributes'])){const _0xe9f45b=_0xc9fb95['model']['markers']['get'](_0x1b7df7),_0x66688e=_0xe9f45b?_0xe9f45b['getRange']()['getContainedElement']():null;_0x66688e&&_0x1dd7e2['set'](_0x66688e,_0x2a6ae0);}}_0xc9fb95['model']['change'](_0x2fa7fe=>{for(const [_0x59a380,_0x21affc]of _0x1dd7e2)_0x2fa7fe['setAttributes']({...Ae,..._0x21affc},_0x59a380);});});const _0xf326fb=(_0x73d8ee,_0x21c3d9)=>{_0x197c48['_suggestionFactory']['registerCustomCallback'](_0x73d8ee,'tablePaste',_0x21c3d9,(_0x5b2c5d,_0x2c839e,_0x3b085c)=>{_0xc9fb95['model']['change'](_0x48f9af=>{const _0x196467=[];for(const _0x42a96f of _0x5b2c5d){const _0x2b4a59=_0x42a96f['start']['nodeAfter'];_0x2b4a59['is']('element','tableCellSuggestion')&&_0x196467['push'](_0x2b4a59);}_0x197c48['_suggestionFactory']['getSuggestionCallback'](_0x73d8ee,null,_0x21c3d9)(_0x5b2c5d,_0x2c839e,_0x3b085c);for(const _0x27fd65 of _0x196467)'$graveyard'!=_0x27fd65['root']['rootName']&&_0x48f9af['unwrap'](_0x27fd65);});});};_0xf326fb('insertion','accept'),_0xf326fb('insertion','discard'),_0xf326fb('deletion','accept'),_0xf326fb('deletion','discard'),_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4e6c54=>{const _0x3ae2ba=_0x4e6c54['map'](_0x5dd1f9=>_0x5dd1f9['getContainedElement']()),_0xb529df=_0x3ae2ba[0x0]['findAncestor']('table'),{minRow:_0x51eda6,maxRow:_0x4964f2}=_0x4ada52['_getCoordsForCells'](_0x3ae2ba);_0x30eab4['removeRows'](_0xb529df,{'at':_0x51eda6,'rows':_0x4964f2-_0x51eda6+0x1});}),_0x197c48['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2b9c79=>{const _0x4d352d=_0x2b9c79['map'](_0x3d53fb=>_0x3d53fb['getContainedElement']()),_0x29a904=_0x4d352d[0x0]['findAncestor']('table'),{minColumn:_0x220d39,maxColumn:_0x3e2803}=_0x4ada52['_getCoordsForCells'](_0x4d352d);_0x30eab4['removeColumns'](_0x29a904,{'at':_0x220d39,'columns':_0x3e2803-_0x220d39+0x1});});const _0x3c24a9=(_0x4fe473,_0x345d3c)=>{if(!_0x345d3c['subType']||!_0x345d3c['subType']['startsWith']('tablePaste'))return;const _0x18fa47=_0x345d3c['attributes']['tablePasteChainId'],_0x49af1b=_0x197c48['getSuggestions']()['filter'](_0x83208f=>_0x83208f['isInContent']&&_0x83208f['attributes']&&_0x83208f['attributes']['tablePasteChainId']==_0x18fa47);_0x49af1b['length']&&_0x345d3c['getAllAdjacentSuggestions']()['length']!=_0x49af1b['length']&&_0x49af1b['reduce']((_0x1b014a,_0x100987)=>(_0x1b014a['next']=_0x100987,_0x100987['previous']=_0x1b014a,_0x100987));};function _0x2dc976(_0x35a66d,_0x314493=!0x0){const {id:_0x284e04,authorId:_0xe885e5}=_0x197c48['_splitMarkerName'](_0x35a66d['markerName']),_0xc7a2a4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x41a758=_0x197c48['activeMarkers']['includes'](_0x35a66d['markerName']);return _0x41a758&&_0xc7a2a4['push']('ck-suggestion-marker--active'),{'classes':_0xc7a2a4,'attributes':{'data-suggestion':_0x284e04,'data-author-id':_0xe885e5},'priority':_0x41a758&&_0x314493?0xbc2:0xbb8};}_0x197c48['on']('suggestionLoaded',_0x3c24a9,{'priority':'high'}),_0x197c48['on']('suggestionUnloaded',_0x3c24a9,{'priority':'high'}),_0xc9fb95['model']['document']['registerPostFixer'](()=>{let _0x1b0c03=!0x1;const _0x3eff81=Array['from'](_0xc9fb95['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1216e1,data:_0x40c435}of _0x3eff81){const {group:_0x1dd61d,type:_0x3bb23a,id:_0x49be72}=_0x197c48['_splitMarkerName'](_0x1216e1);if('suggestion'!=_0x1dd61d||'deletion'!=_0x3bb23a||_0x40c435['oldRange'])continue;if(!_0x197c48['hasSuggestion'](_0x49be72))continue;const _0x55b448=_0x197c48['getSuggestion'](_0x49be72)['getRanges'](),_0xbae2c4=_0xc9fb95['plugins']['get']('Users')['me'];for(const _0x944027 of _0x197c48['getSuggestions']()){if(!_0x944027['isInContent']||_0x944027['author']!=_0xbae2c4)continue;if('formatBlock'!=_0x944027['type']||'tablePasteCell'!=_0x944027['subType'])continue;if(_0x944027['getRanges']()['every'](_0x38022f=>_0x55b448['some'](_0x107ec7=>_0x107ec7['containsRange'](_0x38022f,!0x0)))){for(const _0x5cb7cd of _0x944027['getAllAdjacentSuggestions']())_0x5cb7cd['isInContent']&&(_0x5cb7cd['discard'](),_0x1b0c03=!0x0);}}}return _0x1b0c03;}),_0xc9fb95['model']['document']['registerPostFixer'](_0x28c8ba=>{const _0xa7b6cb=_0xc9fb95['commands']['get']('redo');if(!_0xa7b6cb||!_0xa7b6cb['_createdBatches']['has'](_0x28c8ba['batch']))return!0x1;let _0xd12e45=!0x1;const _0x2faa8e=_0xc9fb95['plugins']['get']('Users')['me'],_0x15f33=_0xc9fb95['model']['document']['differ']['getChanges'](),_0x2b5e3e=Array['from'](_0xc9fb95['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x518deb,data:_0x10453e})=>{const {group:_0x46a083,subType:_0x507ce6,authorId:_0x2ae169}=_0x197c48['_splitMarkerName'](_0x518deb);return'suggestion'==_0x46a083&&'tablePaste'==_0x507ce6&&_0x2ae169==_0x2faa8e['id']&&!_0x10453e['oldRange'];});for(const _0x19c0ab of _0x15f33){if('insert'!=_0x19c0ab['type']||'tableCellSuggestion'!=_0x19c0ab['name']||0x1!=_0x19c0ab['length'])continue;const _0xcc8924=_0x28c8ba['createRange'](_0x19c0ab['position'],_0x19c0ab['position']['getShiftedBy'](0x1));if(!_0x2b5e3e['find'](({data:_0x5bc091})=>_0x5bc091['newRange']['isEqual'](_0xcc8924))){for(const {name:_0xdce2a5,data:_0x906924}of _0x2b5e3e)if(_0xcc8924['containsRange'](_0x906924['newRange'])){_0x28c8ba['updateMarker'](_0xdce2a5,{'range':_0xcc8924}),_0xd12e45=!0x0;break;}}}return _0xd12e45;}),_0xc9fb95['model']['document']['registerPostFixer'](_0x429d47=>{let _0x10198b=!0x1;const _0x16be79=_0xc9fb95['plugins']['get']('Users')['me'],_0x48c709=_0x197c48['getSuggestions']()['filter'](_0x2083da=>_0x2083da['isInContent']&&_0x2083da['author']==_0x16be79),_0x4b012d=new Set(),_0x5a3ea2=new Set();for(const _0x23eba5 of _0x48c709)if('tablePaste'==_0x23eba5['subType'])for(const _0x39dfd of _0x23eba5['getMarkers']()){const _0x45e2b5=_0x39dfd['getRange']()['getContainedElement']();if(_0x45e2b5){if(_0x45e2b5['is']('element','tableCellSuggestion')&&Be(_0x45e2b5)){_0x23eba5['removeMarker'](_0x39dfd['name']),_0x4b012d['add'](_0x45e2b5),_0x10198b=!0x0;const _0x5d8862=_0x45e2b5['nextSibling'],_0x2e140d=_0x45e2b5['previousSibling'],_0x568e8a=_0x5d8862&&_0x5d8862['is']('element','tableCellSuggestion'),_0x5eda02=_0x2e140d&&_0x2e140d['is']('element','tableCellSuggestion');_0x568e8a&&!_0x4b012d['has'](_0x5d8862)&&_0x5a3ea2['add'](_0x5d8862),_0x5eda02&&!_0x4b012d['has'](_0x2e140d)&&_0x5a3ea2['add'](_0x2e140d);}else _0x45e2b5['is']('element','paragraph')&&_0x45e2b5['isEmpty']&&(_0x23eba5['removeMarker'](_0x39dfd['name']),_0x10198b=!0x0);}}else{if('tablePasteCell'==_0x23eba5['subType']){if(!_0x23eba5['attributes']||!_0x23eba5['attributes']['tablePasteChainId'])continue;const _0x4a9682=_0x23eba5['attributes']['markerAttributes'];if(_0x4a9682&&Object['keys'](_0x4a9682)['length'])continue;const _0x1ec478=_0x23eba5['attributes']['tablePasteChainId'];let _0x29c809=!0x0,_0xc98f44=!0x0;for(const _0x47fcbe of _0x48c709)if(_0x47fcbe['subType']&&_0x47fcbe['subType']['startsWith']('tablePaste')){if(!_0x47fcbe['attributes']['tablePasteChainId']){_0xc98f44=!0x1;break;}if(_0x47fcbe['id']!=_0x23eba5['id']&&_0x47fcbe['attributes']['tablePasteChainId']==_0x1ec478){_0x29c809=!0x1;break;}}_0xc98f44&&_0x29c809&&(_0x23eba5['removeMarkers'](),_0x10198b=!0x0);}}for(const _0x598d57 of _0x4b012d)_0x429d47['remove'](_0x598d57);for(const _0x21d7d2 of _0x5a3ea2)_0x429d47['unwrap'](_0x21d7d2);return _0x10198b;}),_0xc9fb95['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4f4f02=>_0x2dc976(_0x4f4f02),'converterPriority':'high'}),_0xc9fb95['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d2136,_0x2a32af)=>_0x2a32af['options']['showSuggestionHighlights']?_0x2dc976(_0x2d2136,!0x1):null,'converterPriority':'high'});const _0x3cfe45=_0xc9fb95['editing']['view'];this['listenTo'](_0x3cfe45['document'],'clipboardOutput',(_0x32ca78,_0x454397)=>{const _0x36aaa8=[];for(const _0x12a5ec of _0x3cfe45['createRangeIn'](_0x454397['content'])['getItems']())_0x12a5ec['is']('element','suggestion-td')&&_0x36aaa8['push'](_0x12a5ec);_0x3cfe45['change'](_0x51a000=>{for(const _0x3c0806 of _0x36aaa8)_0x51a000['move'](_0x51a000['createRangeIn'](_0x3c0806),_0x51a000['createPositionBefore'](_0x3c0806)),_0x51a000['remove'](_0x3c0806);});});}}function Be(_0x3f6533){if(_0x3f6533['isEmpty'])return!0x0;const _0x2f5010=_0x3f6533['getChild'](0x0);return _0x2f5010['is']('element','paragraph')&&_0x2f5010['isEmpty'];}function Oe(_0x5a0cf5,_0x16bcaf={},_0x323aa6){for(const {isAnchor:_0x3ac744,cellHeight:_0x1755c4,cellWidth:_0x1fdd9d}of _0x323aa6['createTableWalker'](_0x5a0cf5,{'includeAllSlots':!0x0,..._0x16bcaf}))if(!_0x3ac744||0x1!=_0x1755c4||0x1!=_0x1fdd9d)return!0x1;return!0x0;}class Rt extends _0x22959f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54bc67=this['editor']['plugins']['get']('TrackChangesEditing');_0x54bc67['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54bc67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54bc67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54bc67['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54bc67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54bc67['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2e58e7,_0xa78399){const _0xfe99a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171154=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5595ab=_0xa78399['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ebcbf=_0x171154['getColumnGroupElement'](_0x5595ab);let _0x3545d7=_0x4ebcbf?_0x171154['getTableColumnsWidths'](_0x4ebcbf):null,_0x4f9c21=_0x5595ab['getAttribute']('tableWidth')||null;const _0x27a8f2=_0xa78399['tableWidth']||_0x4f9c21,_0x1bce29=_0xa78399['columnWidths']||_0x3545d7,_0x3914ce=this['editor']['plugins']['get']('Users')['me'];for(const _0x26d32b of _0xfe99a['getSuggestions']()){const _0x8a7b96=_0x26d32b['getContainedElement']();if('resizeTable'===_0x26d32b['subType']&&_0x8a7b96===_0x5595ab){_0x26d32b['author']!==_0x3914ce&&_0x26d32b['discard']();const _0x1fb917=_0x26d32b['data']['commandParams'];_0x4f9c21=_0x1fb917[0x0]['tableWidth'],_0x3545d7=_0x1fb917[0x0]['columnWidths'];break;}}_0x2e58e7({'table':_0x5595ab,'tableWidth':_0x27a8f2,'columnWidths':_0x1bce29}),_0xfe99a['markBlockFormat'](_0x5595ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4f9c21,'columnWidths':_0x3545d7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47429f){if('formatBlock'!=_0x47429f['type']&&'formatInline'!=_0x47429f['type'])return;const {data:_0x5b1dda}=_0x47429f;if(_0x5b1dda&&'resizeTable'===_0x5b1dda['formatGroupId']){const _0x194962='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x194962)};}}}class Tt extends _0x22959f{['afterInit'](){const _0x146e31=this['editor'];_0x146e31['plugins']['has']('Template')&&_0x146e31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x22959f{['afterInit'](){const _0x119773=this['editor'];if(!_0x119773['commands']['get']('insertTableOfContents'))return;_0x119773['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x518edc=_0x119773['plugins']['get']('TrackChangesEditing'),_0x474c63=_0x119773['locale'];_0x518edc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1caa90=>o(_0x474c63,'ELEMENT_TABLE_OF_CONTENTS',_0x1caa90));}}class Ut extends _0x22959f{['afterInit'](){const _0x491495=this['editor'];if(!_0x491495['plugins']['has']('Title'))return;const _0xad9f72=_0x491495['plugins']['get']('TrackChangesEditing');_0xad9f72['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x491495['locale'],'ELEMENT_TITLE')),_0x491495['model']['document']['registerPostFixer'](_0xb119f0=>{let _0x19a145=!0x1;const _0x5e01a2=Array['from'](_0x491495['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fb1e1,data:_0x4c4d5f}of _0x5e01a2){const {group:_0x52fc57}=_0xad9f72['_splitMarkerName'](_0x4fb1e1);if('suggestion'!==_0x52fc57||!_0x4c4d5f['newRange'])continue;const _0x2e0bab=_0x4c4d5f['newRange'],_0xc77b3=_0x2e0bab['end']['nodeBefore'];if(!_0xc77b3||!_0xc77b3['is']('element','title-content'))continue;if(!_0x2e0bab['start']['isTouching'](_0x2e0bab['end']))continue;const _0x2333bc=_0x491495['model']['schema']['getNearestSelectionRange'](_0x2e0bab['end'],'forward');if(_0x2333bc&&_0x2333bc['isCollapsed']){const _0x7ca3cc=_0xb119f0['createRange'](_0x2e0bab['start'],_0x2333bc['start']);_0x7ca3cc['isEqual'](_0x2e0bab)||(_0xb119f0['updateMarker'](_0x4fb1e1,{'range':_0x7ca3cc}),_0x19a145=!0x0);}_0x19a145||(_0xb119f0['removeMarker'](_0x4fb1e1),_0x19a145=!0x0);}return _0x19a145;});}}class Vt extends _0x22959f{['afterInit'](){const _0x4a6068=this['editor'],_0x4d3017=_0x4a6068['plugins']['get']('TrackChangesEditing');_0x4a6068['plugins']['has']('Uploadcare')&&(_0x4d3017['enableCommand']('uploadcare'),_0x4a6068['plugins']['has']('UploadcareImageEdit')&&(_0x4d3017['enableCommand']('uploadcareImageEdit'),_0x4d3017['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d3017['descriptionFactory']['registerDescriptionCallback'](_0x575149=>{if('attribute'!=_0x575149['type'])return;const {data:_0x43683d}=_0x575149;return _0x43683d&&'uploadcareImageId'==_0x43683d['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x22959f{['afterInit'](){const _0x3fc0aa=this['editor'],_0x1b7406=_0x3fc0aa['plugins']['get']('TrackChangesEditing');_0x3fc0aa['plugins']['has']('UndoEditing')&&(_0x1b7406['enableCommand']('undo'),_0x1b7406['enableCommand']('redo'));}}class Pt extends _0x22959f{static get['requires'](){return[Dt];}['afterInit'](){const _0x15bc51=this['editor'];if(!_0x15bc51['plugins']['has']('TableCaptionEditing'))return;_0x15bc51['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x22959f{['tableProperties'];['tableCellProperties'];constructor(_0x5b38c2){super(_0x5b38c2),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5b38c2['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x467f8f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x505433 of this['tableProperties'])_0x467f8f['enableCommand'](_0x505433,(_0x2465ea,_0x487706)=>{const _0x1bada8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x505433,[_0x1bada8],this['tableProperties'],'tableProperties',_0x2465ea,_0x487706);});_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x467f8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x22a378,_0x5ece8c)=>this['handleDiscardAction'](this['tableProperties'],_0x22a378,_0x5ece8c)),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x153a73 of this['tableCellProperties'])this['editor']['commands']['get'](_0x153a73)&&_0x467f8f['enableCommand'](_0x153a73,(_0x58d171,_0x41d1f2)=>{const _0x2a35e5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x153a73,_0x2a35e5,this['tableCellProperties'],'tableCellProperties',_0x58d171,_0x41d1f2);});_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x467f8f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c3531,_0x18c000)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c3531,_0x18c000)),_0x467f8f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x467f8f['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x467f8f['descriptionFactory']['registerDescriptionCallback'](_0x582e54=>this['handleSuggestionDescription'](_0x582e54)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x824c5d,_0x4eb75b,_0x44f23e,_0x52030e,_0x47d63e,_0x1bec51){const _0x3b9f2c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1bec51['batch'],()=>{for(const _0x18ad66 of _0x4eb75b){if(this['_getSuggestion'](_0x18ad66,_0x52030e))_0x47d63e(_0x1bec51);else{const _0xd7a51={};for(const _0x2731e0 of _0x44f23e){const _0x5c383a=_0x18ad66['getAttribute'](_0x2731e0);void 0x0!==_0x5c383a&&(_0xd7a51[_0x2731e0]=_0x5c383a);}_0x47d63e(_0x1bec51),_0x3b9f2c['markBlockFormat'](_0x18ad66,{'commandParams':[_0xd7a51]},[],_0x52030e);}}});}['handleDiscardAction'](_0x134fc9,_0x7bae8a,_0x515446){const _0x5e443f=_0x7bae8a[0x0]['start']['nodeAfter'],_0x1d97b6=_0x515446['commandParams'][0x0];this['editor']['model']['change'](_0x481887=>{for(const _0x218531 of _0x134fc9)void 0x0!==_0x1d97b6[_0x218531]?_0x481887['setAttribute'](_0x218531,_0x1d97b6[_0x218531],_0x5e443f):_0x481887['removeAttribute'](_0x218531,_0x5e443f);});}['handleSuggestionDescription'](_0x3b4113){if(_0x3b4113['data'])switch(_0x3b4113['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'](_0x21691f,_0x4bcc7e){const _0x14649c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3e5a21 of _0x14649c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5b0d8a=_0x3e5a21['getContainedElement']();if(_0x3e5a21['subType']===_0x4bcc7e&&_0x5b0d8a===_0x21691f)return _0x3e5a21;}return null;}['_registerTablePropertiesAttributes'](){const _0x510caa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x480bdc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x41e24f of _0x480bdc){const _0x53419f=_0x41e24f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x510caa['descriptionFactory']['registerAttributeLabel'](_0x41e24f,o(this['editor']['locale'],'FORMAT_'+_0x53419f));}}}class Lt extends _0x22959f{['afterInit'](){const _0x5eb4b5=this['editor'];if(!_0x5eb4b5['plugins']['has']('LineHeight'))return;const _0x565064=_0x5eb4b5['plugins']['get']('TrackChangesEditing'),_0x5c9e5d=_0x5eb4b5['locale'];_0x565064['enableDefaultAttributesIntegration']('lineHeight'),_0x565064['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5c9e5d,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x22959f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x2dc7a8,_0x32dac4,_0x4f71d4,_0x49d3c9,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17b9a3){super(_0x17b9a3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f8a7b,_0x51711a,_0x7fb984,_0x3c5f62)=>{this['_model']['change'](()=>{for(const _0x553778 of[..._0x3c5f62,..._0x7fb984])this['_model']['markers']['has'](_0x553778)&&_0x17b9a3['editing']['reconvertMarker'](_0x553778);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x17b9a3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x17b9a3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17b9a3['config']['get']('trackChanges.trackFormatChanges'),_0x17b9a3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17b9a3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x17b9a3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x22a6f9=this['editor'];_0x22a6f9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5d3ca6,{writer:_0x393adc})=>{let _0x3a38a9='suggestion:'+_0x5d3ca6['getAttribute']('suggestion-type')+':'+_0x5d3ca6['getAttribute']('id');return _0x5d3ca6['getAttribute']('marker-count')&&(_0x3a38a9+=':'+_0x5d3ca6['getAttribute']('marker-count')),_0x393adc['createElement']('$marker',{'data-name':_0x3a38a9});}}),_0x22a6f9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x22a6f9['model']['document']['registerPostFixer'](_0xe79ac7=>{let _0x1c80c5=!0x1;const _0x370537=Array['from'](_0x22a6f9['model']['document']['differ']['getChangedMarkers']()),_0xd47151=new Set();for(const {name:_0x310819,data:_0x24eb80}of _0x370537){const {group:_0x24f218,type:_0xf38d3c,subType:_0x12627d,id:_0x35392f}=this['_splitMarkerName'](_0x310819);if('suggestion'!==_0x24f218)continue;const _0xaff20f=_0x12627d?'suggestion:'+_0xf38d3c+':'+_0x12627d+':'+_0x35392f:'suggestion:'+_0xf38d3c+':'+_0x35392f,_0x144183=_0x22a6f9['model']['markers']['getMarkersGroup'](_0xaff20f),_0x3b4180=_0x22a6f9['model']['markers']['get'](_0x310819),_0x4a82ba=this['_suggestions']['get'](_0x35392f);if(null!=_0x24eb80['newRange']){'formatInline'==_0xf38d3c&&(_0x1c80c5=_0x1c80c5||Kt(_0x24eb80['newRange'],_0x310819,_0xe79ac7,_0x22a6f9['model']['schema']));const _0x382d55='attribute'==_0xf38d3c&&this['_isBlockAttribute'](_0x12627d['split']('|')[0x0]),_0x1841ba='attribute'==_0xf38d3c&&this['_isInlineAttribute'](_0x12627d['split']('|')[0x0]);if(_0x24eb80['newRange']['isCollapsed']||'$graveyard'==_0x24eb80['newRange']['root']['rootName']||'formatBlock'==_0xf38d3c&&!Ht(_0x24eb80['newRange'])||_0x382d55&&!Ht(_0x24eb80['newRange'])||_0x1841ba&&Qt(_0x24eb80['newRange'])||'deletion'==_0xf38d3c&&Qt(_0x24eb80['newRange'])||_0x3b4180&&Xt(_0x3b4180,_0x144183))_0xe79ac7['removeMarker'](_0x310819),_0x1c80c5=!0x0;else{if(!_0x4a82ba||!_0x4a82ba['isInContent'])continue;if(_0x24eb80['newRange']&&_0x24eb80['oldRange']&&_0x24eb80['newRange']['isEqual'](_0x24eb80['oldRange']))continue;_0xd47151['add'](_0x4a82ba);}}}return _0xd47151['size']>0x0&&(_0x1c80c5=!!this['_joinWithAdjacentSuggestions'](_0xd47151)||_0x1c80c5),_0x1c80c5;}),_0x22a6f9['model']['document']['registerPostFixer'](_0x1fd86d=>{let _0x521694=!0x1;for(const _0x1d8fbf of _0x22a6f9['model']['document']['differ']['getChanges']())if('insert'==_0x1d8fbf['type'])for(const _0x12c3cb of this['_suggestions']['values']()){if(_0x12c3cb['isMultiRange']||!_0x12c3cb['isInContent'])continue;const _0x46d74e='formatBlock'==_0x12c3cb['type'],_0x3d84d2=this['_getAttributeKey'](_0x12c3cb),_0x26c918=_0x3d84d2&&this['_isBlockAttribute'](_0x3d84d2);if(!_0x46d74e&&!_0x26c918)continue;const _0x1da18e=_0x12c3cb['getFirstRange']();if(_0x1da18e['start']['parent']!=_0x1da18e['end']['parent']&&!_0x1da18e['end']['isAtEnd']){const _0xa67e70=_0x22a6f9['model']['createPositionAt'](_0x1da18e['start']['nodeAfter'],'end'),_0x238e25=_0x22a6f9['model']['createRange'](_0x1da18e['start'],_0xa67e70);_0x1fd86d['updateMarker'](_0x12c3cb['getFirstMarker'](),{'range':_0x238e25}),_0x521694=!0x0;}}return _0x521694;}),_0x22a6f9['model']['document']['registerPostFixer'](_0x3ea18e=>this['_processAttributeChanges'](_0x3ea18e)),_0x22a6f9['model']['document']['registerPostFixer'](_0x349ca3=>!_0x349ca3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x349ca3)),_0x22a6f9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x22a6f9['model']['document']['on']('change:data',(_0x3db3f4,_0x33e8ad)=>{if(!_0x33e8ad['isLocal']||_0x33e8ad['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29bbcc=_0x22a6f9['model']['document']['differ']['getChanges']();if(0x0==_0x29bbcc['length'])return;const _0x4f188f=[],_0x2f47bb=_0x29bbcc['filter'](_0x511c69=>'attribute'==_0x511c69['type']),_0x52a43d=_0x29bbcc['filter'](_0x47aeef=>'insert'==_0x47aeef['type']&&'$text'!=_0x47aeef['name']);for(const _0x15d70b of _0x2f47bb)this['_isRegisteredAttribute'](_0x15d70b['attributeKey'])&&_0x4f188f['push']({'key':_0x15d70b['attributeKey'],'newValue':_0x15d70b['attributeNewValue'],'oldValue':_0x15d70b['attributeOldValue'],'range':Yt(_0x15d70b['range'],_0x22a6f9['model'])});for(const _0x44298c of _0x52a43d){if('rename'!=_0x44298c['action']&&'refresh'!=_0x44298c['action'])continue;const _0x5dbe43=Zt(_0x44298c['position']['nodeAfter'],_0x22a6f9['model']),_0x265772=_0x44298c['before'];'rename'==_0x44298c['action']&&_0x4f188f['push']({'key':m,'newValue':_0x44298c['name'],'oldValue':_0x265772['name'],'range':_0x5dbe43});for(const [_0x284313,_0x5a64fb]of _0x265772['attributes']){if(!this['_isRegisteredAttribute'](_0x284313))continue;const _0x10c3e5=_0x44298c['attributes']['get'](_0x284313);_0x5a64fb!==_0x10c3e5&&_0x4f188f['push']({'key':_0x284313,'newValue':_0x10c3e5,'oldValue':_0x5a64fb,'range':_0x5dbe43});}for(const [_0x1fba8c,_0x361fd9]of _0x44298c['attributes'])this['_isRegisteredAttribute'](_0x1fba8c)&&(_0x265772['attributes']['has'](_0x1fba8c)||_0x4f188f['push']({'key':_0x1fba8c,'newValue':_0x361fd9,'oldValue':null,'range':_0x5dbe43}));}0x0!=_0x4f188f['length']&&_0x22a6f9['model']['enqueueChange'](_0x33e8ad,_0x1e05cc=>{const _0x5e89e4=_0x34c54d();for(const {range:_0x12ae0e,key:_0xba3c5e,oldValue:_0x400dcf,newValue:_0x1d34f3}of _0x4f188f)this['markAttributeChange'](_0x12ae0e,_0xba3c5e,_0x400dcf,_0x1d34f3,{'groupId':_0x5e89e4});this['_reduceExistingSuggestions'](_0x1e05cc,_0x4f188f);});},{'priority':'lowest'}),_0x22a6f9['model']['markers']['on']('update:suggestion',(_0x4b9373,_0x20e1f3,_0x322953)=>{if(null==_0x322953){const {id:_0x205936}=this['_splitMarkerName'](_0x20e1f3['name']),_0x41a615=this['_suggestions']['get'](_0x205936);_0x41a615&&_0x41a615['addMarkerName'](_0x20e1f3['name']);}}),_0x22a6f9['model']['document']['on']('change:data',()=>{const _0x12725b=Array['from'](_0x22a6f9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x40f869=>'suggestion'===this['_splitMarkerName'](_0x40f869['name'])['group']);if(0x0===_0x12725b['length'])return;_0x12725b['sort']((_0x1729e8,_0x4e521a)=>{const _0x5866ba=_0x1729e8['data']['oldRange'],_0x34ae86=_0x4e521a['data']['oldRange'];return null===_0x5866ba&&null===_0x34ae86?0x0:null===_0x5866ba&&null!==_0x34ae86?-0x1:null!==_0x5866ba&&null===_0x34ae86?0x1:_0x5866ba['start']['isBefore'](_0x34ae86['start'])?-0x1:0x1;});const _0x75fa8a=new Set(),_0x2dc5b0=new Set();for(const {name:_0x9eef54,data:_0x534274}of _0x12725b){const {id:_0x437cf5}=this['_splitMarkerName'](_0x9eef54);if(null===_0x534274['oldRange']){const _0x1bdd02=this['_handleNewSuggestionMarker'](_0x9eef54);_0x2dc5b0['add'](_0x1bdd02);}else{const _0x3cfe4e=this['_suggestions']['get'](_0x437cf5);null!==_0x534274['newRange']||_0x3cfe4e['isInContent']?(_0x75fa8a['add'](_0x3cfe4e['head']),_0x2dc5b0['add'](_0x3cfe4e)):this['_removeSuggestion'](_0x3cfe4e);}}_0x2dc5b0['size']>0x0&&this['_refreshSuggestionsChain'](_0x2dc5b0);for(const _0x28f294 of _0x75fa8a)this['fire']('suggestionChanged',_0x28f294);}),_0x22a6f9['model']['on']('applyOperation',(_0x2001ac,_0x4ac7d2)=>{const _0x36153f=_0x4ac7d2[0x0];if(!this['_suggestions']['size'])return;if(!_0x36153f['isDocumentOperation'])return;if(_0x36153f['batch']['isUndo']||!_0x36153f['batch']['isLocal'])return;let _0x5f525d,_0x27d273;switch(_0x36153f['type']){case'insert':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['position']),_0x27d273=_0x5f525d['getShiftedBy'](_0x36153f['howMany']);break;case'split':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['splitPosition']),_0x27d273=_0x22a6f9['model']['createPositionAt'](_0x36153f['moveTargetPosition']);break;case'move':_0x5f525d=_0x22a6f9['model']['createPositionAt'](_0x36153f['targetPosition']),_0x27d273=_0x5f525d['getShiftedBy'](_0x36153f['howMany']);break;default:return;}const _0x4fd04c=_0x22a6f9['model']['createRange'](_0x5f525d,_0x27d273);_0x22a6f9['model']['change'](()=>{for(const {suggestion:_0x4b8afc,meta:_0x25cb08}of this['_findSuggestions'](_0x4fd04c)){if(_0x4b8afc['isMultiRange'])continue;if('formatInline'==_0x4b8afc['type'])continue;const _0x28b1ac=this['_getAttributeKey'](_0x4b8afc);if(_0x28b1ac&&this['_isBlockAttribute'](_0x28b1ac)&&'split'!=_0x36153f['type'])continue;const _0x375ccb=_0x4b8afc['data']&&_0x4b8afc['data']['multipleBlocks'];('formatBlock'!=_0x4b8afc['type']||'split'==_0x36153f['type']&&!_0x375ccb)&&(_0x25cb08['containsRangeInObject']||'insertion'==_0x4b8afc['type']&&_0x25cb08['isOwn']||_0x4b8afc['getFirstRange']()['containsRange'](_0x4fd04c)&&this['_breakSuggestionMarker'](_0x4b8afc,_0x5f525d,_0x27d273));}});},{'priority':'lowest'}),_0x22a6f9['model']['on']('deleteContent',(_0x18e50c,_0x1ce8eb)=>{const _0x4c24b1=_0x1ce8eb[0x0],_0x2598a3=_0x1ce8eb[0x1];if(_0x2598a3&&_0x2598a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4c24b1['isCollapsed'])return;const _0x3ddffa=_0x22a6f9['model']['schema'],{start:_0x3f56c6,end:_0x5ec665}=_0x4c24b1['getFirstRange'](),_0x4ebfa1=_0x3f56c6['nodeAfter']&&_0x3ddffa['isLimit'](_0x3f56c6['nodeAfter'])?null:_0x3ddffa['getNearestSelectionRange'](_0x3f56c6,'forward'),_0x4d8808=_0x5ec665['nodeBefore']&&_0x3ddffa['isLimit'](_0x5ec665['nodeBefore'])?null:_0x3ddffa['getNearestSelectionRange'](_0x5ec665,'backward'),_0x523f13=_0x22a6f9['model']['createRange'](_0x4ebfa1?_0x4ebfa1['start']:_0x3f56c6,_0x4d8808?_0x4d8808['end']:_0x5ec665);_0x22a6f9['model']['change'](_0x46681f=>{this['markDeletion'](_0x523f13);const _0x235f5b=_0x22a6f9['model']['schema']['getNearestSelectionRange'](_0x523f13['start']);_0x4c24b1['is']('documentSelection')?_0x46681f['setSelection'](_0x235f5b):_0x4c24b1['setTo'](_0x235f5b);}),_0x18e50c['stop']();},{'priority':_0x35b182['normal']+0xa}),_0x22a6f9['model']['on']('insertContent',(_0x6d3f2e,_0xa72af3)=>{const _0x13141f=_0xa72af3[_0xa72af3['length']-0x1];_0x13141f&&_0x13141f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x22a6f9['model']['change'](()=>{let _0x372560=_0x22a6f9['model']['insertContent'](_0xa72af3[0x0],_0xa72af3[0x1],_0xa72af3[0x2],{'forceDefaultExecution':!0x0});if(!_0x372560)return;_0x6d3f2e['return']=_0x372560['clone']();const _0x277885=_0x372560['end']['nodeBefore'],_0x239574=_0x22a6f9['model']['schema'];_0x277885&&_0x239574['isBlock'](_0x277885)&&!_0x239574['isObject'](_0x277885)&&(_0x372560=_0x22a6f9['model']['createRange'](_0x372560['start'],_0x22a6f9['model']['createPositionAt'](_0x277885,'end'))),this['markInsertion'](_0x372560);}),_0x6d3f2e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x189f82=new O(_0x22a6f9,this['_suggestions']);_0x22a6f9['commands']['add']('acceptSuggestion',_0x189f82),this['enableCommand']('acceptSuggestion');const _0x1d72ec=new x(_0x22a6f9,this['_suggestions']);_0x22a6f9['commands']['add']('discardSuggestion',_0x1d72ec),this['enableCommand']('discardSuggestion'),_0x22a6f9['commands']['add']('acceptAllSuggestions',new M(_0x22a6f9,_0x189f82,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x22a6f9['commands']['add']('discardAllSuggestions',new M(_0x22a6f9,_0x1d72ec,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x22a6f9['commands']['add']('acceptSelectedSuggestions',new R(_0x22a6f9,_0x189f82,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x22a6f9['commands']['add']('discardSelectedSuggestions',new R(_0x22a6f9,_0x1d72ec,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x94a326=_0x22a6f9['plugins']['get']('CommentsRepository');this['listenTo'](_0x94a326,'addComment',(_0x831fa0,{threadId:_0x364416})=>{const _0x2aa118=this['_suggestions']['get'](_0x364416);_0x2aa118&&_0x2aa118['commentThread']&&0x1===_0x2aa118['commentThread']['length']&&this['_updateSuggestionData'](_0x364416,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x94a326,'removeComment',(_0x5369d0,{threadId:_0xc8c46})=>{const _0x499ceb=this['_suggestions']['get'](_0xc8c46);_0x499ceb&&_0x499ceb['commentThread']&&!_0x499ceb['commentThread']['length']&&this['_updateSuggestionData'](_0xc8c46,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4b4db1){const _0x3ccae8=_0x161a47([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1f7d50=0x3d8d0df,_0x446c14=0x3df452f^_0x1f7d50,_0x8b53de=window[_0x161a47([0x44,0x61,0x74,0x65])][_0x161a47([0x6e,0x6f,0x77])](),_0x2552ec=_0x4b4db1[_0x161a47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51dc4c=new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9be8=>{_0x2552ec[_0x161a47([0x6f,0x6e,0x63,0x65])](_0x161a47([0x72,0x65,0x61,0x64,0x79]),_0x2e9be8);}),_0x1dba54={[_0x161a47([0x6b,0x74,0x79])]:_0x161a47([0x45,0x43]),[_0x161a47([0x75,0x73,0x65])]:_0x161a47([0x73,0x69,0x67]),[_0x161a47([0x63,0x72,0x76])]:_0x161a47([0x50,0x2d,0x32,0x35,0x36]),[_0x161a47([0x78])]:_0x161a47([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]),[_0x161a47([0x79])]:_0x161a47([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]),[_0x161a47([0x61,0x6c,0x67])]:_0x161a47([0x45,0x53,0x32,0x35,0x36])},_0x5f0661=_0x2552ec[_0x161a47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x161a47([0x67,0x65,0x74])](_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1778bd(){let _0x5de43a,_0x2a3498=null,_0x2231f1=null;try{if(_0x5f0661==_0x161a47([0x47,0x50,0x4c]))return _0x161a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5de43a=_0x212593(),!_0x5de43a)return _0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5de43a[_0x161a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2231f1=_0x394eb6(_0x5de43a[_0x161a47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5de43a[_0x161a47([0x6a,0x74,0x69])])),await _0x4aa1eb()?_0x563cb4()?_0xecd754()?_0x161a47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3a27f8()?(_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x161a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a3498=_0x411b1e(_0x161a47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13d418()):_0x161a47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x161a47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x161a47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xecd754(){const _0x45e4ba=[_0x161a47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x161a47([0x74,0x72,0x69,0x61,0x6c])][_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x8b53de/0x3e8:0xe10*_0x446c14;return _0x5de43a[_0x161a47([0x65,0x78,0x70])]<_0x45e4ba;}function _0x563cb4(){const _0x2931d6=_0x5de43a[_0x161a47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2931d6)return!0x1;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x2a])))return!0x0;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x54,0x43])))return!0x0;if(_0x2931d6[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x52,0x54,0x43]))){if(_0xa41afe())return!0x0;if(_0x4f3ac1()||_0x168515())return!0x0;}return!0x1;}function _0x3a27f8(){const _0x3ff39e=_0x5de43a[_0x161a47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ff39e||0x0==_0x3ff39e[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x134518}=new URL(window[_0x161a47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ff39e[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134518))return!0x0;const _0xe8b30b=_0x134518[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e]));return _0x3ff39e[_0x161a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1809fb=>_0x1809fb[_0x161a47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x161a47([0x2a])))[_0x161a47([0x6d,0x61,0x70])](_0x3a64ac=>_0x3a64ac[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e])))[_0x161a47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa8decf=>_0xa8decf[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe8b30b[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x161a47([0x6d,0x61,0x70])](_0x3c3faf=>Array(_0xe8b30b[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c3faf[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x161a47([0x66,0x69,0x6c,0x6c])](_0x3c3faf[0x0]===_0x161a47([0x2a])?_0x161a47([0x2a]):'')[_0x161a47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c3faf))[_0x161a47([0x73,0x6f,0x6d,0x65])](_0xf648c9=>_0xe8b30b[_0x161a47([0x65,0x76,0x65,0x72,0x79])]((_0x716ade,_0x895ca9)=>_0xf648c9[_0x895ca9]===_0x716ade||_0xf648c9[_0x895ca9]===_0x161a47([0x2a])));}function _0x13d418(){return _0x2a3498&&_0x2231f1?new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1bf4,_0x2bffa0)=>{_0x2a3498[_0x161a47([0x74,0x68,0x65,0x6e])](_0x4b1bf4,_0x2bffa0),_0x2231f1[_0x161a47([0x74,0x68,0x65,0x6e])](_0x4ee23f=>{_0x4ee23f!=_0x161a47([0x56,0x61,0x6c,0x69,0x64])&&_0x4b1bf4(_0x4ee23f);},_0x2bffa0);}):_0x2a3498||_0x2231f1||_0x161a47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x394eb6(_0x1682a6,_0x17d3e7){return new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b9474=>{if(_0x4a5684())return _0x5b9474(_0x161a47([0x56,0x61,0x6c,0x69,0x64]));_0x22d8be(),_0x2552ec[_0x161a47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31773b=!0x1;const _0x31bc43=_0x34c54d();function _0x5ca0fe(_0x4f770a){return!!_0x4f770a&&(typeof _0x4f770a===_0x161a47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f770a===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f770a[_0x161a47([0x74,0x68,0x65,0x6e])]===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f770a[_0x161a47([0x63,0x61,0x74,0x63,0x68])]===_0x161a47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x81a1b2(_0x2dc72d){_0x7b3dc8(_0x2dc72d)[_0x161a47([0x74,0x68,0x65,0x6e])](_0x55a437=>{if(!_0x55a437||_0x55a437[_0x161a47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x161a47([0x6f,0x6b]))return _0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ab878(_0x162bf5(_0x31bc43+_0x17d3e7))!=_0x55a437[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x161a47([0x56,0x61,0x6c,0x69,0x64]);})[_0x161a47([0x74,0x68,0x65,0x6e])](_0x41bbf7=>(_0x3f1bed(),_0x41bbf7),()=>{const _0x8ba53f=_0x92d619();return null==_0x8ba53f?(_0x3f1bed(),_0x161a47([0x56,0x61,0x6c,0x69,0x64])):_0x161a47(_0x8b53de-_0x8ba53f>(0x27d454df^_0x1f7d50)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x161a47([0x74,0x68,0x65,0x6e])](_0x5b9474)[_0x161a47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x292dfb=0x3ee3e5f^_0x1f7d50;function _0x3f1bed(){const _0x1480fc=_0x161a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ab878(_0x162bf5(_0x1682a6)),_0x1d5901=_0x9081a6(_0x3ab878(window[_0x161a47([0x4d,0x61,0x74,0x68])][_0x161a47([0x63,0x65,0x69,0x6c])](_0x8b53de/_0x292dfb)));window[_0x161a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x161a47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1480fc,_0x1d5901);}function _0x92d619(){const _0x409bb9=_0x161a47([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ab878(_0x162bf5(_0x1682a6)),_0x1e760d=window[_0x161a47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x161a47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x409bb9);return _0x1e760d?window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9081a6(_0x1e760d),0x10)*_0x292dfb:null;}function _0x7b3dc8(_0x32b4f3){return new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ee1e3,_0xc68a49)=>{_0x32b4f3[_0x161a47([0x74,0x68,0x65,0x6e])](_0x3ee1e3,_0xc68a49),window[_0x161a47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc68a49,0x3d9041f^_0x1f7d50);});}}_0x2552ec[_0x161a47([0x6f,0x6e])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2880e7,_0x2c904a)=>{if(_0x2c904a[0x0]!=_0x1682a6)return _0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c904a[0x1]={..._0x2c904a[0x1],[_0x161a47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31bc43};},{[_0x161a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x161a47([0x68,0x69,0x67,0x68])}),_0x2552ec[_0x161a47([0x6f,0x6e])](_0x161a47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x224d30=>{_0x5ca0fe(_0x224d30[_0x161a47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31773b=!0x0,_0x81a1b2(_0x224d30[_0x161a47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x161a47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x161a47([0x6c,0x6f,0x77])}),_0x51dc4c[_0x161a47([0x74,0x68,0x65,0x6e])](()=>{_0x31773b||_0x5b9474(_0x161a47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a5684(){return _0x2552ec[_0x161a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x161a47([0x76,0x69,0x65,0x77])][_0x161a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x161a47([0x61,0x75,0x74,0x6f]);}function _0x22d8be(){_0x2552ec[_0x161a47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x161a47([0x76,0x69,0x65,0x77])][_0x161a47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x161a47([0x61,0x75,0x74,0x6f]);}}function _0x411b1e(_0x5dda1a){const _0x215412=[new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e3c6=>setTimeout(_0x34e3c6,0x3d1ee13^_0x1f7d50)),_0x51dc4c[_0x161a47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c03b=>{let _0xfe19e2=0x0;_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x6f,0x6e])](_0x161a47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e3922,_0x160e89)=>{_0x160e89[0x0][_0x161a47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xfe19e2++,_0xfe19e2==(0x3d8d537^_0x1f7d50)&&(_0x31c03b(),_0x1e3922[_0x161a47([0x6f,0x66,0x66])]());});}))];return window[_0x161a47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x161a47([0x72,0x61,0x63,0x65])](_0x215412)[_0x161a47([0x74,0x68,0x65,0x6e])](()=>_0x5dda1a);}async function _0x2389fe(){await _0x51dc4c,_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba042,_0x2552ec[_0x161a47([0x6d,0x6f,0x64,0x65,0x6c])][_0x161a47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ba042,_0x2552ec[_0x161a47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x161a47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa41afe(){return _0x434a30(_0x161a47([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42836f(_0x161a47([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x161a47([0x73,0x74,0x61,0x74,0x65])]==_0x161a47([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f3ac1(){return _0x434a30(_0x161a47([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 _0x168515(){return _0x434a30(_0x161a47([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x332ed5(_0x189c9e){const _0x1bf613=_0x39115e();_0x2552ec[_0x1bf613]=_0x161a47([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x189c9e,_0x189c9e!=_0x161a47([0x56,0x61,0x6c,0x69,0x64])&&_0x2389fe();}function _0x39115e(){const _0x3a05ea=window[_0x161a47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x161a47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x161a47([0x6e,0x6f,0x77])]())[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x161a47([0x2e]),'');let _0x408c0d=_0x161a47([0x52]);for(let _0x5ce34a=0x0;_0x5ce34a<_0x3a05ea[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ce34a+=0x2){let _0x4ebbef=window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a05ea[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ce34a,_0x5ce34a+0x2));_0x4ebbef>=_0x3ccae8[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ebbef-=_0x3ccae8[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x408c0d+=_0x3ccae8[_0x4ebbef];}return _0x408c0d;}function _0x212593(){const _0x3516b6=_0x5f0661[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e]));if(0x3!=_0x3516b6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xbb38d7(_0x3516b6[0x1]);function _0xbb38d7(_0x206887){const _0x4e598e=_0x384609(_0x206887);return _0x4e598e&&_0x5d7b04()?_0x4e598e:null;function _0x5d7b04(){const _0x328ba6=_0x4e598e[_0x161a47([0x6a,0x74,0x69])],_0x39f551=window[_0x161a47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x328ba6[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x328ba6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ab4da={..._0x4e598e,[_0x161a47([0x6a,0x74,0x69])]:_0x328ba6[_0x161a47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x328ba6[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ab4da[_0x161a47([0x76,0x63])],_0x162bf5(_0x4ab4da)==_0x39f551;}}}async function _0x4aa1eb(){let _0x56eeff=!0x0;try{const _0x49c649=_0x5f0661[_0x161a47([0x73,0x70,0x6c,0x69,0x74])](_0x161a47([0x2e])),[_0x34b9ce,_0x3404c2,_0x40d7a6]=_0x49c649;return _0x1be844(_0x34b9ce),await _0x24fa63(_0x34b9ce,_0x3404c2,_0x40d7a6),_0x56eeff;}catch{return!0x1;}function _0x1be844(_0x271d3a){const _0x42aec1=_0x384609(_0x271d3a);_0x42aec1&&_0x42aec1[_0x161a47([0x61,0x6c,0x67])]==_0x161a47([0x45,0x53,0x32,0x35,0x36])||(_0x56eeff=!0x1);}async function _0x24fa63(_0x26e1ca,_0x4869a3,_0x5c6746){const _0x36f68e=window[_0x161a47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x161a47([0x66,0x72,0x6f,0x6d])](_0x60d769(_0x5c6746),_0x2c4cce=>_0x2c4cce[_0x161a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d2cc2=new window[(_0x161a47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x161a47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26e1ca+_0x161a47([0x2e])+_0x4869a3),_0x5b33e3=window[_0x161a47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x161a47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b33e3)return;const _0x5bea69=await _0x5b33e3[_0x161a47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x161a47([0x6a,0x77,0x6b]),_0x1dba54,{[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x45,0x43,0x44,0x53,0x41]),[_0x161a47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x161a47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b33e3[_0x161a47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x45,0x43,0x44,0x53,0x41]),[_0x161a47([0x68,0x61,0x73,0x68])]:{[_0x161a47([0x6e,0x61,0x6d,0x65])]:_0x161a47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bea69,_0x36f68e,_0x4d2cc2)||(_0x56eeff=!0x1);}}function _0x384609(_0x1caf71){return _0x1caf71[_0x161a47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x161a47([0x65,0x79]))?JSON[_0x161a47([0x70,0x61,0x72,0x73,0x65])](_0x60d769(_0x1caf71)):null;}function _0x60d769(_0x55e13d){return window[_0x161a47([0x61,0x74,0x6f,0x62])](_0x55e13d[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x161a47([0x2b]))[_0x161a47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x161a47([0x2f])));}function _0x162bf5(_0x57455f){let _0x3a3c07=0x1505;function _0x3428ab(_0x28e403){for(let _0xbe3f5a=0x0;_0xbe3f5a<_0x28e403[_0x161a47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbe3f5a++){const _0x225024=_0x28e403[_0x161a47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbe3f5a);_0x3a3c07=(_0x3a3c07<<0x5)+_0x3a3c07+_0x225024,_0x3a3c07&=_0x3a3c07;}}function _0x105106(_0x33b70a){Array[_0x161a47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33b70a)?_0x33b70a[_0x161a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x105106):_0x33b70a&&typeof _0x33b70a==_0x161a47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x161a47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33b70a)[_0x161a47([0x73,0x6f,0x72,0x74])]()[_0x161a47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16b125,_0x5475f4])=>{_0x3428ab(_0x16b125),_0x105106(_0x5475f4);}):_0x3428ab(window[_0x161a47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33b70a));}return _0x105106(_0x57455f),_0x3a3c07>>>0x0;}function _0x3ab878(_0x47959d){return _0x47959d[_0x161a47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x161a47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x161a47([0x30]));}function _0x9081a6(_0x1c700c){return _0x1c700c[_0x161a47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x161a47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x161a47([0x6a,0x6f,0x69,0x6e])]('');}function _0x434a30(_0x382d75){return _0x2552ec[_0x161a47([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x161a47([0x68,0x61,0x73])](_0x382d75);}function _0x42836f(_0x487291){return _0x2552ec[_0x161a47([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x161a47([0x67,0x65,0x74])](_0x487291);}function _0x1ba042(){}function _0x161a47(_0x120d3d){return _0x120d3d['map'](_0x2544a3=>String['fromCharCode'](_0x2544a3))['join']('');}_0x332ed5(await _0x1778bd());}(this);}set['adapter'](_0x18fee1){if(this['_adapter'])throw new _0x5ab934('track-changes-adapter-already-set',this);this['_adapter']=_0x18fee1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x330e5e=!0x1,toJSON:_0x25ddc7=!0x1}={}){const _0x39bb16=[];for(const _0x79f731 of this['_suggestions']['values']())_0x330e5e&&!_0x79f731['isInContent']||_0x39bb16['push'](_0x79f731);return _0x25ddc7?_0x39bb16['map'](_0x56be49=>_0x56be49['toJSON']()):_0x39bb16;}['getSuggestion'](_0x2ed54f){const _0x4e95f2=this['_suggestions']['get'](_0x2ed54f);if(!_0x4e95f2)throw new _0x5ab934('track-changes-suggestion-not-found',this);return _0x4e95f2;}['hasSuggestion'](_0x2e839e){return this['_suggestions']['has'](_0x2e839e);}['addSuggestionData'](_0x5c71aa){const {authorId:_0x476f96,id:_0x296b73,originalSuggestionId:_0x13e9f9,attributes:_0x47ee5e}=_0x5c71aa,[_0x11f125,_0x5edd39]=_0x5c71aa['type']['split'](':'),_0xfcc6e9=this['_suggestions']['get'](_0x296b73)||this['_createSuggestion'](_0x11f125,_0x5edd39,_0x296b73,_0x476f96,_0x47ee5e,_0x13e9f9);if(this['_addThreadToSuggestion'](_0xfcc6e9),this['_checkSuggestionCorrectness'](_0xfcc6e9,_0x11f125,_0x5edd39||null,_0x476f96),_0xfcc6e9['createdAt']=_0x5c71aa['createdAt'],_0xfcc6e9['_isDataLoaded']=!0x0,_0x47ee5e&&_0x47ee5e['@external']){const _0x174b15=_0x47ee5e['@external'],_0x72684f=this['_getExternalAuthor'](_0x174b15['authorName']);_0xfcc6e9['authoredAt']=_0x174b15['createdAt'],_0xfcc6e9['author']=_0x72684f,_0xfcc6e9['isExternal']=!0x0;}else _0xfcc6e9['authoredAt']=_0x5c71aa['createdAt'];switch(_0x5c71aa['data']&&(_0xfcc6e9['data']=_0x5c71aa['data']),_0x5c71aa['attributes']&&(_0xfcc6e9['attributes']=_0x5c71aa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xfcc6e9['_saved']=!0x0),this['_suggestionState']['get'](_0xfcc6e9)){case'notReady':this['_suggestionState']['set'](_0xfcc6e9,'dataReady');break;case'markerReady':_0xfcc6e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xfcc6e9])),this['_refreshSuggestionsChain'](new Set([_0xfcc6e9])),this['_suggestionState']['set'](_0xfcc6e9,'ready'),this['fire']('suggestionLoaded',_0xfcc6e9)):this['_suggestionState']['set'](_0xfcc6e9,'removed');}return _0xfcc6e9;}['acceptSuggestion'](_0xff5600){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65ae25 of _0xff5600['getAllAdjacentSuggestions']())_0x65ae25['accept']();});});}['discardSuggestion'](_0x559b97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x107fba of _0x559b97['getAllAdjacentSuggestions']())_0x107fba['discard']();});});}['enableCommand'](_0x128cd4,_0x2508d0){const _0x4efe6d=this['editor']['commands']['get'](_0x128cd4);if(!_0x4efe6d)throw new _0x5ab934('track-changes-command-not-found',this,{'commandName':_0x128cd4});if(this['_enabledCommands']['has'](_0x4efe6d))throw new _0x5ab934('track-changes-enable-command-twice',this,{'commandName':_0x128cd4});this['_enabledCommands']['add'](_0x4efe6d),_0x2508d0&&_0x4efe6d['on']('execute',(_0x207a21,_0x44ba6f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x44ba6f['length']>0x0&&_0x44ba6f[_0x44ba6f['length']-0x1]&&_0x44ba6f[_0x44ba6f['length']-0x1]['forceDefaultExecution']?_0x44ba6f['pop']():(_0x207a21['return']=_0x2508d0((..._0x701a87)=>_0x4efe6d['execute'](..._0x701a87,{'forceDefaultExecution':!0x0}),..._0x44ba6f),_0x207a21['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x177961){let _0x157f87,_0x435090;const _0x3f44f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x157f87=_0x177961();}catch(_0x1e5c1d){_0x435090=_0x1e5c1d;}return _0x3f44f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x435090&&_0x5ab934['rethrowUnexpectedError'](_0x435090,this),_0x157f87;}['markInsertion'](_0x557ece,_0x5e9e17=null,_0x28c1e3={}){if(_0x557ece['isCollapsed'])return null;const _0x3334db=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x28c1e3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfdf4d,meta:_0x5bd635}of this['_findSuggestions'](_0x557ece,'insertion'))if(_0x5bd635['isOwn']){if(!_0x5bd635['isNextTo']){if(_0x5bd635['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0xfdf4d,_0x28c1e3))continue;return _0xfdf4d;}if(en(_0xfdf4d,_0x28c1e3))return _0xfdf4d;this['_breakSuggestionMarker'](_0xfdf4d,_0x557ece['start'],_0x557ece['end']);break;}if(_0x5e9e17==_0xfdf4d['subType']&&en(_0xfdf4d,_0x28c1e3)){const _0x139f3f=_0xfdf4d['getFirstRange']();return _0x139f3f['start']['isEqual'](_0x557ece['end'])?this['_setSuggestionRange'](_0xfdf4d,this['_model']['createRange'](_0x557ece['start'],_0x139f3f['end'])):this['_setSuggestionRange'](_0xfdf4d,this['_model']['createRange'](_0x139f3f['start'],_0x557ece['end'])),_0xfdf4d;}}const _0x5adf31=_0x34c54d(),_0xae8697=_0x3334db['id'],_0x294cb9=_0x5e9e17?'insertion:'+_0x5e9e17:'insertion',_0x1085bf=this['_setSuggestionData']({'id':_0x5adf31,'type':_0x294cb9,'createdAt':new Date(),'authorId':_0xae8697,'attributes':_0x28c1e3});return this['_addSuggestionMarker'](_0x294cb9,_0x5adf31,_0xae8697,_0x557ece),_0x1085bf;}['markMultiRangeInsertion'](_0x53cd51,_0x49b19c='multi',_0x2fc353={}){const _0xc9b8f4=this['editor']['plugins']['get']('Users')['me'],_0x320158=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x49b19c,'join');this['_trackingSessionId']&&(_0x2fc353['trackingSessionId']=this['_trackingSessionId']);for(const _0x33977b of this['getSuggestions']())if(_0x33977b['author']['id']==_0xc9b8f4['id']&&'insertion'==_0x33977b['type']&&_0x33977b['subType']==_0x49b19c&&en(_0x33977b,_0x2fc353)&&(_0x320158(_0x33977b['getRanges'](),_0x53cd51)||_0x320158(_0x53cd51,_0x33977b['getRanges']()))){for(const _0x18a252 of _0x53cd51)_0x33977b['addRange'](_0x18a252);return _0x33977b;}for(const {suggestion:_0x1c916b,meta:_0x1ea861}of this['_findSuggestions'](_0x53cd51,'insertion')){if(!_0x1ea861['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ea861['containsRangeInObject'])continue;if(!en(_0x1c916b,_0x2fc353))continue;let _0x10b75d=!0x0;for(const _0x59fdcd of _0x1c916b['getRanges']())for(const _0x451831 of _0x53cd51)if(!_0x59fdcd['containsRange'](_0x451831)){_0x10b75d=!0x1;break;}if(_0x10b75d)return _0x1c916b;}const _0xd5c91e=_0x34c54d(),_0x4efd8e=_0xc9b8f4['id'],_0x96ae8b='insertion:'+_0x49b19c,_0x4eadec=this['_setSuggestionData']({'id':_0xd5c91e,'type':_0x96ae8b,'createdAt':new Date(),'authorId':_0x4efd8e,'attributes':_0x2fc353});for(const _0x45fd5f of _0x53cd51)this['_addSuggestionMarker'](_0x96ae8b,_0xd5c91e,_0x4efd8e,_0x45fd5f,T['getMultiRangeId']());return _0x4eadec;}['markInlineFormat'](_0x1e2d9b,_0x2087d0,_0x18c6cb=null,_0x5dce67={}){if(_0x18c6cb=_0x18c6cb||Wt(_0x2087d0),_0x1e2d9b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5dce67['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19cc99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x18c6cb,'accept');return this['forceDefaultExecution'](()=>_0x19cc99([_0x1e2d9b],_0x2087d0,_0x5dce67)),null;}const _0x198bcf=this['editor']['plugins']['get']('Users')['me'],_0x435161=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2db193,meta:_0x12b156}of this['_findSuggestions'](_0x1e2d9b,'insertion'))_0x12b156['isOwn']&&!_0x12b156['isInsideObject']&&_0x435161['push'](..._0x2db193['getRanges']());}const _0x4342fc=function(_0x4c666a,_0x1aa6b5){const _0x2bd171=[];for(const _0x43b2a3 of _0x1aa6b5){const _0x5938ed=_0x4c666a['getIntersection'](_0x43b2a3);_0x5938ed&&_0x2bd171['push'](_0x5938ed);}return _0x2bd171;}(_0x1e2d9b,_0x435161),_0x5396f1=function(_0x4217e7,_0x490e6c){const _0x153867=[_0x4217e7];for(const _0x6cd476 of _0x490e6c){let _0x2e12fd=0x0;for(;_0x2e12fd<_0x153867['length'];){const _0x2afb87=_0x153867[_0x2e12fd]['getDifference'](_0x6cd476);_0x153867['splice'](_0x2e12fd,0x1,..._0x2afb87),_0x2e12fd+=_0x2afb87['length'];}}return _0x153867;}(_0x1e2d9b,_0x435161);_0x4342fc['length']&&this['_model']['change'](()=>{for(const _0x40bbbd of _0x4342fc){const _0x450b83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x18c6cb,'accept');this['forceDefaultExecution'](()=>_0x450b83([_0x40bbbd],_0x2087d0,_0x5dce67));}});for(const _0x13b04f of _0x5396f1){let _0x2f72d9=null,_0x3a0353=_0x13b04f['start'],_0x85e57c=_0x13b04f['end'];for(const {suggestion:_0x173191,meta:_0x3e0d7f}of this['_findSuggestions'](_0x13b04f,'formatInline')){if(!_0x3e0d7f['isOwn'])continue;if(_0x173191['subType']!=_0x18c6cb)continue;if(!en(_0x173191,_0x5dce67))continue;const _0x269a53=_0x173191['getFirstRange']();if(_0x269a53['containsRange'](_0x13b04f,!0x0))return null;_0x3a0353=_0x3a0353['isBefore'](_0x269a53['start'])?_0x3a0353:_0x269a53['start'],_0x85e57c=_0x85e57c['isAfter'](_0x269a53['end'])?_0x85e57c:_0x269a53['end'],_0x2f72d9?_0x269a53['start']['isBefore'](_0x2f72d9['getFirstRange']()['start'])?(_0x2f72d9['removeMarkers'](),_0x2f72d9=_0x173191):_0x173191['removeMarkers']():_0x2f72d9=_0x173191;}const _0x9ca3bf=this['_model']['createRange'](_0x3a0353,_0x85e57c);if(_0x2f72d9)this['_setSuggestionRange'](_0x2f72d9,_0x9ca3bf);else{const _0x5474a6=_0x34c54d(),_0x18a9d3=_0x198bcf['id'];this['_setSuggestionData']({'id':_0x5474a6,'type':'formatInline:'+_0x18c6cb,'data':_0x2087d0,'createdAt':new Date(),'authorId':_0x18a9d3,'attributes':_0x5dce67}),this['_addSuggestionMarker']('formatInline:'+_0x18c6cb,_0x5474a6,_0x18a9d3,_0x9ca3bf);}}return null;}['markBlockFormat'](_0x20c9e9,_0x1edac3,_0x54081b=[],_0x6393=null,_0x4557cb={}){_0x1edac3['formatGroupId']||(_0x1edac3['formatGroupId']=_0x1edac3['commandName']),_0x1edac3['multipleBlocks']=_0x20c9e9['is']('range'),_0x6393=_0x6393||Wt(_0x1edac3);const _0x1c5d83=_0x54081b['map'](_0xd58a49=>Zt(_0xd58a49,this['_model'])),_0x132554=_0x20c9e9['is']('range')?_0x20c9e9:Zt(_0x20c9e9,this['_model']);if(this['_trackingSessionId']&&(_0x4557cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1cc184=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6393,'accept');return this['forceDefaultExecution'](()=>_0x1cc184([_0x132554],_0x1edac3,_0x4557cb)),null;}_0x1c5d83['push'](_0x132554);let _0x3a7477=!0x0;for(const _0xa80cb4 of _0x1c5d83)if(!this['_rangeIsInLocalUserInsertion'](_0xa80cb4)){_0x3a7477=!0x1;break;}if(_0x3a7477&&'always'!==this['_trackFormatChanges']){const _0x50dbc6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6393,'accept');return this['forceDefaultExecution'](()=>_0x50dbc6([_0x132554],_0x1edac3,_0x4557cb)),null;}let _0x557ca8=null,_0x2a76df=_0x132554['start'],_0x49cf9a=_0x132554['end'];for(const {suggestion:_0x52eccb,meta:_0x4748b3}of this['_findSuggestions'](_0x132554,'formatBlock')){if(!_0x4748b3['isOwn'])continue;if(_0x4748b3['isNextTo']||_0x4748b3['containsRangeInObject']||_0x4748b3['isInsideObject'])continue;if(_0x52eccb['data']['formatGroupId']!=_0x1edac3['formatGroupId'])continue;if(!en(_0x52eccb,_0x4557cb))continue;const _0x1eed90=_0x52eccb['getFirstRange']();if(_0x52eccb['subType']==_0x6393){if(_0x1eed90['containsRange'](_0x132554,!0x0))return null;_0x2a76df=_0x2a76df['isBefore'](_0x1eed90['start'])?_0x2a76df:_0x1eed90['start'],_0x49cf9a=_0x49cf9a['isAfter'](_0x1eed90['end'])?_0x49cf9a:_0x1eed90['end'],_0x557ca8?_0x1eed90['start']['isBefore'](_0x557ca8['getFirstRange']()['start'])?(_0x557ca8['removeMarkers'](),_0x557ca8=_0x52eccb):_0x52eccb['removeMarkers']():_0x557ca8=_0x52eccb;}else{const _0x2be06b=_0x132554['getIntersection'](_0x1eed90);this['_cutOutSuggestionMarker'](_0x52eccb,_0x2be06b);}}const _0x56a6a8=this['editor']['plugins']['get']('Users')['me'],_0x2617e5=_0x34c54d(),_0x210afb=_0x56a6a8['id'];if(_0x557ca8)return this['_setSuggestionRange'](_0x557ca8,this['_model']['createRange'](_0x2a76df,_0x49cf9a)),_0x557ca8;{const _0x620bbb=this['_setSuggestionData']({'id':_0x2617e5,'type':'formatBlock:'+_0x6393,'data':_0x1edac3,'createdAt':new Date(),'authorId':_0x210afb,'attributes':_0x4557cb});return this['_addSuggestionMarker']('formatBlock:'+_0x6393,_0x2617e5,_0x210afb,this['_model']['createRange'](_0x2a76df,_0x49cf9a)),_0x620bbb;}}['markMultiRangeBlockFormat'](_0x534977,_0x2bd80e,_0x3031b2=[],_0x37f4db=null,_0x337ed2={}){_0x2bd80e['formatGroupId']||(_0x2bd80e['formatGroupId']=_0x2bd80e['commandName']);const _0x462454=_0x534977[0x0];_0x2bd80e['multipleBlocks']=_0x462454['is']('range'),_0x37f4db=_0x37f4db||Wt(_0x2bd80e);const _0x250a12=_0x3031b2['map'](_0x3f668f=>Zt(_0x3f668f,this['_model'])),_0x16de4c=_0x462454['is']('range')?_0x534977:_0x534977['map'](_0x293c2a=>Zt(_0x293c2a,this['_model']));if(this['_trackingSessionId']&&(_0x337ed2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x8b73fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'accept');return this['forceDefaultExecution'](()=>_0x8b73fc(_0x16de4c,_0x2bd80e,_0x337ed2)),null;}_0x250a12['push'](..._0x16de4c);let _0x2979f9=!0x0;for(const _0x5c8d5d of _0x250a12)if(!this['_rangeIsInLocalUserInsertion'](_0x5c8d5d)){_0x2979f9=!0x1;break;}if(_0x2979f9&&'always'!==this['_trackFormatChanges']){const _0x4692c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'accept');return this['forceDefaultExecution'](()=>_0x4692c9(_0x16de4c,_0x2bd80e,_0x337ed2)),null;}const _0x5300ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x414408 of this['getSuggestions']()){const _0x383a9b=_0x414408['data'];if(_0x414408['author']['id']!=_0x5300ee['id'])continue;if('formatBlock'!=_0x414408['type']||_0x383a9b['formatGroupId']!=_0x2bd80e['formatGroupId'])continue;if(!en(_0x414408,_0x337ed2))continue;const _0x14ca4d=_0x414408['subType']==_0x37f4db;for(let _0xc5a04b=0x0;_0xc5a04b<_0x16de4c['length'];_0xc5a04b++){const _0xf94629=_0x16de4c[_0xc5a04b];for(const _0x440d87 of _0x414408['getMarkers']()){const _0x4a852b=_0x440d87['getRange']();if(_0xf94629['isEqual'](_0x4a852b)){_0x14ca4d?(_0x16de4c['splice'](_0xc5a04b,0x1),_0xc5a04b--):_0x414408['removeMarker'](_0x440d87['name']);break;}}}}if(0x0==_0x16de4c['length'])return null;const _0x19e6f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37f4db,'join');for(const _0xeec3c7 of this['getSuggestions']()){const _0xf74cc4=_0xeec3c7['data'];if(_0xeec3c7['author']['id']==_0x5300ee['id']&&('formatBlock'==_0xeec3c7['type']&&_0xf74cc4['formatGroupId']==_0x2bd80e['formatGroupId']&&_0xeec3c7['subType']==_0x37f4db&&en(_0xeec3c7,_0x337ed2)&&(_0x19e6f1(_0xeec3c7['getRanges'](),_0x16de4c)||_0x19e6f1(_0x16de4c,_0xeec3c7['getRanges']())))){for(const _0x2825c5 of _0x16de4c)_0xeec3c7['addRange'](_0x2825c5);return _0xeec3c7;}}const _0x453a02=_0x34c54d(),_0x14ae71=_0x5300ee['id'],_0x367d7d='formatBlock:'+_0x37f4db,_0x3790bf=this['_setSuggestionData']({'id':_0x453a02,'type':_0x367d7d,'data':_0x2bd80e,'createdAt':new Date(),'authorId':_0x14ae71,'attributes':_0x337ed2});for(const _0x8984a of _0x16de4c)this['_addSuggestionMarker'](_0x367d7d,_0x453a02,_0x14ae71,_0x8984a,T['getMultiRangeId']());return _0x3790bf;}['markDeletion'](_0x20dcda,_0x4f484d=null,_0x15bf86={}){if(_0x20dcda['isCollapsed'])return null;const _0x2525dd=this['editor']['plugins']['get']('Users')['me'],_0x113916=new _0xfc1203(_0x20dcda['start'],_0x20dcda['end']);this['_trackingSessionId']&&(_0x15bf86['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x478074,meta:_0x146424}of this['_findSuggestions'](_0x113916,'insertion'))if(_0x146424['isOwn']&&!_0x146424['isNextTo']){if(_0x478074['isMultiRange']){const _0x258418=_0x478074['getRanges']()['filter'](_0x27b43b=>'$graveyard'!=_0x27b43b['root']['rootName']);_0x258418['every'](_0x2ec41d=>_0x113916['containsRange'](_0x2ec41d,!0x0))&&_0x478074['discard']();if(_0x258418['some'](_0x566ba0=>_0x566ba0['containsRange'](_0x113916,!0x0))){const _0x3d952c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f484d,'accept');return this['forceDefaultExecution'](()=>_0x3d952c([_0x113916],null,_0x15bf86)),null;}}else{const _0x5316ea=_0x113916['getIntersection'](_0x478074['getFirstRange']());null!==_0x5316ea&&_0x478074['_onDiscard']([_0x5316ea],null,_0x15bf86);}}if(_0x113916['detach'](),_0x113916['isCollapsed']||'$graveyard'==_0x113916['root']['rootName'])return null;let _0x2becdf=null,_0x54e214=_0x113916['start'],_0x1e4b32=_0x113916['end'];const _0x494d9c=this['_findSuggestions'](_0x113916,'deletion');for(const {suggestion:_0xece6a5,meta:_0x43372e}of _0x494d9c){const _0x2c74cc=this['_model']['createRange'](_0x54e214,_0x1e4b32);if(_0x43372e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43372e['containsRangeInObject']&&!_0x43372e['isInsideObject'])){if(_0xece6a5['isMultiRange']){if(!en(_0xece6a5,_0x15bf86))continue;let _0x447565=!0x0;for(const _0x315106 of _0xece6a5['getRanges']()){if(_0x315106['containsRange'](_0x2c74cc,!0x0))return _0xece6a5;_0x2c74cc['containsRange'](_0x315106)||(_0x447565=!0x1);}_0x447565&&_0xece6a5['discard']();}else{const _0x444bf2=_0xece6a5['getFirstRange']();if(_0x444bf2['containsRange'](_0x2c74cc,!0x0))return _0xece6a5;if(!en(_0xece6a5,_0x15bf86)){_0x2c74cc['containsRange'](_0x444bf2)?_0xece6a5['removeMarkers']():_0x444bf2['containsPosition'](_0x54e214)?_0x54e214=_0x444bf2['end']:_0x444bf2['containsPosition'](_0x1e4b32)&&(_0x1e4b32=_0x444bf2['start']);continue;}_0x54e214=_0x54e214['isBefore'](_0x444bf2['start'])?_0x54e214:_0x444bf2['start'],_0x1e4b32=_0x1e4b32['isAfter'](_0x444bf2['end'])?_0x1e4b32:_0x444bf2['end'],_0x15bf86=Object['assign']({},_0xece6a5['attributes']),_0x2becdf?_0x444bf2['start']['isBefore'](_0x2becdf['getFirstRange']()['start'])?(_0x2becdf['removeMarkers'](),_0x2becdf=_0xece6a5):_0xece6a5['removeMarkers']():_0x2becdf=_0xece6a5;}}}if(_0x2becdf)return this['_setSuggestionRange'](_0x2becdf,this['_model']['createRange'](_0x54e214,_0x1e4b32)),_0x2becdf;{const _0x5e84b7=_0x34c54d(),_0x43b2eb=this['_model']['createRange'](_0x54e214,_0x1e4b32),_0x24cea0=_0x2525dd['id'],_0x8540a4=_0x4f484d?'deletion:'+_0x4f484d:'deletion',_0x33eb4e=this['_setSuggestionData']({'id':_0x5e84b7,'type':_0x8540a4,'createdAt':new Date(),'authorId':_0x24cea0,'attributes':_0x15bf86});return this['_addSuggestionMarker'](_0x8540a4,_0x5e84b7,_0x24cea0,_0x43b2eb),_0x33eb4e;}}['markMultiRangeDeletion'](_0x29fdaf,_0x271e28='multi',_0xb7caa8={}){const _0x410e72=this['editor']['plugins']['get']('Users')['me'],_0x59cf58=_0x29fdaf['map'](_0x2a0881=>new _0xfc1203(_0x2a0881['start'],_0x2a0881['end'])),_0x3006bc=new Set();this['_trackingSessionId']&&(_0xb7caa8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e5b1c,meta:_0x53044e}of this['_findSuggestions'](_0x59cf58,'insertion'))_0x53044e['isOwn']&&!_0x53044e['isNextTo']&&_0x3006bc['add'](_0x1e5b1c);for(const _0x3bc087 of _0x3006bc)if(_0x3bc087['isMultiRange']){const _0x307ada=_0x3bc087['getRanges']();(!_0x3bc087['attributes']||!_0x3bc087['attributes']['skipNestingCheck'])&&(_0x307ada['every'](_0x2eca56=>_0x59cf58['some'](_0x1cf70b=>_0x1cf70b['containsRange'](_0x2eca56,!0x0)))&&_0x3bc087['discard']());if(_0x59cf58['every'](_0x51357a=>_0x307ada['some'](_0x471078=>_0x471078['containsRange'](_0x51357a,!0x0)))){const _0x4bfa0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'accept');return this['forceDefaultExecution'](()=>_0x4bfa0c(_0x29fdaf,null,_0xb7caa8)),null;}}else{const _0x5348a6=_0x3bc087['getFirstRange']();_0x59cf58['some'](_0x3ded5c=>_0x3ded5c['containsRange'](_0x5348a6,!0x0))&&_0x3bc087['discard']();if(_0x59cf58['every'](_0x5d9af9=>_0x5348a6['containsRange'](_0x5d9af9,!0x0))){const _0x13397f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'accept');return this['forceDefaultExecution'](()=>_0x13397f(_0x59cf58,null,_0xb7caa8)),null;}}const _0x400904=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x271e28,'join');let _0x1bcb1b=null;for(const _0x137a2e of this['getSuggestions']())if(_0x137a2e['author']['id']==_0x410e72['id']&&_0x137a2e['isInContent']&&'deletion'==_0x137a2e['type']&&_0x137a2e['subType']==_0x271e28&&en(_0x137a2e,_0xb7caa8)&&(_0x400904(_0x137a2e['getRanges'](),_0x59cf58)||_0x400904(_0x59cf58,_0x137a2e['getRanges']()))){if(_0x1bcb1b){if(_0x137a2e['commentThread']&&_0x137a2e['commentThread']['length'])continue;for(const _0x48c8d0 of _0x137a2e['getRanges']())_0x1bcb1b['isIntersectingWithRange'](_0x48c8d0)||_0x1bcb1b['addRange'](_0x48c8d0);_0x137a2e['removeMarkers']();}else{_0x1bcb1b=_0x137a2e;for(const _0x43beca of _0x59cf58)_0x137a2e['isIntersectingWithRange'](_0x43beca)||_0x137a2e['addRange'](_0x43beca);}}if(_0x1bcb1b)return _0x1bcb1b;_0x3006bc['clear']();for(const {suggestion:_0x369c5a,meta:_0x1a24e0}of this['_findSuggestions'](_0x59cf58,'deletion'))_0x1a24e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a24e0['containsRangeInObject']&&!_0x1a24e0['isInsideObject'])&&en(_0x369c5a,_0xb7caa8)&&_0x3006bc['add'](_0x369c5a);for(const _0x3a3f04 of _0x3006bc){const _0x89b568=_0x3a3f04['getRanges']();if(!_0xb7caa8||!_0xb7caa8['skipNestingCheck']){if(_0x59cf58['every'](_0x229f41=>_0x89b568['some'](_0x2b2660=>_0x2b2660['containsRange'](_0x229f41,!0x0))))return _0x3a3f04;}(!_0x3a3f04['attributes']||!_0x3a3f04['attributes']['skipNestingCheck'])&&(_0x89b568['every'](_0x364aef=>_0x59cf58['some'](_0x232280=>_0x232280['containsRange'](_0x364aef,!0x0)))&&_0x3a3f04['discard']());}const _0x33e371=_0x34c54d(),_0x331d19=_0x410e72['id'],_0x464b1e='deletion:'+_0x271e28,_0x15a72e=this['_setSuggestionData']({'id':_0x33e371,'type':_0x464b1e,'createdAt':new Date(),'authorId':_0x331d19,'attributes':_0xb7caa8});for(const _0x27f763 of _0x59cf58)_0x27f763['detach'](),_0x27f763['isCollapsed']||'$graveyard'==_0x27f763['root']['rootName']||this['_addSuggestionMarker'](_0x464b1e,_0x33e371,_0x331d19,_0x27f763,T['getMultiRangeId']());return _0x15a72e;}['markAttributeChange'](_0x4996d7,_0x11e567,_0xe10f3f,_0x2ee9ad,_0x5a93a8){if(_0x4996d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x28aa3c=this['editor']['plugins']['get']('Users')['me']['id'],_0x65ce9f=Array['from'](this['_suggestions']['values']())['filter'](_0x27d3f2=>'attribute'==_0x27d3f2['type']&&_0x27d3f2['data']['key']==_0x11e567&&_0x27d3f2['isIntersectingWithRange'](_0x4996d7));if(this['_trackingSessionId']&&(_0x5a93a8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x209880=this['_findSuggestions'](_0x4996d7,'insertion')['filter'](({meta:_0x71bdd8})=>_0x71bdd8['isOwn']&&!_0x71bdd8['isInsideObject']&&!_0x71bdd8['isNextTo'])['map'](({suggestion:_0x2d0945})=>_0x2d0945);_0x65ce9f['unshift'](..._0x209880);}const _0x3ec75d=new Map([[_0x4996d7,_0xe10f3f]]);for(const _0x32b5a0 of _0x65ce9f){const _0x374b27='attribute'==_0x32b5a0['type']?_0x32b5a0['data']['oldValue']:void 0x0,_0x2b502d=_0x32b5a0['getFirstRange'](),_0x32f783=Array['from'](_0x3ec75d['keys']())['find'](_0x12dfe2=>_0x12dfe2['isIntersecting'](_0x2b502d));if(!_0x32f783)continue;const _0x419087=_0x32f783['getDifference'](_0x2b502d);this['_isBlockAttribute'](_0x11e567)&&'insertion'==_0x32b5a0['type']&&0x0!=_0x419087['length']||(_0x3ec75d['delete'](_0x32f783),_0x419087['forEach'](_0x402a7e=>{_0x3ec75d['set'](_0x402a7e,_0xe10f3f);}),'insertion'!=_0x32b5a0['type']&&_0x374b27!=_0x2ee9ad&&_0x3ec75d['set'](_0x32f783['getIntersection'](_0x2b502d),_0x374b27));}const _0x5e7340=[];for(const [_0x56d46e,_0x45d14f]of _0x3ec75d){const _0x3935fe=_0x34c54d(),_0x2d3c7f={'key':_0x11e567,'oldValue':_0x45d14f,'newValue':_0x2ee9ad};_0x11e567['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':_0x11e567});const _0x384613=('attribute:'+(_0x11e567+'|'+Wt({'newValue':_0x2ee9ad})))['substring'](0x0,0x3c),_0x489869=this['_setSuggestionData']({'id':_0x3935fe,'type':_0x384613,'data':_0x2d3c7f,'createdAt':new Date(),'authorId':_0x28aa3c,'attributes':_0x5a93a8});_0x5e7340['push'](_0x489869),this['_addSuggestionMarker'](_0x384613,_0x3935fe,_0x28aa3c,_0x56d46e);}return _0x5e7340;}['enableDefaultAttributesIntegration'](_0x38ea08){this['enableCommand'](_0x38ea08,(_0x3a0538,..._0x519c72)=>{this['recordAttributeChanges'](()=>{_0x3a0538(..._0x519c72);});});}['registerBlockAttribute'](_0xcdd44c){this['editor']['plugins']['get'](_0x2dc7a8)['registerBlockAttribute'](_0xcdd44c);}['registerInlineAttribute'](_0x194687){this['editor']['plugins']['get'](_0x2dc7a8)['registerInlineAttribute'](_0x194687);}['startTrackingSession'](_0x2e398a){return this['_trackingSessionId']=void 0x0!==_0x2e398a?_0x2e398a:_0x34c54d(),this['_trackingSessionId'];}['_getAttributeKey'](_0xf48fcd){return'attribute'==_0xf48fcd['type']?_0xf48fcd['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5f4cd5){if(0x0==_0x5f4cd5['length'])return;const _0x299d7a=this['editor'],_0x59402a=_0x299d7a['plugins']['get'](_0x49d3c9),_0x2e7004=[];_0x299d7a['model']['change'](_0x5d1a42=>{for(let _0x82c9a4=0x0;_0x82c9a4<_0x5f4cd5['length'];_0x82c9a4++){const _0x4722ea=_0x5f4cd5[_0x82c9a4];if(_0x4722ea['baseVersion']=_0x299d7a['model']['document']['version'],_0x4722ea['isDocumentOperation']=!0x0,_0x59402a['isMarkedRemoveOperation'](_0x4722ea)){const _0x109679=_0xe1354d(_0x4722ea['newRange'],_0x299d7a['model']);_0x2e7004['unshift'](_0xfc1203['fromRange'](_0x109679));}else switch(_0x4722ea['type']){case'rename':{const _0x46795e=_0x4722ea['oldName'],_0x193ab9=_0x4722ea['newName'];if(_0x46795e==_0x193ab9)break;_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x3330b0='$elementName',_0x10bee4=_0x4722ea['position'],_0x5f5187=_0x299d7a['model']['createRange'](_0x10bee4,_0x299d7a['model']['createPositionAt'](_0x10bee4['nodeAfter'],'end'));this['markAttributeChange'](_0x5f5187,_0x3330b0,_0x46795e,_0x193ab9,{'groupId':_0x34c54d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x30e99e=_0x4722ea['oldValue'],_0x353bed=_0x4722ea['newValue'];if(_0x30e99e==_0x353bed)break;_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x487032=_0x4722ea['key'];if(!this['_isRegisteredAttribute'](_0x487032))break;const _0x3808d8=_0xe1354d(_0x4722ea['range'],_0x299d7a['model']);this['markAttributeChange'](_0x3808d8,_0x487032,_0x30e99e,_0x353bed,{'groupId':_0x34c54d()});break;}case'insert':{_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);if(_0x5f4cd5[_0x82c9a4+0x1]&&'move'==_0x5f4cd5[_0x82c9a4+0x1]['type'])break;const _0x51765b=_0x4722ea['position'],_0x1fcdae=_0x4722ea['howMany'],_0x598d43=_0xe1354d(_0x299d7a['model']['createRange'](_0x51765b,_0x51765b['getShiftedBy'](_0x1fcdae)),_0x299d7a['model']);this['markInsertion'](_0x598d43);break;}case'split':{_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);const _0x438a08=_0x4722ea['splitPosition'],_0x5afc8b=_0x4722ea['moveTargetPosition'];this['markInsertion'](_0x299d7a['model']['createRange'](_0x438a08,_0x5afc8b));break;}case'move':case'remove':_0x5d1a42['batch']['addOperation'](_0x4722ea),_0x299d7a['model']['applyOperation'](_0x4722ea);}}for(const _0x228263 of _0x2e7004)_0x228263['detach'](),this['markDeletion'](_0x228263);});}['_setSuggestionRange'](_0x59cdc0,_0x2c05ce){const _0x5068eb=_0x59cdc0['getFirstMarker']();this['_model']['change'](_0x3271aa=>{_0x3271aa['updateMarker'](_0x5068eb,{'range':_0x2c05ce});});}['_addThreadToSuggestion'](_0x1b4ebb){const _0x500302=_0x1b4ebb['id'],_0x1ac4b7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x500302)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ac4b7,'threadId':_0x500302,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x938e3=this['_commentsRepository']['getCommentThread'](_0x500302);_0x938e3['unbind']('isRemovable'),_0x938e3['isRemovable']=!0x1,_0x1b4ebb['commentThread']=_0x938e3;}['_checkSuggestionCorrectness'](_0x1e6472,_0x28b5a3,_0x4adeb1,_0x11832f){if(_0x1e6472['type']!=_0x28b5a3||_0x1e6472['subType']!=_0x4adeb1||_0x1e6472['creator']['id']!=_0x11832f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5ab934('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x29242c,_0x21c205){const _0x18066c=_0x29242c['getFirstRange']();if(_0x21c205['isEqual'](_0x18066c))_0x29242c['removeMarkers']();else{if(_0x18066c['containsRange'](_0x21c205)){const _0x4edce4=this['_model']['createPositionAt'](_0x21c205['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0x18066c['start'],_0x4edce4));const _0x389980=_0x34c54d(),_0x5cf531=_0x29242c['creator']['id'],_0x287fea=_0x29242c['type']+':'+_0x29242c['subType'];this['_setSuggestionData']({'id':_0x389980,'type':_0x287fea,'createdAt':new Date(),'authorId':_0x5cf531,'data':_0x29242c['data'],'attributes':_0x29242c['attributes']});const _0x502d55=this['_model']['createPositionAt'](_0x21c205['end']['parent'],'after'),_0x54d879=this['_model']['createRange'](_0x502d55,_0x18066c['end']);this['_addSuggestionMarker'](_0x287fea,_0x389980,_0x5cf531,_0x54d879);}else{if(_0x18066c['containsPosition'](_0x21c205['start'])){const _0x2a70da=this['_model']['createPositionAt'](_0x21c205['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0x18066c['start'],_0x2a70da));}else{const _0xae33b7=this['_model']['createPositionAt'](_0x21c205['end']['parent'],'after');this['_setSuggestionRange'](_0x29242c,this['_model']['createRange'](_0xae33b7,_0x18066c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x142972){for(const {suggestion:_0x2f8ef7,meta:_0x5d8e2f}of this['_findSuggestions'](_0x142972,'insertion')){if(!_0x5d8e2f['isOwn'])continue;const _0x28b75f=_0x2f8ef7['getRanges']();for(const _0x351d5f of _0x28b75f)if(!_0x142972['getDifference'](_0x351d5f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1146ca){return this['editor']['plugins']['get']('Users')['getUser'](_0x1146ca);}['_getExternalAuthor'](_0x10a8f5){const _0x3e2a30=this['editor']['plugins']['get']('Users'),_0xf34d20=_0xa636f('external:'+_0x10a8f5),_0x47c820=_0x3e2a30['getUser'](_0xf34d20);return _0x47c820||_0x3e2a30['addUser']({'id':_0xf34d20,'name':_0x10a8f5});}['_createSuggestion'](_0x75de84,_0x1dfdbd,_0x4a78b6,_0x5a72a7,_0x760e09,_0x4ab000){const _0x4c5156=this['_getAuthorFromId'](_0x5a72a7);if(!_0x4c5156)throw new _0x5ab934('track-changes-user-not-found',this,{'authorId':_0x5a72a7,'suggestionId':_0x4a78b6});const _0xb7de3f=this['_suggestionFactory']['buildSuggestion'](_0x75de84,_0x1dfdbd,_0x4a78b6,_0x4c5156,_0x760e09,_0x33ea19=>{this['_updateSuggestionData'](_0x4a78b6,{'attributes':_0x33ea19});const _0x2108ae=this['getSuggestion'](_0x4a78b6);this['_joinWithAdjacentSuggestions'](new Set([_0x2108ae])),this['_refreshSuggestionsChain'](new Set([_0x2108ae]));},_0x4ab000);return this['listenTo'](_0xb7de3f,'accept',()=>{this['_updateSuggestionData'](_0x4a78b6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb7de3f,'discard',()=>{this['_updateSuggestionData'](_0x4a78b6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a78b6,_0xb7de3f),this['_suggestionState']['set'](_0xb7de3f,'notReady'),_0xb7de3f;}['_splitMarkerName'](_0x166cce){return _0x2e5e45(_0x166cce);}['_breakSuggestionMarker'](_0x4c14aa,_0x2e47f5,_0x5b252a){const _0x2fae31=_0x4c14aa['getFirstRange'](),_0x8e0dac=_0x2fae31['start'],_0x17ec67=_0x2fae31['end'];this['_setSuggestionRange'](_0x4c14aa,this['_model']['createRange'](_0x8e0dac,_0x2e47f5));const _0x54abb4=_0x34c54d(),_0x47e811=_0x4c14aa['creator']['id'],_0x4b3a75=_0x4c14aa['type']+(_0x4c14aa['subType']?':'+_0x4c14aa['subType']:'');this['_setSuggestionData']({'id':_0x54abb4,'type':_0x4b3a75,'createdAt':new Date(),'authorId':_0x47e811,'originalSuggestionId':_0x4c14aa['_originalSuggestionId']||_0x4c14aa['id'],'attributes':_0x4c14aa['attributes'],'data':_0x4c14aa['data']});const _0x5ed54d=this['_getAttributeKey'](_0x4c14aa);('formatBlock'==_0x4c14aa['type']||_0x5ed54d&&this['_isBlockAttribute'](_0x5ed54d))&&(_0x5b252a=this['_model']['createPositionBefore'](_0x5b252a['parent'])),this['_addSuggestionMarker'](_0x4b3a75,_0x54abb4,_0x47e811,this['_model']['createRange'](_0x5b252a,_0x17ec67));}['_findSuggestions'](_0x5532d1,_0x222abe=null){const _0x22498b=[],_0x4c675a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x5532d1)||(_0x5532d1=[_0x5532d1]);for(const _0x366275 of this['getSuggestions']()){if(!_0x366275['isInContent'])continue;if(_0x222abe&&_0x366275['type']!=_0x222abe)continue;let _0x4bfaa2=!0x1;for(const _0x3abc6 of _0x366275['getRanges']()){for(const _0x5aa843 of _0x5532d1){const _0x62e4ed=_0x5aa843['start']['isEqual'](_0x3abc6['end'])||_0x5aa843['end']['isEqual'](_0x3abc6['start']);if(_0x62e4ed||_0x5aa843['getIntersection'](_0x3abc6)){const _0x1fc357=_0x5aa843['containsRange'](_0x3abc6)&&qt(this['_model']['schema'],_0x3abc6['start'],_0x5aa843),_0x44c2cd=_0x3abc6['containsRange'](_0x5aa843)&&qt(this['_model']['schema'],_0x5aa843['start'],_0x3abc6);_0x22498b['push']({'suggestion':_0x366275,'meta':{'isOwn':_0x4c675a==_0x366275['author'],'isNextTo':_0x62e4ed,'isInsideObject':_0x1fc357,'containsRangeInObject':_0x44c2cd}}),_0x4bfaa2=!0x0;break;}}if(_0x4bfaa2)break;}}return _0x22498b;}['_addSuggestionMarker'](_0x4733b9,_0x763012,_0x32de9e,_0x1312dd,_0x4acb9e){this['_model']['change'](_0x191933=>{let _0x351775='suggestion:'+_0x4733b9+':'+_0x763012+':'+_0x32de9e;_0x4acb9e&&(_0x351775=_0x351775+':'+_0x4acb9e),_0x191933['addMarker'](_0x351775,{'range':_0x1312dd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x530b26){const _0x220e29=_0x530b26['previous'],_0x17d318=_0x530b26['next'];_0x530b26['previous']=null,_0x530b26['next']=null,null!=_0x220e29&&_0x220e29['next']==_0x530b26&&(_0x220e29['next']=_0x17d318),null!=_0x17d318&&_0x17d318['previous']==_0x530b26&&(_0x17d318['previous']=_0x220e29),'ready'==this['_suggestionState']['get'](_0x530b26)&&(this['_suggestionState']['set'](_0x530b26,'removed'),this['fire']('suggestionUnloaded',_0x530b26,_0x220e29,_0x17d318));}['_setSuggestionData'](_0x25ecef){const _0x1abbb2=_0x25ecef['id'],_0x5ea16d=this['addSuggestionData'](_0x25ecef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x39e911=this['editor']['plugins']['get']('PendingActions'),_0x361767=_0x5ea16d['hasComments'],_0x4aab06=_0x5ea16d['subType']?_0x5ea16d['type']+':'+_0x5ea16d['subType']:_0x5ea16d['type'],_0x23666e=this['editor']['locale'],_0x3235af=_0x39e911['add'](o(_0x23666e,'PENDING_ACTION_SUGGESTION')),_0x5e25e8={'id':_0x1abbb2,'type':_0x4aab06,'hasComments':_0x361767,'data':_0x25ecef['data']||null,'originalSuggestionId':_0x25ecef['originalSuggestionId']||null,'attributes':_0x5ea16d['attributes']};this['_adapter']['addSuggestion'](_0x5e25e8)['then'](_0x219a5a=>{_0x5ea16d['_saved']=!0x0,_0x39e911['remove'](_0x3235af),_0x219a5a&&_0x219a5a['createdAt']&&(this['_suggestions']['get'](_0x1abbb2)['createdAt']=_0x219a5a['createdAt']);})['catch'](_0x404247=>{throw _0x91c02e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ea16d['discard']();}),_0x5ea16d['stopListening'](),this['_suggestions']['delete'](_0x5ea16d['id']),this['_suggestionState']['delete'](_0x5ea16d),_0x404247;});}return _0x5ea16d;}['_isBlockAttribute'](_0x2caa5c){return this['editor']['plugins']['get'](_0x2dc7a8)['isBlockAttribute'](_0x2caa5c);}['_isInlineAttribute'](_0x32f40d){return this['editor']['plugins']['get'](_0x2dc7a8)['isInlineAttribute'](_0x32f40d);}['_updateSuggestionData'](_0x365f4a,_0x384979){const _0x44539e=this['editor']['plugins']['get']('PendingActions'),_0x247670=this['getSuggestion'](_0x365f4a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x247670['_saved']){const _0x18d763=_0x44539e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x365f4a,_0x384979)['then'](()=>{_0x44539e['remove'](_0x18d763);});}else _0x247670['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x365f4a,_0x384979);});}}['_getSuggestionData'](_0x22611d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5ab934('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22611d);}['_handleNewSuggestionMarker'](_0x531a9a){const {id:_0x4ad7fd,type:_0x59b3e8,subType:_0x52581d,authorId:_0x1dcd20}=this['_splitMarkerName'](_0x531a9a),_0x54a175=this['_suggestions']['get'](_0x4ad7fd)||this['_createSuggestion'](_0x59b3e8,_0x52581d,_0x4ad7fd,_0x1dcd20,{});switch(this['_checkSuggestionCorrectness'](_0x54a175,_0x59b3e8,_0x52581d,_0x1dcd20),this['_suggestionState']['get'](_0x54a175)){case'notReady':this['_getSuggestionData'](_0x4ad7fd)['then'](_0x1c82f1=>{let _0x54e3c5=Promise['resolve']();_0x1c82f1['hasComments']&&(_0x54e3c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ad7fd})),_0x54e3c5['then'](()=>{this['addSuggestionData'](_0x1c82f1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x54a175,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ad7fd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x54a175,'ready'),this['fire']('suggestionLoaded',_0x54a175);break;case'ready':this['fire']('suggestionChanged',_0x54a175);}return _0x54a175['addMarkerName'](_0x531a9a),_0x54a175;}['_refreshSuggestionsChain'](_0x32e580){const _0x175c15=Array['from'](_0x32e580),_0x547f27=_0x175c15['filter'](_0x5950e0=>'attribute'==_0x5950e0['type']);this['_refreshAttributeSuggestionsChain'](_0x547f27);const _0x763ef=_0x175c15['filter'](_0x1864a5=>!_0x1864a5['isMultiRange']&&'attribute'!=_0x1864a5['type']),_0x162117=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26160c=>!_0x26160c['isMultiRange']&&'attribute'!=_0x26160c['type']),_0x55aa60=_0x162117['filter'](_0x3505d3=>!_0x32e580['has'](_0x3505d3)),_0x57dfba=new Map(_0x162117['map'](_0x3a822d=>[_0x3a822d,this['_suggestionFactory']['getSuggestionCallback'](_0x3a822d['type'],_0x3a822d['subType'],'chain')])),_0x573e1e=new Map(_0x162117['map'](_0x4748d2=>[_0x4748d2,_0x4748d2['getFirstRange']()])),_0x555372=new Set(),_0x29e6c6=new Set();for(let _0x44e170=0x0;_0x44e170<_0x763ef['length'];_0x44e170++)_0x177f1a(_0x763ef[_0x44e170],_0x763ef,_0x44e170+0x1);for(let _0x2afa21=0x0;_0x2afa21<_0x763ef['length'];_0x2afa21++)_0x177f1a(_0x763ef[_0x2afa21],_0x55aa60,0x0);const _0x117a83=new Set();for(let _0x45547e=0x0;_0x45547e<_0x763ef['length'];_0x45547e++){const _0x16fbf1=_0x763ef[_0x45547e];!_0x29e6c6['has'](_0x16fbf1)&&_0x16fbf1['previous']&&(_0x117a83['add'](_0x16fbf1['previous']),_0x16fbf1['previous']['next']===_0x16fbf1&&(_0x16fbf1['previous']['next']=null),_0x16fbf1['previous']=null),!_0x555372['has'](_0x16fbf1)&&_0x16fbf1['next']&&(_0x117a83['add'](_0x16fbf1['next']),_0x16fbf1['next']['previous']===_0x16fbf1&&(_0x16fbf1['next']['previous']=null),_0x16fbf1['next']=null);}function _0x177f1a(_0x181938,_0x5c6893,_0x3b16e8){for(let _0x2e847a=_0x3b16e8;_0x2e847a<_0x5c6893['length'];_0x2e847a++){const _0xc8b908=_0x409f3d(_0x181938,_0x5c6893[_0x2e847a]);_0xc8b908&&(_0xc8b908[0x0]['next']=_0xc8b908[0x1],_0xc8b908[0x1]['previous']=_0xc8b908[0x0],_0x555372['add'](_0xc8b908[0x0]),_0x29e6c6['add'](_0xc8b908[0x1]));}}function _0x409f3d(_0x23a0ac,_0x1c2dd2){if(_0x23a0ac['author']['id']!==_0x1c2dd2['author']['id'])return null;const _0x304dd3=_0x57dfba['get'](_0x23a0ac)(_0x23a0ac,_0x1c2dd2,_0x573e1e['get'](_0x23a0ac),_0x573e1e['get'](_0x1c2dd2));if(!_0x304dd3)return null;return _0x57dfba['get'](_0x1c2dd2)(_0x23a0ac,_0x1c2dd2,_0x573e1e['get'](_0x23a0ac),_0x573e1e['get'](_0x1c2dd2))?_0x304dd3[0x1]['commentThread']&&_0x304dd3[0x1]['commentThread']['length']?null:_0x304dd3:null;}_0x117a83['size']&&this['_refreshSuggestionsChain'](_0x117a83);}['_refreshAttributeSuggestionsChain'](_0x1079fd){if(0x0==_0x1079fd['length'])return;const _0x546970=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4915e8=>'attribute'==_0x4915e8['type']&&_0x4915e8['_isDataLoaded']),_0x466f59=[],_0x16ea72=new Map();for(const _0xd2bfcb of _0x546970){const _0x542404=_0xa636f(_0xd2bfcb['attributes']);_0x16ea72['has'](_0x542404)||(_0x16ea72['set'](_0x542404,_0x466f59['length']),_0x466f59['push']([]));const _0x5b8997=_0x16ea72['get'](_0x542404);_0x466f59[_0x5b8997]['push'](_0xd2bfcb);}!(function(){_0x466f59['sort']((_0x4f52b6,_0x187fb3)=>{const _0x26572d=_0x4f52b6[0x0]['createdAt'],_0x5241b6=_0x187fb3[0x0]['createdAt'];return _0x26572d==_0x5241b6?_0x4f52b6[0x0]['attributes']['groupId']<_0x187fb3[0x0]['attributes']['groupId']?-0x1:0x1:_0x26572d<_0x5241b6?-0x1:0x1;});for(const _0x1a2d25 of _0x466f59)_0x1a2d25['sort']((_0x2ff87f,_0x5ec0f0)=>_0x2ff87f['id']<_0x5ec0f0['id']?-0x1:0x1);}());for(let _0x3eed8d=0x0;_0x3eed8d<_0x466f59['length'];_0x3eed8d++){if(0x0==_0x466f59[_0x3eed8d]['length'])continue;const _0x3ccbb8=[];for(let _0x2cc12f=_0x3eed8d+0x1;_0x2cc12f<_0x466f59['length'];_0x2cc12f++)0x0!=_0x466f59[_0x2cc12f]['length']&&_0x1f2912(_0x466f59[_0x3eed8d],_0x466f59[_0x2cc12f])&&_0x3ccbb8['push'](_0x2cc12f);for(const _0x3f8979 of _0x3ccbb8)_0x466f59[_0x3eed8d]=_0x466f59[_0x3eed8d]['concat'](_0x466f59[_0x3f8979]),_0x466f59[_0x3f8979]=[];}for(const _0x53a222 of _0x466f59)for(let _0x3b3110=0x0;_0x3b3110<_0x53a222['length'];_0x3b3110++){const _0x2cfde3=_0x53a222[_0x3b3110+0x1]||null;_0x53a222[_0x3b3110]['next']!==_0x2cfde3&&(_0x53a222[_0x3b3110]['next']=_0x2cfde3);}for(const _0x32f23f of _0x466f59)for(let _0x220a4f=0x0;_0x220a4f<_0x32f23f['length'];_0x220a4f++){const _0x594007=_0x32f23f[_0x220a4f-0x1]||null;_0x32f23f[_0x220a4f]['previous']!==_0x594007&&(_0x32f23f[_0x220a4f]['previous']=_0x594007);}function _0x1f2912(_0x1ebc61,_0x2b4e0c){if(_0x1ebc61[0x0]['attributes']['groupId']!==_0x2b4e0c[0x0]['attributes']['groupId']&&_0x1ebc61[0x0]['author']!==_0x2b4e0c[0x0]['author'])return!0x1;if(!function(_0xee7918,_0x5cc2e0){if(!_0xee7918['hasComments']&&!_0x5cc2e0['hasComments'])return!0x0;if(_0xee7918['hasComments']&&_0x5cc2e0['hasComments'])return!0x1;if(_0xee7918['hasComments']&&_0x5cc2e0['createdAt']<_0xee7918['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cc2e0['hasComments']&&_0xee7918['createdAt']<_0x5cc2e0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1ebc61[0x0],_0x2b4e0c[0x0]))return!0x1;const _0xb0d974=Jt(_0x1ebc61[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e9b36=Jt(_0x2b4e0c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5c135e(_0xb0d974,_0x2e9b36))return!0x1;if(_0x1ebc61[0x0]['attributes']['groupId']==_0x2b4e0c[0x0]['attributes']['groupId'])return!0x0;if(_0x1ebc61[0x0]['attributes']['trackingSessionId']!==_0x2b4e0c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1ebc61['every'](_0x9e9fc1=>_0x2b4e0c['some'](_0x337285=>_0x9e9fc1['getFirstRange']()['isEqual'](_0x337285['getFirstRange']())))&&_0x2b4e0c['every'](_0x28c1a8=>_0x1ebc61['some'](_0x583b84=>_0x28c1a8['getFirstRange']()['isEqual'](_0x583b84['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x12d634){const _0xf23f35=Array['from'](_0x12d634),_0xee2926=this['getSuggestions']({'skipNotAttached':!0x0}),_0x542ac9=_0xee2926['filter'](_0xfb2476=>!_0x12d634['has'](_0xfb2476)),_0x26dc4f=new Map(_0xf23f35['map'](_0x223d5c=>[_0x223d5c,this['_suggestionFactory']['getSuggestionCallback'](_0x223d5c['type'],_0x223d5c['subType'],'join')])),_0x468e81=new Map(_0xee2926['map'](_0x1ad5e6=>[_0x1ad5e6,_0x1ad5e6['getRanges']()]));for(let _0x486e4b=0x0;_0x486e4b<_0xf23f35['length'];_0x486e4b++){if(_0x2af57c(this,_0xf23f35[_0x486e4b],_0xf23f35,_0x486e4b+0x1))return!0x0;}for(let _0x529682=0x0;_0x529682<_0xf23f35['length'];_0x529682++){if(_0x2af57c(this,_0xf23f35[_0x529682],_0x542ac9,0x0))return!0x0;}return!0x1;function _0x2af57c(_0x34c247,_0x27b08c,_0x2edf06,_0x952a06){for(let _0x553303=_0x952a06;_0x553303<_0x2edf06['length'];_0x553303++){const _0x22c065=_0x2edf06[_0x553303];if(_0x22c065['type']!==_0x27b08c['type']||_0x22c065['author']['id']!==_0x27b08c['author']['id']||_0x22c065['subType']!==_0x27b08c['subType'])continue;if(!nn(_0x27b08c,_0x22c065))continue;if('attribute'==_0x27b08c['type']&&_0x27b08c['data']['oldValue']!=_0x22c065['data']['oldValue'])continue;if('attribute'==_0x27b08c['type']&&_0x34c247['_isBlockAttribute'](_0x27b08c['data']['key']))continue;if('formatBlock'==_0x27b08c['type']){const _0xfc0c41=_0x34c247['editor']['model'],_0x3203cd=_0x27b08c['getContainedElement']();if(_0x3203cd&&(_0xfc0c41['schema']['isObject'](_0x3203cd)||_0xfc0c41['schema']['isLimit'](_0x3203cd)))continue;}const _0x292cfd=_0x26dc4f['get'](_0x27b08c),_0x45ff3d=_0x468e81['get'](_0x27b08c),_0x523125=_0x468e81['get'](_0x22c065),_0xbb463b=_0x27b08c['commentThread']&&_0x27b08c['commentThread']['length'],_0x39ec96=_0x22c065['commentThread']&&_0x22c065['commentThread']['length'];if(!_0xbb463b&&_0x292cfd(_0x523125,_0x45ff3d))return _0x34c247['_joinSuggestions'](_0x22c065,_0x27b08c),_0x468e81['delete'](_0x27b08c),!0x0;if(!_0x39ec96&&_0x292cfd(_0x45ff3d,_0x523125))return _0x34c247['_joinSuggestions'](_0x27b08c,_0x22c065),_0x468e81['delete'](_0x22c065),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b9331,_0x246395){if(_0x3b9331['isMultiRange']){for(const _0x220e6e of _0x246395['getRanges']())_0x3b9331['addRange'](_0x220e6e);}else{const _0x4ff5d8=_0x246395['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b9331,this['_model']['createRange'](_0x3b9331['getFirstRange']()['start'],_0x4ff5d8));}_0x246395['removeMarkers']();}['_getMarkerAnnouncementText'](_0x41438f,_0x552886,_0x1c88c3){const _0x54d92c=_0x41438f['startsWith']('format')||_0x41438f['startsWith']('attribute')?'FORMATTING':_0x41438f['toUpperCase']();return o(this['editor']['locale'],_0x552886+'_'+_0x54d92c+'_SUGGESTION_ANNOUNCEMENT',_0x1c88c3);}['_initAriaMarkerChangeAnnouncements'](){const _0x45ebcb=this['editor'];if(!_0x45ebcb['ui'])return;const {ariaLiveAnnouncer:_0x27f584}=_0x45ebcb['ui'];_0x30cdc2(this['_model'],({left:_0x8ba9df,entered:_0x250d93})=>{for(const _0x2042a4 of _0x8ba9df){const {group:_0x35533a,type:_0x51429d}=this['_splitMarkerName'](_0x2042a4['name']);if('suggestion'===_0x35533a){_0x27f584['announce'](this['_getMarkerAnnouncementText'](_0x51429d,'LEAVE'));break;}}for(const _0x41981f of _0x250d93){const {group:_0x4c95ff,type:_0x51f4f6}=this['_splitMarkerName'](_0x41981f['name']);if('suggestion'===_0x4c95ff){_0x27f584['announce'](this['_getMarkerAnnouncementText'](_0x51f4f6,'ENTER',_0x5923ba(_0xb7e07a)));break;}}});}['_processAttributeChanges'](_0x50a1dc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a3b80=this['editor'],_0x1d2e94=_0x2a3b80['model']['document']['differ']['getChanges']();if(0x0==_0x1d2e94['length'])return!0x1;const _0x4f5328=[],_0x2761c8=_0x1d2e94['filter'](_0x33bbd6=>'attribute'==_0x33bbd6['type']),_0x3bd274=_0x1d2e94['filter'](_0x3ce65f=>'insert'==_0x3ce65f['type']&&'$text'!=_0x3ce65f['name']),_0x539b34=_0x1d2e94['filter'](_0x2bea92=>'remove'==_0x2bea92['type']&&'$text'!=_0x2bea92['name']);for(const _0x4de1e4 of _0x2761c8)_0x4f5328['push']({'key':_0x4de1e4['attributeKey'],'newValue':_0x4de1e4['attributeNewValue'],'oldValue':_0x4de1e4['attributeOldValue'],'range':Yt(_0x4de1e4['range'],_0x2a3b80['model'])});for(const _0x520e6a of _0x3bd274){const _0x335b52=_0x539b34['find'](_0x4c9f21=>_0x4c9f21['position']['isEqual'](_0x520e6a['position']));_0x335b52&&_0x4f5328['push']({'key':m,'newValue':_0x520e6a['name'],'oldValue':_0x335b52['name'],'range':_0x2a3b80['model']['createRangeOn'](_0x520e6a['position']['nodeAfter'])});}return 0x0!=_0x4f5328['length']&&this['_reduceExistingSuggestions'](_0x50a1dc,_0x4f5328);}['_processAttributeSuggestions'](_0x1e23f5){let _0x493175=!0x1;const _0x3e23e7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d5a9b=>_0x4d5a9b['data']['newRange']&&_0x4d5a9b['name']['startsWith']('suggestion:attribute:'));for(const _0x302e9c of _0x3e23e7){const {subType:_0x2ca4cf,id:_0x1af4a3}=this['_splitMarkerName'](_0x302e9c['name']),_0x4700a0=_0x2ca4cf['split']('|')[0x0];for(const _0x323336 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x323336['id']!=_0x1af4a3&&'attribute'==_0x323336['type']&&_0x323336['data']&&_0x323336['data']['key']==_0x4700a0&&_0x323336['getFirstRange']()['isIntersecting'](_0x302e9c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x323336,_0x302e9c['data']['newRange'],_0x1e23f5),_0x493175=!0x0);}return _0x493175;}['recordAttributeChanges'](_0x165d74){this['_recordAttributeSuggestions']=!0x0,_0x165d74();}['_isRegisteredAttribute'](_0x52060d){return this['editor']['plugins']['get'](_0x2dc7a8)['isRegisteredAttribute'](_0x52060d);}['_reduceExistingSuggestions'](_0x5793f5,_0xebb0f8){if(0x0==_0xebb0f8['length'])return!0x1;let _0x92a244=!0x1;for(const _0x27b5af of _0xebb0f8){const _0x1c79d4=this['_findSuggestions'](_0x27b5af['range'],'attribute')['filter'](_0x3fce1d=>!_0x3fce1d['meta']['isNextTo'])['map'](_0x4dde35=>_0x4dde35['suggestion']),_0x59240b=_0xa636f({'newValue':_0x27b5af['newValue']});_0x1c79d4['filter'](_0x17b0b5=>{const [_0x4b9aea,_0x588c22]=_0x17b0b5['subType']['split']('|');return _0x4b9aea==_0x27b5af['key']&&_0x588c22!=_0x59240b;})['forEach'](_0x3ad5b5=>{this['_reduceSuggestionAttributeRange'](_0x3ad5b5,_0x27b5af['range'],_0x5793f5),_0x92a244=!0x0;});}return _0x92a244;}['_reduceSuggestionAttributeRange'](_0x42848a,_0xc43db6,_0x851364){const _0x2b3a58=_0x42848a['getFirstRange']()['getDifference'](_0xc43db6);0x0!==_0x2b3a58['length']?0x1!==_0x2b3a58['length']?this['_breakSuggestionMarker'](_0x42848a,_0xc43db6['start'],_0xc43db6['end']):this['_setSuggestionRange'](_0x42848a,_0x2b3a58[0x0]):_0x851364['removeMarker'](_0x42848a['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4e9049){this['_editor']=_0x4e9049,this['_model']=_0x4e9049['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x55c49b,_0x387296,_0x1cb485,_0xa320f9,_0x4f7d4d,_0x39b4ff,_0x299dad){return new T(this['_model'],{'type':_0x55c49b,'subType':_0x387296,'id':_0x1cb485,'originalSuggestionId':_0x299dad,'author':_0xa320f9,'creator':_0xa320f9,'attributes':_0x4f7d4d,'onAttributesChange':_0x39b4ff,'onAccept':(..._0x3a9e11)=>this['getSuggestionCallback'](_0x55c49b,_0x387296,'accept')(..._0x3a9e11),'onDiscard':(..._0x2d940e)=>this['getSuggestionCallback'](_0x55c49b,_0x387296,'discard')(..._0x2d940e)});}['registerCustomCallback'](_0x1d0ab8,_0x4760ee,_0x40d1ea,_0x8a9e74){const _0x3f8cd7=_0x1d0ab8+':'+_0x4760ee+':'+_0x40d1ea;this['_customCallbacks']['set'](_0x3f8cd7,_0x8a9e74);}['getSuggestionCallback'](_0x3b3776,_0xb11f55,_0xc4f951){const _0x3a7915=_0x3b3776+':'+_0xb11f55+':'+_0xc4f951;return this['_customCallbacks']['get'](_0x3a7915)||this['_defaultCallbacks']['get'](_0x3b3776+':'+_0xc4f951);}['_registerDefaultCallbacks'](){const _0x380531=()=>!0x1,_0x4a7393=_0x5543f8=>{_0x5543f8['sort']((_0x268e1b,_0x36c1de)=>_0x268e1b['start']['isBefore'](_0x36c1de['start'])?0x1:-0x1),this['_model']['change'](_0x30e354=>{for(const _0x1eaa5c of _0x5543f8){let _0x1a61c2;_0x1a61c2=_0x1eaa5c['end']['isAtEnd']&&_0x1eaa5c['end']['parent']==_0x1eaa5c['start']['nodeAfter']?_0x30e354['createSelection'](_0x1eaa5c['start']['nodeAfter'],'on'):_0x30e354['createSelection'](_0x1eaa5c),this['_model']['deleteContent'](_0x1a61c2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x15701e=(_0x1dc2b1,_0x16e39c)=>{_0x16e39c&&this['_model']['change'](_0x2e8100=>{const {commandName:_0x274dd7,commandParams:_0x4c5c06=[]}=_0x16e39c,_0x208d64=_0x1dc2b1['map'](_0x57b1c6=>(zt(_0x57b1c6)&&(_0x57b1c6=this['_model']['createRange'](_0x57b1c6['end'])),_0x57b1c6))['filter'](_0x28a793=>'$graveyard'!==_0x28a793['root']['rootName']);if(_0x208d64['length']<0x1)return;const _0x14b862=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1bde21=>_0xfc1203['fromRange'](_0x1bde21));_0x2e8100['setSelection'](_0x208d64);for(const _0x5ccb01 of this['_editor']['commands']['commands']())_0x5ccb01['refresh']();_0x4c5c06['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x274dd7,..._0x4c5c06);const _0x592a11=_0x14b862['filter'](_0x98a8a3=>'$graveyard'!=_0x98a8a3['root']['rootName']);_0x592a11['length']>0x0&&_0x2e8100['setSelection'](_0x592a11);for(const _0x5e3525 of _0x14b862)_0x5e3525['detach']();});},_0x276511=(_0x47d9fd,_0x923091)=>0x1==_0x47d9fd['length']&&0x1==_0x923091['length']&&_0x47d9fd[0x0]['end']['isEqual'](_0x923091[0x0]['start']),_0x5942ac=(_0x42c155,_0x5c2f3e,_0x3e3421,_0x3ae61f)=>tn(_0x42c155,_0x5c2f3e,_0x3e3421,_0x3ae61f)?[_0x42c155,_0x5c2f3e]:tn(_0x5c2f3e,_0x42c155,_0x3ae61f,_0x3e3421)?[_0x5c2f3e,_0x42c155]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x380531),this['_defaultCallbacks']['set']('insertion:discard',_0x4a7393),this['_defaultCallbacks']['set']('insertion:join',_0x276511),this['_defaultCallbacks']['set']('insertion:chain',_0x5942ac),this['_defaultCallbacks']['set']('deletion:accept',_0x4a7393),this['_defaultCallbacks']['set']('deletion:discard',_0x380531),this['_defaultCallbacks']['set']('deletion:join',_0x276511),this['_defaultCallbacks']['set']('deletion:chain',_0x5942ac),this['_defaultCallbacks']['set']('formatInline:accept',_0x15701e),this['_defaultCallbacks']['set']('formatInline:discard',_0x380531),this['_defaultCallbacks']['set']('formatInline:join',_0x276511),this['_defaultCallbacks']['set']('formatInline:chain',_0x380531),this['_defaultCallbacks']['set']('formatBlock:accept',_0x15701e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x380531),this['_defaultCallbacks']['set']('formatBlock:join',_0x276511),this['_defaultCallbacks']['set']('formatBlock:chain',_0x380531),this['_defaultCallbacks']['set']('attribute:accept',_0x380531),this['_defaultCallbacks']['set']('attribute:discard',(_0x222fa3,_0x1fd44f)=>{if(!_0x1fd44f)return;const _0x453d83=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x39dba5=>{if(_0x1fd44f['key']==m)for(const _0x381f3a of _0x222fa3){const _0x4ce8dd=_0x381f3a['start']['nodeAfter'],_0x16f2e4=_0x1fd44f['oldValue'];_0x39dba5['rename'](_0x4ce8dd,_0x16f2e4);}else{if(_0x453d83['_isBlockAttribute'](_0x1fd44f['key'])){for(const _0x28b324 of _0x222fa3)void 0x0!==_0x1fd44f['oldValue']?_0x39dba5['setAttribute'](_0x1fd44f['key'],_0x1fd44f['oldValue'],_0x28b324['start']['nodeAfter']):_0x39dba5['removeAttribute'](_0x1fd44f['key'],_0x28b324['start']['nodeAfter']);}else{for(const _0x6c9789 of _0x222fa3)_0x1fd44f['oldValue']?_0x39dba5['setAttribute'](_0x1fd44f['key'],_0x1fd44f['oldValue'],_0x6c9789):_0x39dba5['removeAttribute'](_0x1fd44f['key'],_0x6c9789);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x276511);}}function qt(_0x280f37,_0xa3f68d,_0x1721cc){for(const _0x154fa6 of _0xa3f68d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x154fa6['root']==_0x154fa6)return!0x1;if(!_0x1721cc['containsItem'](_0x154fa6))return!0x1;if(_0x280f37['isObject'](_0x154fa6)||_0x280f37['isLimit'](_0x154fa6))return!0x0;}return!0x1;}function zt(_0x2c7116){return _0x2c7116['end']['parent']==_0x2c7116['start']['nodeAfter']&&_0x2c7116['end']['isAtStart'];}function Kt(_0x5b7175,_0x9427b0,_0x5da838,_0x44078a){const _0x23dbe6=_0x14cea7=>!_0x14cea7['item']['is']('$textProxy')&&!_0x44078a['isObject'](_0x14cea7['item']),_0x2083ad=_0x5b7175['start']['getLastMatchingPosition'](_0x23dbe6),_0x2ce3ff=_0x5b7175['end']['getLastMatchingPosition'](_0x23dbe6,{'direction':'backward'});return(!_0x5b7175['start']['isEqual'](_0x2083ad)||!_0x5b7175['end']['isEqual'](_0x2ce3ff))&&(_0x2083ad['isBefore'](_0x2ce3ff)?_0x5da838['updateMarker'](_0x9427b0,{'range':_0x5da838['createRange'](_0x2083ad,_0x2ce3ff)}):_0x5da838['removeMarker'](_0x9427b0),!0x0);}function Wt(_0x2d9194){return _0xa636f(_0x2d9194);}function Ht(_0x168bec){const _0x5edf06=_0x168bec['start']['nodeAfter'];return _0x5edf06&&_0x5edf06['is']('element');}function Qt(_0x590647){return zt(_0x590647)||function(_0x320d5f){return _0x320d5f['start']['parent']==_0x320d5f['end']['nodeBefore']&&_0x320d5f['start']['isAtEnd'];}(_0x590647);}function Xt(_0x3ea896,_0x46b324){try{const _0x205026=_0x3ea896['getRange']();for(const _0x415f2f of _0x46b324)if(_0x3ea896!==_0x415f2f&&_0x205026&&_0x205026['isIntersecting'](_0x415f2f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x5e2004,_0x42563c){return null==_0x5e2004['end']['nodeBefore']&&_0x5e2004['end']['parent']==_0x5e2004['start']['nodeAfter']?Zt(_0x5e2004['start']['nodeAfter'],_0x42563c):_0x5e2004;}function Zt(_0x369051,_0x16068f){const _0x517cb8=_0x16068f['schema']['isObject'](_0x369051)||_0x16068f['schema']['isSelectable'](_0x369051);return _0x16068f['createRange'](_0x16068f['createPositionAt'](_0x369051,'before'),_0x517cb8?_0x16068f['createPositionAfter'](_0x369051):_0x16068f['createPositionAt'](_0x369051,'end'));}function tn(_0x51ce36,_0x4672a3,_0x8f58b9,_0x3d658c){return!!nn(_0x51ce36,_0x4672a3)&&_0x8f58b9['end']['isEqual'](_0x3d658c['start']);}function nn(_0x48a4dc,_0x17ad7e){if(!_0x48a4dc['_isDataLoaded']||!_0x17ad7e['_isDataLoaded'])return!0x1;const _0x173e5d=new Set(Object['keys'](_0x48a4dc['attributes'])),_0x21bf6b=new Set(Object['keys'](_0x17ad7e['attributes']));if(_0x173e5d['delete']('groupId'),_0x21bf6b['delete']('groupId'),0x0==_0x173e5d['size']&&0x0==_0x21bf6b['size'])return!0x0;if(_0x173e5d['size']!=_0x21bf6b['size'])return!0x1;const _0x213fc9={..._0x48a4dc['attributes']},_0x46fc10={..._0x17ad7e['attributes']};return delete _0x213fc9['groupId'],delete _0x46fc10['groupId'],JSON['stringify'](_0x213fc9)==JSON['stringify'](_0x46fc10);}function en(_0x365301,_0x5df7ee){const _0x50fd57=sn(_0x365301['attributes']),_0x1803af=sn(_0x5df7ee);if(!_0x365301['_isDataLoaded'])return!0x1;for(const _0x408f78 of Object['keys'](_0x1803af))if(!_0x5c135e(_0x50fd57[_0x408f78],_0x1803af[_0x408f78]))return!0x1;return!0x0;}function sn(_0x5a43d8){const _0x505d78=Object['assign']({},_0x5a43d8);return delete _0x505d78['skipNestingCheck'],delete _0x505d78['tablePasteChainId'],_0x505d78;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xa24922(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21265f,_0x374ab2,_0x5657e8,_0x18134d){super(),this['model']=_0x374ab2,this['view']=_0x5657e8,this['commentThreadController']=_0x18134d,this['_editor']=_0x21265f,this['_acceptCommand']=_0x21265f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21265f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x176e87,_0x51e062)=>_0x176e87||_0x51e062),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8c048d=>_0x8c048d&&this['_editor']['model']['canEditAt'](_0x374ab2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c8b26=>_0x5c8b26&&this['_editor']['model']['canEditAt'](_0x374ab2['getRanges']())),this['_pendingAction']=null,_0x5657e8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5657e8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5657e8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5657e8,'change:isDirty',()=>{_0x5657e8['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 _0x516960=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x516960);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x581a2d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x10e9bc,_0x289f72,_0x1f91d7,_0x4ab2d2){super(_0x10e9bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xece040(_0x10e9bc,o(_0x10e9bc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x289f72['authoredAt']),this['bind']('authoredAt')['to'](_0x289f72),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',_0x289f72,'authoredAt',this,'descriptionParts',(_0x554a1a,_0x5e9dff,_0x26e7e3)=>{const _0x1c664f=_0x26e7e3['map'](_0x546064=>ls(_0x546064['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x554a1a-0x1,_0x289f72['author']['name'],_0x5e9dff?_0x4ab2d2['formatDateTime'](_0x5e9dff):'',new DOMParser()['parseFromString'](_0x1c664f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5caa43(),this['focusTracker']=new _0x1db73d(),this['keystrokes']=new _0x54a461(),this['focusCycler']=new _0xa87013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x47b34b=>_0x47b34b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x289f72,this['_localUser']=_0x1f91d7,this['_config']=_0x4ab2d2,_0x4ab2d2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xfd4b34(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2e3699}=this['_config'];this['commentsListView']=new _0x2e3699(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',_0x4ebb11=>_0x4ebb11+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x742b0d,_0x23873a)=>_0x742b0d||!!_0x23873a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32bc5a}=this['_config'],_0x57a439=new _0x32bc5a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x80da9b=_0x57a439['commentInputView'];return _0x57a439['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x80da9b,'value',(_0x2391e2,_0x2c2de1,_0x4df300)=>!!_0x4df300||_0x2391e2&&!_0x2c2de1),_0x80da9b['on']('submit',(_0x442c40,_0x408efe)=>{this['fire']('addComment',_0x408efe),_0x80da9b['editor']['setData']('');}),_0x80da9b['on']('cancel',()=>this['focus']()),_0x80da9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57a439;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xe7449c,_0x2df87f,_0x9336dd,_0x1be821){super(_0xe7449c,_0x2df87f,_0x9336dd,_0x1be821),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f23dc=>_0x1f23dc&&_0x1f23dc[0x0]?_0x1f23dc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f818f,_0x14c5bc)=>{let _0x1cc5fa='';for(const _0x3aa193 of _0x4f818f)_0x1cc5fa+='<p>'+ls(_0x3aa193['content'],_0x3aa193['color'])+'</p>';return _0x14c5bc?_0x1cc5fa:_0x2f9193(_0x1cc5fa,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1be821['SuggestionView'](_0xe7449c,_0x2df87f,{'formatDateTime':_0x1be821['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 _0x389927=this['bindTemplate'],_0x2d8e80=[this['suggestionView']];return this['commentsListView']&&_0x2d8e80['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d8e80['push'](this['commentThreadInputView']),_0x2d8e80['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x389927['if']('isActive','ck-suggestion-wrapper--active'),_0x389927['to']('type',_0x9f7d01=>'ck-suggestion-'+_0x9f7d01),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':_0x389927['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d8e80};}['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 _0x581a2d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x41e78f,_0x4ad519,_0x5644ff){super(_0x41e78f),this['_model']=_0x4ad519,this['_config']=_0x5644ff,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ad519),this['acceptButton']=this['_createButton'](o(_0x41e78f,'Accept\x20suggestion'),_0xbd233b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x41e78f,'Discard\x20suggestion'),_0x2405cc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x50a768(_0x41e78f,_0x4ad519['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5caa43([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1db73d(),this['keystrokes']=new _0x54a461(),this['focusCycler']=new _0xa87013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x368aa8=>_0x368aa8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x20057c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x20057c['innerHTML']=this['description'],this['on']('change:description',(_0x479ca0,_0x45f7a1,_0x443393)=>{_0x20057c['innerHTML']=_0x443393;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1fd998=this['bindTemplate'],_0x1e2da5=[{'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':_0x1fd998['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1fd998['to']('authoredAt',_0x463bbc=>this['_config']['formatDateTime'](_0x463bbc))}]}]},{'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']&&_0x1e2da5['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':_0x1e2da5}]};}['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'](_0x5657df,_0x14d5e0,_0x3b3c7b,_0x30200a,_0x4b6286){const _0x3f434a=new _0x44443e(this['locale']);return _0x3f434a['set']({'label':_0x5657df,'icon':_0x14d5e0,'tooltip':!0x0,'tooltipPosition':_0x4b6286}),_0x3f434a['extendTemplate']({'attributes':{'class':_0x3b3c7b}}),_0x3f434a['on']('execute',()=>{this['fire'](_0x30200a,this['_model']['id']);}),_0x3f434a;}['_setupKeyboardNavigation'](){const _0x225556=this['element'];this['keystrokes']['listenTo'](_0x225556);for(const _0x376e9c of this['focusables'])this['focusTracker']['add'](_0x376e9c['element']),this['keystrokes']['listenTo'](_0x376e9c['element']);this['keystrokes']['set']('enter',(_0xf5dc70,_0x496a38)=>{_0x225556===_0xf5dc70['target']&&(this['focusCycler']['focusFirst'](),_0x496a38());}),this['keystrokes']['set']('esc',(_0x2473bd,_0x51bc98)=>{_0x225556!==_0x2473bd['target']&&(this['focus'](),_0x51bc98());});}}class u extends _0x22959f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x32dac4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b258){super(_0x57b258),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x543abd=this['editor']['config'];_0x543abd['define']('trackChanges.SuggestionThreadView',fe),_0x543abd['define']('trackChanges.SuggestionView',we),_0x543abd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x543abd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x199e7c,_0x58593f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20eaeb,_0x119bd1]of this['_handleControllerBuffer']){const _0x5cd145=this['_suggestionToController']['has'](_0x20eaeb);_0x5cd145||_0x119bd1?_0x5cd145&&_0x119bd1&&this['_destroyController'](_0x20eaeb):this['_initializeController'](_0x20eaeb);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x199e7c,_0x58593f);}['init'](){const _0x5461c3=this['editor'],_0x4a3096=_0x5461c3['plugins']['get']('TrackChangesEditing'),_0x45b902=_0x5461c3['plugins']['get']('Annotations'),_0x13452e=_0x5461c3['plugins']['get']('EditorAnnotations'),_0x4f7fca=_0x5461c3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x13452e['addSourceCollector'](()=>{const _0x2527f1=[];for(const [_0x34c45f,_0x5ce8d2]of Array['from'](this['_suggestionToController'])){const _0x55b240=_0x34c45f['getAllAdjacentSuggestions'](),_0x192c10=[];for(const _0x4c84f5 of _0x55b240){if(!_0x4c84f5['isInContent'])continue;if(_0x4c84f5['isMultiRange']){_0x192c10['push'](..._0x4c84f5['getRanges']());continue;}const _0xd36b56=_0x4c84f5['getFirstRange']();if(_0x192c10['length']>0x0){const _0x18e54a=_0x192c10[0x0]['getJoined'](_0xd36b56);if(_0x18e54a){_0x192c10[0x0]=_0x18e54a;continue;}}_0x192c10['push'](_0xd36b56);}_0x2527f1['push']([_0x5ce8d2['view'],_0x192c10]);}return _0x2527f1;}),this['listenTo'](_0x4a3096,'suggestionLoaded',(_0x205f46,_0x253c61)=>{this['listenTo'](_0x253c61,'change:previous',(_0x45ef37,_0x4d8486,_0x279467,_0x1608bb)=>{_0x253c61['isInContent']&&(null==_0x279467?(this['_updateController'](_0x1608bb['head']),this['_handleSuggestionControllerDelayed'](_0x253c61,!0x1)):(this['_updateController'](_0x279467['head']),null==_0x1608bb&&this['_handleSuggestionControllerDelayed'](_0x253c61,!0x0)));}),null!==_0x253c61['previous']?this['_updateController'](_0x253c61['head']):this['_handleSuggestionControllerDelayed'](_0x253c61,!0x1);}),this['listenTo'](_0x4a3096,'suggestionUnloaded',(_0x30d4d6,_0x2d45cb,_0x57ef19)=>{this['stopListening'](_0x2d45cb,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d45cb),this['_suggestionToController']['has'](_0x2d45cb)&&this['_destroyController'](_0x2d45cb),_0x57ef19&&this['_updateController'](_0x57ef19['head']);}),this['listenTo'](_0x4a3096,'suggestionChanged',(_0x5b2744,_0x5540ad)=>{this['_updateController'](_0x5540ad);}),this['listenTo'](_0x45b902,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f7fca,'addComment',(_0x551848,{threadId:_0x147120,isFromAdapter:_0x6b67a9})=>{if(_0x6b67a9||!_0x4a3096['hasSuggestion'](_0x147120))return;const _0x29167c=_0x4a3096['getSuggestion'](_0x147120);this['_suggestionToController']['get'](_0x29167c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x31c5d3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3bcd61;for(const _0x4121f5 in _0x31c5d3){const _0x27764d=_0x4121f5,_0x1add82=_0x31c5d3[_0x27764d];if('trackChangesLicenseKeyValid'==_0x1add82||'trackChangesLicenseKeyInvalid'==_0x1add82||'trackChangesLicenseKeyExpired'==_0x1add82||'trackChangesLicenseKeyDomainLimit'==_0x1add82||'trackChangesLicenseKeyNotAllowed'==_0x1add82||'trackChangesLicenseKeyEvaluationLimit'==_0x1add82||'trackChangesLicenseKeyUsageLimit'==_0x1add82){delete _0x31c5d3[_0x27764d],_0x3bcd61=_0x1add82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3bcd61&&_0x31c5d3['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2a7e6b){const _0x3907b3=this['_suggestionToController']['get'](_0x2a7e6b);if(!_0x3907b3)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3907b3['view'])||null;}['getSuggestionForAnnotation'](_0x56c53f){const _0x44866f=this['_viewToController']['get'](_0x56c53f['innerView']);return _0x44866f?_0x44866f['model']:null;}['_refreshActiveMarkers'](){const _0x3bab3d=this['editor']['plugins']['get']('Annotations'),_0x689382=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e6a34=Array['from'](_0x3bab3d['activeAnnotations'],_0x584a2b=>_0x584a2b['innerView'])['filter'](_0x2a8287=>this['_viewToController']['has'](_0x2a8287)),_0x209544=[];for(const _0x2c9260 of _0x5e6a34){const _0x5d8b93=this['_viewToController']['get'](_0x2c9260)['model']['getAllAdjacentSuggestions']();_0x209544['push'](..._0x5d8b93['reduce']((_0x43505e,_0x22d006)=>[..._0x43505e,..._0x22d006['getMarkerNames']()],[]));}_0x689382['activeMarkers']=_0x209544;}['_addUIComponentsToFactory'](){const _0x21afd1=this['editor'],_0x294e7c=_0x21afd1['locale'],_0x5a42f4=o(_0x294e7c,'Track\x20changes'),_0x3ff0bc=new _0x358b4a([{'type':'switchbutton','model':new _0x3a99a9({'withText':!0x0,'isToggleable':!0x0,'label':_0x5a42f4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x21afd1['plugins']['has']('TrackChangesPreview')&&_0x3ff0bc['addMany']([{'type':'separator'},{'type':'button','model':new _0x3a99a9({'withText':!0x0,'label':o(_0x294e7c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c6e5f of _0x3ff0bc)if(ke(_0x2c6e5f)){const _0x3da2a8=_0x21afd1['commands']['get'](_0x2c6e5f['model']['commandName']);_0x2c6e5f['model']['bind']('isOn','isEnabled')['to'](_0x3da2a8,'value','isEnabled');}_0x21afd1['ui']['componentFactory']['add']('trackChanges',_0x33772f=>this['_createToolbarButton'](_0x33772f,_0x3ff0bc,_0x5a42f4)),_0x21afd1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21b831=>this['_createMenuBarMenu'](_0x21b831,_0x3ff0bc,_0x5a42f4));}['_createToolbarButton'](_0x28ec1e,_0x3bfcae,_0x9de02f){const _0x1b2049=_0x3fc811(_0x28ec1e,_0x48905c),_0x4201c6=this['editor']['commands']['get']('trackChanges');_0x1b2049['buttonView']['set']({'tooltip':_0x9de02f,'label':_0x9de02f,'icon':_0x15c4d6}),_0x1b2049['buttonView']['bind']('isOn')['to'](_0x4201c6,'value'),_0x1b2049['buttonView']['on']('execute',()=>{_0x4201c6['execute'](),this['editor']['editing']['view']['focus']();}),_0x5e3f8b(_0x1b2049,_0x3bfcae,{'role':'menu'});const _0x3f9ad0=[];for(const _0x54a0be of _0x3bfcae)ke(_0x54a0be)&&_0x3f9ad0['push'](this['editor']['commands']['get'](_0x54a0be['model']['commandName']));const _0x983541=_0x1b2049['buttonView'];return _0x983541['actionView']['unbind']('isEnabled'),_0x983541['arrowView']['unbind']('isEnabled'),_0x983541['actionView']['bind']('isEnabled')['to'](_0x4201c6,'isEnabled'),_0x983541['arrowView']['bind']('isEnabled')['toMany'](_0x3f9ad0,'isEnabled',(..._0x5bcaeb)=>_0x5bcaeb['some'](_0x2602cc=>_0x2602cc)),_0x1b2049['on']('execute',_0x2222d8=>{this['editor']['execute'](_0x2222d8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b2049;}['_createMenuBarMenu'](_0xcc54a4,_0x112905,_0x2d3aa7){const _0x1ec907=new _0x2ae14c(_0xcc54a4),_0x5204f8=this['editor']['commands']['get']('trackChanges');_0x1ec907['buttonView']['set']({'label':_0x2d3aa7,'icon':_0x15c4d6});const _0x5e19a3=new _0x1889ad(_0xcc54a4);for(const _0x15243c of _0x112905){if('separator'==_0x15243c['type']){_0x5e19a3['items']['add'](new _0x212a40(_0xcc54a4));continue;}const _0x44ec2d=new _0x24c920(_0xcc54a4,_0x1ec907),_0x375204=new _0x3aac14(_0xcc54a4),_0x16b934=_0x15243c['model'];_0x375204['bind'](...Object['keys'](_0x16b934))['to'](_0x16b934),_0x375204['delegate']('execute')['to'](_0x1ec907),_0x375204['on']('execute',()=>{this['editor']['execute'](_0x16b934['commandName']),this['editor']['editing']['view']['focus']();}),_0x44ec2d['children']['add'](_0x375204),_0x5e19a3['items']['add'](_0x44ec2d);}return _0x1ec907['bind']('isEnabled')['to'](_0x5204f8,'isEnabled'),_0x1ec907['panelView']['children']['add'](_0x5e19a3),_0x1ec907;}['_initializeController'](_0x43665b){const _0x4e8cdd=this['editor'],_0x5dc4e2=_0x4e8cdd['config'],_0xd89b1e=_0x4e8cdd['plugins']['get']('Annotations'),_0x27a463=_0x4e8cdd['plugins']['get']('CommentsRepository'),_0x382c9f=_0x4e8cdd['plugins']['get']('EditorAnnotations'),_0x3dcb6d=_0x4e8cdd['plugins']['get'](_0x32dac4)['me'],_0x233523=_0x5dc4e2['get']('trackChanges')['SuggestionThreadView'],_0x5031b0=_0x5dc4e2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xfcc09c,CommentThreadInputView:_0x43c105}=_0x4e8cdd['plugins']['get']('CommentsUI');let _0x262154,_0x1bb7aa,_0x277e90;this['_annotationViews']['has'](_0x43665b['id'])?(_0x1bb7aa=this['_annotationViews']['get'](_0x43665b['id']),_0x262154=_0x1bb7aa['mainView']):(_0x262154=new _0x233523(_0x4e8cdd['locale'],_0x43665b,_0x3dcb6d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5dc4e2['get']('comments.editorConfig'),'licenseKey':_0x5dc4e2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5dc4e2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5dc4e2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5dc4e2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x55c261(_0x5dc4e2['get']('locale'),_0x4e8cdd['locale']),'CommentView':_0x5dc4e2['get']('comments')['CommentView'],'CommentsListView':_0xfcc09c,'CommentThreadInputView':_0x43c105,'SuggestionView':_0x5031b0}),_0x262154['suggestionView']['acceptButton']['on']('execute',()=>{_0x4e8cdd['editing']['view']['focus']();}),_0x262154['suggestionView']['discardButton']['on']('execute',()=>{_0x4e8cdd['editing']['view']['focus']();}),_0x1bb7aa=_0xd89b1e['createAnnotationView'](this['editor']['locale'],_0x262154),_0x1bb7aa['bind']('isDirty')['to'](_0x262154,'isDirty'),_0x1bb7aa['bind']('length')['to'](_0x262154),_0x1bb7aa['bind']('type')['to'](_0x262154,'type',_0x17f8d5=>'suggestion-'+_0x17f8d5),_0x262154['on']('escape',()=>{_0x277e90['fire']('escape');}),this['_annotationViews']['set'](_0x43665b['id'],_0x1bb7aa));const _0x126537=_0x27a463['createCommentThreadController'](_0x43665b['commentThread'],_0x262154),_0x3344eb=new pe(_0x4e8cdd,_0x43665b,_0x262154,_0x126537),_0x256c3e=_0x43665b['getAllAdjacentSuggestions']()['filter'](_0x5112a3=>_0x5112a3['isInContent']);_0x262154['descriptionParts']=_0x4e8cdd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x256c3e),this['_suggestionToController']['set'](_0x43665b,_0x3344eb),this['_viewToController']['set'](_0x262154,_0x3344eb);const _0x1479ed=()=>{const _0x1098e4=[],_0x3fabaa=_0x43665b['getAllAdjacentSuggestions']()['filter'](_0x3e5503=>_0x3e5503['isInContent']);for(const _0x293370 of _0x3fabaa)_0x1098e4['push'](..._0x293370['getMarkers']());return _0x497f67(_0x4e8cdd['editing'],_0x1098e4);};_0x277e90=_0xd89b1e['createAnnotation']({'view':_0x1bb7aa,'target':_0x1479ed,'type':()=>'suggestion-'+_0x3344eb['view']['type'],'isVisible':!!_0x1479ed()}),_0x27a463['_bindAnnotationToEditors'](_0x262154,_0x277e90),_0xd89b1e['add'](_0x277e90),_0x382c9f['registerAnnotation'](_0x277e90);}['_destroyController'](_0x26ef4e){const _0x26a68e=this['editor']['plugins']['get']('CommentsRepository'),_0x630758=this['editor']['plugins']['get']('Annotations'),_0x25c164=this['_suggestionToController']['get'](_0x26ef4e),_0x53d3c5=_0x25c164['view'],_0x4fb43b=_0x630758['getByInnerView'](_0x53d3c5);_0x26a68e['_unbindEditors'](_0x53d3c5),_0x4fb43b&&_0x630758['remove'](_0x4fb43b),this['_suggestionToController']['delete'](_0x26ef4e),this['_viewToController']['delete'](_0x53d3c5),_0x25c164['destroy']();}['_updateController'](_0x1073d1){if(!_0x1073d1['isInContent']||!this['_suggestionToController']['has'](_0x1073d1))return;const _0xcf5df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x576b9f=this['_suggestionToController']['get'](_0x1073d1),_0x22ccad=_0x1073d1['getAllAdjacentSuggestions']();_0x576b9f['view']['descriptionParts']=_0xcf5df['descriptionFactory']['getDescriptions'](_0x22ccad);}['destroy'](){for(const _0x4287da of this['_suggestionToController']['keys']())this['_destroyController'](_0x4287da);for(const _0x18fb5b of this['_annotationViews']['values']())_0x18fb5b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4ceea0){return'model'in _0x4ceea0;}class TrackChanges extends _0x22959f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x248c98){this['editor']['plugins']['get'](d)['adapter']=_0x248c98;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x170816){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x170816);}['getSuggestions']({skipNotAttached:_0x5b6e0f=!0x1,toJSON:_0x32bd9a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b6e0f,'toJSON':_0x32bd9a});}['getSuggestion'](_0x5e5984){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5e5984);}}const p=['Pagination'];class re extends _0x22959f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43323b=this['editor'];if(_0x43323b['config']['define']('trackChangesData.editorCreator',_0x24d276=>{const _0x46853f=_0x43323b['model']['document']['getRootNames']()['reduce']((_0x4e0780,_0x2ed5b7)=>(_0x4e0780[_0x2ed5b7]='',_0x4e0780),{});return _0x43323b['constructor']['create'](_0x46853f,_0x24d276);}),'function'!=typeof _0x43323b['config']['get']('trackChangesData')['editorCreator'])throw new _0x5ab934('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x410a05){return P(this['editor'],!0x0,_0x410a05);}['getDataWithDiscardedSuggestions'](_0xdcc3df){return P(this['editor'],!0x1,_0xdcc3df);}}class TrackChangesDataGetter extends _0x22959f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x444713){function _0x3961db(_0x31bceb){return _0x31bceb['map'](_0x49c104=>String['fromCharCode'](_0x49c104))['join']('');}super(_0x444713),this['result']='end',_0x444713[_0x3961db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3961db([0x76,0x69,0x65,0x77])][_0x3961db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3961db([0x61,0x75,0x74,0x6f]),_0x444713[_0x3961db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3961db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3961db([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3961db([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3961db([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 Ne(_0x5b4752){return void 0x0!==_0x5b4752['getRootsAttributes'];}async function P(_0x5d2f59,_0x4922d1,_0x1244fa){const _0x267a84=_0x774467(_0x5d2f59,p);_0x267a84['plugins']['push'](d,TrackChangesDataGetter),_0x267a84['rootsAttributes']=Ne(_0x5d2f59)?_0x5d2f59['getRootsAttributes']():void 0x0;const _0x42875f=document['createDocumentFragment'](),_0x50f123=_0x5d2f59['config']['get']('trackChangesData')['editorCreator'],_0x5df1c6=await _0x50f123(_0x267a84,()=>function(_0x111636){const _0x5a15ee=document['createElement']('div');return _0x111636['appendChild'](_0x5a15ee),_0x5a15ee;}(_0x42875f));!function(_0x215d46,_0x1e848c){const _0xadc82c=_0x215d46['model']['document']['getRootNames']()['reduce']((_0xef474a,_0x36acea)=>(_0xef474a[_0x36acea]=_0x215d46['data']['get']({'rootName':_0x36acea}),_0xef474a),{}),_0x47c0ac=_0x215d46['plugins']['get']('Users')['users']['map'](_0x269d60=>({'id':_0x269d60['id'],'name':_0x269d60['name']})),_0x593a48=_0x215d46['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xdc0be0=_0x215d46['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e4d5b=_0x1e848c['plugins']['get']('Users'),_0x2d082e=_0x1e848c['plugins']['get']('TrackChangesEditing'),_0x42cef9=_0x1e848c['plugins']['get']('CommentsRepository');for(const _0x396397 of _0x42cef9['getCommentThreads']())_0x396397['remove']();for(const _0x2cc772 of _0x47c0ac)_0x2e4d5b['getUser'](_0x2cc772['id'])||_0x2e4d5b['addUser'](_0x2cc772);_0x2e4d5b['me']||_0x2e4d5b['useAnonymousUser']();for(const _0x200883 of _0xdc0be0)_0x42cef9['addCommentThread'](_0x200883);for(const _0x173dcd of _0x593a48)_0x2d082e['addSuggestionData'](_0x173dcd);_0x1e848c['data']['set'](_0xadc82c);}(_0x5d2f59,_0x5df1c6),_0x5df1c6['execute'](_0x4922d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x51707e=Ne(_0x5df1c6)?_0x5df1c6['getFullData'](_0x1244fa):_0x5df1c6['data']['get'](_0x1244fa);return await _0x5df1c6['destroy'](),_0x51707e;}class Me extends _0x581a2d{['options'];constructor(_0x3ca10b,_0x5c9fde){super(_0x3ca10b),this['options']=_0x5c9fde,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'](_0x482381,_0x14380d){if(!this['element'])return;const _0x46378f=[];for(const [_0x2f8150,_0x804829]of _0x482381){const _0x4d9158=document['createElement']('div');_0x4d9158['setAttribute']('data-ck-root-name',_0x2f8150),_0x4d9158['className']=_0x804829['classes']+'\x20ck-track-changes-preview__root-container',_0x4d9158['innerHTML']=_0x804829['content'],_0x46378f['push'](_0x4d9158);}_0x14380d(this['element'],_0x46378f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x57590b{constructor(_0x19e2fb){super(_0x19e2fb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x551a96=this['editor'],_0x30d066=_0x551a96['locale'],_0x52ccd6=_0x551a96['plugins']['get']('Dialog');let _0x4e2177;const _0x30b7e3=function(_0x3fb89d){const _0x19b2ff={};if('editables'in _0x3fb89d['ui']['view']){for(const [_0x5a65c0,_0x468741]of Object['entries'](_0x3fb89d['ui']['view']['editables']))_0x19b2ff[_0x5a65c0]=_0x468741['element'];}else _0x19b2ff[_0x3fb89d['model']['document']['getRootNames']()[0x0]]=_0x3fb89d['ui']['view']['editable']['element'];return _0x19b2ff;}(_0x551a96),_0x4c52e2=function(_0x571429){let _0x14d108=0x0;for(const _0x2c81d1 of Object['values'](_0x571429))_0x14d108=Math['max'](_0x14d108,_0x2c81d1['getBoundingClientRect']()['width']);let _0x2aad98=0x0;for(const _0x4a9248 of Object['values'](_0x571429))_0x2aad98+=_0x4a9248['getBoundingClientRect']()['height'];const _0x27e766=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1c6f10=Math['min'](_0x2aad98,_0x27e766);return{'width':_0x14d108,'height':_0x1c6f10};}(_0x30b7e3);_0x52ccd6['show']({'id':'finalContentPreview','title':o(_0x30d066,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x30d066,{'dialogRects':_0x4c52e2}),'onHide':()=>{_0x4e2177['detachFromDom']();},'onShow':()=>{_0x551a96['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56a348=>{const _0x47deb0=this['_standarizeRootsData'](_0x56a348,_0x551a96,_0x30b7e3);_0x52ccd6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47deb0,_0x551a96['config']['get']('trackChanges.preview.renderFunction'));}),_0x4e2177=new _0x5c9131(_0x30d066,[_0x52ccd6['view']]),_0x4e2177['attachToDom'](),_0x4e2177['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x551a96['once']('destroy',()=>{_0x4e2177['detachFromDom']();});const _0x493af3=_0x52ccd6['view']['headerView']['class'];_0x52ccd6['view']['headerView']['class']=_0x493af3?_0x493af3+'\x20ck-reset_all':'ck-reset_all',_0x52ccd6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x52ccd6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x96ef19=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3222d6=_0x96ef19['previewMode'],_0x48ebe6={};if('$labels'===_0x3222d6){for(const _0x43b961 of _0x96ef19['getMergeFieldsIds']())_0x48ebe6[_0x43b961]=_0x96ef19['getLabel'](_0x43b961)||_0x43b961;}else{const _0x5e68f7='$defaultValues'===_0x3222d6?_0x96ef19['getDefaultValues']():_0x96ef19['getDataSetValues'](_0x3222d6,!0x0);for(const _0x4887bb of Object['entries'](_0x5e68f7)){const [_0x191d6f,_0xa017f7]=_0x4887bb;_0x48ebe6[_0x191d6f]=null!==_0xa017f7?_0xa017f7:_0x96ef19['getLabel'](_0x191d6f)||_0x191d6f;}}return{'mergeFieldsData':_0x48ebe6};}['_standarizeRootsData'](_0x9f8976,_0x2fb7d4,_0x452d05){let _0x2e059b;if('string'==typeof _0x9f8976){const _0x2bf100=_0x2fb7d4['model']['document']['getRootNames']()[0x0];_0x2e059b={[_0x2bf100]:_0x9f8976};}else _0x2e059b=_0x9f8976;const _0x139a99=this['_fixMediaEmbeds'](_0x2e059b,_0x2fb7d4),_0x561143=function(_0x39065f,_0x4e2178){for(const [_0x35ad6c,_0x372faa]of _0x39065f)_0x372faa['classes']=_0x4e2178[_0x35ad6c]['classList']['value']['replace']('ck-focused','');return _0x39065f;}(this['_sortRoots'](_0x2fb7d4)['reduce']((_0x19f04f,_0x5d0f9d)=>(_0x19f04f['push']([_0x5d0f9d,{'content':_0x139a99[_0x5d0f9d],'classes':''}]),_0x19f04f),[]),_0x452d05);return _0x561143;}['_fixMediaEmbeds'](_0x3e7fc8,_0x3d89a2){if(!_0x3d89a2['plugins']['has']('MediaEmbedEditing'))return _0x3e7fc8;const _0x561a86=_0x3d89a2['plugins']['get']('MediaEmbedEditing');for(const [_0xeeb4fb,_0x10f834]of Object['entries'](_0x3e7fc8)){const _0xfe9932=document['createElement']('div');_0xfe9932['innerHTML']=_0x10f834,(_0xfe9932['querySelectorAll']('figure.media')['forEach'](_0x541ce5=>{const _0x140d47=_0x541ce5['querySelector']('oembed');if(_0x140d47){const _0x2c5071=_0x140d47['getAttribute']('url');if(_0x2c5071){const _0x2910c9=_0x561a86['registry']['getMediaViewElement'](new _0xc50697(_0x3d89a2['editing']['view']['document']),_0x2c5071,{'elementName':'','renderForEditingView':!0x0}),_0x57ce46=document['createElement']('div');_0x57ce46['classList']['add']('ck-media__wrapper'),_0x2910c9['render'](_0x57ce46,_0x3d89a2['editing']['view']['domConverter']),_0x140d47['replaceWith'](_0x57ce46);}}}),_0x3e7fc8[_0xeeb4fb]=_0xfe9932['innerHTML']);}return _0x3e7fc8;}['_sortRoots'](_0x50da87){if(!function(_0x237787){return void 0x0!==_0x237787['getRootsAttributes'];}(_0x50da87))return _0x50da87['model']['document']['getRootNames']();const _0x3f0894=[],_0x4faca4=new Map();for(const _0x3d26e8 of _0x50da87['model']['document']['getRootNames']()){const _0x3ebf0a=_0x50da87['editing']['view']['getDomRoot'](_0x3d26e8)['getClientRects']()['item'](0x0);_0x3f0894['push'](_0x3d26e8),_0x4faca4['set'](_0x3d26e8,_0x3ebf0a);}return _0x3f0894['sort']((_0x300c3b,_0x5b79a1)=>{const _0x3433db=_0x4faca4['get'](_0x300c3b),_0x568d48=_0x4faca4['get'](_0x5b79a1);return _0x3433db['y']-_0x568d48['y']||_0x3433db['x']-_0x568d48['x'];}),_0x3f0894;}}class TrackChangesPreview extends _0x22959f{static get['requires'](){return[re,_0x355b64];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29a45f){super(_0x29a45f),_0x29a45f['commands']['add']('previewFinalContent',new te(this['editor'])),_0x29a45f['config']['define']('trackChanges.preview.renderFunction',(_0x32e4ae,_0xca1e25)=>{for(const _0x23edc6 of _0xca1e25)_0x32e4ae['appendChild'](_0x23edc6);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3d7124,Plugin as _0x3b85d6,PendingActions as _0x2e6dbe}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5f1dc4,ObservableMixin as _0x294311,uid as _0x3a9a7a,priorities as _0x4d5218,insertToPriorityArray as _0x39b344,logWarning as _0xa926f1,getEnvKeystrokeText as _0x21f5de,FocusTracker as _0x2b52d2,KeystrokeHandler as _0x873389,Collection as _0x21f154}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2516b5,IconCancel as _0x33db4e,IconTrackChanges as _0x2d77b1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x57fad0,View as _0x56f20e,ViewCollection as _0x1daddf,FocusCycler as _0x58f626,UIModel as _0x5e3ef2,createDropdown as _0x2e24c7,SplitButtonView as _0x48095b,addListToDropdown as _0x2a524a,MenuBarMenuView as _0x2a9bfc,MenuBarMenuListView as _0x3ab18a,ListSeparatorView as _0x4501e9,MenuBarMenuListItemView as _0x34716c,MenuBarMenuListItemButtonView as _0xb3696,BodyCollection as _0x3e3977,Dialog as _0x33a173}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0xc16869,Users as _0x5022c8,DocumentCompare as _0x19b6b6,fixElementSuggestionRange as _0x4aebf4,hashObject as _0x5719b5,splitSuggestionMarkerName as _0x4aac7f,surroundingMarkersDetector as _0x4038e0,FOCUS_ANNOTATION_KEYSTROKE as _0x4a2fe2,AriaDescriptionView as _0x16634c,setupThreadKeyboardNavigation as _0x33b754,trimHtml as _0x5c24f8,UserView as _0x4c032b,LateFocusButtonView as _0x16057c,getDateTimeFormatter as _0x5a83c5,getAllMarkersDomElementsSorted as _0x52676e,sanitizeEditorConfig as _0x153e6a}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x22f644,ModelLiveRange as _0x169dab,ModelLivePosition as _0x608ed7,ViewDowncastWriter as _0x1f96bd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x19ab6e,set as _0x43dcc1,isEqual as _0x409a95,unset as _0x1dff0f,omit as Jt}from'es-toolkit/compat';import{Delete as _0xb70c50,Input as _0x530576}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x225c73}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2468f0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3d7124{['_enabledCommands'];constructor(_0x281654,_0xac82c4){super(_0x281654),this['_enabledCommands']=_0xac82c4,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 _0x796fb5 of this['editor']['commands']['commands']())_0x796fb5['affectsData']&&!this['_enabledCommands']['has'](_0x796fb5)&&_0x796fb5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5baf2f of this['editor']['commands']['commands']())_0x5baf2f['affectsData']&&!this['_enabledCommands']['has'](_0x5baf2f)&&_0x5baf2f['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x3d7124{['_suggestions'];constructor(_0x5a4c56,_0x278daa){super(_0x5a4c56),this['_suggestions']=_0x278daa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x41ab67){const _0x2773ab=this['_suggestions']['get'](_0x41ab67);if(!_0x2773ab)throw new _0x5f1dc4('track-changes-accept-suggestion-not-found',this);const _0xad8ddf=_0x2773ab['getRanges']();this['editor']['model']['canEditAt'](_0xad8ddf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2773ab);}}class x extends _0x3d7124{['_suggestions'];constructor(_0x55a877,_0x412d0f){super(_0x55a877),this['_suggestions']=_0x412d0f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d9dbb){const _0x32c893=this['_suggestions']['get'](_0x5d9dbb);if(!_0x32c893)throw new _0x5f1dc4('track-changes-discard-suggestion-not-found',this);const _0x2b6674=_0x32c893['getRanges']();this['editor']['model']['canEditAt'](_0x2b6674)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x32c893);}}function ls(_0x427cee,_0x14054e){let _0x2ae66c='';return _0x2ae66c+=_0x427cee['split']('*')['map']((_0x2d0165,_0x2dc8fb)=>_0x2dc8fb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+on(_0x2d0165)+'</span>':on(_0x2d0165))['join'](''),_0x14054e&&(_0x2ae66c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x14054e['value']+'\x22\x20title=\x22'+_0x14054e['title']+'\x22></span>'),_0x2ae66c;}function on(_0x2ad167){const _0x19d0d4=document['createElement']('span');return _0x19d0d4['innerText']=_0x2ad167,_0x19d0d4['innerHTML'];}function ts(_0x212fe9){return _0x212fe9['sort']((_0x58396c,_0x48e541)=>'attribute'===_0x58396c['type']&&'attribute'!==_0x48e541['type']?-0x1:'attribute'!==_0x58396c['type']&&'attribute'===_0x48e541['type']?0x1:'deletion'==_0x58396c['type']&&'deletion'!=_0x48e541['type']?-0x1:'deletion'!=_0x58396c['type']&&'deletion'==_0x48e541['type']?0x1:0x0);}function to(_0x5d0b88,_0x2bef03){let _0x1272cb,_0x386b62=0x0;const _0x53d967=[],_0x426fe1=_0x2bef03['schema'];for(;_0x386b62<_0x5d0b88['length'];){const _0xdcf17e=_0x5d0b88[_0x386b62],_0x4958a0=_0x5d0b88[_0x386b62+0x1];_0x1272cb||(_0x1272cb=_0x2bef03['createPositionBefore'](_0xdcf17e)),rn(_0x2bef03,_0xdcf17e,_0x4958a0)||(_0x53d967['push'](_0x2bef03['createRange'](_0x1272cb,_0x426fe1['isObject'](_0xdcf17e)?_0x2bef03['createPositionAfter'](_0xdcf17e):_0x2bef03['createPositionAt'](_0xdcf17e,'end'))),_0x1272cb=null),_0x386b62++;}return _0x53d967;}function rn(_0x51f79e,_0x5bd02f,_0x48c4c6){if(!_0x48c4c6)return!0x1;const _0x237765=_0x51f79e['createPositionAfter'](_0x5bd02f),_0x33d8a5=_0x51f79e['createPositionBefore'](_0x48c4c6);return _0x237765['isTouching'](_0x33d8a5);}function rs(_0x5bbf41,_0x1a58c2,_0x4cb0b3){for(;_0x4cb0b3['length'];){const _0x2765e6=_0x4cb0b3['splice'](0x0,0x64);_0x5bbf41['change'](()=>{for(const _0x7f8e04 of _0x2765e6)_0x7f8e04['isInContent']&&_0x1a58c2['execute'](_0x7f8e04['id']);});}}class M extends _0x3d7124{['_command'];['_suggestions'];constructor(_0x4ae234,_0x322149,_0x1e8710){super(_0x4ae234),this['_command']=_0x322149,this['_suggestions']=_0x1e8710,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5dce7a=Array['from'](this['_suggestions']['values']())['some'](_0x3538c8=>_0x3538c8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5dce7a;}['execute'](){const _0x4c027b=ts(Array['from'](this['_suggestions']['values']()));for(const _0x13818e of _0x4c027b){const _0x180cd4=_0x13818e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x180cd4))return;}rs(this['editor']['model'],this['_command'],_0x4c027b);}}class R extends _0x3d7124{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x36af93,_0x294080,_0x20529e){super(_0x36af93),this['_command']=_0x294080,this['_suggestions']=_0x20529e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x469909=this['editor']['model']['document']['selection'],_0x42279a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x14bf05,_0x8ac0f3){const _0x55235d=Array['from'](_0x14bf05['getRanges']()),_0x19a736=new Set();for(const _0x244cdf of _0x8ac0f3)if(_0x244cdf['isInContent']){for(const _0x12df51 of _0x55235d)for(const _0x3e08d6 of _0x244cdf['getRanges']())(_0x12df51['isIntersecting'](_0x3e08d6)||_0x14bf05['isCollapsed']&&!_0x244cdf['isMultiRange']&&_0x244cdf['next']&&_0x3e08d6['end']['isTouching'](_0x12df51['start']))&&_0x19a736['add'](_0x244cdf);}return _0x19a736;}(_0x469909,_0x42279a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x52dfcb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2331fc of _0x52dfcb){const _0x59e7e2=_0x2331fc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x59e7e2))return;}rs(this['editor']['model'],this['_command'],_0x52dfcb);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x294311(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4e750a,_0x1dd199){super(),this['id']=_0x1dd199['id'],this['type']=_0x1dd199['type'],this['subType']=_0x1dd199['subType']||null,this['author']=_0x1dd199['author'],this['creator']=_0x1dd199['creator']||_0x1dd199['author'],this['isExternal']=Boolean(_0x1dd199['attributes']&&_0x1dd199['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1dd199['originalSuggestionId']||null,this['_model']=_0x4e750a,this['_onAccept']=_0x1dd199['onAccept'],this['_onDiscard']=_0x1dd199['onDiscard'],this['_onAttributesChange']=_0x1dd199['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1dd199['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 _0x4414f9=this;for(;_0x4414f9['previous'];)_0x4414f9=_0x4414f9['previous'];return _0x4414f9;}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'](_0x1eeb9f){this['_markerNames']['add'](_0x1eeb9f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a129b=>this['_model']['markers']['get'](_0x3a129b))['filter'](_0x5eb5c2=>_0x5eb5c2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b2bdf=>{for(const _0x578356 of this['getMarkers']())_0x2b2bdf['removeMarker'](_0x578356);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d5f42){this['_model']['change'](_0x5730e1=>{_0x5730e1['removeMarker'](_0x3d5f42);}),this['_markerNames']['delete'](_0x3d5f42);}['addRange'](_0x37bca0){const _0x2d5ab1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2d5ab1),this['_model']['change'](_0x1fd68a=>{_0x1fd68a['addMarker'](_0x2d5ab1,{'range':_0x37bca0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x33751d){for(const _0x41c0ce of this['getRanges']())if(_0x41c0ce['isIntersecting'](_0x33751d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x520c7f=>_0x520c7f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x20a514,_0x1a45a8)=>[..._0x20a514,..._0x1a45a8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x557959=this['getRanges']();if(0x1!=_0x557959['length'])return null;const _0xc4f596=_0x557959[0x0],_0x48c838=_0xc4f596['start']['nodeAfter'],_0x3c0904=_0xc4f596['end']['nodeBefore'];return _0x48c838 instanceof _0x22f644?_0x48c838!=_0x3c0904?null:_0x48c838: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 _0x3ed164=[];let _0x3076d9=this['head'];for(;_0x3076d9;)_0x3ed164['push'](_0x3076d9),_0x3076d9=_0x3076d9['next'];return _0x3ed164;}['setAttribute'](_0x4af48d,_0x52765a){const _0x24c35c=_0x19ab6e(this['attributes']);_0x43dcc1(_0x24c35c,_0x4af48d,_0x52765a),_0x409a95(_0x24c35c,this['attributes'])||(this['attributes']=_0x24c35c,this['_onAttributesChange'](_0x24c35c));}['removeAttribute'](_0x105534){const _0x4febf4=_0x19ab6e(this['attributes']);_0x1dff0f(_0x4febf4,_0x105534),_0x409a95(_0x4febf4,this['attributes'])||(this['attributes']=_0x4febf4,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 _0x3a9a7a()['substr'](0x1,0x5);}}function o(_0x284440,_0x22cef4,_0x9b9472){const _0x53ff8f=_0x284440['t'],t=_0x284440['t'];switch(_0x22cef4){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',_0x9b9472);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9b9472);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9b9472);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9b9472);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9b9472);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',_0x9b9472);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9b9472);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',_0x9b9472);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9b9472);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9b9472);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9b9472);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9b9472);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9b9472);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x9b9472);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9b9472);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9b9472);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9b9472);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9b9472);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9b9472);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9b9472);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9b9472);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9b9472);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9b9472);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9b9472);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x9b9472);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'},_0x9b9472);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x9b9472);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x9b9472);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9b9472);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9b9472);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9b9472);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9b9472);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9b9472);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'},_0x9b9472);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9b9472);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9b9472);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9b9472);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9b9472);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x9b9472);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9b9472);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'},_0x9b9472);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x9b9472);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9b9472);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'},_0x9b9472);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9b9472);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'},_0x9b9472);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9b9472);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x9b9472);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x9b9472);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x9b9472);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9b9472);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'},_0x9b9472);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x9b9472);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 _0x53ff8f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x9b9472);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x53ff8f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x9b9472);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x9b9472);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'},_0x9b9472);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'},_0x9b9472);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'},_0x9b9472);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x22cef4;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2bfc27,_0x45d027){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2bfc27,this['_locale']=_0x45d027;}['getDescriptions'](_0x18a4f5){const _0x417458=[],_0x3c4816=new Set(),_0x248e34=new Set();for(let _0x4bddfa=0x0;_0x4bddfa<_0x18a4f5['length'];_0x4bddfa++){const _0x385ece=_0x18a4f5[_0x4bddfa];if(!_0x385ece['isInContent'])continue;const _0x376c6f=this['_handleCustomCallbackDescription'](_0x385ece);if(_0x376c6f){if(null!=_0x385ece['subType']){if(_0x3c4816['has'](_0x385ece['subType']))continue;_0x3c4816['add'](_0x385ece['subType']);}_0x417458['push'](_0x376c6f);}else{if('attribute'==_0x385ece['type']){const _0x5977d9=_0x385ece['data']['key'];if(_0x248e34['has'](_0x5977d9))continue;_0x248e34['add'](_0x385ece['data']['key']),_0x5977d9==m?this['_handleRenameSuggestionDescription'](_0x417458,_0x385ece):this['_handleAttributeSuggestionDescription'](_0x417458,_0x385ece);continue;}'insertion'!=_0x385ece['type']&&'deletion'!=_0x385ece['type']||this['_handleInsertRemoveSuggestionDescription'](_0x417458,_0x385ece,_0x18a4f5[_0x4bddfa+0x1]);}}return this['_resolveDescriptionItems'](_0x417458);}['registerDescriptionCallback'](_0x452f82){this['_customCallbacks']['push'](_0x452f82);}['registerElementLabel'](_0x492d62,_0x17d91b,_0xf48824=_0x4d5218['normal']){'function'==typeof _0x492d62?_0x39b344(this['_itemLabelsCallbacks'],{'matchingCallback':_0x492d62,'label':_0x17d91b,'priority':_0xf48824}):this['_itemLabels']['set'](_0x492d62,_0x17d91b);}['registerAttributeLabel'](_0x1df1b0,_0x434a83){this['_attributeLabels']['set'](_0x1df1b0,_0x434a83);}['getItemLabel'](_0x304867,_0x370466=0x1){let _0xeae5de;for(const _0x5132de of this['_itemLabelsCallbacks'])if(_0x5132de['matchingCallback'](_0x304867)){_0xeae5de=_0x5132de['label'];break;}return _0xeae5de||(_0xeae5de=this['_itemLabels']['get'](_0x304867['name'])),_0xeae5de?_0xeae5de(_0x370466):0x1!==_0x370466?_0x370466+'\x20'+_0x304867['name']+'s':''+_0x304867['name'];}['_addDescriptionItems'](_0x36edf5,_0x5ed80f){const _0x2f9923=_0x5ed80f['getFirstRange']()['getWalker'](),_0x5c7370='insertion'==_0x5ed80f['type']?'add':'remove';for(const _0x54f1f4 of _0x2f9923){const _0x196a3c=_0x54f1f4['item'],_0x5670f2=_0x36edf5[_0x36edf5['length']-0x1];if(_0x196a3c['is']('$textProxy'))_0x5670f2&&_0x5670f2['type']['indexOf']('Container')>-0x1&&_0x36edf5['pop'](),_0x5670f2&&'text'==_0x5670f2['type']?_0x5670f2[_0x5c7370]+=_0x196a3c['data']:_0x36edf5['push']({'type':'text','add':'add'==_0x5c7370?_0x196a3c['data']:'','remove':'remove'==_0x5c7370?_0x196a3c['data']:''});else{if(this['_schema']['isObject'](_0x196a3c)){const _0x1006af=_0x196a3c;if(_0x5670f2&&_0x5670f2['type']['indexOf']('Container')>-0x1&&_0x36edf5['pop'](),'elementEnd'==_0x54f1f4['type'])continue;_0x5670f2&&_0x5670f2['type']==_0x5c7370+'Object'&&_0x5670f2['element']['name']==_0x1006af['name']?_0x5670f2['quantity']++:_0x36edf5['push']({'type':_0x5c7370+'Object','element':_0x1006af,'quantity':0x1}),_0x2f9923['skip'](_0x180166=>!('elementEnd'==_0x180166['type']&&_0x180166['item']==_0x196a3c));}else{if(this['_schema']['checkChild'](_0x196a3c,'$text')||_0x196a3c['is']('element','softBreak')){const _0x2ecc4b=_0x196a3c;if('add'==_0x5c7370&&'elementStart'==_0x54f1f4['type']||'remove'==_0x5c7370&&'elementEnd'==_0x54f1f4['type'])continue;if(_0x5670f2&&-0x1==_0x5670f2['type']['indexOf']('Container')){'text'==_0x5670f2['type']&&(_0x5670f2[_0x5c7370]+='\x0a');continue;}let _0x1dbaaa;if(_0x1dbaaa='add'==_0x5c7370?_0x2ecc4b['nextSibling']&&!this['_schema']['isObject'](_0x2ecc4b['nextSibling'])?_0x2ecc4b['nextSibling']:null:_0x2ecc4b['previousSibling']&&!this['_schema']['isObject'](_0x2ecc4b['previousSibling'])?_0x2ecc4b['previousSibling']:null,_0x2ecc4b['isEmpty']||_0x1dbaaa&&_0x1dbaaa['isEmpty']){const _0x1a3eff=_0x1dbaaa&&_0x1dbaaa['isEmpty']?_0x1dbaaa:_0x2ecc4b;_0x5670f2&&_0x5670f2['type']==_0x5c7370+'EmptyContainer'&&_0x5670f2['element']['name']==_0x1a3eff['name']?_0x5670f2['quantity']++:_0x36edf5['push']({'type':_0x5c7370+'EmptyContainer','element':_0x1a3eff,'quantity':0x1});}else _0x36edf5['push']({'type':_0x5c7370+'Container','element':_0x2ecc4b});}}}}}['_resolveDescriptionItems'](_0x1fb0d0){const _0x402ebd=this['_locale'],_0x35016e=[],_0x3913f7=[],_0x1ec6db=[];for(const _0x3a5d8d of _0x1fb0d0)switch(_0x3a5d8d['type']){case'text':if(_0x3a5d8d['add']=_0x3a5d8d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a5d8d['remove']=_0x3a5d8d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a5d8d['add']&&''!=_0x3a5d8d['remove']){_0x35016e['push']({'type':'replace','content':o(_0x402ebd,'REPLACE_TEXT',['\x22'+_0x3a5d8d['remove']+'\x22','\x22'+_0x3a5d8d['add']+'\x22'])});continue;}if(null!=_0x3a5d8d['add']['match'](/^ +$/)){_0x35016e['push']({'type':'insertion','content':o(_0x402ebd,'*Insert:*\x20%0',o(_0x402ebd,'ELEMENT_SPACE',_0x3a5d8d['add']['length']))});continue;}if(null!=_0x3a5d8d['remove']['match'](/^ +$/)){_0x35016e['push']({'type':'deletion','content':o(_0x402ebd,'*Remove:*\x20%0',o(_0x402ebd,'ELEMENT_SPACE',_0x3a5d8d['remove']['length']))});continue;}if(''!=_0x3a5d8d['add']){_0x35016e['push']({'type':'insertion','content':o(_0x402ebd,'*Insert:*\x20%0','\x22'+_0x3a5d8d['add']+'\x22')});continue;}_0x35016e['push']({'type':'deletion','content':o(_0x402ebd,'*Remove:*\x20%0','\x22'+_0x3a5d8d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35016e['push']({'type':'insertion','content':o(_0x402ebd,'*Insert:*\x20%0',this['getItemLabel'](_0x3a5d8d['element'],_0x3a5d8d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35016e['push']({'type':'deletion','content':o(_0x402ebd,'*Remove:*\x20%0',this['getItemLabel'](_0x3a5d8d['element'],_0x3a5d8d['quantity']))});continue;case'addContainer':_0x35016e['push']({'type':'insertion','content':o(_0x402ebd,'*Split:*\x20%0',this['getItemLabel'](_0x3a5d8d['element'],_0x3a5d8d['quantity']))});continue;case'removeContainer':_0x35016e['push']({'type':'deletion','content':o(_0x402ebd,'*Merge:*\x20%0',this['getItemLabel'](_0x3a5d8d['element'],_0x3a5d8d['quantity']))});continue;case'addFormat':_0x3913f7['push'](_0x3a5d8d['key']);continue;case'removeFormat':_0x1ec6db['push'](_0x3a5d8d['key']);continue;default:_0x35016e['push'](_0x3a5d8d);}if(_0x3913f7['length']){const _0x2a6c70=_0x3913f7['map'](_0x472995=>this['_attributeLabels']['has'](_0x472995)?this['_attributeLabels']['get'](_0x472995):_0x472995)['join'](',\x20');_0x35016e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2a6c70)});}if(_0x1ec6db['length']){const _0x3d4d46=_0x1ec6db['map'](_0x4e544c=>this['_attributeLabels']['has'](_0x4e544c)?this['_attributeLabels']['get'](_0x4e544c):_0x4e544c)['join'](',\x20');_0x35016e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d4d46)});}return _0x35016e;}['_handleCustomCallbackDescription'](_0x263242){for(const _0x14ec29 of this['_customCallbacks']){const _0x256530=_0x14ec29(_0x263242);if(_0x256530&&'type'in _0x256530)return _0x256530;}}['_handleAttributeSuggestionDescription'](_0x2a1703,_0xa7208b){const _0x10ca5c=_0xa7208b['data'],_0x56f523=void 0x0===_0x10ca5c['newValue']?'removeFormat':'addFormat';_0x2a1703['push']({'type':_0x56f523,'key':_0x10ca5c['key']});}['_handleRenameSuggestionDescription'](_0x11b920,_0x48cd75){_0x11b920['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x48cd75['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x24e7c9,_0x5a3108,_0x304cb4){if(this['_addDescriptionItems'](_0x24e7c9,_0x5a3108),_0x304cb4&&_0x304cb4['getFirstRange']()&&!_0x5a3108['getFirstRange']()['end']['isEqual'](_0x304cb4['getFirstRange']()['start'])){const _0xee2b96=_0x24e7c9[_0x24e7c9['length']-0x1],_0x31dad1='insertion'==_0x5a3108['type']?'add':'remove';_0xee2b96&&'text'==_0xee2b96['type']&&(_0xee2b96[_0x31dad1]+='\x0a');}}}class U extends _0x3b85d6{['afterInit'](){const _0x494932=this['editor'],_0x22eeda=_0x494932['plugins']['get']('TrackChangesEditing');_0x494932['commands']['get']('showAIAssistant')&&_0x22eeda['enableCommand']('showAIAssistant');}}class V extends _0x3b85d6{['afterInit'](){const _0x1c0187=this['editor'],_0xdf9857=_0x1c0187['plugins']['get']('TrackChangesEditing');_0x1c0187['commands']['get']('toggleAi')&&_0xdf9857['enableCommand']('toggleAi');}}class F extends _0x3b85d6{['afterInit'](){const _0x3fa189=this['editor'],_0x588926=_0x3fa189['plugins']['get']('TrackChangesEditing');_0x3fa189['commands']['get']('aiQuickAction')&&_0x588926['enableCommand']('aiQuickAction');}}class G extends _0x3b85d6{['afterInit'](){const _0x599f34=this['editor'],_0x5774da=_0x599f34['locale'];if(!_0x599f34['plugins']['has']('AlignmentEditing'))return;const _0x37509c=_0x599f34['plugins']['get']('TrackChangesEditing');_0x37509c['enableDefaultAttributesIntegration']('alignment'),_0x37509c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5774da,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c730b=this['editor'],_0x40863d=_0x3c730b['locale'];_0x3c730b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2090bb=>{if('formatBlock'!=_0x2090bb['type'])return;const {data:_0x34120e}=_0x2090bb;if(_0x34120e&&'alignment'==_0x34120e['commandName']){const _0x322450=_0x34120e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x40863d,'*Format:*\x20%0',function(_0x271447){switch(_0x271447){case'left':return o(_0x40863d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x40863d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x40863d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x40863d,'FORMAT_JUSTIFY_TEXT');}}(_0x322450))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x3b85d6{['afterInit'](){const _0x25e613=this['editor'],_0x43f41c=_0x25e613['plugins']['get']('TrackChangesEditing'),_0x55a131=_0x25e613['locale'];for(const _0x2b8d93 of ti){if(!_0x25e613['plugins']['has'](_0x2b8d93))continue;const _0x30245d=_0x2b8d93['slice'](0x0,-0x7)['toLowerCase'](),_0x343e10='FORMAT_'+_0x30245d['toUpperCase']();_0x43f41c['enableDefaultAttributesIntegration'](_0x30245d),_0x43f41c['descriptionFactory']['registerAttributeLabel'](_0x30245d,o(_0x55a131,_0x343e10));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a029e=this['editor'],_0x5a1ebf=_0x4a029e['locale'],_0x2fc417=_0x4a029e['plugins']['get']('TrackChangesEditing');function _0x3ef993(_0x402b1f,_0x4cb056){_0x2fc417['descriptionFactory']['registerDescriptionCallback'](_0x2413ce=>{if('formatInline'!=_0x2413ce['type'])return;const {data:_0x1d706d}=_0x2413ce;return _0x1d706d&&_0x1d706d['commandName']===_0x402b1f?_0x1d706d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a1ebf,'*Format:*\x20%0',_0x4cb056)}:{'type':'format','content':o(_0x5a1ebf,'*Remove\x20format:*\x20%0',_0x4cb056)}:void 0x0;});}_0x3ef993('bold',o(_0x5a1ebf,'FORMAT_BOLD')),_0x3ef993('italic',o(_0x5a1ebf,'FORMAT_ITALIC')),_0x3ef993('underline',o(_0x5a1ebf,'FORMAT_UNDERLINE')),_0x3ef993('code',o(_0x5a1ebf,'FORMAT_CODE')),_0x3ef993('strikethrough',o(_0x5a1ebf,'FORMAT_STRIKETHROUGH')),_0x3ef993('subscript',o(_0x5a1ebf,'FORMAT_SUBSCRIPT')),_0x3ef993('superscript',o(_0x5a1ebf,'FORMAT_SUPERSCRIPT'));}}class J extends _0x3b85d6{['afterInit'](){const _0x269831=this['editor'],_0x2fb5b6=_0x269831['locale'];if(!_0x269831['plugins']['has']('BlockQuoteEditing'))return;const _0x29f5b1=_0x269831['plugins']['get']('TrackChangesEditing'),_0x1be0a3=this['editor']['commands']['get']('blockQuote');_0x29f5b1['enableCommand']('blockQuote',(_0x54d71a,_0x2f35f3={})=>{const _0x1f0e9f=this['editor']['model']['document']['selection'],_0x26dac8=_0x2f35f3&&void 0x0!==_0x2f35f3['forceValue']?_0x2f35f3['forceValue']:!_0x1be0a3['value'];let _0x219e98=[];if(_0x26dac8){const _0x450c6e=Array['from'](_0x1f0e9f['getSelectedBlocks']())['filter'](_0x3906aa=>oo(_0x3906aa)||function(_0x46a923,_0x3f3a5c){const _0x41f5b4=_0x3f3a5c['checkChild'](_0x46a923['parent'],'blockQuote'),_0x34b70b=_0x3f3a5c['checkChild'](['$root','blockQuote'],_0x46a923);return _0x41f5b4&&_0x34b70b;}(_0x3906aa,this['editor']['model']['schema']));_0x219e98=to(_0x450c6e,_0x269831['model']);}else{const _0x499169=Array['from'](_0x1f0e9f['getSelectedBlocks']())['filter'](_0x441b5e=>oo(_0x441b5e));_0x219e98=to(_0x499169,_0x269831['model']);}_0x269831['model']['change'](()=>{for(const _0x42632f of _0x219e98)_0x29f5b1['markBlockFormat'](_0x42632f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26dac8}]});});}),_0x29f5b1['descriptionFactory']['registerDescriptionCallback'](_0x4bc859=>{const {data:_0x374ca2}=_0x4bc859;if(_0x374ca2&&'blockQuote'==_0x374ca2['commandName']){const _0x36973b=o(_0x2fb5b6,'ELEMENT_BLOCK_QUOTE');return _0x374ca2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fb5b6,'*Set\x20format:*\x20%0',_0x36973b)}:{'type':'format','content':o(_0x2fb5b6,'*Remove\x20format:*\x20%0',_0x36973b)};}});}}function oo(_0x18c234){return'blockQuote'==_0x18c234['parent']['name'];}class q extends _0x3b85d6{['afterInit'](){const _0x4368ad=this['editor'],_0x187482=_0x4368ad['locale'],_0x3119a4=_0x4368ad['plugins']['get']('TrackChangesEditing');_0x4368ad['plugins']['has']('BookmarkEditing')&&(_0x3119a4['enableCommand']('insertBookmark'),_0x3119a4['enableDefaultAttributesIntegration']('updateBookmark'),_0x3119a4['descriptionFactory']['registerDescriptionCallback'](_0x5228a3=>{if('insertion'!=_0x5228a3['type']&&'deletion'!=_0x5228a3['type']&&'attribute'!=_0x5228a3['type'])return;const _0x4fe3cf=_0x5228a3['getContainedElement']();if(null==_0x4fe3cf)return;if(!_0x4fe3cf['is']('element','bookmark'))return;const _0x14a967=_0x4fe3cf['getAttribute']('bookmarkId');if('insertion'==_0x5228a3['type'])return{'type':'insertion','content':o(_0x187482,'*Insert:*\x20%0','\x22'+_0x14a967+'\x22\x20'+o(_0x187482,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5228a3['type'])return{'type':'deletion','content':o(_0x187482,'*Remove:*\x20%0','\x22'+_0x14a967+'\x22\x20'+o(_0x187482,'ELEMENT_BOOKMARK'))};const {data:_0x60b437}=_0x5228a3;if(!_0x60b437||'bookmarkId'!=_0x60b437['key'])return;return{'type':'format','content':o(_0x187482,'*Set\x20bookmark:*\x20%0','\x22'+_0x60b437['newValue']+'\x22')};}));}}class z extends _0x3b85d6{['afterInit'](){const _0x665021=this['editor'];_0x665021['plugins']['has']('CaseChange')&&(_0x665021['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x665021['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x665021['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3b85d6{['afterInit'](){const _0x22bd0c=this['editor'];_0x22bd0c['commands']['get']('ckbox')&&_0x22bd0c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x3b85d6{['afterInit'](){const _0x4870a3=this['editor'];if(!_0x4870a3['plugins']['has']('CodeBlock'))return;const _0x51caa5=_0x4870a3['plugins']['get']('TrackChangesEditing'),_0x5da36c=_0x4870a3['locale'],_0xae7b20=_0x4870a3['config']['get']('codeBlock')['languages'],_0x4a20ae=_0x4870a3['commands']['get']('codeBlock');_0x51caa5['enableCommand']('indentCodeBlock'),_0x51caa5['enableCommand']('outdentCodeBlock'),_0x51caa5['enableCommand']('codeBlock',(_0x2f9f1d,_0x460422={})=>{const _0x574582=_0x4870a3['model'],_0x90d64f=_0x4870a3['model']['document']['selection'],_0x438be3=_0x460422&&void 0x0!==_0x460422['forceValue']?_0x460422['forceValue']:!_0x4a20ae['value'];let _0x105b98;_0x460422['language']||(_0x460422['language']=_0xae7b20[0x0]['language']),_0x105b98=_0x438be3?Array['from'](_0x90d64f['getSelectedBlocks']())['filter'](_0x1419b2=>co(_0x1419b2)||function(_0x34b273,_0x1b440a){if(_0x34b273['is']('rootElement')||_0x1b440a['isLimit'](_0x34b273))return!0x1;return _0x1b440a['checkChild'](_0x34b273['parent'],'codeBlock');}(_0x1419b2,_0x574582['schema'])):Array['from'](_0x90d64f['getSelectedBlocks']())['filter'](_0x32437f=>co(_0x32437f));const _0xff04d=to(_0x105b98,_0x574582);_0x574582['change'](()=>{for(const _0x439584 of _0xff04d)_0x51caa5['markBlockFormat'](_0x439584,{'commandName':'codeBlock','commandParams':[{..._0x460422,'forceValue':_0x438be3}],'formatGroupId':'blockName'});});}),(_0x51caa5['descriptionFactory']['registerElementLabel']('codeBlock',_0x13e47b=>o(_0x5da36c,'ELEMENT_CODE_BLOCK',_0x13e47b)),_0x51caa5['descriptionFactory']['registerDescriptionCallback'](_0x50d8de=>{if('formatBlock'!=_0x50d8de['type'])return;const _0x279c92=_0x5da36c['t'],{data:_0xac0991}=_0x50d8de;if(!_0xac0991||'codeBlock'!=_0xac0991['commandName'])return;const _0x418096=_0xac0991['commandParams'][0x0]['language'],_0x79c7f9=_0x279c92(_0xae7b20['find'](_0x450eef=>_0x450eef['language']===_0x418096)['label'])['toLowerCase']();return _0xac0991['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5da36c,'*Set\x20format:*\x20%0',o(_0x5da36c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x79c7f9+')')}:{'type':'format','content':o(_0x5da36c,'*Remove\x20format:*\x20%0',o(_0x5da36c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4ca46b){return'codeBlock'==_0x4ca46b['name'];}class H extends _0x3b85d6{['afterInit'](){const _0x4ca8f7=this['editor'];if(!_0x4ca8f7['plugins']['has']('CommentsEditing'))return;_0x4ca8f7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x3b85d6{static get['requires'](){return[_0xb70c50];}['init'](){const _0x269363=this['editor'],_0x23b126=_0x269363['plugins']['get']('TrackChangesEditing');_0x23b126['enableCommand']('delete');const _0x10d7ec=_0x269363['commands']['get']('deleteForward');_0x23b126['enableCommand']('deleteForward',(_0x537152,_0x434802={})=>{const _0x587628=_0x269363['model']['createSelection'](_0x269363['model']['document']['selection']);_0x587628['isCollapsed']&&_0x269363['model']['modifySelection'](_0x587628,{'direction':'forward','unit':_0x434802['unit']});const _0x2dd0e8=_0x587628['getFirstRange'](),_0x4fcc04=_0x169dab['fromRange'](_0x2dd0e8);let _0x4a5fc0;_0x537152(_0x434802),_0x4a5fc0='$graveyard'==_0x4fcc04['root']['rootName']?_0x269363['model']['createRange'](_0x2dd0e8['start']):_0x269363['model']['createRange'](_0x4fcc04['start'],_0x4fcc04['end']),_0x4fcc04['detach'](),_0x269363['model']['enqueueChange'](_0x10d7ec['buffer']['batch'],_0x351b5e=>{_0x10d7ec['buffer']['lock'](),_0x351b5e['setSelection'](_0x351b5e['createRange'](_0x4a5fc0['end'])),_0x10d7ec['buffer']['unlock']();});});}}class X extends _0x3b85d6{['afterInit'](){const _0x47271e=this['editor'];if(!_0x47271e['plugins']['has']('ListEditing'))return;const _0x17995a=_0x47271e['locale'],_0x312d96=_0x47271e['plugins']['get']('TrackChangesEditing'),_0x4edea7=_0x47271e['plugins']['has']('TodoListEditing'),_0x2a6cd0=!!_0x47271e['config']['get']('list.multiBlock');function _0xb17b30(_0x420e1f){return{'type':'format','content':''+o(_0x17995a,'*Set\x20format:*\x20%0',_0x420e1f)};}function _0xb1dac7(_0x2bff82){return{'type':'format','content':''+o(_0x17995a,'*Remove\x20format:*\x20%0',_0x2bff82)};}_0x312d96['enableDefaultAttributesIntegration']('numberedList'),_0x312d96['enableDefaultAttributesIntegration']('bulletedList'),_0x312d96['enableDefaultAttributesIntegration']('customNumberedList'),_0x312d96['enableDefaultAttributesIntegration']('customBulletedList'),_0x312d96['enableDefaultAttributesIntegration']('indentList'),_0x312d96['enableDefaultAttributesIntegration']('outdentList'),_0x312d96['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x312d96['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a6cd0&&(_0x312d96['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x312d96['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4edea7&&(_0x312d96['enableDefaultAttributesIntegration']('todoList'),_0x312d96['enableDefaultAttributesIntegration']('checkTodoList'),_0x312d96['descriptionFactory']['registerDescriptionCallback'](_0x2af1f6=>{const {data:_0x3f8947}=_0x2af1f6;if(_0x3f8947&&'todoListChecked'==_0x3f8947['key'])return{'type':'format','content':_0x3f8947['newValue']?o(_0x17995a,'*Check\x20item*'):o(_0x17995a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x312cd2=>{if(_0x312cd2['batch']['isUndo'])return!0x1;let _0x1f669e=!0x1;const _0x1bfbf5=_0x312d96['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a1283=>'todoListChecked'===_0x312d96['_getAttributeKey'](_0x1a1283));for(const _0x3b75ae of _0x1bfbf5){'todo'!=_0x3b75ae['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x312d96['_findSuggestions'](_0x3b75ae['getFirstRange'](),'attribute')['find'](_0x3cd6ed=>'listType'===_0x312d96['_getAttributeKey'](_0x3cd6ed['suggestion']))||(_0x312cd2['removeMarker'](_0x3b75ae['getFirstMarker']()),_0x1f669e=!0x0));}return _0x1f669e;})),_0x312d96['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x17995a,'FORMAT_INDENT'));const _0x3e1f01={'type':'format','content':''};_0x312d96['descriptionFactory']['registerDescriptionCallback'](_0x2b66d7=>{const {data:_0x669bfd}=_0x2b66d7;if(!_0x669bfd||'listType'!=_0x669bfd['key'])return;let _0x326aaf=_0x2b66d7['head'];for(;_0x326aaf;){if(_0x326aaf['data']&&(('listStyle'==_0x326aaf['data']['key']||'listMarkerStyle'==_0x326aaf['data']['key'])&&(_0x326aaf['data']['newValue']&&'default'!=_0x326aaf['data']['newValue']||'default'!=_0x326aaf['data']['oldValue']&&!_0x669bfd['newValue'])||!_0x2a6cd0&&_0x326aaf['data']['key']==m))return _0x3e1f01;_0x326aaf=_0x326aaf['next'];}if(null==_0x669bfd['newValue'])switch(_0x669bfd['oldValue']){case'bulleted':return _0xb1dac7(o(_0x17995a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb1dac7(o(_0x17995a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb1dac7(o(_0x17995a,'ELEMENT_TODO_LIST'));}switch(_0x669bfd['newValue']){case'bulleted':return _0xb17b30(o(_0x17995a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb17b30(o(_0x17995a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb17b30(o(_0x17995a,'ELEMENT_TODO_LIST'));}}),_0x312d96['descriptionFactory']['registerDescriptionCallback'](_0x53e2ac=>{const {data:_0x1c13a2}=_0x53e2ac;if(_0x1c13a2&&'listIndent'==_0x1c13a2['key'])return null==_0x1c13a2['newValue']||null==_0x1c13a2['oldValue']&&0x0==_0x1c13a2['newValue']?_0x3e1f01:void 0x0;}),_0x312d96['descriptionFactory']['registerDescriptionCallback'](_0x2b54b5=>{if('attribute'!=_0x2b54b5['type'])return;const {data:_0x555e1c}=_0x2b54b5;if(!_0x555e1c||'listItemId'!=_0x555e1c['key'])return;const _0xbd24e6=Te(_0x2b54b5);return'newValue'==_0xbd24e6?{'type':'format','content':o(_0x17995a,'*Merge:*\x20list\x20item')}:'oldValue'==_0xbd24e6?{'type':'format','content':o(_0x17995a,'*Split:*\x20list\x20item')}:_0x3e1f01;}),_0x47271e['model']['document']['registerPostFixer'](_0x506cd7=>this['listItemIdFixer'](_0x506cd7)),_0x47271e['model']['document']['registerPostFixer'](_0xc2ac87=>this['noTrackChangesFixer'](_0xc2ac87)),_0x47271e['model']['document']['on']('change:data',(_0x5f0bfd,_0x1546c1)=>{if(_0x1546c1['isUndo']||!_0x1546c1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x459677){if(_0x459677['batch']['isUndo']||!_0x459677['batch']['isLocal'])return!0x1;let _0x6b2493=!0x1;const _0x46364c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x319946=>_0x319946['data']&&'listItemId'==_0x319946['data']['key'])['filter'](_0x277994=>_0x277994['data']['newValue']&&_0x277994['data']['oldValue']);for(const _0x378751 of _0x46364c)Te(_0x378751)||(_0x459677['removeMarker'](_0x378751['getFirstMarker']()),_0x6b2493=!0x0);return _0x6b2493;}['noTrackChangesFixer'](_0x1ec8ce){if(_0x1ec8ce['batch']['isUndo']||!_0x1ec8ce['batch']['isLocal'])return!0x1;const _0x185bed=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x185bed['trackChangesCommand']['value'])return!0x1;let _0x49d937=!0x1;const _0x4f0304=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc7542=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d633=>'attribute'==_0x2d633['type'])['filter'](_0x39e494=>_0x4f0304['includes'](_0x39e494['attributeKey']));if(0x0==_0xc7542['length'])return _0x49d937;for(const _0x4e70d8 of _0xc7542){const _0x11d602=_0x185bed['_findSuggestions'](_0x4e70d8['range'],'attribute')['filter'](_0x7da1df=>!_0x7da1df['meta']['isNextTo'])['map'](_0x5aeb4b=>_0x5aeb4b['suggestion'])['filter'](_0x543421=>{const _0x58cabe=_0x185bed['_getAttributeKey'](_0x543421);return _0x4f0304['includes'](_0x58cabe);});if(_0x11d602['length']){for(const _0x4fd7c7 of _0x11d602)_0x1ec8ce['removeMarker'](_0x4fd7c7['getFirstMarker']());_0x49d937=!0x0;}}return _0x49d937;}['assureChains'](){const _0x248e5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f5fae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x48618d;const _0x2b712a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6021a1=>{if(_0x6021a1['data']['oldRange']||!_0x6021a1['data']['newRange'])return null;if(!_0x6021a1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c9d90}=_0x248e5d['_splitMarkerName'](_0x6021a1['name']);if(!_0x248e5d['hasSuggestion'](_0x1c9d90))return null;const _0x4ae7c0=_0x248e5d['getSuggestion'](_0x1c9d90);return _0x2f5fae['includes'](_0x4ae7c0['data']['key']);})['map'](_0x4239b7=>{const {id:_0x1602f7}=_0x248e5d['_splitMarkerName'](_0x4239b7['name']),_0x36df2a=_0x248e5d['getSuggestion'](_0x1602f7);return _0x48618d=_0x36df2a['attributes']['groupId'],_0x36df2a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2b712a['size'])return;const _0x11b584=_0x248e5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18495d=>'attribute'==_0x18495d['type']&&_0x18495d['data']&&_0x2f5fae['includes'](_0x18495d['data']['key'])&&_0x18495d['attributes']['groupId']!=_0x48618d)['map'](_0x499cb5=>({'listItem':_0x499cb5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x499cb5['attributes']['groupId']})),_0x3002aa=new Set();for(const {groupId:_0x35fa16,listItem:_0x11e204}of _0x11b584)_0x2b712a['has'](_0x11e204)&&_0x3002aa['add'](_0x35fa16);for(const _0x4540ac of _0x248e5d['getSuggestions']())_0x3002aa['has'](_0x4540ac['attributes']['groupId'])&&_0x4540ac['setAttribute']('groupId',_0x48618d);}['_supportLegacySuggestions'](){const _0x350f29=this['editor'],_0x2fc11a=_0x350f29['locale'],_0x36d0d2=_0x350f29['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x36d0d2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5b9bb6,_0x1fd276){const _0x874ae=[];for(let _0x5e151e of _0x5b9bb6)_0x5e151e['start']['nodeAfter']===_0x5e151e['end']['parent']&&(_0x5e151e=_0x350f29['model']['createRange'](_0x350f29['model']['createPositionAt'](_0x5e151e['start']['nodeAfter'],0x0))),_0x874ae['push'](_0x5e151e);_0x350f29['model']['change'](_0x47b178=>{const _0x5b9530=_0x350f29['model']['document']['selection'],_0x376f73=Array['from'](_0x5b9530['getRanges']())['map'](_0x222a2b=>_0x169dab['fromRange'](_0x222a2b));_0x47b178['setSelection'](_0x874ae),_0x350f29['commands']['get'](_0x1fd276['commandName'])['refresh'](),_0x1fd276['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x350f29['execute'](_0x1fd276['commandName'],..._0x1fd276['commandParams']),_0x47b178['setSelection'](_0x376f73);for(const _0x4ef7cd of _0x376f73)_0x4ef7cd['detach']();});}),_0x36d0d2['descriptionFactory']['registerElementLabel'](function(_0x1a20d0){const _0x2581b8=!_0x350f29['model']['schema']['isObject'](_0x1a20d0),_0x26ffb6=_0x1a20d0['previousSibling'],_0x5319c0=_0x1a20d0['nextSibling'],_0x5cb2ec=_0x1a20d0['getAttribute']('listItemId'),_0x2987d0=!_0x26ffb6||_0x26ffb6['getAttribute']('listItemId')!==_0x5cb2ec,_0x1d2fef=!_0x5319c0||_0x5319c0['getAttribute']('listItemId')!==_0x5cb2ec;return _0x2581b8&&Boolean(_0x5cb2ec)&&_0x2987d0&&_0x1d2fef;},_0x2639bf=>o(_0x2fc11a,'ELEMENT_LIST_ITEM',_0x2639bf));}['_registerLegacyDescription'](){const _0x30b101=this['editor'],_0x31b8f9=_0x30b101['locale'];function _0x1f1677(_0x4760f5){const _0x43f6fe=_0x30b101['commands']['get']('bulletedList')['value'],_0x46a2bf=_0x30b101['commands']['get']('numberedList')['value'];return'numberedList'===_0x4760f5?_0x43f6fe:_0x46a2bf;}_0x30b101['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3647cd){if('formatBlock'!=_0x3647cd['type'])return;const {data:_0x7c2673}=_0x3647cd;if(!_0x7c2673)return;let _0x5752dd,_0x415512,_0xe3ea89,_0x2f12b4;switch(_0x7c2673['commandName']){case'bulletedList':_0xe3ea89=_0x7c2673['commandParams'][0x0]['forceValue'],_0x2f12b4=_0x1f1677(_0x7c2673['commandName']),_0x5752dd=_0xe3ea89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f12b4&&_0x30b101['config']['get']('list.multiBlock')||(_0x5752dd='*Change\x20to:*\x20%0'),_0x415512={'type':'format','content':o(_0x31b8f9,_0x5752dd,o(_0x31b8f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xe3ea89=_0x7c2673['commandParams'][0x0]['forceValue'],_0x2f12b4=_0x1f1677(_0x7c2673['commandName']),_0x5752dd=_0xe3ea89?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2f12b4&&_0x30b101['config']['get']('list.multiBlock')||(_0x5752dd='*Change\x20to:*\x20%0'),_0x415512={'type':'format','content':o(_0x31b8f9,_0x5752dd,o(_0x31b8f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5752dd='*Indent:*\x20%0',_0x415512={'type':'format','content':o(_0x31b8f9,_0x5752dd,o(_0x31b8f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5752dd=function(_0x8a5673){const _0x4a6244=_0x8a5673['getFirstRange']();let _0x282a92=_0x4a6244['start']['nodeAfter'];for(;_0x282a92&&_0x4a6244['containsItem'](_0x282a92);){if(_0x282a92['getAttribute']('listIndent')>0x0)return!0x1;_0x282a92=_0x282a92['nextSibling'];}return!0x0;}(_0x3647cd)?o(_0x31b8f9,'*Format:*\x20remove\x20from\x20%0',o(_0x31b8f9,function(_0x30f68e){return'ELEMENT_'+_0x30f68e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3647cd))):o(_0x31b8f9,'*Outdent:*\x20%0',o(_0x31b8f9,'ELEMENT_LIST_ITEM')),_0x415512={'type':'format','content':_0x5752dd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7c2673['multipleBlocks']&&(_0x5752dd='*Merge:*\x20%0',_0x415512={'type':'deletion','content':o(_0x31b8f9,_0x5752dd,o(_0x31b8f9,'ELEMENT_LIST_ITEM'))});}return _0x415512;});}}function Te(_0x738b57){let _0x88dadf=_0x738b57['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x88dadf;){const _0x25b6e0=_0x88dadf['getAttribute']('listItemId');if(!_0x25b6e0)return!0x1;if(_0x25b6e0==_0x738b57['data']['newValue'])return'newValue';if(_0x25b6e0==_0x738b57['data']['oldValue'])return'oldValue';_0x88dadf=_0x88dadf['previousSibling'];}return!0x1;}class Y extends _0x3b85d6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58bca2=this['editor']['config']['get']('list.properties'),_0x4ff61f=this['editor']['plugins']['get']('TrackChangesEditing');_0x58bca2['styles']&&_0x4ff61f['enableDefaultAttributesIntegration']('listStyle'),_0x58bca2['reversed']&&_0x4ff61f['enableDefaultAttributesIntegration']('listReversed'),_0x58bca2['startIndex']&&_0x4ff61f['enableDefaultAttributesIntegration']('listStart');const _0x497ee3={'type':'format','content':''};_0x4ff61f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x49a408=this['editor']['locale'];_0x4ff61f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x49a408,'FORMAT_LIST_REVERSED')),_0x4ff61f['descriptionFactory']['registerDescriptionCallback'](_0x2af064=>{const {data:_0x2b769c}=_0x2af064;if(_0x2b769c&&'listReversed'==_0x2b769c['key'])return null==_0x2b769c['newValue']||0x0==_0x2b769c['newValue']&&null==_0x2b769c['oldValue']?_0x497ee3:void 0x0;}),_0x4ff61f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x49a408,'FORMAT_LIST_START')),_0x4ff61f['descriptionFactory']['registerDescriptionCallback'](_0x50dcf9=>{const {data:_0x28b9c5}=_0x50dcf9;if(_0x28b9c5&&'listStart'==_0x28b9c5['key'])return null==_0x28b9c5['newValue']||0x1==_0x28b9c5['newValue']&&null==_0x28b9c5['oldValue']?_0x497ee3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x53a239=>{if(_0x53a239['batch']['isUndo'])return!0x1;let _0x18463f=!0x1;const _0x184e57=_0x4ff61f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55896c=>{const _0xb300fc=_0x4ff61f['_getAttributeKey'](_0x55896c);return'listStart'==_0xb300fc||'listReversed'==_0xb300fc;});for(const _0x3f18bf of _0x184e57){const _0x23d4ce=_0x3f18bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23d4ce||'customNumbered'==_0x23d4ce)continue;_0x4ff61f['_findSuggestions'](_0x3f18bf['getFirstRange'](),'attribute')['find'](_0x109bfa=>'listType'==_0x4ff61f['_getAttributeKey'](_0x109bfa['suggestion']))||(_0x53a239['removeMarker'](_0x3f18bf['getFirstMarker']()),_0x18463f=!0x0);}return _0x18463f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3800bf){const _0x36f42e=this['editor']['locale'],{data:_0x4cc91e}=_0x3800bf,_0x3fbe68={'type':'format','content':''};if(!_0x4cc91e||'listStyle'!=_0x4cc91e['key'])return;if(!_0x4cc91e['oldValue'])return'default'==_0x4cc91e['newValue']?_0x3fbe68:{'type':'format','content':''+o(_0x36f42e,'*Set\x20format:*\x20%0',o(_0x36f42e,this['_getTranslationKeyForListStyle'](_0x4cc91e['newValue'])))};if(!_0x4cc91e['newValue']){if('default'==_0x4cc91e['oldValue'])return _0x3fbe68;let _0x437c36=_0x3800bf['head'];for(;_0x437c36;){if(_0x437c36['data']&&'listType'==_0x437c36['data']['key']&&_0x437c36['data']['newValue'])return _0x3fbe68;_0x437c36=_0x437c36['next'];}return{'type':'format','content':''+o(_0x36f42e,'*Remove\x20format:*\x20%0',o(_0x36f42e,this['_getTranslationKeyForListStyle'](_0x4cc91e['oldValue'])))};}if('default'!=_0x4cc91e['newValue'])return{'type':'format','content':''+o(_0x36f42e,'*Set\x20format:*\x20%0',o(_0x36f42e,this['_getTranslationKeyForListStyle'](_0x4cc91e['newValue'])))};let _0x2ce3da=_0x3800bf['head'];for(;_0x2ce3da;){if(_0x2ce3da['data']&&'listType'==_0x2ce3da['data']['key']&&_0x2ce3da['data']['newValue']&&_0x2ce3da['data']['oldValue'])return _0x3fbe68;_0x2ce3da=_0x2ce3da['next'];}return{'type':'format','content':o(_0x36f42e,'*Set\x20format:*\x20%0',o(_0x36f42e,'ELEMENT_'+_0x3800bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x471ba6=this['editor'],_0xca3d92=_0x471ba6['locale'];_0x471ba6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2564=>{if('formatBlock'!=_0x5b2564['type'])return;const {data:_0x49cb13}=_0x5b2564;if(!_0x49cb13)return;let _0x582999,_0x6d82d0;switch(_0x49cb13['commandName']){case'listStyle':_0x582999='*Change\x20to:*\x20%0',_0x6d82d0={'type':'format','content':o(_0xca3d92,_0x582999,o(_0xca3d92,this['_getTranslationKeyForListStyle'](_0x49cb13['commandParams'][0x0]['type'])))};break;case'listReversed':_0x582999=_0x49cb13['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6d82d0={'type':'format','content':o(_0xca3d92,_0x582999)};break;case'listStart':_0x582999='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6d82d0={'type':'format','content':o(_0xca3d92,_0x582999,_0x49cb13['commandParams'][0x0]['startIndex'])};}return _0x6d82d0;});}['_getTranslationKeyForListStyle'](_0x6f19fa){return'ELEMENT_'+function(_0x30b423){if(ye['includes'](_0x30b423))return'bulleted';if(Se['includes'](_0x30b423))return'numbered';return null;}(_0x6f19fa)['toUpperCase']()+'_LIST_'+_0x6f19fa['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x3b85d6{['afterInit'](){const _0x35bbea=this['editor'];_0x35bbea['commands']['get']('emoji')&&_0x35bbea['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x3b85d6{static get['requires'](){return[_0x225c73];}['init'](){const _0x5dc0a1=this['editor'],_0x4ce409=_0x5dc0a1['plugins']['get']('TrackChangesEditing'),_0x408561=_0x5dc0a1['commands']['get']('enter');_0x4ce409['enableCommand']('enter',()=>{_0x5dc0a1['model']['change'](_0x1f1cb0=>{const _0x149ff8=_0x5dc0a1['model']['document']['selection'],_0x5dc916=_0x149ff8['getFirstPosition'](),_0x135d38=_0x169dab['fromRange'](_0x149ff8['getFirstRange']());if(_0x408561['enterBlock'](_0x1f1cb0)){const _0x40907a=_0x5dc0a1['model']['createPositionAt'](_0x5dc916['parent']['nextSibling'],0x0),_0x4e4352=_0x1f1cb0['createRange'](_0x5dc916,_0x40907a);_0x4ce409['markInsertion'](_0x4e4352);}else _0x1f1cb0['setSelection'](_0x1f1cb0['createRange'](_0x135d38['end']));_0x135d38['detach'](),_0x408561['fire']('afterExecute',{'writer':_0x1f1cb0});});});}}class nt extends _0x3b85d6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x505e04=this['editor']['plugins']['get']('TrackChangesEditing');_0x505e04['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x505e04['enableCommand']('findNext'),_0x505e04['enableCommand']('findPrevious'),_0x505e04['enableCommand']('replace'),_0x505e04['enableCommand']('replaceAll');}['handleFindCommand'](_0x3510b9,_0x5980bf,_0x16c072={}){const _0x2e9f13=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3510b9(_0x39fb6d=>{let _0x84d520=('string'==typeof _0x5980bf?_0x2e9f13['findByTextCallback'](_0x5980bf,_0x16c072):_0x5980bf)(_0x39fb6d);Array['isArray'](_0x84d520)&&(_0x84d520={'results':_0x84d520,'searchText':'string'==typeof _0x5980bf?_0x5980bf:''});const _0x1d3dff=_0x84d520['results']['filter'](_0x478f6c=>!0x1===this['_isInDeletionRange'](_0x478f6c,_0x39fb6d['item']));return{..._0x84d520,'results':_0x1d3dff};},_0x16c072);}['_isInDeletionRange'](_0x5ddcc2,_0x130060){const _0x16fc16=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x130060,_0x5ddcc2['start']),this['editor']['model']['createPositionAt'](_0x130060,_0x5ddcc2['end']));for(const _0xe0bc37 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x16fc16['getIntersection'](_0xe0bc37['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x3b85d6{['afterInit'](){const _0x5bf10e=this['editor']['locale'],_0x134eba=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2247ed,commandName:_0x21ff42}of eo)this['editor']['plugins']['has'](_0x2247ed)&&_0x134eba['enableDefaultAttributesIntegration'](_0x21ff42);_0x134eba['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5bf10e,'FORMAT_FONT_SIZE')),_0x134eba['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5bf10e,'FORMAT_FONT_FAMILY')),_0x134eba['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5bf10e,'FORMAT_FONT_COLOR')),_0x134eba['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5bf10e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35f084=this['editor'],_0x227be4=_0x35f084['locale'];_0x35f084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1163=>{const _0x332360=_0x227be4['t'];if('formatInline'!=_0x5c1163['type'])return;const {data:_0x4a9c85}=_0x5c1163;if(null!=_0x4a9c85){if('fontSize'==_0x4a9c85['commandName']){const _0x114c41=_0x4a9c85['commandParams'][0x0]['value'];if(_0x114c41){const _0x210c61=_0x332360(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x7a72d0=>_0x7a72d0['model']==_0x114c41)['title'])['toLowerCase']();return{'type':'format','content':o(_0x227be4,'*Set\x20font\x20size:*\x20%0',_0x210c61)};}return{'type':'format','content':o(_0x227be4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4a9c85['commandName']){const _0xd0e0fd=_0x4a9c85['commandParams'][0x0]['value'];return _0xd0e0fd?{'type':'format','content':o(_0x227be4,'*Set\x20font\x20family:*\x20%0',_0xd0e0fd)}:{'type':'format','content':o(_0x227be4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4a9c85['commandName']){const _0x5f2640=_0x4a9c85['commandParams'][0x0]['value'];if(_0x5f2640){const _0x1b7d62=_0x57fad0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21d230=>_0x21d230['model']==_0x5f2640);let _0x231394=_0x5f2640,_0x203890='';return _0x1b7d62&&(_0x231394=_0x1b7d62['label'],_0x203890=_0x332360(_0x231394)['toLowerCase']()),{'type':'format','content':o(_0x227be4,'*Set\x20font\x20color:*\x20%0',_0x203890)['trim'](),'color':{'value':_0x5f2640,'title':_0x203890||_0x231394}};}return{'type':'format','content':o(_0x227be4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4a9c85['commandName']){const _0xcb7564=_0x4a9c85['commandParams'][0x0]['value'];if(_0xcb7564){const _0x46c7d8=_0x57fad0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1cb4c3=>_0x1cb4c3['model']==_0xcb7564);let _0x38aeca=_0xcb7564,_0xf7162b='';return _0x46c7d8&&(_0x38aeca=_0x46c7d8['label'],_0xf7162b=_0x332360(_0x38aeca)['toLowerCase']()),{'type':'format','content':o(_0x227be4,'*Set\x20font\x20background\x20color:*\x20%0',_0xf7162b)['trim'](),'color':{'value':_0xcb7564,'title':_0xf7162b||_0x38aeca}};}return{'type':'format','content':o(_0x227be4,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x3b85d6{['afterInit'](){const {plugins:_0x16541c}=this['editor'];_0x16541c['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x16541c['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x576819,plugins:_0x5a57be,commands:_0x569312}=this['editor'],_0x456264=_0x5a57be['get']('TrackChangesEditing');_0x569312['get']('footnotesStyle')&&_0x456264['enableDefaultAttributesIntegration']('footnotesStyle'),_0x569312['get']('footnotesStart')&&_0x456264['enableDefaultAttributesIntegration']('footnotesStart'),_0x456264['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x576819,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x456264['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x576819,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x265143=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5797e9,commands:_0x126c36}=this['editor'];_0x126c36['get']('insertFootnote')&&_0x265143['enableCommand']('insertFootnote'),_0x265143['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3c99d5=>o(_0x5797e9,'ELEMENT_FOOTNOTE_REF',_0x3c99d5)),_0x265143['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x43d95f=>o(_0x5797e9,'ELEMENT_FOOTNOTE_DEFINITION',_0x43d95f)),_0x265143['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5747fc=>o(_0x5797e9,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5747fc));}}class st extends _0x3b85d6{['afterInit'](){const _0x20e5bf=this['editor'],_0x2266a8=_0x20e5bf['plugins']['get']('TrackChangesEditing'),_0x2fc1a5=_0x20e5bf['commands']['get']('copyFormat'),_0x169cb7=_0x20e5bf['commands']['get']('pasteFormat');_0x2fc1a5&&_0x169cb7&&(_0x2266a8['enableDefaultAttributesIntegration']('pasteFormat'),_0x2266a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4db39f=this['editor'],_0x4e2993=_0x4db39f['locale'];_0x4db39f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42825f=>{if('formatBlock'!=_0x42825f['type']&&'formatInline'!=_0x42825f['type'])return;const {data:_0x476e5f}=_0x42825f;if(_0x476e5f&&'pasteFormat'===_0x476e5f['commandName']){const _0x15f479=[],_0x3762b6=_0x476e5f['commandParams'][0x0];for(const [_0x1c6a48,_0x5f7207]of Object['entries'](_0x3762b6))_0x15f479['push'](ro(_0x4db39f,_0x1c6a48,_0x5f7207));return _0x15f479['length']?{'type':'format','content':o(_0x4e2993,'*Set\x20format\x20to:*\x20%0',_0x15f479['join'](',\x20'))}:{'type':'format','content':o(_0x4e2993,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xf641e3,_0xb8fe3a,_0x59c2c6){const _0x3ed406=_0xf641e3['locale']['t'],_0x43145b=_0xb8fe3a['split'](/(?=[A-Z])/)['join']('\x20'),_0x1009c3=_0x3ed406(_0x43145b['charAt'](0x0)['toUpperCase']()+_0x43145b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59c2c6)return _0x1009c3;if('fontColor'===_0xb8fe3a||'fontBackgroundColor'===_0xb8fe3a){const _0x665367=_0x57fad0(_0xf641e3['config']['get']('fontColor.colors'))['find'](_0x46a350=>_0x46a350['model']==_0x59c2c6);return _0x1009c3+'\x20('+(_0x665367?_0x3ed406(_0x665367['label'])['toLowerCase']():_0x59c2c6)+')';}if('fontSize'===_0xb8fe3a&&isNaN(parseFloat(_0x59c2c6))){const _0x1c886c=_0xf641e3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xf641e3['config']['get']('fontSize.options'))['find'](_0x5dc4bf=>_0x5dc4bf['model']==_0x59c2c6);return _0x1009c3+'\x20('+(_0x1c886c?_0x3ed406(_0x1c886c['title'])['toLowerCase']():_0x59c2c6)+')';}return _0x1009c3+'\x20('+_0x59c2c6+')';}class ot extends _0x3b85d6{['_headingOptions'];['afterInit'](){const _0x52d6e6=this['editor'];if(!_0x52d6e6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x52d6e6['config']['get']('heading.options');const _0x3986f1=_0x52d6e6['locale'],_0x5a3bd1=_0x52d6e6['plugins']['get']('TrackChangesEditing');_0x5a3bd1['enableDefaultAttributesIntegration']('heading');for(const _0xfa21ff of this['_headingOptions'])'paragraph'!=_0xfa21ff['model']&&_0x5a3bd1['descriptionFactory']['registerElementLabel'](_0xfa21ff['model'],_0x5eee1c=>{const _0x2627ac=this['_getHeadingLevel'](_0xfa21ff['model']);return null!==_0x2627ac?_0x222a99(_0x5eee1c,_0x2627ac):_0x458339(_0x5eee1c,_0xfa21ff['title']);});function _0x222a99(_0x2acb99,_0x566ee1){return o(_0x3986f1,'ELEMENT_HEADING',[_0x2acb99,_0x566ee1]);}function _0x458339(_0x55e364,_0x356f39){return o(_0x3986f1,'ELEMENT_HEADING_CUSTOM',[_0x55e364,_0x356f39]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca5d3=this['editor'],_0x317f5d=_0x5ca5d3['locale'];function _0x4a428c(_0x2fd09b,_0x255599){return o(_0x317f5d,'ELEMENT_HEADING_CUSTOM',[_0x2fd09b,_0x255599]);}_0x5ca5d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4128a2=>{if('formatBlock'!=_0x4128a2['type'])return;const {data:_0x590a91}=_0x4128a2;if(_0x590a91&&'heading'==_0x590a91['commandName']){const _0x3141ce=_0x590a91['commandParams'][0x0]['value'],_0x4f0202=this['_getHeadingLevel'](_0x3141ce);if(null!==_0x4f0202)return{'type':'format','content':o(_0x317f5d,'*Change\x20to:*\x20%0',(_0x476797=0x1,_0x1619c7=_0x4f0202,o(_0x317f5d,'ELEMENT_HEADING',[_0x476797,_0x1619c7])))};const _0x36dbd3=this['_headingOptions']['find'](_0x2bcd68=>_0x2bcd68['model']===_0x3141ce)['title'];return{'type':'format','content':o(_0x317f5d,'*Change\x20to:*\x20%0',_0x4a428c(0x1,_0x36dbd3))};}var _0x476797,_0x1619c7;});}['_getHeadingLevel'](_0x1dc747){const _0x53f34c=_0x1dc747['match'](/^heading(\d+)/);if(_0x53f34c)return _0x53f34c[0x1];const _0x5f1c93=this['_headingOptions']?.['find'](_0xd6cba8=>_0xd6cba8['model']==_0x1dc747);if(_0x5f1c93&&_0x5f1c93['view']){const _0x1f1058=_0x5f1c93['view'],_0xfe351=(_0x1f1058['name']??_0x1f1058)['match'](/^h(\d+)/);if(_0xfe351)return _0xfe351[0x1];}return null;}}class rt extends _0x3b85d6{['afterInit'](){const _0x31a7bb=this['editor'];if(!_0x31a7bb['plugins']['has']('HighlightEditing'))return;const _0xc45e51=_0x31a7bb['plugins']['get']('TrackChangesEditing'),_0x83c83a=_0x31a7bb['locale'];_0xc45e51['enableDefaultAttributesIntegration']('highlight'),_0xc45e51['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x83c83a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ed0c=this['editor'],_0x489714=_0x13ed0c['locale'];_0x13ed0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1d53=>{if('formatInline'!=_0x1d1d53['type'])return;const {data:_0x1cd642}=_0x1d1d53;if(_0x1cd642&&'highlight'==_0x1cd642['commandName']){const _0x5d6fd0=_0x489714['t'],_0x2c3e2f=_0x1cd642['commandParams'][0x0]['value'];if(_0x2c3e2f){const _0x4d51b0=_0x13ed0c['config']['get']('highlight.options')['find'](_0x2ff845=>_0x2ff845['model']==_0x2c3e2f),_0x2e607f=_0x5d6fd0(_0x4d51b0['title'])['toLowerCase']();return{'type':'format','content':o(_0x489714,'*Set\x20highlight:*\x20%0',_0x2e607f),'color':{'value':_0x4d51b0['color'],'title':_0x4d51b0['title']}};}return{'type':'format','content':o(_0x489714,'*Remove\x20highlight*',o(_0x489714,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x3b85d6{['afterInit'](){const _0x1c1108=this['editor'];if(!_0x1c1108['plugins']['has']('HorizontalLineEditing'))return;_0x1c1108['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x326383=_0x1c1108['plugins']['get']('TrackChangesEditing'),_0x4d2350=_0x1c1108['locale'];_0x326383['descriptionFactory']['registerElementLabel']('horizontalLine',_0x451261=>o(_0x4d2350,'ELEMENT_HORIZONTAL_LINE',_0x451261));}}class ct extends _0x3b85d6{['afterInit'](){const _0xe77ddd=this['editor'];if(!_0xe77ddd['plugins']['has']('HtmlEmbed'))return;const _0x1d0675=_0xe77ddd['plugins']['get']('TrackChangesEditing'),_0x2c1e57=_0xe77ddd['locale'];_0x1d0675['descriptionFactory']['registerElementLabel']('rawHtml',_0x394fae=>o(_0x2c1e57,'ELEMENT_HTML_EMBED',_0x394fae)),_0x1d0675['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1d0675['descriptionFactory']['registerDescriptionCallback'](_0x5d7c45=>{if('attribute'!=_0x5d7c45['type'])return;const {data:_0x36dfd1}=_0x5d7c45;if(_0x36dfd1&&'value'==_0x36dfd1['key']&&_0x5d7c45['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x52d7cb=o(_0x2c1e57,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c1e57,'*Change\x20%0\x20content*',_0x52d7cb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57244b=this['editor'],_0x2c0d51=_0x57244b['locale'];_0x57244b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49d4c0=>{if('formatBlock'!=_0x49d4c0['type'])return;const {data:_0x10b2c9}=_0x49d4c0;if(_0x10b2c9&&'htmlEmbed'==_0x10b2c9['commandName']){const _0x2156d0=o(_0x2c0d51,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2c0d51,'*Change\x20%0\x20content*',_0x2156d0)};}});}}class ut extends _0x3b85d6{['afterInit'](){const _0x32676=this['editor'];if(!_0x32676['plugins']['has']('ImageEditing'))return;const _0x33edae=_0x32676['plugins']['get']('TrackChangesEditing'),_0x44e8c7=_0x32676['plugins']['get']('ImageUtils'),_0x8c1505=_0x32676['locale'];_0x33edae['enableCommand']('insertImage'),_0x33edae['descriptionFactory']['registerElementLabel']('imageBlock',_0x58c924=>o(_0x8c1505,'ELEMENT_IMAGE',_0x58c924)),_0x33edae['descriptionFactory']['registerElementLabel']('imageInline',_0xcb473d=>o(_0x8c1505,'ELEMENT_INLINE_IMAGE',_0xcb473d)),_0x33edae['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x8c1505,'ELEMENT_CAPTION')),_0x32676['plugins']['has']('ImageUploadEditing')&&_0x33edae['enableCommand']('uploadImage'),_0x32676['plugins']['has']('ImageBlockEditing')&&_0x32676['plugins']['has']('ImageInlineEditing')&&(_0x33edae['enableCommand']('imageTypeInline',(_0x5ee0d7,_0x545afa)=>{const _0x3271bd=_0x44e8c7['getClosestSelectedImageElement'](_0x32676['model']['document']['selection']);_0x32676['model']['change'](()=>{_0x33edae['markBlockFormat'](_0x3271bd,{'commandName':'imageTypeInline','commandParams':[_0x545afa]},[],'convertBlockImageToInline');});}),_0x33edae['enableCommand']('imageTypeBlock',(_0x4a8e86,_0x41fb20)=>{_0x32676['model']['change'](_0x1f916a=>{let _0x7b7bf7=_0x44e8c7['getClosestSelectedImageElement'](_0x32676['model']['document']['selection']),_0x3f3391=_0x1f916a['createRangeOn'](_0x7b7bf7);const _0x29d987=_0x608ed7['fromPosition'](_0x3f3391['start'],'toPrevious'),_0xef4ca4=_0x608ed7['fromPosition'](_0x3f3391['end'],'toNext');_0x33edae['forceDefaultExecution'](()=>_0x4a8e86(_0x41fb20)),_0x7b7bf7=_0x44e8c7['getClosestSelectedImageElement'](_0x32676['model']['document']['selection']),_0x3f3391=_0x1f916a['createRangeOn'](_0x7b7bf7);const _0x2603a2=_0x1f916a['createRange'](_0x29d987,_0xef4ca4);_0x29d987['detach'](),_0xef4ca4['detach'](),_0x33edae['markBlockFormat'](_0x7b7bf7,{'commandName':'imageTypeInline','commandParams':[_0x41fb20]},[],'convertInlineImageToBlock'),_0x2603a2['start']['isBefore'](_0x3f3391['start'])&&_0x33edae['markInsertion'](_0x1f916a['createRange'](_0x2603a2['start'],_0x3f3391['start']),'convertInlineImageToBlock'),_0x3f3391['end']['isBefore'](_0x2603a2['end'])&&_0x33edae['markInsertion'](_0x1f916a['createRange'](_0x3f3391['end'],_0x2603a2['end']),'convertInlineImageToBlock');});}),_0x33edae['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x33edae['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x33edae['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x33edae['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x33edae['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x33edae['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3d9e6b])=>{const _0xbd1cf2=_0x33edae['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d6e0d=_0x3d9e6b['start'],_0x23d90a=_0x3d9e6b['end'];const _0x41d721=_0x32676['model']['schema']['getNearestSelectionRange'](_0x2d6e0d,'backward'),_0x180322=_0x32676['model']['schema']['getNearestSelectionRange'](_0x23d90a,'forward');_0x41d721['isCollapsed']&&(_0x2d6e0d=_0x41d721['start']),_0x180322['isCollapsed']&&(_0x23d90a=_0x180322['end']),_0xbd1cf2([_0x32676['model']['createRange'](_0x2d6e0d,_0x23d90a)]);}),_0x33edae['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x244d4d),_0x33edae['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x244d4d)),_0x32676['plugins']['has']('ImageCaptionEditing')&&(_0x33edae['enableCommand']('toggleImageCaption',(_0x53cc2d,_0x107308)=>{const _0x47d05c=_0x32676['plugins']['get']('ImageCaptionUtils');let _0x2a3da5=_0x44e8c7['getClosestSelectedImageElement'](_0x32676['model']['document']['selection']),_0x33c6a4=_0x47d05c['getCaptionFromImageModelElement'](_0x2a3da5);_0x32676['model']['change'](()=>{if(_0x33c6a4)return void _0x33edae['markDeletion'](_0x32676['model']['createRangeOn'](_0x33c6a4));const _0xbb6c6b=_0x44e8c7['isBlockImage'](_0x2a3da5);_0x53cc2d(_0x107308),_0x2a3da5=_0x44e8c7['getClosestSelectedImageElement'](_0x32676['model']['document']['selection']),_0x33c6a4=_0x47d05c['getCaptionFromImageModelElement'](_0x2a3da5),_0x33edae['markInsertion'](_0x32676['model']['createRangeOn'](_0x33c6a4),_0xbb6c6b?null:'imageCaption');});}),_0x33edae['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x244d4d));const _0x1eac59=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x264387(_0x209814,_0x4cb1ee){const _0x4f5539=_0x1eac59['findIndex'](({type:_0xa89740,subType:_0x15edfd})=>_0x209814['type']==_0xa89740&&_0x209814['subType']==_0x15edfd),_0x273e50=_0x1eac59['findIndex'](({type:_0x3432eb,subType:_0x3abe33})=>_0x4cb1ee['type']==_0x3432eb&&_0x4cb1ee['subType']==_0x3abe33);if(_0x4f5539<0x0||_0x273e50<0x0)return!0x1;const _0x33f281=_0x209814['getFirstRange'](),_0x1e24e4=_0x4cb1ee['getFirstRange']();if((0x0==_0x4f5539||0x1==_0x4f5539)&&0x2==_0x273e50&&_0x33f281['isIntersecting'](_0x1e24e4))return!0x0;if(0x2==_0x4f5539&&0x3==_0x273e50){const _0x9a2b4e=_0x33edae['_findSuggestions'](_0x33f281,'insertion')['filter'](({suggestion:_0x3cd32f,meta:_0x18cafa})=>_0x18cafa['isOwn']&&'convertInlineImageToBlock'==_0x3cd32f['subType']);if(_0x9a2b4e['length']>0x1&&_0x1e24e4['end']['isEqual'](_0x33f281['start']))return!0x0;if(0x1==_0x9a2b4e['length']&&(_0x33f281['start']['isEqual'](_0x1e24e4['end'])||_0x33f281['end']['isEqual'](_0x1e24e4['start'])))return!0x0;}if(0x3==_0x4f5539&&0x3==_0x273e50&&_0x33f281['start']['isBefore'](_0x1e24e4['start'])){const _0x8c06ba=_0x33f281['end']['nodeAfter'],_0x5d7396=_0x1e24e4['start']['nodeBefore'];return _0x44e8c7['isBlockImage'](_0x8c06ba)&&_0x8c06ba===_0x5d7396;}return!0x1;}function _0x244d4d(_0x53327f,_0x2b6eda){return _0x264387(_0x53327f,_0x2b6eda)?[_0x53327f,_0x2b6eda]:_0x264387(_0x2b6eda,_0x53327f)?[_0x2b6eda,_0x53327f]:null;}_0x32676['plugins']['has']('ImageResize')&&(_0x33edae['enableDefaultAttributesIntegration']('resizeImage'),_0x33edae['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x8c1505,'FORMAT_IMAGE_SIZE'))),_0x32676['plugins']['has']('ImageTextAlternativeEditing')&&_0x33edae['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x32676['plugins']['has']('PictureEditing')&&_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x389a50=>{if('attribute'!=_0x389a50['type'])return;const {data:_0x425e4d}=_0x389a50;return _0x425e4d&&'sources'==_0x425e4d['key']?{'type':'format','content':''}:void 0x0;}),_0x32676['plugins']['has']('ImageSizeAttributes')&&_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x17c16d=>{if('attribute'!=_0x17c16d['type'])return;const {data:_0x1dd3e6}=_0x17c16d;return!_0x1dd3e6||'width'!=_0x1dd3e6['key']&&'height'!=_0x1dd3e6['key']?void 0x0:{'type':'format','content':''};}),_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x23dc9d=>{if(!!_0x1eac59['find'](({type:_0x20b0f8,subType:_0x51b79d})=>_0x23dc9d['type']==_0x20b0f8&&_0x23dc9d['subType']==_0x51b79d))return _0x23dc9d['previous']?{}:void 0x0;}),_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x5e8e82=>{if('insertion'==_0x5e8e82['type']||'deletion'==_0x5e8e82['type']){const _0x375fd8=_0x5e8e82['getContainedElement']();if(_0x375fd8&&_0x375fd8['is']('element','caption'))return{'type':'insertion'==_0x5e8e82['type']?'addObject':'removeObject','element':_0x375fd8,'quantity':0x1};}}),_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x1da250=>'formatBlock'==_0x1da250['type']&&'convertInlineImageToBlock'==_0x1da250['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1da250['type']&&'convertBlockImageToInline'==_0x1da250['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x33edae['descriptionFactory']['registerDescriptionCallback'](_0x4a6c11=>{if('attribute'!=_0x4a6c11['type'])return;const {data:_0x1438ff}=_0x4a6c11;if(!_0x1438ff||'alt'!=_0x1438ff['key'])return;const _0x2ce622=_0x1438ff['newValue'];return _0x2ce622?{'type':'format','content':o(_0x8c1505,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ce622+'\x22')}:{'type':'format','content':o(_0x8c1505,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ddb9a=this['editor'],_0xd6d42f=_0x1ddb9a['locale'];_0x1ddb9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x518e37=>{if('formatBlock'!=_0x518e37['type']&&'formatInline'!=_0x518e37['type'])return;const {data:_0x10693b}=_0x518e37;if(_0x10693b){if('imageTextAlternative'==_0x10693b['commandName']){const _0x4292c8=_0x10693b['commandParams'][0x0]['newValue'];return _0x4292c8?{'type':'format','content':o(_0xd6d42f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4292c8+'\x22')}:{'type':'format','content':o(_0xd6d42f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x10693b['commandName']){const _0x59c969=_0x10693b['commandParams'][0x0]['width'];return _0x59c969?{'type':'format','content':o(_0xd6d42f,'*Set\x20image\x20width:*\x20%0',_0x59c969)}:{'type':'format','content':o(_0xd6d42f,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x3b85d6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4660e7=this['editor']['locale'],_0x2280fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2280fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2280fb['descriptionFactory']['registerDescriptionCallback'](_0x15131e=>{if('attribute'!=_0x15131e['type'])return;const {data:_0x1b3c6f}=_0x15131e;return _0x1b3c6f&&'src'==_0x1b3c6f['key']?_0x1b3c6f['newValue']&&_0x1b3c6f['oldValue']?{'type':'format','content':o(_0x4660e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49c67d=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c67d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x49c67d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49c67d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x49c67d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5073bc=this['editor'],_0x481977=_0x5073bc['locale'];_0x5073bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f470c=>{if('formatBlock'!=_0x2f470c['type']&&'formatInline'!=_0x2f470c['type'])return;const {data:_0x236452}=_0x2f470c;if(!_0x236452||'replaceImageSource'!=_0x236452['commandName'])return;return{'type':'format','content':o(_0x481977,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x3b85d6{['afterInit'](){const _0x299b=this['editor'];if(!_0x299b['plugins']['has']('ImageStyleEditing'))return;const _0x897397=_0x299b['plugins']['get']('TrackChangesEditing'),_0x6b4cf=_0x299b['plugins']['get']('ImageUtils'),_0x1668d3={};_0x897397['enableCommand']('imageStyle',(_0x181b65,_0x35ab33)=>{const _0x58585d=_0x299b['plugins']['get']('Users')['me'],_0x1d3368=_0x299b['commands']['get']('imageStyle');let _0x126e58=_0x6b4cf['getClosestSelectedImageElement'](_0x299b['model']['document']['selection']),_0x5d40bc=_0x299b['model']['createRangeOn'](_0x126e58),_0x4c77a7=_0x1d3368['value'];if(_0x4c77a7==_0x35ab33['value'])return;const _0x5d2bf1={'commandName':'imageStyle','commandParams':[_0x35ab33],'formatGroupId':_0x3a9a7a()};_0x299b['model']['change'](()=>{if(_0x897397['getSuggestions']()['filter'](_0x35763a=>_0x35763a['isInContent']&&_0x58585d==_0x35763a['author']&&('formatBlock'==_0x35763a['type']||'formatInline'==_0x35763a['type'])&&('imageStylePreApply'==_0x35763a['subType']||'imageStylePostApply'==_0x35763a['subType'])&&_0x35763a['getFirstRange']()['isEqual'](_0x5d40bc))['forEach'](_0x31fbd4=>_0x897397['discardSuggestion'](_0x31fbd4['head'])),_0x126e58=_0x6b4cf['getClosestSelectedImageElement'](_0x299b['model']['document']['selection']),_0x5d40bc=_0x299b['model']['createRangeOn'](_0x126e58),_0x1d3368['refresh'](),_0x299b['commands']['get']('imageTypeInline')['refresh'](),_0x299b['commands']['get']('imageTypeBlock')['refresh'](),_0x4c77a7=_0x1d3368['value'],_0x4c77a7!=_0x35ab33['value'])return _0x6b4cf['isInlineImage'](_0x126e58)&&_0x1d3368['shouldConvertImageType'](_0x35ab33['value'],_0x126e58)?(_0x181b65({..._0x35ab33,'setImageSizes':!0x1}),_0x126e58=_0x6b4cf['getClosestSelectedImageElement'](_0x299b['model']['document']['selection']),void _0x897397['markBlockFormat'](_0x126e58,{..._0x5d2bf1,'commandReversedParams':[{'value':_0x4c77a7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x6b4cf['isBlockImage'](_0x126e58)?_0x897397['markBlockFormat'](_0x126e58,_0x5d2bf1,[],'imageStylePostApply'):_0x897397['markInlineFormat'](_0x5d40bc,_0x5d2bf1,'imageStylePostApply'));});});for(const _0x3f1d5f of _0x299b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1668d3[_0x3f1d5f['name']]=_0x3f1d5f['title']['toLowerCase']();_0x897397['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x897397['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x897397['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x897397['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x42640c])=>{_0x6b4cf['setImageNaturalSizeAttributes'](_0x42640c['getContainedElement']());}),_0x897397['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x409567,_0x5c92e4)=>{_0x897397['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x409567,{'commandName':_0x5c92e4['commandName'],'commandParams':_0x5c92e4['commandReversedParams']});}),_0x897397['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x498b2d,_0x3617a7){if(_0x3302d9(_0x498b2d,_0x3617a7))return[_0x498b2d,_0x3617a7];if(_0x3302d9(_0x3617a7,_0x498b2d))return[_0x3617a7,_0x498b2d];return null;});const _0x148faa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3302d9(_0x352c46,_0x52cf92){const _0x38c8bc=_0x148faa['findIndex'](({type:_0x2a83de,subType:_0x186594})=>_0x352c46['type']==_0x2a83de&&_0x352c46['subType']==_0x186594),_0x3a830f=_0x148faa['findIndex'](({type:_0x53934b,subType:_0x1a7e68})=>_0x52cf92['type']==_0x53934b&&_0x52cf92['subType']==_0x1a7e68);if(_0x38c8bc<0x0||_0x3a830f<0x0)return!0x1;const _0x280e58=_0x352c46['getFirstRange'](),_0x4322b8=_0x52cf92['getFirstRange']();if((0x0==_0x38c8bc||0x1==_0x38c8bc)&&0x2==_0x3a830f&&_0x280e58['isIntersecting'](_0x4322b8))return!0x0;if(0x2==_0x38c8bc&&0x3==_0x3a830f){const _0x456e1e=_0x897397['_findSuggestions'](_0x280e58,'insertion')['filter'](({suggestion:_0x332c05,meta:_0x33bcce})=>_0x33bcce['isOwn']&&'convertInlineImageToBlock'==_0x332c05['subType']);if(_0x456e1e['length']>0x1&&_0x4322b8['end']['isEqual'](_0x280e58['start']))return!0x0;if(0x1==_0x456e1e['length']&&(_0x280e58['start']['isEqual'](_0x4322b8['end'])||_0x280e58['end']['isEqual'](_0x4322b8['start'])))return!0x0;}if(0x3==_0x38c8bc&&0x3==_0x3a830f&&_0x280e58['start']['isBefore'](_0x4322b8['start'])){const _0x2f5f1e=_0x280e58['end']['nodeAfter'],_0xe622=_0x4322b8['start']['nodeBefore'];return _0x6b4cf['isBlockImage'](_0x2f5f1e)&&_0x2f5f1e===_0xe622;}return!0x1;}_0x299b['model']['document']['registerPostFixer'](()=>{let _0xe63eb0=!0x1;const _0x39f344=Array['from'](_0x299b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3648f0,data:_0x3d010c}of _0x39f344){const {group:_0x5ef0e7,type:_0x4b15de,subType:_0x107d06,id:_0x15584e}=_0x897397['_splitMarkerName'](_0x3648f0);if('suggestion'==_0x5ef0e7&&_0x897397['hasSuggestion'](_0x15584e)){if('formatBlock'==_0x4b15de&&('imageStylePreApply'==_0x107d06||'imageStylePostApply'==_0x107d06)){const _0x528fe9=_0x897397['getSuggestion'](_0x15584e);if(_0x3d010c['newRange']){const _0x487793=_0x528fe9['getFirstRange']()['getContainedElement']();if(_0x6b4cf['isBlockImage'](_0x487793))continue;_0x897397['discardSuggestion'](_0x528fe9),_0xe63eb0=!0x0;}}if('insertion'==_0x4b15de&&'imageCaption'==_0x107d06&&!_0x3d010c['newRange']){const _0x268016=_0x897397['getSuggestion'](_0x15584e);_0x268016['next']&&_0x268016['next']['isInContent']&&(_0x897397['discardSuggestion'](_0x268016['next']),_0xe63eb0=!0x0);}}}return _0xe63eb0;}),this['_registerLegacyDescription'](_0x1668d3);}['_registerLegacyDescription'](_0x2790dc){const _0x53fa59=this['editor'],_0x50b4e9=_0x53fa59['locale'];_0x53fa59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d4f7=>{if('formatBlock'!=_0x58d4f7['type']&&'formatInline'!=_0x58d4f7['type'])return;const {data:_0x835cf7}=_0x58d4f7;if(!_0x835cf7||'imageStyle'!=_0x835cf7['commandName'])return;const _0x25753e=_0x835cf7['commandParams'][0x0]['value'];return _0x5498ad('side'===_0x25753e?o(_0x50b4e9,'FORMAT_SIDE_IMAGE'):_0x2790dc[_0x25753e]||_0x25753e);function _0x5498ad(_0x4e88c2){return{'type':'format','content':o(_0x50b4e9,'*Format:*\x20%0',_0x4e88c2)};}});}}class lt extends _0x3b85d6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d8042){super(_0x4d8042),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c49b8=this['editor'],_0x39ef32=_0x3c49b8['commands']['get']('importWord'),_0x305049=_0x3c49b8['commands']['get']('trackChanges');_0x39ef32&&(_0x39ef32['on']('execute',(_0x1c0867,[,_0x1d8442])=>{this['_trackChangesValueDuringImport']=_0x305049['value'],_0x1d8442['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x39ef32,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x39ef32,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x305049['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c49b8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x56782e,_0x2ef99f){const {suggestions:_0xf58faf}=_0x2ef99f,_0x56862d=this['editor']['commands']['get']('trackChanges'),_0x49b5a6=_0x56862d['value'];this['_trackChangesValueDuringImport']!==_0x49b5a6&&(_0x56862d['execute'](),this['_trackChangesExecuted']=!0x0),_0xf58faf&&_0xf58faf['forEach'](({id:_0x5a4495,type:_0x23ef6b,author:_0x1bb941,created_at:_0x522693})=>{const _0x44bed4={'id':_0x5a4495,'type':_0x23ef6b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bb941,'createdAt':_0x522693?new Date(_0x522693):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x44bed4);});}}class gt extends _0x3b85d6{['afterInit'](){const _0x18e70b=this['editor'],_0x3d9851=_0x18e70b['plugins']['get']('TrackChangesEditing');if(_0x18e70b['plugins']['has']('IndentEditing')&&(_0x3d9851['enableCommand']('indent'),_0x3d9851['enableCommand']('outdent')),_0x18e70b['plugins']['has']('IndentBlock')){for(const _0x50bc48 of['indentBlock','outdentBlock'])_0x3d9851['enableDefaultAttributesIntegration'](_0x50bc48);if(_0x18e70b['plugins']['has']('ListEditing')){for(const _0xf444f9 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3d9851['enableDefaultAttributesIntegration'](_0xf444f9);}}const _0x4a0097=_0x18e70b['locale'];_0x3d9851['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a0097,'FORMAT_INDENT')),_0x3d9851['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x4a0097,'FORMAT_INDENT')),_0x3d9851['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x4a0097,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b64d1=this['editor'],_0x10f81b=_0x5b64d1['locale'],_0x7f6abf=_0x5b64d1['plugins']['get']('TrackChangesEditing');_0x7f6abf['descriptionFactory']['registerDescriptionCallback'](_0x109b43=>{if('formatBlock'!=_0x109b43['type'])return;const {data:_0x4c968b}=_0x109b43;if(!_0x4c968b)return;if('indentBlock'!=_0x4c968b['commandName']&&'outdentBlock'!=_0x4c968b['commandName'])return;const _0x4a2711=_0x109b43['getItems']()[0x0],_0x15cddf=_0x7f6abf['descriptionFactory']['getItemLabel'](_0x4a2711);return'indentBlock'==_0x4c968b['commandName']?{'type':'format','content':o(_0x10f81b,'*Indent:*\x20%0',_0x15cddf)}:'outdentBlock'==_0x4c968b['commandName']?{'type':'format','content':o(_0x10f81b,'*Outdent:*\x20%0',_0x15cddf)}:void 0x0;});}}class mt extends _0x3b85d6{static get['requires'](){return[_0x530576];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x3b85d6{['afterInit'](){const _0x45ba58=this['editor'];if(!_0x45ba58['plugins']['has']('LinkEditing'))return;const _0x5e80c0=_0x45ba58['plugins']['get']('TrackChangesEditing'),_0x357f23=_0x45ba58['commands']['get']('link');_0x5e80c0['enableDefaultAttributesIntegration']('link'),_0x5e80c0['enableDefaultAttributesIntegration']('unlink');for(const _0x28c157 of _0x357f23['manualDecorators'])_0x5e80c0['descriptionFactory']['registerAttributeLabel'](_0x28c157['id'],'link\x20('+_0x28c157['label']['toLowerCase']()+')');_0x5e80c0['descriptionFactory']['registerDescriptionCallback'](_0x365a7c=>{if('attribute'!=_0x365a7c['type'])return;const {data:_0x2ca336}=_0x365a7c;if(!_0x2ca336||'linkHref'!=_0x2ca336['key'])return;const _0x517ceb=_0x2ca336['newValue'],_0x4f7487=_0x45ba58['locale'];return{'type':'format','content':null==_0x517ceb?o(_0x4f7487,'*Remove\x20link*'):o(_0x4f7487,'*Set\x20link:*\x20%0','\x22'+_0x517ceb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185074=this['editor'],_0x539fa4=_0x185074['locale'];_0x185074['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb2dbb=>{if('formatInline'!=_0xfb2dbb['type'])return;const {data:_0x5920f3}=_0xfb2dbb;if(_0x5920f3){if('link'==_0x5920f3['commandName']){const _0x4703da=_0x5920f3['commandParams'][0x0];return{'type':'format','content':o(_0x539fa4,'*Set\x20link:*\x20%0','\x22'+_0x4703da+'\x22')};}return'unlink'==_0x5920f3['commandName']?{'type':'format','content':o(_0x539fa4,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x3b85d6{['afterInit'](){const _0x50f3f8=this['editor'],_0x572a4d=_0x50f3f8['locale'];if(!_0x50f3f8['plugins']['has']('LegacyListEditing'))return;const _0x4b30d8=_0x50f3f8['plugins']['get']('TrackChangesEditing'),_0x2b25b0=_0x50f3f8['plugins']['has']('LegacyTodoListEditing');function _0x5f1cca(_0x59786e){return()=>{const _0x262299=_0x50f3f8['model']['document']['selection'],_0x13bc99=_0x50f3f8['commands']['get'](_0x59786e);if(_0x13bc99['value'])return void _0x50f3f8['execute']('paragraph',{});const _0x47ae16=_0x59786e['slice'](0x0,-0x4),_0x1b5173=function(_0x4e8248,_0x27b76f,_0x1e714d){let _0x17510d=Array['from'](_0x4e8248)['filter'](_0x56e662=>function(_0x50479b,_0x5dffd0){return _0x5dffd0['checkChild'](_0x50479b['parent'],'listItem')&&!_0x5dffd0['isObject'](_0x50479b);}(_0x56e662,_0x1e714d));_0x17510d=_0x17510d['filter'](_0x13e6d3=>!_0x13e6d3['is']('element','listItem')||_0x13e6d3['getAttribute']('listType')!=_0x27b76f);const _0x2bd57a=new Set();for(const _0x25e33e of _0x17510d)_0x25e33e['is']('element','listItem')?_0x2bd57a['add'](Le(_0x25e33e)):_0x2bd57a['add'](_0x25e33e);return Array['from'](_0x2bd57a);}(_0x262299['getSelectedBlocks'](),_0x47ae16,_0x50f3f8['model']['schema']);_0x50f3f8['model']['change'](()=>{for(const _0x4de7f9 of _0x1b5173)_0x4b30d8['markBlockFormat'](_0x4de7f9,{'commandName':_0x59786e,'commandParams':[{'forceValue':!_0x13bc99['value']}],'formatGroupId':'blockName'},Ee(_0x4de7f9));});};}function _0x3fddec(_0x17c6c0){return()=>{const _0x29415b=function(_0x3527ee){let _0x1f1f7b=Array['from'](_0x3527ee);const _0x27e532=_0x1f1f7b['findIndex'](_0x32518e=>'listItem'!=_0x32518e['name']);return _0x27e532>-0x1&&(_0x1f1f7b=_0x1f1f7b['slice'](0x0,_0x27e532)),_0x1f1f7b;}(_0x50f3f8['model']['document']['selection']['getSelectedBlocks']()),_0x1e87f5=_0x50f3f8['model']['createRange'](_0x50f3f8['model']['createPositionAt'](_0x29415b[0x0],'before'),_0x50f3f8['model']['createPositionAt'](_0x29415b[_0x29415b['length']-0x1],'end'));_0x50f3f8['model']['change'](()=>{_0x4b30d8['markBlockFormat'](_0x1e87f5,{'commandName':_0x17c6c0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cc56f){const _0x416fab=new Set();for(const _0x333cf3 of _0x5cc56f){let _0x10a351=_0x333cf3['nextSibling'];for(;_0x10a351&&_0x10a351['getAttribute']('listIndent')>_0x333cf3['getAttribute']('listIndent');)_0x416fab['add'](_0x10a351),_0x10a351=_0x10a351['nextSibling'];}return Array['from'](_0x416fab);}(_0x29415b));});};}_0x4b30d8['enableCommand']('numberedList',_0x5f1cca('numberedList')),_0x4b30d8['enableCommand']('bulletedList',_0x5f1cca('bulletedList')),_0x2b25b0&&_0x4b30d8['enableCommand']('todoList',_0x5f1cca('todoList')),_0x4b30d8['enableCommand']('indentList',_0x3fddec('indentList')),_0x4b30d8['enableCommand']('outdentList',_0x3fddec('outdentList')),_0x2b25b0&&_0x4b30d8['enableCommand']('checkTodoList',()=>{const _0x36f74f=_0x50f3f8['commands']['get']('checkTodoList'),_0x3b883d=Array['from'](_0x36f74f['_selectedElements']);_0x3b883d['filter'](_0x29005f=>_0x29005f['getAttribute']('todoListChecked')!=_0x36f74f['value']),_0x50f3f8['model']['change'](()=>{for(const _0x1d7ddd of _0x3b883d)_0x4b30d8['markBlockFormat'](_0x1d7ddd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36f74f['value']}]});});}),_0x4b30d8['descriptionFactory']['registerElementLabel']('listItem',_0x17075c=>o(_0x572a4d,'ELEMENT_LIST_ITEM',_0x17075c)),_0x4b30d8['descriptionFactory']['registerDescriptionCallback'](_0xc094a=>{if('formatBlock'!=_0xc094a['type']&&'formatInline'!=_0xc094a['type'])return;const {data:_0x18fcac}=_0xc094a;if(_0x18fcac){if('numberedList'==_0x18fcac['commandName']||'bulletedList'==_0x18fcac['commandName']||'todoList'==_0x18fcac['commandName'])switch(_0x18fcac['commandName']['replace']('List','')){case'bulleted':return _0x5ea209(o(_0x572a4d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ea209(o(_0x572a4d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ea209(o(_0x572a4d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x18fcac['commandName'])return{'type':'format','content':o(_0x572a4d,'*Indent:*\x20%0',o(_0x572a4d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x18fcac['commandName'])return{'type':'format','content':o(_0x572a4d,'*Outdent:*\x20%0',o(_0x572a4d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x18fcac['commandName'])return _0x18fcac['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x572a4d,'*Check\x20item*')}:{'type':'format','content':o(_0x572a4d,'*Uncheck\x20item*')};}function _0x5ea209(_0x5631d1){return{'type':'format','content':o(_0x572a4d,'*Change\x20to:*\x20%0',_0x5631d1)};}});}}function Le(_0x296831){const _0x1101e4=_0x296831['getAttribute']('listIndent');if(0x0==_0x1101e4)return _0x296831;let _0x2c69c3=_0x296831;for(;_0x296831['previousSibling']&&_0x296831['previousSibling']['is']('element','listItem');){const _0x3e340d=_0x296831['previousSibling']['getAttribute']('listIndent');if(_0x3e340d==_0x1101e4)_0x2c69c3=_0x296831['previousSibling'];else{if(_0x3e340d<_0x1101e4)break;}_0x296831=_0x296831['previousSibling'];}return _0x2c69c3;}function Ee(_0x4855f8){const _0x203895=[];if(_0x4855f8['is']('element','listItem')&&_0x4855f8['getAttribute']('listIndent')>0x0){let _0x25a626=_0x4855f8['nextSibling'];for(;_0x25a626&&'listItem'==_0x25a626['name']&&_0x25a626['getAttribute']('listIndent')==_0x4855f8['getAttribute']('listIndent');)_0x203895['push'](_0x25a626),_0x25a626=_0x25a626['nextSibling'];}return _0x203895;}class wt extends _0x3b85d6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x47ed5d=this['editor']['config']['get']('list.properties'),_0x1b2986=this['editor']['plugins']['get']('TrackChangesEditing');_0x47ed5d['styles']&&_0x1b2986['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x47ed5d['reversed']&&_0x1b2986['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x47ed5d['startIndex']&&_0x1b2986['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b2986['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3cc7a6,_0x162392={}){const _0x4f4aa9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18cbca=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f4aa9['markMultiRangeBlockFormat'](_0x18cbca,{'commandName':'listStyle','commandParams':[{'type':_0x162392['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e810b,_0x34ccfa={}){const _0x53595e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd7ab4f=this['_getSuggestionBlocks'](_0x51f916=>_0x51f916['is']('element','listItem')&&'numbered'===_0x51f916['getAttribute']('listType'));if(_0xd7ab4f['length']<0x1)return;const _0x4c41fc=_0xd7ab4f['map'](_0x474b33=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x474b33,'before'),this['editor']['model']['createPositionAt'](_0x474b33,0x0)));this['editor']['model']['change'](()=>{_0x53595e['markMultiRangeBlockFormat'](_0x4c41fc,{'commandName':'listReversed','commandParams':[{'reversed':_0x34ccfa['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x41b154,_0x5e3b36={}){const _0x5a3029=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5577d4=this['_getSuggestionBlocks'](_0x285b6f=>_0x285b6f['is']('element','listItem')&&'numbered'===_0x285b6f['getAttribute']('listType'));if(_0x5577d4['length']<0x1)return;const _0x3c1f29=_0x5577d4['map'](_0x231ed2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x231ed2,'before'),this['editor']['model']['createPositionAt'](_0x231ed2,0x0)));this['editor']['model']['change'](()=>{_0x5a3029['markMultiRangeBlockFormat'](_0x3c1f29,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e3b36['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x12564a){if('formatBlock'!=_0x12564a['type']&&'formatInline'!=_0x12564a['type'])return;const _0x19e5dc=this['editor']['locale'],{data:_0xa1a024}=_0x12564a;if(!_0xa1a024)return;let _0x3cc50f,_0x518ef5;switch(_0xa1a024['commandName']){case'listStyle':_0x3cc50f='*Change\x20to:*\x20%0',_0x518ef5={'type':'format','content':o(_0x19e5dc,_0x3cc50f,o(_0x19e5dc,this['_getTranslationKeyForListStyle'](_0xa1a024['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cc50f=_0xa1a024['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x518ef5={'type':'format','content':o(_0x19e5dc,_0x3cc50f)};break;case'listStart':_0x3cc50f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x518ef5={'type':'format','content':o(_0x19e5dc,_0x3cc50f,_0xa1a024['commandParams'][0x0]['startIndex'])};}return _0x518ef5;}['_getSuggestionBlocksForListStyle'](){const _0x5e5955=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae73e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ae73e[0x0]?.['is']('element','listItem')&&_0x3ae73e['unshift'](..._0x5e5955['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ae73e[_0x3ae73e['length']-0x1]?.['is']('element','listItem')&&_0x3ae73e['push'](..._0x5e5955['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ae73e=[...new Set(_0x3ae73e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ae73e=_0x3ae73e['filter'](_0x807a02=>_0x807a02['is']('element','listItem'))),_0x3ae73e;}['_getSuggestionBlocks'](_0x3befd3){const _0x79b955=this['editor']['plugins']['get']('LegacyListUtils');let _0x356281=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3befd3)['map'](_0x43d3aa=>{const _0xa3f296=this['editor']['model']['createPositionAt'](_0x43d3aa,0x0);return[..._0x79b955['getSiblingNodes'](_0xa3f296,'backward'),..._0x79b955['getSiblingNodes'](_0xa3f296,'forward')];})['flat']();return _0x356281=[...new Set(_0x356281)],_0x356281;}['_getTranslationKeyForListStyle'](_0x575fe5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x575fe5)||'default')['toUpperCase']()+'_LIST_'+_0x575fe5['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x3b85d6{['afterInit'](){const _0x330506=this['editor'];if(!_0x330506['plugins']['has']('MediaEmbedEditing'))return;const _0x3eb921=_0x330506['plugins']['get']('TrackChangesEditing'),_0x4b4d24=_0x330506['locale'];_0x3eb921['enableCommand']('mediaEmbed'),_0x3eb921['descriptionFactory']['registerElementLabel']('media',_0x280c1c=>o(_0x4b4d24,'ELEMENT_MEDIA',_0x280c1c));}}class bt extends _0x3b85d6{['afterInit'](){const _0x3d5da3=this['editor'];_0x3d5da3['plugins']['has']('MentionEditing')&&_0x3d5da3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x3b85d6{['afterInit'](){const _0x4febd1=this['editor'];if(!_0x4febd1['plugins']['has']('MergeFieldsEditing'))return;const _0xc15602=_0x4febd1['plugins']['get']('TrackChangesEditing'),_0x3099ef=_0x4febd1['locale'];_0xc15602['enableCommand']('insertMergeField'),_0xc15602['enableCommand']('insertMergeFieldBlock'),_0xc15602['enableCommand']('insertMergeFieldImage'),_0xc15602['descriptionFactory']['registerElementLabel']('mergeField',_0x1515a3=>o(_0x3099ef,'ELEMENT_MERGE_FIELD',_0x1515a3)),_0xc15602['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x264c59=>o(_0x3099ef,'ELEMENT_MERGE_FIELD',_0x264c59)),_0xc15602['descriptionFactory']['registerDescriptionCallback'](_0x483f1d=>{if('insertion'!=_0x483f1d['type']&&'deletion'!=_0x483f1d['type'])return;const _0x3db512=_0x483f1d['getContainedElement']();if(null==_0x3db512)return;const _0xc61ecb=_0x4febd1['plugins']['get']('MergeFieldsEditing');let _0x553d05;switch(_0xc61ecb['getMergeFieldType'](_0x3db512)){case null:return;case'image':{const _0x22f981=_0xc61ecb['unwrapAffixes'](_0x3db512['getAttribute']('src'));_0x553d05=_0xc61ecb['getLabel'](_0x22f981)||_0x22f981;break;}default:{const _0x2b35cf=_0x3db512['getAttribute']('id');_0x553d05=_0xc61ecb['getLabel'](_0x2b35cf)||_0x2b35cf;break;}}return'insertion'==_0x483f1d['type']?{'type':'insertion','content':o(_0x3099ef,'*Insert:*\x20%0','\x22'+_0x553d05+'\x22\x20'+o(_0x3099ef,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3099ef,'*Remove:*\x20%0','\x22'+_0x553d05+'\x22\x20'+o(_0x3099ef,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x3b85d6{['afterInit'](){const _0x1af584=this['editor'],_0x48d8f5=_0x1af584['plugins']['get']('TrackChangesEditing');_0x1af584['plugins']['has']('MultiLevelList')&&(_0x48d8f5['enableDefaultAttributesIntegration']('multiLevelList'),_0x48d8f5['descriptionFactory']['registerDescriptionCallback'](_0x1e31fa=>this['handleDescriptions'](_0x1e31fa)));}['handleDescriptions'](_0x4883a2){const _0x4c6529=this['editor']['locale'],{data:_0x26ad11}=_0x4883a2,_0x36e46c={'type':'format','content':''};if(_0x26ad11&&'listMarkerStyle'==_0x26ad11['key']){if(!_0x26ad11['oldValue'])return{'type':'format','content':o(_0x4c6529,'*Set\x20format:*\x20%0',o(_0x4c6529,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26ad11['newValue']+')'};if(!_0x26ad11['newValue']){let _0x18b4ab=_0x4883a2['head'];for(;_0x18b4ab;){if(_0x18b4ab['data']&&'listType'==_0x18b4ab['data']['key']&&_0x18b4ab['data']['newValue'])return _0x36e46c;_0x18b4ab=_0x18b4ab['next'];}return{'type':'format','content':o(_0x4c6529,'*Remove\x20format:*\x20%0',o(_0x4c6529,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x26ad11['oldValue']+')'};}}}}class St extends _0x3b85d6{['afterInit'](){const _0x3832ec=this['editor'];if(!_0x3832ec['plugins']['has']('PageBreakEditing'))return;_0x3832ec['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27282d=_0x3832ec['plugins']['get']('TrackChangesEditing'),_0x16261f=_0x3832ec['locale'];_0x27282d['descriptionFactory']['registerElementLabel']('pageBreak',_0x5bc84d=>o(_0x16261f,'ELEMENT_PAGE_BREAK',_0x5bc84d));}}class It extends _0x3b85d6{['afterInit'](){const _0x5bd31a=this['editor'];if(!_0x5bd31a['plugins']['has']('Paragraph'))return;const _0x12aac7=_0x5bd31a['locale'],_0x5609b0=_0x5bd31a['plugins']['get']('TrackChangesEditing');_0x5609b0['descriptionFactory']['registerElementLabel']('paragraph',_0x930e14=>o(_0x12aac7,'ELEMENT_PARAGRAPH',_0x930e14)),_0x5609b0['enableDefaultAttributesIntegration']('paragraph'),_0x5609b0['enableCommand']('insertParagraph');const _0x583c72=_0x5609b0['descriptionFactory'];_0x583c72['registerDescriptionCallback'](_0x232608=>{if('insertion'!==_0x232608['type'])return;const {start:_0x5a43ab,end:_0x5a5990}=_0x232608['getFirstRange']();if(!_0x5a43ab['isTouching'](_0x5a5990)||!_0x5a43ab['nodeAfter'])return;const _0x48025f=_0x5bd31a['model']['schema'],_0xcda959=_0x5a43ab['nodeAfter'];return _0x48025f['isBlock'](_0xcda959)&&!_0x48025f['isLimit'](_0xcda959)&&_0x48025f['checkChild'](_0xcda959,'$text')?{'type':'insertion','content':o(_0x12aac7,'*Insert:*\x20%0',_0x583c72['getItemLabel'](_0xcda959,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x238509=this['editor'],_0x5a3ef6=_0x238509['locale'];_0x238509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cc39=>{if('formatBlock'!=_0x34cc39['type'])return;const {data:_0x55227b}=_0x34cc39;return _0x55227b&&'paragraph'==_0x55227b['commandName']?{'type':'format','content':o(_0x5a3ef6,'*Change\x20to:*\x20%0',o(_0x5a3ef6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x3b85d6{['afterInit'](){const _0x143b80=this['editor'];_0x143b80['commands']['get']('replaceSource')&&_0x143b80['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x3b85d6{['afterInit'](){const _0xe4b39=this['editor'];if(!_0xe4b39['plugins']['has']('RemoveFormatEditing'))return;_0xe4b39['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ff30c=this['editor'];_0x1ff30c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45eee4=>{if('formatBlock'!=_0x45eee4['type']&&'formatInline'!=_0x45eee4['type'])return;const {data:_0x5bff85}=_0x45eee4;return _0x5bff85&&'removeFormat'==_0x5bff85['commandName']?{'type':'format','content':o(_0x1ff30c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x3b85d6{['afterInit'](){const _0x3764ba=this['editor'];if(!_0x3764ba['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xd344f8=_0x3764ba['plugins']['get']('TrackChangesEditing');_0xd344f8['enableCommand']('goToPreviousRestrictedEditingException'),_0xd344f8['enableCommand']('goToNextRestrictedEditingException');const _0x550a0c=_0x3764ba['plugins']['get']('RestrictedEditingModeEditing');_0x550a0c['enableCommand']('trackChanges'),_0x550a0c['enableCommand']('acceptSuggestion'),_0x550a0c['enableCommand']('discardSuggestion'),_0x550a0c['enableCommand']('acceptAllSuggestions'),_0x550a0c['enableCommand']('discardAllSuggestions'),_0x550a0c['enableCommand']('acceptSelectedSuggestions'),_0x550a0c['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x3b85d6{['afterInit'](){const _0x425ad5=this['editor'];if(!_0x425ad5['plugins']['has']('ShiftEnter'))return;const _0x12396e=_0x425ad5['plugins']['get']('TrackChangesEditing');_0x12396e['enableCommand']('shiftEnter'),_0x12396e['descriptionFactory']['registerElementLabel']('softBreak',_0x26f5f7=>o(_0x425ad5['locale'],'ELEMENT_LINE_BREAK',_0x26f5f7));}}function cn(_0xd8965f,_0x522cb5,_0x3a041a){const _0x971241=[];for(const _0x591567 of _0x522cb5['getItems']())_0x591567['hasAttribute'](_0xd8965f)&&_0x971241['push'](_0x3a041a['createRangeOn'](_0x591567));return _0x971241;}class $t extends _0x3b85d6{['afterInit'](){const _0xf54dc1=this['editor'],_0x4c8828=_0xf54dc1['plugins']['get']('TrackChangesEditing');_0xf54dc1['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4c8828['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x32d420=this['editor'],_0x9f6127=_0x32d420['model'],_0x18c326=_0x32d420['locale'],_0x34356b=_0x32d420['plugins']['get']('TrackChangesEditing'),_0x39dedd='restrictedEditingException',_0x624681=_0x32d420['commands']['get'](_0x39dedd);_0x34356b['enableCommand'](_0x39dedd,(_0x2b5e7e,_0x1a14e3={})=>{const _0x7c1638=_0x9f6127['document']['selection'];if(_0x7c1638['isCollapsed'])return void _0x2b5e7e(_0x1a14e3);const _0x1b5684=void 0x0!==_0x1a14e3['forceValue']?_0x1a14e3['forceValue']:!_0x624681['value'];_0x9f6127['change'](()=>{const _0x221d46=Array['from'](_0x7c1638['getRanges']());for(const _0xd73c3c of _0x221d46){const _0x4cc8dc=_0x1b5684?[_0xd73c3c]:cn(_0x39dedd,_0xd73c3c,_0x9f6127);for(const _0x4f3a52 of _0x4cc8dc)_0x34356b['markInlineFormat'](_0x4f3a52,{'commandName':_0x39dedd,'commandParams':[{'forceValue':_0x1b5684}]});}});}),_0x34356b['descriptionFactory']['registerDescriptionCallback'](_0x4129a8=>{if('formatBlock'!=_0x4129a8['type']&&'formatInline'!=_0x4129a8['type'])return;const {data:_0x47a8be}=_0x4129a8;return _0x47a8be&&_0x47a8be['commandName']==_0x39dedd?_0x47a8be['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18c326,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x18c326,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4bbb0c=this['editor'],_0x9a6bab=_0x4bbb0c['locale'],_0x243a75=_0x4bbb0c['plugins']['get']('TrackChangesEditing'),_0x57535e='restrictedEditingExceptionBlock',_0x1bd813=this['editor']['commands']['get'](_0x57535e);_0x243a75['enableCommand'](_0x57535e,(_0x4c885e,_0x375b0a={})=>{const _0xac764a=this['editor']['model']['document']['selection'],_0x225388=_0x375b0a&&void 0x0!==_0x375b0a['forceValue']?_0x375b0a['forceValue']:!_0x1bd813['value'];let _0x9029=[];if(_0x225388){const _0x58126f=Array['from'](_0xac764a['getSelectedBlocks']())['filter'](_0x3f742a=>function(_0x48b533){return!!_0x48b533['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3f742a)||function(_0x944058,_0x483fb2){const _0x1fe6f6=_0x483fb2['createContext'](_0x944058['parent']);if(!_0x483fb2['checkChild'](_0x1fe6f6,'restrictedEditingException'))return!0x1;if(!_0x483fb2['checkChild'](_0x1fe6f6['push']('restrictedEditingException'),_0x944058))return!0x1;return!0x0;}(_0x3f742a,this['editor']['model']['schema']));_0x9029=to(_0x58126f,_0x4bbb0c['model']);}else{const _0x531985=Array['from'](_0xac764a['getSelectedBlocks']())['map'](_0xd3f8d9=>function(_0x44f543){let _0x576531=_0x44f543;for(;_0x576531['parent'];){if('restrictedEditingException'==_0x576531['parent']['name'])return _0x576531;_0x576531=_0x576531['parent'];}return null;}(_0xd3f8d9))['filter'](_0x2cf68c=>!!_0x2cf68c);_0x9029=to(_0x531985,_0x4bbb0c['model']);}_0x4bbb0c['model']['change'](()=>{for(const _0x2c8b92 of _0x9029)_0x243a75['markBlockFormat'](_0x2c8b92,{'commandName':_0x57535e,'commandParams':[{'forceValue':_0x225388}]});});}),_0x243a75['descriptionFactory']['registerDescriptionCallback'](_0x589fe8=>{const {data:_0x272b90}=_0x589fe8;if(_0x272b90&&_0x272b90['commandName']==_0x57535e)return _0x272b90['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9a6bab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x9a6bab,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x3b85d6{['afterInit'](){const _0x58eced=this['editor'];if(!_0x58eced['plugins']['has']('Style')||!_0x58eced['plugins']['has']('DataSchema'))return;const _0x5caf7e=_0x58eced['plugins']['get']('TrackChangesEditing'),_0x412ada=_0x58eced['locale'],_0xe7107d=_0x58eced['config']['get']('style')||{},_0x119b58=_0x58eced['plugins']['get']('GeneralHtmlSupport'),_0x2ef22d=_0x58eced['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58eced['plugins']['get']('DataSchema'),_0xe7107d['definitions']);_0x5caf7e['enableDefaultAttributesIntegration']('style');const _0x3843c8=new Set();for(const _0x3b8e96 of _0x2ef22d['block']){const _0x2f23f3=_0x119b58['getGhsAttributeNameForElement'](_0x3b8e96['element']);_0x3843c8['add'](_0x2f23f3);}const _0x4be277=new Set();for(const _0x6c414c of _0x2ef22d['inline']){const _0x554bbe=_0x119b58['getGhsAttributeNameForElement'](_0x6c414c['element']);_0x4be277['add'](_0x554bbe);for(const _0x3e98b6 of _0x6c414c['ghsAttributes'])_0x4be277['add'](_0x3e98b6);}for(const _0x442cc1 of _0x3843c8)_0x5caf7e['descriptionFactory']['registerAttributeLabel'](_0x442cc1,o(_0x412ada,'FORMAT_STYLE'));for(const _0x37243b of _0x4be277)_0x5caf7e['descriptionFactory']['registerAttributeLabel'](_0x37243b,o(_0x412ada,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490e99=this['editor'],_0xa098bf=_0x490e99['locale'];_0x490e99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3868f0=>{if('formatBlock'!=_0x3868f0['type']&&'formatInline'!=_0x3868f0['type'])return;const {data:_0x4cd441}=_0x3868f0;return _0x4cd441&&'style'===_0x4cd441['commandName']?_0x4cd441['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa098bf,'*Set\x20format:*\x20%0',_0x4cd441['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa098bf,'*Remove\x20format:*\x20%0',_0x4cd441['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x3b85d6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e00ff){super(_0x4e00ff),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2c63bb=this['editor'],_0x441468=_0x2c63bb['model']['document']['selection'];if(!_0x2c63bb['plugins']['has']('TableEditing'))return;const _0x3d6fe0=_0x2c63bb['locale'],_0x1c0183=_0x2c63bb['plugins']['get']('TrackChangesEditing'),_0x5c1a4b=_0x2c63bb['plugins']['get']('TableUtils');_0x1c0183['descriptionFactory']['registerElementLabel']('table',_0x2bd4d0=>o(_0x3d6fe0,'ELEMENT_TABLE',_0x2bd4d0)),this['_setupColumnsRowsFixing'](),_0x1c0183['enableCommand']('insertTable'),_0x1c0183['enableCommand']('selectTableRow'),_0x1c0183['enableCommand']('selectTableColumn');for(const _0x25b04f of['insertTableRowAbove','insertTableRowBelow']){const _0x15124b=_0x2c63bb['commands']['get'](_0x25b04f);_0x1c0183['enableCommand'](_0x25b04f,_0x5d9100=>{_0x2c63bb['model']['change'](_0x54a60b=>{_0x5d9100();const _0x46a192='above'===_0x15124b['order'],_0x2f1e29=_0x5c1a4b['getSelectionAffectedTableCells'](_0x441468),_0x367a68=_0x5c1a4b['getRowIndexes'](_0x2f1e29),_0x80d5fe=_0x46a192?_0x367a68['first']-0x1:_0x367a68['last']+0x1,_0x2c4f1c=_0x2f1e29[0x0]['findAncestor']('table'),_0x1cef60=_0x5c1a4b['createTableWalker'](_0x2c4f1c,{'startRow':_0x80d5fe,'endRow':_0x80d5fe}),_0x2b515a=Array['from'](_0x1cef60)['map'](_0x2de808=>_0x54a60b['createRangeOn'](_0x2de808['cell']));_0x1c0183['markMultiRangeInsertion'](_0x2b515a,'tableRow');});});}for(const _0x3b1fc4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4fcb99=_0x2c63bb['commands']['get'](_0x3b1fc4);_0x1c0183['enableCommand'](_0x3b1fc4,_0xe12b3e=>{_0x2c63bb['model']['change'](_0x489959=>{_0xe12b3e();const _0x1e114b='left'===_0x4fcb99['order'],_0x2799df=_0x5c1a4b['getSelectionAffectedTableCells'](_0x441468),_0x278edb=_0x5c1a4b['getColumnIndexes'](_0x2799df),_0x504bd5=_0x1e114b?_0x278edb['first']-0x1:_0x278edb['last']+0x1,_0x1dd74c=_0x2799df[0x0]['findAncestor']('table'),_0x2a8381=_0x5c1a4b['createTableWalker'](_0x1dd74c,{'startRow':0x0,'column':_0x504bd5,'includeAllSlots':!0x1}),_0x2b9b33=Array['from'](_0x2a8381)['map'](_0x42a197=>_0x489959['createRangeOn'](_0x42a197['cell']));_0x1c0183['markMultiRangeInsertion'](_0x2b9b33,'tableColumn');});});}for(const _0xf53a26 of['removeTableRow','removeTableColumn']){const _0xfdc824=_0xf53a26['substr'](0xb),_0x2e7a49=_0xfdc824['toLowerCase'](),_0x5a8934=_0x2e7a49['substr'](0x0,0x3)+'span',_0x2db643='table'+_0xfdc824,_0x1fd8a0='min'+_0xfdc824,_0x52627d='max'+_0xfdc824;_0x1c0183['enableCommand'](_0xf53a26,()=>{_0x2c63bb['model']['change'](_0x376f48=>{const _0x3fd7d6=_0x5c1a4b['getSelectionAffectedTableCells'](_0x441468),_0x4b8c78=_0x3fd7d6[0x0]['findAncestor']('table');let _0x31f338;if('removeTableRow'==_0xf53a26){const _0x32a9c4=_0x5c1a4b['getRowIndexes'](_0x3fd7d6);_0x31f338={'startRow':_0x32a9c4['first'],'endRow':_0x32a9c4['last'],'includeAllSlots':!0x0};}else{const _0x5dcd00=_0x5c1a4b['getColumnIndexes'](_0x3fd7d6);_0x31f338={'startColumn':_0x5dcd00['first'],'endColumn':_0x5dcd00['last'],'includeAllSlots':!0x0};}const _0x28b939=_0x5c1a4b['createTableWalker'](_0x4b8c78,_0x31f338),_0x26e11d=Array['from'](_0x28b939)['map'](({cell:_0x16c1fb})=>_0x16c1fb),_0x1d391f=_e(_0x26e11d['filter'](_0x19a4bc=>_0x19a4bc['hasAttribute'](_0x5a8934))),_0x368ddb=_e(_0x26e11d['filter'](_0x1dfd8a=>!_0x1dfd8a['hasAttribute'](_0x5a8934)))['map'](_0x3b5896=>_0x376f48['createRangeOn'](_0x3b5896)),_0x2e5acd=_0x1c0183['markMultiRangeDeletion'](_0x368ddb,_0x2db643);if(_0x2e5acd&&('tableRow'==_0x2e5acd['subType']||'tableColumn'==_0x2e5acd['subType'])){const _0x5cccfc=this['_getSuggestionCoords'](_0x2e5acd);for(const _0x324db5 of _0x1d391f){const _0x9fd0=_0x376f48['createRangeOn'](_0x324db5),_0x130c01=_0x5c1a4b['getCellLocation'](_0x324db5),_0x342653=_0x324db5['getAttribute'](_0x5a8934)-0x1,_0x34db5f=_0x5cccfc[_0x1fd8a0],_0x4b0bc2=_0x5cccfc[_0x52627d];_0x34db5f<=_0x130c01[_0x2e7a49]&&_0x130c01[_0x2e7a49]+_0x342653<=_0x4b0bc2&&_0x2e5acd['addRange'](_0x9fd0);}}});});}function _0x2d4493(_0x1b3637){const _0x3d3828=Array['from'](_0x441468['getRanges']())['map'](_0x338e2a=>_0x169dab['fromRange'](_0x338e2a));_0x2c63bb['model']['change'](_0x3426ff=>{const _0x4bf6af=_0x3426ff['batch'];_0x1b3637=_0x1b3637['filter'](_0x5d0d7b=>'$graveyard'!=_0x5d0d7b['root']['rootName']),_0x3426ff['setSelection'](_0x1b3637),_0x2c63bb['commands']['get']('removeTableRow')['refresh'](),_0x2c63bb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2c63bb['model']['enqueueChange'](()=>{_0x2c63bb['model']['enqueueChange'](_0x4bf6af,_0x271f09=>{const _0x1e1033=_0x3d3828['filter'](_0x2a1559=>'$graveyard'!=_0x2a1559['root']['rootName']);_0x1e1033['length']>0x0&&_0x271f09['setSelection'](_0x1e1033);for(const _0x57dfec of _0x3d3828)_0x57dfec['detach']();});});});}function _0x13d4f3(_0x56ac6a){_0x2c63bb['model']['change'](_0x14bdfe=>{const _0x3ce9f8=Array['from'](_0x441468['getRanges']())['map'](_0x234cf3=>_0x169dab['fromRange'](_0x234cf3)),_0x280714=[];for(const _0x3f28be of _0x56ac6a)for(const _0x3f5e68 of _0x3f28be['getItems']({'shallow':!0x0}))_0x280714['push'](_0x3f5e68);for(const _0x484579 of _0x280714)'$graveyard'!=_0x484579['root']['rootName']&&(_0x14bdfe['setSelection'](_0x14bdfe['createPositionAt'](_0x484579,0x0)),_0x2c63bb['commands']['get']('removeTableColumn')['refresh'](),_0x2c63bb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x211a51=_0x3ce9f8['filter'](_0x30c457=>'$graveyard'!=_0x30c457['root']['rootName']);_0x211a51['length']>0x0&&_0x14bdfe['setSelection'](_0x211a51);for(const _0x33f5a2 of _0x3ce9f8)_0x33f5a2['detach']();});}function _0x20390d(_0xaa5124,_0x3c8963){return _0x3c8963['every'](_0x1b5e52=>_0xaa5124['some'](_0x374087=>_0x374087['end']['isEqual'](_0x1b5e52['start'])||_0x1b5e52['end']['isEqual'](_0x374087['start'])));}function _0xe76f4(_0x1417d3,_0x27de8f){return!_0x1417d3['some'](_0x50309a=>_0x27de8f['some'](_0x466780=>_0x50309a['isIntersecting'](_0x466780)))&&_0x1417d3['some'](_0x137a9e=>_0x27de8f['some'](_0x42292b=>_0x137a9e['end']['isTouching'](_0x42292b['start'])));}_0x1c0183['descriptionFactory']['registerDescriptionCallback'](_0x4addec=>{if('insertion'!=_0x4addec['type']&&'deletion'!=_0x4addec['type'])return;const _0x8aa4f5=_0x4addec['getContainedElement']();if(null!=_0x8aa4f5&&_0x8aa4f5['is']('element','table')){if('insertion'==_0x4addec['type']){const _0x2a13a3=_0x4addec['getItems']()['filter'](_0x1be9fb=>_0x1be9fb['is']('$textProxy'))['map'](_0x56a1d9=>_0x56a1d9['data']);if(_0x2a13a3['length'])return{'type':'insertion','content':o(_0x3d6fe0,'*Insert:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a13a3['join']('\x20')+'\x22'))};}if('deletion'==_0x4addec['type']){const _0x3018d7=_0x4addec['getItems']()['filter'](_0x9128eb=>_0x9128eb['is']('$textProxy'))['map'](_0x323e0c=>_0x323e0c['data']);if(_0x3018d7['length'])return{'type':'deletion','content':o(_0x3d6fe0,'*Remove:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3018d7['join']('\x20')+'\x22'))};}}}),_0x1c0183['descriptionFactory']['registerDescriptionCallback'](_0x5cf574=>{if('tableRow'==_0x5cf574['subType']){const _0x1ef012=_0x5cf574['getItems']()['filter'](_0x5e67b8=>_0x5e67b8['is']('$textProxy'))['map'](_0x26f47c=>_0x26f47c['data']),_0x910ee9=this['_getSuggestionCoords'](_0x5cf574),_0x391ec8=_0x910ee9['maxRow']-_0x910ee9['minRow']+0x1;if('insertion'==_0x5cf574['type'])return _0x1ef012['length']?{'type':'insertion','content':o(_0x3d6fe0,'*Insert:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x391ec8,'\x22'+_0x1ef012['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d6fe0,'*Insert:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_ROW',_0x391ec8))};if('deletion'==_0x5cf574['type'])return _0x1ef012['length']?{'type':'deletion','content':o(_0x3d6fe0,'*Remove:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x391ec8,'\x22'+_0x1ef012['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d6fe0,'*Remove:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_ROW',_0x391ec8))};}if('tableColumn'==_0x5cf574['subType']){const _0xda186e=_0x5cf574['getItems']()['filter'](_0x173447=>_0x173447['is']('$textProxy'))['map'](_0xd94022=>_0xd94022['data']),_0xf3cea9=this['_getSuggestionCoords'](_0x5cf574),_0x214d86=_0xf3cea9['maxColumn']-_0xf3cea9['minColumn']+0x1;if('insertion'==_0x5cf574['type'])return _0xda186e['length']?{'type':'insertion','content':o(_0x3d6fe0,'*Insert:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x214d86,'\x22'+_0xda186e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d6fe0,'*Insert:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_COLUMN',_0x214d86))};if('deletion'==_0x5cf574['type'])return _0xda186e['length']?{'type':'deletion','content':o(_0x3d6fe0,'*Remove:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x214d86,'\x22'+_0xda186e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d6fe0,'*Remove:*\x20%0',o(_0x3d6fe0,'ELEMENT_TABLE_COLUMN',_0x214d86))};}}),_0x1c0183['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2d4493),_0x1c0183['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2d4493),_0x1c0183['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13d4f3),_0x1c0183['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13d4f3),_0x1c0183['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x20390d),_0x1c0183['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x20390d),_0x1c0183['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe76f4),_0x1c0183['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe76f4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14e856=this['editor'],_0x5b88f2=_0x14e856['model']['document']['selection'];return(_0x236a81,_0x40b988)=>{_0x14e856['model']['change'](_0x24ac06=>{const {commandName:_0x237b3b,commandParams:_0x101939}=_0x40b988;let _0x1952fd=_0x236a81[0x0]['end']['nodeBefore'];_0x101939&&_0x101939[0x0]&&!0x1===_0x101939[0x0]['forceValue']&&(_0x1952fd=_0x236a81[0x0]['start']['nodeAfter']);const _0x40f17b=_0x24ac06['createRangeIn'](_0x1952fd);if('$graveyard'==_0x40f17b['root']['rootName'])return;const _0x3cf5c6=Array['from'](_0x5b88f2['getRanges']())['map'](_0x29f3c0=>_0x169dab['fromRange'](_0x29f3c0));_0x24ac06['setSelection'](_0x40f17b),_0x14e856['commands']['get'](_0x237b3b)['refresh'](),_0x101939['push']({'forceDefaultExecution':!0x0}),_0x14e856['execute'](_0x237b3b,..._0x101939);const _0x1a2a72=_0x3cf5c6['filter'](_0x1e91e3=>'$graveyard'!=_0x1e91e3['root']['rootName']);_0x1a2a72['length']>0x0&&_0x24ac06['setSelection'](_0x1a2a72);for(const _0x35e209 of _0x3cf5c6)_0x35e209['detach']();});};}['_getCoordsForCells'](_0xc78a35){const _0x47b1e3=this['editor']['plugins']['get']('TableUtils');let _0x17699c=Number['MAX_SAFE_INTEGER'],_0x3791e3=Number['MIN_SAFE_INTEGER'],_0x1d3a75=Number['MAX_SAFE_INTEGER'],_0xa69cd6=Number['MIN_SAFE_INTEGER'];for(const _0xe13ae1 of _0xc78a35){if('$graveyard'==_0xe13ae1['root']['rootName'])continue;const {row:_0x998500,column:_0x2a09c0}=_0x47b1e3['getCellLocation'](_0xe13ae1),_0x2ad707=_0xe13ae1['hasAttribute']('rowspan')?_0xe13ae1['getAttribute']('rowspan')-0x1:0x0,_0x52be07=_0xe13ae1['hasAttribute']('colspan')?_0xe13ae1['getAttribute']('colspan')-0x1:0x0;_0x17699c=_0x998500<_0x17699c?_0x998500:_0x17699c,_0x3791e3=_0x998500+_0x2ad707>_0x3791e3?_0x998500+_0x2ad707:_0x3791e3,_0x1d3a75=_0x2a09c0<_0x1d3a75?_0x2a09c0:_0x1d3a75,_0xa69cd6=_0x2a09c0+_0x52be07>_0xa69cd6?_0x2a09c0+_0x52be07:_0xa69cd6;}return{'minRow':_0x17699c,'maxRow':_0x3791e3,'minColumn':_0x1d3a75,'maxColumn':_0xa69cd6};}['_setupColumnsRowsFixing'](){const _0x2befdb=this['editor'],_0x217803=_0x2befdb['plugins']['get']('TrackChangesEditing'),_0x2261d2=_0x2befdb['plugins']['get']('TableUtils');_0x2befdb['model']['document']['on']('change:data',()=>{const _0x3d3726=Array['from'](_0x2befdb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x595517,data:_0x1bb1f9}of _0x3d3726){const {group:_0x2fe82a,id:_0x298dc4,subType:_0x4be851}=_0x217803['_splitMarkerName'](_0x595517);if('suggestion'!=_0x2fe82a)continue;if(null!=_0x1bb1f9['oldRange'])continue;const _0x11824c=_0x217803['getSuggestion'](_0x298dc4);this['_tablePostFixingSubtypes']['includes'](_0x4be851)&&this['_tableSuggestions']['add'](_0x11824c);}},{'priority':'low'});const _0x1ec9ac=(_0xae9843,_0x38b817)=>{let _0x2b0e92=!0x1;const _0x25a562=_0x38b817['createRangeOn'](_0xae9843),_0x5cdf22=_0xae9843['findAncestor']('table'),_0x4ca74a=_0x2261d2['getCellLocation'](_0xae9843);for(const _0x3df0fd of this['_tableSuggestions']){const _0x4722eb=_0x3df0fd['subType'],_0x2f0169=_0x4722eb['startsWith']('tablePaste'),_0x4c8ae7=_0x4722eb['substr'](_0x2f0169?0xa:0x5),_0x13367e=_0x4c8ae7['toLowerCase'](),_0x1d31c8=_0x13367e['substr'](0x0,0x3)+'span',_0x1d68ca='min'+_0x4c8ae7,_0x47b7fc='max'+_0x4c8ae7;if(!_0x3df0fd['isInContent'])continue;if(_0x5cdf22!=_0x3df0fd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3df0fd['isIntersectingWithRange'](_0x25a562))continue;const _0x57f6a3=_0xae9843['hasAttribute'](_0x1d31c8)?_0xae9843['getAttribute'](_0x1d31c8)-0x1:0x0,_0x1a1f6c=this['_getSuggestionCoords'](_0x3df0fd),_0x171bf2=_0x1a1f6c[_0x1d68ca],_0x4fc21f=_0x1a1f6c[_0x47b7fc];_0x171bf2<=_0x4ca74a[_0x13367e]&&_0x4ca74a[_0x13367e]+_0x57f6a3<=_0x4fc21f&&(_0x3df0fd['addRange'](_0x25a562),_0x2b0e92=!0x0);}return _0x2b0e92;};_0x2befdb['model']['document']['registerPostFixer'](_0x4d6c98=>{let _0x35670f=!0x1;for(const _0x36365e of _0x2befdb['model']['document']['differ']['getChanges']())if('insert'==_0x36365e['type']){if('tableRow'==_0x36365e['name']){for(const _0x56e585 of _0x36365e['position']['nodeAfter']['getChildren']())_0x35670f=_0x35670f||_0x1ec9ac(_0x56e585,_0x4d6c98);}else'tableCell'==_0x36365e['name']&&(_0x35670f=_0x35670f||_0x1ec9ac(_0x36365e['position']['nodeAfter'],_0x4d6c98));}return _0x35670f;});}['_getSuggestionCoords'](_0x1aab64){return this['_getCoordsForCells'](_0x1aab64['getRanges']()['map'](_0x137b03=>_0x137b03['start']['nodeAfter']));}}function _e(_0x32fb39){return Array['from'](new Set(_0x32fb39)['values']());}class Bt extends _0x3b85d6{static get['requires'](){return[Dt];}['afterInit'](){const _0x217939=this['editor'],_0x3978e8=_0x217939['model']['document']['selection'],_0x466856=_0x217939['locale'];if(!_0x217939['plugins']['has']('TableEditing'))return;const _0x12e4f7=_0x217939['plugins']['get']('TrackChangesEditing'),_0x55c4d6=_0x217939['plugins']['get']('TableUtils'),_0x3a45c9=_0x217939['plugins']['get'](Dt);_0x3a45c9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12e4f7['enableCommand']('mergeTableCells',()=>{const _0x429a19=_0x55c4d6['getSelectionAffectedTableCells'](_0x217939['model']['document']['selection']);_0x217939['model']['change'](()=>{_0x12e4f7['markMultiRangeBlockFormat'](_0x429a19,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x217939['commands']['get']('mergeTableCells')['on']('execute',(_0x31c09e,_0x8c3bc7)=>{_0x217939['commands']['get']('trackChanges')['value']&&(_0x8c3bc7['length']>0x0&&_0x8c3bc7[_0x8c3bc7['length']-0x1]&&_0x8c3bc7[_0x8c3bc7['length']-0x1]['forceDefaultExecution']||_0x12e4f7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x31c09e['stop']());},{'priority':'highest'});for(const _0x478aff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x190296=_0x217939['commands']['get'](_0x478aff);_0x12e4f7['enableCommand'](_0x478aff,()=>{const _0x18e6e7=_0x217939['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9dc00f=>_0x9dc00f['is']('element','tableCell')),_0x2d5fc0=_0x190296['value'];_0x217939['model']['change'](()=>{_0x12e4f7['markMultiRangeBlockFormat']([_0x18e6e7,_0x2d5fc0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x535376 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x468360=_0x217939['commands']['get'](_0x535376);_0x12e4f7['enableCommand'](_0x535376,()=>{const _0x2f7ab3=_0x55c4d6['getSelectionAffectedTableCells'](_0x217939['model']['document']['selection'])[0x0],_0x4d6941=_0x2f7ab3['findAncestor']('table'),{column:_0x3cd9fd,row:_0x226750}=_0x55c4d6['getCellLocation'](_0x2f7ab3);let _0x20384f=[];if('horizontally'==_0x468360['direction']){const _0x1a38d8=_0x55c4d6['createTableWalker'](_0x4d6941,{'startRow':_0x226750,'endRow':_0x226750,'includeAllSlots':!0x0});_0x20384f=Array['from'](_0x1a38d8)['map'](_0x1c97ed=>_0x1c97ed['cell']);}else{const _0x796ca4=_0x55c4d6['createTableWalker'](_0x4d6941,{'column':_0x3cd9fd,'includeAllSlots':!0x0});_0x20384f=Array['from'](_0x796ca4)['map'](_0x533661=>_0x533661['cell']);}_0x217939['model']['change'](_0x2d91e5=>{_0x12e4f7['markBlockFormat'](_0x2d91e5['createRangeOn'](_0x2f7ab3),{'commandName':_0x535376,'commandParams':[]},_0x20384f,_0x535376);});});}_0x12e4f7['descriptionFactory']['registerDescriptionCallback'](_0x31d80d=>{if('formatBlock'!=_0x31d80d['type']&&'formatInline'!=_0x31d80d['type'])return;const {data:_0x2136b6}=_0x31d80d;return _0x2136b6&&'mergeTableCells'==_0x2136b6['commandName']?{'type':'format','content':o(_0x466856,'*Merge\x20cells*')}:void 0x0;}),_0x12e4f7['descriptionFactory']['registerDescriptionCallback'](_0x3f7ada=>{if('formatBlock'!=_0x3f7ada['type']&&'formatInline'!=_0x3f7ada['type'])return;const {data:_0x2c9588}=_0x3f7ada;return _0x2c9588?'splitTableCellVertically'==_0x2c9588['commandName']?{'type':'format','content':o(_0x466856,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c9588['commandName']?{'type':'format','content':o(_0x466856,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x35f5ba=_0x3a45c9['_acceptFormatSuggestionCallbackFactory']();for(const _0x49f737 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12e4f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49f737,'accept',_0x35f5ba);for(const _0x2bb647 of['splitTableCellVertically','splitTableCellHorizontally'])_0x12e4f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2bb647,'accept',_0x35f5ba);_0x12e4f7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x35f63b=>{_0x217939['model']['change'](_0x5d7ed9=>{const _0x19e745=Array['from'](_0x3978e8['getRanges']())['map'](_0x3ae465=>_0x169dab['fromRange'](_0x3ae465));_0x5d7ed9['setSelection'](_0x35f63b),_0x217939['commands']['get']('mergeTableCells')['refresh'](),_0x217939['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xdad674=_0x19e745['filter'](_0x59a17a=>'$graveyard'!=_0x59a17a['root']['rootName']);_0xdad674['length']>0x0&&_0x5d7ed9['setSelection'](_0xdad674);for(const _0x38723d of _0x19e745)_0x38723d['detach']();});});for(const _0x45e568 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b7488=_0x217939['commands']['get'](_0x45e568);_0x5b7488['on']('set:isEnabled',(_0x241b90,_0x3f9f68,_0x1c7924)=>{if(_0x1c7924){const _0x3c2f56=_0x217939['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27418c=>_0x27418c['is']('element','tableCell'));this['_areMergableCells'](_0x5b7488['value'],_0x3c2f56)||(_0x241b90['return']=!0x1,_0x241b90['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x521cf5=this['editor']['commands']['get']('mergeTableCells'),_0x420d94=this['editor']['plugins']['get']('TableUtils');if(!_0x521cf5['isEnabled'])return!0x1;const _0x281df6=_0x420d94['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33c223 of _0x281df6)for(const _0x59a628 of _0x281df6)if(_0x33c223!=_0x59a628&&!this['_areMergableCells'](_0x33c223,_0x59a628))return!0x1;return!0x0;}['_areMergableCells'](_0x2831b1,_0x2d960b){const _0x598e03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x734b0d=this['editor']['model']['createRangeOn'](_0x2831b1),_0x2969af=this['editor']['model']['createRangeOn'](_0x2d960b),_0x9a0639=new Set(),_0x273525=new Set();for(const _0x2a7c8c of _0x598e03['getSuggestions']())if(('insertion'==_0x2a7c8c['type']||'deletion'==_0x2a7c8c['type']||'mergeTableCells'==_0x2a7c8c['subType'])&&_0x2a7c8c['isInContent']){for(const _0x4cb110 of _0x2a7c8c['getRanges']())_0x4cb110['containsRange'](_0x734b0d,!0x0)&&_0x9a0639['add'](_0x2a7c8c['type']+':'+_0x2a7c8c['author']['id']),_0x4cb110['containsRange'](_0x2969af,!0x0)&&_0x273525['add'](_0x2a7c8c['type']+':'+_0x2a7c8c['author']['id']);}if(_0x9a0639['size']!=_0x273525['size'])return!0x1;for(const _0x256b27 of _0x9a0639)if(!_0x273525['has'](_0x256b27))return!0x1;return!0x0;}}class Ot extends _0x3b85d6{static get['requires'](){return[Dt];}['afterInit'](){const _0x195644=this['editor'];if(!_0x195644['plugins']['has']('TableEditing'))return;const _0x36b2f8=_0x195644['locale'],_0x4432fb=_0x195644['plugins']['get']('TrackChangesEditing');_0x4432fb['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4432fb['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4432fb['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36b2f8,'FORMAT_HEADER_ROW')),_0x4432fb['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36b2f8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c8429=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54beb7=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x1c8429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x54beb7),_0x1c8429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x54beb7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x235c6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e1164=this['editor']['plugins']['get']('TableUtils');function _0x22533f({showActiveMarker:_0x3ff73c=!0x0,setDataAttribute:_0x4acb30=!0x0}={}){return(_0x31d268,_0x267a27,_0x39a94c)=>{const {type:_0x2843c5,id:_0x447406}=_0x235c6f['_splitMarkerName'](_0x267a27['markerName']);if(!_0x235c6f['hasSuggestion'](_0x447406))return;const _0x2cd88a=_0x235c6f['getSuggestion'](_0x447406),_0x3f974b=_0x2cd88a['data'];if('formatBlock'!=_0x2cd88a['type']||!_0x3f974b||'setTableColumnHeader'!=_0x3f974b['commandName'])return;if(_0x267a27['item'])return void _0x31d268['stop']();if(!_0x39a94c['consumable']['consume'](_0x267a27['markerRange'],_0x31d268['name']))return;const _0x55e979=_0x267a27['markerRange']['start']['nodeAfter'],_0x40254f=_0x267a27['markerRange']['end']['nodeBefore'],_0x2a7865=_0x55e979['parent']['parent'],{column:_0x4ad8d1}=_0x3e1164['getCellLocation'](_0x55e979),{column:_0x3bb922}=_0x3e1164['getCellLocation'](_0x40254f);for(let _0x42155f=_0x4ad8d1;_0x42155f<=_0x3bb922;_0x42155f++){const _0x27b28a=_0x3e1164['createTableWalker'](_0x2a7865,{'column':_0x42155f,'includeAllSlots':!0x1});for(const _0x544b4f of _0x27b28a){const _0x1c8494=_0x544b4f['cell'],_0x3a08b0=_0x39a94c['mapper']['toViewElement'](_0x1c8494);_0x39a94c['writer']['addClass']('ck-suggestion-marker-'+_0x2843c5,_0x3a08b0),_0x4acb30&&_0x39a94c['writer']['setAttribute']('data-suggestion',_0x447406,_0x3a08b0),_0x39a94c['mapper']['bindElementToMarker'](_0x3a08b0,_0x267a27['markerName']),_0x3ff73c&&(_0x235c6f['activeMarkers']['includes'](_0x267a27['markerName'])?_0x39a94c['writer']['addClass']('ck-suggestion-marker--active',_0x3a08b0):_0x39a94c['writer']['removeClass']('ck-suggestion-marker--active',_0x3a08b0));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x22533f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1710cc,_0x43654f,_0x479610)=>{_0x479610['options']['showSuggestionHighlights']&&_0x22533f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1710cc,_0x43654f,_0x479610);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x293f15,_0xd610dc,_0x41ab17)=>{const {type:_0x148257,id:_0x188ac5}=_0x235c6f['_splitMarkerName'](_0xd610dc['markerName']);if(!_0x235c6f['hasSuggestion'](_0x188ac5))return;const _0x55a745=_0x235c6f['getSuggestion'](_0x188ac5),_0x559022=_0x55a745['data'];if('formatBlock'!=_0x55a745['type']||!_0x559022||'setTableColumnHeader'!=_0x559022['commandName'])return;const _0x19a488=_0x41ab17['mapper']['markerNameToElements'](_0xd610dc['markerName']);if(_0x19a488){for(const _0x239001 of _0x19a488)_0x41ab17['writer']['removeClass']('ck-suggestion-marker-'+_0x148257,_0x239001),_0x41ab17['writer']['removeClass']('ck-suggestion-marker--active',_0x239001),_0x41ab17['writer']['removeAttribute']('data-suggestion',_0x239001),_0x41ab17['mapper']['unbindElementFromMarkerName'](_0x239001,_0xd610dc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x7d04e5=this['editor'],_0x183508=_0x7d04e5['locale'];function _0x299403(_0x553379){return{'type':'format','content':o(_0x183508,'*Format:*\x20%0',_0x553379)};}_0x7d04e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfb417a=>{if('formatBlock'!=_0xfb417a['type'])return;const {data:_0x3f7b98}=_0xfb417a;if(_0x3f7b98){if('setTableRowHeader'==_0x3f7b98['commandName']){const _0x1d0f14=_0x3f7b98['commandParams'][0x0]['forceValue'];return _0x299403(o(_0x183508,_0x1d0f14?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3f7b98['commandName']){const _0x196524=_0x3f7b98['commandParams'][0x0]['forceValue'];return _0x299403(o(_0x183508,_0x196524?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x3b85d6{['afterInit'](){const _0x3a82b8=this['editor'],_0x939547=_0x3a82b8['locale'],_0x517251=_0x3a82b8['plugins']['get']('TrackChangesEditing');function _0x1bd4ef(_0x91c43d){return{'type':'format','content':''+o(_0x939547,'*Set\x20table\x20type:*\x20%0',_0x91c43d)};}_0x3a82b8['plugins']['has']('TableLayout')&&(_0x517251['enableCommand']('insertTableLayout'),_0x517251['enableDefaultAttributesIntegration']('tableType'),_0x517251['descriptionFactory']['registerElementLabel'](_0x71bf30=>_0x71bf30['is']('element','table')&&'layout'===_0x71bf30['getAttribute']('tableType'),_0x2ef047=>o(_0x939547,'ELEMENT_LAYOUT_TABLE',_0x2ef047)),_0x517251['descriptionFactory']['registerDescriptionCallback'](_0x14fba3=>{const {data:_0x53c15a}=_0x14fba3;if(_0x53c15a&&'tableType'==_0x53c15a['key'])switch(_0x53c15a['newValue']){case'layout':return _0x1bd4ef(o(_0x939547,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1bd4ef(o(_0x939547,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x54b20c=>[_0x54b20c,null]));class Mt extends _0x3b85d6{static get['requires'](){return[Dt];}['afterInit'](){const _0x2b85eb=this['editor'];if(!_0x2b85eb['plugins']['has']('TableClipboard'))return;const _0x47c098=_0x2b85eb['plugins']['get']('TrackChangesEditing'),_0x40a7e3=_0x2b85eb['plugins']['get']('TableUtils'),_0x49c938=_0x2b85eb['plugins']['get'](Dt),_0x193314=_0x2b85eb['plugins']['get']('TableClipboard'),_0x4d4219=_0x2b85eb['plugins']['get']('TableSelection'),_0x52859f=_0x2b85eb['plugins']['get'](_0x2468f0);_0x49c938['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b85eb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b85eb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x43c877=null,_0x14482c=!0x1;_0x52859f['on']('contentInsertion',(_0x29198b,_0x555bea)=>{_0x14482c='paste'===_0x555bea['method'];}),_0x2b85eb['model']['on']('insertContent',(_0x8575e3,_0x131ff1)=>{if(!_0x14482c&&null===_0x4d4219['getSelectedTableCells']())return;const [_0x41957d,_0x1b41e8]=_0x131ff1,_0x32576c=_0x131ff1[_0x131ff1['length']-0x1];_0x32576c&&_0x32576c['forceDefaultExecution']||_0x47c098['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c172a,_0x5272b4,_0x5786b5,_0x27546c,_0x3d0df1){if(_0x5272b4&&!_0x5272b4['is']('documentSelection'))return!0x1;const _0x860dfd=_0x3d0df1['getTableIfOnlyTableInContent'](_0x4c172a,_0x5786b5);if(!_0x860dfd||!Oe(_0x860dfd,void 0x0,_0x27546c))return!0x1;const _0x41ec4e=_0x27546c['getSelectionAffectedTableCells'](_0x5786b5['document']['selection']);if(!_0x41ec4e['length'])return!0x1;const _0x34c8cc=_0x41ec4e[0x0]['findAncestor']('table'),_0x5220b3=_0x27546c['getRowIndexes'](_0x41ec4e),_0x1acb70=_0x27546c['getColumnIndexes'](_0x41ec4e),_0x6aa2c1={'startRow':_0x5220b3['first'],'endRow':_0x5220b3['last'],'startColumn':_0x1acb70['first'],'endColumn':_0x1acb70['last']};return 0x1==_0x41ec4e['length']&&(_0x6aa2c1['endRow']+=_0x27546c['getRows'](_0x860dfd)-0x1,_0x6aa2c1['endColumn']+=_0x27546c['getColumns'](_0x860dfd)-0x1),Oe(_0x34c8cc,_0x6aa2c1,_0x27546c);}(_0x41957d,_0x1b41e8,_0x2b85eb['model'],_0x40a7e3,_0x193314)&&(_0x8575e3['stop'](),_0x43c877={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b85eb['model']['change'](()=>{_0x2b85eb['model']['insertContent'](_0x131ff1[0x0],_0x131ff1[0x1],_0x131ff1[0x2],{'forceDefaultExecution':!0x0});const _0x3c2bd6=_0x3a9a7a(),{rowInsertionRanges:_0x1e821c,columnInsertionRanges:_0x379801,insertionRanges:_0x430f7f,deletionRanges:_0x3e11d8,cells:_0x445e5e}=_0x43c877;_0x1e821c['length']&&_0x47c098['markMultiRangeInsertion'](_0x1e821c,'tablePasteRow',{'tablePasteChainId':_0x3c2bd6}),_0x379801['length']&&_0x47c098['markMultiRangeInsertion'](_0x379801,'tablePasteColumn',{'tablePasteChainId':_0x3c2bd6}),_0x430f7f['length']&&(_0x47c098['markMultiRangeInsertion'](_0x430f7f,'tablePaste',{'tablePasteChainId':_0x3c2bd6,'skipNestingCheck':!0x0}),_0x430f7f['forEach'](_0x49e1d7=>_0x49e1d7['detach']?.())),_0x3e11d8['length']&&(_0x47c098['markMultiRangeDeletion'](_0x3e11d8,'tablePaste',{'tablePasteChainId':_0x3c2bd6,'skipNestingCheck':!0x0}),_0x3e11d8['forEach'](_0x3dafe1=>_0x3dafe1['detach']?.()));const _0xd80951=_0x47c098['markMultiRangeBlockFormat'](_0x445e5e['map'](({element:_0x2e5e5d})=>_0x2e5e5d),{'formatGroupId':_0x3a9a7a()},[],'tablePasteCell',{'tablePasteChainId':_0x3c2bd6});if(_0xd80951){const _0x4a3b6c=_0xd80951['getMarkers'](),_0x5c3a5a=[];for(const {element:_0x279d38,attributes:_0x21d65e}of _0x445e5e){if(!_0x21d65e)continue;const _0x5cdc60=_0x2b85eb['model']['createRangeOn'](_0x279d38),_0x5ebd83=_0x4a3b6c['find'](_0x1579bd=>_0x1579bd['getRange']()['isEqual'](_0x5cdc60));_0x5ebd83&&_0x5c3a5a['push']([_0x5ebd83['name'],_0x21d65e]);}_0x5c3a5a['length']&&_0xd80951['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c3a5a));}_0x43c877=null;}));},{'priority':_0x4d5218['high']+0xa}),_0x52859f['on']('contentInsertion',()=>{_0x14482c=!0x1;},{'priority':'lowest'}),_0x2b85eb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ca2db,_0x4a25fa)=>{const [_0x342930,_0x31666e,,_0x27a55d]=_0x4a25fa;if(!_0x43c877)return;_0x2ca2db['stop']();const _0x1c9c7d=_0x342930['cell'],_0x558a65=_0x31666e,_0x54d9cc=Be(_0x1c9c7d),_0x1a2cf2=Be(_0x558a65);_0x2ca2db['return']=_0x1c9c7d;let _0x4651e0=null,_0x4bc4f5=null;if(_0x1a2cf2||_0x54d9cc){if(_0x54d9cc&&!_0x1a2cf2){_0x27a55d['remove'](_0x1c9c7d['getChild'](0x0));for(const _0x47ec6f of Array['from'](_0x558a65['getChildren']()))_0x27a55d['insert'](_0x47ec6f,_0x1c9c7d,'end');const _0x4893ed=_0x43c877['rowInsertionIndexes']['includes'](_0x342930['row']),_0x4b3744=_0x43c877['columnInsertionIndexes']['includes'](_0x342930['column']);_0x4893ed||_0x4b3744||(_0x4651e0=_0x169dab['fromRange'](_0x27a55d['createRangeIn'](_0x1c9c7d)));}else _0x1a2cf2&&!_0x54d9cc&&(_0x4bc4f5=_0x27a55d['createRangeIn'](_0x1c9c7d));}else{const _0x36df6b=_0x27a55d['createElement']('tableCellSuggestion'),_0x1f749f=_0x27a55d['createElement']('tableCellSuggestion');_0x27a55d['wrap'](_0x27a55d['createRangeIn'](_0x1c9c7d),_0x1f749f),_0x27a55d['insert'](_0x36df6b,_0x1c9c7d,0x0);for(const _0x42b9b0 of Array['from'](_0x558a65['getChildren']()))_0x27a55d['insert'](_0x42b9b0,_0x36df6b,'end');_0x4651e0=_0x169dab['fromRange'](_0x27a55d['createRangeOn'](_0x36df6b)),_0x4bc4f5=_0x169dab['fromRange'](_0x27a55d['createRangeOn'](_0x1f749f));}const _0x5c6b58=Array['from'](_0x558a65['getAttributes']())['filter'](([_0x72539f])=>Re['includes'](_0x72539f));_0x43c877['cells']['push']({'element':_0x1c9c7d,'attributes':_0x5c6b58['length']?Object['fromEntries'](_0x5c6b58):null}),_0x4651e0&&_0x43c877['insertionRanges']['push'](_0x4651e0),_0x4bc4f5&&_0x43c877['deletionRanges']['push'](_0x4bc4f5);},{'priority':'high'}),_0x40a7e3['on']('insertColumns',(_0x402561,_0x26da92)=>{const [_0x54665c,_0x197b7e={}]=_0x26da92;if(!_0x43c877)return;const _0xd6bf31=_0x197b7e['at']||0x0,_0x885201=_0x197b7e['columns']||0x1;_0x43c877['columnInsertionIndexes']=new Array(_0x885201)['fill'](_0xd6bf31)['map']((_0xe4b90a,_0x20c103)=>_0xe4b90a+_0x20c103);for(const {cell:_0x349637}of _0x40a7e3['createTableWalker'](_0x54665c,{'startColumn':_0xd6bf31,'endColumn':_0xd6bf31+_0x885201-0x1}))_0x43c877['columnInsertionRanges']['push'](_0x2b85eb['model']['createRangeOn'](_0x349637));},{'priority':'low'}),_0x40a7e3['on']('insertRows',(_0x48ec79,_0x35f218)=>{const [_0x1bce53,_0x29c32c={}]=_0x35f218;if(!_0x43c877)return;const _0x147d2b=_0x29c32c['at']||0x0,_0xdaea40=_0x29c32c['rows']||0x1;_0x43c877['rowInsertionIndexes']=new Array(_0xdaea40)['fill'](_0x147d2b)['map']((_0x221033,_0x10984d)=>_0x221033+_0x10984d);for(const {cell:_0x1a22aa}of _0x40a7e3['createTableWalker'](_0x1bce53,{'startRow':_0x147d2b,'endRow':_0x147d2b+_0xdaea40-0x1}))_0x43c877['rowInsertionRanges']['push'](_0x2b85eb['model']['createRangeOn'](_0x1a22aa));},{'priority':'low'}),_0x47c098['descriptionFactory']['registerDescriptionCallback'](_0x4c190c=>{if(_0x4c190c['subType']&&_0x4c190c['subType']['startsWith']('tablePaste'))return _0x4c190c['previous']?{}:{'type':'insertion','content':o(_0x2b85eb['locale'],'*Replace\x20table\x20cells*')};});const _0x2f018d=()=>!0x1;for(const _0x253f13 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47c098['_suggestionFactory']['registerCustomCallback']('insertion',_0x253f13,'join',_0x2f018d),_0x47c098['_suggestionFactory']['registerCustomCallback']('deletion',_0x253f13,'join',_0x2f018d),_0x47c098['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x253f13,'join',_0x2f018d);_0x47c098['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f018d),_0x47c098['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x59416e,_0x1b3474,_0x3a9036)=>{const _0x2b6eaf=_0x59416e['map'](_0x56f092=>_0x56f092['getContainedElement']())['filter'](_0x51131a=>_0x51131a),_0x783fd=new Map(_0x2b6eaf['map'](_0x22af4c=>[_0x22af4c,null]));if(_0x43c877){for(const {element:_0x514b10,attributes:_0x49db03}of _0x43c877['cells'])_0x49db03&&_0x783fd['set'](_0x514b10,_0x49db03);}else{if(_0x3a9036&&_0x3a9036['markerAttributes'])for(const [_0x21e880,_0x55b9ef]of Object['entries'](_0x3a9036['markerAttributes'])){const _0x18b36b=_0x2b85eb['model']['markers']['get'](_0x21e880),_0x25ab9c=_0x18b36b?_0x18b36b['getRange']()['getContainedElement']():null;_0x25ab9c&&_0x783fd['set'](_0x25ab9c,_0x55b9ef);}}_0x2b85eb['model']['change'](_0x4f92f0=>{for(const [_0x245849,_0x39789a]of _0x783fd)_0x4f92f0['setAttributes']({...Ae,..._0x39789a},_0x245849);});});const _0x1d22be=(_0x5601cc,_0x27c519)=>{_0x47c098['_suggestionFactory']['registerCustomCallback'](_0x5601cc,'tablePaste',_0x27c519,(_0x5c60ac,_0x3819cc,_0x2b6330)=>{_0x2b85eb['model']['change'](_0x4db211=>{const _0x2c5cf0=[];for(const _0x3728e6 of _0x5c60ac){const _0x1b6488=_0x3728e6['start']['nodeAfter'];_0x1b6488['is']('element','tableCellSuggestion')&&_0x2c5cf0['push'](_0x1b6488);}_0x47c098['_suggestionFactory']['getSuggestionCallback'](_0x5601cc,null,_0x27c519)(_0x5c60ac,_0x3819cc,_0x2b6330);for(const _0x38e675 of _0x2c5cf0)'$graveyard'!=_0x38e675['root']['rootName']&&_0x4db211['unwrap'](_0x38e675);});});};_0x1d22be('insertion','accept'),_0x1d22be('insertion','discard'),_0x1d22be('deletion','accept'),_0x1d22be('deletion','discard'),_0x47c098['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3587ba=>{const _0x246108=_0x3587ba['map'](_0x4414bb=>_0x4414bb['getContainedElement']()),_0x5cffda=_0x246108[0x0]['findAncestor']('table'),{minRow:_0x14ada3,maxRow:_0x520006}=_0x49c938['_getCoordsForCells'](_0x246108);_0x40a7e3['removeRows'](_0x5cffda,{'at':_0x14ada3,'rows':_0x520006-_0x14ada3+0x1});}),_0x47c098['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1e3249=>{const _0x5d7264=_0x1e3249['map'](_0x5d39bd=>_0x5d39bd['getContainedElement']()),_0x4f434f=_0x5d7264[0x0]['findAncestor']('table'),{minColumn:_0x56c9ce,maxColumn:_0x1b6b27}=_0x49c938['_getCoordsForCells'](_0x5d7264);_0x40a7e3['removeColumns'](_0x4f434f,{'at':_0x56c9ce,'columns':_0x1b6b27-_0x56c9ce+0x1});});const _0x4c3b2a=(_0x45ceaf,_0x198359)=>{if(!_0x198359['subType']||!_0x198359['subType']['startsWith']('tablePaste'))return;const _0x330a71=_0x198359['attributes']['tablePasteChainId'],_0x30a1ba=_0x47c098['getSuggestions']()['filter'](_0x3547a2=>_0x3547a2['isInContent']&&_0x3547a2['attributes']&&_0x3547a2['attributes']['tablePasteChainId']==_0x330a71);_0x30a1ba['length']&&_0x198359['getAllAdjacentSuggestions']()['length']!=_0x30a1ba['length']&&_0x30a1ba['reduce']((_0x2b2882,_0x28b418)=>(_0x2b2882['next']=_0x28b418,_0x28b418['previous']=_0x2b2882,_0x28b418));};function _0x34c8cb(_0x2ac637,_0x17f4ee=!0x0){const {id:_0x45450b,authorId:_0x2efdd6}=_0x47c098['_splitMarkerName'](_0x2ac637['markerName']),_0x21ed4f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xec90d9=_0x47c098['activeMarkers']['includes'](_0x2ac637['markerName']);return _0xec90d9&&_0x21ed4f['push']('ck-suggestion-marker--active'),{'classes':_0x21ed4f,'attributes':{'data-suggestion':_0x45450b,'data-author-id':_0x2efdd6},'priority':_0xec90d9&&_0x17f4ee?0xbc2:0xbb8};}_0x47c098['on']('suggestionLoaded',_0x4c3b2a,{'priority':'high'}),_0x47c098['on']('suggestionUnloaded',_0x4c3b2a,{'priority':'high'}),_0x2b85eb['model']['document']['registerPostFixer'](()=>{let _0x3b4c4c=!0x1;const _0xca4d55=Array['from'](_0x2b85eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2da440,data:_0x336930}of _0xca4d55){const {group:_0x17d988,type:_0x5890b8,id:_0x55d7db}=_0x47c098['_splitMarkerName'](_0x2da440);if('suggestion'!=_0x17d988||'deletion'!=_0x5890b8||_0x336930['oldRange'])continue;if(!_0x47c098['hasSuggestion'](_0x55d7db))continue;const _0x3fee21=_0x47c098['getSuggestion'](_0x55d7db)['getRanges'](),_0x2f12fc=_0x2b85eb['plugins']['get']('Users')['me'];for(const _0x557b7b of _0x47c098['getSuggestions']()){if(!_0x557b7b['isInContent']||_0x557b7b['author']!=_0x2f12fc)continue;if('formatBlock'!=_0x557b7b['type']||'tablePasteCell'!=_0x557b7b['subType'])continue;if(_0x557b7b['getRanges']()['every'](_0x5e1fb3=>_0x3fee21['some'](_0x2bf9e3=>_0x2bf9e3['containsRange'](_0x5e1fb3,!0x0)))){for(const _0x1d29a8 of _0x557b7b['getAllAdjacentSuggestions']())_0x1d29a8['isInContent']&&(_0x1d29a8['discard'](),_0x3b4c4c=!0x0);}}}return _0x3b4c4c;}),_0x2b85eb['model']['document']['registerPostFixer'](_0x53e0f4=>{const _0x964a4a=_0x2b85eb['commands']['get']('redo');if(!_0x964a4a||!_0x964a4a['_createdBatches']['has'](_0x53e0f4['batch']))return!0x1;let _0x45aadd=!0x1;const _0x56db4f=_0x2b85eb['plugins']['get']('Users')['me'],_0x526dbf=_0x2b85eb['model']['document']['differ']['getChanges'](),_0x1b57a3=Array['from'](_0x2b85eb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e69e1,data:_0x4f1221})=>{const {group:_0x1004c3,subType:_0x30f4c8,authorId:_0x5cf6d8}=_0x47c098['_splitMarkerName'](_0x1e69e1);return'suggestion'==_0x1004c3&&'tablePaste'==_0x30f4c8&&_0x5cf6d8==_0x56db4f['id']&&!_0x4f1221['oldRange'];});for(const _0x5a0d99 of _0x526dbf){if('insert'!=_0x5a0d99['type']||'tableCellSuggestion'!=_0x5a0d99['name']||0x1!=_0x5a0d99['length'])continue;const _0x3be6fd=_0x53e0f4['createRange'](_0x5a0d99['position'],_0x5a0d99['position']['getShiftedBy'](0x1));if(!_0x1b57a3['find'](({data:_0x52f4a1})=>_0x52f4a1['newRange']['isEqual'](_0x3be6fd))){for(const {name:_0x47d4d0,data:_0x1d3174}of _0x1b57a3)if(_0x3be6fd['containsRange'](_0x1d3174['newRange'])){_0x53e0f4['updateMarker'](_0x47d4d0,{'range':_0x3be6fd}),_0x45aadd=!0x0;break;}}}return _0x45aadd;}),_0x2b85eb['model']['document']['registerPostFixer'](_0x4b0029=>{let _0x33f589=!0x1;const _0x2826f6=_0x2b85eb['plugins']['get']('Users')['me'],_0x59f9ff=_0x47c098['getSuggestions']()['filter'](_0xd1caa6=>_0xd1caa6['isInContent']&&_0xd1caa6['author']==_0x2826f6),_0x213b50=new Set(),_0x2b7d7a=new Set();for(const _0x3443b5 of _0x59f9ff)if('tablePaste'==_0x3443b5['subType'])for(const _0x2b2e35 of _0x3443b5['getMarkers']()){const _0x2da9b1=_0x2b2e35['getRange']()['getContainedElement']();if(_0x2da9b1){if(_0x2da9b1['is']('element','tableCellSuggestion')&&Be(_0x2da9b1)){_0x3443b5['removeMarker'](_0x2b2e35['name']),_0x213b50['add'](_0x2da9b1),_0x33f589=!0x0;const _0x278188=_0x2da9b1['nextSibling'],_0x1d1571=_0x2da9b1['previousSibling'],_0x2542db=_0x278188&&_0x278188['is']('element','tableCellSuggestion'),_0x556c5e=_0x1d1571&&_0x1d1571['is']('element','tableCellSuggestion');_0x2542db&&!_0x213b50['has'](_0x278188)&&_0x2b7d7a['add'](_0x278188),_0x556c5e&&!_0x213b50['has'](_0x1d1571)&&_0x2b7d7a['add'](_0x1d1571);}else _0x2da9b1['is']('element','paragraph')&&_0x2da9b1['isEmpty']&&(_0x3443b5['removeMarker'](_0x2b2e35['name']),_0x33f589=!0x0);}}else{if('tablePasteCell'==_0x3443b5['subType']){if(!_0x3443b5['attributes']||!_0x3443b5['attributes']['tablePasteChainId'])continue;const _0x4eecfd=_0x3443b5['attributes']['markerAttributes'];if(_0x4eecfd&&Object['keys'](_0x4eecfd)['length'])continue;const _0x3e196d=_0x3443b5['attributes']['tablePasteChainId'];let _0x165909=!0x0,_0x4b0185=!0x0;for(const _0x289edb of _0x59f9ff)if(_0x289edb['subType']&&_0x289edb['subType']['startsWith']('tablePaste')){if(!_0x289edb['attributes']['tablePasteChainId']){_0x4b0185=!0x1;break;}if(_0x289edb['id']!=_0x3443b5['id']&&_0x289edb['attributes']['tablePasteChainId']==_0x3e196d){_0x165909=!0x1;break;}}_0x4b0185&&_0x165909&&(_0x3443b5['removeMarkers'](),_0x33f589=!0x0);}}for(const _0x16cddf of _0x213b50)_0x4b0029['remove'](_0x16cddf);for(const _0x4bcc51 of _0x2b7d7a)_0x4b0029['unwrap'](_0x4bcc51);return _0x33f589;}),_0x2b85eb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x32aecf=>_0x34c8cb(_0x32aecf),'converterPriority':'high'}),_0x2b85eb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x394912,_0x31540b)=>_0x31540b['options']['showSuggestionHighlights']?_0x34c8cb(_0x394912,!0x1):null,'converterPriority':'high'});const _0x47ed2c=_0x2b85eb['editing']['view'];this['listenTo'](_0x47ed2c['document'],'clipboardOutput',(_0x4dfbfe,_0x3ef384)=>{const _0x2b59cf=[];for(const _0x51f5a8 of _0x47ed2c['createRangeIn'](_0x3ef384['content'])['getItems']())_0x51f5a8['is']('element','suggestion-td')&&_0x2b59cf['push'](_0x51f5a8);_0x47ed2c['change'](_0x2fb905=>{for(const _0x41fbb2 of _0x2b59cf)_0x2fb905['move'](_0x2fb905['createRangeIn'](_0x41fbb2),_0x2fb905['createPositionBefore'](_0x41fbb2)),_0x2fb905['remove'](_0x41fbb2);});});}}function Be(_0x44144b){if(_0x44144b['isEmpty'])return!0x0;const _0x5baf2e=_0x44144b['getChild'](0x0);return _0x5baf2e['is']('element','paragraph')&&_0x5baf2e['isEmpty'];}function Oe(_0x344a39,_0x53c3d2={},_0x3dda89){for(const {isAnchor:_0x57324d,cellHeight:_0x20d684,cellWidth:_0x7437db}of _0x3dda89['createTableWalker'](_0x344a39,{'includeAllSlots':!0x0,..._0x53c3d2}))if(!_0x57324d||0x1!=_0x20d684||0x1!=_0x7437db)return!0x1;return!0x0;}class Rt extends _0x3b85d6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x47f38f=this['editor']['plugins']['get']('TrackChangesEditing');_0x47f38f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x47f38f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x47f38f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47f38f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x47f38f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x47f38f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x30bf81,_0x2771da){const _0x305b72=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf4fb8c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f9693=_0x2771da['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2445ca=_0xf4fb8c['getColumnGroupElement'](_0x4f9693);let _0x4ab650=_0x2445ca?_0xf4fb8c['getTableColumnsWidths'](_0x2445ca):null,_0x1d03fc=_0x4f9693['getAttribute']('tableWidth')||null;const _0x533ddc=_0x2771da['tableWidth']||_0x1d03fc,_0x19e87b=_0x2771da['columnWidths']||_0x4ab650,_0x3672e1=this['editor']['plugins']['get']('Users')['me'];for(const _0x16cac0 of _0x305b72['getSuggestions']()){const _0x1a9c4e=_0x16cac0['getContainedElement']();if('resizeTable'===_0x16cac0['subType']&&_0x1a9c4e===_0x4f9693){_0x16cac0['author']!==_0x3672e1&&_0x16cac0['discard']();const _0xaf85f6=_0x16cac0['data']['commandParams'];_0x1d03fc=_0xaf85f6[0x0]['tableWidth'],_0x4ab650=_0xaf85f6[0x0]['columnWidths'];break;}}_0x30bf81({'table':_0x4f9693,'tableWidth':_0x533ddc,'columnWidths':_0x19e87b}),_0x305b72['markBlockFormat'](_0x4f9693,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d03fc,'columnWidths':_0x4ab650}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x26296d){if('formatBlock'!=_0x26296d['type']&&'formatInline'!=_0x26296d['type'])return;const {data:_0x305199}=_0x26296d;if(_0x305199&&'resizeTable'===_0x305199['formatGroupId']){const _0x134260='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x134260)};}}}class Tt extends _0x3b85d6{['afterInit'](){const _0x17e2fa=this['editor'];_0x17e2fa['plugins']['has']('Template')&&_0x17e2fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x3b85d6{['afterInit'](){const _0x344f00=this['editor'];if(!_0x344f00['commands']['get']('insertTableOfContents'))return;_0x344f00['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x574ec7=_0x344f00['plugins']['get']('TrackChangesEditing'),_0x15e3c1=_0x344f00['locale'];_0x574ec7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47f9a9=>o(_0x15e3c1,'ELEMENT_TABLE_OF_CONTENTS',_0x47f9a9));}}class Ut extends _0x3b85d6{['afterInit'](){const _0x2756b4=this['editor'];if(!_0x2756b4['plugins']['has']('Title'))return;const _0x887554=_0x2756b4['plugins']['get']('TrackChangesEditing');_0x887554['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2756b4['locale'],'ELEMENT_TITLE')),_0x2756b4['model']['document']['registerPostFixer'](_0x2e70e6=>{let _0x3644b7=!0x1;const _0x29256f=Array['from'](_0x2756b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e263d,data:_0x4ee568}of _0x29256f){const {group:_0x21c416}=_0x887554['_splitMarkerName'](_0x3e263d);if('suggestion'!==_0x21c416||!_0x4ee568['newRange'])continue;const _0x1a3caa=_0x4ee568['newRange'],_0x10179a=_0x1a3caa['end']['nodeBefore'];if(!_0x10179a||!_0x10179a['is']('element','title-content'))continue;if(!_0x1a3caa['start']['isTouching'](_0x1a3caa['end']))continue;const _0x17d38d=_0x2756b4['model']['schema']['getNearestSelectionRange'](_0x1a3caa['end'],'forward');if(_0x17d38d&&_0x17d38d['isCollapsed']){const _0x31a964=_0x2e70e6['createRange'](_0x1a3caa['start'],_0x17d38d['start']);_0x31a964['isEqual'](_0x1a3caa)||(_0x2e70e6['updateMarker'](_0x3e263d,{'range':_0x31a964}),_0x3644b7=!0x0);}_0x3644b7||(_0x2e70e6['removeMarker'](_0x3e263d),_0x3644b7=!0x0);}return _0x3644b7;});}}class Vt extends _0x3b85d6{['afterInit'](){const _0x1a7799=this['editor'],_0x2fad0d=_0x1a7799['plugins']['get']('TrackChangesEditing');_0x1a7799['plugins']['has']('Uploadcare')&&(_0x2fad0d['enableCommand']('uploadcare'),_0x1a7799['plugins']['has']('UploadcareImageEdit')&&(_0x2fad0d['enableCommand']('uploadcareImageEdit'),_0x2fad0d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2fad0d['descriptionFactory']['registerDescriptionCallback'](_0xbda853=>{if('attribute'!=_0xbda853['type'])return;const {data:_0x5e51d0}=_0xbda853;return _0x5e51d0&&'uploadcareImageId'==_0x5e51d0['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x3b85d6{['afterInit'](){const _0x109e31=this['editor'],_0xa07bef=_0x109e31['plugins']['get']('TrackChangesEditing');_0x109e31['plugins']['has']('UndoEditing')&&(_0xa07bef['enableCommand']('undo'),_0xa07bef['enableCommand']('redo'));}}class Pt extends _0x3b85d6{static get['requires'](){return[Dt];}['afterInit'](){const _0x4a09f4=this['editor'];if(!_0x4a09f4['plugins']['has']('TableCaptionEditing'))return;_0x4a09f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x3b85d6{['tableProperties'];['tableCellProperties'];constructor(_0xf51003){super(_0xf51003),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0xf51003['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1db850=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5b340f of this['tableProperties'])_0x1db850['enableCommand'](_0x5b340f,(_0x54e213,_0xa013e)=>{const _0x5b084b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5b340f,[_0x5b084b],this['tableProperties'],'tableProperties',_0x54e213,_0xa013e);});_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1db850['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x29289a,_0x555a8e)=>this['handleDiscardAction'](this['tableProperties'],_0x29289a,_0x555a8e)),_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12b5fb of this['tableCellProperties'])this['editor']['commands']['get'](_0x12b5fb)&&_0x1db850['enableCommand'](_0x12b5fb,(_0x59538b,_0x1edded)=>{const _0x53ffd1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12b5fb,_0x53ffd1,this['tableCellProperties'],'tableCellProperties',_0x59538b,_0x1edded);});_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1db850['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd33053,_0x2e0a13)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd33053,_0x2e0a13)),_0x1db850['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1db850['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1db850['descriptionFactory']['registerDescriptionCallback'](_0x54e137=>this['handleSuggestionDescription'](_0x54e137)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x133712,_0x23aaf7,_0x4a6e5d,_0x191545,_0x4d6b04,_0x5d527d){const _0x1db7ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d527d['batch'],()=>{for(const _0x543615 of _0x23aaf7){if(this['_getSuggestion'](_0x543615,_0x191545))_0x4d6b04(_0x5d527d);else{const _0x4f0a5e={};for(const _0x286f6a of _0x4a6e5d){const _0x1bd552=_0x543615['getAttribute'](_0x286f6a);void 0x0!==_0x1bd552&&(_0x4f0a5e[_0x286f6a]=_0x1bd552);}_0x4d6b04(_0x5d527d),_0x1db7ce['markBlockFormat'](_0x543615,{'commandParams':[_0x4f0a5e]},[],_0x191545);}}});}['handleDiscardAction'](_0x102019,_0x315dc6,_0x183c0f){const _0x172a9b=_0x315dc6[0x0]['start']['nodeAfter'],_0x22758a=_0x183c0f['commandParams'][0x0];this['editor']['model']['change'](_0x501982=>{for(const _0x44088e of _0x102019)void 0x0!==_0x22758a[_0x44088e]?_0x501982['setAttribute'](_0x44088e,_0x22758a[_0x44088e],_0x172a9b):_0x501982['removeAttribute'](_0x44088e,_0x172a9b);});}['handleSuggestionDescription'](_0x42678b){if(_0x42678b['data'])switch(_0x42678b['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'](_0x584c19,_0x468333){const _0x446d7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2ddd47 of _0x446d7a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a09bf=_0x2ddd47['getContainedElement']();if(_0x2ddd47['subType']===_0x468333&&_0x4a09bf===_0x584c19)return _0x2ddd47;}return null;}['_registerTablePropertiesAttributes'](){const _0xd2b3df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a95f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x294c8a of _0x24a95f){const _0x53756c=_0x294c8a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xd2b3df['descriptionFactory']['registerAttributeLabel'](_0x294c8a,o(this['editor']['locale'],'FORMAT_'+_0x53756c));}}}class Lt extends _0x3b85d6{['afterInit'](){const _0x2946a0=this['editor'];if(!_0x2946a0['plugins']['has']('LineHeight'))return;const _0x54afbf=_0x2946a0['plugins']['get']('TrackChangesEditing'),_0x58f2ea=_0x2946a0['locale'];_0x54afbf['enableDefaultAttributesIntegration']('lineHeight'),_0x54afbf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x58f2ea,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3b85d6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xc16869,_0x5022c8,_0x2e6dbe,_0x19b6b6,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29c92a){super(_0x29c92a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5db2b5,_0x4b6f10,_0x41f777,_0x531e99)=>{this['_model']['change'](()=>{for(const _0x152082 of[..._0x531e99,..._0x41f777])this['_model']['markers']['has'](_0x152082)&&_0x29c92a['editing']['reconvertMarker'](_0x152082);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29c92a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x29c92a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29c92a['config']['get']('trackChanges.trackFormatChanges'),_0x29c92a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29c92a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x29c92a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x50b477=this['editor'];_0x50b477['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5be0bc,{writer:_0x370c78})=>{let _0x1428f6='suggestion:'+_0x5be0bc['getAttribute']('suggestion-type')+':'+_0x5be0bc['getAttribute']('id');return _0x5be0bc['getAttribute']('marker-count')&&(_0x1428f6+=':'+_0x5be0bc['getAttribute']('marker-count')),_0x370c78['createElement']('$marker',{'data-name':_0x1428f6});}}),_0x50b477['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x50b477['model']['document']['registerPostFixer'](_0x515154=>{let _0x754c03=!0x1;const _0xdcba2f=Array['from'](_0x50b477['model']['document']['differ']['getChangedMarkers']()),_0x2acb16=new Set();for(const {name:_0x38417e,data:_0xc77c0f}of _0xdcba2f){const {group:_0x1e5463,type:_0x28cfaf,subType:_0x23b822,id:_0x1caf8c}=this['_splitMarkerName'](_0x38417e);if('suggestion'!==_0x1e5463)continue;const _0x458a01=_0x23b822?'suggestion:'+_0x28cfaf+':'+_0x23b822+':'+_0x1caf8c:'suggestion:'+_0x28cfaf+':'+_0x1caf8c,_0x271f68=_0x50b477['model']['markers']['getMarkersGroup'](_0x458a01),_0x20dbb1=_0x50b477['model']['markers']['get'](_0x38417e),_0x577b0e=this['_suggestions']['get'](_0x1caf8c);if(null!=_0xc77c0f['newRange']){'formatInline'==_0x28cfaf&&(_0x754c03=_0x754c03||Kt(_0xc77c0f['newRange'],_0x38417e,_0x515154,_0x50b477['model']['schema']));const _0x205c37='attribute'==_0x28cfaf&&this['_isBlockAttribute'](_0x23b822['split']('|')[0x0]),_0x2e4e24='attribute'==_0x28cfaf&&this['_isInlineAttribute'](_0x23b822['split']('|')[0x0]);if(_0xc77c0f['newRange']['isCollapsed']||'$graveyard'==_0xc77c0f['newRange']['root']['rootName']||'formatBlock'==_0x28cfaf&&!Ht(_0xc77c0f['newRange'])||_0x205c37&&!Ht(_0xc77c0f['newRange'])||_0x2e4e24&&Qt(_0xc77c0f['newRange'])||'deletion'==_0x28cfaf&&Qt(_0xc77c0f['newRange'])||_0x20dbb1&&Xt(_0x20dbb1,_0x271f68))_0x515154['removeMarker'](_0x38417e),_0x754c03=!0x0;else{if(!_0x577b0e||!_0x577b0e['isInContent'])continue;if(_0xc77c0f['newRange']&&_0xc77c0f['oldRange']&&_0xc77c0f['newRange']['isEqual'](_0xc77c0f['oldRange']))continue;_0x2acb16['add'](_0x577b0e);}}}return _0x2acb16['size']>0x0&&(_0x754c03=!!this['_joinWithAdjacentSuggestions'](_0x2acb16)||_0x754c03),_0x754c03;}),_0x50b477['model']['document']['registerPostFixer'](_0x116787=>{let _0x6c32b2=!0x1;for(const _0x38dadb of _0x50b477['model']['document']['differ']['getChanges']())if('insert'==_0x38dadb['type'])for(const _0x1c6ea7 of this['_suggestions']['values']()){if(_0x1c6ea7['isMultiRange']||!_0x1c6ea7['isInContent'])continue;const _0x437e81='formatBlock'==_0x1c6ea7['type'],_0x52cbdf=this['_getAttributeKey'](_0x1c6ea7),_0x58dea4=_0x52cbdf&&this['_isBlockAttribute'](_0x52cbdf);if(!_0x437e81&&!_0x58dea4)continue;const _0x147fd1=_0x1c6ea7['getFirstRange']();if(_0x147fd1['start']['parent']!=_0x147fd1['end']['parent']&&!_0x147fd1['end']['isAtEnd']){const _0x419dbe=_0x50b477['model']['createPositionAt'](_0x147fd1['start']['nodeAfter'],'end'),_0x3a197d=_0x50b477['model']['createRange'](_0x147fd1['start'],_0x419dbe);_0x116787['updateMarker'](_0x1c6ea7['getFirstMarker'](),{'range':_0x3a197d}),_0x6c32b2=!0x0;}}return _0x6c32b2;}),_0x50b477['model']['document']['registerPostFixer'](_0x2f5ed0=>this['_processAttributeChanges'](_0x2f5ed0)),_0x50b477['model']['document']['registerPostFixer'](_0x2a3245=>!_0x2a3245['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a3245)),_0x50b477['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x50b477['model']['document']['on']('change:data',(_0xbae2c5,_0xbafc5d)=>{if(!_0xbafc5d['isLocal']||_0xbafc5d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4457fb=_0x50b477['model']['document']['differ']['getChanges']();if(0x0==_0x4457fb['length'])return;const _0x2b945d=[],_0x5cdfea=_0x4457fb['filter'](_0x50dd20=>'attribute'==_0x50dd20['type']),_0x167438=_0x4457fb['filter'](_0x5d2bad=>'insert'==_0x5d2bad['type']&&'$text'!=_0x5d2bad['name']);for(const _0x466644 of _0x5cdfea)this['_isRegisteredAttribute'](_0x466644['attributeKey'])&&_0x2b945d['push']({'key':_0x466644['attributeKey'],'newValue':_0x466644['attributeNewValue'],'oldValue':_0x466644['attributeOldValue'],'range':Yt(_0x466644['range'],_0x50b477['model'])});for(const _0x253a8c of _0x167438){if('rename'!=_0x253a8c['action']&&'refresh'!=_0x253a8c['action'])continue;const _0x873b26=Zt(_0x253a8c['position']['nodeAfter'],_0x50b477['model']),_0x49221f=_0x253a8c['before'];'rename'==_0x253a8c['action']&&_0x2b945d['push']({'key':m,'newValue':_0x253a8c['name'],'oldValue':_0x49221f['name'],'range':_0x873b26});for(const [_0xfde5ed,_0x59c4b1]of _0x49221f['attributes']){if(!this['_isRegisteredAttribute'](_0xfde5ed))continue;const _0x3b3b6c=_0x253a8c['attributes']['get'](_0xfde5ed);_0x59c4b1!==_0x3b3b6c&&_0x2b945d['push']({'key':_0xfde5ed,'newValue':_0x3b3b6c,'oldValue':_0x59c4b1,'range':_0x873b26});}for(const [_0x52f00a,_0xfa934]of _0x253a8c['attributes'])this['_isRegisteredAttribute'](_0x52f00a)&&(_0x49221f['attributes']['has'](_0x52f00a)||_0x2b945d['push']({'key':_0x52f00a,'newValue':_0xfa934,'oldValue':null,'range':_0x873b26}));}0x0!=_0x2b945d['length']&&_0x50b477['model']['enqueueChange'](_0xbafc5d,_0x361628=>{const _0x34d2c5=_0x3a9a7a();for(const {range:_0x755af6,key:_0x40dc48,oldValue:_0x174af5,newValue:_0x337d8d}of _0x2b945d)this['markAttributeChange'](_0x755af6,_0x40dc48,_0x174af5,_0x337d8d,{'groupId':_0x34d2c5});this['_reduceExistingSuggestions'](_0x361628,_0x2b945d);});},{'priority':'lowest'}),_0x50b477['model']['markers']['on']('update:suggestion',(_0x3ac6de,_0x4c5bf1,_0x2ff81c)=>{if(null==_0x2ff81c){const {id:_0x496332}=this['_splitMarkerName'](_0x4c5bf1['name']),_0x2cfe1a=this['_suggestions']['get'](_0x496332);_0x2cfe1a&&_0x2cfe1a['addMarkerName'](_0x4c5bf1['name']);}}),_0x50b477['model']['document']['on']('change:data',()=>{const _0x3828c4=Array['from'](_0x50b477['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ccb65=>'suggestion'===this['_splitMarkerName'](_0x2ccb65['name'])['group']);if(0x0===_0x3828c4['length'])return;_0x3828c4['sort']((_0x11c847,_0x3f236c)=>{const _0x16af25=_0x11c847['data']['oldRange'],_0x18a3ed=_0x3f236c['data']['oldRange'];return null===_0x16af25&&null===_0x18a3ed?0x0:null===_0x16af25&&null!==_0x18a3ed?-0x1:null!==_0x16af25&&null===_0x18a3ed?0x1:_0x16af25['start']['isBefore'](_0x18a3ed['start'])?-0x1:0x1;});const _0x445ef7=new Set(),_0x123e60=new Set();for(const {name:_0x4463be,data:_0x21e024}of _0x3828c4){const {id:_0x506dea}=this['_splitMarkerName'](_0x4463be);if(null===_0x21e024['oldRange']){const _0x4eacd0=this['_handleNewSuggestionMarker'](_0x4463be);_0x123e60['add'](_0x4eacd0);}else{const _0x25e63f=this['_suggestions']['get'](_0x506dea);null!==_0x21e024['newRange']||_0x25e63f['isInContent']?(_0x445ef7['add'](_0x25e63f['head']),_0x123e60['add'](_0x25e63f)):this['_removeSuggestion'](_0x25e63f);}}_0x123e60['size']>0x0&&this['_refreshSuggestionsChain'](_0x123e60);for(const _0xab9c54 of _0x445ef7)this['fire']('suggestionChanged',_0xab9c54);}),_0x50b477['model']['on']('applyOperation',(_0x4b97cd,_0x579cfb)=>{const _0x1ba6a2=_0x579cfb[0x0];if(!this['_suggestions']['size'])return;if(!_0x1ba6a2['isDocumentOperation'])return;if(_0x1ba6a2['batch']['isUndo']||!_0x1ba6a2['batch']['isLocal'])return;let _0x57705f,_0x534a9c;switch(_0x1ba6a2['type']){case'insert':_0x57705f=_0x50b477['model']['createPositionAt'](_0x1ba6a2['position']),_0x534a9c=_0x57705f['getShiftedBy'](_0x1ba6a2['howMany']);break;case'split':_0x57705f=_0x50b477['model']['createPositionAt'](_0x1ba6a2['splitPosition']),_0x534a9c=_0x50b477['model']['createPositionAt'](_0x1ba6a2['moveTargetPosition']);break;case'move':_0x57705f=_0x50b477['model']['createPositionAt'](_0x1ba6a2['targetPosition']),_0x534a9c=_0x57705f['getShiftedBy'](_0x1ba6a2['howMany']);break;default:return;}const _0x54b184=_0x50b477['model']['createRange'](_0x57705f,_0x534a9c);_0x50b477['model']['change'](()=>{for(const {suggestion:_0x18149f,meta:_0x135ae3}of this['_findSuggestions'](_0x54b184)){if(_0x18149f['isMultiRange'])continue;if('formatInline'==_0x18149f['type'])continue;const _0x2d3dfb=this['_getAttributeKey'](_0x18149f);if(_0x2d3dfb&&this['_isBlockAttribute'](_0x2d3dfb)&&'split'!=_0x1ba6a2['type'])continue;const _0x2145e8=_0x18149f['data']&&_0x18149f['data']['multipleBlocks'];('formatBlock'!=_0x18149f['type']||'split'==_0x1ba6a2['type']&&!_0x2145e8)&&(_0x135ae3['containsRangeInObject']||'insertion'==_0x18149f['type']&&_0x135ae3['isOwn']||_0x18149f['getFirstRange']()['containsRange'](_0x54b184)&&this['_breakSuggestionMarker'](_0x18149f,_0x57705f,_0x534a9c));}});},{'priority':'lowest'}),_0x50b477['model']['on']('deleteContent',(_0x4163cc,_0x16ff1a)=>{const _0x14ada0=_0x16ff1a[0x0],_0x5c778b=_0x16ff1a[0x1];if(_0x5c778b&&_0x5c778b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x14ada0['isCollapsed'])return;const _0x1975a8=_0x50b477['model']['schema'],{start:_0x7f598c,end:_0x386d06}=_0x14ada0['getFirstRange'](),_0x24b565=_0x7f598c['nodeAfter']&&_0x1975a8['isLimit'](_0x7f598c['nodeAfter'])?null:_0x1975a8['getNearestSelectionRange'](_0x7f598c,'forward'),_0x2db9f2=_0x386d06['nodeBefore']&&_0x1975a8['isLimit'](_0x386d06['nodeBefore'])?null:_0x1975a8['getNearestSelectionRange'](_0x386d06,'backward'),_0x1fc57b=_0x50b477['model']['createRange'](_0x24b565?_0x24b565['start']:_0x7f598c,_0x2db9f2?_0x2db9f2['end']:_0x386d06);_0x50b477['model']['change'](_0x372792=>{this['markDeletion'](_0x1fc57b);const _0x4f4570=_0x50b477['model']['schema']['getNearestSelectionRange'](_0x1fc57b['start']);_0x14ada0['is']('documentSelection')?_0x372792['setSelection'](_0x4f4570):_0x14ada0['setTo'](_0x4f4570);}),_0x4163cc['stop']();},{'priority':_0x4d5218['normal']+0xa}),_0x50b477['model']['on']('insertContent',(_0x4614b7,_0x5565d6)=>{const _0x1e7187=_0x5565d6[_0x5565d6['length']-0x1];_0x1e7187&&_0x1e7187['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x50b477['model']['change'](()=>{let _0x1e8317=_0x50b477['model']['insertContent'](_0x5565d6[0x0],_0x5565d6[0x1],_0x5565d6[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e8317)return;_0x4614b7['return']=_0x1e8317['clone']();const _0x228c12=_0x1e8317['end']['nodeBefore'],_0x2c4b9c=_0x50b477['model']['schema'];_0x228c12&&_0x2c4b9c['isBlock'](_0x228c12)&&!_0x2c4b9c['isObject'](_0x228c12)&&(_0x1e8317=_0x50b477['model']['createRange'](_0x1e8317['start'],_0x50b477['model']['createPositionAt'](_0x228c12,'end'))),this['markInsertion'](_0x1e8317);}),_0x4614b7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1e21fb=new O(_0x50b477,this['_suggestions']);_0x50b477['commands']['add']('acceptSuggestion',_0x1e21fb),this['enableCommand']('acceptSuggestion');const _0x1c06f0=new x(_0x50b477,this['_suggestions']);_0x50b477['commands']['add']('discardSuggestion',_0x1c06f0),this['enableCommand']('discardSuggestion'),_0x50b477['commands']['add']('acceptAllSuggestions',new M(_0x50b477,_0x1e21fb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x50b477['commands']['add']('discardAllSuggestions',new M(_0x50b477,_0x1c06f0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x50b477['commands']['add']('acceptSelectedSuggestions',new R(_0x50b477,_0x1e21fb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x50b477['commands']['add']('discardSelectedSuggestions',new R(_0x50b477,_0x1c06f0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45e8d2=_0x50b477['plugins']['get']('CommentsRepository');this['listenTo'](_0x45e8d2,'addComment',(_0x1e5181,{threadId:_0x2fadc3})=>{const _0x355e7c=this['_suggestions']['get'](_0x2fadc3);_0x355e7c&&_0x355e7c['commentThread']&&0x1===_0x355e7c['commentThread']['length']&&this['_updateSuggestionData'](_0x2fadc3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45e8d2,'removeComment',(_0x773369,{threadId:_0x35d5ac})=>{const _0x36ef2c=this['_suggestions']['get'](_0x35d5ac);_0x36ef2c&&_0x36ef2c['commentThread']&&!_0x36ef2c['commentThread']['length']&&this['_updateSuggestionData'](_0x35d5ac,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f93e5){const _0x2d68f2=_0x517f71([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x29f1d5=0x3d8d0df,_0x1ec112=0x3df468f^_0x29f1d5,_0x1e30db=window[_0x517f71([0x44,0x61,0x74,0x65])][_0x517f71([0x6e,0x6f,0x77])](),_0x102fe5=_0x1f93e5[_0x517f71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25dfb2=new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13e7e2=>{_0x102fe5[_0x517f71([0x6f,0x6e,0x63,0x65])](_0x517f71([0x72,0x65,0x61,0x64,0x79]),_0x13e7e2);}),_0x189716={[_0x517f71([0x6b,0x74,0x79])]:_0x517f71([0x45,0x43]),[_0x517f71([0x75,0x73,0x65])]:_0x517f71([0x73,0x69,0x67]),[_0x517f71([0x63,0x72,0x76])]:_0x517f71([0x50,0x2d,0x32,0x35,0x36]),[_0x517f71([0x78])]:_0x517f71([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]),[_0x517f71([0x79])]:_0x517f71([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]),[_0x517f71([0x61,0x6c,0x67])]:_0x517f71([0x45,0x53,0x32,0x35,0x36])},_0x5daab3=_0x102fe5[_0x517f71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x517f71([0x67,0x65,0x74])](_0x517f71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xed0225(){let _0x243e20,_0x5a6ba8=null,_0x1f5a44=null;try{if(_0x5daab3==_0x517f71([0x47,0x50,0x4c]))return _0x517f71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x243e20=_0x5fe915(),!_0x243e20)return _0x517f71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x243e20[_0x517f71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f5a44=_0x20d158(_0x243e20[_0x517f71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x243e20[_0x517f71([0x6a,0x74,0x69])])),await _0x5ae710()?_0x5d1e16()?_0x1b93ac()?_0x517f71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42bd8f()?(_0x243e20[_0x517f71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x517f71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a6ba8=_0x22466f(_0x517f71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x43d621()):_0x517f71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x517f71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x517f71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x517f71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b93ac(){const _0x3af3ac=[_0x517f71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x517f71([0x74,0x72,0x69,0x61,0x6c])][_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x243e20[_0x517f71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e30db/0x3e8:0xe10*_0x1ec112;return _0x243e20[_0x517f71([0x65,0x78,0x70])]<_0x3af3ac;}function _0x5d1e16(){const _0x35556c=_0x243e20[_0x517f71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x35556c)return!0x1;if(_0x35556c[_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517f71([0x2a])))return!0x0;if(_0x35556c[_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517f71([0x54,0x43])))return!0x0;if(_0x35556c[_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517f71([0x52,0x54,0x43]))){if(_0x3a4846())return!0x0;if(_0x22a2f9()||_0x226ef4())return!0x0;}return!0x1;}function _0x42bd8f(){const _0x534b81=_0x243e20[_0x517f71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x534b81||0x0==_0x534b81[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x131eb5}=new URL(window[_0x517f71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x534b81[_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x131eb5))return!0x0;const _0x50feb2=_0x131eb5[_0x517f71([0x73,0x70,0x6c,0x69,0x74])](_0x517f71([0x2e]));return _0x534b81[_0x517f71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ba2c2=>_0x4ba2c2[_0x517f71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x517f71([0x2a])))[_0x517f71([0x6d,0x61,0x70])](_0x5a3c1f=>_0x5a3c1f[_0x517f71([0x73,0x70,0x6c,0x69,0x74])](_0x517f71([0x2e])))[_0x517f71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d2b97=>_0x3d2b97[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x50feb2[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517f71([0x6d,0x61,0x70])](_0x1bf674=>Array(_0x50feb2[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bf674[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x517f71([0x66,0x69,0x6c,0x6c])](_0x1bf674[0x0]===_0x517f71([0x2a])?_0x517f71([0x2a]):'')[_0x517f71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bf674))[_0x517f71([0x73,0x6f,0x6d,0x65])](_0x3ab003=>_0x50feb2[_0x517f71([0x65,0x76,0x65,0x72,0x79])]((_0x4decca,_0x1385dd)=>_0x3ab003[_0x1385dd]===_0x4decca||_0x3ab003[_0x1385dd]===_0x517f71([0x2a])));}function _0x43d621(){return _0x5a6ba8&&_0x1f5a44?new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a29ac,_0x2f2dfa)=>{_0x5a6ba8[_0x517f71([0x74,0x68,0x65,0x6e])](_0x4a29ac,_0x2f2dfa),_0x1f5a44[_0x517f71([0x74,0x68,0x65,0x6e])](_0xc013b3=>{_0xc013b3!=_0x517f71([0x56,0x61,0x6c,0x69,0x64])&&_0x4a29ac(_0xc013b3);},_0x2f2dfa);}):_0x5a6ba8||_0x1f5a44||_0x517f71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20d158(_0x27f20f,_0xba9712){return new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ac5f0=>{if(_0xe79926())return _0x1ac5f0(_0x517f71([0x56,0x61,0x6c,0x69,0x64]));_0x100d69(),_0x102fe5[_0x517f71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x517f71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47ad5f=!0x1;const _0x259b53=_0x3a9a7a();function _0x45739f(_0x1eb6ee){return!!_0x1eb6ee&&(typeof _0x1eb6ee===_0x517f71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1eb6ee===_0x517f71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1eb6ee[_0x517f71([0x74,0x68,0x65,0x6e])]===_0x517f71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1eb6ee[_0x517f71([0x63,0x61,0x74,0x63,0x68])]===_0x517f71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b3172(_0x29ab9d){_0x130084(_0x29ab9d)[_0x517f71([0x74,0x68,0x65,0x6e])](_0x4d137b=>{if(!_0x4d137b||_0x4d137b[_0x517f71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x517f71([0x6f,0x6b]))return _0x517f71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1bcad2(_0x598d57(_0x259b53+_0xba9712))!=_0x4d137b[_0x517f71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x517f71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x517f71([0x56,0x61,0x6c,0x69,0x64]);})[_0x517f71([0x74,0x68,0x65,0x6e])](_0x16acad=>(_0x27f0d3(),_0x16acad),()=>{const _0x69e9f0=_0x48f966();return null==_0x69e9f0?(_0x27f0d3(),_0x517f71([0x56,0x61,0x6c,0x69,0x64])):_0x517f71(_0x1e30db-_0x69e9f0>(0x27d454df^_0x29f1d5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x517f71([0x74,0x68,0x65,0x6e])](_0x1ac5f0)[_0x517f71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ac5f0(_0x517f71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7cccef=0x3ee3e5f^_0x29f1d5;function _0x27f0d3(){const _0x564a5f=_0x517f71([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bcad2(_0x598d57(_0x27f20f)),_0x5200c3=_0x3275af(_0x1bcad2(window[_0x517f71([0x4d,0x61,0x74,0x68])][_0x517f71([0x63,0x65,0x69,0x6c])](_0x1e30db/_0x7cccef)));window[_0x517f71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517f71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x564a5f,_0x5200c3);}function _0x48f966(){const _0x2a3544=_0x517f71([0x6c,0x6c,0x63,0x74,0x2d])+_0x1bcad2(_0x598d57(_0x27f20f)),_0x4bfead=window[_0x517f71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x517f71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a3544);return _0x4bfead?window[_0x517f71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3275af(_0x4bfead),0x10)*_0x7cccef:null;}function _0x130084(_0x706ef4){return new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x574749,_0x2786c8)=>{_0x706ef4[_0x517f71([0x74,0x68,0x65,0x6e])](_0x574749,_0x2786c8),window[_0x517f71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2786c8,0x3d9041f^_0x29f1d5);});}}_0x102fe5[_0x517f71([0x6f,0x6e])](_0x517f71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x280619,_0x518685)=>{if(_0x518685[0x0]!=_0x27f20f)return _0x1ac5f0(_0x517f71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x518685[0x1]={..._0x518685[0x1],[_0x517f71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x259b53};},{[_0x517f71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517f71([0x68,0x69,0x67,0x68])}),_0x102fe5[_0x517f71([0x6f,0x6e])](_0x517f71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27c6e5=>{_0x45739f(_0x27c6e5[_0x517f71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47ad5f=!0x0,_0x5b3172(_0x27c6e5[_0x517f71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x517f71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x517f71([0x6c,0x6f,0x77])}),_0x25dfb2[_0x517f71([0x74,0x68,0x65,0x6e])](()=>{_0x47ad5f||_0x1ac5f0(_0x517f71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe79926(){return _0x102fe5[_0x517f71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517f71([0x76,0x69,0x65,0x77])][_0x517f71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x517f71([0x61,0x75,0x74,0x6f]);}function _0x100d69(){_0x102fe5[_0x517f71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x517f71([0x76,0x69,0x65,0x77])][_0x517f71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x517f71([0x61,0x75,0x74,0x6f]);}}function _0x22466f(_0x2e09ad){const _0x1fe0cd=[new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47195f=>setTimeout(_0x47195f,0x3d1ee13^_0x29f1d5)),_0x25dfb2[_0x517f71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dbc33=>{let _0x364596=0x0;_0x102fe5[_0x517f71([0x6d,0x6f,0x64,0x65,0x6c])][_0x517f71([0x6f,0x6e])](_0x517f71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x449048,_0x4dcd88)=>{_0x4dcd88[0x0][_0x517f71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x364596++,_0x364596==(0x3d8d537^_0x29f1d5)&&(_0x5dbc33(),_0x449048[_0x517f71([0x6f,0x66,0x66])]());});}))];return window[_0x517f71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x517f71([0x72,0x61,0x63,0x65])](_0x1fe0cd)[_0x517f71([0x74,0x68,0x65,0x6e])](()=>_0x2e09ad);}async function _0x45146a(){await _0x25dfb2,_0x102fe5[_0x517f71([0x6d,0x6f,0x64,0x65,0x6c])][_0x517f71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fa28a,_0x102fe5[_0x517f71([0x6d,0x6f,0x64,0x65,0x6c])][_0x517f71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fa28a,_0x102fe5[_0x517f71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x517f71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a4846(){return _0x1aedc2(_0x517f71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x128a95(_0x517f71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x517f71([0x73,0x74,0x61,0x74,0x65])]==_0x517f71([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x22a2f9(){return _0x1aedc2(_0x517f71([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 _0x226ef4(){return _0x1aedc2(_0x517f71([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x308feb(_0x4a0df3){const _0x37e977=_0x37ac87();_0x102fe5[_0x37e977]=_0x517f71([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a0df3,_0x4a0df3!=_0x517f71([0x56,0x61,0x6c,0x69,0x64])&&_0x45146a();}function _0x37ac87(){const _0x4a4f4d=window[_0x517f71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x517f71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x517f71([0x6e,0x6f,0x77])]())[_0x517f71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x517f71([0x2e]),'');let _0x130e0a=_0x517f71([0x52]);for(let _0x574755=0x0;_0x574755<_0x4a4f4d[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x574755+=0x2){let _0x397e24=window[_0x517f71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4f4d[_0x517f71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x574755,_0x574755+0x2));_0x397e24>=_0x2d68f2[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x397e24-=_0x2d68f2[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x130e0a+=_0x2d68f2[_0x397e24];}return _0x130e0a;}function _0x5fe915(){const _0x117d53=_0x5daab3[_0x517f71([0x73,0x70,0x6c,0x69,0x74])](_0x517f71([0x2e]));if(0x3!=_0x117d53[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26fc3d(_0x117d53[0x1]);function _0x26fc3d(_0x466682){const _0x23f3ec=_0x3227f0(_0x466682);return _0x23f3ec&&_0x2ef803()?_0x23f3ec:null;function _0x2ef803(){const _0x48a226=_0x23f3ec[_0x517f71([0x6a,0x74,0x69])],_0x1c4c15=window[_0x517f71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a226[_0x517f71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48a226[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x316d63={..._0x23f3ec,[_0x517f71([0x6a,0x74,0x69])]:_0x48a226[_0x517f71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48a226[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x316d63[_0x517f71([0x76,0x63])],_0x598d57(_0x316d63)==_0x1c4c15;}}}async function _0x5ae710(){let _0x336000=!0x0;try{const _0x58ec54=_0x5daab3[_0x517f71([0x73,0x70,0x6c,0x69,0x74])](_0x517f71([0x2e])),[_0x5f10b2,_0x34b2df,_0x9ed795]=_0x58ec54;return _0x1b28bd(_0x5f10b2),await _0x3d67de(_0x5f10b2,_0x34b2df,_0x9ed795),_0x336000;}catch{return!0x1;}function _0x1b28bd(_0x5b1efa){const _0x349426=_0x3227f0(_0x5b1efa);_0x349426&&_0x349426[_0x517f71([0x61,0x6c,0x67])]==_0x517f71([0x45,0x53,0x32,0x35,0x36])||(_0x336000=!0x1);}async function _0x3d67de(_0x286be9,_0x289a04,_0x1bbc40){const _0x45ab2d=window[_0x517f71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x517f71([0x66,0x72,0x6f,0x6d])](_0x1d3355(_0x1bbc40),_0x38f6ce=>_0x38f6ce[_0x517f71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10dd95=new window[(_0x517f71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x517f71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x286be9+_0x517f71([0x2e])+_0x289a04),_0x13722a=window[_0x517f71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x517f71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13722a)return;const _0x477d03=await _0x13722a[_0x517f71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x517f71([0x6a,0x77,0x6b]),_0x189716,{[_0x517f71([0x6e,0x61,0x6d,0x65])]:_0x517f71([0x45,0x43,0x44,0x53,0x41]),[_0x517f71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x517f71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x517f71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13722a[_0x517f71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x517f71([0x6e,0x61,0x6d,0x65])]:_0x517f71([0x45,0x43,0x44,0x53,0x41]),[_0x517f71([0x68,0x61,0x73,0x68])]:{[_0x517f71([0x6e,0x61,0x6d,0x65])]:_0x517f71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x477d03,_0x45ab2d,_0x10dd95)||(_0x336000=!0x1);}}function _0x3227f0(_0x53a023){return _0x53a023[_0x517f71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x517f71([0x65,0x79]))?JSON[_0x517f71([0x70,0x61,0x72,0x73,0x65])](_0x1d3355(_0x53a023)):null;}function _0x1d3355(_0x4c28f7){return window[_0x517f71([0x61,0x74,0x6f,0x62])](_0x4c28f7[_0x517f71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x517f71([0x2b]))[_0x517f71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x517f71([0x2f])));}function _0x598d57(_0x1cf2a9){let _0x26f9dd=0x1505;function _0x58d589(_0x5a4c3f){for(let _0x14ff58=0x0;_0x14ff58<_0x5a4c3f[_0x517f71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14ff58++){const _0x1aedc1=_0x5a4c3f[_0x517f71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14ff58);_0x26f9dd=(_0x26f9dd<<0x5)+_0x26f9dd+_0x1aedc1,_0x26f9dd&=_0x26f9dd;}}function _0x2b7661(_0x551952){Array[_0x517f71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x551952)?_0x551952[_0x517f71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b7661):_0x551952&&typeof _0x551952==_0x517f71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x517f71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x551952)[_0x517f71([0x73,0x6f,0x72,0x74])]()[_0x517f71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x200d61,_0x5a03f1])=>{_0x58d589(_0x200d61),_0x2b7661(_0x5a03f1);}):_0x58d589(window[_0x517f71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x551952));}return _0x2b7661(_0x1cf2a9),_0x26f9dd>>>0x0;}function _0x1bcad2(_0x422d75){return _0x422d75[_0x517f71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x517f71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x517f71([0x30]));}function _0x3275af(_0xea69b8){return _0xea69b8[_0x517f71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x517f71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x517f71([0x6a,0x6f,0x69,0x6e])]('');}function _0x1aedc2(_0x3926ee){return _0x102fe5[_0x517f71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517f71([0x68,0x61,0x73])](_0x3926ee);}function _0x128a95(_0x3e83f1){return _0x102fe5[_0x517f71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x517f71([0x67,0x65,0x74])](_0x3e83f1);}function _0x2fa28a(){}function _0x517f71(_0x20c692){return _0x20c692['map'](_0x18d5e1=>String['fromCharCode'](_0x18d5e1))['join']('');}_0x308feb(await _0xed0225());}(this);}set['adapter'](_0x179e67){if(this['_adapter'])throw new _0x5f1dc4('track-changes-adapter-already-set',this);this['_adapter']=_0x179e67;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4f56ae=!0x1,toJSON:_0x1e5807=!0x1}={}){const _0x2147ba=[];for(const _0x34ac04 of this['_suggestions']['values']())_0x4f56ae&&!_0x34ac04['isInContent']||_0x2147ba['push'](_0x34ac04);return _0x1e5807?_0x2147ba['map'](_0xe7b440=>_0xe7b440['toJSON']()):_0x2147ba;}['getSuggestion'](_0x19af0a){const _0x57d40f=this['_suggestions']['get'](_0x19af0a);if(!_0x57d40f)throw new _0x5f1dc4('track-changes-suggestion-not-found',this);return _0x57d40f;}['hasSuggestion'](_0x45db1e){return this['_suggestions']['has'](_0x45db1e);}['addSuggestionData'](_0x115d98){const {authorId:_0x57c7cf,id:_0x396e84,originalSuggestionId:_0x2d6381,attributes:_0x398890}=_0x115d98,[_0x43191f,_0x592992]=_0x115d98['type']['split'](':'),_0x5996e3=this['_suggestions']['get'](_0x396e84)||this['_createSuggestion'](_0x43191f,_0x592992,_0x396e84,_0x57c7cf,_0x398890,_0x2d6381);if(this['_addThreadToSuggestion'](_0x5996e3),this['_checkSuggestionCorrectness'](_0x5996e3,_0x43191f,_0x592992||null,_0x57c7cf),_0x5996e3['createdAt']=_0x115d98['createdAt'],_0x5996e3['_isDataLoaded']=!0x0,_0x398890&&_0x398890['@external']){const _0x436645=_0x398890['@external'],_0x1a3875=this['_getExternalAuthor'](_0x436645['authorName']);_0x5996e3['authoredAt']=_0x436645['createdAt'],_0x5996e3['author']=_0x1a3875,_0x5996e3['isExternal']=!0x0;}else _0x5996e3['authoredAt']=_0x115d98['createdAt'];switch(_0x115d98['data']&&(_0x5996e3['data']=_0x115d98['data']),_0x115d98['attributes']&&(_0x5996e3['attributes']=_0x115d98['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5996e3['_saved']=!0x0),this['_suggestionState']['get'](_0x5996e3)){case'notReady':this['_suggestionState']['set'](_0x5996e3,'dataReady');break;case'markerReady':_0x5996e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5996e3])),this['_refreshSuggestionsChain'](new Set([_0x5996e3])),this['_suggestionState']['set'](_0x5996e3,'ready'),this['fire']('suggestionLoaded',_0x5996e3)):this['_suggestionState']['set'](_0x5996e3,'removed');}return _0x5996e3;}['acceptSuggestion'](_0x2b4c22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x466026 of _0x2b4c22['getAllAdjacentSuggestions']())_0x466026['accept']();});});}['discardSuggestion'](_0x304ab7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d098a of _0x304ab7['getAllAdjacentSuggestions']())_0x4d098a['discard']();});});}['enableCommand'](_0x261eaf,_0x2cbdb9){const _0x2ebf8f=this['editor']['commands']['get'](_0x261eaf);if(!_0x2ebf8f)throw new _0x5f1dc4('track-changes-command-not-found',this,{'commandName':_0x261eaf});if(this['_enabledCommands']['has'](_0x2ebf8f))throw new _0x5f1dc4('track-changes-enable-command-twice',this,{'commandName':_0x261eaf});this['_enabledCommands']['add'](_0x2ebf8f),_0x2cbdb9&&_0x2ebf8f['on']('execute',(_0x34d6bb,_0x4feb76)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4feb76['length']>0x0&&_0x4feb76[_0x4feb76['length']-0x1]&&_0x4feb76[_0x4feb76['length']-0x1]['forceDefaultExecution']?_0x4feb76['pop']():(_0x34d6bb['return']=_0x2cbdb9((..._0x5861e3)=>_0x2ebf8f['execute'](..._0x5861e3,{'forceDefaultExecution':!0x0}),..._0x4feb76),_0x34d6bb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53cbd8){let _0xb26186,_0x49b865;const _0x14d445=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xb26186=_0x53cbd8();}catch(_0x386640){_0x49b865=_0x386640;}return _0x14d445||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x49b865&&_0x5f1dc4['rethrowUnexpectedError'](_0x49b865,this),_0xb26186;}['markInsertion'](_0x1e66f7,_0x232ed6=null,_0x3b9460={}){if(_0x1e66f7['isCollapsed'])return null;const _0x28f9a8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3b9460['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x493eab,meta:_0x27ae65}of this['_findSuggestions'](_0x1e66f7,'insertion'))if(_0x27ae65['isOwn']){if(!_0x27ae65['isNextTo']){if(_0x27ae65['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!en(_0x493eab,_0x3b9460))continue;return _0x493eab;}if(en(_0x493eab,_0x3b9460))return _0x493eab;this['_breakSuggestionMarker'](_0x493eab,_0x1e66f7['start'],_0x1e66f7['end']);break;}if(_0x232ed6==_0x493eab['subType']&&en(_0x493eab,_0x3b9460)){const _0xe237d3=_0x493eab['getFirstRange']();return _0xe237d3['start']['isEqual'](_0x1e66f7['end'])?this['_setSuggestionRange'](_0x493eab,this['_model']['createRange'](_0x1e66f7['start'],_0xe237d3['end'])):this['_setSuggestionRange'](_0x493eab,this['_model']['createRange'](_0xe237d3['start'],_0x1e66f7['end'])),_0x493eab;}}const _0x53780b=_0x3a9a7a(),_0x41198f=_0x28f9a8['id'],_0x47020d=_0x232ed6?'insertion:'+_0x232ed6:'insertion',_0x49d9ad=this['_setSuggestionData']({'id':_0x53780b,'type':_0x47020d,'createdAt':new Date(),'authorId':_0x41198f,'attributes':_0x3b9460});return this['_addSuggestionMarker'](_0x47020d,_0x53780b,_0x41198f,_0x1e66f7),_0x49d9ad;}['markMultiRangeInsertion'](_0x2d52d1,_0x206320='multi',_0x38d307={}){const _0x2ffc2e=this['editor']['plugins']['get']('Users')['me'],_0x1fa147=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x206320,'join');this['_trackingSessionId']&&(_0x38d307['trackingSessionId']=this['_trackingSessionId']);for(const _0x14f985 of this['getSuggestions']())if(_0x14f985['author']['id']==_0x2ffc2e['id']&&'insertion'==_0x14f985['type']&&_0x14f985['subType']==_0x206320&&en(_0x14f985,_0x38d307)&&(_0x1fa147(_0x14f985['getRanges'](),_0x2d52d1)||_0x1fa147(_0x2d52d1,_0x14f985['getRanges']()))){for(const _0x52ba0e of _0x2d52d1)_0x14f985['addRange'](_0x52ba0e);return _0x14f985;}for(const {suggestion:_0x366371,meta:_0x9bfb6b}of this['_findSuggestions'](_0x2d52d1,'insertion')){if(!_0x9bfb6b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x9bfb6b['containsRangeInObject'])continue;if(!en(_0x366371,_0x38d307))continue;let _0x46d879=!0x0;for(const _0x338b88 of _0x366371['getRanges']())for(const _0x32f99d of _0x2d52d1)if(!_0x338b88['containsRange'](_0x32f99d)){_0x46d879=!0x1;break;}if(_0x46d879)return _0x366371;}const _0x507bb3=_0x3a9a7a(),_0x4c34fa=_0x2ffc2e['id'],_0x26cee3='insertion:'+_0x206320,_0x302c1f=this['_setSuggestionData']({'id':_0x507bb3,'type':_0x26cee3,'createdAt':new Date(),'authorId':_0x4c34fa,'attributes':_0x38d307});for(const _0x3aba75 of _0x2d52d1)this['_addSuggestionMarker'](_0x26cee3,_0x507bb3,_0x4c34fa,_0x3aba75,T['getMultiRangeId']());return _0x302c1f;}['markInlineFormat'](_0x28b7a4,_0x297084,_0x3ecec6=null,_0x3069d0={}){if(_0x3ecec6=_0x3ecec6||Wt(_0x297084),_0x28b7a4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3069d0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x21ca2d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ecec6,'accept');return this['forceDefaultExecution'](()=>_0x21ca2d([_0x28b7a4],_0x297084,_0x3069d0)),null;}const _0x535d10=this['editor']['plugins']['get']('Users')['me'],_0x12f2eb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb26399,meta:_0x5e8d16}of this['_findSuggestions'](_0x28b7a4,'insertion'))_0x5e8d16['isOwn']&&!_0x5e8d16['isInsideObject']&&_0x12f2eb['push'](..._0xb26399['getRanges']());}const _0x2509c9=function(_0xa73a81,_0x5f49ed){const _0xeffd15=[];for(const _0x4953da of _0x5f49ed){const _0x550395=_0xa73a81['getIntersection'](_0x4953da);_0x550395&&_0xeffd15['push'](_0x550395);}return _0xeffd15;}(_0x28b7a4,_0x12f2eb),_0x435d47=function(_0x1a44d9,_0x265d3e){const _0x5ae443=[_0x1a44d9];for(const _0x38be4e of _0x265d3e){let _0x40482e=0x0;for(;_0x40482e<_0x5ae443['length'];){const _0x499956=_0x5ae443[_0x40482e]['getDifference'](_0x38be4e);_0x5ae443['splice'](_0x40482e,0x1,..._0x499956),_0x40482e+=_0x499956['length'];}}return _0x5ae443;}(_0x28b7a4,_0x12f2eb);_0x2509c9['length']&&this['_model']['change'](()=>{for(const _0x26908a of _0x2509c9){const _0xbbf0e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ecec6,'accept');this['forceDefaultExecution'](()=>_0xbbf0e8([_0x26908a],_0x297084,_0x3069d0));}});for(const _0x4bba68 of _0x435d47){let _0x475443=null,_0x17e00e=_0x4bba68['start'],_0x21c38f=_0x4bba68['end'];for(const {suggestion:_0x4f300b,meta:_0x1e486d}of this['_findSuggestions'](_0x4bba68,'formatInline')){if(!_0x1e486d['isOwn'])continue;if(_0x4f300b['subType']!=_0x3ecec6)continue;if(!en(_0x4f300b,_0x3069d0))continue;const _0x150bfb=_0x4f300b['getFirstRange']();if(_0x150bfb['containsRange'](_0x4bba68,!0x0))return null;_0x17e00e=_0x17e00e['isBefore'](_0x150bfb['start'])?_0x17e00e:_0x150bfb['start'],_0x21c38f=_0x21c38f['isAfter'](_0x150bfb['end'])?_0x21c38f:_0x150bfb['end'],_0x475443?_0x150bfb['start']['isBefore'](_0x475443['getFirstRange']()['start'])?(_0x475443['removeMarkers'](),_0x475443=_0x4f300b):_0x4f300b['removeMarkers']():_0x475443=_0x4f300b;}const _0x45c457=this['_model']['createRange'](_0x17e00e,_0x21c38f);if(_0x475443)this['_setSuggestionRange'](_0x475443,_0x45c457);else{const _0x7595d=_0x3a9a7a(),_0x1a36b4=_0x535d10['id'];this['_setSuggestionData']({'id':_0x7595d,'type':'formatInline:'+_0x3ecec6,'data':_0x297084,'createdAt':new Date(),'authorId':_0x1a36b4,'attributes':_0x3069d0}),this['_addSuggestionMarker']('formatInline:'+_0x3ecec6,_0x7595d,_0x1a36b4,_0x45c457);}}return null;}['markBlockFormat'](_0x2eceb8,_0x135ee3,_0x46759f=[],_0x2a8ed2=null,_0x40f2d1={}){_0x135ee3['formatGroupId']||(_0x135ee3['formatGroupId']=_0x135ee3['commandName']),_0x135ee3['multipleBlocks']=_0x2eceb8['is']('range'),_0x2a8ed2=_0x2a8ed2||Wt(_0x135ee3);const _0x463b24=_0x46759f['map'](_0x4d3196=>Zt(_0x4d3196,this['_model'])),_0x4e5ee2=_0x2eceb8['is']('range')?_0x2eceb8:Zt(_0x2eceb8,this['_model']);if(this['_trackingSessionId']&&(_0x40f2d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x309cde=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a8ed2,'accept');return this['forceDefaultExecution'](()=>_0x309cde([_0x4e5ee2],_0x135ee3,_0x40f2d1)),null;}_0x463b24['push'](_0x4e5ee2);let _0x3a9057=!0x0;for(const _0x20cc40 of _0x463b24)if(!this['_rangeIsInLocalUserInsertion'](_0x20cc40)){_0x3a9057=!0x1;break;}if(_0x3a9057&&'always'!==this['_trackFormatChanges']){const _0xb325f6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a8ed2,'accept');return this['forceDefaultExecution'](()=>_0xb325f6([_0x4e5ee2],_0x135ee3,_0x40f2d1)),null;}let _0x982927=null,_0x16d6d3=_0x4e5ee2['start'],_0x409c6c=_0x4e5ee2['end'];for(const {suggestion:_0x26cde9,meta:_0x40d7f2}of this['_findSuggestions'](_0x4e5ee2,'formatBlock')){if(!_0x40d7f2['isOwn'])continue;if(_0x40d7f2['isNextTo']||_0x40d7f2['containsRangeInObject']||_0x40d7f2['isInsideObject'])continue;if(_0x26cde9['data']['formatGroupId']!=_0x135ee3['formatGroupId'])continue;if(!en(_0x26cde9,_0x40f2d1))continue;const _0x22e78f=_0x26cde9['getFirstRange']();if(_0x26cde9['subType']==_0x2a8ed2){if(_0x22e78f['containsRange'](_0x4e5ee2,!0x0))return null;_0x16d6d3=_0x16d6d3['isBefore'](_0x22e78f['start'])?_0x16d6d3:_0x22e78f['start'],_0x409c6c=_0x409c6c['isAfter'](_0x22e78f['end'])?_0x409c6c:_0x22e78f['end'],_0x982927?_0x22e78f['start']['isBefore'](_0x982927['getFirstRange']()['start'])?(_0x982927['removeMarkers'](),_0x982927=_0x26cde9):_0x26cde9['removeMarkers']():_0x982927=_0x26cde9;}else{const _0x109d0c=_0x4e5ee2['getIntersection'](_0x22e78f);this['_cutOutSuggestionMarker'](_0x26cde9,_0x109d0c);}}const _0xab41e7=this['editor']['plugins']['get']('Users')['me'],_0x3b8cdf=_0x3a9a7a(),_0x3efba8=_0xab41e7['id'];if(_0x982927)return this['_setSuggestionRange'](_0x982927,this['_model']['createRange'](_0x16d6d3,_0x409c6c)),_0x982927;{const _0x30929b=this['_setSuggestionData']({'id':_0x3b8cdf,'type':'formatBlock:'+_0x2a8ed2,'data':_0x135ee3,'createdAt':new Date(),'authorId':_0x3efba8,'attributes':_0x40f2d1});return this['_addSuggestionMarker']('formatBlock:'+_0x2a8ed2,_0x3b8cdf,_0x3efba8,this['_model']['createRange'](_0x16d6d3,_0x409c6c)),_0x30929b;}}['markMultiRangeBlockFormat'](_0x4772b4,_0x384810,_0xcc294a=[],_0x43bc23=null,_0x375a5e={}){_0x384810['formatGroupId']||(_0x384810['formatGroupId']=_0x384810['commandName']);const _0x43ece8=_0x4772b4[0x0];_0x384810['multipleBlocks']=_0x43ece8['is']('range'),_0x43bc23=_0x43bc23||Wt(_0x384810);const _0x15e872=_0xcc294a['map'](_0x25a23c=>Zt(_0x25a23c,this['_model'])),_0x32950a=_0x43ece8['is']('range')?_0x4772b4:_0x4772b4['map'](_0x2b6c57=>Zt(_0x2b6c57,this['_model']));if(this['_trackingSessionId']&&(_0x375a5e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x29f6f6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc23,'accept');return this['forceDefaultExecution'](()=>_0x29f6f6(_0x32950a,_0x384810,_0x375a5e)),null;}_0x15e872['push'](..._0x32950a);let _0x3362d1=!0x0;for(const _0x24112d of _0x15e872)if(!this['_rangeIsInLocalUserInsertion'](_0x24112d)){_0x3362d1=!0x1;break;}if(_0x3362d1&&'always'!==this['_trackFormatChanges']){const _0x4a2b84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc23,'accept');return this['forceDefaultExecution'](()=>_0x4a2b84(_0x32950a,_0x384810,_0x375a5e)),null;}const _0x5413cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x920b38 of this['getSuggestions']()){const _0x351cbe=_0x920b38['data'];if(_0x920b38['author']['id']!=_0x5413cc['id'])continue;if('formatBlock'!=_0x920b38['type']||_0x351cbe['formatGroupId']!=_0x384810['formatGroupId'])continue;if(!en(_0x920b38,_0x375a5e))continue;const _0x133a26=_0x920b38['subType']==_0x43bc23;for(let _0x4df1db=0x0;_0x4df1db<_0x32950a['length'];_0x4df1db++){const _0x3b9fef=_0x32950a[_0x4df1db];for(const _0x417496 of _0x920b38['getMarkers']()){const _0x22ba4a=_0x417496['getRange']();if(_0x3b9fef['isEqual'](_0x22ba4a)){_0x133a26?(_0x32950a['splice'](_0x4df1db,0x1),_0x4df1db--):_0x920b38['removeMarker'](_0x417496['name']);break;}}}}if(0x0==_0x32950a['length'])return null;const _0x3b5592=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43bc23,'join');for(const _0x54d3fb of this['getSuggestions']()){const _0xad854b=_0x54d3fb['data'];if(_0x54d3fb['author']['id']==_0x5413cc['id']&&('formatBlock'==_0x54d3fb['type']&&_0xad854b['formatGroupId']==_0x384810['formatGroupId']&&_0x54d3fb['subType']==_0x43bc23&&en(_0x54d3fb,_0x375a5e)&&(_0x3b5592(_0x54d3fb['getRanges'](),_0x32950a)||_0x3b5592(_0x32950a,_0x54d3fb['getRanges']())))){for(const _0x356e62 of _0x32950a)_0x54d3fb['addRange'](_0x356e62);return _0x54d3fb;}}const _0x521f9c=_0x3a9a7a(),_0x2ae609=_0x5413cc['id'],_0x24ccf0='formatBlock:'+_0x43bc23,_0x2ebb02=this['_setSuggestionData']({'id':_0x521f9c,'type':_0x24ccf0,'data':_0x384810,'createdAt':new Date(),'authorId':_0x2ae609,'attributes':_0x375a5e});for(const _0x470693 of _0x32950a)this['_addSuggestionMarker'](_0x24ccf0,_0x521f9c,_0x2ae609,_0x470693,T['getMultiRangeId']());return _0x2ebb02;}['markDeletion'](_0x37eccd,_0x2adf2f=null,_0x3fc3e4={}){if(_0x37eccd['isCollapsed'])return null;const _0x541086=this['editor']['plugins']['get']('Users')['me'],_0x1ec208=new _0x169dab(_0x37eccd['start'],_0x37eccd['end']);this['_trackingSessionId']&&(_0x3fc3e4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17be99,meta:_0x1540eb}of this['_findSuggestions'](_0x1ec208,'insertion'))if(_0x1540eb['isOwn']&&!_0x1540eb['isNextTo']){if(_0x17be99['isMultiRange']){const _0x916a6e=_0x17be99['getRanges']()['filter'](_0x16c1e8=>'$graveyard'!=_0x16c1e8['root']['rootName']);_0x916a6e['every'](_0x3a817f=>_0x1ec208['containsRange'](_0x3a817f,!0x0))&&_0x17be99['discard']();if(_0x916a6e['some'](_0x587d92=>_0x587d92['containsRange'](_0x1ec208,!0x0))){const _0x4ef609=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2adf2f,'accept');return this['forceDefaultExecution'](()=>_0x4ef609([_0x1ec208],null,_0x3fc3e4)),null;}}else{const _0x55f502=_0x1ec208['getIntersection'](_0x17be99['getFirstRange']());null!==_0x55f502&&_0x17be99['_onDiscard']([_0x55f502],null,_0x3fc3e4);}}if(_0x1ec208['detach'](),_0x1ec208['isCollapsed']||'$graveyard'==_0x1ec208['root']['rootName'])return null;let _0x4bd678=null,_0x3b9e9d=_0x1ec208['start'],_0x1dee17=_0x1ec208['end'];const _0x40dc8d=this['_findSuggestions'](_0x1ec208,'deletion');for(const {suggestion:_0x50084a,meta:_0x2d7532}of _0x40dc8d){const _0x3d2953=this['_model']['createRange'](_0x3b9e9d,_0x1dee17);if(_0x2d7532['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d7532['containsRangeInObject']&&!_0x2d7532['isInsideObject'])){if(_0x50084a['isMultiRange']){if(!en(_0x50084a,_0x3fc3e4))continue;let _0x1c0287=!0x0;for(const _0x59b5be of _0x50084a['getRanges']()){if(_0x59b5be['containsRange'](_0x3d2953,!0x0))return _0x50084a;_0x3d2953['containsRange'](_0x59b5be)||(_0x1c0287=!0x1);}_0x1c0287&&_0x50084a['discard']();}else{const _0x389325=_0x50084a['getFirstRange']();if(_0x389325['containsRange'](_0x3d2953,!0x0))return _0x50084a;if(!en(_0x50084a,_0x3fc3e4)){_0x3d2953['containsRange'](_0x389325)?_0x50084a['removeMarkers']():_0x389325['containsPosition'](_0x3b9e9d)?_0x3b9e9d=_0x389325['end']:_0x389325['containsPosition'](_0x1dee17)&&(_0x1dee17=_0x389325['start']);continue;}_0x3b9e9d=_0x3b9e9d['isBefore'](_0x389325['start'])?_0x3b9e9d:_0x389325['start'],_0x1dee17=_0x1dee17['isAfter'](_0x389325['end'])?_0x1dee17:_0x389325['end'],_0x3fc3e4=Object['assign']({},_0x50084a['attributes']),_0x4bd678?_0x389325['start']['isBefore'](_0x4bd678['getFirstRange']()['start'])?(_0x4bd678['removeMarkers'](),_0x4bd678=_0x50084a):_0x50084a['removeMarkers']():_0x4bd678=_0x50084a;}}}if(_0x4bd678)return this['_setSuggestionRange'](_0x4bd678,this['_model']['createRange'](_0x3b9e9d,_0x1dee17)),_0x4bd678;{const _0x3e756f=_0x3a9a7a(),_0x257f9c=this['_model']['createRange'](_0x3b9e9d,_0x1dee17),_0x33e524=_0x541086['id'],_0x2ce1f5=_0x2adf2f?'deletion:'+_0x2adf2f:'deletion',_0x11be84=this['_setSuggestionData']({'id':_0x3e756f,'type':_0x2ce1f5,'createdAt':new Date(),'authorId':_0x33e524,'attributes':_0x3fc3e4});return this['_addSuggestionMarker'](_0x2ce1f5,_0x3e756f,_0x33e524,_0x257f9c),_0x11be84;}}['markMultiRangeDeletion'](_0x238c59,_0x2bc280='multi',_0x2fe280={}){const _0x9ef61b=this['editor']['plugins']['get']('Users')['me'],_0x3a4790=_0x238c59['map'](_0x2b09ca=>new _0x169dab(_0x2b09ca['start'],_0x2b09ca['end'])),_0x3a4f16=new Set();this['_trackingSessionId']&&(_0x2fe280['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x13e713,meta:_0x370a86}of this['_findSuggestions'](_0x3a4790,'insertion'))_0x370a86['isOwn']&&!_0x370a86['isNextTo']&&_0x3a4f16['add'](_0x13e713);for(const _0x26baea of _0x3a4f16)if(_0x26baea['isMultiRange']){const _0xc5db33=_0x26baea['getRanges']();(!_0x26baea['attributes']||!_0x26baea['attributes']['skipNestingCheck'])&&(_0xc5db33['every'](_0x3f53d4=>_0x3a4790['some'](_0x21a8dc=>_0x21a8dc['containsRange'](_0x3f53d4,!0x0)))&&_0x26baea['discard']());if(_0x3a4790['every'](_0x42c0cf=>_0xc5db33['some'](_0x5531a5=>_0x5531a5['containsRange'](_0x42c0cf,!0x0)))){const _0x45837a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bc280,'accept');return this['forceDefaultExecution'](()=>_0x45837a(_0x238c59,null,_0x2fe280)),null;}}else{const _0x940edb=_0x26baea['getFirstRange']();_0x3a4790['some'](_0x56fe5f=>_0x56fe5f['containsRange'](_0x940edb,!0x0))&&_0x26baea['discard']();if(_0x3a4790['every'](_0x34edb1=>_0x940edb['containsRange'](_0x34edb1,!0x0))){const _0x5dbcf5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bc280,'accept');return this['forceDefaultExecution'](()=>_0x5dbcf5(_0x3a4790,null,_0x2fe280)),null;}}const _0x560120=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bc280,'join');let _0x436de3=null;for(const _0xb576c0 of this['getSuggestions']())if(_0xb576c0['author']['id']==_0x9ef61b['id']&&_0xb576c0['isInContent']&&'deletion'==_0xb576c0['type']&&_0xb576c0['subType']==_0x2bc280&&en(_0xb576c0,_0x2fe280)&&(_0x560120(_0xb576c0['getRanges'](),_0x3a4790)||_0x560120(_0x3a4790,_0xb576c0['getRanges']()))){if(_0x436de3){if(_0xb576c0['commentThread']&&_0xb576c0['commentThread']['length'])continue;for(const _0x362849 of _0xb576c0['getRanges']())_0x436de3['isIntersectingWithRange'](_0x362849)||_0x436de3['addRange'](_0x362849);_0xb576c0['removeMarkers']();}else{_0x436de3=_0xb576c0;for(const _0x495701 of _0x3a4790)_0xb576c0['isIntersectingWithRange'](_0x495701)||_0xb576c0['addRange'](_0x495701);}}if(_0x436de3)return _0x436de3;_0x3a4f16['clear']();for(const {suggestion:_0x4d828b,meta:_0x1e6d65}of this['_findSuggestions'](_0x3a4790,'deletion'))_0x1e6d65['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e6d65['containsRangeInObject']&&!_0x1e6d65['isInsideObject'])&&en(_0x4d828b,_0x2fe280)&&_0x3a4f16['add'](_0x4d828b);for(const _0x19d73f of _0x3a4f16){const _0x42796f=_0x19d73f['getRanges']();if(!_0x2fe280||!_0x2fe280['skipNestingCheck']){if(_0x3a4790['every'](_0x129954=>_0x42796f['some'](_0x52220e=>_0x52220e['containsRange'](_0x129954,!0x0))))return _0x19d73f;}(!_0x19d73f['attributes']||!_0x19d73f['attributes']['skipNestingCheck'])&&(_0x42796f['every'](_0x410809=>_0x3a4790['some'](_0x221f59=>_0x221f59['containsRange'](_0x410809,!0x0)))&&_0x19d73f['discard']());}const _0x58e27b=_0x3a9a7a(),_0x4ea843=_0x9ef61b['id'],_0xe46ebe='deletion:'+_0x2bc280,_0x22b0c7=this['_setSuggestionData']({'id':_0x58e27b,'type':_0xe46ebe,'createdAt':new Date(),'authorId':_0x4ea843,'attributes':_0x2fe280});for(const _0x49a2fe of _0x3a4790)_0x49a2fe['detach'](),_0x49a2fe['isCollapsed']||'$graveyard'==_0x49a2fe['root']['rootName']||this['_addSuggestionMarker'](_0xe46ebe,_0x58e27b,_0x4ea843,_0x49a2fe,T['getMultiRangeId']());return _0x22b0c7;}['markAttributeChange'](_0x6869d,_0x1e0162,_0xe6df21,_0x277527,_0x42f0a5){if(_0x6869d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2c204c=this['editor']['plugins']['get']('Users')['me']['id'],_0x52c4a9=Array['from'](this['_suggestions']['values']())['filter'](_0x54db4b=>'attribute'==_0x54db4b['type']&&_0x54db4b['data']['key']==_0x1e0162&&_0x54db4b['isIntersectingWithRange'](_0x6869d));if(this['_trackingSessionId']&&(_0x42f0a5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4f867c=this['_findSuggestions'](_0x6869d,'insertion')['filter'](({meta:_0x3461ee})=>_0x3461ee['isOwn']&&!_0x3461ee['isInsideObject']&&!_0x3461ee['isNextTo'])['map'](({suggestion:_0x5f3dc4})=>_0x5f3dc4);_0x52c4a9['unshift'](..._0x4f867c);}const _0xc144c3=new Map([[_0x6869d,_0xe6df21]]);for(const _0x50f704 of _0x52c4a9){const _0x57ed2e='attribute'==_0x50f704['type']?_0x50f704['data']['oldValue']:void 0x0,_0x1c8ed7=_0x50f704['getFirstRange'](),_0x3bdde8=Array['from'](_0xc144c3['keys']())['find'](_0x848009=>_0x848009['isIntersecting'](_0x1c8ed7));if(!_0x3bdde8)continue;const _0x4b74c3=_0x3bdde8['getDifference'](_0x1c8ed7);this['_isBlockAttribute'](_0x1e0162)&&'insertion'==_0x50f704['type']&&0x0!=_0x4b74c3['length']||(_0xc144c3['delete'](_0x3bdde8),_0x4b74c3['forEach'](_0x49d602=>{_0xc144c3['set'](_0x49d602,_0xe6df21);}),'insertion'!=_0x50f704['type']&&_0x57ed2e!=_0x277527&&_0xc144c3['set'](_0x3bdde8['getIntersection'](_0x1c8ed7),_0x57ed2e));}const _0x5ea5b8=[];for(const [_0x260b08,_0x1cb4a4]of _0xc144c3){const _0x52bd2d=_0x3a9a7a(),_0x9d58a2={'key':_0x1e0162,'oldValue':_0x1cb4a4,'newValue':_0x277527};_0x1e0162['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':_0x1e0162});const _0x3c9d3d=('attribute:'+(_0x1e0162+'|'+Wt({'newValue':_0x277527})))['substring'](0x0,0x3c),_0x59c871=this['_setSuggestionData']({'id':_0x52bd2d,'type':_0x3c9d3d,'data':_0x9d58a2,'createdAt':new Date(),'authorId':_0x2c204c,'attributes':_0x42f0a5});_0x5ea5b8['push'](_0x59c871),this['_addSuggestionMarker'](_0x3c9d3d,_0x52bd2d,_0x2c204c,_0x260b08);}return _0x5ea5b8;}['enableDefaultAttributesIntegration'](_0xa0a7b3){this['enableCommand'](_0xa0a7b3,(_0x1512c0,..._0x4694be)=>{this['recordAttributeChanges'](()=>{_0x1512c0(..._0x4694be);});});}['registerBlockAttribute'](_0x53eb61){this['editor']['plugins']['get'](_0xc16869)['registerBlockAttribute'](_0x53eb61);}['registerInlineAttribute'](_0x3b2d72){this['editor']['plugins']['get'](_0xc16869)['registerInlineAttribute'](_0x3b2d72);}['startTrackingSession'](_0x58eb18){return this['_trackingSessionId']=void 0x0!==_0x58eb18?_0x58eb18:_0x3a9a7a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2e549f){return'attribute'==_0x2e549f['type']?_0x2e549f['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4dca4a){if(0x0==_0x4dca4a['length'])return;const _0x31888a=this['editor'],_0x243315=_0x31888a['plugins']['get'](_0x19b6b6),_0x2705d7=[];_0x31888a['model']['change'](_0x5c17b7=>{for(let _0x1ca51c=0x0;_0x1ca51c<_0x4dca4a['length'];_0x1ca51c++){const _0x86ac30=_0x4dca4a[_0x1ca51c];if(_0x86ac30['baseVersion']=_0x31888a['model']['document']['version'],_0x86ac30['isDocumentOperation']=!0x0,_0x243315['isMarkedRemoveOperation'](_0x86ac30)){const _0x14441d=_0x4aebf4(_0x86ac30['newRange'],_0x31888a['model']);_0x2705d7['unshift'](_0x169dab['fromRange'](_0x14441d));}else switch(_0x86ac30['type']){case'rename':{const _0x251a4d=_0x86ac30['oldName'],_0x46a4b2=_0x86ac30['newName'];if(_0x251a4d==_0x46a4b2)break;_0x5c17b7['batch']['addOperation'](_0x86ac30),_0x31888a['model']['applyOperation'](_0x86ac30);const _0x27d9dc='$elementName',_0x3dffdc=_0x86ac30['position'],_0x16de62=_0x31888a['model']['createRange'](_0x3dffdc,_0x31888a['model']['createPositionAt'](_0x3dffdc['nodeAfter'],'end'));this['markAttributeChange'](_0x16de62,_0x27d9dc,_0x251a4d,_0x46a4b2,{'groupId':_0x3a9a7a()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5bb266=_0x86ac30['oldValue'],_0x13430d=_0x86ac30['newValue'];if(_0x5bb266==_0x13430d)break;_0x5c17b7['batch']['addOperation'](_0x86ac30),_0x31888a['model']['applyOperation'](_0x86ac30);const _0x2e88f1=_0x86ac30['key'];if(!this['_isRegisteredAttribute'](_0x2e88f1))break;const _0x6db157=_0x4aebf4(_0x86ac30['range'],_0x31888a['model']);this['markAttributeChange'](_0x6db157,_0x2e88f1,_0x5bb266,_0x13430d,{'groupId':_0x3a9a7a()});break;}case'insert':{_0x5c17b7['batch']['addOperation'](_0x86ac30),_0x31888a['model']['applyOperation'](_0x86ac30);if(_0x4dca4a[_0x1ca51c+0x1]&&'move'==_0x4dca4a[_0x1ca51c+0x1]['type'])break;const _0xac95b6=_0x86ac30['position'],_0x59d02c=_0x86ac30['howMany'],_0xb805b6=_0x4aebf4(_0x31888a['model']['createRange'](_0xac95b6,_0xac95b6['getShiftedBy'](_0x59d02c)),_0x31888a['model']);this['markInsertion'](_0xb805b6);break;}case'split':{_0x5c17b7['batch']['addOperation'](_0x86ac30),_0x31888a['model']['applyOperation'](_0x86ac30);const _0x1c9ff3=_0x86ac30['splitPosition'],_0x47fae1=_0x86ac30['moveTargetPosition'];this['markInsertion'](_0x31888a['model']['createRange'](_0x1c9ff3,_0x47fae1));break;}case'move':case'remove':_0x5c17b7['batch']['addOperation'](_0x86ac30),_0x31888a['model']['applyOperation'](_0x86ac30);}}for(const _0x11366e of _0x2705d7)_0x11366e['detach'](),this['markDeletion'](_0x11366e);});}['_setSuggestionRange'](_0x2927e0,_0x1578ef){const _0x2dd7c8=_0x2927e0['getFirstMarker']();this['_model']['change'](_0x3be6c3=>{_0x3be6c3['updateMarker'](_0x2dd7c8,{'range':_0x1578ef});});}['_addThreadToSuggestion'](_0x77da85){const _0x2e1251=_0x77da85['id'],_0x5a6ad0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2e1251)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a6ad0,'threadId':_0x2e1251,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x45cb6c=this['_commentsRepository']['getCommentThread'](_0x2e1251);_0x45cb6c['unbind']('isRemovable'),_0x45cb6c['isRemovable']=!0x1,_0x77da85['commentThread']=_0x45cb6c;}['_checkSuggestionCorrectness'](_0x5b0b2a,_0x3edf34,_0x4e9085,_0x2d510d){if(_0x5b0b2a['type']!=_0x3edf34||_0x5b0b2a['subType']!=_0x4e9085||_0x5b0b2a['creator']['id']!=_0x2d510d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5f1dc4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x17533c,_0xf0fd4c){const _0x1d1daf=_0x17533c['getFirstRange']();if(_0xf0fd4c['isEqual'](_0x1d1daf))_0x17533c['removeMarkers']();else{if(_0x1d1daf['containsRange'](_0xf0fd4c)){const _0x1a751a=this['_model']['createPositionAt'](_0xf0fd4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17533c,this['_model']['createRange'](_0x1d1daf['start'],_0x1a751a));const _0x1ae4cf=_0x3a9a7a(),_0x16b9d5=_0x17533c['creator']['id'],_0x507ac4=_0x17533c['type']+':'+_0x17533c['subType'];this['_setSuggestionData']({'id':_0x1ae4cf,'type':_0x507ac4,'createdAt':new Date(),'authorId':_0x16b9d5,'data':_0x17533c['data'],'attributes':_0x17533c['attributes']});const _0x5d0ced=this['_model']['createPositionAt'](_0xf0fd4c['end']['parent'],'after'),_0x23afe6=this['_model']['createRange'](_0x5d0ced,_0x1d1daf['end']);this['_addSuggestionMarker'](_0x507ac4,_0x1ae4cf,_0x16b9d5,_0x23afe6);}else{if(_0x1d1daf['containsPosition'](_0xf0fd4c['start'])){const _0x10351e=this['_model']['createPositionAt'](_0xf0fd4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17533c,this['_model']['createRange'](_0x1d1daf['start'],_0x10351e));}else{const _0x3274b3=this['_model']['createPositionAt'](_0xf0fd4c['end']['parent'],'after');this['_setSuggestionRange'](_0x17533c,this['_model']['createRange'](_0x3274b3,_0x1d1daf['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x66380d){for(const {suggestion:_0x404e35,meta:_0x113500}of this['_findSuggestions'](_0x66380d,'insertion')){if(!_0x113500['isOwn'])continue;const _0x3aea93=_0x404e35['getRanges']();for(const _0x391dbf of _0x3aea93)if(!_0x66380d['getDifference'](_0x391dbf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x37e4c9){return this['editor']['plugins']['get']('Users')['getUser'](_0x37e4c9);}['_getExternalAuthor'](_0x39a687){const _0x5c791d=this['editor']['plugins']['get']('Users'),_0x25f94c=_0x5719b5('external:'+_0x39a687),_0x424aed=_0x5c791d['getUser'](_0x25f94c);return _0x424aed||_0x5c791d['addUser']({'id':_0x25f94c,'name':_0x39a687});}['_createSuggestion'](_0xe06830,_0x4934d2,_0x1764e5,_0x527118,_0x7aa455,_0x3bb992){const _0x2c87be=this['_getAuthorFromId'](_0x527118);if(!_0x2c87be)throw new _0x5f1dc4('track-changes-user-not-found',this,{'authorId':_0x527118,'suggestionId':_0x1764e5});const _0x2f7ef5=this['_suggestionFactory']['buildSuggestion'](_0xe06830,_0x4934d2,_0x1764e5,_0x2c87be,_0x7aa455,_0x19fb3d=>{this['_updateSuggestionData'](_0x1764e5,{'attributes':_0x19fb3d});const _0x3f3d6c=this['getSuggestion'](_0x1764e5);this['_joinWithAdjacentSuggestions'](new Set([_0x3f3d6c])),this['_refreshSuggestionsChain'](new Set([_0x3f3d6c]));},_0x3bb992);return this['listenTo'](_0x2f7ef5,'accept',()=>{this['_updateSuggestionData'](_0x1764e5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2f7ef5,'discard',()=>{this['_updateSuggestionData'](_0x1764e5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1764e5,_0x2f7ef5),this['_suggestionState']['set'](_0x2f7ef5,'notReady'),_0x2f7ef5;}['_splitMarkerName'](_0x9ba2be){return _0x4aac7f(_0x9ba2be);}['_breakSuggestionMarker'](_0x436d13,_0x860b3c,_0x1646e2){const _0x4a9c04=_0x436d13['getFirstRange'](),_0x1cde5c=_0x4a9c04['start'],_0x13a728=_0x4a9c04['end'];this['_setSuggestionRange'](_0x436d13,this['_model']['createRange'](_0x1cde5c,_0x860b3c));const _0x108c07=_0x3a9a7a(),_0x4a8554=_0x436d13['creator']['id'],_0x38c5b8=_0x436d13['type']+(_0x436d13['subType']?':'+_0x436d13['subType']:'');this['_setSuggestionData']({'id':_0x108c07,'type':_0x38c5b8,'createdAt':new Date(),'authorId':_0x4a8554,'originalSuggestionId':_0x436d13['_originalSuggestionId']||_0x436d13['id'],'attributes':_0x436d13['attributes'],'data':_0x436d13['data']});const _0x1ceeff=this['_getAttributeKey'](_0x436d13);('formatBlock'==_0x436d13['type']||_0x1ceeff&&this['_isBlockAttribute'](_0x1ceeff))&&(_0x1646e2=this['_model']['createPositionBefore'](_0x1646e2['parent'])),this['_addSuggestionMarker'](_0x38c5b8,_0x108c07,_0x4a8554,this['_model']['createRange'](_0x1646e2,_0x13a728));}['_findSuggestions'](_0x74b0c0,_0x11f580=null){const _0x5f426f=[],_0x577ba9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x74b0c0)||(_0x74b0c0=[_0x74b0c0]);for(const _0x5c6ce6 of this['getSuggestions']()){if(!_0x5c6ce6['isInContent'])continue;if(_0x11f580&&_0x5c6ce6['type']!=_0x11f580)continue;let _0x17abfd=!0x1;for(const _0x22ca17 of _0x5c6ce6['getRanges']()){for(const _0x1be326 of _0x74b0c0){const _0x30acbb=_0x1be326['start']['isEqual'](_0x22ca17['end'])||_0x1be326['end']['isEqual'](_0x22ca17['start']);if(_0x30acbb||_0x1be326['getIntersection'](_0x22ca17)){const _0xa79257=_0x1be326['containsRange'](_0x22ca17)&&qt(this['_model']['schema'],_0x22ca17['start'],_0x1be326),_0x500284=_0x22ca17['containsRange'](_0x1be326)&&qt(this['_model']['schema'],_0x1be326['start'],_0x22ca17);_0x5f426f['push']({'suggestion':_0x5c6ce6,'meta':{'isOwn':_0x577ba9==_0x5c6ce6['author'],'isNextTo':_0x30acbb,'isInsideObject':_0xa79257,'containsRangeInObject':_0x500284}}),_0x17abfd=!0x0;break;}}if(_0x17abfd)break;}}return _0x5f426f;}['_addSuggestionMarker'](_0x1806c8,_0x46c2eb,_0x222c3c,_0x4fb6fc,_0x472f76){this['_model']['change'](_0x1548fa=>{let _0x66861a='suggestion:'+_0x1806c8+':'+_0x46c2eb+':'+_0x222c3c;_0x472f76&&(_0x66861a=_0x66861a+':'+_0x472f76),_0x1548fa['addMarker'](_0x66861a,{'range':_0x4fb6fc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5a931d){const _0x520c7a=_0x5a931d['previous'],_0x3b55ab=_0x5a931d['next'];_0x5a931d['previous']=null,_0x5a931d['next']=null,null!=_0x520c7a&&_0x520c7a['next']==_0x5a931d&&(_0x520c7a['next']=_0x3b55ab),null!=_0x3b55ab&&_0x3b55ab['previous']==_0x5a931d&&(_0x3b55ab['previous']=_0x520c7a),'ready'==this['_suggestionState']['get'](_0x5a931d)&&(this['_suggestionState']['set'](_0x5a931d,'removed'),this['fire']('suggestionUnloaded',_0x5a931d,_0x520c7a,_0x3b55ab));}['_setSuggestionData'](_0x213ed8){const _0x2327ed=_0x213ed8['id'],_0x2aa67c=this['addSuggestionData'](_0x213ed8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1cdf04=this['editor']['plugins']['get']('PendingActions'),_0x55d382=_0x2aa67c['hasComments'],_0x4a5731=_0x2aa67c['subType']?_0x2aa67c['type']+':'+_0x2aa67c['subType']:_0x2aa67c['type'],_0x43876e=this['editor']['locale'],_0xd46f72=_0x1cdf04['add'](o(_0x43876e,'PENDING_ACTION_SUGGESTION')),_0x358c89={'id':_0x2327ed,'type':_0x4a5731,'hasComments':_0x55d382,'data':_0x213ed8['data']||null,'originalSuggestionId':_0x213ed8['originalSuggestionId']||null,'attributes':_0x2aa67c['attributes']};this['_adapter']['addSuggestion'](_0x358c89)['then'](_0x1a76c7=>{_0x2aa67c['_saved']=!0x0,_0x1cdf04['remove'](_0xd46f72),_0x1a76c7&&_0x1a76c7['createdAt']&&(this['_suggestions']['get'](_0x2327ed)['createdAt']=_0x1a76c7['createdAt']);})['catch'](_0x558eaf=>{throw _0xa926f1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2aa67c['discard']();}),_0x2aa67c['stopListening'](),this['_suggestions']['delete'](_0x2aa67c['id']),this['_suggestionState']['delete'](_0x2aa67c),_0x558eaf;});}return _0x2aa67c;}['_isBlockAttribute'](_0x239449){return this['editor']['plugins']['get'](_0xc16869)['isBlockAttribute'](_0x239449);}['_isInlineAttribute'](_0x51e5aa){return this['editor']['plugins']['get'](_0xc16869)['isInlineAttribute'](_0x51e5aa);}['_updateSuggestionData'](_0x4e1fd8,_0x1acf6d){const _0x2d98fa=this['editor']['plugins']['get']('PendingActions'),_0x463798=this['getSuggestion'](_0x4e1fd8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x463798['_saved']){const _0x4c2a6d=_0x2d98fa['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e1fd8,_0x1acf6d)['then'](()=>{_0x2d98fa['remove'](_0x4c2a6d);});}else _0x463798['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e1fd8,_0x1acf6d);});}}['_getSuggestionData'](_0xee161c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5f1dc4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xee161c);}['_handleNewSuggestionMarker'](_0x236cc1){const {id:_0x3600e2,type:_0x1d1329,subType:_0x4c10a9,authorId:_0x1e4a2b}=this['_splitMarkerName'](_0x236cc1),_0x4ee507=this['_suggestions']['get'](_0x3600e2)||this['_createSuggestion'](_0x1d1329,_0x4c10a9,_0x3600e2,_0x1e4a2b,{});switch(this['_checkSuggestionCorrectness'](_0x4ee507,_0x1d1329,_0x4c10a9,_0x1e4a2b),this['_suggestionState']['get'](_0x4ee507)){case'notReady':this['_getSuggestionData'](_0x3600e2)['then'](_0x56506c=>{let _0x35db1e=Promise['resolve']();_0x56506c['hasComments']&&(_0x35db1e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3600e2})),_0x35db1e['then'](()=>{this['addSuggestionData'](_0x56506c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ee507,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3600e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ee507,'ready'),this['fire']('suggestionLoaded',_0x4ee507);break;case'ready':this['fire']('suggestionChanged',_0x4ee507);}return _0x4ee507['addMarkerName'](_0x236cc1),_0x4ee507;}['_refreshSuggestionsChain'](_0x2138d5){const _0x3898b8=Array['from'](_0x2138d5),_0x44c58d=_0x3898b8['filter'](_0xc668ca=>'attribute'==_0xc668ca['type']);this['_refreshAttributeSuggestionsChain'](_0x44c58d);const _0x2ef1aa=_0x3898b8['filter'](_0x1f62b0=>!_0x1f62b0['isMultiRange']&&'attribute'!=_0x1f62b0['type']),_0x42dbfe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d701f=>!_0x1d701f['isMultiRange']&&'attribute'!=_0x1d701f['type']),_0x3fed72=_0x42dbfe['filter'](_0x28ad1d=>!_0x2138d5['has'](_0x28ad1d)),_0x4f60f5=new Map(_0x42dbfe['map'](_0xbbd190=>[_0xbbd190,this['_suggestionFactory']['getSuggestionCallback'](_0xbbd190['type'],_0xbbd190['subType'],'chain')])),_0x4234f6=new Map(_0x42dbfe['map'](_0x1b7cef=>[_0x1b7cef,_0x1b7cef['getFirstRange']()])),_0x292f8d=new Set(),_0xe7023a=new Set();for(let _0x235b2d=0x0;_0x235b2d<_0x2ef1aa['length'];_0x235b2d++)_0x3490a2(_0x2ef1aa[_0x235b2d],_0x2ef1aa,_0x235b2d+0x1);for(let _0x44c303=0x0;_0x44c303<_0x2ef1aa['length'];_0x44c303++)_0x3490a2(_0x2ef1aa[_0x44c303],_0x3fed72,0x0);const _0x9d0317=new Set();for(let _0x548f58=0x0;_0x548f58<_0x2ef1aa['length'];_0x548f58++){const _0x1f173d=_0x2ef1aa[_0x548f58];!_0xe7023a['has'](_0x1f173d)&&_0x1f173d['previous']&&(_0x9d0317['add'](_0x1f173d['previous']),_0x1f173d['previous']['next']===_0x1f173d&&(_0x1f173d['previous']['next']=null),_0x1f173d['previous']=null),!_0x292f8d['has'](_0x1f173d)&&_0x1f173d['next']&&(_0x9d0317['add'](_0x1f173d['next']),_0x1f173d['next']['previous']===_0x1f173d&&(_0x1f173d['next']['previous']=null),_0x1f173d['next']=null);}function _0x3490a2(_0x2c7dee,_0x576a0b,_0xa3c14c){for(let _0x5c7b05=_0xa3c14c;_0x5c7b05<_0x576a0b['length'];_0x5c7b05++){const _0xa40341=_0x233b25(_0x2c7dee,_0x576a0b[_0x5c7b05]);_0xa40341&&(_0xa40341[0x0]['next']=_0xa40341[0x1],_0xa40341[0x1]['previous']=_0xa40341[0x0],_0x292f8d['add'](_0xa40341[0x0]),_0xe7023a['add'](_0xa40341[0x1]));}}function _0x233b25(_0x3d6ddd,_0x3bbca7){if(_0x3d6ddd['author']['id']!==_0x3bbca7['author']['id'])return null;const _0x271737=_0x4f60f5['get'](_0x3d6ddd)(_0x3d6ddd,_0x3bbca7,_0x4234f6['get'](_0x3d6ddd),_0x4234f6['get'](_0x3bbca7));if(!_0x271737)return null;return _0x4f60f5['get'](_0x3bbca7)(_0x3d6ddd,_0x3bbca7,_0x4234f6['get'](_0x3d6ddd),_0x4234f6['get'](_0x3bbca7))?_0x271737[0x1]['commentThread']&&_0x271737[0x1]['commentThread']['length']?null:_0x271737:null;}_0x9d0317['size']&&this['_refreshSuggestionsChain'](_0x9d0317);}['_refreshAttributeSuggestionsChain'](_0xcd70d7){if(0x0==_0xcd70d7['length'])return;const _0x3695aa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5915d8=>'attribute'==_0x5915d8['type']&&_0x5915d8['_isDataLoaded']),_0x5ed5d2=[],_0x4b0cc4=new Map();for(const _0x19345c of _0x3695aa){const _0x4e0b20=_0x5719b5(_0x19345c['attributes']);_0x4b0cc4['has'](_0x4e0b20)||(_0x4b0cc4['set'](_0x4e0b20,_0x5ed5d2['length']),_0x5ed5d2['push']([]));const _0x21a768=_0x4b0cc4['get'](_0x4e0b20);_0x5ed5d2[_0x21a768]['push'](_0x19345c);}!(function(){_0x5ed5d2['sort']((_0x2f078b,_0x34ec60)=>{const _0x318fcf=_0x2f078b[0x0]['createdAt'],_0xd44deb=_0x34ec60[0x0]['createdAt'];return _0x318fcf==_0xd44deb?_0x2f078b[0x0]['attributes']['groupId']<_0x34ec60[0x0]['attributes']['groupId']?-0x1:0x1:_0x318fcf<_0xd44deb?-0x1:0x1;});for(const _0x64a78e of _0x5ed5d2)_0x64a78e['sort']((_0x3881fe,_0x5470e4)=>_0x3881fe['id']<_0x5470e4['id']?-0x1:0x1);}());for(let _0x28ff0d=0x0;_0x28ff0d<_0x5ed5d2['length'];_0x28ff0d++){if(0x0==_0x5ed5d2[_0x28ff0d]['length'])continue;const _0x5b8f01=[];for(let _0x253ce5=_0x28ff0d+0x1;_0x253ce5<_0x5ed5d2['length'];_0x253ce5++)0x0!=_0x5ed5d2[_0x253ce5]['length']&&_0x319d48(_0x5ed5d2[_0x28ff0d],_0x5ed5d2[_0x253ce5])&&_0x5b8f01['push'](_0x253ce5);for(const _0x388a50 of _0x5b8f01)_0x5ed5d2[_0x28ff0d]=_0x5ed5d2[_0x28ff0d]['concat'](_0x5ed5d2[_0x388a50]),_0x5ed5d2[_0x388a50]=[];}for(const _0x9b93b1 of _0x5ed5d2)for(let _0x371961=0x0;_0x371961<_0x9b93b1['length'];_0x371961++){const _0x3722ec=_0x9b93b1[_0x371961+0x1]||null;_0x9b93b1[_0x371961]['next']!==_0x3722ec&&(_0x9b93b1[_0x371961]['next']=_0x3722ec);}for(const _0x13d800 of _0x5ed5d2)for(let _0x344f79=0x0;_0x344f79<_0x13d800['length'];_0x344f79++){const _0x281cbf=_0x13d800[_0x344f79-0x1]||null;_0x13d800[_0x344f79]['previous']!==_0x281cbf&&(_0x13d800[_0x344f79]['previous']=_0x281cbf);}function _0x319d48(_0x3ddec4,_0x3d155a){if(_0x3ddec4[0x0]['attributes']['groupId']!==_0x3d155a[0x0]['attributes']['groupId']&&_0x3ddec4[0x0]['author']!==_0x3d155a[0x0]['author'])return!0x1;if(!function(_0x4d5a61,_0x2055c7){if(!_0x4d5a61['hasComments']&&!_0x2055c7['hasComments'])return!0x0;if(_0x4d5a61['hasComments']&&_0x2055c7['hasComments'])return!0x1;if(_0x4d5a61['hasComments']&&_0x2055c7['createdAt']<_0x4d5a61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2055c7['hasComments']&&_0x4d5a61['createdAt']<_0x2055c7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3ddec4[0x0],_0x3d155a[0x0]))return!0x1;const _0x6bd7a2=Jt(_0x3ddec4[0x0]['attributes'],['groupId','trackingSessionId']),_0x4729de=Jt(_0x3d155a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x409a95(_0x6bd7a2,_0x4729de))return!0x1;if(_0x3ddec4[0x0]['attributes']['groupId']==_0x3d155a[0x0]['attributes']['groupId'])return!0x0;if(_0x3ddec4[0x0]['attributes']['trackingSessionId']!==_0x3d155a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3ddec4['every'](_0x326646=>_0x3d155a['some'](_0x5701e9=>_0x326646['getFirstRange']()['isEqual'](_0x5701e9['getFirstRange']())))&&_0x3d155a['every'](_0x38f62f=>_0x3ddec4['some'](_0x5dda5c=>_0x38f62f['getFirstRange']()['isEqual'](_0x5dda5c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x206a1a){const _0x1c6bec=Array['from'](_0x206a1a),_0x5e4edb=this['getSuggestions']({'skipNotAttached':!0x0}),_0xefd3a=_0x5e4edb['filter'](_0x56decb=>!_0x206a1a['has'](_0x56decb)),_0x1fc68b=new Map(_0x1c6bec['map'](_0x4b279f=>[_0x4b279f,this['_suggestionFactory']['getSuggestionCallback'](_0x4b279f['type'],_0x4b279f['subType'],'join')])),_0x362312=new Map(_0x5e4edb['map'](_0xa0356a=>[_0xa0356a,_0xa0356a['getRanges']()]));for(let _0x3ac7c5=0x0;_0x3ac7c5<_0x1c6bec['length'];_0x3ac7c5++){if(_0x37b078(this,_0x1c6bec[_0x3ac7c5],_0x1c6bec,_0x3ac7c5+0x1))return!0x0;}for(let _0x42570b=0x0;_0x42570b<_0x1c6bec['length'];_0x42570b++){if(_0x37b078(this,_0x1c6bec[_0x42570b],_0xefd3a,0x0))return!0x0;}return!0x1;function _0x37b078(_0xc2275d,_0x241c95,_0x30e2b0,_0x5a51a0){for(let _0x5f1576=_0x5a51a0;_0x5f1576<_0x30e2b0['length'];_0x5f1576++){const _0x408f79=_0x30e2b0[_0x5f1576];if(_0x408f79['type']!==_0x241c95['type']||_0x408f79['author']['id']!==_0x241c95['author']['id']||_0x408f79['subType']!==_0x241c95['subType'])continue;if(!nn(_0x241c95,_0x408f79))continue;if('attribute'==_0x241c95['type']&&_0x241c95['data']['oldValue']!=_0x408f79['data']['oldValue'])continue;if('attribute'==_0x241c95['type']&&_0xc2275d['_isBlockAttribute'](_0x241c95['data']['key']))continue;if('formatBlock'==_0x241c95['type']){const _0xd204f6=_0xc2275d['editor']['model'],_0x2afbb6=_0x241c95['getContainedElement']();if(_0x2afbb6&&(_0xd204f6['schema']['isObject'](_0x2afbb6)||_0xd204f6['schema']['isLimit'](_0x2afbb6)))continue;}const _0x501300=_0x1fc68b['get'](_0x241c95),_0xcd4d6=_0x362312['get'](_0x241c95),_0x196f4e=_0x362312['get'](_0x408f79),_0x547369=_0x241c95['commentThread']&&_0x241c95['commentThread']['length'],_0xc95607=_0x408f79['commentThread']&&_0x408f79['commentThread']['length'];if(!_0x547369&&_0x501300(_0x196f4e,_0xcd4d6))return _0xc2275d['_joinSuggestions'](_0x408f79,_0x241c95),_0x362312['delete'](_0x241c95),!0x0;if(!_0xc95607&&_0x501300(_0xcd4d6,_0x196f4e))return _0xc2275d['_joinSuggestions'](_0x241c95,_0x408f79),_0x362312['delete'](_0x408f79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2807d1,_0x43d5ea){if(_0x2807d1['isMultiRange']){for(const _0x2a0d63 of _0x43d5ea['getRanges']())_0x2807d1['addRange'](_0x2a0d63);}else{const _0x4ec99c=_0x43d5ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2807d1,this['_model']['createRange'](_0x2807d1['getFirstRange']()['start'],_0x4ec99c));}_0x43d5ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a5ced,_0x4d5796,_0x1b7f4f){const _0x1f2934=_0x2a5ced['startsWith']('format')||_0x2a5ced['startsWith']('attribute')?'FORMATTING':_0x2a5ced['toUpperCase']();return o(this['editor']['locale'],_0x4d5796+'_'+_0x1f2934+'_SUGGESTION_ANNOUNCEMENT',_0x1b7f4f);}['_initAriaMarkerChangeAnnouncements'](){const _0x14bf5e=this['editor'];if(!_0x14bf5e['ui'])return;const {ariaLiveAnnouncer:_0x2fa807}=_0x14bf5e['ui'];_0x4038e0(this['_model'],({left:_0x5391dd,entered:_0x47065f})=>{for(const _0x99bc7c of _0x5391dd){const {group:_0xf0d23,type:_0x2c23b0}=this['_splitMarkerName'](_0x99bc7c['name']);if('suggestion'===_0xf0d23){_0x2fa807['announce'](this['_getMarkerAnnouncementText'](_0x2c23b0,'LEAVE'));break;}}for(const _0x350327 of _0x47065f){const {group:_0x2cfc40,type:_0x4b788f}=this['_splitMarkerName'](_0x350327['name']);if('suggestion'===_0x2cfc40){_0x2fa807['announce'](this['_getMarkerAnnouncementText'](_0x4b788f,'ENTER',_0x21f5de(_0x4a2fe2)));break;}}});}['_processAttributeChanges'](_0xdda5c9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x372033=this['editor'],_0x308c95=_0x372033['model']['document']['differ']['getChanges']();if(0x0==_0x308c95['length'])return!0x1;const _0x4251d0=[],_0x5e2dfc=_0x308c95['filter'](_0xd0ec6c=>'attribute'==_0xd0ec6c['type']),_0x4a1d01=_0x308c95['filter'](_0x1f45b0=>'insert'==_0x1f45b0['type']&&'$text'!=_0x1f45b0['name']),_0x285ec3=_0x308c95['filter'](_0x370a4c=>'remove'==_0x370a4c['type']&&'$text'!=_0x370a4c['name']);for(const _0x329226 of _0x5e2dfc)_0x4251d0['push']({'key':_0x329226['attributeKey'],'newValue':_0x329226['attributeNewValue'],'oldValue':_0x329226['attributeOldValue'],'range':Yt(_0x329226['range'],_0x372033['model'])});for(const _0x1dbbc2 of _0x4a1d01){const _0x360b3d=_0x285ec3['find'](_0x68053f=>_0x68053f['position']['isEqual'](_0x1dbbc2['position']));_0x360b3d&&_0x4251d0['push']({'key':m,'newValue':_0x1dbbc2['name'],'oldValue':_0x360b3d['name'],'range':_0x372033['model']['createRangeOn'](_0x1dbbc2['position']['nodeAfter'])});}return 0x0!=_0x4251d0['length']&&this['_reduceExistingSuggestions'](_0xdda5c9,_0x4251d0);}['_processAttributeSuggestions'](_0x50b7a3){let _0x18ff3f=!0x1;const _0x556be3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d359=>_0x25d359['data']['newRange']&&_0x25d359['name']['startsWith']('suggestion:attribute:'));for(const _0x347bad of _0x556be3){const {subType:_0x1f1900,id:_0x306c22}=this['_splitMarkerName'](_0x347bad['name']),_0x163c0b=_0x1f1900['split']('|')[0x0];for(const _0x413fc9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x413fc9['id']!=_0x306c22&&'attribute'==_0x413fc9['type']&&_0x413fc9['data']&&_0x413fc9['data']['key']==_0x163c0b&&_0x413fc9['getFirstRange']()['isIntersecting'](_0x347bad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x413fc9,_0x347bad['data']['newRange'],_0x50b7a3),_0x18ff3f=!0x0);}return _0x18ff3f;}['recordAttributeChanges'](_0x7db6cb){this['_recordAttributeSuggestions']=!0x0,_0x7db6cb();}['_isRegisteredAttribute'](_0x10f9ee){return this['editor']['plugins']['get'](_0xc16869)['isRegisteredAttribute'](_0x10f9ee);}['_reduceExistingSuggestions'](_0x27c0aa,_0x35bb2d){if(0x0==_0x35bb2d['length'])return!0x1;let _0x5db0d5=!0x1;for(const _0x31c6d5 of _0x35bb2d){const _0x30befe=this['_findSuggestions'](_0x31c6d5['range'],'attribute')['filter'](_0x13fa4b=>!_0x13fa4b['meta']['isNextTo'])['map'](_0x1342fc=>_0x1342fc['suggestion']),_0x403a68=_0x5719b5({'newValue':_0x31c6d5['newValue']});_0x30befe['filter'](_0x566d10=>{const [_0x2bdec2,_0x24db9c]=_0x566d10['subType']['split']('|');return _0x2bdec2==_0x31c6d5['key']&&_0x24db9c!=_0x403a68;})['forEach'](_0x18a272=>{this['_reduceSuggestionAttributeRange'](_0x18a272,_0x31c6d5['range'],_0x27c0aa),_0x5db0d5=!0x0;});}return _0x5db0d5;}['_reduceSuggestionAttributeRange'](_0x6671cb,_0x19231a,_0x5a3067){const _0x5bfacf=_0x6671cb['getFirstRange']()['getDifference'](_0x19231a);0x0!==_0x5bfacf['length']?0x1!==_0x5bfacf['length']?this['_breakSuggestionMarker'](_0x6671cb,_0x19231a['start'],_0x19231a['end']):this['_setSuggestionRange'](_0x6671cb,_0x5bfacf[0x0]):_0x5a3067['removeMarker'](_0x6671cb['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10971e){this['_editor']=_0x10971e,this['_model']=_0x10971e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x47ae15,_0x25db93,_0x284ea0,_0xe2864d,_0x567006,_0x174fd4,_0x3e3842){return new T(this['_model'],{'type':_0x47ae15,'subType':_0x25db93,'id':_0x284ea0,'originalSuggestionId':_0x3e3842,'author':_0xe2864d,'creator':_0xe2864d,'attributes':_0x567006,'onAttributesChange':_0x174fd4,'onAccept':(..._0x4e7542)=>this['getSuggestionCallback'](_0x47ae15,_0x25db93,'accept')(..._0x4e7542),'onDiscard':(..._0x3faef3)=>this['getSuggestionCallback'](_0x47ae15,_0x25db93,'discard')(..._0x3faef3)});}['registerCustomCallback'](_0x58599b,_0x3deda6,_0x3d3f15,_0x141c44){const _0x494821=_0x58599b+':'+_0x3deda6+':'+_0x3d3f15;this['_customCallbacks']['set'](_0x494821,_0x141c44);}['getSuggestionCallback'](_0x5e3a21,_0x64b542,_0x4e89fc){const _0xa4dadf=_0x5e3a21+':'+_0x64b542+':'+_0x4e89fc;return this['_customCallbacks']['get'](_0xa4dadf)||this['_defaultCallbacks']['get'](_0x5e3a21+':'+_0x4e89fc);}['_registerDefaultCallbacks'](){const _0x1563c9=()=>!0x1,_0x469bb7=_0x578615=>{_0x578615['sort']((_0x3001d1,_0x2eca73)=>_0x3001d1['start']['isBefore'](_0x2eca73['start'])?0x1:-0x1),this['_model']['change'](_0x65e978=>{for(const _0x1faf98 of _0x578615){let _0x2658a6;_0x2658a6=_0x1faf98['end']['isAtEnd']&&_0x1faf98['end']['parent']==_0x1faf98['start']['nodeAfter']?_0x65e978['createSelection'](_0x1faf98['start']['nodeAfter'],'on'):_0x65e978['createSelection'](_0x1faf98),this['_model']['deleteContent'](_0x2658a6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x590445=(_0x2ea004,_0x4e792e)=>{_0x4e792e&&this['_model']['change'](_0x177ca1=>{const {commandName:_0x1be3d6,commandParams:_0x2444cb=[]}=_0x4e792e,_0x555ac8=_0x2ea004['map'](_0x49924c=>(zt(_0x49924c)&&(_0x49924c=this['_model']['createRange'](_0x49924c['end'])),_0x49924c))['filter'](_0x3a66fc=>'$graveyard'!==_0x3a66fc['root']['rootName']);if(_0x555ac8['length']<0x1)return;const _0x1f0ca4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x27f77f=>_0x169dab['fromRange'](_0x27f77f));_0x177ca1['setSelection'](_0x555ac8);for(const _0x359ec1 of this['_editor']['commands']['commands']())_0x359ec1['refresh']();_0x2444cb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1be3d6,..._0x2444cb);const _0x4bb156=_0x1f0ca4['filter'](_0x489845=>'$graveyard'!=_0x489845['root']['rootName']);_0x4bb156['length']>0x0&&_0x177ca1['setSelection'](_0x4bb156);for(const _0x291344 of _0x1f0ca4)_0x291344['detach']();});},_0x403934=(_0x3afa81,_0x4bb4fa)=>0x1==_0x3afa81['length']&&0x1==_0x4bb4fa['length']&&_0x3afa81[0x0]['end']['isEqual'](_0x4bb4fa[0x0]['start']),_0x46bc6c=(_0x3eff1a,_0x3956f2,_0x25ad00,_0x3e7233)=>tn(_0x3eff1a,_0x3956f2,_0x25ad00,_0x3e7233)?[_0x3eff1a,_0x3956f2]:tn(_0x3956f2,_0x3eff1a,_0x3e7233,_0x25ad00)?[_0x3956f2,_0x3eff1a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1563c9),this['_defaultCallbacks']['set']('insertion:discard',_0x469bb7),this['_defaultCallbacks']['set']('insertion:join',_0x403934),this['_defaultCallbacks']['set']('insertion:chain',_0x46bc6c),this['_defaultCallbacks']['set']('deletion:accept',_0x469bb7),this['_defaultCallbacks']['set']('deletion:discard',_0x1563c9),this['_defaultCallbacks']['set']('deletion:join',_0x403934),this['_defaultCallbacks']['set']('deletion:chain',_0x46bc6c),this['_defaultCallbacks']['set']('formatInline:accept',_0x590445),this['_defaultCallbacks']['set']('formatInline:discard',_0x1563c9),this['_defaultCallbacks']['set']('formatInline:join',_0x403934),this['_defaultCallbacks']['set']('formatInline:chain',_0x1563c9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x590445),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1563c9),this['_defaultCallbacks']['set']('formatBlock:join',_0x403934),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1563c9),this['_defaultCallbacks']['set']('attribute:accept',_0x1563c9),this['_defaultCallbacks']['set']('attribute:discard',(_0x274af2,_0x1cee78)=>{if(!_0x1cee78)return;const _0x15bd85=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x26feb1=>{if(_0x1cee78['key']==m)for(const _0x32c835 of _0x274af2){const _0x222aa4=_0x32c835['start']['nodeAfter'],_0x21fce0=_0x1cee78['oldValue'];_0x26feb1['rename'](_0x222aa4,_0x21fce0);}else{if(_0x15bd85['_isBlockAttribute'](_0x1cee78['key'])){for(const _0x575f62 of _0x274af2)void 0x0!==_0x1cee78['oldValue']?_0x26feb1['setAttribute'](_0x1cee78['key'],_0x1cee78['oldValue'],_0x575f62['start']['nodeAfter']):_0x26feb1['removeAttribute'](_0x1cee78['key'],_0x575f62['start']['nodeAfter']);}else{for(const _0x975995 of _0x274af2)_0x1cee78['oldValue']?_0x26feb1['setAttribute'](_0x1cee78['key'],_0x1cee78['oldValue'],_0x975995):_0x26feb1['removeAttribute'](_0x1cee78['key'],_0x975995);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x403934);}}function qt(_0x2dd602,_0x3e7636,_0xc86695){for(const _0x5205e6 of _0x3e7636['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5205e6['root']==_0x5205e6)return!0x1;if(!_0xc86695['containsItem'](_0x5205e6))return!0x1;if(_0x2dd602['isObject'](_0x5205e6)||_0x2dd602['isLimit'](_0x5205e6))return!0x0;}return!0x1;}function zt(_0x502733){return _0x502733['end']['parent']==_0x502733['start']['nodeAfter']&&_0x502733['end']['isAtStart'];}function Kt(_0xc15eca,_0x33f77b,_0x1775cf,_0x4dd147){const _0x2f7c94=_0x3dd12c=>!_0x3dd12c['item']['is']('$textProxy')&&!_0x4dd147['isObject'](_0x3dd12c['item']),_0x123dbe=_0xc15eca['start']['getLastMatchingPosition'](_0x2f7c94),_0x3f762c=_0xc15eca['end']['getLastMatchingPosition'](_0x2f7c94,{'direction':'backward'});return(!_0xc15eca['start']['isEqual'](_0x123dbe)||!_0xc15eca['end']['isEqual'](_0x3f762c))&&(_0x123dbe['isBefore'](_0x3f762c)?_0x1775cf['updateMarker'](_0x33f77b,{'range':_0x1775cf['createRange'](_0x123dbe,_0x3f762c)}):_0x1775cf['removeMarker'](_0x33f77b),!0x0);}function Wt(_0x569b7a){return _0x5719b5(_0x569b7a);}function Ht(_0x3fb60f){const _0x13e787=_0x3fb60f['start']['nodeAfter'];return _0x13e787&&_0x13e787['is']('element');}function Qt(_0x2e2c6f){return zt(_0x2e2c6f)||function(_0xf1f1a){return _0xf1f1a['start']['parent']==_0xf1f1a['end']['nodeBefore']&&_0xf1f1a['start']['isAtEnd'];}(_0x2e2c6f);}function Xt(_0x330255,_0x5ab368){try{const _0xb57588=_0x330255['getRange']();for(const _0x5f2911 of _0x5ab368)if(_0x330255!==_0x5f2911&&_0xb57588&&_0xb57588['isIntersecting'](_0x5f2911['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Yt(_0x1db951,_0x5d081e){return null==_0x1db951['end']['nodeBefore']&&_0x1db951['end']['parent']==_0x1db951['start']['nodeAfter']?Zt(_0x1db951['start']['nodeAfter'],_0x5d081e):_0x1db951;}function Zt(_0x1289e6,_0x9e6ac7){const _0x28ec3f=_0x9e6ac7['schema']['isObject'](_0x1289e6)||_0x9e6ac7['schema']['isSelectable'](_0x1289e6);return _0x9e6ac7['createRange'](_0x9e6ac7['createPositionAt'](_0x1289e6,'before'),_0x28ec3f?_0x9e6ac7['createPositionAfter'](_0x1289e6):_0x9e6ac7['createPositionAt'](_0x1289e6,'end'));}function tn(_0x3d2629,_0x4422c2,_0x48d179,_0x2738e1){return!!nn(_0x3d2629,_0x4422c2)&&_0x48d179['end']['isEqual'](_0x2738e1['start']);}function nn(_0x3bdf68,_0x5097ca){if(!_0x3bdf68['_isDataLoaded']||!_0x5097ca['_isDataLoaded'])return!0x1;const _0x9eac50=new Set(Object['keys'](_0x3bdf68['attributes'])),_0x2fbbdf=new Set(Object['keys'](_0x5097ca['attributes']));if(_0x9eac50['delete']('groupId'),_0x2fbbdf['delete']('groupId'),0x0==_0x9eac50['size']&&0x0==_0x2fbbdf['size'])return!0x0;if(_0x9eac50['size']!=_0x2fbbdf['size'])return!0x1;const _0x1a6065={..._0x3bdf68['attributes']},_0x3037b2={..._0x5097ca['attributes']};return delete _0x1a6065['groupId'],delete _0x3037b2['groupId'],JSON['stringify'](_0x1a6065)==JSON['stringify'](_0x3037b2);}function en(_0x199713,_0x54411f){const _0x53f8b2=sn(_0x199713['attributes']),_0x4d6e59=sn(_0x54411f);if(!_0x199713['_isDataLoaded'])return!0x1;for(const _0x5babfe of Object['keys'](_0x4d6e59))if(!_0x409a95(_0x53f8b2[_0x5babfe],_0x4d6e59[_0x5babfe]))return!0x1;return!0x0;}function sn(_0x1d7336){const _0x3af54b=Object['assign']({},_0x1d7336);return delete _0x3af54b['skipNestingCheck'],delete _0x3af54b['tablePasteChainId'],_0x3af54b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x294311(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2f82d1,_0xe43e,_0x3b0e05,_0xa2ec47){super(),this['model']=_0xe43e,this['view']=_0x3b0e05,this['commentThreadController']=_0xa2ec47,this['_editor']=_0x2f82d1,this['_acceptCommand']=_0x2f82d1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f82d1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x194f65,_0x379d6f)=>_0x194f65||_0x379d6f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b15bb=>_0x3b15bb&&this['_editor']['model']['canEditAt'](_0xe43e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3ea3ee=>_0x3ea3ee&&this['_editor']['model']['canEditAt'](_0xe43e['getRanges']())),this['_pendingAction']=null,_0x3b0e05['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b0e05,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b0e05,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b0e05,'change:isDirty',()=>{_0x3b0e05['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 _0x4c1b08=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4c1b08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x56f20e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2bdfbb,_0x2a12b5,_0x3592c2,_0x13b2e1){super(_0x2bdfbb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x16634c(_0x2bdfbb,o(_0x2bdfbb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a12b5['authoredAt']),this['bind']('authoredAt')['to'](_0x2a12b5),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',_0x2a12b5,'authoredAt',this,'descriptionParts',(_0x354aa0,_0x1ca6dd,_0xc2489f)=>{const _0xd482c6=_0xc2489f['map'](_0x5e136c=>ls(_0x5e136c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x354aa0-0x1,_0x2a12b5['author']['name'],_0x1ca6dd?_0x13b2e1['formatDateTime'](_0x1ca6dd):'',new DOMParser()['parseFromString'](_0xd482c6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1daddf(),this['focusTracker']=new _0x2b52d2(),this['keystrokes']=new _0x873389(),this['focusCycler']=new _0x58f626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x126418=>_0x126418['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2a12b5,this['_localUser']=_0x3592c2,this['_config']=_0x13b2e1,_0x13b2e1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33b754(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4311cc}=this['_config'];this['commentsListView']=new _0x4311cc(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',_0x14cbde=>_0x14cbde+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x487c9e,_0x48fc40)=>_0x487c9e||!!_0x48fc40);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x364cff}=this['_config'],_0x4095cb=new _0x364cff(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x118f76=_0x4095cb['commentInputView'];return _0x4095cb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x118f76,'value',(_0xde89a8,_0x3fef7b,_0x5948af)=>!!_0x5948af||_0xde89a8&&!_0x3fef7b),_0x118f76['on']('submit',(_0x419cbc,_0x5ddf6c)=>{this['fire']('addComment',_0x5ddf6c),_0x118f76['editor']['setData']('');}),_0x118f76['on']('cancel',()=>this['focus']()),_0x118f76['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4095cb;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5a655c,_0x28481c,_0x39362b,_0x44f85e){super(_0x5a655c,_0x28481c,_0x39362b,_0x44f85e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x549ffd=>_0x549ffd&&_0x549ffd[0x0]?_0x549ffd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e3f44,_0x414d4f)=>{let _0x413c11='';for(const _0x7d390e of _0x2e3f44)_0x413c11+='<p>'+ls(_0x7d390e['content'],_0x7d390e['color'])+'</p>';return _0x414d4f?_0x413c11:_0x5c24f8(_0x413c11,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x44f85e['SuggestionView'](_0x5a655c,_0x28481c,{'formatDateTime':_0x44f85e['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 _0x1f42e5=this['bindTemplate'],_0x5291a6=[this['suggestionView']];return this['commentsListView']&&_0x5291a6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5291a6['push'](this['commentThreadInputView']),_0x5291a6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f42e5['if']('isActive','ck-suggestion-wrapper--active'),_0x1f42e5['to']('type',_0xe31e44=>'ck-suggestion-'+_0xe31e44),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':_0x1f42e5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5291a6};}['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 _0x56f20e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6e461a,_0x506e23,_0x50be7c){super(_0x6e461a),this['_model']=_0x506e23,this['_config']=_0x50be7c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x506e23),this['acceptButton']=this['_createButton'](o(_0x6e461a,'Accept\x20suggestion'),_0x2516b5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6e461a,'Discard\x20suggestion'),_0x33db4e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c032b(_0x6e461a,_0x506e23['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1daddf([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b52d2(),this['keystrokes']=new _0x873389(),this['focusCycler']=new _0x58f626({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xe4d26=>_0xe4d26['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12734d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12734d['innerHTML']=this['description'],this['on']('change:description',(_0x2cec2d,_0x444141,_0x3ac41c)=>{_0x12734d['innerHTML']=_0x3ac41c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3f6c7c=this['bindTemplate'],_0x31e729=[{'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':_0x3f6c7c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3f6c7c['to']('authoredAt',_0x27fc9b=>this['_config']['formatDateTime'](_0x27fc9b))}]}]},{'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']&&_0x31e729['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':_0x31e729}]};}['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'](_0x309565,_0x2dd56e,_0x2a3860,_0x7851f0,_0x4347b4){const _0x441e3b=new _0x16057c(this['locale']);return _0x441e3b['set']({'label':_0x309565,'icon':_0x2dd56e,'tooltip':!0x0,'tooltipPosition':_0x4347b4}),_0x441e3b['extendTemplate']({'attributes':{'class':_0x2a3860}}),_0x441e3b['on']('execute',()=>{this['fire'](_0x7851f0,this['_model']['id']);}),_0x441e3b;}['_setupKeyboardNavigation'](){const _0x17ee89=this['element'];this['keystrokes']['listenTo'](_0x17ee89);for(const _0x6bd1c of this['focusables'])this['focusTracker']['add'](_0x6bd1c['element']),this['keystrokes']['listenTo'](_0x6bd1c['element']);this['keystrokes']['set']('enter',(_0x738afc,_0x26fe2d)=>{_0x17ee89===_0x738afc['target']&&(this['focusCycler']['focusFirst'](),_0x26fe2d());}),this['keystrokes']['set']('esc',(_0x3ea0da,_0x2f772b)=>{_0x17ee89!==_0x3ea0da['target']&&(this['focus'](),_0x2f772b());});}}class u extends _0x3b85d6{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5022c8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a56a9){super(_0x2a56a9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1e28e9=this['editor']['config'];_0x1e28e9['define']('trackChanges.SuggestionThreadView',fe),_0x1e28e9['define']('trackChanges.SuggestionView',we),_0x1e28e9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1e28e9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x392280,_0x3d61b5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20bc87,_0x44c614]of this['_handleControllerBuffer']){const _0x2b3216=this['_suggestionToController']['has'](_0x20bc87);_0x2b3216||_0x44c614?_0x2b3216&&_0x44c614&&this['_destroyController'](_0x20bc87):this['_initializeController'](_0x20bc87);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x392280,_0x3d61b5);}['init'](){const _0x45b8c4=this['editor'],_0x172181=_0x45b8c4['plugins']['get']('TrackChangesEditing'),_0x22a287=_0x45b8c4['plugins']['get']('Annotations'),_0x1ccccf=_0x45b8c4['plugins']['get']('EditorAnnotations'),_0x5625ec=_0x45b8c4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1ccccf['addSourceCollector'](()=>{const _0x25aff4=[];for(const [_0xcdc214,_0x7d0793]of Array['from'](this['_suggestionToController'])){const _0x3ce0c0=_0xcdc214['getAllAdjacentSuggestions'](),_0x27de1a=[];for(const _0x46da76 of _0x3ce0c0){if(!_0x46da76['isInContent'])continue;if(_0x46da76['isMultiRange']){_0x27de1a['push'](..._0x46da76['getRanges']());continue;}const _0x6bf6f5=_0x46da76['getFirstRange']();if(_0x27de1a['length']>0x0){const _0xb12112=_0x27de1a[0x0]['getJoined'](_0x6bf6f5);if(_0xb12112){_0x27de1a[0x0]=_0xb12112;continue;}}_0x27de1a['push'](_0x6bf6f5);}_0x25aff4['push']([_0x7d0793['view'],_0x27de1a]);}return _0x25aff4;}),this['listenTo'](_0x172181,'suggestionLoaded',(_0x432ef0,_0x1bd07b)=>{this['listenTo'](_0x1bd07b,'change:previous',(_0x58f82f,_0x5f4a9d,_0x5b9c9f,_0x58acbf)=>{_0x1bd07b['isInContent']&&(null==_0x5b9c9f?(this['_updateController'](_0x58acbf['head']),this['_handleSuggestionControllerDelayed'](_0x1bd07b,!0x1)):(this['_updateController'](_0x5b9c9f['head']),null==_0x58acbf&&this['_handleSuggestionControllerDelayed'](_0x1bd07b,!0x0)));}),null!==_0x1bd07b['previous']?this['_updateController'](_0x1bd07b['head']):this['_handleSuggestionControllerDelayed'](_0x1bd07b,!0x1);}),this['listenTo'](_0x172181,'suggestionUnloaded',(_0x304218,_0x1727d0,_0x21a577)=>{this['stopListening'](_0x1727d0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1727d0),this['_suggestionToController']['has'](_0x1727d0)&&this['_destroyController'](_0x1727d0),_0x21a577&&this['_updateController'](_0x21a577['head']);}),this['listenTo'](_0x172181,'suggestionChanged',(_0x23e7cd,_0x17fe16)=>{this['_updateController'](_0x17fe16);}),this['listenTo'](_0x22a287,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5625ec,'addComment',(_0x1123bb,{threadId:_0x3e2e40,isFromAdapter:_0x71559a})=>{if(_0x71559a||!_0x172181['hasSuggestion'](_0x3e2e40))return;const _0x3380cc=_0x172181['getSuggestion'](_0x3e2e40);this['_suggestionToController']['get'](_0x3380cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b118e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c4307;for(const _0x3b9557 in _0x3b118e){const _0x11ac9f=_0x3b9557,_0x4eb951=_0x3b118e[_0x11ac9f];if('trackChangesLicenseKeyValid'==_0x4eb951||'trackChangesLicenseKeyInvalid'==_0x4eb951||'trackChangesLicenseKeyExpired'==_0x4eb951||'trackChangesLicenseKeyDomainLimit'==_0x4eb951||'trackChangesLicenseKeyNotAllowed'==_0x4eb951||'trackChangesLicenseKeyEvaluationLimit'==_0x4eb951||'trackChangesLicenseKeyUsageLimit'==_0x4eb951){delete _0x3b118e[_0x11ac9f],_0x5c4307=_0x4eb951,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5c4307&&_0x3b118e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5c4307&&_0x3b118e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5c4307&&_0x3b118e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5c4307&&_0x3b118e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5c4307&&_0x3b118e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5c4307&&_0x3b118e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4a3f75){const _0xd61007=this['_suggestionToController']['get'](_0x4a3f75);if(!_0xd61007)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xd61007['view'])||null;}['getSuggestionForAnnotation'](_0x1969e8){const _0x27aeb9=this['_viewToController']['get'](_0x1969e8['innerView']);return _0x27aeb9?_0x27aeb9['model']:null;}['_refreshActiveMarkers'](){const _0x2a0d11=this['editor']['plugins']['get']('Annotations'),_0x164d69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x80ea30=Array['from'](_0x2a0d11['activeAnnotations'],_0x461dbf=>_0x461dbf['innerView'])['filter'](_0x1b22ed=>this['_viewToController']['has'](_0x1b22ed)),_0x5e94d3=[];for(const _0x426e42 of _0x80ea30){const _0x17e971=this['_viewToController']['get'](_0x426e42)['model']['getAllAdjacentSuggestions']();_0x5e94d3['push'](..._0x17e971['reduce']((_0x2c45f5,_0x14deb6)=>[..._0x2c45f5,..._0x14deb6['getMarkerNames']()],[]));}_0x164d69['activeMarkers']=_0x5e94d3;}['_addUIComponentsToFactory'](){const _0x55c99f=this['editor'],_0x46f740=_0x55c99f['locale'],_0x5a7342=o(_0x46f740,'Track\x20changes'),_0x340400=new _0x21f154([{'type':'switchbutton','model':new _0x5e3ef2({'withText':!0x0,'isToggleable':!0x0,'label':_0x5a7342,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5e3ef2({'withText':!0x0,'label':o(_0x46f740,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3ef2({'withText':!0x0,'label':o(_0x46f740,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3ef2({'withText':!0x0,'label':o(_0x46f740,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3ef2({'withText':!0x0,'label':o(_0x46f740,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x55c99f['plugins']['has']('TrackChangesPreview')&&_0x340400['addMany']([{'type':'separator'},{'type':'button','model':new _0x5e3ef2({'withText':!0x0,'label':o(_0x46f740,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x44f9d2 of _0x340400)if(ke(_0x44f9d2)){const _0x25753f=_0x55c99f['commands']['get'](_0x44f9d2['model']['commandName']);_0x44f9d2['model']['bind']('isOn','isEnabled')['to'](_0x25753f,'value','isEnabled');}_0x55c99f['ui']['componentFactory']['add']('trackChanges',_0x37ede8=>this['_createToolbarButton'](_0x37ede8,_0x340400,_0x5a7342)),_0x55c99f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x563597=>this['_createMenuBarMenu'](_0x563597,_0x340400,_0x5a7342));}['_createToolbarButton'](_0x5647bf,_0x444580,_0x18b93b){const _0x2185ff=_0x2e24c7(_0x5647bf,_0x48095b),_0x47ac38=this['editor']['commands']['get']('trackChanges');_0x2185ff['buttonView']['set']({'tooltip':_0x18b93b,'label':_0x18b93b,'icon':_0x2d77b1}),_0x2185ff['buttonView']['bind']('isOn')['to'](_0x47ac38,'value'),_0x2185ff['buttonView']['on']('execute',()=>{_0x47ac38['execute'](),this['editor']['editing']['view']['focus']();}),_0x2a524a(_0x2185ff,_0x444580,{'role':'menu'});const _0x297391=[];for(const _0x178577 of _0x444580)ke(_0x178577)&&_0x297391['push'](this['editor']['commands']['get'](_0x178577['model']['commandName']));const _0x278540=_0x2185ff['buttonView'];return _0x278540['actionView']['unbind']('isEnabled'),_0x278540['arrowView']['unbind']('isEnabled'),_0x278540['actionView']['bind']('isEnabled')['to'](_0x47ac38,'isEnabled'),_0x278540['arrowView']['bind']('isEnabled')['toMany'](_0x297391,'isEnabled',(..._0x4a440d)=>_0x4a440d['some'](_0x90f6ab=>_0x90f6ab)),_0x2185ff['on']('execute',_0x113582=>{this['editor']['execute'](_0x113582['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2185ff;}['_createMenuBarMenu'](_0x5ca5ef,_0x107fe6,_0x7cd79e){const _0x29bf6f=new _0x2a9bfc(_0x5ca5ef),_0x2c080e=this['editor']['commands']['get']('trackChanges');_0x29bf6f['buttonView']['set']({'label':_0x7cd79e,'icon':_0x2d77b1});const _0x130e39=new _0x3ab18a(_0x5ca5ef);for(const _0x29d41d of _0x107fe6){if('separator'==_0x29d41d['type']){_0x130e39['items']['add'](new _0x4501e9(_0x5ca5ef));continue;}const _0x552f88=new _0x34716c(_0x5ca5ef,_0x29bf6f),_0x242656=new _0xb3696(_0x5ca5ef),_0x438ee1=_0x29d41d['model'];_0x242656['bind'](...Object['keys'](_0x438ee1))['to'](_0x438ee1),_0x242656['delegate']('execute')['to'](_0x29bf6f),_0x242656['on']('execute',()=>{this['editor']['execute'](_0x438ee1['commandName']),this['editor']['editing']['view']['focus']();}),_0x552f88['children']['add'](_0x242656),_0x130e39['items']['add'](_0x552f88);}return _0x29bf6f['bind']('isEnabled')['to'](_0x2c080e,'isEnabled'),_0x29bf6f['panelView']['children']['add'](_0x130e39),_0x29bf6f;}['_initializeController'](_0x2ce5c4){const _0x58fb3b=this['editor'],_0x402b11=_0x58fb3b['config'],_0x2eaa15=_0x58fb3b['plugins']['get']('Annotations'),_0xe61800=_0x58fb3b['plugins']['get']('CommentsRepository'),_0x5ed2d5=_0x58fb3b['plugins']['get']('EditorAnnotations'),_0x85a79a=_0x58fb3b['plugins']['get'](_0x5022c8)['me'],_0x452c20=_0x402b11['get']('trackChanges')['SuggestionThreadView'],_0x1eaac8=_0x402b11['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3ee2fa,CommentThreadInputView:_0x33d1b7}=_0x58fb3b['plugins']['get']('CommentsUI');let _0x214b91,_0x5a3065,_0x19c710;this['_annotationViews']['has'](_0x2ce5c4['id'])?(_0x5a3065=this['_annotationViews']['get'](_0x2ce5c4['id']),_0x214b91=_0x5a3065['mainView']):(_0x214b91=new _0x452c20(_0x58fb3b['locale'],_0x2ce5c4,_0x85a79a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x402b11['get']('comments.editorConfig'),'licenseKey':_0x402b11['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x402b11['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x402b11['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x402b11['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a83c5(_0x402b11['get']('locale'),_0x58fb3b['locale']),'CommentView':_0x402b11['get']('comments')['CommentView'],'CommentsListView':_0x3ee2fa,'CommentThreadInputView':_0x33d1b7,'SuggestionView':_0x1eaac8}),_0x214b91['suggestionView']['acceptButton']['on']('execute',()=>{_0x58fb3b['editing']['view']['focus']();}),_0x214b91['suggestionView']['discardButton']['on']('execute',()=>{_0x58fb3b['editing']['view']['focus']();}),_0x5a3065=_0x2eaa15['createAnnotationView'](this['editor']['locale'],_0x214b91),_0x5a3065['bind']('isDirty')['to'](_0x214b91,'isDirty'),_0x5a3065['bind']('length')['to'](_0x214b91),_0x5a3065['bind']('type')['to'](_0x214b91,'type',_0x58f890=>'suggestion-'+_0x58f890),_0x214b91['on']('escape',()=>{_0x19c710['fire']('escape');}),this['_annotationViews']['set'](_0x2ce5c4['id'],_0x5a3065));const _0x510ffc=_0xe61800['createCommentThreadController'](_0x2ce5c4['commentThread'],_0x214b91),_0x1c7b79=new pe(_0x58fb3b,_0x2ce5c4,_0x214b91,_0x510ffc),_0x834ed5=_0x2ce5c4['getAllAdjacentSuggestions']()['filter'](_0x3a6ce5=>_0x3a6ce5['isInContent']);_0x214b91['descriptionParts']=_0x58fb3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x834ed5),this['_suggestionToController']['set'](_0x2ce5c4,_0x1c7b79),this['_viewToController']['set'](_0x214b91,_0x1c7b79);const _0x2cd73b=()=>{const _0x3aaeaa=[],_0x1c4f04=_0x2ce5c4['getAllAdjacentSuggestions']()['filter'](_0x5615a8=>_0x5615a8['isInContent']);for(const _0x5b4d03 of _0x1c4f04)_0x3aaeaa['push'](..._0x5b4d03['getMarkers']());return _0x52676e(_0x58fb3b['editing'],_0x3aaeaa);};_0x19c710=_0x2eaa15['createAnnotation']({'view':_0x5a3065,'target':_0x2cd73b,'type':()=>'suggestion-'+_0x1c7b79['view']['type'],'isVisible':!!_0x2cd73b()}),_0xe61800['_bindAnnotationToEditors'](_0x214b91,_0x19c710),_0x2eaa15['add'](_0x19c710),_0x5ed2d5['registerAnnotation'](_0x19c710);}['_destroyController'](_0x397cbf){const _0x279e8b=this['editor']['plugins']['get']('CommentsRepository'),_0x523774=this['editor']['plugins']['get']('Annotations'),_0x74061c=this['_suggestionToController']['get'](_0x397cbf),_0x5797fd=_0x74061c['view'],_0x456b24=_0x523774['getByInnerView'](_0x5797fd);_0x279e8b['_unbindEditors'](_0x5797fd),_0x456b24&&_0x523774['remove'](_0x456b24),this['_suggestionToController']['delete'](_0x397cbf),this['_viewToController']['delete'](_0x5797fd),_0x74061c['destroy']();}['_updateController'](_0x203704){if(!_0x203704['isInContent']||!this['_suggestionToController']['has'](_0x203704))return;const _0x20189f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e4b28=this['_suggestionToController']['get'](_0x203704),_0x3db475=_0x203704['getAllAdjacentSuggestions']();_0x5e4b28['view']['descriptionParts']=_0x20189f['descriptionFactory']['getDescriptions'](_0x3db475);}['destroy'](){for(const _0x4aa21b of this['_suggestionToController']['keys']())this['_destroyController'](_0x4aa21b);for(const _0x555178 of this['_annotationViews']['values']())_0x555178['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x347b39){return'model'in _0x347b39;}class TrackChanges extends _0x3b85d6{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4ea333){this['editor']['plugins']['get'](d)['adapter']=_0x4ea333;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x591c35){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x591c35);}['getSuggestions']({skipNotAttached:_0x84c7a6=!0x1,toJSON:_0xc5b3ef=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x84c7a6,'toJSON':_0xc5b3ef});}['getSuggestion'](_0x24f5d5){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x24f5d5);}}const p=['Pagination'];class re extends _0x3b85d6{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2f92e7=this['editor'];if(_0x2f92e7['config']['define']('trackChangesData.editorCreator',_0x57232f=>{const _0x3136be=_0x2f92e7['model']['document']['getRootNames']()['reduce']((_0x555c77,_0x5b1e48)=>(_0x555c77[_0x5b1e48]='',_0x555c77),{});return _0x2f92e7['constructor']['create'](_0x3136be,_0x57232f);}),'function'!=typeof _0x2f92e7['config']['get']('trackChangesData')['editorCreator'])throw new _0x5f1dc4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1c9b65){return P(this['editor'],!0x0,_0x1c9b65);}['getDataWithDiscardedSuggestions'](_0xfbf100){return P(this['editor'],!0x1,_0xfbf100);}}class TrackChangesDataGetter extends _0x3b85d6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4598a5){function _0x58bbfa(_0x5ce66c){return _0x5ce66c['map'](_0x198b96=>String['fromCharCode'](_0x198b96))['join']('');}super(_0x4598a5),this['result']='end',_0x4598a5[_0x58bbfa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58bbfa([0x76,0x69,0x65,0x77])][_0x58bbfa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58bbfa([0x61,0x75,0x74,0x6f]),_0x4598a5[_0x58bbfa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58bbfa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58bbfa([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58bbfa([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58bbfa([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 Ne(_0x12e62e){return void 0x0!==_0x12e62e['getRootsAttributes'];}async function P(_0x501b3d,_0x15bbcc,_0x29d421){const _0x965fc4=_0x153e6a(_0x501b3d,p);_0x965fc4['plugins']['push'](d,TrackChangesDataGetter),_0x965fc4['rootsAttributes']=Ne(_0x501b3d)?_0x501b3d['getRootsAttributes']():void 0x0;const _0x1b3f18=document['createDocumentFragment'](),_0x126f47=_0x501b3d['config']['get']('trackChangesData')['editorCreator'],_0x23d4d7=await _0x126f47(_0x965fc4,()=>function(_0x3bdfd3){const _0x473d3b=document['createElement']('div');return _0x3bdfd3['appendChild'](_0x473d3b),_0x473d3b;}(_0x1b3f18));!function(_0x3d2854,_0x2fc2ca){const _0x48834d=_0x3d2854['model']['document']['getRootNames']()['reduce']((_0x351c4a,_0xc8fd75)=>(_0x351c4a[_0xc8fd75]=_0x3d2854['data']['get']({'rootName':_0xc8fd75}),_0x351c4a),{}),_0x3981a7=_0x3d2854['plugins']['get']('Users')['users']['map'](_0x6d5f3d=>({'id':_0x6d5f3d['id'],'name':_0x6d5f3d['name']})),_0x2d9b68=_0x3d2854['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x76a0e2=_0x3d2854['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x478b02=_0x2fc2ca['plugins']['get']('Users'),_0x236737=_0x2fc2ca['plugins']['get']('TrackChangesEditing'),_0x125f1e=_0x2fc2ca['plugins']['get']('CommentsRepository');for(const _0xaecdf8 of _0x125f1e['getCommentThreads']())_0xaecdf8['remove']();for(const _0x302ef0 of _0x3981a7)_0x478b02['getUser'](_0x302ef0['id'])||_0x478b02['addUser'](_0x302ef0);_0x478b02['me']||_0x478b02['useAnonymousUser']();for(const _0x35926b of _0x76a0e2)_0x125f1e['addCommentThread'](_0x35926b);for(const _0x2a285e of _0x2d9b68)_0x236737['addSuggestionData'](_0x2a285e);_0x2fc2ca['data']['set'](_0x48834d);}(_0x501b3d,_0x23d4d7),_0x23d4d7['execute'](_0x15bbcc?'acceptAllSuggestions':'discardAllSuggestions');const _0x3baade=Ne(_0x23d4d7)?_0x23d4d7['getFullData'](_0x29d421):_0x23d4d7['data']['get'](_0x29d421);return await _0x23d4d7['destroy'](),_0x3baade;}class Me extends _0x56f20e{['options'];constructor(_0x189faf,_0x2b8b45){super(_0x189faf),this['options']=_0x2b8b45,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'](_0x534d7a,_0x5b0df7){if(!this['element'])return;const _0x2682c7=[];for(const [_0x16afe1,_0x2b325e]of _0x534d7a){const _0x31df25=document['createElement']('div');_0x31df25['setAttribute']('data-ck-root-name',_0x16afe1),_0x31df25['className']=_0x2b325e['classes']+'\x20ck-track-changes-preview__root-container',_0x31df25['innerHTML']=_0x2b325e['content'],_0x2682c7['push'](_0x31df25);}_0x5b0df7(this['element'],_0x2682c7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3d7124{constructor(_0x450c38){super(_0x450c38),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c3b64=this['editor'],_0x5c2cd3=_0x1c3b64['locale'],_0x29410a=_0x1c3b64['plugins']['get']('Dialog');let _0xa1c876;const _0x523182=function(_0x54c268){const _0x3d99d5={};if('editables'in _0x54c268['ui']['view']){for(const [_0x5a0858,_0x5b5285]of Object['entries'](_0x54c268['ui']['view']['editables']))_0x3d99d5[_0x5a0858]=_0x5b5285['element'];}else _0x3d99d5[_0x54c268['model']['document']['getRootNames']()[0x0]]=_0x54c268['ui']['view']['editable']['element'];return _0x3d99d5;}(_0x1c3b64),_0x6d55bd=function(_0x23b2a5){let _0x318de5=0x0;for(const _0xb5f461 of Object['values'](_0x23b2a5))_0x318de5=Math['max'](_0x318de5,_0xb5f461['getBoundingClientRect']()['width']);let _0x175cc4=0x0;for(const _0x49d9ed of Object['values'](_0x23b2a5))_0x175cc4+=_0x49d9ed['getBoundingClientRect']()['height'];const _0x51699c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1fff0c=Math['min'](_0x175cc4,_0x51699c);return{'width':_0x318de5,'height':_0x1fff0c};}(_0x523182);_0x29410a['show']({'id':'finalContentPreview','title':o(_0x5c2cd3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c2cd3,{'dialogRects':_0x6d55bd}),'onHide':()=>{_0xa1c876['detachFromDom']();},'onShow':()=>{_0x1c3b64['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f77ad=>{const _0x155be4=this['_standarizeRootsData'](_0x4f77ad,_0x1c3b64,_0x523182);_0x29410a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x155be4,_0x1c3b64['config']['get']('trackChanges.preview.renderFunction'));}),_0xa1c876=new _0x3e3977(_0x5c2cd3,[_0x29410a['view']]),_0xa1c876['attachToDom'](),_0xa1c876['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c3b64['once']('destroy',()=>{_0xa1c876['detachFromDom']();});const _0x357167=_0x29410a['view']['headerView']['class'];_0x29410a['view']['headerView']['class']=_0x357167?_0x357167+'\x20ck-reset_all':'ck-reset_all',_0x29410a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x29410a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f180e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x11c05e=_0x1f180e['previewMode'],_0x5e88b1={};if('$labels'===_0x11c05e){for(const _0x355f7a of _0x1f180e['getMergeFieldsIds']())_0x5e88b1[_0x355f7a]=_0x1f180e['getLabel'](_0x355f7a)||_0x355f7a;}else{const _0x35ee9b='$defaultValues'===_0x11c05e?_0x1f180e['getDefaultValues']():_0x1f180e['getDataSetValues'](_0x11c05e,!0x0);for(const _0x87d532 of Object['entries'](_0x35ee9b)){const [_0x4e558f,_0x4c89e1]=_0x87d532;_0x5e88b1[_0x4e558f]=null!==_0x4c89e1?_0x4c89e1:_0x1f180e['getLabel'](_0x4e558f)||_0x4e558f;}}return{'mergeFieldsData':_0x5e88b1};}['_standarizeRootsData'](_0x3ea6dd,_0x344118,_0x35366a){let _0x5d7029;if('string'==typeof _0x3ea6dd){const _0x271745=_0x344118['model']['document']['getRootNames']()[0x0];_0x5d7029={[_0x271745]:_0x3ea6dd};}else _0x5d7029=_0x3ea6dd;const _0x46f43c=this['_fixMediaEmbeds'](_0x5d7029,_0x344118),_0xd9e80=function(_0x1bc181,_0x4ea605){for(const [_0x296348,_0x5101e7]of _0x1bc181)_0x5101e7['classes']=_0x4ea605[_0x296348]['classList']['value']['replace']('ck-focused','');return _0x1bc181;}(this['_sortRoots'](_0x344118)['reduce']((_0x185a7a,_0x5776f8)=>(_0x185a7a['push']([_0x5776f8,{'content':_0x46f43c[_0x5776f8],'classes':''}]),_0x185a7a),[]),_0x35366a);return _0xd9e80;}['_fixMediaEmbeds'](_0x439b1a,_0x357d22){if(!_0x357d22['plugins']['has']('MediaEmbedEditing'))return _0x439b1a;const _0x3f3954=_0x357d22['plugins']['get']('MediaEmbedEditing');for(const [_0x4e5b29,_0x69f78f]of Object['entries'](_0x439b1a)){const _0x48f3e4=document['createElement']('div');_0x48f3e4['innerHTML']=_0x69f78f,(_0x48f3e4['querySelectorAll']('figure.media')['forEach'](_0x5453c2=>{const _0x44f6b7=_0x5453c2['querySelector']('oembed');if(_0x44f6b7){const _0x44b672=_0x44f6b7['getAttribute']('url');if(_0x44b672){const _0x31693f=_0x3f3954['registry']['getMediaViewElement'](new _0x1f96bd(_0x357d22['editing']['view']['document']),_0x44b672,{'elementName':'','renderForEditingView':!0x0}),_0x12363e=document['createElement']('div');_0x12363e['classList']['add']('ck-media__wrapper'),_0x31693f['render'](_0x12363e,_0x357d22['editing']['view']['domConverter']),_0x44f6b7['replaceWith'](_0x12363e);}}}),_0x439b1a[_0x4e5b29]=_0x48f3e4['innerHTML']);}return _0x439b1a;}['_sortRoots'](_0x24752b){if(!function(_0x912e){return void 0x0!==_0x912e['getRootsAttributes'];}(_0x24752b))return _0x24752b['model']['document']['getRootNames']();const _0x49cd4c=[],_0x9d7f47=new Map();for(const _0x238f2a of _0x24752b['model']['document']['getRootNames']()){const _0x2c6c7f=_0x24752b['editing']['view']['getDomRoot'](_0x238f2a)['getClientRects']()['item'](0x0);_0x49cd4c['push'](_0x238f2a),_0x9d7f47['set'](_0x238f2a,_0x2c6c7f);}return _0x49cd4c['sort']((_0x1654e9,_0x2f76fe)=>{const _0x5ced33=_0x9d7f47['get'](_0x1654e9),_0x4032a9=_0x9d7f47['get'](_0x2f76fe);return _0x5ced33['y']-_0x4032a9['y']||_0x5ced33['x']-_0x4032a9['x'];}),_0x49cd4c;}}class TrackChangesPreview extends _0x3b85d6{static get['requires'](){return[re,_0x33a173];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1964e9){super(_0x1964e9),_0x1964e9['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1964e9['config']['define']('trackChanges.preview.renderFunction',(_0x324b2a,_0x53187a)=>{for(const _0x57905a of _0x53187a)_0x324b2a['appendChild'](_0x57905a);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,TrackChanges,B as TrackChangesCommand,re as TrackChangesData,TrackChangesDataGetter,d as TrackChangesEditing,TrackChangesPreview,u as TrackChangesUI};
|