@ckeditor/ckeditor5-track-changes 47.6.2-alpha.0 → 47.6.2-alpha.1
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
|
-
_0x494b93(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x34ce74,_0x5acbdf){super(),this['id']=_0x5acbdf['id'],this['type']=_0x5acbdf['type'],this['subType']=_0x5acbdf['subType']||null,this['author']=_0x5acbdf['author'],this['creator']=_0x5acbdf['creator']||_0x5acbdf['author'],this['isExternal']=Boolean(_0x5acbdf['attributes']&&_0x5acbdf['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5acbdf['originalSuggestionId']||null,this['_model']=_0x34ce74,this['_onAccept']=_0x5acbdf['onAccept'],this['_onDiscard']=_0x5acbdf['onDiscard'],this['_onAttributesChange']=_0x5acbdf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5acbdf['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 _0xdf6dcb=this;for(;_0xdf6dcb['previous'];)_0xdf6dcb=_0xdf6dcb['previous'];return _0xdf6dcb;}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'](_0x239124){this['_markerNames']['add'](_0x239124);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x207dcb=>this['_model']['markers']['get'](_0x207dcb))['filter'](_0x4cb87e=>_0x4cb87e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4db0fb=>{for(const _0x5e334b of this['getMarkers']())_0x4db0fb['removeMarker'](_0x5e334b);}),this['_markerNames']['clear']();}['removeMarker'](_0x89c328){this['_model']['change'](_0x1f181c=>{_0x1f181c['removeMarker'](_0x89c328);}),this['_markerNames']['delete'](_0x89c328);}['addRange'](_0x45bc1c){const _0x461f13='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x461f13),this['_model']['change'](_0x318ce8=>{_0x318ce8['addMarker'](_0x461f13,{'range':_0x45bc1c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xa1310){for(const _0x4b9360 of this['getRanges']())if(_0x4b9360['isIntersecting'](_0xa1310))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x378597=>_0x378597['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x54f590,_0x7b3fbd)=>[..._0x54f590,..._0x7b3fbd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x48adce=this['getRanges']();if(0x1!=_0x48adce['length'])return null;const _0x11482a=_0x48adce[0x0],_0x1cd280=_0x11482a['start']['nodeAfter'],_0x57a3da=_0x11482a['end']['nodeBefore'];return _0x1cd280 instanceof _0x27b968?_0x1cd280!=_0x57a3da?null:_0x1cd280: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 _0x3ab1d9=[];let _0x150e67=this['head'];for(;_0x150e67;)_0x3ab1d9['push'](_0x150e67),_0x150e67=_0x150e67['next'];return _0x3ab1d9;}['setAttribute'](_0x4b0d31,_0x1639ce){const _0x47b67b=_0x5673fa(this['attributes']);_0x4d27fd(_0x47b67b,_0x4b0d31,_0x1639ce),_0x442b56(_0x47b67b,this['attributes'])||(this['attributes']=_0x47b67b,this['_onAttributesChange'](_0x47b67b));}['removeAttribute'](_0x22a9e5){const _0x3546a8=_0x5673fa(this['attributes']);_0x2e2287(_0x3546a8,_0x22a9e5),_0x442b56(_0x3546a8,this['attributes'])||(this['attributes']=_0x3546a8,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 _0x53e807()['substr'](0x1,0x5);}}function o(_0x2703b8,_0x5ab8ec,_0x207a57){const _0x3df73f=_0x2703b8['t'],t=_0x2703b8['t'];switch(_0x5ab8ec){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',_0x207a57);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x207a57);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x207a57);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x207a57);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x207a57);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',_0x207a57);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x207a57);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',_0x207a57);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x207a57);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x207a57);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x207a57);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x207a57);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x207a57);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x207a57);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x207a57);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x207a57);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x207a57);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x207a57);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x207a57);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x207a57);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x207a57);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x207a57);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x207a57);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x207a57);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x207a57);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'},_0x207a57);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x207a57);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x207a57);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x207a57);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x207a57);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x207a57);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x207a57);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x207a57);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'},_0x207a57);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x207a57);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x207a57);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x207a57);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x207a57);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'},_0x207a57);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x207a57);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'},_0x207a57);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'},_0x207a57);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x207a57);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'},_0x207a57);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x207a57);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'},_0x207a57);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x207a57);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x207a57);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x207a57);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x207a57);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x207a57);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'},_0x207a57);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x207a57);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 _0x3df73f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x207a57);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3df73f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x207a57);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x207a57);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'},_0x207a57);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'},_0x207a57);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'},_0x207a57);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5ab8ec;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e6d7c,_0x4fcf07){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e6d7c,this['_locale']=_0x4fcf07;}['getDescriptions'](_0x52b571){const _0x37cd35=[],_0x3d1355=new Set(),_0x47ced0=new Set();for(let _0x11cfd3=0x0;_0x11cfd3<_0x52b571['length'];_0x11cfd3++){const _0x2a8194=_0x52b571[_0x11cfd3];if(!_0x2a8194['isInContent'])continue;const _0xb4ca50=this['_handleCustomCallbackDescription'](_0x2a8194);if(_0xb4ca50){if(null!=_0x2a8194['subType']){if(_0x3d1355['has'](_0x2a8194['subType']))continue;_0x3d1355['add'](_0x2a8194['subType']);}_0x37cd35['push'](_0xb4ca50);}else{if('attribute'==_0x2a8194['type']){const _0xb45247=_0x2a8194['data']['key'];if(_0x47ced0['has'](_0xb45247))continue;_0x47ced0['add'](_0x2a8194['data']['key']),_0xb45247==m?this['_handleRenameSuggestionDescription'](_0x37cd35,_0x2a8194):this['_handleAttributeSuggestionDescription'](_0x37cd35,_0x2a8194);continue;}'insertion'!=_0x2a8194['type']&&'deletion'!=_0x2a8194['type']||this['_handleInsertRemoveSuggestionDescription'](_0x37cd35,_0x2a8194,_0x52b571[_0x11cfd3+0x1]);}}return this['_resolveDescriptionItems'](_0x37cd35);}['registerDescriptionCallback'](_0x4a9ff5){this['_customCallbacks']['push'](_0x4a9ff5);}['registerElementLabel'](_0x47a9a3,_0x2e65ac,_0x5280e3=_0x4f030a['normal']){'function'==typeof _0x47a9a3?_0x14ffe5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47a9a3,'label':_0x2e65ac,'priority':_0x5280e3}):this['_itemLabels']['set'](_0x47a9a3,_0x2e65ac);}['registerAttributeLabel'](_0x34409e,_0x1a52f2){this['_attributeLabels']['set'](_0x34409e,_0x1a52f2);}['getItemLabel'](_0x36c22f,_0x32dd95=0x1){let _0x12c696;for(const _0x271473 of this['_itemLabelsCallbacks'])if(_0x271473['matchingCallback'](_0x36c22f)){_0x12c696=_0x271473['label'];break;}return _0x12c696||(_0x12c696=this['_itemLabels']['get'](_0x36c22f['name'])),_0x12c696?_0x12c696(_0x32dd95):0x1!==_0x32dd95?_0x32dd95+'\x20'+_0x36c22f['name']+'s':''+_0x36c22f['name'];}['_addDescriptionItems'](_0x359ace,_0x350c41){const _0x11bc1b=_0x350c41['getFirstRange']()['getWalker'](),_0x5041d0='insertion'==_0x350c41['type']?'add':'remove';for(const _0x50c948 of _0x11bc1b){const _0x1fa65e=_0x50c948['item'],_0x4f3894=_0x359ace[_0x359ace['length']-0x1];if(_0x1fa65e['is']('$textProxy'))_0x4f3894&&_0x4f3894['type']['indexOf']('Container')>-0x1&&_0x359ace['pop'](),_0x4f3894&&'text'==_0x4f3894['type']?_0x4f3894[_0x5041d0]+=_0x1fa65e['data']:_0x359ace['push']({'type':'text','add':'add'==_0x5041d0?_0x1fa65e['data']:'','remove':'remove'==_0x5041d0?_0x1fa65e['data']:''});else{if(this['_schema']['isObject'](_0x1fa65e)){const _0x680d6f=_0x1fa65e;if(_0x4f3894&&_0x4f3894['type']['indexOf']('Container')>-0x1&&_0x359ace['pop'](),'elementEnd'==_0x50c948['type'])continue;_0x4f3894&&_0x4f3894['type']==_0x5041d0+'Object'&&_0x4f3894['element']['name']==_0x680d6f['name']?_0x4f3894['quantity']++:_0x359ace['push']({'type':_0x5041d0+'Object','element':_0x680d6f,'quantity':0x1}),_0x11bc1b['skip'](_0x2bc67f=>!('elementEnd'==_0x2bc67f['type']&&_0x2bc67f['item']==_0x1fa65e));}else{if(this['_schema']['checkChild'](_0x1fa65e,'$text')||_0x1fa65e['is']('element','softBreak')){const _0x1d1daa=_0x1fa65e;if('add'==_0x5041d0&&'elementStart'==_0x50c948['type']||'remove'==_0x5041d0&&'elementEnd'==_0x50c948['type'])continue;if(_0x4f3894&&-0x1==_0x4f3894['type']['indexOf']('Container')){'text'==_0x4f3894['type']&&(_0x4f3894[_0x5041d0]+='\x0a');continue;}let _0x5a6cdf;if(_0x5a6cdf='add'==_0x5041d0?_0x1d1daa['nextSibling']&&!this['_schema']['isObject'](_0x1d1daa['nextSibling'])?_0x1d1daa['nextSibling']:null:_0x1d1daa['previousSibling']&&!this['_schema']['isObject'](_0x1d1daa['previousSibling'])?_0x1d1daa['previousSibling']:null,_0x1d1daa['isEmpty']||_0x5a6cdf&&_0x5a6cdf['isEmpty']){const _0x2ea618=_0x5a6cdf&&_0x5a6cdf['isEmpty']?_0x5a6cdf:_0x1d1daa;_0x4f3894&&_0x4f3894['type']==_0x5041d0+'EmptyContainer'&&_0x4f3894['element']['name']==_0x2ea618['name']?_0x4f3894['quantity']++:_0x359ace['push']({'type':_0x5041d0+'EmptyContainer','element':_0x2ea618,'quantity':0x1});}else _0x359ace['push']({'type':_0x5041d0+'Container','element':_0x1d1daa});}}}}}['_resolveDescriptionItems'](_0xb34c7c){const _0xadb267=this['_locale'],_0x123c73=[],_0x59d9d3=[],_0x252a02=[];for(const _0x3f514f of _0xb34c7c)switch(_0x3f514f['type']){case'text':if(_0x3f514f['add']=_0x3f514f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3f514f['remove']=_0x3f514f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3f514f['add']&&''!=_0x3f514f['remove']){_0x123c73['push']({'type':'replace','content':o(_0xadb267,'REPLACE_TEXT',['\x22'+_0x3f514f['remove']+'\x22','\x22'+_0x3f514f['add']+'\x22'])});continue;}if(null!=_0x3f514f['add']['match'](/^ +$/)){_0x123c73['push']({'type':'insertion','content':o(_0xadb267,'*Insert:*\x20%0',o(_0xadb267,'ELEMENT_SPACE',_0x3f514f['add']['length']))});continue;}if(null!=_0x3f514f['remove']['match'](/^ +$/)){_0x123c73['push']({'type':'deletion','content':o(_0xadb267,'*Remove:*\x20%0',o(_0xadb267,'ELEMENT_SPACE',_0x3f514f['remove']['length']))});continue;}if(''!=_0x3f514f['add']){_0x123c73['push']({'type':'insertion','content':o(_0xadb267,'*Insert:*\x20%0','\x22'+_0x3f514f['add']+'\x22')});continue;}_0x123c73['push']({'type':'deletion','content':o(_0xadb267,'*Remove:*\x20%0','\x22'+_0x3f514f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x123c73['push']({'type':'insertion','content':o(_0xadb267,'*Insert:*\x20%0',this['getItemLabel'](_0x3f514f['element'],_0x3f514f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x123c73['push']({'type':'deletion','content':o(_0xadb267,'*Remove:*\x20%0',this['getItemLabel'](_0x3f514f['element'],_0x3f514f['quantity']))});continue;case'addContainer':_0x123c73['push']({'type':'insertion','content':o(_0xadb267,'*Split:*\x20%0',this['getItemLabel'](_0x3f514f['element'],_0x3f514f['quantity']))});continue;case'removeContainer':_0x123c73['push']({'type':'deletion','content':o(_0xadb267,'*Merge:*\x20%0',this['getItemLabel'](_0x3f514f['element'],_0x3f514f['quantity']))});continue;case'addFormat':_0x59d9d3['push'](_0x3f514f['key']);continue;case'removeFormat':_0x252a02['push'](_0x3f514f['key']);continue;default:_0x123c73['push'](_0x3f514f);}if(_0x59d9d3['length']){const _0x4e767a=_0x59d9d3['map'](_0x4385fd=>this['_attributeLabels']['has'](_0x4385fd)?this['_attributeLabels']['get'](_0x4385fd):_0x4385fd)['join'](',\x20');_0x123c73['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4e767a)});}if(_0x252a02['length']){const _0x50f94e=_0x252a02['map'](_0x3885ac=>this['_attributeLabels']['has'](_0x3885ac)?this['_attributeLabels']['get'](_0x3885ac):_0x3885ac)['join'](',\x20');_0x123c73['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50f94e)});}return _0x123c73;}['_handleCustomCallbackDescription'](_0x4e0a1b){for(const _0x1b5714 of this['_customCallbacks']){const _0x3f18c4=_0x1b5714(_0x4e0a1b);if(_0x3f18c4&&'type'in _0x3f18c4)return _0x3f18c4;}}['_handleAttributeSuggestionDescription'](_0xfa6018,_0xb123ef){const _0x9447b0=_0xb123ef['data'],_0x4ece08=void 0x0===_0x9447b0['newValue']?'removeFormat':'addFormat';_0xfa6018['push']({'type':_0x4ece08,'key':_0x9447b0['key']});}['_handleRenameSuggestionDescription'](_0x1af86f,_0x56afb3){_0x1af86f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x56afb3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4ac7bc,_0xc79875,_0xb8e0c0){if(this['_addDescriptionItems'](_0x4ac7bc,_0xc79875),_0xb8e0c0&&_0xb8e0c0['getFirstRange']()&&!_0xc79875['getFirstRange']()['end']['isEqual'](_0xb8e0c0['getFirstRange']()['start'])){const _0xf02185=_0x4ac7bc[_0x4ac7bc['length']-0x1],_0x3d4042='insertion'==_0xc79875['type']?'add':'remove';_0xf02185&&'text'==_0xf02185['type']&&(_0xf02185[_0x3d4042]+='\x0a');}}}class U extends _0x109a9f{['afterInit'](){const _0x2778e5=this['editor'],_0x252501=_0x2778e5['plugins']['get']('TrackChangesEditing');_0x2778e5['commands']['get']('showAIAssistant')&&_0x252501['enableCommand']('showAIAssistant');}}class V extends _0x109a9f{['afterInit'](){const _0x3f96b0=this['editor'],_0x5a4143=_0x3f96b0['plugins']['get']('TrackChangesEditing');_0x3f96b0['commands']['get']('toggleAi')&&_0x5a4143['enableCommand']('toggleAi');}}class F extends _0x109a9f{['afterInit'](){const _0x459170=this['editor'],_0x4cb696=_0x459170['plugins']['get']('TrackChangesEditing');_0x459170['commands']['get']('aiQuickAction')&&_0x4cb696['enableCommand']('aiQuickAction');}}class G extends _0x109a9f{['afterInit'](){const _0x1ab3c9=this['editor'],_0x12619d=_0x1ab3c9['locale'];if(!_0x1ab3c9['plugins']['has']('AlignmentEditing'))return;const _0x440afb=_0x1ab3c9['plugins']['get']('TrackChangesEditing');_0x440afb['enableDefaultAttributesIntegration']('alignment'),_0x440afb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x12619d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26db1a=this['editor'],_0x4f280f=_0x26db1a['locale'];_0x26db1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd09aa8=>{if('formatBlock'!=_0xd09aa8['type'])return;const {data:_0x4a3fb9}=_0xd09aa8;if(_0x4a3fb9&&'alignment'==_0x4a3fb9['commandName']){const _0x4c5949=_0x4a3fb9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4f280f,'*Format:*\x20%0',function(_0x2e139c){switch(_0x2e139c){case'left':return o(_0x4f280f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4f280f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4f280f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4f280f,'FORMAT_JUSTIFY_TEXT');}}(_0x4c5949))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x109a9f{['afterInit'](){const _0x12e957=this['editor'],_0x4d94d4=_0x12e957['plugins']['get']('TrackChangesEditing'),_0x31c41f=_0x12e957['locale'];for(const _0x590ad5 of ti){if(!_0x12e957['plugins']['has'](_0x590ad5))continue;const _0x457a46=_0x590ad5['slice'](0x0,-0x7)['toLowerCase'](),_0x1348f3='FORMAT_'+_0x457a46['toUpperCase']();_0x4d94d4['enableDefaultAttributesIntegration'](_0x457a46),_0x4d94d4['descriptionFactory']['registerAttributeLabel'](_0x457a46,o(_0x31c41f,_0x1348f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46b46e=this['editor'],_0xe5210f=_0x46b46e['locale'],_0x5f4bde=_0x46b46e['plugins']['get']('TrackChangesEditing');function _0x3f45ec(_0x1555a2,_0x15ddc0){_0x5f4bde['descriptionFactory']['registerDescriptionCallback'](_0x56aa0d=>{if('formatInline'!=_0x56aa0d['type'])return;const {data:_0x4b8bc7}=_0x56aa0d;return _0x4b8bc7&&_0x4b8bc7['commandName']===_0x1555a2?_0x4b8bc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe5210f,'*Format:*\x20%0',_0x15ddc0)}:{'type':'format','content':o(_0xe5210f,'*Remove\x20format:*\x20%0',_0x15ddc0)}:void 0x0;});}_0x3f45ec('bold',o(_0xe5210f,'FORMAT_BOLD')),_0x3f45ec('italic',o(_0xe5210f,'FORMAT_ITALIC')),_0x3f45ec('underline',o(_0xe5210f,'FORMAT_UNDERLINE')),_0x3f45ec('code',o(_0xe5210f,'FORMAT_CODE')),_0x3f45ec('strikethrough',o(_0xe5210f,'FORMAT_STRIKETHROUGH')),_0x3f45ec('subscript',o(_0xe5210f,'FORMAT_SUBSCRIPT')),_0x3f45ec('superscript',o(_0xe5210f,'FORMAT_SUPERSCRIPT'));}}class J extends _0x109a9f{['afterInit'](){const _0x4978bf=this['editor'],_0x16d79d=_0x4978bf['locale'];if(!_0x4978bf['plugins']['has']('BlockQuoteEditing'))return;const _0x2d111d=_0x4978bf['plugins']['get']('TrackChangesEditing'),_0x5e7fd9=this['editor']['commands']['get']('blockQuote');_0x2d111d['enableCommand']('blockQuote',(_0xe48856,_0x2f7711={})=>{const _0x64d807=this['editor']['model']['document']['selection'],_0x125506=_0x2f7711&&void 0x0!==_0x2f7711['forceValue']?_0x2f7711['forceValue']:!_0x5e7fd9['value'];let _0x54fb62=[];if(_0x125506){const _0x340de7=Array['from'](_0x64d807['getSelectedBlocks']())['filter'](_0x4a024e=>oo(_0x4a024e)||function(_0x4782c0,_0x3655f0){const _0x2691ec=_0x3655f0['checkChild'](_0x4782c0['parent'],'blockQuote'),_0x32e83f=_0x3655f0['checkChild'](['$root','blockQuote'],_0x4782c0);return _0x2691ec&&_0x32e83f;}(_0x4a024e,this['editor']['model']['schema']));_0x54fb62=to(_0x340de7,_0x4978bf['model']);}else{const _0x2bd8c8=Array['from'](_0x64d807['getSelectedBlocks']())['filter'](_0x4be246=>oo(_0x4be246));_0x54fb62=to(_0x2bd8c8,_0x4978bf['model']);}_0x4978bf['model']['change'](()=>{for(const _0x4b42b1 of _0x54fb62)_0x2d111d['markBlockFormat'](_0x4b42b1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x125506}]});});}),_0x2d111d['descriptionFactory']['registerDescriptionCallback'](_0x4cc3f7=>{const {data:_0x3c7689}=_0x4cc3f7;if(_0x3c7689&&'blockQuote'==_0x3c7689['commandName']){const _0x46bc99=o(_0x16d79d,'ELEMENT_BLOCK_QUOTE');return _0x3c7689['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16d79d,'*Set\x20format:*\x20%0',_0x46bc99)}:{'type':'format','content':o(_0x16d79d,'*Remove\x20format:*\x20%0',_0x46bc99)};}});}}function oo(_0x448eaa){return'blockQuote'==_0x448eaa['parent']['name'];}class q extends _0x109a9f{['afterInit'](){const _0x131e31=this['editor'],_0x959e42=_0x131e31['locale'],_0xd598bb=_0x131e31['plugins']['get']('TrackChangesEditing');_0x131e31['plugins']['has']('BookmarkEditing')&&(_0xd598bb['enableCommand']('insertBookmark'),_0xd598bb['enableDefaultAttributesIntegration']('updateBookmark'),_0xd598bb['descriptionFactory']['registerDescriptionCallback'](_0x4e29b0=>{if('insertion'!=_0x4e29b0['type']&&'deletion'!=_0x4e29b0['type']&&'attribute'!=_0x4e29b0['type'])return;const _0x3c47f4=_0x4e29b0['getContainedElement']();if(null==_0x3c47f4)return;if(!_0x3c47f4['is']('element','bookmark'))return;const _0x49b2ac=_0x3c47f4['getAttribute']('bookmarkId');if('insertion'==_0x4e29b0['type'])return{'type':'insertion','content':o(_0x959e42,'*Insert:*\x20%0','\x22'+_0x49b2ac+'\x22\x20'+o(_0x959e42,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4e29b0['type'])return{'type':'deletion','content':o(_0x959e42,'*Remove:*\x20%0','\x22'+_0x49b2ac+'\x22\x20'+o(_0x959e42,'ELEMENT_BOOKMARK'))};const {data:_0x242f61}=_0x4e29b0;if(!_0x242f61||'bookmarkId'!=_0x242f61['key'])return;return{'type':'format','content':o(_0x959e42,'*Set\x20bookmark:*\x20%0','\x22'+_0x242f61['newValue']+'\x22')};}));}}class z extends _0x109a9f{['afterInit'](){const _0x19cb09=this['editor'];_0x19cb09['plugins']['has']('CaseChange')&&(_0x19cb09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19cb09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19cb09['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x109a9f{['afterInit'](){const _0x439161=this['editor'];_0x439161['commands']['get']('ckbox')&&_0x439161['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x109a9f{['afterInit'](){const _0x301af8=this['editor'];if(!_0x301af8['plugins']['has']('CodeBlock'))return;const _0x494802=_0x301af8['plugins']['get']('TrackChangesEditing'),_0x5745cd=_0x301af8['locale'],_0x525f5c=_0x301af8['config']['get']('codeBlock')['languages'],_0x2c2527=_0x301af8['commands']['get']('codeBlock');_0x494802['enableCommand']('indentCodeBlock'),_0x494802['enableCommand']('outdentCodeBlock'),_0x494802['enableCommand']('codeBlock',(_0xec488f,_0x3c881a={})=>{const _0x5d53fb=_0x301af8['model'],_0xfca077=_0x301af8['model']['document']['selection'],_0x53140a=_0x3c881a&&void 0x0!==_0x3c881a['forceValue']?_0x3c881a['forceValue']:!_0x2c2527['value'];let _0x1c2a18;_0x3c881a['language']||(_0x3c881a['language']=_0x525f5c[0x0]['language']),_0x1c2a18=_0x53140a?Array['from'](_0xfca077['getSelectedBlocks']())['filter'](_0x275fd7=>co(_0x275fd7)||function(_0x5c03e1,_0x196b69){if(_0x5c03e1['is']('rootElement')||_0x196b69['isLimit'](_0x5c03e1))return!0x1;return _0x196b69['checkChild'](_0x5c03e1['parent'],'codeBlock');}(_0x275fd7,_0x5d53fb['schema'])):Array['from'](_0xfca077['getSelectedBlocks']())['filter'](_0x161c4a=>co(_0x161c4a));const _0x3d14ee=to(_0x1c2a18,_0x5d53fb);_0x5d53fb['change'](()=>{for(const _0x10ebc4 of _0x3d14ee)_0x494802['markBlockFormat'](_0x10ebc4,{'commandName':'codeBlock','commandParams':[{..._0x3c881a,'forceValue':_0x53140a}],'formatGroupId':'blockName'});});}),(_0x494802['descriptionFactory']['registerElementLabel']('codeBlock',_0x29e987=>o(_0x5745cd,'ELEMENT_CODE_BLOCK',_0x29e987)),_0x494802['descriptionFactory']['registerDescriptionCallback'](_0x2d4317=>{if('formatBlock'!=_0x2d4317['type'])return;const _0x3bb822=_0x5745cd['t'],{data:_0x1ecd0a}=_0x2d4317;if(!_0x1ecd0a||'codeBlock'!=_0x1ecd0a['commandName'])return;const _0x27521b=_0x1ecd0a['commandParams'][0x0]['language'],_0x490e52=_0x3bb822(_0x525f5c['find'](_0x39af65=>_0x39af65['language']===_0x27521b)['label'])['toLowerCase']();return _0x1ecd0a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5745cd,'*Set\x20format:*\x20%0',o(_0x5745cd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x490e52+')')}:{'type':'format','content':o(_0x5745cd,'*Remove\x20format:*\x20%0',o(_0x5745cd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x16e34a){return'codeBlock'==_0x16e34a['name'];}class H extends _0x109a9f{['afterInit'](){const _0x210813=this['editor'];if(!_0x210813['plugins']['has']('CommentsEditing'))return;_0x210813['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x109a9f{static get['requires'](){return[_0x51757a];}['init'](){const _0x5f37b7=this['editor'],_0x553fd1=_0x5f37b7['plugins']['get']('TrackChangesEditing');_0x553fd1['enableCommand']('delete');const _0x410e17=_0x5f37b7['commands']['get']('deleteForward');_0x553fd1['enableCommand']('deleteForward',(_0x48c099,_0x558cfe={})=>{const _0x7f993=_0x5f37b7['model']['createSelection'](_0x5f37b7['model']['document']['selection']);_0x7f993['isCollapsed']&&_0x5f37b7['model']['modifySelection'](_0x7f993,{'direction':'forward','unit':_0x558cfe['unit']});const _0x4fed3c=_0x7f993['getFirstRange'](),_0x23992c=_0x2d2f8b['fromRange'](_0x4fed3c);let _0xb8487;_0x48c099(_0x558cfe),_0xb8487='$graveyard'==_0x23992c['root']['rootName']?_0x5f37b7['model']['createRange'](_0x4fed3c['start']):_0x5f37b7['model']['createRange'](_0x23992c['start'],_0x23992c['end']),_0x23992c['detach'](),_0x5f37b7['model']['enqueueChange'](_0x410e17['buffer']['batch'],_0x404ce3=>{_0x410e17['buffer']['lock'](),_0x404ce3['setSelection'](_0x404ce3['createRange'](_0xb8487['end'])),_0x410e17['buffer']['unlock']();});});}}class X extends _0x109a9f{['afterInit'](){const _0x4c18ae=this['editor'];if(!_0x4c18ae['plugins']['has']('ListEditing'))return;const _0x5e4c59=_0x4c18ae['locale'],_0x17aae9=_0x4c18ae['plugins']['get']('TrackChangesEditing'),_0x211b0d=_0x4c18ae['plugins']['has']('TodoListEditing'),_0x2b621b=!!_0x4c18ae['config']['get']('list.multiBlock');function _0x1bdb80(_0x3791c8){return{'type':'format','content':''+o(_0x5e4c59,'*Set\x20format:*\x20%0',_0x3791c8)};}function _0x2d734b(_0x34b241){return{'type':'format','content':''+o(_0x5e4c59,'*Remove\x20format:*\x20%0',_0x34b241)};}_0x17aae9['enableDefaultAttributesIntegration']('numberedList'),_0x17aae9['enableDefaultAttributesIntegration']('bulletedList'),_0x17aae9['enableDefaultAttributesIntegration']('customNumberedList'),_0x17aae9['enableDefaultAttributesIntegration']('customBulletedList'),_0x17aae9['enableDefaultAttributesIntegration']('indentList'),_0x17aae9['enableDefaultAttributesIntegration']('outdentList'),_0x17aae9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17aae9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2b621b&&(_0x17aae9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17aae9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x211b0d&&(_0x17aae9['enableDefaultAttributesIntegration']('todoList'),_0x17aae9['enableDefaultAttributesIntegration']('checkTodoList'),_0x17aae9['descriptionFactory']['registerDescriptionCallback'](_0x6ebf06=>{const {data:_0x115650}=_0x6ebf06;if(_0x115650&&'todoListChecked'==_0x115650['key'])return{'type':'format','content':_0x115650['newValue']?o(_0x5e4c59,'*Check\x20item*'):o(_0x5e4c59,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1bc0bb=>{if(_0x1bc0bb['batch']['isUndo'])return!0x1;let _0x42f7a7=!0x1;const _0x27b4c5=_0x17aae9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x436005=>'todoListChecked'===_0x17aae9['_getAttributeKey'](_0x436005));for(const _0x6fe6ac of _0x27b4c5){'todo'!=_0x6fe6ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17aae9['_findSuggestions'](_0x6fe6ac['getFirstRange'](),'attribute')['find'](_0x3bbbd4=>'listType'===_0x17aae9['_getAttributeKey'](_0x3bbbd4['suggestion']))||(_0x1bc0bb['removeMarker'](_0x6fe6ac['getFirstMarker']()),_0x42f7a7=!0x0));}return _0x42f7a7;})),_0x17aae9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5e4c59,'FORMAT_INDENT'));const _0x41527b={'type':'format','content':''};_0x17aae9['descriptionFactory']['registerDescriptionCallback'](_0x24b145=>{const {data:_0x355ace}=_0x24b145;if(!_0x355ace||'listType'!=_0x355ace['key'])return;let _0x165e4a=_0x24b145['head'];for(;_0x165e4a;){if(_0x165e4a['data']&&(('listStyle'==_0x165e4a['data']['key']||'listMarkerStyle'==_0x165e4a['data']['key'])&&(_0x165e4a['data']['newValue']&&'default'!=_0x165e4a['data']['newValue']||'default'!=_0x165e4a['data']['oldValue']&&!_0x355ace['newValue'])||!_0x2b621b&&_0x165e4a['data']['key']==m))return _0x41527b;_0x165e4a=_0x165e4a['next'];}if(null==_0x355ace['newValue'])switch(_0x355ace['oldValue']){case'bulleted':return _0x2d734b(o(_0x5e4c59,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d734b(o(_0x5e4c59,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d734b(o(_0x5e4c59,'ELEMENT_TODO_LIST'));}switch(_0x355ace['newValue']){case'bulleted':return _0x1bdb80(o(_0x5e4c59,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bdb80(o(_0x5e4c59,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bdb80(o(_0x5e4c59,'ELEMENT_TODO_LIST'));}}),_0x17aae9['descriptionFactory']['registerDescriptionCallback'](_0x25f7ab=>{const {data:_0x41633d}=_0x25f7ab;if(_0x41633d&&'listIndent'==_0x41633d['key'])return null==_0x41633d['newValue']||null==_0x41633d['oldValue']&&0x0==_0x41633d['newValue']?_0x41527b:void 0x0;}),_0x17aae9['descriptionFactory']['registerDescriptionCallback'](_0x436e91=>{if('attribute'!=_0x436e91['type'])return;const {data:_0x1c839c}=_0x436e91;if(!_0x1c839c||'listItemId'!=_0x1c839c['key'])return;const _0x86554=Te(_0x436e91);return'newValue'==_0x86554?{'type':'format','content':o(_0x5e4c59,'*Merge:*\x20list\x20item')}:'oldValue'==_0x86554?{'type':'format','content':o(_0x5e4c59,'*Split:*\x20list\x20item')}:_0x41527b;}),_0x4c18ae['model']['document']['registerPostFixer'](_0x54c62b=>this['listItemIdFixer'](_0x54c62b)),_0x4c18ae['model']['document']['registerPostFixer'](_0x3cf29d=>this['noTrackChangesFixer'](_0x3cf29d)),_0x4c18ae['model']['document']['on']('change:data',(_0x780f3d,_0x2ed187)=>{if(_0x2ed187['isUndo']||!_0x2ed187['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x283d35){if(_0x283d35['batch']['isUndo']||!_0x283d35['batch']['isLocal'])return!0x1;let _0x35f83b=!0x1;const _0x10cb43=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58c564=>_0x58c564['data']&&'listItemId'==_0x58c564['data']['key'])['filter'](_0x5c3122=>_0x5c3122['data']['newValue']&&_0x5c3122['data']['oldValue']);for(const _0x4097a0 of _0x10cb43)Te(_0x4097a0)||(_0x283d35['removeMarker'](_0x4097a0['getFirstMarker']()),_0x35f83b=!0x0);return _0x35f83b;}['noTrackChangesFixer'](_0x125856){if(_0x125856['batch']['isUndo']||!_0x125856['batch']['isLocal'])return!0x1;const _0x5cb6f3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5cb6f3['trackChangesCommand']['value'])return!0x1;let _0x120d14=!0x1;const _0x55b48f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ce8f4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x19c6c9=>'attribute'==_0x19c6c9['type'])['filter'](_0x1693ff=>_0x55b48f['includes'](_0x1693ff['attributeKey']));if(0x0==_0x3ce8f4['length'])return _0x120d14;for(const _0x26e0eb of _0x3ce8f4){const _0x5887b1=_0x5cb6f3['_findSuggestions'](_0x26e0eb['range'],'attribute')['filter'](_0x247a0e=>!_0x247a0e['meta']['isNextTo'])['map'](_0x7706e8=>_0x7706e8['suggestion'])['filter'](_0x2294b6=>{const _0x5331bd=_0x5cb6f3['_getAttributeKey'](_0x2294b6);return _0x55b48f['includes'](_0x5331bd);});if(_0x5887b1['length']){for(const _0x13a522 of _0x5887b1)_0x125856['removeMarker'](_0x13a522['getFirstMarker']());_0x120d14=!0x0;}}return _0x120d14;}['assureChains'](){const _0x505468=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cc560=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4494c2;const _0x578b72=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x168268=>{if(_0x168268['data']['oldRange']||!_0x168268['data']['newRange'])return null;if(!_0x168268['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x111830}=_0x505468['_splitMarkerName'](_0x168268['name']);if(!_0x505468['hasSuggestion'](_0x111830))return null;const _0x5208a6=_0x505468['getSuggestion'](_0x111830);return _0x4cc560['includes'](_0x5208a6['data']['key']);})['map'](_0x95945e=>{const {id:_0x36ed96}=_0x505468['_splitMarkerName'](_0x95945e['name']),_0x5d6ac5=_0x505468['getSuggestion'](_0x36ed96);return _0x4494c2=_0x5d6ac5['attributes']['groupId'],_0x5d6ac5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x578b72['size'])return;const _0x3ba00a=_0x505468['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22c5ef=>'attribute'==_0x22c5ef['type']&&_0x22c5ef['data']&&_0x4cc560['includes'](_0x22c5ef['data']['key'])&&_0x22c5ef['attributes']['groupId']!=_0x4494c2)['map'](_0x4ae307=>({'listItem':_0x4ae307['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4ae307['attributes']['groupId']})),_0x5682c1=new Set();for(const {groupId:_0x3efe00,listItem:_0x2b7660}of _0x3ba00a)_0x578b72['has'](_0x2b7660)&&_0x5682c1['add'](_0x3efe00);for(const _0x253242 of _0x505468['getSuggestions']())_0x5682c1['has'](_0x253242['attributes']['groupId'])&&_0x253242['setAttribute']('groupId',_0x4494c2);}['_supportLegacySuggestions'](){const _0x4119eb=this['editor'],_0x34d9ad=_0x4119eb['locale'],_0x4d71c2=_0x4119eb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4d71c2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2587ba,_0x376e5a){const _0x363077=[];for(let _0x288c34 of _0x2587ba)_0x288c34['start']['nodeAfter']===_0x288c34['end']['parent']&&(_0x288c34=_0x4119eb['model']['createRange'](_0x4119eb['model']['createPositionAt'](_0x288c34['start']['nodeAfter'],0x0))),_0x363077['push'](_0x288c34);_0x4119eb['model']['change'](_0x573fbe=>{const _0x4610aa=_0x4119eb['model']['document']['selection'],_0x57967c=Array['from'](_0x4610aa['getRanges']())['map'](_0x262c83=>_0x2d2f8b['fromRange'](_0x262c83));_0x573fbe['setSelection'](_0x363077),_0x4119eb['commands']['get'](_0x376e5a['commandName'])['refresh'](),_0x376e5a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4119eb['execute'](_0x376e5a['commandName'],..._0x376e5a['commandParams']),_0x573fbe['setSelection'](_0x57967c);for(const _0x46849e of _0x57967c)_0x46849e['detach']();});}),_0x4d71c2['descriptionFactory']['registerElementLabel'](function(_0x889f17){const _0x269022=!_0x4119eb['model']['schema']['isObject'](_0x889f17),_0x31d698=_0x889f17['previousSibling'],_0x20d4e5=_0x889f17['nextSibling'],_0x3b032a=_0x889f17['getAttribute']('listItemId'),_0x1a5e35=!_0x31d698||_0x31d698['getAttribute']('listItemId')!==_0x3b032a,_0x4a139d=!_0x20d4e5||_0x20d4e5['getAttribute']('listItemId')!==_0x3b032a;return _0x269022&&Boolean(_0x3b032a)&&_0x1a5e35&&_0x4a139d;},_0x44ade8=>o(_0x34d9ad,'ELEMENT_LIST_ITEM',_0x44ade8));}['_registerLegacyDescription'](){const _0x20a92a=this['editor'],_0x214190=_0x20a92a['locale'];function _0x33067c(_0x55712f){const _0x283adb=_0x20a92a['commands']['get']('bulletedList')['value'],_0x107d58=_0x20a92a['commands']['get']('numberedList')['value'];return'numberedList'===_0x55712f?_0x283adb:_0x107d58;}_0x20a92a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x296598){if('formatBlock'!=_0x296598['type'])return;const {data:_0xfeeaf3}=_0x296598;if(!_0xfeeaf3)return;let _0x47e67a,_0x106a7f,_0x45447c,_0x4288eb;switch(_0xfeeaf3['commandName']){case'bulletedList':_0x45447c=_0xfeeaf3['commandParams'][0x0]['forceValue'],_0x4288eb=_0x33067c(_0xfeeaf3['commandName']),_0x47e67a=_0x45447c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4288eb&&_0x20a92a['config']['get']('list.multiBlock')||(_0x47e67a='*Change\x20to:*\x20%0'),_0x106a7f={'type':'format','content':o(_0x214190,_0x47e67a,o(_0x214190,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x45447c=_0xfeeaf3['commandParams'][0x0]['forceValue'],_0x4288eb=_0x33067c(_0xfeeaf3['commandName']),_0x47e67a=_0x45447c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4288eb&&_0x20a92a['config']['get']('list.multiBlock')||(_0x47e67a='*Change\x20to:*\x20%0'),_0x106a7f={'type':'format','content':o(_0x214190,_0x47e67a,o(_0x214190,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x47e67a='*Indent:*\x20%0',_0x106a7f={'type':'format','content':o(_0x214190,_0x47e67a,o(_0x214190,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x47e67a=function(_0x751146){const _0x1f9961=_0x751146['getFirstRange']();let _0x14762d=_0x1f9961['start']['nodeAfter'];for(;_0x14762d&&_0x1f9961['containsItem'](_0x14762d);){if(_0x14762d['getAttribute']('listIndent')>0x0)return!0x1;_0x14762d=_0x14762d['nextSibling'];}return!0x0;}(_0x296598)?o(_0x214190,'*Format:*\x20remove\x20from\x20%0',o(_0x214190,function(_0x294bd2){return'ELEMENT_'+_0x294bd2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x296598))):o(_0x214190,'*Outdent:*\x20%0',o(_0x214190,'ELEMENT_LIST_ITEM')),_0x106a7f={'type':'format','content':_0x47e67a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfeeaf3['multipleBlocks']&&(_0x47e67a='*Merge:*\x20%0',_0x106a7f={'type':'deletion','content':o(_0x214190,_0x47e67a,o(_0x214190,'ELEMENT_LIST_ITEM'))});}return _0x106a7f;});}}function Te(_0x1a9473){let _0x6e0e86=_0x1a9473['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x6e0e86;){const _0x22be99=_0x6e0e86['getAttribute']('listItemId');if(!_0x22be99)return!0x1;if(_0x22be99==_0x1a9473['data']['newValue'])return'newValue';if(_0x22be99==_0x1a9473['data']['oldValue'])return'oldValue';_0x6e0e86=_0x6e0e86['previousSibling'];}return!0x1;}class Y extends _0x109a9f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4af33c=this['editor']['config']['get']('list.properties'),_0x2dc6dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4af33c['styles']&&_0x2dc6dd['enableDefaultAttributesIntegration']('listStyle'),_0x4af33c['reversed']&&_0x2dc6dd['enableDefaultAttributesIntegration']('listReversed'),_0x4af33c['startIndex']&&_0x2dc6dd['enableDefaultAttributesIntegration']('listStart');const _0x17d840={'type':'format','content':''};_0x2dc6dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x117d4a=this['editor']['locale'];_0x2dc6dd['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x117d4a,'FORMAT_LIST_REVERSED')),_0x2dc6dd['descriptionFactory']['registerDescriptionCallback'](_0x3b080a=>{const {data:_0x3578bd}=_0x3b080a;if(_0x3578bd&&'listReversed'==_0x3578bd['key'])return null==_0x3578bd['newValue']||0x0==_0x3578bd['newValue']&&null==_0x3578bd['oldValue']?_0x17d840:void 0x0;}),_0x2dc6dd['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x117d4a,'FORMAT_LIST_START')),_0x2dc6dd['descriptionFactory']['registerDescriptionCallback'](_0x2ca407=>{const {data:_0x45ab95}=_0x2ca407;if(_0x45ab95&&'listStart'==_0x45ab95['key'])return null==_0x45ab95['newValue']||0x1==_0x45ab95['newValue']&&null==_0x45ab95['oldValue']?_0x17d840:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a03de=>{if(_0x3a03de['batch']['isUndo'])return!0x1;let _0x1de186=!0x1;const _0x3e9975=_0x2dc6dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf2b69=>{const _0x4acf6f=_0x2dc6dd['_getAttributeKey'](_0xf2b69);return'listStart'==_0x4acf6f||'listReversed'==_0x4acf6f;});for(const _0x298f41 of _0x3e9975){const _0x229964=_0x298f41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x229964||'customNumbered'==_0x229964)continue;_0x2dc6dd['_findSuggestions'](_0x298f41['getFirstRange'](),'attribute')['find'](_0x3f7f07=>'listType'==_0x2dc6dd['_getAttributeKey'](_0x3f7f07['suggestion']))||(_0x3a03de['removeMarker'](_0x298f41['getFirstMarker']()),_0x1de186=!0x0);}return _0x1de186;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58ceb4){const _0x5b1465=this['editor']['locale'],{data:_0x4b7228}=_0x58ceb4,_0x49d32a={'type':'format','content':''};if(!_0x4b7228||'listStyle'!=_0x4b7228['key'])return;if(!_0x4b7228['oldValue'])return'default'==_0x4b7228['newValue']?_0x49d32a:{'type':'format','content':''+o(_0x5b1465,'*Set\x20format:*\x20%0',o(_0x5b1465,this['_getTranslationKeyForListStyle'](_0x4b7228['newValue'])))};if(!_0x4b7228['newValue']){if('default'==_0x4b7228['oldValue'])return _0x49d32a;let _0x4ade54=_0x58ceb4['head'];for(;_0x4ade54;){if(_0x4ade54['data']&&'listType'==_0x4ade54['data']['key']&&_0x4ade54['data']['newValue'])return _0x49d32a;_0x4ade54=_0x4ade54['next'];}return{'type':'format','content':''+o(_0x5b1465,'*Remove\x20format:*\x20%0',o(_0x5b1465,this['_getTranslationKeyForListStyle'](_0x4b7228['oldValue'])))};}if('default'!=_0x4b7228['newValue'])return{'type':'format','content':''+o(_0x5b1465,'*Set\x20format:*\x20%0',o(_0x5b1465,this['_getTranslationKeyForListStyle'](_0x4b7228['newValue'])))};let _0x2b8290=_0x58ceb4['head'];for(;_0x2b8290;){if(_0x2b8290['data']&&'listType'==_0x2b8290['data']['key']&&_0x2b8290['data']['newValue']&&_0x2b8290['data']['oldValue'])return _0x49d32a;_0x2b8290=_0x2b8290['next'];}return{'type':'format','content':o(_0x5b1465,'*Set\x20format:*\x20%0',o(_0x5b1465,'ELEMENT_'+_0x58ceb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24e5b1=this['editor'],_0x340d41=_0x24e5b1['locale'];_0x24e5b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e8b7f=>{if('formatBlock'!=_0x1e8b7f['type'])return;const {data:_0x5820ea}=_0x1e8b7f;if(!_0x5820ea)return;let _0xcbb6d6,_0x1b443a;switch(_0x5820ea['commandName']){case'listStyle':_0xcbb6d6='*Change\x20to:*\x20%0',_0x1b443a={'type':'format','content':o(_0x340d41,_0xcbb6d6,o(_0x340d41,this['_getTranslationKeyForListStyle'](_0x5820ea['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcbb6d6=_0x5820ea['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b443a={'type':'format','content':o(_0x340d41,_0xcbb6d6)};break;case'listStart':_0xcbb6d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b443a={'type':'format','content':o(_0x340d41,_0xcbb6d6,_0x5820ea['commandParams'][0x0]['startIndex'])};}return _0x1b443a;});}['_getTranslationKeyForListStyle'](_0x2e9abb){return'ELEMENT_'+function(_0x3a9b3d){if(ye['includes'](_0x3a9b3d))return'bulleted';if(Se['includes'](_0x3a9b3d))return'numbered';return null;}(_0x2e9abb)['toUpperCase']()+'_LIST_'+_0x2e9abb['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 _0x109a9f{['afterInit'](){const _0x393623=this['editor'];_0x393623['commands']['get']('emoji')&&_0x393623['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x109a9f{static get['requires'](){return[_0x4a0de1];}['init'](){const _0x3cd3df=this['editor'],_0x48f664=_0x3cd3df['plugins']['get']('TrackChangesEditing'),_0x23ade5=_0x3cd3df['commands']['get']('enter');_0x48f664['enableCommand']('enter',()=>{_0x3cd3df['model']['change'](_0x33ac07=>{const _0x5d24c7=_0x3cd3df['model']['document']['selection'],_0x49a31b=_0x5d24c7['getFirstPosition'](),_0x5df6e0=_0x2d2f8b['fromRange'](_0x5d24c7['getFirstRange']());if(_0x23ade5['enterBlock'](_0x33ac07)){const _0x5a5aba=_0x3cd3df['model']['createPositionAt'](_0x49a31b['parent']['nextSibling'],0x0),_0x2716a1=_0x33ac07['createRange'](_0x49a31b,_0x5a5aba);_0x48f664['markInsertion'](_0x2716a1);}else _0x33ac07['setSelection'](_0x33ac07['createRange'](_0x5df6e0['end']));_0x5df6e0['detach'](),_0x23ade5['fire']('afterExecute',{'writer':_0x33ac07});});});}}class nt extends _0x109a9f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5bb35e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bb35e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5bb35e['enableCommand']('findNext'),_0x5bb35e['enableCommand']('findPrevious'),_0x5bb35e['enableCommand']('replace'),_0x5bb35e['enableCommand']('replaceAll');}['handleFindCommand'](_0x396b1b,_0x3e78f4,_0x5a6cfa={}){const _0x50b8d3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x396b1b(_0x1ecfab=>{let _0x573f0c=('string'==typeof _0x3e78f4?_0x50b8d3['findByTextCallback'](_0x3e78f4,_0x5a6cfa):_0x3e78f4)(_0x1ecfab);Array['isArray'](_0x573f0c)&&(_0x573f0c={'results':_0x573f0c,'searchText':'string'==typeof _0x3e78f4?_0x3e78f4:''});const _0x595cfb=_0x573f0c['results']['filter'](_0x11af10=>!0x1===this['_isInDeletionRange'](_0x11af10,_0x1ecfab['item']));return{..._0x573f0c,'results':_0x595cfb};},_0x5a6cfa);}['_isInDeletionRange'](_0x2edd3c,_0x4188e3){const _0x215eac=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4188e3,_0x2edd3c['start']),this['editor']['model']['createPositionAt'](_0x4188e3,_0x2edd3c['end']));for(const _0x4daae7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x215eac['getIntersection'](_0x4daae7['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 _0x109a9f{['afterInit'](){const _0x2a6cad=this['editor']['locale'],_0x260bd7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c965d,commandName:_0x39995c}of eo)this['editor']['plugins']['has'](_0x3c965d)&&_0x260bd7['enableDefaultAttributesIntegration'](_0x39995c);_0x260bd7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a6cad,'FORMAT_FONT_SIZE')),_0x260bd7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a6cad,'FORMAT_FONT_FAMILY')),_0x260bd7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a6cad,'FORMAT_FONT_COLOR')),_0x260bd7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a6cad,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b9016=this['editor'],_0x3b080c=_0x1b9016['locale'];_0x1b9016['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b01a7=>{const _0x3abe9d=_0x3b080c['t'];if('formatInline'!=_0x5b01a7['type'])return;const {data:_0x396a03}=_0x5b01a7;if(null!=_0x396a03){if('fontSize'==_0x396a03['commandName']){const _0x52e593=_0x396a03['commandParams'][0x0]['value'];if(_0x52e593){const _0x1aacd7=_0x3abe9d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x8b130e=>_0x8b130e['model']==_0x52e593)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3b080c,'*Set\x20font\x20size:*\x20%0',_0x1aacd7)};}return{'type':'format','content':o(_0x3b080c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x396a03['commandName']){const _0x341389=_0x396a03['commandParams'][0x0]['value'];return _0x341389?{'type':'format','content':o(_0x3b080c,'*Set\x20font\x20family:*\x20%0',_0x341389)}:{'type':'format','content':o(_0x3b080c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x396a03['commandName']){const _0x38d04f=_0x396a03['commandParams'][0x0]['value'];if(_0x38d04f){const _0x3ab890=_0x503e92(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb6aef4=>_0xb6aef4['model']==_0x38d04f);let _0x1f7e78=_0x38d04f,_0x4dc189='';return _0x3ab890&&(_0x1f7e78=_0x3ab890['label'],_0x4dc189=_0x3abe9d(_0x1f7e78)['toLowerCase']()),{'type':'format','content':o(_0x3b080c,'*Set\x20font\x20color:*\x20%0',_0x4dc189)['trim'](),'color':{'value':_0x38d04f,'title':_0x4dc189||_0x1f7e78}};}return{'type':'format','content':o(_0x3b080c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x396a03['commandName']){const _0x19d26c=_0x396a03['commandParams'][0x0]['value'];if(_0x19d26c){const _0x185319=_0x503e92(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e2ed9=>_0x5e2ed9['model']==_0x19d26c);let _0x371e79=_0x19d26c,_0x3484f5='';return _0x185319&&(_0x371e79=_0x185319['label'],_0x3484f5=_0x3abe9d(_0x371e79)['toLowerCase']()),{'type':'format','content':o(_0x3b080c,'*Set\x20font\x20background\x20color:*\x20%0',_0x3484f5)['trim'](),'color':{'value':_0x19d26c,'title':_0x3484f5||_0x371e79}};}return{'type':'format','content':o(_0x3b080c,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x109a9f{['afterInit'](){const {plugins:_0x330546}=this['editor'];_0x330546['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x330546['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1babfb,plugins:_0x3d6b46,commands:_0x556a34}=this['editor'],_0x58fff0=_0x3d6b46['get']('TrackChangesEditing');_0x556a34['get']('footnotesStyle')&&_0x58fff0['enableDefaultAttributesIntegration']('footnotesStyle'),_0x556a34['get']('footnotesStart')&&_0x58fff0['enableDefaultAttributesIntegration']('footnotesStart'),_0x58fff0['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x1babfb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x58fff0['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x1babfb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x17eaef=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xff9969,commands:_0x25945b}=this['editor'];_0x25945b['get']('insertFootnote')&&_0x17eaef['enableCommand']('insertFootnote'),_0x17eaef['descriptionFactory']['registerElementLabel']('footnoteRef',_0x43ba0f=>o(_0xff9969,'ELEMENT_FOOTNOTE_REF',_0x43ba0f)),_0x17eaef['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x376a82=>o(_0xff9969,'ELEMENT_FOOTNOTE_DEFINITION',_0x376a82)),_0x17eaef['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x44b337=>o(_0xff9969,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x44b337));}}class st extends _0x109a9f{['afterInit'](){const _0x4677b4=this['editor'],_0x32777f=_0x4677b4['plugins']['get']('TrackChangesEditing'),_0x5e411c=_0x4677b4['commands']['get']('copyFormat'),_0x450cd3=_0x4677b4['commands']['get']('pasteFormat');_0x5e411c&&_0x450cd3&&(_0x32777f['enableDefaultAttributesIntegration']('pasteFormat'),_0x32777f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3ad488=this['editor'],_0xf3ca24=_0x3ad488['locale'];_0x3ad488['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5d032=>{if('formatBlock'!=_0xf5d032['type']&&'formatInline'!=_0xf5d032['type'])return;const {data:_0x7fe5a2}=_0xf5d032;if(_0x7fe5a2&&'pasteFormat'===_0x7fe5a2['commandName']){const _0x5ea934=[],_0x5e9d02=_0x7fe5a2['commandParams'][0x0];for(const [_0x597479,_0x22f0e0]of Object['entries'](_0x5e9d02))_0x5ea934['push'](ro(_0x3ad488,_0x597479,_0x22f0e0));return _0x5ea934['length']?{'type':'format','content':o(_0xf3ca24,'*Set\x20format\x20to:*\x20%0',_0x5ea934['join'](',\x20'))}:{'type':'format','content':o(_0xf3ca24,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5cdc7d,_0x5e99c9,_0x495dae){const _0x2038c4=_0x5cdc7d['locale']['t'],_0x57b97d=_0x5e99c9['split'](/(?=[A-Z])/)['join']('\x20'),_0x481b52=_0x2038c4(_0x57b97d['charAt'](0x0)['toUpperCase']()+_0x57b97d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x495dae)return _0x481b52;if('fontColor'===_0x5e99c9||'fontBackgroundColor'===_0x5e99c9){const _0x20bb32=_0x503e92(_0x5cdc7d['config']['get']('fontColor.colors'))['find'](_0x26281c=>_0x26281c['model']==_0x495dae);return _0x481b52+'\x20('+(_0x20bb32?_0x2038c4(_0x20bb32['label'])['toLowerCase']():_0x495dae)+')';}if('fontSize'===_0x5e99c9&&isNaN(parseFloat(_0x495dae))){const _0x568046=_0x5cdc7d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5cdc7d['config']['get']('fontSize.options'))['find'](_0x2b22b9=>_0x2b22b9['model']==_0x495dae);return _0x481b52+'\x20('+(_0x568046?_0x2038c4(_0x568046['title'])['toLowerCase']():_0x495dae)+')';}return _0x481b52+'\x20('+_0x495dae+')';}class ot extends _0x109a9f{['_headingOptions'];['afterInit'](){const _0x542d20=this['editor'];if(!_0x542d20['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x542d20['config']['get']('heading.options');const _0x1a16a3=_0x542d20['locale'],_0x5765a6=_0x542d20['plugins']['get']('TrackChangesEditing');_0x5765a6['enableDefaultAttributesIntegration']('heading');for(const _0x5a40ce of this['_headingOptions'])'paragraph'!=_0x5a40ce['model']&&_0x5765a6['descriptionFactory']['registerElementLabel'](_0x5a40ce['model'],_0x4776e9=>{const _0x14586b=this['_getHeadingLevel'](_0x5a40ce['model']);return null!==_0x14586b?_0x4ae8bd(_0x4776e9,_0x14586b):_0x576a7b(_0x4776e9,_0x5a40ce['title']);});function _0x4ae8bd(_0x2e3897,_0x2e0e4d){return o(_0x1a16a3,'ELEMENT_HEADING',[_0x2e3897,_0x2e0e4d]);}function _0x576a7b(_0x596383,_0x492b19){return o(_0x1a16a3,'ELEMENT_HEADING_CUSTOM',[_0x596383,_0x492b19]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e377=this['editor'],_0x5a88e7=_0x13e377['locale'];function _0xc72649(_0x3bbf6d,_0x1360ef){return o(_0x5a88e7,'ELEMENT_HEADING_CUSTOM',[_0x3bbf6d,_0x1360ef]);}_0x13e377['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7e41=>{if('formatBlock'!=_0x1b7e41['type'])return;const {data:_0x54cb96}=_0x1b7e41;if(_0x54cb96&&'heading'==_0x54cb96['commandName']){const _0x23647c=_0x54cb96['commandParams'][0x0]['value'],_0x21274f=this['_getHeadingLevel'](_0x23647c);if(null!==_0x21274f)return{'type':'format','content':o(_0x5a88e7,'*Change\x20to:*\x20%0',(_0x2a3819=0x1,_0xe8c760=_0x21274f,o(_0x5a88e7,'ELEMENT_HEADING',[_0x2a3819,_0xe8c760])))};const _0x2fe18d=this['_headingOptions']['find'](_0x253fef=>_0x253fef['model']===_0x23647c)['title'];return{'type':'format','content':o(_0x5a88e7,'*Change\x20to:*\x20%0',_0xc72649(0x1,_0x2fe18d))};}var _0x2a3819,_0xe8c760;});}['_getHeadingLevel'](_0x3eabf7){const _0x36865a=_0x3eabf7['match'](/^heading(\d+)/);if(_0x36865a)return _0x36865a[0x1];const _0x24fa8a=this['_headingOptions']?.['find'](_0x156247=>_0x156247['model']==_0x3eabf7);if(_0x24fa8a&&_0x24fa8a['view']){const _0x40113a=_0x24fa8a['view'],_0x722082=(_0x40113a['name']??_0x40113a)['match'](/^h(\d+)/);if(_0x722082)return _0x722082[0x1];}return null;}}class rt extends _0x109a9f{['afterInit'](){const _0x285560=this['editor'];if(!_0x285560['plugins']['has']('HighlightEditing'))return;const _0x59834f=_0x285560['plugins']['get']('TrackChangesEditing'),_0x4faea7=_0x285560['locale'];_0x59834f['enableDefaultAttributesIntegration']('highlight'),_0x59834f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4faea7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x553ab4=this['editor'],_0x5de5b9=_0x553ab4['locale'];_0x553ab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43b575=>{if('formatInline'!=_0x43b575['type'])return;const {data:_0x4dcda1}=_0x43b575;if(_0x4dcda1&&'highlight'==_0x4dcda1['commandName']){const _0x11e58c=_0x5de5b9['t'],_0x13be22=_0x4dcda1['commandParams'][0x0]['value'];if(_0x13be22){const _0x112483=_0x553ab4['config']['get']('highlight.options')['find'](_0x15d062=>_0x15d062['model']==_0x13be22),_0x199d5a=_0x11e58c(_0x112483['title'])['toLowerCase']();return{'type':'format','content':o(_0x5de5b9,'*Set\x20highlight:*\x20%0',_0x199d5a),'color':{'value':_0x112483['color'],'title':_0x112483['title']}};}return{'type':'format','content':o(_0x5de5b9,'*Remove\x20highlight*',o(_0x5de5b9,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x109a9f{['afterInit'](){const _0x19736a=this['editor'];if(!_0x19736a['plugins']['has']('HorizontalLineEditing'))return;_0x19736a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x188876=_0x19736a['plugins']['get']('TrackChangesEditing'),_0x56f764=_0x19736a['locale'];_0x188876['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59a446=>o(_0x56f764,'ELEMENT_HORIZONTAL_LINE',_0x59a446));}}class ct extends _0x109a9f{['afterInit'](){const _0x3a7a2e=this['editor'];if(!_0x3a7a2e['plugins']['has']('HtmlEmbed'))return;const _0x876534=_0x3a7a2e['plugins']['get']('TrackChangesEditing'),_0x541864=_0x3a7a2e['locale'];_0x876534['descriptionFactory']['registerElementLabel']('rawHtml',_0x151ad9=>o(_0x541864,'ELEMENT_HTML_EMBED',_0x151ad9)),_0x876534['enableDefaultAttributesIntegration']('htmlEmbed'),_0x876534['descriptionFactory']['registerDescriptionCallback'](_0x2ff6c7=>{if('attribute'!=_0x2ff6c7['type'])return;const {data:_0x346d0d}=_0x2ff6c7;if(_0x346d0d&&'value'==_0x346d0d['key']&&_0x2ff6c7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x565928=o(_0x541864,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x541864,'*Change\x20%0\x20content*',_0x565928)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37acd8=this['editor'],_0x5bcd2d=_0x37acd8['locale'];_0x37acd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b116e=>{if('formatBlock'!=_0x4b116e['type'])return;const {data:_0x303fa}=_0x4b116e;if(_0x303fa&&'htmlEmbed'==_0x303fa['commandName']){const _0x146a86=o(_0x5bcd2d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5bcd2d,'*Change\x20%0\x20content*',_0x146a86)};}});}}class ut extends _0x109a9f{['afterInit'](){const _0x5144d1=this['editor'];if(!_0x5144d1['plugins']['has']('ImageEditing'))return;const _0x2e3787=_0x5144d1['plugins']['get']('TrackChangesEditing'),_0x4e8ba2=_0x5144d1['plugins']['get']('ImageUtils'),_0x22480a=_0x5144d1['locale'];_0x2e3787['enableCommand']('insertImage'),_0x2e3787['descriptionFactory']['registerElementLabel']('imageBlock',_0x514613=>o(_0x22480a,'ELEMENT_IMAGE',_0x514613)),_0x2e3787['descriptionFactory']['registerElementLabel']('imageInline',_0x103aa6=>o(_0x22480a,'ELEMENT_INLINE_IMAGE',_0x103aa6)),_0x2e3787['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x22480a,'ELEMENT_CAPTION')),_0x5144d1['plugins']['has']('ImageUploadEditing')&&_0x2e3787['enableCommand']('uploadImage'),_0x5144d1['plugins']['has']('ImageBlockEditing')&&_0x5144d1['plugins']['has']('ImageInlineEditing')&&(_0x2e3787['enableCommand']('imageTypeInline',(_0x33a3b,_0x28e549)=>{const _0x4debfe=_0x4e8ba2['getClosestSelectedImageElement'](_0x5144d1['model']['document']['selection']);_0x5144d1['model']['change'](()=>{_0x2e3787['markBlockFormat'](_0x4debfe,{'commandName':'imageTypeInline','commandParams':[_0x28e549]},[],'convertBlockImageToInline');});}),_0x2e3787['enableCommand']('imageTypeBlock',(_0x14cf9c,_0x46dd6d)=>{_0x5144d1['model']['change'](_0x3103df=>{let _0xa3c1b5=_0x4e8ba2['getClosestSelectedImageElement'](_0x5144d1['model']['document']['selection']),_0x1d4d4e=_0x3103df['createRangeOn'](_0xa3c1b5);const _0x468260=_0x137d99['fromPosition'](_0x1d4d4e['start'],'toPrevious'),_0x56eeb7=_0x137d99['fromPosition'](_0x1d4d4e['end'],'toNext');_0x2e3787['forceDefaultExecution'](()=>_0x14cf9c(_0x46dd6d)),_0xa3c1b5=_0x4e8ba2['getClosestSelectedImageElement'](_0x5144d1['model']['document']['selection']),_0x1d4d4e=_0x3103df['createRangeOn'](_0xa3c1b5);const _0x362525=_0x3103df['createRange'](_0x468260,_0x56eeb7);_0x468260['detach'](),_0x56eeb7['detach'](),_0x2e3787['markBlockFormat'](_0xa3c1b5,{'commandName':'imageTypeInline','commandParams':[_0x46dd6d]},[],'convertInlineImageToBlock'),_0x362525['start']['isBefore'](_0x1d4d4e['start'])&&_0x2e3787['markInsertion'](_0x3103df['createRange'](_0x362525['start'],_0x1d4d4e['start']),'convertInlineImageToBlock'),_0x1d4d4e['end']['isBefore'](_0x362525['end'])&&_0x2e3787['markInsertion'](_0x3103df['createRange'](_0x1d4d4e['end'],_0x362525['end']),'convertInlineImageToBlock');});}),_0x2e3787['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e3787['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e3787['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e3787['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e3787['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e3787['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x399a61])=>{const _0x26fe99=_0x2e3787['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b7bf9=_0x399a61['start'],_0x176a41=_0x399a61['end'];const _0x24cb42=_0x5144d1['model']['schema']['getNearestSelectionRange'](_0x5b7bf9,'backward'),_0x5379b9=_0x5144d1['model']['schema']['getNearestSelectionRange'](_0x176a41,'forward');_0x24cb42['isCollapsed']&&(_0x5b7bf9=_0x24cb42['start']),_0x5379b9['isCollapsed']&&(_0x176a41=_0x5379b9['end']),_0x26fe99([_0x5144d1['model']['createRange'](_0x5b7bf9,_0x176a41)]);}),_0x2e3787['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x267410),_0x2e3787['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x267410)),_0x5144d1['plugins']['has']('ImageCaptionEditing')&&(_0x2e3787['enableCommand']('toggleImageCaption',(_0x3cb3c6,_0x4a24ba)=>{const _0x20617d=_0x5144d1['plugins']['get']('ImageCaptionUtils');let _0x427522=_0x4e8ba2['getClosestSelectedImageElement'](_0x5144d1['model']['document']['selection']),_0x77830d=_0x20617d['getCaptionFromImageModelElement'](_0x427522);_0x5144d1['model']['change'](()=>{if(_0x77830d)return void _0x2e3787['markDeletion'](_0x5144d1['model']['createRangeOn'](_0x77830d));const _0x3531c7=_0x4e8ba2['isBlockImage'](_0x427522);_0x3cb3c6(_0x4a24ba),_0x427522=_0x4e8ba2['getClosestSelectedImageElement'](_0x5144d1['model']['document']['selection']),_0x77830d=_0x20617d['getCaptionFromImageModelElement'](_0x427522),_0x2e3787['markInsertion'](_0x5144d1['model']['createRangeOn'](_0x77830d),_0x3531c7?null:'imageCaption');});}),_0x2e3787['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x267410));const _0x1977d9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x133541(_0x47ed65,_0x1cb97f){const _0x441994=_0x1977d9['findIndex'](({type:_0x47c308,subType:_0x50202c})=>_0x47ed65['type']==_0x47c308&&_0x47ed65['subType']==_0x50202c),_0x301fb2=_0x1977d9['findIndex'](({type:_0xc08c81,subType:_0x1ad4bd})=>_0x1cb97f['type']==_0xc08c81&&_0x1cb97f['subType']==_0x1ad4bd);if(_0x441994<0x0||_0x301fb2<0x0)return!0x1;const _0x1ddff0=_0x47ed65['getFirstRange'](),_0x49f6c4=_0x1cb97f['getFirstRange']();if((0x0==_0x441994||0x1==_0x441994)&&0x2==_0x301fb2&&_0x1ddff0['isIntersecting'](_0x49f6c4))return!0x0;if(0x2==_0x441994&&0x3==_0x301fb2){const _0x170534=_0x2e3787['_findSuggestions'](_0x1ddff0,'insertion')['filter'](({suggestion:_0x866b13,meta:_0x393469})=>_0x393469['isOwn']&&'convertInlineImageToBlock'==_0x866b13['subType']);if(_0x170534['length']>0x1&&_0x49f6c4['end']['isEqual'](_0x1ddff0['start']))return!0x0;if(0x1==_0x170534['length']&&(_0x1ddff0['start']['isEqual'](_0x49f6c4['end'])||_0x1ddff0['end']['isEqual'](_0x49f6c4['start'])))return!0x0;}if(0x3==_0x441994&&0x3==_0x301fb2&&_0x1ddff0['start']['isBefore'](_0x49f6c4['start'])){const _0x3bf130=_0x1ddff0['end']['nodeAfter'],_0x365822=_0x49f6c4['start']['nodeBefore'];return _0x4e8ba2['isBlockImage'](_0x3bf130)&&_0x3bf130===_0x365822;}return!0x1;}function _0x267410(_0x4cc4ee,_0x1d2d9a){return _0x133541(_0x4cc4ee,_0x1d2d9a)?[_0x4cc4ee,_0x1d2d9a]:_0x133541(_0x1d2d9a,_0x4cc4ee)?[_0x1d2d9a,_0x4cc4ee]:null;}_0x5144d1['plugins']['has']('ImageResize')&&(_0x2e3787['enableDefaultAttributesIntegration']('resizeImage'),_0x2e3787['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x22480a,'FORMAT_IMAGE_SIZE'))),_0x5144d1['plugins']['has']('ImageTextAlternativeEditing')&&_0x2e3787['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5144d1['plugins']['has']('PictureEditing')&&_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x2ce419=>{if('attribute'!=_0x2ce419['type'])return;const {data:_0x1e97d6}=_0x2ce419;return _0x1e97d6&&'sources'==_0x1e97d6['key']?{'type':'format','content':''}:void 0x0;}),_0x5144d1['plugins']['has']('ImageSizeAttributes')&&_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x2555d4=>{if('attribute'!=_0x2555d4['type'])return;const {data:_0x3e3540}=_0x2555d4;return!_0x3e3540||'width'!=_0x3e3540['key']&&'height'!=_0x3e3540['key']?void 0x0:{'type':'format','content':''};}),_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x4848a3=>{if(!!_0x1977d9['find'](({type:_0x3563c7,subType:_0xaa70b7})=>_0x4848a3['type']==_0x3563c7&&_0x4848a3['subType']==_0xaa70b7))return _0x4848a3['previous']?{}:void 0x0;}),_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x50fd6f=>{if('insertion'==_0x50fd6f['type']||'deletion'==_0x50fd6f['type']){const _0x5875d7=_0x50fd6f['getContainedElement']();if(_0x5875d7&&_0x5875d7['is']('element','caption'))return{'type':'insertion'==_0x50fd6f['type']?'addObject':'removeObject','element':_0x5875d7,'quantity':0x1};}}),_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x33acef=>'formatBlock'==_0x33acef['type']&&'convertInlineImageToBlock'==_0x33acef['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33acef['type']&&'convertBlockImageToInline'==_0x33acef['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e3787['descriptionFactory']['registerDescriptionCallback'](_0x2b3464=>{if('attribute'!=_0x2b3464['type'])return;const {data:_0x408bff}=_0x2b3464;if(!_0x408bff||'alt'!=_0x408bff['key'])return;const _0x13a33a=_0x408bff['newValue'];return _0x13a33a?{'type':'format','content':o(_0x22480a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x13a33a+'\x22')}:{'type':'format','content':o(_0x22480a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d42b3=this['editor'],_0x213746=_0x1d42b3['locale'];_0x1d42b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23515d=>{if('formatBlock'!=_0x23515d['type']&&'formatInline'!=_0x23515d['type'])return;const {data:_0xbe1c9}=_0x23515d;if(_0xbe1c9){if('imageTextAlternative'==_0xbe1c9['commandName']){const _0x5cc6ec=_0xbe1c9['commandParams'][0x0]['newValue'];return _0x5cc6ec?{'type':'format','content':o(_0x213746,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cc6ec+'\x22')}:{'type':'format','content':o(_0x213746,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xbe1c9['commandName']){const _0x67ff9a=_0xbe1c9['commandParams'][0x0]['width'];return _0x67ff9a?{'type':'format','content':o(_0x213746,'*Set\x20image\x20width:*\x20%0',_0x67ff9a)}:{'type':'format','content':o(_0x213746,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x109a9f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x575bf4=this['editor']['locale'],_0x50756c=this['editor']['plugins']['get']('TrackChangesEditing');_0x50756c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x50756c['descriptionFactory']['registerDescriptionCallback'](_0x1a2e0c=>{if('attribute'!=_0x1a2e0c['type'])return;const {data:_0xa4df3d}=_0x1a2e0c;return _0xa4df3d&&'src'==_0xa4df3d['key']?_0xa4df3d['newValue']&&_0xa4df3d['oldValue']?{'type':'format','content':o(_0x575bf4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x273018=this['editor']['plugins']['get']('TrackChangesEditing');_0x273018['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x273018['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x273018['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x273018['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417057=this['editor'],_0x41c7b4=_0x417057['locale'];_0x417057['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5c09=>{if('formatBlock'!=_0x2b5c09['type']&&'formatInline'!=_0x2b5c09['type'])return;const {data:_0x57207c}=_0x2b5c09;if(!_0x57207c||'replaceImageSource'!=_0x57207c['commandName'])return;return{'type':'format','content':o(_0x41c7b4,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x109a9f{['afterInit'](){const _0x15c405=this['editor'];if(!_0x15c405['plugins']['has']('ImageStyleEditing'))return;const _0x2dd76b=_0x15c405['plugins']['get']('TrackChangesEditing'),_0x1f1f18=_0x15c405['plugins']['get']('ImageUtils'),_0x34884b={};_0x2dd76b['enableCommand']('imageStyle',(_0x328c3a,_0x412251)=>{const _0x56d12c=_0x15c405['plugins']['get']('Users')['me'],_0x2cfc50=_0x15c405['commands']['get']('imageStyle');let _0x5f31a1=_0x1f1f18['getClosestSelectedImageElement'](_0x15c405['model']['document']['selection']),_0x3eb6cc=_0x15c405['model']['createRangeOn'](_0x5f31a1),_0x223918=_0x2cfc50['value'];if(_0x223918==_0x412251['value'])return;const _0x2e3e9c={'commandName':'imageStyle','commandParams':[_0x412251],'formatGroupId':_0x53e807()};_0x15c405['model']['change'](()=>{if(_0x2dd76b['getSuggestions']()['filter'](_0x5b03db=>_0x5b03db['isInContent']&&_0x56d12c==_0x5b03db['author']&&('formatBlock'==_0x5b03db['type']||'formatInline'==_0x5b03db['type'])&&('imageStylePreApply'==_0x5b03db['subType']||'imageStylePostApply'==_0x5b03db['subType'])&&_0x5b03db['getFirstRange']()['isEqual'](_0x3eb6cc))['forEach'](_0xe1d01c=>_0x2dd76b['discardSuggestion'](_0xe1d01c['head'])),_0x5f31a1=_0x1f1f18['getClosestSelectedImageElement'](_0x15c405['model']['document']['selection']),_0x3eb6cc=_0x15c405['model']['createRangeOn'](_0x5f31a1),_0x2cfc50['refresh'](),_0x15c405['commands']['get']('imageTypeInline')['refresh'](),_0x15c405['commands']['get']('imageTypeBlock')['refresh'](),_0x223918=_0x2cfc50['value'],_0x223918!=_0x412251['value'])return _0x1f1f18['isInlineImage'](_0x5f31a1)&&_0x2cfc50['shouldConvertImageType'](_0x412251['value'],_0x5f31a1)?(_0x328c3a({..._0x412251,'setImageSizes':!0x1}),_0x5f31a1=_0x1f1f18['getClosestSelectedImageElement'](_0x15c405['model']['document']['selection']),void _0x2dd76b['markBlockFormat'](_0x5f31a1,{..._0x2e3e9c,'commandReversedParams':[{'value':_0x223918||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1f1f18['isBlockImage'](_0x5f31a1)?_0x2dd76b['markBlockFormat'](_0x5f31a1,_0x2e3e9c,[],'imageStylePostApply'):_0x2dd76b['markInlineFormat'](_0x3eb6cc,_0x2e3e9c,'imageStylePostApply'));});});for(const _0x5e1c72 of _0x15c405['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x34884b[_0x5e1c72['name']]=_0x5e1c72['title']['toLowerCase']();_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x32569e])=>{_0x1f1f18['setImageNaturalSizeAttributes'](_0x32569e['getContainedElement']());}),_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x49dceb,_0x5c3e0c)=>{_0x2dd76b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x49dceb,{'commandName':_0x5c3e0c['commandName'],'commandParams':_0x5c3e0c['commandReversedParams']});}),_0x2dd76b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x49471a,_0x30d70c){if(_0x255fce(_0x49471a,_0x30d70c))return[_0x49471a,_0x30d70c];if(_0x255fce(_0x30d70c,_0x49471a))return[_0x30d70c,_0x49471a];return null;});const _0x4162ee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x255fce(_0x56b9dd,_0x4568c2){const _0x354b15=_0x4162ee['findIndex'](({type:_0x33b345,subType:_0x56ee19})=>_0x56b9dd['type']==_0x33b345&&_0x56b9dd['subType']==_0x56ee19),_0x4448a0=_0x4162ee['findIndex'](({type:_0x2e8f24,subType:_0x4548d6})=>_0x4568c2['type']==_0x2e8f24&&_0x4568c2['subType']==_0x4548d6);if(_0x354b15<0x0||_0x4448a0<0x0)return!0x1;const _0xcfbf35=_0x56b9dd['getFirstRange'](),_0x182b17=_0x4568c2['getFirstRange']();if((0x0==_0x354b15||0x1==_0x354b15)&&0x2==_0x4448a0&&_0xcfbf35['isIntersecting'](_0x182b17))return!0x0;if(0x2==_0x354b15&&0x3==_0x4448a0){const _0x164c4f=_0x2dd76b['_findSuggestions'](_0xcfbf35,'insertion')['filter'](({suggestion:_0x1fc395,meta:_0x4cdf60})=>_0x4cdf60['isOwn']&&'convertInlineImageToBlock'==_0x1fc395['subType']);if(_0x164c4f['length']>0x1&&_0x182b17['end']['isEqual'](_0xcfbf35['start']))return!0x0;if(0x1==_0x164c4f['length']&&(_0xcfbf35['start']['isEqual'](_0x182b17['end'])||_0xcfbf35['end']['isEqual'](_0x182b17['start'])))return!0x0;}if(0x3==_0x354b15&&0x3==_0x4448a0&&_0xcfbf35['start']['isBefore'](_0x182b17['start'])){const _0x46d0fe=_0xcfbf35['end']['nodeAfter'],_0x105791=_0x182b17['start']['nodeBefore'];return _0x1f1f18['isBlockImage'](_0x46d0fe)&&_0x46d0fe===_0x105791;}return!0x1;}_0x15c405['model']['document']['registerPostFixer'](()=>{let _0x338c54=!0x1;const _0x2e3e06=Array['from'](_0x15c405['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f2284,data:_0x12d35d}of _0x2e3e06){const {group:_0x95ef70,type:_0x1fc593,subType:_0x485706,id:_0x4df0cb}=_0x2dd76b['_splitMarkerName'](_0x4f2284);if('suggestion'==_0x95ef70&&_0x2dd76b['hasSuggestion'](_0x4df0cb)){if('formatBlock'==_0x1fc593&&('imageStylePreApply'==_0x485706||'imageStylePostApply'==_0x485706)){const _0x4d30b8=_0x2dd76b['getSuggestion'](_0x4df0cb);if(_0x12d35d['newRange']){const _0x449cda=_0x4d30b8['getFirstRange']()['getContainedElement']();if(_0x1f1f18['isBlockImage'](_0x449cda))continue;_0x2dd76b['discardSuggestion'](_0x4d30b8),_0x338c54=!0x0;}}if('insertion'==_0x1fc593&&'imageCaption'==_0x485706&&!_0x12d35d['newRange']){const _0x28099a=_0x2dd76b['getSuggestion'](_0x4df0cb);_0x28099a['next']&&_0x28099a['next']['isInContent']&&(_0x2dd76b['discardSuggestion'](_0x28099a['next']),_0x338c54=!0x0);}}}return _0x338c54;}),this['_registerLegacyDescription'](_0x34884b);}['_registerLegacyDescription'](_0x3fe83c){const _0x425608=this['editor'],_0x3c3d83=_0x425608['locale'];_0x425608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b6e4d=>{if('formatBlock'!=_0x2b6e4d['type']&&'formatInline'!=_0x2b6e4d['type'])return;const {data:_0xc7a304}=_0x2b6e4d;if(!_0xc7a304||'imageStyle'!=_0xc7a304['commandName'])return;const _0x525fea=_0xc7a304['commandParams'][0x0]['value'];return _0x2ec058('side'===_0x525fea?o(_0x3c3d83,'FORMAT_SIDE_IMAGE'):_0x3fe83c[_0x525fea]||_0x525fea);function _0x2ec058(_0x3c26b0){return{'type':'format','content':o(_0x3c3d83,'*Format:*\x20%0',_0x3c26b0)};}});}}class lt extends _0x109a9f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3aa559){super(_0x3aa559),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x36e28d=this['editor'],_0x3e2143=_0x36e28d['commands']['get']('importWord'),_0x4c51ea=_0x36e28d['commands']['get']('trackChanges');_0x3e2143&&(_0x3e2143['on']('execute',(_0x32f8d3,[,_0x25fe2f])=>{this['_trackChangesValueDuringImport']=_0x4c51ea['value'],_0x25fe2f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3e2143,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3e2143,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c51ea['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x36e28d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x422e13,_0x22e6fd){const {suggestions:_0x340851}=_0x22e6fd,_0x273087=this['editor']['commands']['get']('trackChanges'),_0x2bc551=_0x273087['value'];this['_trackChangesValueDuringImport']!==_0x2bc551&&(_0x273087['execute'](),this['_trackChangesExecuted']=!0x0),_0x340851&&_0x340851['forEach'](({id:_0x4470cd,type:_0x3bca13,author:_0x1e7f2b,created_at:_0x6073d6})=>{const _0x2d578d={'id':_0x4470cd,'type':_0x3bca13,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e7f2b,'createdAt':_0x6073d6?new Date(_0x6073d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2d578d);});}}class gt extends _0x109a9f{['afterInit'](){const _0x27b41f=this['editor'],_0x449402=_0x27b41f['plugins']['get']('TrackChangesEditing');if(_0x27b41f['plugins']['has']('IndentEditing')&&(_0x449402['enableCommand']('indent'),_0x449402['enableCommand']('outdent')),_0x27b41f['plugins']['has']('IndentBlock')){for(const _0x2eb25f of['indentBlock','outdentBlock'])_0x449402['enableDefaultAttributesIntegration'](_0x2eb25f);if(_0x27b41f['plugins']['has']('ListEditing')){for(const _0x63ca5c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x449402['enableDefaultAttributesIntegration'](_0x63ca5c);}}const _0x27a8b4=_0x27b41f['locale'];_0x449402['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27a8b4,'FORMAT_INDENT')),_0x449402['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x27a8b4,'FORMAT_INDENT')),_0x449402['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x27a8b4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1516df=this['editor'],_0x540175=_0x1516df['locale'],_0x38356c=_0x1516df['plugins']['get']('TrackChangesEditing');_0x38356c['descriptionFactory']['registerDescriptionCallback'](_0x414a9c=>{if('formatBlock'!=_0x414a9c['type'])return;const {data:_0x2cbcba}=_0x414a9c;if(!_0x2cbcba)return;if('indentBlock'!=_0x2cbcba['commandName']&&'outdentBlock'!=_0x2cbcba['commandName'])return;const _0x3bd4eb=_0x414a9c['getItems']()[0x0],_0xd138fa=_0x38356c['descriptionFactory']['getItemLabel'](_0x3bd4eb);return'indentBlock'==_0x2cbcba['commandName']?{'type':'format','content':o(_0x540175,'*Indent:*\x20%0',_0xd138fa)}:'outdentBlock'==_0x2cbcba['commandName']?{'type':'format','content':o(_0x540175,'*Outdent:*\x20%0',_0xd138fa)}:void 0x0;});}}class mt extends _0x109a9f{static get['requires'](){return[_0x3e5780];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x109a9f{['afterInit'](){const _0x117e7c=this['editor'];if(!_0x117e7c['plugins']['has']('LinkEditing'))return;const _0x4e7f88=_0x117e7c['plugins']['get']('TrackChangesEditing'),_0xbecbb=_0x117e7c['commands']['get']('link');_0x4e7f88['enableDefaultAttributesIntegration']('link'),_0x4e7f88['enableDefaultAttributesIntegration']('unlink');for(const _0x3dd1ec of _0xbecbb['manualDecorators'])_0x4e7f88['descriptionFactory']['registerAttributeLabel'](_0x3dd1ec['id'],'link\x20('+_0x3dd1ec['label']['toLowerCase']()+')');_0x4e7f88['descriptionFactory']['registerDescriptionCallback'](_0x1a2469=>{if('attribute'!=_0x1a2469['type'])return;const {data:_0x2c398d}=_0x1a2469;if(!_0x2c398d||'linkHref'!=_0x2c398d['key'])return;const _0x33700f=_0x2c398d['newValue'],_0x15ff0a=_0x117e7c['locale'];return{'type':'format','content':null==_0x33700f?o(_0x15ff0a,'*Remove\x20link*'):o(_0x15ff0a,'*Set\x20link:*\x20%0','\x22'+_0x33700f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x325e35=this['editor'],_0x13309e=_0x325e35['locale'];_0x325e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x418265=>{if('formatInline'!=_0x418265['type'])return;const {data:_0x3fbf10}=_0x418265;if(_0x3fbf10){if('link'==_0x3fbf10['commandName']){const _0x3d765b=_0x3fbf10['commandParams'][0x0];return{'type':'format','content':o(_0x13309e,'*Set\x20link:*\x20%0','\x22'+_0x3d765b+'\x22')};}return'unlink'==_0x3fbf10['commandName']?{'type':'format','content':o(_0x13309e,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x109a9f{['afterInit'](){const _0x2848a8=this['editor'],_0x4d3496=_0x2848a8['locale'];if(!_0x2848a8['plugins']['has']('LegacyListEditing'))return;const _0x26a984=_0x2848a8['plugins']['get']('TrackChangesEditing'),_0x562ddf=_0x2848a8['plugins']['has']('LegacyTodoListEditing');function _0x5ab77a(_0x1776a7){return()=>{const _0x581834=_0x2848a8['model']['document']['selection'],_0x4b5129=_0x2848a8['commands']['get'](_0x1776a7);if(_0x4b5129['value'])return void _0x2848a8['execute']('paragraph',{});const _0x2fbe8d=_0x1776a7['slice'](0x0,-0x4),_0x358886=function(_0x31876a,_0x19f3e9,_0x55b427){let _0x259929=Array['from'](_0x31876a)['filter'](_0x3cb2f1=>function(_0xf93923,_0x43c6a8){return _0x43c6a8['checkChild'](_0xf93923['parent'],'listItem')&&!_0x43c6a8['isObject'](_0xf93923);}(_0x3cb2f1,_0x55b427));_0x259929=_0x259929['filter'](_0x8a85de=>!_0x8a85de['is']('element','listItem')||_0x8a85de['getAttribute']('listType')!=_0x19f3e9);const _0xf66b24=new Set();for(const _0x1e4234 of _0x259929)_0x1e4234['is']('element','listItem')?_0xf66b24['add'](Le(_0x1e4234)):_0xf66b24['add'](_0x1e4234);return Array['from'](_0xf66b24);}(_0x581834['getSelectedBlocks'](),_0x2fbe8d,_0x2848a8['model']['schema']);_0x2848a8['model']['change'](()=>{for(const _0x4fe830 of _0x358886)_0x26a984['markBlockFormat'](_0x4fe830,{'commandName':_0x1776a7,'commandParams':[{'forceValue':!_0x4b5129['value']}],'formatGroupId':'blockName'},Ee(_0x4fe830));});};}function _0x26621d(_0x5486c2){return()=>{const _0x46011a=function(_0x276384){let _0x4783e0=Array['from'](_0x276384);const _0x386cc6=_0x4783e0['findIndex'](_0x4b9fd3=>'listItem'!=_0x4b9fd3['name']);return _0x386cc6>-0x1&&(_0x4783e0=_0x4783e0['slice'](0x0,_0x386cc6)),_0x4783e0;}(_0x2848a8['model']['document']['selection']['getSelectedBlocks']()),_0x2ea80a=_0x2848a8['model']['createRange'](_0x2848a8['model']['createPositionAt'](_0x46011a[0x0],'before'),_0x2848a8['model']['createPositionAt'](_0x46011a[_0x46011a['length']-0x1],'end'));_0x2848a8['model']['change'](()=>{_0x26a984['markBlockFormat'](_0x2ea80a,{'commandName':_0x5486c2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x473413){const _0x426648=new Set();for(const _0x5647bf of _0x473413){let _0x1d2ab1=_0x5647bf['nextSibling'];for(;_0x1d2ab1&&_0x1d2ab1['getAttribute']('listIndent')>_0x5647bf['getAttribute']('listIndent');)_0x426648['add'](_0x1d2ab1),_0x1d2ab1=_0x1d2ab1['nextSibling'];}return Array['from'](_0x426648);}(_0x46011a));});};}_0x26a984['enableCommand']('numberedList',_0x5ab77a('numberedList')),_0x26a984['enableCommand']('bulletedList',_0x5ab77a('bulletedList')),_0x562ddf&&_0x26a984['enableCommand']('todoList',_0x5ab77a('todoList')),_0x26a984['enableCommand']('indentList',_0x26621d('indentList')),_0x26a984['enableCommand']('outdentList',_0x26621d('outdentList')),_0x562ddf&&_0x26a984['enableCommand']('checkTodoList',()=>{const _0x4c02ea=_0x2848a8['commands']['get']('checkTodoList'),_0x58e42a=Array['from'](_0x4c02ea['_selectedElements']);_0x58e42a['filter'](_0x902a4c=>_0x902a4c['getAttribute']('todoListChecked')!=_0x4c02ea['value']),_0x2848a8['model']['change'](()=>{for(const _0x4f8939 of _0x58e42a)_0x26a984['markBlockFormat'](_0x4f8939,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4c02ea['value']}]});});}),_0x26a984['descriptionFactory']['registerElementLabel']('listItem',_0x3c8958=>o(_0x4d3496,'ELEMENT_LIST_ITEM',_0x3c8958)),_0x26a984['descriptionFactory']['registerDescriptionCallback'](_0x47f727=>{if('formatBlock'!=_0x47f727['type']&&'formatInline'!=_0x47f727['type'])return;const {data:_0x50ed67}=_0x47f727;if(_0x50ed67){if('numberedList'==_0x50ed67['commandName']||'bulletedList'==_0x50ed67['commandName']||'todoList'==_0x50ed67['commandName'])switch(_0x50ed67['commandName']['replace']('List','')){case'bulleted':return _0x4afe27(o(_0x4d3496,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4afe27(o(_0x4d3496,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4afe27(o(_0x4d3496,'ELEMENT_TODO_LIST'));}if('indentList'==_0x50ed67['commandName'])return{'type':'format','content':o(_0x4d3496,'*Indent:*\x20%0',o(_0x4d3496,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x50ed67['commandName'])return{'type':'format','content':o(_0x4d3496,'*Outdent:*\x20%0',o(_0x4d3496,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x50ed67['commandName'])return _0x50ed67['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d3496,'*Check\x20item*')}:{'type':'format','content':o(_0x4d3496,'*Uncheck\x20item*')};}function _0x4afe27(_0x540932){return{'type':'format','content':o(_0x4d3496,'*Change\x20to:*\x20%0',_0x540932)};}});}}function Le(_0xf24d47){const _0x4da7a3=_0xf24d47['getAttribute']('listIndent');if(0x0==_0x4da7a3)return _0xf24d47;let _0x1f33b3=_0xf24d47;for(;_0xf24d47['previousSibling']&&_0xf24d47['previousSibling']['is']('element','listItem');){const _0x570a6b=_0xf24d47['previousSibling']['getAttribute']('listIndent');if(_0x570a6b==_0x4da7a3)_0x1f33b3=_0xf24d47['previousSibling'];else{if(_0x570a6b<_0x4da7a3)break;}_0xf24d47=_0xf24d47['previousSibling'];}return _0x1f33b3;}function Ee(_0xd2e283){const _0x49a0d9=[];if(_0xd2e283['is']('element','listItem')&&_0xd2e283['getAttribute']('listIndent')>0x0){let _0x19feab=_0xd2e283['nextSibling'];for(;_0x19feab&&'listItem'==_0x19feab['name']&&_0x19feab['getAttribute']('listIndent')==_0xd2e283['getAttribute']('listIndent');)_0x49a0d9['push'](_0x19feab),_0x19feab=_0x19feab['nextSibling'];}return _0x49a0d9;}class wt extends _0x109a9f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b18f2=this['editor']['config']['get']('list.properties'),_0x42eb2e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b18f2['styles']&&_0x42eb2e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b18f2['reversed']&&_0x42eb2e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b18f2['startIndex']&&_0x42eb2e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x42eb2e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2529d7,_0x2e1ba1={}){const _0x487b9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x300b8b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x487b9b['markMultiRangeBlockFormat'](_0x300b8b,{'commandName':'listStyle','commandParams':[{'type':_0x2e1ba1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x389837,_0x59240a={}){const _0x2c6fd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7cf38b=this['_getSuggestionBlocks'](_0x35335f=>_0x35335f['is']('element','listItem')&&'numbered'===_0x35335f['getAttribute']('listType'));if(_0x7cf38b['length']<0x1)return;const _0x309278=_0x7cf38b['map'](_0x34436d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34436d,'before'),this['editor']['model']['createPositionAt'](_0x34436d,0x0)));this['editor']['model']['change'](()=>{_0x2c6fd0['markMultiRangeBlockFormat'](_0x309278,{'commandName':'listReversed','commandParams':[{'reversed':_0x59240a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1c8fd1,_0x3239ab={}){const _0xedfde8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40b53d=this['_getSuggestionBlocks'](_0x561919=>_0x561919['is']('element','listItem')&&'numbered'===_0x561919['getAttribute']('listType'));if(_0x40b53d['length']<0x1)return;const _0xb98957=_0x40b53d['map'](_0x504802=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x504802,'before'),this['editor']['model']['createPositionAt'](_0x504802,0x0)));this['editor']['model']['change'](()=>{_0xedfde8['markMultiRangeBlockFormat'](_0xb98957,{'commandName':'listStart','commandParams':[{'startIndex':_0x3239ab['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x159d59){if('formatBlock'!=_0x159d59['type']&&'formatInline'!=_0x159d59['type'])return;const _0x15a2db=this['editor']['locale'],{data:_0x49892d}=_0x159d59;if(!_0x49892d)return;let _0x38fd65,_0x58fa1f;switch(_0x49892d['commandName']){case'listStyle':_0x38fd65='*Change\x20to:*\x20%0',_0x58fa1f={'type':'format','content':o(_0x15a2db,_0x38fd65,o(_0x15a2db,this['_getTranslationKeyForListStyle'](_0x49892d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x38fd65=_0x49892d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58fa1f={'type':'format','content':o(_0x15a2db,_0x38fd65)};break;case'listStart':_0x38fd65='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58fa1f={'type':'format','content':o(_0x15a2db,_0x38fd65,_0x49892d['commandParams'][0x0]['startIndex'])};}return _0x58fa1f;}['_getSuggestionBlocksForListStyle'](){const _0x4a55fb=this['editor']['plugins']['get']('LegacyListUtils');let _0x24923b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24923b[0x0]?.['is']('element','listItem')&&_0x24923b['unshift'](..._0x4a55fb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24923b[_0x24923b['length']-0x1]?.['is']('element','listItem')&&_0x24923b['push'](..._0x4a55fb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24923b=[...new Set(_0x24923b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24923b=_0x24923b['filter'](_0x221a11=>_0x221a11['is']('element','listItem'))),_0x24923b;}['_getSuggestionBlocks'](_0x3c5b2e){const _0x65e860=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a2702=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c5b2e)['map'](_0x11547d=>{const _0x48618e=this['editor']['model']['createPositionAt'](_0x11547d,0x0);return[..._0x65e860['getSiblingNodes'](_0x48618e,'backward'),..._0x65e860['getSiblingNodes'](_0x48618e,'forward')];})['flat']();return _0x3a2702=[...new Set(_0x3a2702)],_0x3a2702;}['_getTranslationKeyForListStyle'](_0x2c9210){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c9210)||'default')['toUpperCase']()+'_LIST_'+_0x2c9210['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x109a9f{['afterInit'](){const _0x22ccd1=this['editor'];if(!_0x22ccd1['plugins']['has']('MediaEmbedEditing'))return;const _0x1be815=_0x22ccd1['plugins']['get']('TrackChangesEditing'),_0x575625=_0x22ccd1['locale'];_0x1be815['enableCommand']('mediaEmbed'),_0x1be815['descriptionFactory']['registerElementLabel']('media',_0x17c2ab=>o(_0x575625,'ELEMENT_MEDIA',_0x17c2ab));}}class bt extends _0x109a9f{['afterInit'](){const _0x343ec6=this['editor'];_0x343ec6['plugins']['has']('MentionEditing')&&_0x343ec6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x109a9f{['afterInit'](){const _0x5e7cf9=this['editor'];if(!_0x5e7cf9['plugins']['has']('MergeFieldsEditing'))return;const _0xb6c116=_0x5e7cf9['plugins']['get']('TrackChangesEditing'),_0x1b4d74=_0x5e7cf9['locale'];_0xb6c116['enableCommand']('insertMergeField'),_0xb6c116['enableCommand']('insertMergeFieldBlock'),_0xb6c116['enableCommand']('insertMergeFieldImage'),_0xb6c116['descriptionFactory']['registerElementLabel']('mergeField',_0x4fcf8b=>o(_0x1b4d74,'ELEMENT_MERGE_FIELD',_0x4fcf8b)),_0xb6c116['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34d29b=>o(_0x1b4d74,'ELEMENT_MERGE_FIELD',_0x34d29b)),_0xb6c116['descriptionFactory']['registerDescriptionCallback'](_0x42023c=>{if('insertion'!=_0x42023c['type']&&'deletion'!=_0x42023c['type'])return;const _0x4dbf92=_0x42023c['getContainedElement']();if(null==_0x4dbf92)return;const _0x54865d=_0x5e7cf9['plugins']['get']('MergeFieldsEditing');let _0x4137ba;switch(_0x54865d['getMergeFieldType'](_0x4dbf92)){case null:return;case'image':{const _0x6f1370=_0x54865d['unwrapAffixes'](_0x4dbf92['getAttribute']('src'));_0x4137ba=_0x54865d['getLabel'](_0x6f1370)||_0x6f1370;break;}default:{const _0x1cb126=_0x4dbf92['getAttribute']('id');_0x4137ba=_0x54865d['getLabel'](_0x1cb126)||_0x1cb126;break;}}return'insertion'==_0x42023c['type']?{'type':'insertion','content':o(_0x1b4d74,'*Insert:*\x20%0','\x22'+_0x4137ba+'\x22\x20'+o(_0x1b4d74,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1b4d74,'*Remove:*\x20%0','\x22'+_0x4137ba+'\x22\x20'+o(_0x1b4d74,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x109a9f{['afterInit'](){const _0x45d6b7=this['editor'],_0x3696e0=_0x45d6b7['plugins']['get']('TrackChangesEditing');_0x45d6b7['plugins']['has']('MultiLevelList')&&(_0x3696e0['enableDefaultAttributesIntegration']('multiLevelList'),_0x3696e0['descriptionFactory']['registerDescriptionCallback'](_0x107682=>this['handleDescriptions'](_0x107682)));}['handleDescriptions'](_0x3a7eb9){const _0x5a6613=this['editor']['locale'],{data:_0x1620cc}=_0x3a7eb9,_0x3cc590={'type':'format','content':''};if(_0x1620cc&&'listMarkerStyle'==_0x1620cc['key']){if(!_0x1620cc['oldValue'])return{'type':'format','content':o(_0x5a6613,'*Set\x20format:*\x20%0',o(_0x5a6613,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1620cc['newValue']+')'};if(!_0x1620cc['newValue']){let _0xd29bb=_0x3a7eb9['head'];for(;_0xd29bb;){if(_0xd29bb['data']&&'listType'==_0xd29bb['data']['key']&&_0xd29bb['data']['newValue'])return _0x3cc590;_0xd29bb=_0xd29bb['next'];}return{'type':'format','content':o(_0x5a6613,'*Remove\x20format:*\x20%0',o(_0x5a6613,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1620cc['oldValue']+')'};}}}}class St extends _0x109a9f{['afterInit'](){const _0x350ef0=this['editor'];if(!_0x350ef0['plugins']['has']('PageBreakEditing'))return;_0x350ef0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ff948=_0x350ef0['plugins']['get']('TrackChangesEditing'),_0x2a166b=_0x350ef0['locale'];_0x3ff948['descriptionFactory']['registerElementLabel']('pageBreak',_0x1376a9=>o(_0x2a166b,'ELEMENT_PAGE_BREAK',_0x1376a9));}}class It extends _0x109a9f{['afterInit'](){const _0x4b3645=this['editor'];if(!_0x4b3645['plugins']['has']('Paragraph'))return;const _0x51a41b=_0x4b3645['locale'],_0x2c2082=_0x4b3645['plugins']['get']('TrackChangesEditing');_0x2c2082['descriptionFactory']['registerElementLabel']('paragraph',_0x1cd063=>o(_0x51a41b,'ELEMENT_PARAGRAPH',_0x1cd063)),_0x2c2082['enableDefaultAttributesIntegration']('paragraph'),_0x2c2082['enableCommand']('insertParagraph');const _0x2cb08c=_0x2c2082['descriptionFactory'];_0x2cb08c['registerDescriptionCallback'](_0x26d0d8=>{if('insertion'!==_0x26d0d8['type'])return;const {start:_0xc582bc,end:_0x51e2a0}=_0x26d0d8['getFirstRange']();if(!_0xc582bc['isTouching'](_0x51e2a0)||!_0xc582bc['nodeAfter'])return;const _0x4a4934=_0x4b3645['model']['schema'],_0x125029=_0xc582bc['nodeAfter'];return _0x4a4934['isBlock'](_0x125029)&&!_0x4a4934['isLimit'](_0x125029)&&_0x4a4934['checkChild'](_0x125029,'$text')?{'type':'insertion','content':o(_0x51a41b,'*Insert:*\x20%0',_0x2cb08c['getItemLabel'](_0x125029,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44eb0d=this['editor'],_0x1aa156=_0x44eb0d['locale'];_0x44eb0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dfbb=>{if('formatBlock'!=_0x15dfbb['type'])return;const {data:_0x360a78}=_0x15dfbb;return _0x360a78&&'paragraph'==_0x360a78['commandName']?{'type':'format','content':o(_0x1aa156,'*Change\x20to:*\x20%0',o(_0x1aa156,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x109a9f{['afterInit'](){const _0x3b7efd=this['editor'];_0x3b7efd['commands']['get']('replaceSource')&&_0x3b7efd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x109a9f{['afterInit'](){const _0x2eb982=this['editor'];if(!_0x2eb982['plugins']['has']('RemoveFormatEditing'))return;_0x2eb982['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466709=this['editor'];_0x466709['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54f965=>{if('formatBlock'!=_0x54f965['type']&&'formatInline'!=_0x54f965['type'])return;const {data:_0x2db794}=_0x54f965;return _0x2db794&&'removeFormat'==_0x2db794['commandName']?{'type':'format','content':o(_0x466709['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x109a9f{['afterInit'](){const _0x1a23d9=this['editor'];if(!_0x1a23d9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x12150e=_0x1a23d9['plugins']['get']('TrackChangesEditing');_0x12150e['enableCommand']('goToPreviousRestrictedEditingException'),_0x12150e['enableCommand']('goToNextRestrictedEditingException');const _0x4c7588=_0x1a23d9['plugins']['get']('RestrictedEditingModeEditing');_0x4c7588['enableCommand']('trackChanges'),_0x4c7588['enableCommand']('acceptSuggestion'),_0x4c7588['enableCommand']('discardSuggestion'),_0x4c7588['enableCommand']('acceptAllSuggestions'),_0x4c7588['enableCommand']('discardAllSuggestions'),_0x4c7588['enableCommand']('acceptSelectedSuggestions'),_0x4c7588['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x109a9f{['afterInit'](){const _0x5a9ba1=this['editor'];if(!_0x5a9ba1['plugins']['has']('ShiftEnter'))return;const _0x5cb6b5=_0x5a9ba1['plugins']['get']('TrackChangesEditing');_0x5cb6b5['enableCommand']('shiftEnter'),_0x5cb6b5['descriptionFactory']['registerElementLabel']('softBreak',_0x464c08=>o(_0x5a9ba1['locale'],'ELEMENT_LINE_BREAK',_0x464c08));}}function an(_0x531aa5,_0x4d9198,_0x37d3c8){const _0x633762=[];for(const _0x3f14d9 of _0x4d9198['getItems']())_0x3f14d9['hasAttribute'](_0x531aa5)&&_0x633762['push'](_0x37d3c8['createRangeOn'](_0x3f14d9));return _0x633762;}class $t extends _0x109a9f{['afterInit'](){const _0x5a7adc=this['editor'],_0x346483=_0x5a7adc['plugins']['get']('TrackChangesEditing');_0x5a7adc['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x346483['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x50f149=this['editor'],_0x5b5c09=_0x50f149['model'],_0x5e1571=_0x50f149['locale'],_0x25874e=_0x50f149['plugins']['get']('TrackChangesEditing'),_0x3cc912='restrictedEditingException',_0xcb697e=_0x50f149['commands']['get'](_0x3cc912);_0x25874e['enableCommand'](_0x3cc912,(_0x296cfc,_0x6a0363={})=>{const _0x5a68f8=_0x5b5c09['document']['selection'];if(_0x5a68f8['isCollapsed'])return void _0x296cfc(_0x6a0363);const _0x330d52=void 0x0!==_0x6a0363['forceValue']?_0x6a0363['forceValue']:!_0xcb697e['value'];_0x5b5c09['change'](()=>{const _0x450c90=Array['from'](_0x5a68f8['getRanges']());for(const _0x2ea158 of _0x450c90){const _0x128290=_0x330d52?[_0x2ea158]:an(_0x3cc912,_0x2ea158,_0x5b5c09);for(const _0x485533 of _0x128290)_0x25874e['markInlineFormat'](_0x485533,{'commandName':_0x3cc912,'commandParams':[{'forceValue':_0x330d52}]});}});}),_0x25874e['descriptionFactory']['registerDescriptionCallback'](_0x17c289=>{if('formatBlock'!=_0x17c289['type']&&'formatInline'!=_0x17c289['type'])return;const {data:_0x57dc82}=_0x17c289;return _0x57dc82&&_0x57dc82['commandName']==_0x3cc912?_0x57dc82['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e1571,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e1571,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2f4bd8=this['editor'],_0x358f95=_0x2f4bd8['locale'],_0x1dcb40=_0x2f4bd8['plugins']['get']('TrackChangesEditing'),_0xb5dd64='restrictedEditingExceptionBlock',_0x56e583=this['editor']['commands']['get'](_0xb5dd64);_0x1dcb40['enableCommand'](_0xb5dd64,(_0x2e9d49,_0x4ac96a={})=>{const _0x48163a=this['editor']['model']['document']['selection'],_0x293673=_0x4ac96a&&void 0x0!==_0x4ac96a['forceValue']?_0x4ac96a['forceValue']:!_0x56e583['value'];let _0x2071ed=[];if(_0x293673){const _0x2284e9=Array['from'](_0x48163a['getSelectedBlocks']())['filter'](_0x5b7105=>function(_0x47ddfb){return!!_0x47ddfb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5b7105)||function(_0x2d5932,_0x32cd44){const _0x987e51=_0x32cd44['createContext'](_0x2d5932['parent']);if(!_0x32cd44['checkChild'](_0x987e51,'restrictedEditingException'))return!0x1;if(!_0x32cd44['checkChild'](_0x987e51['push']('restrictedEditingException'),_0x2d5932))return!0x1;return!0x0;}(_0x5b7105,this['editor']['model']['schema']));_0x2071ed=to(_0x2284e9,_0x2f4bd8['model']);}else{const _0x1aa108=Array['from'](_0x48163a['getSelectedBlocks']())['map'](_0x183666=>function(_0x3c2910){let _0x41e89b=_0x3c2910;for(;_0x41e89b['parent'];){if('restrictedEditingException'==_0x41e89b['parent']['name'])return _0x41e89b;_0x41e89b=_0x41e89b['parent'];}return null;}(_0x183666))['filter'](_0x370d61=>!!_0x370d61);_0x2071ed=to(_0x1aa108,_0x2f4bd8['model']);}_0x2f4bd8['model']['change'](()=>{for(const _0x580226 of _0x2071ed)_0x1dcb40['markBlockFormat'](_0x580226,{'commandName':_0xb5dd64,'commandParams':[{'forceValue':_0x293673}]});});}),_0x1dcb40['descriptionFactory']['registerDescriptionCallback'](_0x392cfc=>{const {data:_0x25bfda}=_0x392cfc;if(_0x25bfda&&_0x25bfda['commandName']==_0xb5dd64)return _0x25bfda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x358f95,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x358f95,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x109a9f{['afterInit'](){const _0x1bb954=this['editor'];if(!_0x1bb954['plugins']['has']('Style')||!_0x1bb954['plugins']['has']('DataSchema'))return;const _0x5db93d=_0x1bb954['plugins']['get']('TrackChangesEditing'),_0x48dc7f=_0x1bb954['locale'],_0xeab905=_0x1bb954['config']['get']('style')||{},_0x4ac913=_0x1bb954['plugins']['get']('GeneralHtmlSupport'),_0x549224=_0x1bb954['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1bb954['plugins']['get']('DataSchema'),_0xeab905['definitions']);_0x5db93d['enableDefaultAttributesIntegration']('style');const _0x4c1998=new Set();for(const _0x9c83ff of _0x549224['block']){const _0x315d53=_0x4ac913['getGhsAttributeNameForElement'](_0x9c83ff['element']);_0x4c1998['add'](_0x315d53);}const _0x8bab29=new Set();for(const _0x4dbeda of _0x549224['inline']){const _0x3e56b1=_0x4ac913['getGhsAttributeNameForElement'](_0x4dbeda['element']);_0x8bab29['add'](_0x3e56b1);for(const _0x35d819 of _0x4dbeda['ghsAttributes'])_0x8bab29['add'](_0x35d819);}for(const _0x206d2e of _0x4c1998)_0x5db93d['descriptionFactory']['registerAttributeLabel'](_0x206d2e,o(_0x48dc7f,'FORMAT_STYLE'));for(const _0x3e9834 of _0x8bab29)_0x5db93d['descriptionFactory']['registerAttributeLabel'](_0x3e9834,o(_0x48dc7f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaccff=this['editor'],_0x27adfc=_0xaccff['locale'];_0xaccff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3f1e=>{if('formatBlock'!=_0x4a3f1e['type']&&'formatInline'!=_0x4a3f1e['type'])return;const {data:_0x60fce9}=_0x4a3f1e;return _0x60fce9&&'style'===_0x60fce9['commandName']?_0x60fce9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27adfc,'*Set\x20format:*\x20%0',_0x60fce9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x27adfc,'*Remove\x20format:*\x20%0',_0x60fce9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x109a9f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f3c3e){super(_0x2f3c3e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x9f8127=this['editor'],_0x55350b=_0x9f8127['model']['document']['selection'];if(!_0x9f8127['plugins']['has']('TableEditing'))return;const _0xd7bf40=_0x9f8127['locale'],_0x5507a4=_0x9f8127['plugins']['get']('TrackChangesEditing'),_0x156e2d=_0x9f8127['plugins']['get']('TableUtils');_0x5507a4['descriptionFactory']['registerElementLabel']('table',_0x16ceb9=>o(_0xd7bf40,'ELEMENT_TABLE',_0x16ceb9)),this['_setupColumnsRowsFixing'](),_0x5507a4['enableCommand']('insertTable'),_0x5507a4['enableCommand']('selectTableRow'),_0x5507a4['enableCommand']('selectTableColumn');for(const _0x20092a of['insertTableRowAbove','insertTableRowBelow']){const _0x423097=_0x9f8127['commands']['get'](_0x20092a);_0x5507a4['enableCommand'](_0x20092a,_0x409a74=>{_0x9f8127['model']['change'](_0x2a06a3=>{_0x409a74();const _0x16e930='above'===_0x423097['order'],_0x2693c3=_0x156e2d['getSelectionAffectedTableCells'](_0x55350b),_0x499dd3=_0x156e2d['getRowIndexes'](_0x2693c3),_0xfcadb7=_0x16e930?_0x499dd3['first']-0x1:_0x499dd3['last']+0x1,_0x54a0f6=_0x2693c3[0x0]['findAncestor']('table'),_0x26a90e=_0x156e2d['createTableWalker'](_0x54a0f6,{'startRow':_0xfcadb7,'endRow':_0xfcadb7}),_0x44cbc8=Array['from'](_0x26a90e)['map'](_0x341419=>_0x2a06a3['createRangeOn'](_0x341419['cell']));_0x5507a4['markMultiRangeInsertion'](_0x44cbc8,'tableRow');});});}for(const _0x129735 of['insertTableColumnLeft','insertTableColumnRight']){const _0xc4b07f=_0x9f8127['commands']['get'](_0x129735);_0x5507a4['enableCommand'](_0x129735,_0x41602f=>{_0x9f8127['model']['change'](_0x4b9c7b=>{_0x41602f();const _0x56d6a5='left'===_0xc4b07f['order'],_0x1b24d9=_0x156e2d['getSelectionAffectedTableCells'](_0x55350b),_0x4819e0=_0x156e2d['getColumnIndexes'](_0x1b24d9),_0x4feb1f=_0x56d6a5?_0x4819e0['first']-0x1:_0x4819e0['last']+0x1,_0x423e5d=_0x1b24d9[0x0]['findAncestor']('table'),_0xd5263d=_0x156e2d['createTableWalker'](_0x423e5d,{'startRow':0x0,'column':_0x4feb1f,'includeAllSlots':!0x1}),_0x40d831=Array['from'](_0xd5263d)['map'](_0x2039e4=>_0x4b9c7b['createRangeOn'](_0x2039e4['cell']));_0x5507a4['markMultiRangeInsertion'](_0x40d831,'tableColumn');});});}for(const _0x359b4a of['removeTableRow','removeTableColumn']){const _0x1edf14=_0x359b4a['substr'](0xb),_0xac8a9=_0x1edf14['toLowerCase'](),_0x18cd34=_0xac8a9['substr'](0x0,0x3)+'span',_0x3c4ecf='table'+_0x1edf14,_0x1daef4='min'+_0x1edf14,_0x2bd96b='max'+_0x1edf14;_0x5507a4['enableCommand'](_0x359b4a,()=>{_0x9f8127['model']['change'](_0x2d0ebe=>{const _0x376e26=_0x156e2d['getSelectionAffectedTableCells'](_0x55350b),_0x4cc24e=_0x376e26[0x0]['findAncestor']('table');let _0x429f8f;if('removeTableRow'==_0x359b4a){const _0x557a35=_0x156e2d['getRowIndexes'](_0x376e26);_0x429f8f={'startRow':_0x557a35['first'],'endRow':_0x557a35['last'],'includeAllSlots':!0x0};}else{const _0x4846fb=_0x156e2d['getColumnIndexes'](_0x376e26);_0x429f8f={'startColumn':_0x4846fb['first'],'endColumn':_0x4846fb['last'],'includeAllSlots':!0x0};}const _0x1ebf80=_0x156e2d['createTableWalker'](_0x4cc24e,_0x429f8f),_0x3fb5b0=Array['from'](_0x1ebf80)['map'](({cell:_0x39da90})=>_0x39da90),_0x457a8f=_e(_0x3fb5b0['filter'](_0x114016=>_0x114016['hasAttribute'](_0x18cd34))),_0xa2ce9d=_e(_0x3fb5b0['filter'](_0x23004e=>!_0x23004e['hasAttribute'](_0x18cd34)))['map'](_0x38e5e5=>_0x2d0ebe['createRangeOn'](_0x38e5e5)),_0x4b4b19=_0x5507a4['markMultiRangeDeletion'](_0xa2ce9d,_0x3c4ecf);if(_0x4b4b19&&('tableRow'==_0x4b4b19['subType']||'tableColumn'==_0x4b4b19['subType'])){const _0x1b5da6=this['_getSuggestionCoords'](_0x4b4b19);for(const _0x47c492 of _0x457a8f){const _0x754611=_0x2d0ebe['createRangeOn'](_0x47c492),_0x261cee=_0x156e2d['getCellLocation'](_0x47c492),_0x42b01d=_0x47c492['getAttribute'](_0x18cd34)-0x1,_0x433a90=_0x1b5da6[_0x1daef4],_0x17d090=_0x1b5da6[_0x2bd96b];_0x433a90<=_0x261cee[_0xac8a9]&&_0x261cee[_0xac8a9]+_0x42b01d<=_0x17d090&&_0x4b4b19['addRange'](_0x754611);}}});});}function _0x2ebab1(_0x55a576){const _0x5a6cdc=Array['from'](_0x55350b['getRanges']())['map'](_0x592626=>_0x2d2f8b['fromRange'](_0x592626));_0x9f8127['model']['change'](_0x5d5aab=>{const _0x12df83=_0x5d5aab['batch'];_0x55a576=_0x55a576['filter'](_0x29cc50=>'$graveyard'!=_0x29cc50['root']['rootName']),_0x5d5aab['setSelection'](_0x55a576),_0x9f8127['commands']['get']('removeTableRow')['refresh'](),_0x9f8127['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x9f8127['model']['enqueueChange'](()=>{_0x9f8127['model']['enqueueChange'](_0x12df83,_0x2561d3=>{const _0x527943=_0x5a6cdc['filter'](_0x3b3a6d=>'$graveyard'!=_0x3b3a6d['root']['rootName']);_0x527943['length']>0x0&&_0x2561d3['setSelection'](_0x527943);for(const _0x450bd3 of _0x5a6cdc)_0x450bd3['detach']();});});});}function _0x2298eb(_0x3d5094){_0x9f8127['model']['change'](_0x3220df=>{const _0x229ab9=Array['from'](_0x55350b['getRanges']())['map'](_0x3d836d=>_0x2d2f8b['fromRange'](_0x3d836d)),_0x25643f=[];for(const _0x5d2fff of _0x3d5094)for(const _0x12aed4 of _0x5d2fff['getItems']({'shallow':!0x0}))_0x25643f['push'](_0x12aed4);for(const _0x3b90a9 of _0x25643f)'$graveyard'!=_0x3b90a9['root']['rootName']&&(_0x3220df['setSelection'](_0x3220df['createPositionAt'](_0x3b90a9,0x0)),_0x9f8127['commands']['get']('removeTableColumn')['refresh'](),_0x9f8127['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59c338=_0x229ab9['filter'](_0x30826f=>'$graveyard'!=_0x30826f['root']['rootName']);_0x59c338['length']>0x0&&_0x3220df['setSelection'](_0x59c338);for(const _0x27ed82 of _0x229ab9)_0x27ed82['detach']();});}function _0x58bcb2(_0x5a53b6,_0x39cdb7){return _0x39cdb7['every'](_0x1b5809=>_0x5a53b6['some'](_0x2057ef=>_0x2057ef['end']['isEqual'](_0x1b5809['start'])||_0x1b5809['end']['isEqual'](_0x2057ef['start'])));}function _0x3915c0(_0x100c09,_0x2dbbb9){return!_0x100c09['some'](_0x3de3c9=>_0x2dbbb9['some'](_0x4368bc=>_0x3de3c9['isIntersecting'](_0x4368bc)))&&_0x100c09['some'](_0x284065=>_0x2dbbb9['some'](_0xd7295e=>_0x284065['end']['isTouching'](_0xd7295e['start'])));}_0x5507a4['descriptionFactory']['registerDescriptionCallback'](_0x7e4603=>{if('insertion'!=_0x7e4603['type']&&'deletion'!=_0x7e4603['type'])return;const _0x5e07dc=_0x7e4603['getContainedElement']();if(null!=_0x5e07dc&&_0x5e07dc['is']('element','table')){if('insertion'==_0x7e4603['type']){const _0x4c5300=_0x7e4603['getItems']()['filter'](_0x5441bc=>_0x5441bc['is']('$textProxy'))['map'](_0xac902c=>_0xac902c['data']);if(_0x4c5300['length'])return{'type':'insertion','content':o(_0xd7bf40,'*Insert:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c5300['join']('\x20')+'\x22'))};}if('deletion'==_0x7e4603['type']){const _0x108853=_0x7e4603['getItems']()['filter'](_0x58b115=>_0x58b115['is']('$textProxy'))['map'](_0x562786=>_0x562786['data']);if(_0x108853['length'])return{'type':'deletion','content':o(_0xd7bf40,'*Remove:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x108853['join']('\x20')+'\x22'))};}}}),_0x5507a4['descriptionFactory']['registerDescriptionCallback'](_0x5d130a=>{if('tableRow'==_0x5d130a['subType']){const _0x40c992=_0x5d130a['getItems']()['filter'](_0x4e6ce3=>_0x4e6ce3['is']('$textProxy'))['map'](_0x1f31cb=>_0x1f31cb['data']),_0x149916=this['_getSuggestionCoords'](_0x5d130a),_0x35db03=_0x149916['maxRow']-_0x149916['minRow']+0x1;if('insertion'==_0x5d130a['type'])return _0x40c992['length']?{'type':'insertion','content':o(_0xd7bf40,'*Insert:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35db03,'\x22'+_0x40c992['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd7bf40,'*Insert:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_ROW',_0x35db03))};if('deletion'==_0x5d130a['type'])return _0x40c992['length']?{'type':'deletion','content':o(_0xd7bf40,'*Remove:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x35db03,'\x22'+_0x40c992['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd7bf40,'*Remove:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_ROW',_0x35db03))};}if('tableColumn'==_0x5d130a['subType']){const _0x44ee89=_0x5d130a['getItems']()['filter'](_0x46d74b=>_0x46d74b['is']('$textProxy'))['map'](_0x592854=>_0x592854['data']),_0x293ac5=this['_getSuggestionCoords'](_0x5d130a),_0x373dd2=_0x293ac5['maxColumn']-_0x293ac5['minColumn']+0x1;if('insertion'==_0x5d130a['type'])return _0x44ee89['length']?{'type':'insertion','content':o(_0xd7bf40,'*Insert:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x373dd2,'\x22'+_0x44ee89['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xd7bf40,'*Insert:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_COLUMN',_0x373dd2))};if('deletion'==_0x5d130a['type'])return _0x44ee89['length']?{'type':'deletion','content':o(_0xd7bf40,'*Remove:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x373dd2,'\x22'+_0x44ee89['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xd7bf40,'*Remove:*\x20%0',o(_0xd7bf40,'ELEMENT_TABLE_COLUMN',_0x373dd2))};}}),_0x5507a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ebab1),_0x5507a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ebab1),_0x5507a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2298eb),_0x5507a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2298eb),_0x5507a4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58bcb2),_0x5507a4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58bcb2),_0x5507a4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3915c0),_0x5507a4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3915c0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3edc9c=this['editor'],_0x433c9b=_0x3edc9c['model']['document']['selection'];return(_0x373dfb,_0x485f6d)=>{_0x3edc9c['model']['change'](_0x195f81=>{const {commandName:_0x51ec4e,commandParams:_0x430611}=_0x485f6d;let _0x4705a2=_0x373dfb[0x0]['end']['nodeBefore'];_0x430611&&_0x430611[0x0]&&!0x1===_0x430611[0x0]['forceValue']&&(_0x4705a2=_0x373dfb[0x0]['start']['nodeAfter']);const _0x5897a8=_0x195f81['createRangeIn'](_0x4705a2);if('$graveyard'==_0x5897a8['root']['rootName'])return;const _0x5a7726=Array['from'](_0x433c9b['getRanges']())['map'](_0x36bad5=>_0x2d2f8b['fromRange'](_0x36bad5));_0x195f81['setSelection'](_0x5897a8),_0x3edc9c['commands']['get'](_0x51ec4e)['refresh'](),_0x430611['push']({'forceDefaultExecution':!0x0}),_0x3edc9c['execute'](_0x51ec4e,..._0x430611);const _0xd985f=_0x5a7726['filter'](_0x5b7deb=>'$graveyard'!=_0x5b7deb['root']['rootName']);_0xd985f['length']>0x0&&_0x195f81['setSelection'](_0xd985f);for(const _0x10bc54 of _0x5a7726)_0x10bc54['detach']();});};}['_getCoordsForCells'](_0x491d85){const _0x3cc1bd=this['editor']['plugins']['get']('TableUtils');let _0x5b2af6=Number['MAX_SAFE_INTEGER'],_0x1eb12b=Number['MIN_SAFE_INTEGER'],_0x335c8c=Number['MAX_SAFE_INTEGER'],_0x26a518=Number['MIN_SAFE_INTEGER'];for(const _0x1f77cb of _0x491d85){if('$graveyard'==_0x1f77cb['root']['rootName'])continue;const {row:_0x30b9c7,column:_0x250337}=_0x3cc1bd['getCellLocation'](_0x1f77cb),_0x1cd16b=_0x1f77cb['hasAttribute']('rowspan')?_0x1f77cb['getAttribute']('rowspan')-0x1:0x0,_0x59bacf=_0x1f77cb['hasAttribute']('colspan')?_0x1f77cb['getAttribute']('colspan')-0x1:0x0;_0x5b2af6=_0x30b9c7<_0x5b2af6?_0x30b9c7:_0x5b2af6,_0x1eb12b=_0x30b9c7+_0x1cd16b>_0x1eb12b?_0x30b9c7+_0x1cd16b:_0x1eb12b,_0x335c8c=_0x250337<_0x335c8c?_0x250337:_0x335c8c,_0x26a518=_0x250337+_0x59bacf>_0x26a518?_0x250337+_0x59bacf:_0x26a518;}return{'minRow':_0x5b2af6,'maxRow':_0x1eb12b,'minColumn':_0x335c8c,'maxColumn':_0x26a518};}['_setupColumnsRowsFixing'](){const _0x18f1ff=this['editor'],_0x2da017=_0x18f1ff['plugins']['get']('TrackChangesEditing'),_0x50c662=_0x18f1ff['plugins']['get']('TableUtils');_0x18f1ff['model']['document']['on']('change:data',()=>{const _0x214e98=Array['from'](_0x18f1ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d4671,data:_0x544945}of _0x214e98){const {group:_0x3f8e13,id:_0xdc65d4,subType:_0x5e05a2}=_0x2da017['_splitMarkerName'](_0x2d4671);if('suggestion'!=_0x3f8e13)continue;if(null!=_0x544945['oldRange'])continue;const _0x4693bd=_0x2da017['getSuggestion'](_0xdc65d4);this['_tablePostFixingSubtypes']['includes'](_0x5e05a2)&&this['_tableSuggestions']['add'](_0x4693bd);}},{'priority':'low'});const _0x1e37db=(_0x425656,_0x27dd04)=>{let _0x413334=!0x1;const _0x72789c=_0x27dd04['createRangeOn'](_0x425656),_0xd2c09a=_0x425656['findAncestor']('table'),_0x211c77=_0x50c662['getCellLocation'](_0x425656);for(const _0x32e19d of this['_tableSuggestions']){const _0x52d6a3=_0x32e19d['subType'],_0x4c4b4d=_0x52d6a3['startsWith']('tablePaste'),_0x56ab01=_0x52d6a3['substr'](_0x4c4b4d?0xa:0x5),_0x40f5de=_0x56ab01['toLowerCase'](),_0x13b969=_0x40f5de['substr'](0x0,0x3)+'span',_0x141a12='min'+_0x56ab01,_0x504b44='max'+_0x56ab01;if(!_0x32e19d['isInContent'])continue;if(_0xd2c09a!=_0x32e19d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32e19d['isIntersectingWithRange'](_0x72789c))continue;const _0x1c1f1a=_0x425656['hasAttribute'](_0x13b969)?_0x425656['getAttribute'](_0x13b969)-0x1:0x0,_0x10e12e=this['_getSuggestionCoords'](_0x32e19d),_0x2b896b=_0x10e12e[_0x141a12],_0xaacc2c=_0x10e12e[_0x504b44];_0x2b896b<=_0x211c77[_0x40f5de]&&_0x211c77[_0x40f5de]+_0x1c1f1a<=_0xaacc2c&&(_0x32e19d['addRange'](_0x72789c),_0x413334=!0x0);}return _0x413334;};_0x18f1ff['model']['document']['registerPostFixer'](_0x52dfc0=>{let _0x39a91b=!0x1;for(const _0xf27abe of _0x18f1ff['model']['document']['differ']['getChanges']())if('insert'==_0xf27abe['type']){if('tableRow'==_0xf27abe['name']){for(const _0x2cd593 of _0xf27abe['position']['nodeAfter']['getChildren']())_0x39a91b=_0x39a91b||_0x1e37db(_0x2cd593,_0x52dfc0);}else'tableCell'==_0xf27abe['name']&&(_0x39a91b=_0x39a91b||_0x1e37db(_0xf27abe['position']['nodeAfter'],_0x52dfc0));}return _0x39a91b;});}['_getSuggestionCoords'](_0x5da36c){return this['_getCoordsForCells'](_0x5da36c['getRanges']()['map'](_0x1a5b59=>_0x1a5b59['start']['nodeAfter']));}}function _e(_0x29f309){return Array['from'](new Set(_0x29f309)['values']());}class Bt extends _0x109a9f{static get['requires'](){return[Dt];}['afterInit'](){const _0x341297=this['editor'],_0x4f5fb2=_0x341297['model']['document']['selection'],_0x3b778d=_0x341297['locale'];if(!_0x341297['plugins']['has']('TableEditing'))return;const _0x515d3e=_0x341297['plugins']['get']('TrackChangesEditing'),_0x4227a6=_0x341297['plugins']['get']('TableUtils'),_0x34aaf0=_0x341297['plugins']['get'](Dt);_0x34aaf0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x515d3e['enableCommand']('mergeTableCells',()=>{const _0x491f61=_0x4227a6['getSelectionAffectedTableCells'](_0x341297['model']['document']['selection']);_0x341297['model']['change'](()=>{_0x515d3e['markMultiRangeBlockFormat'](_0x491f61,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x341297['commands']['get']('mergeTableCells')['on']('execute',(_0x5904b2,_0x1d523b)=>{_0x341297['commands']['get']('trackChanges')['value']&&(_0x1d523b['length']>0x0&&_0x1d523b[_0x1d523b['length']-0x1]&&_0x1d523b[_0x1d523b['length']-0x1]['forceDefaultExecution']||_0x515d3e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5904b2['stop']());},{'priority':'highest'});for(const _0x229237 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4955e6=_0x341297['commands']['get'](_0x229237);_0x515d3e['enableCommand'](_0x229237,()=>{const _0x4748ed=_0x341297['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ec614=>_0x4ec614['is']('element','tableCell')),_0x5b0028=_0x4955e6['value'];_0x341297['model']['change'](()=>{_0x515d3e['markMultiRangeBlockFormat']([_0x4748ed,_0x5b0028],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x27b52e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x231033=_0x341297['commands']['get'](_0x27b52e);_0x515d3e['enableCommand'](_0x27b52e,()=>{const _0x446d10=_0x4227a6['getSelectionAffectedTableCells'](_0x341297['model']['document']['selection'])[0x0],_0x120b4f=_0x446d10['findAncestor']('table'),{column:_0x240c4e,row:_0xab5449}=_0x4227a6['getCellLocation'](_0x446d10);let _0x4d6e7e=[];if('horizontally'==_0x231033['direction']){const _0x2fe7fb=_0x4227a6['createTableWalker'](_0x120b4f,{'startRow':_0xab5449,'endRow':_0xab5449,'includeAllSlots':!0x0});_0x4d6e7e=Array['from'](_0x2fe7fb)['map'](_0x3a286c=>_0x3a286c['cell']);}else{const _0x4adf80=_0x4227a6['createTableWalker'](_0x120b4f,{'column':_0x240c4e,'includeAllSlots':!0x0});_0x4d6e7e=Array['from'](_0x4adf80)['map'](_0x19f27b=>_0x19f27b['cell']);}_0x341297['model']['change'](_0x24bfc1=>{_0x515d3e['markBlockFormat'](_0x24bfc1['createRangeOn'](_0x446d10),{'commandName':_0x27b52e,'commandParams':[]},_0x4d6e7e,_0x27b52e);});});}_0x515d3e['descriptionFactory']['registerDescriptionCallback'](_0x373b9a=>{if('formatBlock'!=_0x373b9a['type']&&'formatInline'!=_0x373b9a['type'])return;const {data:_0x2e78fe}=_0x373b9a;return _0x2e78fe&&'mergeTableCells'==_0x2e78fe['commandName']?{'type':'format','content':o(_0x3b778d,'*Merge\x20cells*')}:void 0x0;}),_0x515d3e['descriptionFactory']['registerDescriptionCallback'](_0x181e59=>{if('formatBlock'!=_0x181e59['type']&&'formatInline'!=_0x181e59['type'])return;const {data:_0x157db5}=_0x181e59;return _0x157db5?'splitTableCellVertically'==_0x157db5['commandName']?{'type':'format','content':o(_0x3b778d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x157db5['commandName']?{'type':'format','content':o(_0x3b778d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4930de=_0x34aaf0['_acceptFormatSuggestionCallbackFactory']();for(const _0x4b0719 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x515d3e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b0719,'accept',_0x4930de);for(const _0x3b9f91 of['splitTableCellVertically','splitTableCellHorizontally'])_0x515d3e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b9f91,'accept',_0x4930de);_0x515d3e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1deba1=>{_0x341297['model']['change'](_0x2e290b=>{const _0x307d42=Array['from'](_0x4f5fb2['getRanges']())['map'](_0xb086cf=>_0x2d2f8b['fromRange'](_0xb086cf));_0x2e290b['setSelection'](_0x1deba1),_0x341297['commands']['get']('mergeTableCells')['refresh'](),_0x341297['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a8d50=_0x307d42['filter'](_0x4e4f67=>'$graveyard'!=_0x4e4f67['root']['rootName']);_0x5a8d50['length']>0x0&&_0x2e290b['setSelection'](_0x5a8d50);for(const _0x24cc3a of _0x307d42)_0x24cc3a['detach']();});});for(const _0x32b4fc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x289c5f=_0x341297['commands']['get'](_0x32b4fc);_0x289c5f['on']('set:isEnabled',(_0x37104a,_0xfed60e,_0x287368)=>{if(_0x287368){const _0x41386b=_0x341297['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x457b03=>_0x457b03['is']('element','tableCell'));this['_areMergableCells'](_0x289c5f['value'],_0x41386b)||(_0x37104a['return']=!0x1,_0x37104a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4fcbc1=this['editor']['commands']['get']('mergeTableCells'),_0x12fa23=this['editor']['plugins']['get']('TableUtils');if(!_0x4fcbc1['isEnabled'])return!0x1;const _0x3539fc=_0x12fa23['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ce7b of _0x3539fc)for(const _0x1779a5 of _0x3539fc)if(_0x30ce7b!=_0x1779a5&&!this['_areMergableCells'](_0x30ce7b,_0x1779a5))return!0x1;return!0x0;}['_areMergableCells'](_0x53bb5a,_0x1693c0){const _0x2512c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6a67=this['editor']['model']['createRangeOn'](_0x53bb5a),_0x14c4b0=this['editor']['model']['createRangeOn'](_0x1693c0),_0x11fa62=new Set(),_0x1c6f0a=new Set();for(const _0x1c6b02 of _0x2512c9['getSuggestions']())if(('insertion'==_0x1c6b02['type']||'deletion'==_0x1c6b02['type']||'mergeTableCells'==_0x1c6b02['subType'])&&_0x1c6b02['isInContent']){for(const _0x4624a1 of _0x1c6b02['getRanges']())_0x4624a1['containsRange'](_0x1f6a67,!0x0)&&_0x11fa62['add'](_0x1c6b02['type']+':'+_0x1c6b02['author']['id']),_0x4624a1['containsRange'](_0x14c4b0,!0x0)&&_0x1c6f0a['add'](_0x1c6b02['type']+':'+_0x1c6b02['author']['id']);}if(_0x11fa62['size']!=_0x1c6f0a['size'])return!0x1;for(const _0xea3318 of _0x11fa62)if(!_0x1c6f0a['has'](_0xea3318))return!0x1;return!0x0;}}class Ot extends _0x109a9f{static get['requires'](){return[Dt];}['afterInit'](){const _0x336ce5=this['editor'];if(!_0x336ce5['plugins']['has']('TableEditing'))return;const _0x282875=_0x336ce5['locale'],_0x1cb22a=_0x336ce5['plugins']['get']('TrackChangesEditing');_0x1cb22a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cb22a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cb22a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x282875,'FORMAT_HEADER_ROW')),_0x1cb22a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x282875,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x438407=this['editor']['plugins']['get']('TrackChangesEditing'),_0x202d18=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x438407['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x202d18),_0x438407['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x202d18),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x25bcfa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55f7c2=this['editor']['plugins']['get']('TableUtils');function _0x1b53d4({showActiveMarker:_0x10dcb8=!0x0,setDataAttribute:_0x30ae70=!0x0}={}){return(_0x207593,_0x2d87fb,_0x52f1b3)=>{const {type:_0x46b3fc,id:_0x1d1d37}=_0x25bcfa['_splitMarkerName'](_0x2d87fb['markerName']);if(!_0x25bcfa['hasSuggestion'](_0x1d1d37))return;const _0x2427de=_0x25bcfa['getSuggestion'](_0x1d1d37),_0x480012=_0x2427de['data'];if('formatBlock'!=_0x2427de['type']||!_0x480012||'setTableColumnHeader'!=_0x480012['commandName'])return;if(_0x2d87fb['item'])return void _0x207593['stop']();if(!_0x52f1b3['consumable']['consume'](_0x2d87fb['markerRange'],_0x207593['name']))return;const _0x3759be=_0x2d87fb['markerRange']['start']['nodeAfter'],_0x3221a6=_0x2d87fb['markerRange']['end']['nodeBefore'],_0x58ec1d=_0x3759be['parent']['parent'],{column:_0x48d79f}=_0x55f7c2['getCellLocation'](_0x3759be),{column:_0x572851}=_0x55f7c2['getCellLocation'](_0x3221a6);for(let _0x33141d=_0x48d79f;_0x33141d<=_0x572851;_0x33141d++){const _0x16e01d=_0x55f7c2['createTableWalker'](_0x58ec1d,{'column':_0x33141d,'includeAllSlots':!0x1});for(const _0x583cb1 of _0x16e01d){const _0x51464d=_0x583cb1['cell'],_0x1d6c20=_0x52f1b3['mapper']['toViewElement'](_0x51464d);_0x52f1b3['writer']['addClass']('ck-suggestion-marker-'+_0x46b3fc,_0x1d6c20),_0x30ae70&&_0x52f1b3['writer']['setAttribute']('data-suggestion',_0x1d1d37,_0x1d6c20),_0x52f1b3['mapper']['bindElementToMarker'](_0x1d6c20,_0x2d87fb['markerName']),_0x10dcb8&&(_0x25bcfa['activeMarkers']['includes'](_0x2d87fb['markerName'])?_0x52f1b3['writer']['addClass']('ck-suggestion-marker--active',_0x1d6c20):_0x52f1b3['writer']['removeClass']('ck-suggestion-marker--active',_0x1d6c20));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b53d4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2aa018,_0x4b3715,_0x48e142)=>{_0x48e142['options']['showSuggestionHighlights']&&_0x1b53d4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2aa018,_0x4b3715,_0x48e142);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x116466,_0x27af9e,_0x548347)=>{const {type:_0x2b1070,id:_0x3ef428}=_0x25bcfa['_splitMarkerName'](_0x27af9e['markerName']);if(!_0x25bcfa['hasSuggestion'](_0x3ef428))return;const _0x1162e9=_0x25bcfa['getSuggestion'](_0x3ef428),_0x3056ce=_0x1162e9['data'];if('formatBlock'!=_0x1162e9['type']||!_0x3056ce||'setTableColumnHeader'!=_0x3056ce['commandName'])return;const _0x406a21=_0x548347['mapper']['markerNameToElements'](_0x27af9e['markerName']);if(_0x406a21){for(const _0x25e88b of _0x406a21)_0x548347['writer']['removeClass']('ck-suggestion-marker-'+_0x2b1070,_0x25e88b),_0x548347['writer']['removeClass']('ck-suggestion-marker--active',_0x25e88b),_0x548347['writer']['removeAttribute']('data-suggestion',_0x25e88b),_0x548347['mapper']['unbindElementFromMarkerName'](_0x25e88b,_0x27af9e['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xb77ed5=this['editor'],_0xa32718=_0xb77ed5['locale'];function _0x1987a7(_0x5b433e){return{'type':'format','content':o(_0xa32718,'*Format:*\x20%0',_0x5b433e)};}_0xb77ed5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfdec0d=>{if('formatBlock'!=_0xfdec0d['type'])return;const {data:_0x58e340}=_0xfdec0d;if(_0x58e340){if('setTableRowHeader'==_0x58e340['commandName']){const _0x596139=_0x58e340['commandParams'][0x0]['forceValue'];return _0x1987a7(o(_0xa32718,_0x596139?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x58e340['commandName']){const _0x3f6ba5=_0x58e340['commandParams'][0x0]['forceValue'];return _0x1987a7(o(_0xa32718,_0x3f6ba5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x109a9f{['afterInit'](){const _0x4bd5b1=this['editor'],_0x5c2f42=_0x4bd5b1['locale'],_0x29d916=_0x4bd5b1['plugins']['get']('TrackChangesEditing');function _0x75e01c(_0x3281ab){return{'type':'format','content':''+o(_0x5c2f42,'*Set\x20table\x20type:*\x20%0',_0x3281ab)};}_0x4bd5b1['plugins']['has']('TableLayout')&&(_0x29d916['enableCommand']('insertTableLayout'),_0x29d916['enableDefaultAttributesIntegration']('tableType'),_0x29d916['descriptionFactory']['registerElementLabel'](_0x1a97b5=>_0x1a97b5['is']('element','table')&&'layout'===_0x1a97b5['getAttribute']('tableType'),_0x3afd35=>o(_0x5c2f42,'ELEMENT_LAYOUT_TABLE',_0x3afd35)),_0x29d916['descriptionFactory']['registerDescriptionCallback'](_0x1305f8=>{const {data:_0x1f4b49}=_0x1305f8;if(_0x1f4b49&&'tableType'==_0x1f4b49['key'])switch(_0x1f4b49['newValue']){case'layout':return _0x75e01c(o(_0x5c2f42,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x75e01c(o(_0x5c2f42,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x1e2458=>[_0x1e2458,null]));class Mt extends _0x109a9f{static get['requires'](){return[Dt];}['afterInit'](){const _0x1fca85=this['editor'];if(!_0x1fca85['plugins']['has']('TableClipboard'))return;const _0x304d0a=_0x1fca85['plugins']['get']('TrackChangesEditing'),_0x8fa8bc=_0x1fca85['plugins']['get']('TableUtils'),_0xdaf3ca=_0x1fca85['plugins']['get'](Dt),_0x2394f2=_0x1fca85['plugins']['get']('TableClipboard'),_0x3d653f=_0x1fca85['plugins']['get']('TableSelection'),_0x2e5a7b=_0x1fca85['plugins']['get'](_0x7a2f4b);_0xdaf3ca['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1fca85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1fca85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50be2b=null,_0x59b994=!0x1;_0x2e5a7b['on']('contentInsertion',(_0x2480b3,_0x24f3a6)=>{_0x59b994='paste'===_0x24f3a6['method'];}),_0x1fca85['model']['on']('insertContent',(_0x437fea,_0x3d32ec)=>{if(!_0x59b994&&null===_0x3d653f['getSelectedTableCells']())return;const [_0x5eeba4,_0xdda3f8]=_0x3d32ec,_0x36e00e=_0x3d32ec[_0x3d32ec['length']-0x1];_0x36e00e&&_0x36e00e['forceDefaultExecution']||_0x304d0a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x19a928,_0x169487,_0x253039,_0x3de410,_0x37dc63){if(_0x169487&&!_0x169487['is']('documentSelection'))return!0x1;const _0x55c85c=_0x37dc63['getTableIfOnlyTableInContent'](_0x19a928,_0x253039);if(!_0x55c85c||!Oe(_0x55c85c,void 0x0,_0x3de410))return!0x1;const _0x51ffba=_0x3de410['getSelectionAffectedTableCells'](_0x253039['document']['selection']);if(!_0x51ffba['length'])return!0x1;const _0x5cf9da=_0x51ffba[0x0]['findAncestor']('table'),_0x13b665=_0x3de410['getRowIndexes'](_0x51ffba),_0xe18c7c=_0x3de410['getColumnIndexes'](_0x51ffba),_0xf97a55={'startRow':_0x13b665['first'],'endRow':_0x13b665['last'],'startColumn':_0xe18c7c['first'],'endColumn':_0xe18c7c['last']};return 0x1==_0x51ffba['length']&&(_0xf97a55['endRow']+=_0x3de410['getRows'](_0x55c85c)-0x1,_0xf97a55['endColumn']+=_0x3de410['getColumns'](_0x55c85c)-0x1),Oe(_0x5cf9da,_0xf97a55,_0x3de410);}(_0x5eeba4,_0xdda3f8,_0x1fca85['model'],_0x8fa8bc,_0x2394f2)&&(_0x437fea['stop'](),_0x50be2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1fca85['model']['change'](()=>{_0x1fca85['model']['insertContent'](_0x3d32ec[0x0],_0x3d32ec[0x1],_0x3d32ec[0x2],{'forceDefaultExecution':!0x0});const _0x226de3=_0x53e807(),{rowInsertionRanges:_0x15e285,columnInsertionRanges:_0xa26791,insertionRanges:_0x316263,deletionRanges:_0xd23df6,cells:_0x413f7c}=_0x50be2b;_0x15e285['length']&&_0x304d0a['markMultiRangeInsertion'](_0x15e285,'tablePasteRow',{'tablePasteChainId':_0x226de3}),_0xa26791['length']&&_0x304d0a['markMultiRangeInsertion'](_0xa26791,'tablePasteColumn',{'tablePasteChainId':_0x226de3}),_0x316263['length']&&(_0x304d0a['markMultiRangeInsertion'](_0x316263,'tablePaste',{'tablePasteChainId':_0x226de3,'skipNestingCheck':!0x0}),_0x316263['forEach'](_0x4e2174=>_0x4e2174['detach']?.())),_0xd23df6['length']&&(_0x304d0a['markMultiRangeDeletion'](_0xd23df6,'tablePaste',{'tablePasteChainId':_0x226de3,'skipNestingCheck':!0x0}),_0xd23df6['forEach'](_0xbdd62c=>_0xbdd62c['detach']?.()));const _0x232982=_0x304d0a['markMultiRangeBlockFormat'](_0x413f7c['map'](({element:_0x255100})=>_0x255100),{'formatGroupId':_0x53e807()},[],'tablePasteCell',{'tablePasteChainId':_0x226de3});if(_0x232982){const _0x2834dd=_0x232982['getMarkers'](),_0x58911c=[];for(const {element:_0x1efac8,attributes:_0x1f01c9}of _0x413f7c){if(!_0x1f01c9)continue;const _0x264c3f=_0x1fca85['model']['createRangeOn'](_0x1efac8),_0x48e91d=_0x2834dd['find'](_0xe6687e=>_0xe6687e['getRange']()['isEqual'](_0x264c3f));_0x48e91d&&_0x58911c['push']([_0x48e91d['name'],_0x1f01c9]);}_0x58911c['length']&&_0x232982['setAttribute']('markerAttributes',Object['fromEntries'](_0x58911c));}_0x50be2b=null;}));},{'priority':_0x4f030a['high']+0xa}),_0x2e5a7b['on']('contentInsertion',()=>{_0x59b994=!0x1;},{'priority':'lowest'}),_0x1fca85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x18943c,_0x50b9d7)=>{const [_0x47ba56,_0x2633a3,,_0x3dff0a]=_0x50b9d7;if(!_0x50be2b)return;_0x18943c['stop']();const _0x1d3e43=_0x47ba56['cell'],_0xd42ff3=_0x2633a3,_0x3e8cce=Be(_0x1d3e43),_0x1b0e53=Be(_0xd42ff3);_0x18943c['return']=_0x1d3e43;let _0xc9529c=null,_0x31ea8d=null;if(_0x1b0e53||_0x3e8cce){if(_0x3e8cce&&!_0x1b0e53){_0x3dff0a['remove'](_0x1d3e43['getChild'](0x0));for(const _0x77bfae of Array['from'](_0xd42ff3['getChildren']()))_0x3dff0a['insert'](_0x77bfae,_0x1d3e43,'end');const _0x697d73=_0x50be2b['rowInsertionIndexes']['includes'](_0x47ba56['row']),_0x4a1d28=_0x50be2b['columnInsertionIndexes']['includes'](_0x47ba56['column']);_0x697d73||_0x4a1d28||(_0xc9529c=_0x2d2f8b['fromRange'](_0x3dff0a['createRangeIn'](_0x1d3e43)));}else _0x1b0e53&&!_0x3e8cce&&(_0x31ea8d=_0x3dff0a['createRangeIn'](_0x1d3e43));}else{const _0x2f3720=_0x3dff0a['createElement']('tableCellSuggestion'),_0x2c332d=_0x3dff0a['createElement']('tableCellSuggestion');_0x3dff0a['wrap'](_0x3dff0a['createRangeIn'](_0x1d3e43),_0x2c332d),_0x3dff0a['insert'](_0x2f3720,_0x1d3e43,0x0);for(const _0x2310a7 of Array['from'](_0xd42ff3['getChildren']()))_0x3dff0a['insert'](_0x2310a7,_0x2f3720,'end');_0xc9529c=_0x2d2f8b['fromRange'](_0x3dff0a['createRangeOn'](_0x2f3720)),_0x31ea8d=_0x2d2f8b['fromRange'](_0x3dff0a['createRangeOn'](_0x2c332d));}const _0x53f890=Array['from'](_0xd42ff3['getAttributes']())['filter'](([_0x268db0])=>Re['includes'](_0x268db0));_0x50be2b['cells']['push']({'element':_0x1d3e43,'attributes':_0x53f890['length']?Object['fromEntries'](_0x53f890):null}),_0xc9529c&&_0x50be2b['insertionRanges']['push'](_0xc9529c),_0x31ea8d&&_0x50be2b['deletionRanges']['push'](_0x31ea8d);},{'priority':'high'}),_0x8fa8bc['on']('insertColumns',(_0x5a8dd1,_0x2d9013)=>{const [_0x2d6f45,_0x1c5ee4={}]=_0x2d9013;if(!_0x50be2b)return;const _0xf3bfab=_0x1c5ee4['at']||0x0,_0x3cb3fd=_0x1c5ee4['columns']||0x1;_0x50be2b['columnInsertionIndexes']=new Array(_0x3cb3fd)['fill'](_0xf3bfab)['map']((_0x555828,_0x145aed)=>_0x555828+_0x145aed);for(const {cell:_0x544b02}of _0x8fa8bc['createTableWalker'](_0x2d6f45,{'startColumn':_0xf3bfab,'endColumn':_0xf3bfab+_0x3cb3fd-0x1}))_0x50be2b['columnInsertionRanges']['push'](_0x1fca85['model']['createRangeOn'](_0x544b02));},{'priority':'low'}),_0x8fa8bc['on']('insertRows',(_0x5dac33,_0x15b607)=>{const [_0x1ad88,_0x1c8392={}]=_0x15b607;if(!_0x50be2b)return;const _0x585a14=_0x1c8392['at']||0x0,_0x2de2ed=_0x1c8392['rows']||0x1;_0x50be2b['rowInsertionIndexes']=new Array(_0x2de2ed)['fill'](_0x585a14)['map']((_0x499013,_0x2fedb2)=>_0x499013+_0x2fedb2);for(const {cell:_0xcf7d4c}of _0x8fa8bc['createTableWalker'](_0x1ad88,{'startRow':_0x585a14,'endRow':_0x585a14+_0x2de2ed-0x1}))_0x50be2b['rowInsertionRanges']['push'](_0x1fca85['model']['createRangeOn'](_0xcf7d4c));},{'priority':'low'}),_0x304d0a['descriptionFactory']['registerDescriptionCallback'](_0x214ba1=>{if(_0x214ba1['subType']&&_0x214ba1['subType']['startsWith']('tablePaste'))return _0x214ba1['previous']?{}:{'type':'insertion','content':o(_0x1fca85['locale'],'*Replace\x20table\x20cells*')};});const _0x221c29=()=>!0x1;for(const _0x12c31c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x304d0a['_suggestionFactory']['registerCustomCallback']('insertion',_0x12c31c,'join',_0x221c29),_0x304d0a['_suggestionFactory']['registerCustomCallback']('deletion',_0x12c31c,'join',_0x221c29),_0x304d0a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12c31c,'join',_0x221c29);_0x304d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x221c29),_0x304d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35a038,_0x3ff624,_0x10862c)=>{const _0x5e81d7=_0x35a038['map'](_0x4fd9ba=>_0x4fd9ba['getContainedElement']())['filter'](_0x3d0bbc=>_0x3d0bbc),_0x1ccd3f=new Map(_0x5e81d7['map'](_0x40ce44=>[_0x40ce44,null]));if(_0x50be2b){for(const {element:_0x58902b,attributes:_0x38106d}of _0x50be2b['cells'])_0x38106d&&_0x1ccd3f['set'](_0x58902b,_0x38106d);}else{if(_0x10862c&&_0x10862c['markerAttributes'])for(const [_0x7f7396,_0x55c75e]of Object['entries'](_0x10862c['markerAttributes'])){const _0x291b85=_0x1fca85['model']['markers']['get'](_0x7f7396),_0x2de9b8=_0x291b85?_0x291b85['getRange']()['getContainedElement']():null;_0x2de9b8&&_0x1ccd3f['set'](_0x2de9b8,_0x55c75e);}}_0x1fca85['model']['change'](_0x465956=>{for(const [_0x2649b8,_0x5a2db8]of _0x1ccd3f)_0x465956['setAttributes']({...Ae,..._0x5a2db8},_0x2649b8);});});const _0x1578ac=(_0x27f486,_0x309cea)=>{_0x304d0a['_suggestionFactory']['registerCustomCallback'](_0x27f486,'tablePaste',_0x309cea,(_0x4b64a5,_0x142b00,_0x590977)=>{_0x1fca85['model']['change'](_0x1da947=>{const _0x3776c3=[];for(const _0x59d2d5 of _0x4b64a5){const _0x4e58f8=_0x59d2d5['start']['nodeAfter'];_0x4e58f8['is']('element','tableCellSuggestion')&&_0x3776c3['push'](_0x4e58f8);}_0x304d0a['_suggestionFactory']['getSuggestionCallback'](_0x27f486,null,_0x309cea)(_0x4b64a5,_0x142b00,_0x590977);for(const _0x53db0a of _0x3776c3)'$graveyard'!=_0x53db0a['root']['rootName']&&_0x1da947['unwrap'](_0x53db0a);});});};_0x1578ac('insertion','accept'),_0x1578ac('insertion','discard'),_0x1578ac('deletion','accept'),_0x1578ac('deletion','discard'),_0x304d0a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2deb30=>{const _0x242577=_0x2deb30['map'](_0x1d43e1=>_0x1d43e1['getContainedElement']()),_0x5b1807=_0x242577[0x0]['findAncestor']('table'),{minRow:_0x10bca5,maxRow:_0x2a0511}=_0xdaf3ca['_getCoordsForCells'](_0x242577);_0x8fa8bc['removeRows'](_0x5b1807,{'at':_0x10bca5,'rows':_0x2a0511-_0x10bca5+0x1});}),_0x304d0a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1089e8=>{const _0x6d0d95=_0x1089e8['map'](_0x239d98=>_0x239d98['getContainedElement']()),_0x493ac7=_0x6d0d95[0x0]['findAncestor']('table'),{minColumn:_0x31be19,maxColumn:_0x539a2a}=_0xdaf3ca['_getCoordsForCells'](_0x6d0d95);_0x8fa8bc['removeColumns'](_0x493ac7,{'at':_0x31be19,'columns':_0x539a2a-_0x31be19+0x1});});const _0x20fd42=(_0x49db2b,_0x5af2db)=>{if(!_0x5af2db['subType']||!_0x5af2db['subType']['startsWith']('tablePaste'))return;const _0xddf83=_0x5af2db['attributes']['tablePasteChainId'],_0x2749bd=_0x304d0a['getSuggestions']()['filter'](_0x20fd78=>_0x20fd78['isInContent']&&_0x20fd78['attributes']&&_0x20fd78['attributes']['tablePasteChainId']==_0xddf83);_0x2749bd['length']&&_0x5af2db['getAllAdjacentSuggestions']()['length']!=_0x2749bd['length']&&_0x2749bd['reduce']((_0x555136,_0x3ed419)=>(_0x555136['next']=_0x3ed419,_0x3ed419['previous']=_0x555136,_0x3ed419));};function _0x1961cb(_0x1c9b70,_0x36704c=!0x0){const {id:_0x5b3def,authorId:_0x18035e}=_0x304d0a['_splitMarkerName'](_0x1c9b70['markerName']),_0x22d148=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xcfd79d=_0x304d0a['activeMarkers']['includes'](_0x1c9b70['markerName']);return _0xcfd79d&&_0x22d148['push']('ck-suggestion-marker--active'),{'classes':_0x22d148,'attributes':{'data-suggestion':_0x5b3def,'data-author-id':_0x18035e},'priority':_0xcfd79d&&_0x36704c?0xbc2:0xbb8};}_0x304d0a['on']('suggestionLoaded',_0x20fd42,{'priority':'high'}),_0x304d0a['on']('suggestionUnloaded',_0x20fd42,{'priority':'high'}),_0x1fca85['model']['document']['registerPostFixer'](()=>{let _0x4a83b8=!0x1;const _0xcb5481=Array['from'](_0x1fca85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20d514,data:_0x30a6ec}of _0xcb5481){const {group:_0x4928d1,type:_0xcc099b,id:_0x52ca76}=_0x304d0a['_splitMarkerName'](_0x20d514);if('suggestion'!=_0x4928d1||'deletion'!=_0xcc099b||_0x30a6ec['oldRange'])continue;if(!_0x304d0a['hasSuggestion'](_0x52ca76))continue;const _0x48fb0b=_0x304d0a['getSuggestion'](_0x52ca76)['getRanges'](),_0x219a22=_0x1fca85['plugins']['get']('Users')['me'];for(const _0x34ca52 of _0x304d0a['getSuggestions']()){if(!_0x34ca52['isInContent']||_0x34ca52['author']!=_0x219a22)continue;if('formatBlock'!=_0x34ca52['type']||'tablePasteCell'!=_0x34ca52['subType'])continue;if(_0x34ca52['getRanges']()['every'](_0xc6d57a=>_0x48fb0b['some'](_0x22ced2=>_0x22ced2['containsRange'](_0xc6d57a,!0x0)))){for(const _0x51419b of _0x34ca52['getAllAdjacentSuggestions']())_0x51419b['isInContent']&&(_0x51419b['discard'](),_0x4a83b8=!0x0);}}}return _0x4a83b8;}),_0x1fca85['model']['document']['registerPostFixer'](_0x50740f=>{const _0x25fd85=_0x1fca85['commands']['get']('redo');if(!_0x25fd85||!_0x25fd85['_createdBatches']['has'](_0x50740f['batch']))return!0x1;let _0x7d2baf=!0x1;const _0x179727=_0x1fca85['plugins']['get']('Users')['me'],_0x53ed3b=_0x1fca85['model']['document']['differ']['getChanges'](),_0x10b209=Array['from'](_0x1fca85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5687a3,data:_0xa5689a})=>{const {group:_0x4ef894,subType:_0x382bfd,authorId:_0x5d0d1f}=_0x304d0a['_splitMarkerName'](_0x5687a3);return'suggestion'==_0x4ef894&&'tablePaste'==_0x382bfd&&_0x5d0d1f==_0x179727['id']&&!_0xa5689a['oldRange'];});for(const _0x1ec80f of _0x53ed3b){if('insert'!=_0x1ec80f['type']||'tableCellSuggestion'!=_0x1ec80f['name']||0x1!=_0x1ec80f['length'])continue;const _0x2c0d16=_0x50740f['createRange'](_0x1ec80f['position'],_0x1ec80f['position']['getShiftedBy'](0x1));if(!_0x10b209['find'](({data:_0x5d4fa0})=>_0x5d4fa0['newRange']['isEqual'](_0x2c0d16))){for(const {name:_0x52fed4,data:_0x54156f}of _0x10b209)if(_0x2c0d16['containsRange'](_0x54156f['newRange'])){_0x50740f['updateMarker'](_0x52fed4,{'range':_0x2c0d16}),_0x7d2baf=!0x0;break;}}}return _0x7d2baf;}),_0x1fca85['model']['document']['registerPostFixer'](_0x5ac0de=>{let _0x505fc2=!0x1;const _0x29d85c=_0x1fca85['plugins']['get']('Users')['me'],_0x552966=_0x304d0a['getSuggestions']()['filter'](_0x450f0a=>_0x450f0a['isInContent']&&_0x450f0a['author']==_0x29d85c),_0x4215ad=new Set(),_0x56923e=new Set();for(const _0xdaf135 of _0x552966)if('tablePaste'==_0xdaf135['subType'])for(const _0xeb5445 of _0xdaf135['getMarkers']()){const _0x3481fc=_0xeb5445['getRange']()['getContainedElement']();if(_0x3481fc){if(_0x3481fc['is']('element','tableCellSuggestion')&&Be(_0x3481fc)){_0xdaf135['removeMarker'](_0xeb5445['name']),_0x4215ad['add'](_0x3481fc),_0x505fc2=!0x0;const _0x801018=_0x3481fc['nextSibling'],_0x2754fb=_0x3481fc['previousSibling'],_0x378220=_0x801018&&_0x801018['is']('element','tableCellSuggestion'),_0x3456b7=_0x2754fb&&_0x2754fb['is']('element','tableCellSuggestion');_0x378220&&!_0x4215ad['has'](_0x801018)&&_0x56923e['add'](_0x801018),_0x3456b7&&!_0x4215ad['has'](_0x2754fb)&&_0x56923e['add'](_0x2754fb);}else _0x3481fc['is']('element','paragraph')&&_0x3481fc['isEmpty']&&(_0xdaf135['removeMarker'](_0xeb5445['name']),_0x505fc2=!0x0);}}else{if('tablePasteCell'==_0xdaf135['subType']){if(!_0xdaf135['attributes']||!_0xdaf135['attributes']['tablePasteChainId'])continue;const _0x24c4ce=_0xdaf135['attributes']['markerAttributes'];if(_0x24c4ce&&Object['keys'](_0x24c4ce)['length'])continue;const _0x2bae39=_0xdaf135['attributes']['tablePasteChainId'];let _0x4d1f9f=!0x0,_0x460ac6=!0x0;for(const _0x4627cd of _0x552966)if(_0x4627cd['subType']&&_0x4627cd['subType']['startsWith']('tablePaste')){if(!_0x4627cd['attributes']['tablePasteChainId']){_0x460ac6=!0x1;break;}if(_0x4627cd['id']!=_0xdaf135['id']&&_0x4627cd['attributes']['tablePasteChainId']==_0x2bae39){_0x4d1f9f=!0x1;break;}}_0x460ac6&&_0x4d1f9f&&(_0xdaf135['removeMarkers'](),_0x505fc2=!0x0);}}for(const _0x31e693 of _0x4215ad)_0x5ac0de['remove'](_0x31e693);for(const _0x52de15 of _0x56923e)_0x5ac0de['unwrap'](_0x52de15);return _0x505fc2;}),_0x1fca85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3083f6=>_0x1961cb(_0x3083f6),'converterPriority':'high'}),_0x1fca85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x43fc21,_0x38710a)=>_0x38710a['options']['showSuggestionHighlights']?_0x1961cb(_0x43fc21,!0x1):null,'converterPriority':'high'});const _0x4a8ce8=_0x1fca85['editing']['view'];this['listenTo'](_0x4a8ce8['document'],'clipboardOutput',(_0x10db67,_0x50e232)=>{const _0x57a710=[];for(const _0x3d0da6 of _0x4a8ce8['createRangeIn'](_0x50e232['content'])['getItems']())_0x3d0da6['is']('element','suggestion-td')&&_0x57a710['push'](_0x3d0da6);_0x4a8ce8['change'](_0x239bea=>{for(const _0x4795e7 of _0x57a710)_0x239bea['move'](_0x239bea['createRangeIn'](_0x4795e7),_0x239bea['createPositionBefore'](_0x4795e7)),_0x239bea['remove'](_0x4795e7);});});}}function Be(_0x5efc21){if(_0x5efc21['isEmpty'])return!0x0;const _0x2ad745=_0x5efc21['getChild'](0x0);return _0x2ad745['is']('element','paragraph')&&_0x2ad745['isEmpty'];}function Oe(_0x8a341d,_0x49c680={},_0x290400){for(const {isAnchor:_0x3f5c44,cellHeight:_0x5a78bc,cellWidth:_0x5f50b8}of _0x290400['createTableWalker'](_0x8a341d,{'includeAllSlots':!0x0,..._0x49c680}))if(!_0x3f5c44||0x1!=_0x5a78bc||0x1!=_0x5f50b8)return!0x1;return!0x0;}class Rt extends _0x109a9f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d510d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d510d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d510d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d510d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d510d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d510d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d510d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x132970,_0x48daf1){const _0x92858e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44ea48=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x41b5ed=_0x48daf1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22533a=_0x44ea48['getColumnGroupElement'](_0x41b5ed);let _0x201954=_0x22533a?_0x44ea48['getTableColumnsWidths'](_0x22533a):null,_0x3cbbc2=_0x41b5ed['getAttribute']('tableWidth')||null;const _0x22e83c=_0x48daf1['tableWidth']||_0x3cbbc2,_0x2bdf2b=_0x48daf1['columnWidths']||_0x201954,_0x331203=this['editor']['plugins']['get']('Users')['me'];for(const _0x52e720 of _0x92858e['getSuggestions']()){const _0x5ca07f=_0x52e720['getContainedElement']();if('resizeTable'===_0x52e720['subType']&&_0x5ca07f===_0x41b5ed){_0x52e720['author']!==_0x331203&&_0x52e720['discard']();const _0x4037c6=_0x52e720['data']['commandParams'];_0x3cbbc2=_0x4037c6[0x0]['tableWidth'],_0x201954=_0x4037c6[0x0]['columnWidths'];break;}}_0x132970({'table':_0x41b5ed,'tableWidth':_0x22e83c,'columnWidths':_0x2bdf2b}),_0x92858e['markBlockFormat'](_0x41b5ed,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3cbbc2,'columnWidths':_0x201954}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x419cc1){if('formatBlock'!=_0x419cc1['type']&&'formatInline'!=_0x419cc1['type'])return;const {data:_0x227a9f}=_0x419cc1;if(_0x227a9f&&'resizeTable'===_0x227a9f['formatGroupId']){const _0x3d63ac='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d63ac)};}}}class Tt extends _0x109a9f{['afterInit'](){const _0x44b7cd=this['editor'];_0x44b7cd['plugins']['has']('Template')&&_0x44b7cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x109a9f{['afterInit'](){const _0x43c8d9=this['editor'];if(!_0x43c8d9['commands']['get']('insertTableOfContents'))return;_0x43c8d9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4c83b6=_0x43c8d9['plugins']['get']('TrackChangesEditing'),_0x34c480=_0x43c8d9['locale'];_0x4c83b6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ea0ba=>o(_0x34c480,'ELEMENT_TABLE_OF_CONTENTS',_0x1ea0ba));}}class Ut extends _0x109a9f{['afterInit'](){const _0x5aa3d5=this['editor'];if(!_0x5aa3d5['plugins']['has']('Title'))return;const _0x20d89b=_0x5aa3d5['plugins']['get']('TrackChangesEditing');_0x20d89b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5aa3d5['locale'],'ELEMENT_TITLE')),_0x5aa3d5['model']['document']['registerPostFixer'](_0x4bc161=>{let _0x5145ac=!0x1;const _0x3063a9=Array['from'](_0x5aa3d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dc07b,data:_0x5ad141}of _0x3063a9){const {group:_0x1bd899}=_0x20d89b['_splitMarkerName'](_0x5dc07b);if('suggestion'!==_0x1bd899||!_0x5ad141['newRange'])continue;const _0x56a672=_0x5ad141['newRange'],_0x8627ff=_0x56a672['end']['nodeBefore'];if(!_0x8627ff||!_0x8627ff['is']('element','title-content'))continue;if(!_0x56a672['start']['isTouching'](_0x56a672['end']))continue;const _0xe39e31=_0x5aa3d5['model']['schema']['getNearestSelectionRange'](_0x56a672['end'],'forward');if(_0xe39e31&&_0xe39e31['isCollapsed']){const _0x48a11e=_0x4bc161['createRange'](_0x56a672['start'],_0xe39e31['start']);_0x48a11e['isEqual'](_0x56a672)||(_0x4bc161['updateMarker'](_0x5dc07b,{'range':_0x48a11e}),_0x5145ac=!0x0);}_0x5145ac||(_0x4bc161['removeMarker'](_0x5dc07b),_0x5145ac=!0x0);}return _0x5145ac;});}}class Vt extends _0x109a9f{['afterInit'](){const _0x1473bf=this['editor'],_0x1d8064=_0x1473bf['plugins']['get']('TrackChangesEditing');_0x1473bf['plugins']['has']('Uploadcare')&&(_0x1d8064['enableCommand']('uploadcare'),_0x1473bf['plugins']['has']('UploadcareImageEdit')&&(_0x1d8064['enableCommand']('uploadcareImageEdit'),_0x1d8064['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d8064['descriptionFactory']['registerDescriptionCallback'](_0x4f3394=>{if('attribute'!=_0x4f3394['type'])return;const {data:_0x2a7050}=_0x4f3394;return _0x2a7050&&'uploadcareImageId'==_0x2a7050['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x109a9f{['afterInit'](){const _0x26f60b=this['editor'],_0x1b109f=_0x26f60b['plugins']['get']('TrackChangesEditing');_0x26f60b['plugins']['has']('UndoEditing')&&(_0x1b109f['enableCommand']('undo'),_0x1b109f['enableCommand']('redo'));}}class Pt extends _0x109a9f{static get['requires'](){return[Dt];}['afterInit'](){const _0x143752=this['editor'];if(!_0x143752['plugins']['has']('TableCaptionEditing'))return;_0x143752['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x109a9f{['tableProperties'];['tableCellProperties'];constructor(_0x5a4035){super(_0x5a4035),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5a4035['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 _0x420265=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c5eda of this['tableProperties'])_0x420265['enableCommand'](_0x2c5eda,(_0x4ae3a0,_0x10322f)=>{const _0x594d52=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c5eda,[_0x594d52],this['tableProperties'],'tableProperties',_0x4ae3a0,_0x10322f);});_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x420265['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d29a8,_0x5466d8)=>this['handleDiscardAction'](this['tableProperties'],_0x2d29a8,_0x5466d8)),_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xeae723 of this['tableCellProperties'])this['editor']['commands']['get'](_0xeae723)&&_0x420265['enableCommand'](_0xeae723,(_0x643506,_0x2e97dc)=>{const _0xb9bd05=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xeae723,_0xb9bd05,this['tableCellProperties'],'tableCellProperties',_0x643506,_0x2e97dc);});_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x420265['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47a8a7,_0x33d71a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47a8a7,_0x33d71a)),_0x420265['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x420265['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x420265['descriptionFactory']['registerDescriptionCallback'](_0x34c3d7=>this['handleSuggestionDescription'](_0x34c3d7)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1a88c1,_0x2a27cb,_0xf69766,_0xe71fd0,_0x430025,_0xa32c63){const _0x557eee=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xa32c63['batch'],()=>{for(const _0x54a01a of _0x2a27cb){if(this['_getSuggestion'](_0x54a01a,_0xe71fd0))_0x430025(_0xa32c63);else{const _0x16306f={};for(const _0x493abd of _0xf69766){const _0x5c72d8=_0x54a01a['getAttribute'](_0x493abd);void 0x0!==_0x5c72d8&&(_0x16306f[_0x493abd]=_0x5c72d8);}_0x430025(_0xa32c63),_0x557eee['markBlockFormat'](_0x54a01a,{'commandParams':[_0x16306f]},[],_0xe71fd0);}}});}['handleDiscardAction'](_0x3f7f8e,_0x59d800,_0x270444){const _0x27ed56=_0x59d800[0x0]['start']['nodeAfter'],_0x31a50b=_0x270444['commandParams'][0x0];this['editor']['model']['change'](_0x52c84d=>{for(const _0x225248 of _0x3f7f8e)void 0x0!==_0x31a50b[_0x225248]?_0x52c84d['setAttribute'](_0x225248,_0x31a50b[_0x225248],_0x27ed56):_0x52c84d['removeAttribute'](_0x225248,_0x27ed56);});}['handleSuggestionDescription'](_0xdb5a0c){if(_0xdb5a0c['data'])switch(_0xdb5a0c['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'](_0x438f08,_0x5747d8){const _0x34e973=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f06c5 of _0x34e973['getSuggestions']({'skipNotAttached':!0x0})){const _0x16c46f=_0x2f06c5['getContainedElement']();if(_0x2f06c5['subType']===_0x5747d8&&_0x16c46f===_0x438f08)return _0x2f06c5;}return null;}['_registerTablePropertiesAttributes'](){const _0x2a6b3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e756d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x30f93d of _0x3e756d){const _0x1d3fbc=_0x30f93d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2a6b3b['descriptionFactory']['registerAttributeLabel'](_0x30f93d,o(this['editor']['locale'],'FORMAT_'+_0x1d3fbc));}}}class Lt extends _0x109a9f{['afterInit'](){const _0x49c5a7=this['editor'];if(!_0x49c5a7['plugins']['has']('LineHeight'))return;const _0x272cc5=_0x49c5a7['plugins']['get']('TrackChangesEditing'),_0x4b6f51=_0x49c5a7['locale'];_0x272cc5['enableDefaultAttributesIntegration']('lineHeight'),_0x272cc5['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4b6f51,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x109a9f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x37c103,_0x27bc1a,_0x71370b,_0x4d2747,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(_0x45ec34){super(_0x45ec34),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x387f9d,_0x1d59f1,_0x3d235a,_0x4c9122)=>{this['_model']['change'](()=>{for(const _0x2ad873 of[..._0x4c9122,..._0x3d235a])this['_model']['markers']['has'](_0x2ad873)&&_0x45ec34['editing']['reconvertMarker'](_0x2ad873);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45ec34['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45ec34['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45ec34['config']['get']('trackChanges.trackFormatChanges'),_0x45ec34['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45ec34['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x45ec34,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x532c25=this['editor'];_0x532c25['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48426a,{writer:_0x57b3d5})=>{let _0x5f2bf1='suggestion:'+_0x48426a['getAttribute']('suggestion-type')+':'+_0x48426a['getAttribute']('id');return _0x48426a['getAttribute']('marker-count')&&(_0x5f2bf1+=':'+_0x48426a['getAttribute']('marker-count')),_0x57b3d5['createElement']('$marker',{'data-name':_0x5f2bf1});}}),_0x532c25['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x532c25['model']['document']['registerPostFixer'](_0x28ea81=>{let _0x372da8=!0x1;const _0x2f4317=Array['from'](_0x532c25['model']['document']['differ']['getChangedMarkers']()),_0x93bb9d=new Set();for(const {name:_0x71360d,data:_0x2c6b3f}of _0x2f4317){const {group:_0x558d23,type:_0xa6e524,subType:_0x2415a2,id:_0x3a95b8}=this['_splitMarkerName'](_0x71360d);if('suggestion'!==_0x558d23)continue;const _0x2c42e0=_0x2415a2?'suggestion:'+_0xa6e524+':'+_0x2415a2+':'+_0x3a95b8:'suggestion:'+_0xa6e524+':'+_0x3a95b8,_0x9bf3b0=_0x532c25['model']['markers']['getMarkersGroup'](_0x2c42e0),_0x38f418=_0x532c25['model']['markers']['get'](_0x71360d),_0x2b8cd7=this['_suggestions']['get'](_0x3a95b8);if(null!=_0x2c6b3f['newRange']){'formatInline'==_0xa6e524&&(_0x372da8=_0x372da8||Wt(_0x2c6b3f['newRange'],_0x71360d,_0x28ea81,_0x532c25['model']['schema']));const _0x14b4d0='attribute'==_0xa6e524&&this['_isBlockAttribute'](_0x2415a2['split']('|')[0x0]),_0x29d151='attribute'==_0xa6e524&&this['_isInlineAttribute'](_0x2415a2['split']('|')[0x0]);if(_0x2c6b3f['newRange']['isCollapsed']||'$graveyard'==_0x2c6b3f['newRange']['root']['rootName']||'formatBlock'==_0xa6e524&&!Qt(_0x2c6b3f['newRange'])||_0x14b4d0&&!Qt(_0x2c6b3f['newRange'])||_0x29d151&&Xt(_0x2c6b3f['newRange'])||'deletion'==_0xa6e524&&Xt(_0x2c6b3f['newRange'])||_0x38f418&&Yt(_0x38f418,_0x9bf3b0))_0x28ea81['removeMarker'](_0x71360d),_0x372da8=!0x0;else{if(!_0x2b8cd7||!_0x2b8cd7['isInContent'])continue;if(_0x2c6b3f['newRange']&&_0x2c6b3f['oldRange']&&_0x2c6b3f['newRange']['isEqual'](_0x2c6b3f['oldRange']))continue;_0x93bb9d['add'](_0x2b8cd7);}}}return _0x93bb9d['size']>0x0&&(_0x372da8=!!this['_joinWithAdjacentSuggestions'](_0x93bb9d)||_0x372da8),_0x372da8;}),_0x532c25['model']['document']['registerPostFixer'](_0x51c1ed=>{let _0x196d76=!0x1;for(const _0x2834af of _0x532c25['model']['document']['differ']['getChanges']())if('insert'==_0x2834af['type'])for(const _0x32cc00 of this['_suggestions']['values']()){if(_0x32cc00['isMultiRange']||!_0x32cc00['isInContent'])continue;const _0x1efa0d='formatBlock'==_0x32cc00['type'],_0x2fff7a=this['_getAttributeKey'](_0x32cc00),_0x201574=_0x2fff7a&&this['_isBlockAttribute'](_0x2fff7a);if(!_0x1efa0d&&!_0x201574)continue;const _0x468bec=_0x32cc00['getFirstRange']();if(_0x468bec['start']['parent']!=_0x468bec['end']['parent']&&!_0x468bec['end']['isAtEnd']){const _0x42c653=_0x532c25['model']['createPositionAt'](_0x468bec['start']['nodeAfter'],'end'),_0x47847b=_0x532c25['model']['createRange'](_0x468bec['start'],_0x42c653);_0x51c1ed['updateMarker'](_0x32cc00['getFirstMarker'](),{'range':_0x47847b}),_0x196d76=!0x0;}}return _0x196d76;}),_0x532c25['model']['document']['registerPostFixer'](_0x28b120=>this['_processAttributeChanges'](_0x28b120)),_0x532c25['model']['document']['registerPostFixer'](_0x1ccfcc=>!_0x1ccfcc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1ccfcc)),_0x532c25['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x532c25['model']['document']['on']('change:data',(_0x1647eb,_0x310cd7)=>{if(!_0x310cd7['isLocal']||_0x310cd7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x350684=_0x532c25['model']['document']['differ']['getChanges']();if(0x0==_0x350684['length'])return;const _0x4ac41c=[],_0x2fbd79=_0x350684['filter'](_0xbb69cc=>'attribute'==_0xbb69cc['type']),_0x12b476=_0x350684['filter'](_0x4514ea=>'insert'==_0x4514ea['type']&&'$text'!=_0x4514ea['name']);for(const _0x4546bb of _0x2fbd79)this['_isRegisteredAttribute'](_0x4546bb['attributeKey'])&&_0x4ac41c['push']({'key':_0x4546bb['attributeKey'],'newValue':_0x4546bb['attributeNewValue'],'oldValue':_0x4546bb['attributeOldValue'],'range':Zt(_0x4546bb['range'],_0x532c25['model'])});for(const _0x101c92 of _0x12b476){if('rename'!=_0x101c92['action']&&'refresh'!=_0x101c92['action'])continue;const _0x1bd1c2=tn(_0x101c92['position']['nodeAfter'],_0x532c25['model']),_0x2a708b=_0x101c92['before'];'rename'==_0x101c92['action']&&_0x4ac41c['push']({'key':m,'newValue':_0x101c92['name'],'oldValue':_0x2a708b['name'],'range':_0x1bd1c2});for(const [_0x1892c6,_0x1c579b]of _0x2a708b['attributes']){if(!this['_isRegisteredAttribute'](_0x1892c6))continue;const _0x245f32=_0x101c92['attributes']['get'](_0x1892c6);_0x1c579b!==_0x245f32&&_0x4ac41c['push']({'key':_0x1892c6,'newValue':_0x245f32,'oldValue':_0x1c579b,'range':_0x1bd1c2});}for(const [_0x3521fa,_0x3da0f8]of _0x101c92['attributes'])this['_isRegisteredAttribute'](_0x3521fa)&&(_0x2a708b['attributes']['has'](_0x3521fa)||_0x4ac41c['push']({'key':_0x3521fa,'newValue':_0x3da0f8,'oldValue':null,'range':_0x1bd1c2}));}0x0!=_0x4ac41c['length']&&_0x532c25['model']['enqueueChange'](_0x310cd7,_0x5c41d9=>{const _0x394c5b=_0x53e807();for(const {range:_0xbe673,key:_0x569ce8,oldValue:_0x3efafc,newValue:_0x3a4e8b}of _0x4ac41c)this['markAttributeChange'](_0xbe673,_0x569ce8,_0x3efafc,_0x3a4e8b,{'groupId':_0x394c5b});this['_reduceExistingSuggestions'](_0x5c41d9,_0x4ac41c);});},{'priority':'lowest'}),_0x532c25['model']['markers']['on']('update:suggestion',(_0x40c544,_0x533a88,_0x118c82)=>{if(null==_0x118c82){const {id:_0x1e2003}=this['_splitMarkerName'](_0x533a88['name']),_0x2e11ba=this['_suggestions']['get'](_0x1e2003);_0x2e11ba&&_0x2e11ba['addMarkerName'](_0x533a88['name']);}}),_0x532c25['model']['document']['on']('change:data',()=>{const _0x30f0a0=Array['from'](_0x532c25['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3e9b6e=>'suggestion'===this['_splitMarkerName'](_0x3e9b6e['name'])['group']);if(0x0===_0x30f0a0['length'])return;_0x30f0a0['sort']((_0x45b379,_0x35a2cb)=>{const _0x5c0e37=_0x45b379['data']['oldRange'],_0x4fe7af=_0x35a2cb['data']['oldRange'];return null===_0x5c0e37&&null===_0x4fe7af?0x0:null===_0x5c0e37&&null!==_0x4fe7af?-0x1:null!==_0x5c0e37&&null===_0x4fe7af?0x1:_0x5c0e37['start']['isBefore'](_0x4fe7af['start'])?-0x1:0x1;});const _0x49212c=new Set(),_0x416619=new Set();for(const {name:_0x45c3a5,data:_0x410c6d}of _0x30f0a0){const {id:_0x208929}=this['_splitMarkerName'](_0x45c3a5);if(null===_0x410c6d['oldRange']){const _0x160047=this['_handleNewSuggestionMarker'](_0x45c3a5);_0x416619['add'](_0x160047);}else{const _0xd445ce=this['_suggestions']['get'](_0x208929);null!==_0x410c6d['newRange']||_0xd445ce['isInContent']?(_0x49212c['add'](_0xd445ce['head']),_0x416619['add'](_0xd445ce)):this['_removeSuggestion'](_0xd445ce);}}_0x416619['size']>0x0&&this['_refreshSuggestionsChain'](_0x416619);for(const _0x11d0f6 of _0x49212c)this['fire']('suggestionChanged',_0x11d0f6);}),_0x532c25['model']['on']('applyOperation',(_0x2477fe,_0xd275aa)=>{const _0x54faf9=_0xd275aa[0x0];if(!this['_suggestions']['size'])return;if(!_0x54faf9['isDocumentOperation'])return;if(_0x54faf9['batch']['isUndo']||!_0x54faf9['batch']['isLocal'])return;let _0x5df3bb,_0xa28329;switch(_0x54faf9['type']){case'insert':_0x5df3bb=_0x532c25['model']['createPositionAt'](_0x54faf9['position']),_0xa28329=_0x5df3bb['getShiftedBy'](_0x54faf9['howMany']);break;case'split':_0x5df3bb=_0x532c25['model']['createPositionAt'](_0x54faf9['splitPosition']),_0xa28329=_0x532c25['model']['createPositionAt'](_0x54faf9['moveTargetPosition']);break;case'move':_0x5df3bb=_0x532c25['model']['createPositionAt'](_0x54faf9['targetPosition']),_0xa28329=_0x5df3bb['getShiftedBy'](_0x54faf9['howMany']);break;default:return;}const _0x40a669=_0x532c25['model']['createRange'](_0x5df3bb,_0xa28329);_0x532c25['model']['change'](()=>{for(const {suggestion:_0x5bf8ba,meta:_0x5becd3}of this['_findSuggestions'](_0x40a669)){if(_0x5bf8ba['isMultiRange'])continue;if('formatInline'==_0x5bf8ba['type'])continue;const _0x461fc0=this['_getAttributeKey'](_0x5bf8ba);if(_0x461fc0&&this['_isBlockAttribute'](_0x461fc0)&&'split'!=_0x54faf9['type'])continue;const _0x2c8a5a=_0x5bf8ba['data']&&_0x5bf8ba['data']['multipleBlocks'];('formatBlock'!=_0x5bf8ba['type']||'split'==_0x54faf9['type']&&!_0x2c8a5a)&&(_0x5becd3['containsRangeInObject']||'insertion'==_0x5bf8ba['type']&&_0x5becd3['isOwn']||_0x5bf8ba['getFirstRange']()['containsRange'](_0x40a669)&&this['_breakSuggestionMarker'](_0x5bf8ba,_0x5df3bb,_0xa28329));}});},{'priority':'lowest'}),_0x532c25['model']['on']('deleteContent',(_0x403fcf,_0x19ccad)=>{const _0x3911da=_0x19ccad[0x0],_0x3ce085=_0x19ccad[0x1];if(_0x3ce085&&_0x3ce085['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3911da['isCollapsed'])return;const _0x3a2a0d=_0x532c25['model']['schema'],{start:_0xf5da73,end:_0x522c66}=_0x3911da['getFirstRange'](),_0x50a76f=_0xf5da73['nodeAfter']&&_0x3a2a0d['isLimit'](_0xf5da73['nodeAfter'])?null:_0x3a2a0d['getNearestSelectionRange'](_0xf5da73,'forward'),_0x336d67=_0x522c66['nodeBefore']&&_0x3a2a0d['isLimit'](_0x522c66['nodeBefore'])?null:_0x3a2a0d['getNearestSelectionRange'](_0x522c66,'backward'),_0x4448a2=_0x532c25['model']['createRange'](_0x50a76f?_0x50a76f['start']:_0xf5da73,_0x336d67?_0x336d67['end']:_0x522c66);_0x532c25['model']['change'](_0x1f5b96=>{this['markDeletion'](_0x4448a2);const _0x858870=_0x532c25['model']['schema']['getNearestSelectionRange'](_0x4448a2['start']);_0x3911da['is']('documentSelection')?_0x1f5b96['setSelection'](_0x858870):_0x3911da['setTo'](_0x858870);}),_0x403fcf['stop']();},{'priority':_0x4f030a['normal']+0xa}),_0x532c25['model']['on']('insertContent',(_0x34d450,_0x46ff6e)=>{const _0x3faa21=_0x46ff6e[_0x46ff6e['length']-0x1];_0x3faa21&&_0x3faa21['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x532c25['model']['change'](()=>{let _0xe292b8=_0x532c25['model']['insertContent'](_0x46ff6e[0x0],_0x46ff6e[0x1],_0x46ff6e[0x2],{'forceDefaultExecution':!0x0});if(!_0xe292b8)return;_0x34d450['return']=_0xe292b8['clone']();const _0x21d749=_0xe292b8['end']['nodeBefore'],_0x5ca346=_0x532c25['model']['schema'];_0x21d749&&_0x5ca346['isBlock'](_0x21d749)&&!_0x5ca346['isObject'](_0x21d749)&&(_0xe292b8=_0x532c25['model']['createRange'](_0xe292b8['start'],_0x532c25['model']['createPositionAt'](_0x21d749,'end'))),this['markInsertion'](_0xe292b8);}),_0x34d450['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x170ac4=new O(_0x532c25,this['_suggestions']);_0x532c25['commands']['add']('acceptSuggestion',_0x170ac4),this['enableCommand']('acceptSuggestion');const _0x453c0e=new x(_0x532c25,this['_suggestions']);_0x532c25['commands']['add']('discardSuggestion',_0x453c0e),this['enableCommand']('discardSuggestion'),_0x532c25['commands']['add']('acceptAllSuggestions',new M(_0x532c25,_0x170ac4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x532c25['commands']['add']('discardAllSuggestions',new M(_0x532c25,_0x453c0e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x532c25['commands']['add']('acceptSelectedSuggestions',new R(_0x532c25,_0x170ac4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x532c25['commands']['add']('discardSelectedSuggestions',new R(_0x532c25,_0x453c0e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x451723=_0x532c25['plugins']['get']('CommentsRepository');this['listenTo'](_0x451723,'addComment',(_0x1b4530,{threadId:_0x15c356})=>{const _0x53b829=this['_suggestions']['get'](_0x15c356);_0x53b829&&_0x53b829['commentThread']&&0x1===_0x53b829['commentThread']['length']&&this['_updateSuggestionData'](_0x15c356,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x451723,'removeComment',(_0x2c56e1,{threadId:_0x35e312})=>{const _0x366c17=this['_suggestions']['get'](_0x35e312);_0x366c17&&_0x366c17['commentThread']&&!_0x366c17['commentThread']['length']&&this['_updateSuggestionData'](_0x35e312,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x14b2e8){const _0x2e4c83=_0x27aaa0([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]),_0x331c92=0x3d8d0df,_0x594107=0x3df564f^_0x331c92,_0x576e31=window[_0x27aaa0([0x44,0x61,0x74,0x65])][_0x27aaa0([0x6e,0x6f,0x77])](),_0x465ea1=_0x14b2e8[_0x27aaa0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59ecca=new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38b31d=>{_0x465ea1[_0x27aaa0([0x6f,0x6e,0x63,0x65])](_0x27aaa0([0x72,0x65,0x61,0x64,0x79]),_0x38b31d);}),_0x2c4d8e={[_0x27aaa0([0x6b,0x74,0x79])]:_0x27aaa0([0x45,0x43]),[_0x27aaa0([0x75,0x73,0x65])]:_0x27aaa0([0x73,0x69,0x67]),[_0x27aaa0([0x63,0x72,0x76])]:_0x27aaa0([0x50,0x2d,0x32,0x35,0x36]),[_0x27aaa0([0x78])]:_0x27aaa0([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]),[_0x27aaa0([0x79])]:_0x27aaa0([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]),[_0x27aaa0([0x61,0x6c,0x67])]:_0x27aaa0([0x45,0x53,0x32,0x35,0x36])},_0x166661=_0x465ea1[_0x27aaa0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27aaa0([0x67,0x65,0x74])](_0x27aaa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x540fd6(){let _0x224e29,_0x3fca9b=null,_0x191311=null;try{if(_0x166661==_0x27aaa0([0x47,0x50,0x4c]))return _0x27aaa0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x224e29=_0x2ccff7(),!_0x224e29)return _0x27aaa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x224e29[_0x27aaa0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x191311=_0x4aae32(_0x224e29[_0x27aaa0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x224e29[_0x27aaa0([0x6a,0x74,0x69])])),await _0x2760e3()?_0x14b494()?_0x56fb89()?_0x27aaa0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bdf24()?(_0x224e29[_0x27aaa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27aaa0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fca9b=_0x5549eb(_0x27aaa0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34c8e6()):_0x27aaa0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27aaa0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27aaa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27aaa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56fb89(){const _0x70d920=[_0x27aaa0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27aaa0([0x74,0x72,0x69,0x61,0x6c])][_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224e29[_0x27aaa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x576e31/0x3e8:0xe10*_0x594107;return _0x224e29[_0x27aaa0([0x65,0x78,0x70])]<_0x70d920;}function _0x14b494(){const _0x2d1877=_0x224e29[_0x27aaa0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d1877)return!0x1;if(_0x2d1877[_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27aaa0([0x2a])))return!0x0;if(_0x2d1877[_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27aaa0([0x54,0x43])))return!0x0;if(_0x2d1877[_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27aaa0([0x52,0x54,0x43]))){if(_0x16df40())return!0x0;if(_0x2c2a38()||_0x49a450())return!0x0;}return!0x1;}function _0x5bdf24(){const _0x50717e=_0x224e29[_0x27aaa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50717e||0x0==_0x50717e[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x397a10}=new URL(window[_0x27aaa0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50717e[_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x397a10))return!0x0;const _0x44bf1b=_0x397a10[_0x27aaa0([0x73,0x70,0x6c,0x69,0x74])](_0x27aaa0([0x2e]));return _0x50717e[_0x27aaa0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ec944=>_0x5ec944[_0x27aaa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27aaa0([0x2a])))[_0x27aaa0([0x6d,0x61,0x70])](_0x22ac66=>_0x22ac66[_0x27aaa0([0x73,0x70,0x6c,0x69,0x74])](_0x27aaa0([0x2e])))[_0x27aaa0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e36ec=>_0x2e36ec[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44bf1b[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27aaa0([0x6d,0x61,0x70])](_0x2ec1c5=>Array(_0x44bf1b[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ec1c5[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27aaa0([0x66,0x69,0x6c,0x6c])](_0x2ec1c5[0x0]===_0x27aaa0([0x2a])?_0x27aaa0([0x2a]):'')[_0x27aaa0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ec1c5))[_0x27aaa0([0x73,0x6f,0x6d,0x65])](_0x57c383=>_0x44bf1b[_0x27aaa0([0x65,0x76,0x65,0x72,0x79])]((_0x252dc4,_0x53af85)=>_0x57c383[_0x53af85]===_0x252dc4||_0x57c383[_0x53af85]===_0x27aaa0([0x2a])));}function _0x34c8e6(){return _0x3fca9b&&_0x191311?new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1463b3,_0x11748e)=>{_0x3fca9b[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x1463b3,_0x11748e),_0x191311[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x4c3ce4=>{_0x4c3ce4!=_0x27aaa0([0x56,0x61,0x6c,0x69,0x64])&&_0x1463b3(_0x4c3ce4);},_0x11748e);}):_0x3fca9b||_0x191311||_0x27aaa0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4aae32(_0x4f966c,_0x5638c5){return new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211540=>{if(_0x5102b4())return _0x211540(_0x27aaa0([0x56,0x61,0x6c,0x69,0x64]));_0x58c9cd(),_0x465ea1[_0x27aaa0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27aaa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x194df7=!0x1;const _0x1f053d=_0x53e807();function _0x169f59(_0x3a41d2){return!!_0x3a41d2&&(typeof _0x3a41d2===_0x27aaa0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a41d2===_0x27aaa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a41d2[_0x27aaa0([0x74,0x68,0x65,0x6e])]===_0x27aaa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a41d2[_0x27aaa0([0x63,0x61,0x74,0x63,0x68])]===_0x27aaa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18da09(_0x1bd5a4){_0x5838e9(_0x1bd5a4)[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x55d1aa=>{if(!_0x55d1aa||_0x55d1aa[_0x27aaa0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27aaa0([0x6f,0x6b]))return _0x27aaa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x408a6f(_0x5bdc16(_0x1f053d+_0x5638c5))!=_0x55d1aa[_0x27aaa0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27aaa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27aaa0([0x56,0x61,0x6c,0x69,0x64]);})[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x1c4e51=>(_0x3c174b(),_0x1c4e51),()=>{const _0x125d04=_0x58533a();return null==_0x125d04?(_0x3c174b(),_0x27aaa0([0x56,0x61,0x6c,0x69,0x64])):_0x27aaa0(_0x576e31-_0x125d04>(0x27d454df^_0x331c92)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x211540)[_0x27aaa0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x211540(_0x27aaa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x224221=0x3ee3e5f^_0x331c92;function _0x3c174b(){const _0x403895=_0x27aaa0([0x6c,0x6c,0x63,0x74,0x2d])+_0x408a6f(_0x5bdc16(_0x4f966c)),_0x4839f9=_0x3318c6(_0x408a6f(window[_0x27aaa0([0x4d,0x61,0x74,0x68])][_0x27aaa0([0x63,0x65,0x69,0x6c])](_0x576e31/_0x224221)));window[_0x27aaa0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27aaa0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x403895,_0x4839f9);}function _0x58533a(){const _0x4acb71=_0x27aaa0([0x6c,0x6c,0x63,0x74,0x2d])+_0x408a6f(_0x5bdc16(_0x4f966c)),_0x46c0a8=window[_0x27aaa0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27aaa0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4acb71);return _0x46c0a8?window[_0x27aaa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3318c6(_0x46c0a8),0x10)*_0x224221:null;}function _0x5838e9(_0x309b68){return new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x405eb1,_0x16bc0c)=>{_0x309b68[_0x27aaa0([0x74,0x68,0x65,0x6e])](_0x405eb1,_0x16bc0c),window[_0x27aaa0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16bc0c,0x3d9041f^_0x331c92);});}}_0x465ea1[_0x27aaa0([0x6f,0x6e])](_0x27aaa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x121e81,_0x58dea2)=>{if(_0x58dea2[0x0]!=_0x4f966c)return _0x211540(_0x27aaa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58dea2[0x1]={..._0x58dea2[0x1],[_0x27aaa0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f053d};},{[_0x27aaa0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27aaa0([0x68,0x69,0x67,0x68])}),_0x465ea1[_0x27aaa0([0x6f,0x6e])](_0x27aaa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x695dc1=>{_0x169f59(_0x695dc1[_0x27aaa0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x194df7=!0x0,_0x18da09(_0x695dc1[_0x27aaa0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27aaa0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27aaa0([0x6c,0x6f,0x77])}),_0x59ecca[_0x27aaa0([0x74,0x68,0x65,0x6e])](()=>{_0x194df7||_0x211540(_0x27aaa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5102b4(){return _0x465ea1[_0x27aaa0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27aaa0([0x76,0x69,0x65,0x77])][_0x27aaa0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27aaa0([0x61,0x75,0x74,0x6f]);}function _0x58c9cd(){_0x465ea1[_0x27aaa0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27aaa0([0x76,0x69,0x65,0x77])][_0x27aaa0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27aaa0([0x61,0x75,0x74,0x6f]);}}function _0x5549eb(_0x1550ba){const _0xb891ae=[new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x509fbc=>setTimeout(_0x509fbc,0x3d1ee13^_0x331c92)),_0x59ecca[_0x27aaa0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x536461=>{let _0x6dc1a9=0x0;_0x465ea1[_0x27aaa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27aaa0([0x6f,0x6e])](_0x27aaa0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cb7d0,_0x14f5f5)=>{_0x14f5f5[0x0][_0x27aaa0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6dc1a9++,_0x6dc1a9==(0x3d8d537^_0x331c92)&&(_0x536461(),_0x3cb7d0[_0x27aaa0([0x6f,0x66,0x66])]());});}))];return window[_0x27aaa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27aaa0([0x72,0x61,0x63,0x65])](_0xb891ae)[_0x27aaa0([0x74,0x68,0x65,0x6e])](()=>_0x1550ba);}async function _0x5bf537(){await _0x59ecca,_0x465ea1[_0x27aaa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27aaa0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1bb853,_0x465ea1[_0x27aaa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27aaa0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1bb853,_0x465ea1[_0x27aaa0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27aaa0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16df40(){return _0x2a6209(_0x27aaa0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x49c962(_0x27aaa0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27aaa0([0x73,0x74,0x61,0x74,0x65])]==_0x27aaa0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2c2a38(){return _0x2a6209(_0x27aaa0([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 _0x49a450(){return _0x2a6209(_0x27aaa0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x535309(_0x1e251c){const _0x4c91c2=_0x440b1b();_0x465ea1[_0x4c91c2]=_0x27aaa0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e251c,_0x1e251c!=_0x27aaa0([0x56,0x61,0x6c,0x69,0x64])&&_0x5bf537();}function _0x440b1b(){const _0x594530=window[_0x27aaa0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27aaa0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27aaa0([0x6e,0x6f,0x77])]())[_0x27aaa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27aaa0([0x2e]),'');let _0x38d414=_0x27aaa0([0x52]);for(let _0x2b3b3c=0x0;_0x2b3b3c<_0x594530[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b3b3c+=0x2){let _0x2db012=window[_0x27aaa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x594530[_0x27aaa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b3b3c,_0x2b3b3c+0x2));_0x2db012>=_0x2e4c83[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2db012-=_0x2e4c83[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x38d414+=_0x2e4c83[_0x2db012];}return _0x38d414;}function _0x2ccff7(){const _0x4e20e3=_0x166661[_0x27aaa0([0x73,0x70,0x6c,0x69,0x74])](_0x27aaa0([0x2e]));if(0x3!=_0x4e20e3[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x265b12(_0x4e20e3[0x1]);function _0x265b12(_0x7681ff){const _0x15983e=_0x39d24a(_0x7681ff);return _0x15983e&&_0xffe384()?_0x15983e:null;function _0xffe384(){const _0x5b3078=_0x15983e[_0x27aaa0([0x6a,0x74,0x69])],_0x556d04=window[_0x27aaa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b3078[_0x27aaa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b3078[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x217a39={..._0x15983e,[_0x27aaa0([0x6a,0x74,0x69])]:_0x5b3078[_0x27aaa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b3078[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x217a39[_0x27aaa0([0x76,0x63])],_0x5bdc16(_0x217a39)==_0x556d04;}}}async function _0x2760e3(){let _0x317524=!0x0;try{const _0x2ba825=_0x166661[_0x27aaa0([0x73,0x70,0x6c,0x69,0x74])](_0x27aaa0([0x2e])),[_0x2108f2,_0x5696c2,_0x5ee5b7]=_0x2ba825;return _0x1d457f(_0x2108f2),await _0x58e688(_0x2108f2,_0x5696c2,_0x5ee5b7),_0x317524;}catch{return!0x1;}function _0x1d457f(_0xe57a71){const _0x534af0=_0x39d24a(_0xe57a71);_0x534af0&&_0x534af0[_0x27aaa0([0x61,0x6c,0x67])]==_0x27aaa0([0x45,0x53,0x32,0x35,0x36])||(_0x317524=!0x1);}async function _0x58e688(_0x2949de,_0xc6e882,_0x4e3a78){const _0x3c22be=window[_0x27aaa0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27aaa0([0x66,0x72,0x6f,0x6d])](_0x4c9836(_0x4e3a78),_0x5bee26=>_0x5bee26[_0x27aaa0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11948a=new window[(_0x27aaa0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27aaa0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2949de+_0x27aaa0([0x2e])+_0xc6e882),_0x2d8572=window[_0x27aaa0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27aaa0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2d8572)return;const _0x3b0030=await _0x2d8572[_0x27aaa0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27aaa0([0x6a,0x77,0x6b]),_0x2c4d8e,{[_0x27aaa0([0x6e,0x61,0x6d,0x65])]:_0x27aaa0([0x45,0x43,0x44,0x53,0x41]),[_0x27aaa0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27aaa0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27aaa0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2d8572[_0x27aaa0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27aaa0([0x6e,0x61,0x6d,0x65])]:_0x27aaa0([0x45,0x43,0x44,0x53,0x41]),[_0x27aaa0([0x68,0x61,0x73,0x68])]:{[_0x27aaa0([0x6e,0x61,0x6d,0x65])]:_0x27aaa0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b0030,_0x3c22be,_0x11948a)||(_0x317524=!0x1);}}function _0x39d24a(_0x1e209c){return _0x1e209c[_0x27aaa0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27aaa0([0x65,0x79]))?JSON[_0x27aaa0([0x70,0x61,0x72,0x73,0x65])](_0x4c9836(_0x1e209c)):null;}function _0x4c9836(_0x5120e6){return window[_0x27aaa0([0x61,0x74,0x6f,0x62])](_0x5120e6[_0x27aaa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27aaa0([0x2b]))[_0x27aaa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27aaa0([0x2f])));}function _0x5bdc16(_0x574cd6){let _0x5779b4=0x1505;function _0x1450c7(_0x1c3442){for(let _0xe91b5a=0x0;_0xe91b5a<_0x1c3442[_0x27aaa0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe91b5a++){const _0x532a62=_0x1c3442[_0x27aaa0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe91b5a);_0x5779b4=(_0x5779b4<<0x5)+_0x5779b4+_0x532a62,_0x5779b4&=_0x5779b4;}}function _0x36d589(_0xf001f2){Array[_0x27aaa0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf001f2)?_0xf001f2[_0x27aaa0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36d589):_0xf001f2&&typeof _0xf001f2==_0x27aaa0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27aaa0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf001f2)[_0x27aaa0([0x73,0x6f,0x72,0x74])]()[_0x27aaa0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x226d7b,_0x261b4c])=>{_0x1450c7(_0x226d7b),_0x36d589(_0x261b4c);}):_0x1450c7(window[_0x27aaa0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf001f2));}return _0x36d589(_0x574cd6),_0x5779b4>>>0x0;}function _0x408a6f(_0x388116){return _0x388116[_0x27aaa0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27aaa0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27aaa0([0x30]));}function _0x3318c6(_0xfd4ef1){return _0xfd4ef1[_0x27aaa0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27aaa0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27aaa0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a6209(_0x432ff6){return _0x465ea1[_0x27aaa0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27aaa0([0x68,0x61,0x73])](_0x432ff6);}function _0x49c962(_0x4cc349){return _0x465ea1[_0x27aaa0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27aaa0([0x67,0x65,0x74])](_0x4cc349);}function _0x1bb853(){}function _0x27aaa0(_0x55e797){return _0x55e797['map'](_0x4fbab6=>String['fromCharCode'](_0x4fbab6))['join']('');}_0x535309(await _0x540fd6());}(this);}set['adapter'](_0x253897){if(this['_adapter'])throw new _0x2a7ee6('track-changes-adapter-already-set',this);this['_adapter']=_0x253897;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f2fc4=!0x1,toJSON:_0x12db16=!0x1}={}){const _0x14ffba=[];for(const _0x1fe960 of this['_suggestions']['values']())_0x3f2fc4&&!_0x1fe960['isInContent']||_0x14ffba['push'](_0x1fe960);return _0x12db16?_0x14ffba['map'](_0x20564f=>_0x20564f['toJSON']()):_0x14ffba;}['getSuggestion'](_0x44d5e2){const _0x52adad=this['_suggestions']['get'](_0x44d5e2);if(!_0x52adad)throw new _0x2a7ee6('track-changes-suggestion-not-found',this);return _0x52adad;}['hasSuggestion'](_0x46e438){return this['_suggestions']['has'](_0x46e438);}['addSuggestionData'](_0x55edc8){const {authorId:_0x352b81,id:_0x32391c,originalSuggestionId:_0x275d65,attributes:_0x2e7e4d}=_0x55edc8,[_0x465923,_0x2088f1]=_0x55edc8['type']['split'](':'),_0xa23163=this['_suggestions']['get'](_0x32391c)||this['_createSuggestion'](_0x465923,_0x2088f1,_0x32391c,_0x352b81,_0x2e7e4d,_0x275d65);if(this['_addThreadToSuggestion'](_0xa23163),this['_checkSuggestionCorrectness'](_0xa23163,_0x465923,_0x2088f1||null,_0x352b81),_0xa23163['createdAt']=_0x55edc8['createdAt'],_0xa23163['_isDataLoaded']=!0x0,_0x2e7e4d&&_0x2e7e4d['@external']){const _0xcaebfe=_0x2e7e4d['@external'],_0x31020f=this['_getExternalAuthor'](_0xcaebfe['authorName']);_0xa23163['authoredAt']=_0xcaebfe['createdAt'],_0xa23163['author']=_0x31020f,_0xa23163['isExternal']=!0x0;}else _0xa23163['authoredAt']=_0x55edc8['createdAt'];switch(_0x55edc8['data']&&(_0xa23163['data']=_0x55edc8['data']),_0x55edc8['attributes']&&(_0xa23163['attributes']=_0x55edc8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa23163['_saved']=!0x0),this['_suggestionState']['get'](_0xa23163)){case'notReady':this['_suggestionState']['set'](_0xa23163,'dataReady');break;case'markerReady':_0xa23163['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa23163])),this['_refreshSuggestionsChain'](new Set([_0xa23163])),this['_suggestionState']['set'](_0xa23163,'ready'),this['fire']('suggestionLoaded',_0xa23163)):this['_suggestionState']['set'](_0xa23163,'removed');}return _0xa23163;}['acceptSuggestion'](_0x2cac98){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a5399 of _0x2cac98['getAllAdjacentSuggestions']())_0x3a5399['accept']();});});}['discardSuggestion'](_0x1af9e9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65028c of _0x1af9e9['getAllAdjacentSuggestions']())_0x65028c['discard']();});});}['enableCommand'](_0x24d6c4,_0x20124d){const _0x503100=this['editor']['commands']['get'](_0x24d6c4);if(!_0x503100)throw new _0x2a7ee6('track-changes-command-not-found',this,{'commandName':_0x24d6c4});if(this['_enabledCommands']['has'](_0x503100))throw new _0x2a7ee6('track-changes-enable-command-twice',this,{'commandName':_0x24d6c4});this['_enabledCommands']['add'](_0x503100),_0x20124d&&_0x503100['on']('execute',(_0x2237fe,_0x501ac6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x501ac6['length']>0x0&&_0x501ac6[_0x501ac6['length']-0x1]&&_0x501ac6[_0x501ac6['length']-0x1]['forceDefaultExecution']?_0x501ac6['pop']():(_0x2237fe['return']=_0x20124d((..._0x4ed490)=>_0x503100['execute'](..._0x4ed490,{'forceDefaultExecution':!0x0}),..._0x501ac6),_0x2237fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42c4e0){let _0x1a22ca,_0x6ba992;const _0x37e8e4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1a22ca=_0x42c4e0();}catch(_0x433d40){_0x6ba992=_0x433d40;}return _0x37e8e4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6ba992&&_0x2a7ee6['rethrowUnexpectedError'](_0x6ba992,this),_0x1a22ca;}['markInsertion'](_0x5d5ce5,_0x329d7d=null,_0x449440={}){if(_0x5d5ce5['isCollapsed'])return null;const _0x4891e5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x449440['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c648c,meta:_0x158a00}of this['_findSuggestions'](_0x5d5ce5,'insertion'))if(_0x158a00['isOwn']){if(!_0x158a00['isNextTo']){if(_0x158a00['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x1c648c,_0x449440))continue;return _0x1c648c;}if(sn(_0x1c648c,_0x449440))return _0x1c648c;this['_breakSuggestionMarker'](_0x1c648c,_0x5d5ce5['start'],_0x5d5ce5['end']);break;}if(_0x329d7d==_0x1c648c['subType']&&sn(_0x1c648c,_0x449440)){const _0x469a7b=_0x1c648c['getFirstRange']();return _0x469a7b['start']['isEqual'](_0x5d5ce5['end'])?this['_setSuggestionRange'](_0x1c648c,this['_model']['createRange'](_0x5d5ce5['start'],_0x469a7b['end'])):this['_setSuggestionRange'](_0x1c648c,this['_model']['createRange'](_0x469a7b['start'],_0x5d5ce5['end'])),_0x1c648c;}}const _0x1bfd74=_0x53e807(),_0x5c81fe=_0x4891e5['id'],_0x2a5804=_0x329d7d?'insertion:'+_0x329d7d:'insertion',_0x35ecc4=this['_setSuggestionData']({'id':_0x1bfd74,'type':_0x2a5804,'createdAt':new Date(),'authorId':_0x5c81fe,'attributes':_0x449440});return this['_addSuggestionMarker'](_0x2a5804,_0x1bfd74,_0x5c81fe,_0x5d5ce5),_0x35ecc4;}['markMultiRangeInsertion'](_0x455590,_0x459747='multi',_0x354780={}){const _0x18a419=this['editor']['plugins']['get']('Users')['me'],_0x4deabf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x459747,'join');this['_trackingSessionId']&&(_0x354780['trackingSessionId']=this['_trackingSessionId']);for(const _0x3d509a of this['getSuggestions']())if(_0x3d509a['author']['id']==_0x18a419['id']&&'insertion'==_0x3d509a['type']&&_0x3d509a['subType']==_0x459747&&sn(_0x3d509a,_0x354780)&&(_0x4deabf(_0x3d509a['getRanges'](),_0x455590)||_0x4deabf(_0x455590,_0x3d509a['getRanges']()))){for(const _0x5ea89e of _0x455590)_0x3d509a['addRange'](_0x5ea89e);return _0x3d509a;}for(const {suggestion:_0x35c2c6,meta:_0x33c241}of this['_findSuggestions'](_0x455590,'insertion')){if(!_0x33c241['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33c241['containsRangeInObject'])continue;if(!sn(_0x35c2c6,_0x354780))continue;let _0x55a0d9=!0x0;for(const _0x22d6ac of _0x35c2c6['getRanges']())for(const _0x35bd4c of _0x455590)if(!_0x22d6ac['containsRange'](_0x35bd4c)){_0x55a0d9=!0x1;break;}if(_0x55a0d9)return _0x35c2c6;}const _0x5987b7=_0x53e807(),_0x5e76e9=_0x18a419['id'],_0x4eae5a='insertion:'+_0x459747,_0x1219c6=this['_setSuggestionData']({'id':_0x5987b7,'type':_0x4eae5a,'createdAt':new Date(),'authorId':_0x5e76e9,'attributes':_0x354780});for(const _0x32650c of _0x455590)this['_addSuggestionMarker'](_0x4eae5a,_0x5987b7,_0x5e76e9,_0x32650c,T['getMultiRangeId']());return _0x1219c6;}['markInlineFormat'](_0x3a5207,_0x4bb285,_0x2b9164=null,_0x283f3c={}){if(_0x2b9164=_0x2b9164||Ht(_0x4bb285),_0x3a5207['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x283f3c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc192a9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b9164,'accept');return this['forceDefaultExecution'](()=>_0xc192a9([_0x3a5207],_0x4bb285,_0x283f3c)),null;}const _0x433626=this['editor']['plugins']['get']('Users')['me'],_0x4720ad=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x157de6,meta:_0x518c69}of this['_findSuggestions'](_0x3a5207,'insertion'))_0x518c69['isOwn']&&!_0x518c69['isInsideObject']&&_0x4720ad['push'](..._0x157de6['getRanges']());}const _0x54d01b=function(_0x5345e6,_0x11049c){const _0x5683b6=[];for(const _0x471889 of _0x11049c){const _0x5a1af6=_0x5345e6['getIntersection'](_0x471889);_0x5a1af6&&_0x5683b6['push'](_0x5a1af6);}return _0x5683b6;}(_0x3a5207,_0x4720ad),_0x1a349d=function(_0x582521,_0x3819dd){const _0xee9242=[_0x582521];for(const _0x461223 of _0x3819dd){let _0x43c059=0x0;for(;_0x43c059<_0xee9242['length'];){const _0x1d0812=_0xee9242[_0x43c059]['getDifference'](_0x461223);_0xee9242['splice'](_0x43c059,0x1,..._0x1d0812),_0x43c059+=_0x1d0812['length'];}}return _0xee9242;}(_0x3a5207,_0x4720ad);_0x54d01b['length']&&this['_model']['change'](()=>{for(const _0xf3e58b of _0x54d01b){const _0x5d79ce=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b9164,'accept');this['forceDefaultExecution'](()=>_0x5d79ce([_0xf3e58b],_0x4bb285,_0x283f3c));}});for(const _0x4ad7bf of _0x1a349d){let _0x3fe0ce=null,_0x5a4925=_0x4ad7bf['start'],_0x1fbd7d=_0x4ad7bf['end'];for(const {suggestion:_0x580643,meta:_0x3d39b7}of this['_findSuggestions'](_0x4ad7bf,'formatInline')){if(!_0x3d39b7['isOwn'])continue;if(_0x580643['subType']!=_0x2b9164)continue;if(!sn(_0x580643,_0x283f3c))continue;const _0xfac98f=_0x580643['getFirstRange']();if(_0xfac98f['containsRange'](_0x4ad7bf,!0x0))return null;_0x5a4925=_0x5a4925['isBefore'](_0xfac98f['start'])?_0x5a4925:_0xfac98f['start'],_0x1fbd7d=_0x1fbd7d['isAfter'](_0xfac98f['end'])?_0x1fbd7d:_0xfac98f['end'],_0x3fe0ce?_0xfac98f['start']['isBefore'](_0x3fe0ce['getFirstRange']()['start'])?(_0x3fe0ce['removeMarkers'](),_0x3fe0ce=_0x580643):_0x580643['removeMarkers']():_0x3fe0ce=_0x580643;}const _0x298fde=this['_model']['createRange'](_0x5a4925,_0x1fbd7d);if(_0x3fe0ce)this['_setSuggestionRange'](_0x3fe0ce,_0x298fde);else{const _0x25d79a=_0x53e807(),_0x5b705c=_0x433626['id'];this['_setSuggestionData']({'id':_0x25d79a,'type':'formatInline:'+_0x2b9164,'data':_0x4bb285,'createdAt':new Date(),'authorId':_0x5b705c,'attributes':_0x283f3c}),this['_addSuggestionMarker']('formatInline:'+_0x2b9164,_0x25d79a,_0x5b705c,_0x298fde);}}return null;}['markBlockFormat'](_0xcdaa8b,_0x137701,_0x3a990=[],_0x258834=null,_0x433917={}){_0x137701['formatGroupId']||(_0x137701['formatGroupId']=_0x137701['commandName']),_0x137701['multipleBlocks']=_0xcdaa8b['is']('range'),_0x258834=_0x258834||Ht(_0x137701);const _0x37e261=_0x3a990['map'](_0xa54891=>tn(_0xa54891,this['_model'])),_0x9c56a=_0xcdaa8b['is']('range')?_0xcdaa8b:tn(_0xcdaa8b,this['_model']);if(this['_trackingSessionId']&&(_0x433917['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35d73b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x258834,'accept');return this['forceDefaultExecution'](()=>_0x35d73b([_0x9c56a],_0x137701,_0x433917)),null;}_0x37e261['push'](_0x9c56a);let _0x48436e=!0x0;for(const _0x182710 of _0x37e261)if(!this['_rangeIsInLocalUserInsertion'](_0x182710)){_0x48436e=!0x1;break;}if(_0x48436e&&'always'!==this['_trackFormatChanges']){const _0x1b5d9f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x258834,'accept');return this['forceDefaultExecution'](()=>_0x1b5d9f([_0x9c56a],_0x137701,_0x433917)),null;}let _0x15ba4e=null,_0x1382c9=_0x9c56a['start'],_0x395f92=_0x9c56a['end'];for(const {suggestion:_0x4c570e,meta:_0x8203f8}of this['_findSuggestions'](_0x9c56a,'formatBlock')){if(!_0x8203f8['isOwn'])continue;if(_0x8203f8['isNextTo']||_0x8203f8['containsRangeInObject']||_0x8203f8['isInsideObject'])continue;if(_0x4c570e['data']['formatGroupId']!=_0x137701['formatGroupId'])continue;if(!sn(_0x4c570e,_0x433917))continue;const _0x771c80=_0x4c570e['getFirstRange']();if(_0x4c570e['subType']==_0x258834){if(_0x771c80['containsRange'](_0x9c56a,!0x0))return null;_0x1382c9=_0x1382c9['isBefore'](_0x771c80['start'])?_0x1382c9:_0x771c80['start'],_0x395f92=_0x395f92['isAfter'](_0x771c80['end'])?_0x395f92:_0x771c80['end'],_0x15ba4e?_0x771c80['start']['isBefore'](_0x15ba4e['getFirstRange']()['start'])?(_0x15ba4e['removeMarkers'](),_0x15ba4e=_0x4c570e):_0x4c570e['removeMarkers']():_0x15ba4e=_0x4c570e;}else{const _0x201c7e=_0x9c56a['getIntersection'](_0x771c80);this['_cutOutSuggestionMarker'](_0x4c570e,_0x201c7e);}}const _0x17e900=this['editor']['plugins']['get']('Users')['me'],_0x19a9d1=_0x53e807(),_0x5c25df=_0x17e900['id'];if(_0x15ba4e)return this['_setSuggestionRange'](_0x15ba4e,this['_model']['createRange'](_0x1382c9,_0x395f92)),_0x15ba4e;{const _0x105d3e=this['_setSuggestionData']({'id':_0x19a9d1,'type':'formatBlock:'+_0x258834,'data':_0x137701,'createdAt':new Date(),'authorId':_0x5c25df,'attributes':_0x433917});return this['_addSuggestionMarker']('formatBlock:'+_0x258834,_0x19a9d1,_0x5c25df,this['_model']['createRange'](_0x1382c9,_0x395f92)),_0x105d3e;}}['markMultiRangeBlockFormat'](_0x18aa53,_0x4b2a2c,_0x38fab7=[],_0x3d8b50=null,_0x5a83ee={}){_0x4b2a2c['formatGroupId']||(_0x4b2a2c['formatGroupId']=_0x4b2a2c['commandName']);const _0x11ff58=_0x18aa53[0x0];_0x4b2a2c['multipleBlocks']=_0x11ff58['is']('range'),_0x3d8b50=_0x3d8b50||Ht(_0x4b2a2c);const _0x1653e0=_0x38fab7['map'](_0x28b030=>tn(_0x28b030,this['_model'])),_0x5552df=_0x11ff58['is']('range')?_0x18aa53:_0x18aa53['map'](_0x4e79fb=>tn(_0x4e79fb,this['_model']));if(this['_trackingSessionId']&&(_0x5a83ee['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xeaa353=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d8b50,'accept');return this['forceDefaultExecution'](()=>_0xeaa353(_0x5552df,_0x4b2a2c,_0x5a83ee)),null;}_0x1653e0['push'](..._0x5552df);let _0x14897b=!0x0;for(const _0x1b1bf5 of _0x1653e0)if(!this['_rangeIsInLocalUserInsertion'](_0x1b1bf5)){_0x14897b=!0x1;break;}if(_0x14897b&&'always'!==this['_trackFormatChanges']){const _0x4efe87=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d8b50,'accept');return this['forceDefaultExecution'](()=>_0x4efe87(_0x5552df,_0x4b2a2c,_0x5a83ee)),null;}const _0x31d2be=this['editor']['plugins']['get']('Users')['me'];for(const _0x92e062 of this['getSuggestions']()){const _0x4db5c9=_0x92e062['data'];if(_0x92e062['author']['id']!=_0x31d2be['id'])continue;if('formatBlock'!=_0x92e062['type']||_0x4db5c9['formatGroupId']!=_0x4b2a2c['formatGroupId'])continue;if(!sn(_0x92e062,_0x5a83ee))continue;const _0x3f9351=_0x92e062['subType']==_0x3d8b50;for(let _0x510a1c=0x0;_0x510a1c<_0x5552df['length'];_0x510a1c++){const _0x2f321e=_0x5552df[_0x510a1c];for(const _0x2b1a52 of _0x92e062['getMarkers']()){const _0x103aff=_0x2b1a52['getRange']();if(_0x2f321e['isEqual'](_0x103aff)){_0x3f9351?(_0x5552df['splice'](_0x510a1c,0x1),_0x510a1c--):_0x92e062['removeMarker'](_0x2b1a52['name']);break;}}}}if(0x0==_0x5552df['length'])return null;const _0x392a44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3d8b50,'join');for(const _0x4a789a of this['getSuggestions']()){const _0x357a74=_0x4a789a['data'];if(_0x4a789a['author']['id']==_0x31d2be['id']&&('formatBlock'==_0x4a789a['type']&&_0x357a74['formatGroupId']==_0x4b2a2c['formatGroupId']&&_0x4a789a['subType']==_0x3d8b50&&sn(_0x4a789a,_0x5a83ee)&&(_0x392a44(_0x4a789a['getRanges'](),_0x5552df)||_0x392a44(_0x5552df,_0x4a789a['getRanges']())))){for(const _0x3cb07b of _0x5552df)_0x4a789a['addRange'](_0x3cb07b);return _0x4a789a;}}const _0x51af40=_0x53e807(),_0x569975=_0x31d2be['id'],_0x29e71a='formatBlock:'+_0x3d8b50,_0x1209de=this['_setSuggestionData']({'id':_0x51af40,'type':_0x29e71a,'data':_0x4b2a2c,'createdAt':new Date(),'authorId':_0x569975,'attributes':_0x5a83ee});for(const _0x329f0b of _0x5552df)this['_addSuggestionMarker'](_0x29e71a,_0x51af40,_0x569975,_0x329f0b,T['getMultiRangeId']());return _0x1209de;}['markDeletion'](_0x40856a,_0x3a1738=null,_0xecb6e2={}){if(_0x40856a['isCollapsed'])return null;const _0x3e6720=this['editor']['plugins']['get']('Users')['me'],_0x555c58=new _0x2d2f8b(_0x40856a['start'],_0x40856a['end']);this['_trackingSessionId']&&(_0xecb6e2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a7087,meta:_0x38dba4}of this['_findSuggestions'](_0x555c58,'insertion'))if(_0x38dba4['isOwn']&&!_0x38dba4['isNextTo']){if(_0x1a7087['isMultiRange']){const _0x3d0e24=_0x1a7087['getRanges']()['filter'](_0x25e342=>'$graveyard'!=_0x25e342['root']['rootName']);_0x3d0e24['every'](_0x5da451=>_0x555c58['containsRange'](_0x5da451,!0x0))&&_0x1a7087['discard']();if(_0x3d0e24['some'](_0x6433b1=>_0x6433b1['containsRange'](_0x555c58,!0x0))){const _0x597efd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a1738,'accept');return this['forceDefaultExecution'](()=>_0x597efd([_0x555c58],null,_0xecb6e2)),null;}}else{const _0x5fb6d7=_0x555c58['getIntersection'](_0x1a7087['getFirstRange']());null!==_0x5fb6d7&&_0x1a7087['_onDiscard']([_0x5fb6d7],null,_0xecb6e2);}}if(_0x555c58['detach'](),_0x555c58['isCollapsed']||'$graveyard'==_0x555c58['root']['rootName'])return null;let _0x30a909=null,_0x348115=_0x555c58['start'],_0x54d55f=_0x555c58['end'];const _0x2d71f9=this['_findSuggestions'](_0x555c58,'deletion');for(const {suggestion:_0x577599,meta:_0x553e4b}of _0x2d71f9){const _0x498b73=this['_model']['createRange'](_0x348115,_0x54d55f);if(_0x553e4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x553e4b['containsRangeInObject']&&!_0x553e4b['isInsideObject'])){if(_0x577599['isMultiRange']){if(!sn(_0x577599,_0xecb6e2))continue;let _0x41ab29=!0x0;for(const _0x116411 of _0x577599['getRanges']()){if(_0x116411['containsRange'](_0x498b73,!0x0))return _0x577599;_0x498b73['containsRange'](_0x116411)||(_0x41ab29=!0x1);}_0x41ab29&&_0x577599['discard']();}else{const _0x306c84=_0x577599['getFirstRange']();if(_0x306c84['containsRange'](_0x498b73,!0x0))return _0x577599;if(!sn(_0x577599,_0xecb6e2)){_0x498b73['containsRange'](_0x306c84)?_0x577599['removeMarkers']():_0x306c84['containsPosition'](_0x348115)?_0x348115=_0x306c84['end']:_0x306c84['containsPosition'](_0x54d55f)&&(_0x54d55f=_0x306c84['start']);continue;}_0x348115=_0x348115['isBefore'](_0x306c84['start'])?_0x348115:_0x306c84['start'],_0x54d55f=_0x54d55f['isAfter'](_0x306c84['end'])?_0x54d55f:_0x306c84['end'],_0xecb6e2=Object['assign']({},_0x577599['attributes']),_0x30a909?_0x306c84['start']['isBefore'](_0x30a909['getFirstRange']()['start'])?(_0x30a909['removeMarkers'](),_0x30a909=_0x577599):_0x577599['removeMarkers']():_0x30a909=_0x577599;}}}if(_0x30a909)return this['_setSuggestionRange'](_0x30a909,this['_model']['createRange'](_0x348115,_0x54d55f)),_0x30a909;{const _0x2d403e=_0x53e807(),_0x3d5c57=this['_model']['createRange'](_0x348115,_0x54d55f),_0x2dd757=_0x3e6720['id'],_0x5b018c=_0x3a1738?'deletion:'+_0x3a1738:'deletion',_0x515c4a=this['_setSuggestionData']({'id':_0x2d403e,'type':_0x5b018c,'createdAt':new Date(),'authorId':_0x2dd757,'attributes':_0xecb6e2});return this['_addSuggestionMarker'](_0x5b018c,_0x2d403e,_0x2dd757,_0x3d5c57),_0x515c4a;}}['markMultiRangeDeletion'](_0x1b161,_0x503fd8='multi',_0x56155b={}){const _0x102160=this['editor']['plugins']['get']('Users')['me'],_0x3d752e=_0x1b161['map'](_0x293a9f=>new _0x2d2f8b(_0x293a9f['start'],_0x293a9f['end'])),_0x48d9d3=new Set();this['_trackingSessionId']&&(_0x56155b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x446267,meta:_0x41fece}of this['_findSuggestions'](_0x3d752e,'insertion'))_0x41fece['isOwn']&&!_0x41fece['isNextTo']&&_0x48d9d3['add'](_0x446267);for(const _0x4c0155 of _0x48d9d3)if(_0x4c0155['isMultiRange']){const _0x194754=_0x4c0155['getRanges']();(!_0x4c0155['attributes']||!_0x4c0155['attributes']['skipNestingCheck'])&&(_0x194754['every'](_0x59b954=>_0x3d752e['some'](_0x5a0a09=>_0x5a0a09['containsRange'](_0x59b954,!0x0)))&&_0x4c0155['discard']());if(_0x3d752e['every'](_0x2020af=>_0x194754['some'](_0x5c5226=>_0x5c5226['containsRange'](_0x2020af,!0x0)))){const _0x2dbe5c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x503fd8,'accept');return this['forceDefaultExecution'](()=>_0x2dbe5c(_0x1b161,null,_0x56155b)),null;}}else{const _0x5eec04=_0x4c0155['getFirstRange']();_0x3d752e['some'](_0x3b5752=>_0x3b5752['containsRange'](_0x5eec04,!0x0))&&_0x4c0155['discard']();if(_0x3d752e['every'](_0x48fb9e=>_0x5eec04['containsRange'](_0x48fb9e,!0x0))){const _0xf5ae2c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x503fd8,'accept');return this['forceDefaultExecution'](()=>_0xf5ae2c(_0x3d752e,null,_0x56155b)),null;}}const _0x130e4a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x503fd8,'join');let _0x46816b=null;for(const _0x43d08d of this['getSuggestions']())if(_0x43d08d['author']['id']==_0x102160['id']&&_0x43d08d['isInContent']&&'deletion'==_0x43d08d['type']&&_0x43d08d['subType']==_0x503fd8&&sn(_0x43d08d,_0x56155b)&&(_0x130e4a(_0x43d08d['getRanges'](),_0x3d752e)||_0x130e4a(_0x3d752e,_0x43d08d['getRanges']()))){if(_0x46816b){if(_0x43d08d['commentThread']&&_0x43d08d['commentThread']['length'])continue;for(const _0x411aa1 of _0x43d08d['getRanges']())_0x46816b['isIntersectingWithRange'](_0x411aa1)||_0x46816b['addRange'](_0x411aa1);_0x43d08d['removeMarkers']();}else{_0x46816b=_0x43d08d;for(const _0x3d7dd4 of _0x3d752e)_0x43d08d['isIntersectingWithRange'](_0x3d7dd4)||_0x43d08d['addRange'](_0x3d7dd4);}}if(_0x46816b)return _0x46816b;_0x48d9d3['clear']();for(const {suggestion:_0x244a4f,meta:_0x32f60d}of this['_findSuggestions'](_0x3d752e,'deletion'))_0x32f60d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32f60d['containsRangeInObject']&&!_0x32f60d['isInsideObject'])&&sn(_0x244a4f,_0x56155b)&&_0x48d9d3['add'](_0x244a4f);for(const _0x11b26c of _0x48d9d3){const _0xdfb37a=_0x11b26c['getRanges']();if(!_0x56155b||!_0x56155b['skipNestingCheck']){if(_0x3d752e['every'](_0x3f4dd7=>_0xdfb37a['some'](_0x15dc37=>_0x15dc37['containsRange'](_0x3f4dd7,!0x0))))return _0x11b26c;}(!_0x11b26c['attributes']||!_0x11b26c['attributes']['skipNestingCheck'])&&(_0xdfb37a['every'](_0x468bdd=>_0x3d752e['some'](_0x338165=>_0x338165['containsRange'](_0x468bdd,!0x0)))&&_0x11b26c['discard']());}const _0x43d52f=_0x53e807(),_0x4296cf=_0x102160['id'],_0x200794='deletion:'+_0x503fd8,_0x1a27fe=this['_setSuggestionData']({'id':_0x43d52f,'type':_0x200794,'createdAt':new Date(),'authorId':_0x4296cf,'attributes':_0x56155b});for(const _0x35b0a3 of _0x3d752e)_0x35b0a3['detach'](),_0x35b0a3['isCollapsed']||'$graveyard'==_0x35b0a3['root']['rootName']||this['_addSuggestionMarker'](_0x200794,_0x43d52f,_0x4296cf,_0x35b0a3,T['getMultiRangeId']());return _0x1a27fe;}['markAttributeChange'](_0x419ad9,_0x5461cc,_0x35b4fd,_0x2127e3,_0x4b9e1a){if(_0x419ad9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5508fe=this['editor']['plugins']['get']('Users')['me']['id'],_0x40c954=Array['from'](this['_suggestions']['values']())['filter'](_0x4ae899=>'attribute'==_0x4ae899['type']&&_0x4ae899['data']['key']==_0x5461cc&&_0x4ae899['isIntersectingWithRange'](_0x419ad9));if(this['_trackingSessionId']&&(_0x4b9e1a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x34ea51=this['_findSuggestions'](_0x419ad9,'insertion')['filter'](({meta:_0x33be53})=>_0x33be53['isOwn']&&!_0x33be53['isInsideObject']&&!_0x33be53['isNextTo'])['map'](({suggestion:_0x52aaaf})=>_0x52aaaf);_0x40c954['unshift'](..._0x34ea51);}const _0x183df5=new Map([[_0x419ad9,_0x35b4fd]]);for(const _0x4ccec6 of _0x40c954){const _0x2acbbd='attribute'==_0x4ccec6['type']?_0x4ccec6['data']['oldValue']:void 0x0,_0x20c34d=_0x4ccec6['getFirstRange'](),_0x267c47=Array['from'](_0x183df5['keys']())['find'](_0x4725dd=>_0x4725dd['isIntersecting'](_0x20c34d));if(!_0x267c47)continue;const _0x351589=_0x267c47['getDifference'](_0x20c34d);this['_isBlockAttribute'](_0x5461cc)&&'insertion'==_0x4ccec6['type']&&0x0!=_0x351589['length']||(_0x183df5['delete'](_0x267c47),_0x351589['forEach'](_0x1f3946=>{_0x183df5['set'](_0x1f3946,_0x35b4fd);}),'insertion'!=_0x4ccec6['type']&&_0x2acbbd!=_0x2127e3&&_0x183df5['set'](_0x267c47['getIntersection'](_0x20c34d),_0x2acbbd));}const _0x205031=[];for(const [_0x1fd3cc,_0x2c2b1c]of _0x183df5){const _0x28780c=_0x53e807(),_0x2fd638={'key':_0x5461cc,'oldValue':_0x2c2b1c,'newValue':_0x2127e3};_0x5461cc['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':_0x5461cc});const _0x4c507e=('attribute:'+(_0x5461cc+'|'+Ht({'newValue':_0x2127e3})))['substring'](0x0,0x3c),_0x577b0c=this['_setSuggestionData']({'id':_0x28780c,'type':_0x4c507e,'data':_0x2fd638,'createdAt':new Date(),'authorId':_0x5508fe,'attributes':_0x4b9e1a});_0x205031['push'](_0x577b0c),this['_addSuggestionMarker'](_0x4c507e,_0x28780c,_0x5508fe,_0x1fd3cc);}return _0x205031;}['enableDefaultAttributesIntegration'](_0x4d4a00){this['enableCommand'](_0x4d4a00,(_0xa69cc,..._0x204890)=>{this['recordAttributeChanges'](()=>{_0xa69cc(..._0x204890);});});}['registerBlockAttribute'](_0x2c0328){this['editor']['plugins']['get'](_0x37c103)['registerBlockAttribute'](_0x2c0328);}['registerInlineAttribute'](_0x4947d0){this['editor']['plugins']['get'](_0x37c103)['registerInlineAttribute'](_0x4947d0);}['startTrackingSession'](_0xad9265){return this['_trackingSessionId']=void 0x0!==_0xad9265?_0xad9265:_0x53e807(),this['_trackingSessionId'];}['_getAttributeKey'](_0x117c3d){return'attribute'==_0x117c3d['type']?_0x117c3d['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5e0966){if(0x0==_0x5e0966['length'])return;const _0x217c16=this['editor'],_0x3fc60b=_0x217c16['plugins']['get'](_0x4d2747),_0x59517a=[];_0x217c16['model']['change'](_0x342c54=>{for(let _0x363113=0x0;_0x363113<_0x5e0966['length'];_0x363113++){const _0xca250b=_0x5e0966[_0x363113];if(_0xca250b['baseVersion']=_0x217c16['model']['document']['version'],_0xca250b['isDocumentOperation']=!0x0,_0x3fc60b['isMarkedRemoveOperation'](_0xca250b)){const _0x9e240b=_0x5ed84c(_0xca250b['newRange'],_0x217c16['model']);_0x59517a['unshift'](_0x2d2f8b['fromRange'](_0x9e240b));}else switch(_0xca250b['type']){case'rename':{const _0x44ff49=_0xca250b['oldName'],_0x1c3321=_0xca250b['newName'];if(_0x44ff49==_0x1c3321)break;_0x342c54['batch']['addOperation'](_0xca250b),_0x217c16['model']['applyOperation'](_0xca250b);const _0x58a516='$elementName',_0x480805=_0xca250b['position'],_0x18f402=_0x217c16['model']['createRange'](_0x480805,_0x217c16['model']['createPositionAt'](_0x480805['nodeAfter'],'end'));this['markAttributeChange'](_0x18f402,_0x58a516,_0x44ff49,_0x1c3321,{'groupId':_0x53e807()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x529973=_0xca250b['oldValue'],_0x540a02=_0xca250b['newValue'];if(_0x529973==_0x540a02)break;_0x342c54['batch']['addOperation'](_0xca250b),_0x217c16['model']['applyOperation'](_0xca250b);const _0x265f6f=_0xca250b['key'];if(!this['_isRegisteredAttribute'](_0x265f6f))break;const _0x211f5a=_0x5ed84c(_0xca250b['range'],_0x217c16['model']);this['markAttributeChange'](_0x211f5a,_0x265f6f,_0x529973,_0x540a02,{'groupId':_0x53e807()});break;}case'insert':{_0x342c54['batch']['addOperation'](_0xca250b),_0x217c16['model']['applyOperation'](_0xca250b);if(_0x5e0966[_0x363113+0x1]&&'move'==_0x5e0966[_0x363113+0x1]['type'])break;const _0x26db2b=_0xca250b['position'],_0x47189e=_0xca250b['howMany'],_0x1365ba=_0x5ed84c(_0x217c16['model']['createRange'](_0x26db2b,_0x26db2b['getShiftedBy'](_0x47189e)),_0x217c16['model']);this['markInsertion'](_0x1365ba);break;}case'split':{_0x342c54['batch']['addOperation'](_0xca250b),_0x217c16['model']['applyOperation'](_0xca250b);const _0x320a84=_0xca250b['splitPosition'],_0x13ce25=_0xca250b['moveTargetPosition'];this['markInsertion'](_0x217c16['model']['createRange'](_0x320a84,_0x13ce25));break;}case'move':case'remove':_0x342c54['batch']['addOperation'](_0xca250b),_0x217c16['model']['applyOperation'](_0xca250b);}}for(const _0x34ec48 of _0x59517a)_0x34ec48['detach'](),this['markDeletion'](_0x34ec48);});}['_setSuggestionRange'](_0x5d78ec,_0x209992){const _0x2b1b02=_0x5d78ec['getFirstMarker']();this['_model']['change'](_0x4250a8=>{_0x4250a8['updateMarker'](_0x2b1b02,{'range':_0x209992});});}['_addThreadToSuggestion'](_0x1a6d4b){const _0x25ac6b=_0x1a6d4b['id'],_0x24f123=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25ac6b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24f123,'threadId':_0x25ac6b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x26f8b7=this['_commentsRepository']['getCommentThread'](_0x25ac6b);_0x26f8b7['unbind']('isRemovable'),_0x26f8b7['isRemovable']=!0x1,_0x1a6d4b['commentThread']=_0x26f8b7;}['_checkSuggestionCorrectness'](_0x4237a5,_0x3e8226,_0x248e7d,_0x4f0281){if(_0x4237a5['type']!=_0x3e8226||_0x4237a5['subType']!=_0x248e7d||_0x4237a5['creator']['id']!=_0x4f0281)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a7ee6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x17ba04,_0x14fd64){const _0x1b8456=_0x17ba04['getFirstRange']();if(_0x14fd64['isEqual'](_0x1b8456))_0x17ba04['removeMarkers']();else{if(_0x1b8456['containsRange'](_0x14fd64)){const _0x28a92d=this['_model']['createPositionAt'](_0x14fd64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17ba04,this['_model']['createRange'](_0x1b8456['start'],_0x28a92d));const _0x274e2c=_0x53e807(),_0x163122=_0x17ba04['creator']['id'],_0x520c9e=_0x17ba04['type']+':'+_0x17ba04['subType'];this['_setSuggestionData']({'id':_0x274e2c,'type':_0x520c9e,'createdAt':new Date(),'authorId':_0x163122,'data':_0x17ba04['data'],'attributes':_0x17ba04['attributes']});const _0x24a98f=this['_model']['createPositionAt'](_0x14fd64['end']['parent'],'after'),_0x4bfa95=this['_model']['createRange'](_0x24a98f,_0x1b8456['end']);this['_addSuggestionMarker'](_0x520c9e,_0x274e2c,_0x163122,_0x4bfa95);}else{if(_0x1b8456['containsPosition'](_0x14fd64['start'])){const _0xc6090f=this['_model']['createPositionAt'](_0x14fd64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17ba04,this['_model']['createRange'](_0x1b8456['start'],_0xc6090f));}else{const _0x26804a=this['_model']['createPositionAt'](_0x14fd64['end']['parent'],'after');this['_setSuggestionRange'](_0x17ba04,this['_model']['createRange'](_0x26804a,_0x1b8456['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2558f8){for(const {suggestion:_0x4b1b90,meta:_0x3aa1b1}of this['_findSuggestions'](_0x2558f8,'insertion')){if(!_0x3aa1b1['isOwn'])continue;const _0x1689b0=_0x4b1b90['getRanges']();for(const _0x3f5ce4 of _0x1689b0)if(!_0x2558f8['getDifference'](_0x3f5ce4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f1dba){return this['editor']['plugins']['get']('Users')['getUser'](_0x4f1dba);}['_getExternalAuthor'](_0x1e7f7c){const _0x5194f7=this['editor']['plugins']['get']('Users'),_0x4c9486=_0x55a810('external:'+_0x1e7f7c),_0xb31082=_0x5194f7['getUser'](_0x4c9486);return _0xb31082||_0x5194f7['addUser']({'id':_0x4c9486,'name':_0x1e7f7c});}['_createSuggestion'](_0x35dfb9,_0x173229,_0xf46375,_0x3745a9,_0x1cbbc7,_0x39606a){const _0x42e4e2=this['_getAuthorFromId'](_0x3745a9);if(!_0x42e4e2)throw new _0x2a7ee6('track-changes-user-not-found',this,{'authorId':_0x3745a9,'suggestionId':_0xf46375});const _0x17416c=this['_suggestionFactory']['buildSuggestion'](_0x35dfb9,_0x173229,_0xf46375,_0x42e4e2,_0x1cbbc7,_0x26e95a=>{this['_updateSuggestionData'](_0xf46375,{'attributes':_0x26e95a});const _0x15143b=this['getSuggestion'](_0xf46375);this['_joinWithAdjacentSuggestions'](new Set([_0x15143b])),this['_refreshSuggestionsChain'](new Set([_0x15143b]));},_0x39606a);return this['listenTo'](_0x17416c,'accept',()=>{this['_updateSuggestionData'](_0xf46375,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17416c,'discard',()=>{this['_updateSuggestionData'](_0xf46375,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xf46375,_0x17416c),this['_suggestionState']['set'](_0x17416c,'notReady'),_0x17416c;}['_splitMarkerName'](_0x590d9d){return _0x1bc86a(_0x590d9d);}['_breakSuggestionMarker'](_0x1d6cb5,_0x24aee6,_0x2e361e){const _0x1135a6=_0x1d6cb5['getFirstRange'](),_0x25f6cb=_0x1135a6['start'],_0x2f786b=_0x1135a6['end'];this['_setSuggestionRange'](_0x1d6cb5,this['_model']['createRange'](_0x25f6cb,_0x24aee6));const _0x5d9a30=_0x53e807(),_0x1ce3c0=_0x1d6cb5['creator']['id'],_0x4d06db=_0x1d6cb5['type']+(_0x1d6cb5['subType']?':'+_0x1d6cb5['subType']:'');this['_setSuggestionData']({'id':_0x5d9a30,'type':_0x4d06db,'createdAt':new Date(),'authorId':_0x1ce3c0,'originalSuggestionId':_0x1d6cb5['_originalSuggestionId']||_0x1d6cb5['id'],'attributes':_0x1d6cb5['attributes'],'data':_0x1d6cb5['data']});const _0x4a5815=this['_getAttributeKey'](_0x1d6cb5);('formatBlock'==_0x1d6cb5['type']||_0x4a5815&&this['_isBlockAttribute'](_0x4a5815))&&(_0x2e361e=this['_model']['createPositionBefore'](_0x2e361e['parent'])),this['_addSuggestionMarker'](_0x4d06db,_0x5d9a30,_0x1ce3c0,this['_model']['createRange'](_0x2e361e,_0x2f786b));}['_findSuggestions'](_0x2cc9dd,_0x232e6f=null){const _0x11426e=[],_0x48e49a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2cc9dd)||(_0x2cc9dd=[_0x2cc9dd]);for(const _0x169534 of this['getSuggestions']()){if(!_0x169534['isInContent'])continue;if(_0x232e6f&&_0x169534['type']!=_0x232e6f)continue;let _0x2cfd2c=!0x1;for(const _0x2b7bf0 of _0x169534['getRanges']()){for(const _0x3d3661 of _0x2cc9dd){const _0x3a3f86=_0x3d3661['start']['isEqual'](_0x2b7bf0['end'])||_0x3d3661['end']['isEqual'](_0x2b7bf0['start']);if(_0x3a3f86||_0x3d3661['getIntersection'](_0x2b7bf0)){const _0x107eb4=_0x3d3661['containsRange'](_0x2b7bf0)&&zt(this['_model']['schema'],_0x2b7bf0['start'],_0x3d3661),_0x48c940=_0x2b7bf0['containsRange'](_0x3d3661)&&zt(this['_model']['schema'],_0x3d3661['start'],_0x2b7bf0);_0x11426e['push']({'suggestion':_0x169534,'meta':{'isOwn':_0x48e49a==_0x169534['author'],'isNextTo':_0x3a3f86,'isInsideObject':_0x107eb4,'containsRangeInObject':_0x48c940}}),_0x2cfd2c=!0x0;break;}}if(_0x2cfd2c)break;}}return _0x11426e;}['_addSuggestionMarker'](_0x1ee504,_0x525b6b,_0x1641b7,_0x502d73,_0x4c846e){this['_model']['change'](_0x19c2d7=>{let _0x567414='suggestion:'+_0x1ee504+':'+_0x525b6b+':'+_0x1641b7;_0x4c846e&&(_0x567414=_0x567414+':'+_0x4c846e),_0x19c2d7['addMarker'](_0x567414,{'range':_0x502d73,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x345a60){const _0x3cae62=_0x345a60['previous'],_0x390db7=_0x345a60['next'];_0x345a60['previous']=null,_0x345a60['next']=null,null!=_0x3cae62&&_0x3cae62['next']==_0x345a60&&(_0x3cae62['next']=_0x390db7),null!=_0x390db7&&_0x390db7['previous']==_0x345a60&&(_0x390db7['previous']=_0x3cae62),'ready'==this['_suggestionState']['get'](_0x345a60)&&(this['_suggestionState']['set'](_0x345a60,'removed'),this['fire']('suggestionUnloaded',_0x345a60,_0x3cae62,_0x390db7));}['_setSuggestionData'](_0x414335){const _0x3fb75a=_0x414335['id'],_0x42b6b7=this['addSuggestionData'](_0x414335);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5f17d0=this['editor']['plugins']['get']('PendingActions'),_0x189963=_0x42b6b7['hasComments'],_0x31ea4c=_0x42b6b7['subType']?_0x42b6b7['type']+':'+_0x42b6b7['subType']:_0x42b6b7['type'],_0x434a03=this['editor']['locale'],_0x4b93ac=_0x5f17d0['add'](o(_0x434a03,'PENDING_ACTION_SUGGESTION')),_0xbe234e={'id':_0x3fb75a,'type':_0x31ea4c,'hasComments':_0x189963,'data':_0x414335['data']||null,'originalSuggestionId':_0x414335['originalSuggestionId']||null,'attributes':_0x42b6b7['attributes']};this['_adapter']['addSuggestion'](_0xbe234e)['then'](_0x57b863=>{_0x42b6b7['_saved']=!0x0,_0x5f17d0['remove'](_0x4b93ac),_0x57b863&&_0x57b863['createdAt']&&(this['_suggestions']['get'](_0x3fb75a)['createdAt']=_0x57b863['createdAt']);})['catch'](_0x2c7a33=>{throw _0x3abf62('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42b6b7['discard']();}),_0x42b6b7['stopListening'](),this['_suggestions']['delete'](_0x42b6b7['id']),this['_suggestionState']['delete'](_0x42b6b7),_0x2c7a33;});}return _0x42b6b7;}['_isBlockAttribute'](_0x39b915){return this['editor']['plugins']['get'](_0x37c103)['isBlockAttribute'](_0x39b915);}['_isInlineAttribute'](_0x6888b1){return this['editor']['plugins']['get'](_0x37c103)['isInlineAttribute'](_0x6888b1);}['_updateSuggestionData'](_0x3bff44,_0x2c25a4){const _0x287de2=this['editor']['plugins']['get']('PendingActions'),_0x3185d7=this['getSuggestion'](_0x3bff44);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3185d7['_saved']){const _0x2b8824=_0x287de2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3bff44,_0x2c25a4)['then'](()=>{_0x287de2['remove'](_0x2b8824);});}else _0x3185d7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3bff44,_0x2c25a4);});}}['_getSuggestionData'](_0x593c0c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a7ee6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x593c0c);}['_handleNewSuggestionMarker'](_0x22a1e7){const {id:_0x25c197,type:_0x3cb6af,subType:_0x566928,authorId:_0x46eaf1}=this['_splitMarkerName'](_0x22a1e7),_0x4445cb=this['_suggestions']['get'](_0x25c197)||this['_createSuggestion'](_0x3cb6af,_0x566928,_0x25c197,_0x46eaf1,{});switch(this['_checkSuggestionCorrectness'](_0x4445cb,_0x3cb6af,_0x566928,_0x46eaf1),this['_suggestionState']['get'](_0x4445cb)){case'notReady':this['_getSuggestionData'](_0x25c197)['then'](_0x1fd4fb=>{let _0x2a8496=Promise['resolve']();_0x1fd4fb['hasComments']&&(_0x2a8496=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x25c197})),_0x2a8496['then'](()=>{this['addSuggestionData'](_0x1fd4fb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4445cb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x25c197,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4445cb,'ready'),this['fire']('suggestionLoaded',_0x4445cb);break;case'ready':this['fire']('suggestionChanged',_0x4445cb);}return _0x4445cb['addMarkerName'](_0x22a1e7),_0x4445cb;}['_refreshSuggestionsChain'](_0x3c684){const _0x430595=Array['from'](_0x3c684),_0x15609c=_0x430595['filter'](_0x1619a0=>'attribute'==_0x1619a0['type']);this['_refreshAttributeSuggestionsChain'](_0x15609c);const _0x332d1f=_0x430595['filter'](_0x205cb1=>!_0x205cb1['isMultiRange']&&'attribute'!=_0x205cb1['type']),_0x5612a6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b289d=>!_0x3b289d['isMultiRange']&&'attribute'!=_0x3b289d['type']),_0x41d7b9=_0x5612a6['filter'](_0x474f53=>!_0x3c684['has'](_0x474f53)),_0x18903a=new Map(_0x5612a6['map'](_0x523625=>[_0x523625,this['_suggestionFactory']['getSuggestionCallback'](_0x523625['type'],_0x523625['subType'],'chain')])),_0x15f7f7=new Map(_0x5612a6['map'](_0x86b6c6=>[_0x86b6c6,_0x86b6c6['getFirstRange']()])),_0x156ab2=new Set(),_0x2e2a57=new Set();for(let _0x11a839=0x0;_0x11a839<_0x332d1f['length'];_0x11a839++)_0x8d03fc(_0x332d1f[_0x11a839],_0x332d1f,_0x11a839+0x1);for(let _0xab7673=0x0;_0xab7673<_0x332d1f['length'];_0xab7673++)_0x8d03fc(_0x332d1f[_0xab7673],_0x41d7b9,0x0);const _0x44b9a1=new Set();for(let _0x329766=0x0;_0x329766<_0x332d1f['length'];_0x329766++){const _0x17d0b8=_0x332d1f[_0x329766];!_0x2e2a57['has'](_0x17d0b8)&&_0x17d0b8['previous']&&(_0x44b9a1['add'](_0x17d0b8['previous']),_0x17d0b8['previous']['next']===_0x17d0b8&&(_0x17d0b8['previous']['next']=null),_0x17d0b8['previous']=null),!_0x156ab2['has'](_0x17d0b8)&&_0x17d0b8['next']&&(_0x44b9a1['add'](_0x17d0b8['next']),_0x17d0b8['next']['previous']===_0x17d0b8&&(_0x17d0b8['next']['previous']=null),_0x17d0b8['next']=null);}function _0x8d03fc(_0x39e1df,_0x5e1cbd,_0x5f4538){for(let _0xfec838=_0x5f4538;_0xfec838<_0x5e1cbd['length'];_0xfec838++){const _0x2b2eb7=_0x472666(_0x39e1df,_0x5e1cbd[_0xfec838]);_0x2b2eb7&&(_0x2b2eb7[0x0]['next']=_0x2b2eb7[0x1],_0x2b2eb7[0x1]['previous']=_0x2b2eb7[0x0],_0x156ab2['add'](_0x2b2eb7[0x0]),_0x2e2a57['add'](_0x2b2eb7[0x1]));}}function _0x472666(_0x411a2b,_0x2902c8){if(_0x411a2b['author']['id']!==_0x2902c8['author']['id'])return null;const _0x813385=_0x18903a['get'](_0x411a2b)(_0x411a2b,_0x2902c8,_0x15f7f7['get'](_0x411a2b),_0x15f7f7['get'](_0x2902c8));if(!_0x813385)return null;return _0x18903a['get'](_0x2902c8)(_0x411a2b,_0x2902c8,_0x15f7f7['get'](_0x411a2b),_0x15f7f7['get'](_0x2902c8))?_0x813385[0x1]['commentThread']&&_0x813385[0x1]['commentThread']['length']?null:_0x813385:null;}_0x44b9a1['size']&&this['_refreshSuggestionsChain'](_0x44b9a1);}['_refreshAttributeSuggestionsChain'](_0x33bdef){if(0x0==_0x33bdef['length'])return;const _0xa79ff3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4653a8=>'attribute'==_0x4653a8['type']&&_0x4653a8['_isDataLoaded']),_0x5a08d5=[],_0x1f5b58=new Map();for(const _0x3632f8 of _0xa79ff3){const _0x4622f2=_0x55a810(_0x3632f8['attributes']);_0x1f5b58['has'](_0x4622f2)||(_0x1f5b58['set'](_0x4622f2,_0x5a08d5['length']),_0x5a08d5['push']([]));const _0xc503db=_0x1f5b58['get'](_0x4622f2);_0x5a08d5[_0xc503db]['push'](_0x3632f8);}!(function(){_0x5a08d5['sort']((_0x3073ab,_0x23ec48)=>{const _0x3dad71=_0x3073ab[0x0]['createdAt'],_0x10eac1=_0x23ec48[0x0]['createdAt'];return _0x3dad71==_0x10eac1?_0x3073ab[0x0]['attributes']['groupId']<_0x23ec48[0x0]['attributes']['groupId']?-0x1:0x1:_0x3dad71<_0x10eac1?-0x1:0x1;});for(const _0xff8a3a of _0x5a08d5)_0xff8a3a['sort']((_0x3e68c8,_0x1ca90c)=>_0x3e68c8['id']<_0x1ca90c['id']?-0x1:0x1);}());for(let _0x272a51=0x0;_0x272a51<_0x5a08d5['length'];_0x272a51++){if(0x0==_0x5a08d5[_0x272a51]['length'])continue;const _0x38bcda=[];for(let _0x271cd8=_0x272a51+0x1;_0x271cd8<_0x5a08d5['length'];_0x271cd8++)0x0!=_0x5a08d5[_0x271cd8]['length']&&_0x19dd6b(_0x5a08d5[_0x272a51],_0x5a08d5[_0x271cd8])&&_0x38bcda['push'](_0x271cd8);for(const _0x2d9e07 of _0x38bcda)_0x5a08d5[_0x272a51]=_0x5a08d5[_0x272a51]['concat'](_0x5a08d5[_0x2d9e07]),_0x5a08d5[_0x2d9e07]=[];}for(const _0x2b2c28 of _0x5a08d5)for(let _0x13da92=0x0;_0x13da92<_0x2b2c28['length'];_0x13da92++){const _0x29698e=_0x2b2c28[_0x13da92+0x1]||null;_0x2b2c28[_0x13da92]['next']!==_0x29698e&&(_0x2b2c28[_0x13da92]['next']=_0x29698e);}for(const _0x276b7e of _0x5a08d5)for(let _0x2797e5=0x0;_0x2797e5<_0x276b7e['length'];_0x2797e5++){const _0x545ae8=_0x276b7e[_0x2797e5-0x1]||null;_0x276b7e[_0x2797e5]['previous']!==_0x545ae8&&(_0x276b7e[_0x2797e5]['previous']=_0x545ae8);}function _0x19dd6b(_0x37fb18,_0xc56db9){if(_0x37fb18[0x0]['attributes']['groupId']!==_0xc56db9[0x0]['attributes']['groupId']&&_0x37fb18[0x0]['author']!==_0xc56db9[0x0]['author'])return!0x1;if(!function(_0x4e9ac8,_0x380860){if(!_0x4e9ac8['hasComments']&&!_0x380860['hasComments'])return!0x0;if(_0x4e9ac8['hasComments']&&_0x380860['hasComments'])return!0x1;if(_0x4e9ac8['hasComments']&&_0x380860['createdAt']<_0x4e9ac8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x380860['hasComments']&&_0x4e9ac8['createdAt']<_0x380860['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37fb18[0x0],_0xc56db9[0x0]))return!0x1;const _0x51eae8=Jt(_0x37fb18[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c56ba=Jt(_0xc56db9[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x442b56(_0x51eae8,_0x3c56ba))return!0x1;if(_0x37fb18[0x0]['attributes']['groupId']==_0xc56db9[0x0]['attributes']['groupId'])return!0x0;if(_0x37fb18[0x0]['attributes']['trackingSessionId']!==_0xc56db9[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x37fb18['every'](_0x6495ad=>_0xc56db9['some'](_0x3a11c7=>_0x6495ad['getFirstRange']()['isEqual'](_0x3a11c7['getFirstRange']())))&&_0xc56db9['every'](_0x3b2abf=>_0x37fb18['some'](_0x44ba9a=>_0x3b2abf['getFirstRange']()['isEqual'](_0x44ba9a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1ba62e){const _0x4382d4=Array['from'](_0x1ba62e),_0x1a57dd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3032bf=_0x1a57dd['filter'](_0xb7882b=>!_0x1ba62e['has'](_0xb7882b)),_0x3d449a=new Map(_0x4382d4['map'](_0x4a3ce7=>[_0x4a3ce7,this['_suggestionFactory']['getSuggestionCallback'](_0x4a3ce7['type'],_0x4a3ce7['subType'],'join')])),_0x11cc6b=new Map(_0x1a57dd['map'](_0x475192=>[_0x475192,_0x475192['getRanges']()]));for(let _0x4c4d24=0x0;_0x4c4d24<_0x4382d4['length'];_0x4c4d24++){if(_0x4d010a(this,_0x4382d4[_0x4c4d24],_0x4382d4,_0x4c4d24+0x1))return!0x0;}for(let _0x8cb621=0x0;_0x8cb621<_0x4382d4['length'];_0x8cb621++){if(_0x4d010a(this,_0x4382d4[_0x8cb621],_0x3032bf,0x0))return!0x0;}return!0x1;function _0x4d010a(_0x3cecac,_0x51d3e8,_0x4b3272,_0x19606a){for(let _0xa1172c=_0x19606a;_0xa1172c<_0x4b3272['length'];_0xa1172c++){const _0xbd26a4=_0x4b3272[_0xa1172c];if(_0xbd26a4['type']!==_0x51d3e8['type']||_0xbd26a4['author']['id']!==_0x51d3e8['author']['id']||_0xbd26a4['subType']!==_0x51d3e8['subType'])continue;if(!en(_0x51d3e8,_0xbd26a4))continue;if('attribute'==_0x51d3e8['type']&&_0x51d3e8['data']['oldValue']!=_0xbd26a4['data']['oldValue'])continue;if('attribute'==_0x51d3e8['type']&&_0x3cecac['_isBlockAttribute'](_0x51d3e8['data']['key']))continue;if('formatBlock'==_0x51d3e8['type']){const _0x5bf6e9=_0x3cecac['editor']['model'],_0x25490d=_0x51d3e8['getContainedElement']();if(_0x25490d&&(_0x5bf6e9['schema']['isObject'](_0x25490d)||_0x5bf6e9['schema']['isLimit'](_0x25490d)))continue;}const _0x4965af=_0x3d449a['get'](_0x51d3e8),_0x123f47=_0x11cc6b['get'](_0x51d3e8),_0xd6087=_0x11cc6b['get'](_0xbd26a4),_0x2e7069=_0x51d3e8['commentThread']&&_0x51d3e8['commentThread']['length'],_0x2a519a=_0xbd26a4['commentThread']&&_0xbd26a4['commentThread']['length'];if(!_0x2e7069&&_0x4965af(_0xd6087,_0x123f47))return _0x3cecac['_joinSuggestions'](_0xbd26a4,_0x51d3e8),_0x11cc6b['delete'](_0x51d3e8),!0x0;if(!_0x2a519a&&_0x4965af(_0x123f47,_0xd6087))return _0x3cecac['_joinSuggestions'](_0x51d3e8,_0xbd26a4),_0x11cc6b['delete'](_0xbd26a4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x115092,_0x450bbb){if(_0x115092['isMultiRange']){for(const _0x4082c9 of _0x450bbb['getRanges']())_0x115092['addRange'](_0x4082c9);}else{const _0x11a69d=_0x450bbb['getFirstRange']()['end'];this['_setSuggestionRange'](_0x115092,this['_model']['createRange'](_0x115092['getFirstRange']()['start'],_0x11a69d));}_0x450bbb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x31ac1d,_0x12b953,_0x29af6b){const _0x5e37f6=_0x31ac1d['startsWith']('format')||_0x31ac1d['startsWith']('attribute')?'FORMATTING':_0x31ac1d['toUpperCase']();return o(this['editor']['locale'],_0x12b953+'_'+_0x5e37f6+'_SUGGESTION_ANNOUNCEMENT',_0x29af6b);}['_initAriaMarkerChangeAnnouncements'](){const _0x4dfc21=this['editor'];if(!_0x4dfc21['ui'])return;const {ariaLiveAnnouncer:_0x48cf94}=_0x4dfc21['ui'];_0x18efa6(this['_model'],({left:_0x224576,entered:_0x4a1845})=>{for(const _0x28f1e9 of _0x224576){const {group:_0x18b1c4,type:_0x350d60}=this['_splitMarkerName'](_0x28f1e9['name']);if('suggestion'===_0x18b1c4){_0x48cf94['announce'](this['_getMarkerAnnouncementText'](_0x350d60,'LEAVE'));break;}}for(const _0x47f5ac of _0x4a1845){const {group:_0x35fac8,type:_0x321bb7}=this['_splitMarkerName'](_0x47f5ac['name']);if('suggestion'===_0x35fac8){_0x48cf94['announce'](this['_getMarkerAnnouncementText'](_0x321bb7,'ENTER',_0x113960(_0x289930)));break;}}});}['_processAttributeChanges'](_0x624552){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a1a3b=this['editor'],_0x2c9beb=_0x5a1a3b['model']['document']['differ']['getChanges']();if(0x0==_0x2c9beb['length'])return!0x1;const _0x23d1e3=[],_0x26997e=_0x2c9beb['filter'](_0x117338=>'attribute'==_0x117338['type']),_0x1c610f=_0x2c9beb['filter'](_0x83c53b=>'insert'==_0x83c53b['type']&&'$text'!=_0x83c53b['name']),_0x325c1a=_0x2c9beb['filter'](_0x5cf52f=>'remove'==_0x5cf52f['type']&&'$text'!=_0x5cf52f['name']);for(const _0x5d06ab of _0x26997e)_0x23d1e3['push']({'key':_0x5d06ab['attributeKey'],'newValue':_0x5d06ab['attributeNewValue'],'oldValue':_0x5d06ab['attributeOldValue'],'range':Zt(_0x5d06ab['range'],_0x5a1a3b['model'])});for(const _0xcea296 of _0x1c610f){const _0x4aa83e=_0x325c1a['find'](_0x16328c=>_0x16328c['position']['isEqual'](_0xcea296['position']));_0x4aa83e&&_0x23d1e3['push']({'key':m,'newValue':_0xcea296['name'],'oldValue':_0x4aa83e['name'],'range':_0x5a1a3b['model']['createRangeOn'](_0xcea296['position']['nodeAfter'])});}return 0x0!=_0x23d1e3['length']&&this['_reduceExistingSuggestions'](_0x624552,_0x23d1e3);}['_processAttributeSuggestions'](_0x301830){let _0x1711f=!0x1;const _0x3082a0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ba001=>_0x4ba001['data']['newRange']&&_0x4ba001['name']['startsWith']('suggestion:attribute:'));for(const _0x2cf009 of _0x3082a0){const {subType:_0xa13e4f,id:_0x136382}=this['_splitMarkerName'](_0x2cf009['name']),_0x5b7513=_0xa13e4f['split']('|')[0x0];for(const _0x32145f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x32145f['id']!=_0x136382&&'attribute'==_0x32145f['type']&&_0x32145f['data']&&_0x32145f['data']['key']==_0x5b7513&&_0x32145f['getFirstRange']()['isIntersecting'](_0x2cf009['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x32145f,_0x2cf009['data']['newRange'],_0x301830),_0x1711f=!0x0);}return _0x1711f;}['recordAttributeChanges'](_0x24c37b){this['_recordAttributeSuggestions']=!0x0,_0x24c37b();}['_isRegisteredAttribute'](_0x3538d7){return this['editor']['plugins']['get'](_0x37c103)['isRegisteredAttribute'](_0x3538d7);}['_reduceExistingSuggestions'](_0x2d4b2b,_0x2117df){if(0x0==_0x2117df['length'])return!0x1;let _0x576a03=!0x1;for(const _0x5c3b72 of _0x2117df){const _0x146c7c=this['_findSuggestions'](_0x5c3b72['range'],'attribute')['filter'](_0x8f44bf=>!_0x8f44bf['meta']['isNextTo'])['map'](_0x53c70c=>_0x53c70c['suggestion']),_0x3164b6=_0x55a810({'newValue':_0x5c3b72['newValue']});_0x146c7c['filter'](_0xb25255=>{const [_0x446163,_0x12748d]=_0xb25255['subType']['split']('|');return _0x446163==_0x5c3b72['key']&&_0x12748d!=_0x3164b6;})['forEach'](_0x116a9b=>{this['_reduceSuggestionAttributeRange'](_0x116a9b,_0x5c3b72['range'],_0x2d4b2b),_0x576a03=!0x0;});}return _0x576a03;}['_reduceSuggestionAttributeRange'](_0x38ec6f,_0x3d8573,_0x1e0041){const _0x1c812f=_0x38ec6f['getFirstRange']()['getDifference'](_0x3d8573);0x0!==_0x1c812f['length']?0x1!==_0x1c812f['length']?this['_breakSuggestionMarker'](_0x38ec6f,_0x3d8573['start'],_0x3d8573['end']):this['_setSuggestionRange'](_0x38ec6f,_0x1c812f[0x0]):_0x1e0041['removeMarker'](_0x38ec6f['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x234e91){this['_editor']=_0x234e91,this['_model']=_0x234e91['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4ca3e1,_0x268131,_0x474e4e,_0x4e42bf,_0x3ec6d4,_0x3d56f,_0x2fc28a){return new T(this['_model'],{'type':_0x4ca3e1,'subType':_0x268131,'id':_0x474e4e,'originalSuggestionId':_0x2fc28a,'author':_0x4e42bf,'creator':_0x4e42bf,'attributes':_0x3ec6d4,'onAttributesChange':_0x3d56f,'onAccept':(..._0x14fccf)=>this['getSuggestionCallback'](_0x4ca3e1,_0x268131,'accept')(..._0x14fccf),'onDiscard':(..._0x4a2bb3)=>this['getSuggestionCallback'](_0x4ca3e1,_0x268131,'discard')(..._0x4a2bb3)});}['registerCustomCallback'](_0x510cdc,_0x4e9133,_0x3cdd24,_0x3a44db){const _0x567711=_0x510cdc+':'+_0x4e9133+':'+_0x3cdd24;this['_customCallbacks']['set'](_0x567711,_0x3a44db);}['getSuggestionCallback'](_0x4e201f,_0x11cf94,_0x135d09){const _0xb319ea=_0x4e201f+':'+_0x11cf94+':'+_0x135d09;return this['_customCallbacks']['get'](_0xb319ea)||this['_defaultCallbacks']['get'](_0x4e201f+':'+_0x135d09);}['_registerDefaultCallbacks'](){const _0x51ae52=()=>!0x1,_0x26f0c0=_0x3814e4=>{_0x3814e4['sort']((_0x5df545,_0x379227)=>_0x5df545['start']['isBefore'](_0x379227['start'])?0x1:-0x1),this['_model']['change'](_0x166383=>{for(const _0x1553e3 of _0x3814e4){let _0x331178;_0x331178=_0x1553e3['end']['isAtEnd']&&_0x1553e3['end']['parent']==_0x1553e3['start']['nodeAfter']?_0x166383['createSelection'](_0x1553e3['start']['nodeAfter'],'on'):_0x166383['createSelection'](_0x1553e3),this['_model']['deleteContent'](_0x331178,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x13f836=(_0x3ab2ab,_0x5dfcb2)=>{_0x5dfcb2&&this['_model']['change'](_0x2a2856=>{const {commandName:_0x1b7f08,commandParams:_0x311e1d=[]}=_0x5dfcb2,_0x5232f2=_0x3ab2ab['map'](_0xa5fdf8=>(Kt(_0xa5fdf8)&&(_0xa5fdf8=this['_model']['createRange'](_0xa5fdf8['end'])),_0xa5fdf8))['filter'](_0x13e20b=>'$graveyard'!==_0x13e20b['root']['rootName']);if(_0x5232f2['length']<0x1)return;const _0x22c9ec=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x168a6f=>_0x2d2f8b['fromRange'](_0x168a6f));_0x2a2856['setSelection'](_0x5232f2);for(const _0x4e76a2 of this['_editor']['commands']['commands']())_0x4e76a2['refresh']();_0x311e1d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b7f08,..._0x311e1d);const _0x865a00=_0x22c9ec['filter'](_0x9a4841=>'$graveyard'!=_0x9a4841['root']['rootName']);_0x865a00['length']>0x0&&_0x2a2856['setSelection'](_0x865a00);for(const _0x5999c8 of _0x22c9ec)_0x5999c8['detach']();});},_0x375445=(_0x4bc646,_0x26f37e)=>0x1==_0x4bc646['length']&&0x1==_0x26f37e['length']&&_0x4bc646[0x0]['end']['isEqual'](_0x26f37e[0x0]['start']),_0x343387=(_0x3d0efc,_0x4c0b7b,_0x3b9c77,_0x2c289c)=>nn(_0x3d0efc,_0x4c0b7b,_0x3b9c77,_0x2c289c)?[_0x3d0efc,_0x4c0b7b]:nn(_0x4c0b7b,_0x3d0efc,_0x2c289c,_0x3b9c77)?[_0x4c0b7b,_0x3d0efc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x51ae52),this['_defaultCallbacks']['set']('insertion:discard',_0x26f0c0),this['_defaultCallbacks']['set']('insertion:join',_0x375445),this['_defaultCallbacks']['set']('insertion:chain',_0x343387),this['_defaultCallbacks']['set']('deletion:accept',_0x26f0c0),this['_defaultCallbacks']['set']('deletion:discard',_0x51ae52),this['_defaultCallbacks']['set']('deletion:join',_0x375445),this['_defaultCallbacks']['set']('deletion:chain',_0x343387),this['_defaultCallbacks']['set']('formatInline:accept',_0x13f836),this['_defaultCallbacks']['set']('formatInline:discard',_0x51ae52),this['_defaultCallbacks']['set']('formatInline:join',_0x375445),this['_defaultCallbacks']['set']('formatInline:chain',_0x51ae52),this['_defaultCallbacks']['set']('formatBlock:accept',_0x13f836),this['_defaultCallbacks']['set']('formatBlock:discard',_0x51ae52),this['_defaultCallbacks']['set']('formatBlock:join',_0x375445),this['_defaultCallbacks']['set']('formatBlock:chain',_0x51ae52),this['_defaultCallbacks']['set']('attribute:accept',_0x51ae52),this['_defaultCallbacks']['set']('attribute:discard',(_0x50770f,_0x424375)=>{if(!_0x424375)return;const _0x56cb0b=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x232838=>{if(_0x424375['key']==m)for(const _0x83c1c3 of _0x50770f){const _0x746ca0=_0x83c1c3['start']['nodeAfter'],_0x49e576=_0x424375['oldValue'];_0x232838['rename'](_0x746ca0,_0x49e576);}else{if(_0x56cb0b['_isBlockAttribute'](_0x424375['key'])){for(const _0x307c54 of _0x50770f)void 0x0!==_0x424375['oldValue']?_0x232838['setAttribute'](_0x424375['key'],_0x424375['oldValue'],_0x307c54['start']['nodeAfter']):_0x232838['removeAttribute'](_0x424375['key'],_0x307c54['start']['nodeAfter']);}else{for(const _0x6155c7 of _0x50770f)_0x424375['oldValue']?_0x232838['setAttribute'](_0x424375['key'],_0x424375['oldValue'],_0x6155c7):_0x232838['removeAttribute'](_0x424375['key'],_0x6155c7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x375445);}}function zt(_0x5d005d,_0x27a0da,_0x16c904){for(const _0x4fdfed of _0x27a0da['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fdfed['root']==_0x4fdfed)return!0x1;if(!_0x16c904['containsItem'](_0x4fdfed))return!0x1;if(_0x5d005d['isObject'](_0x4fdfed)||_0x5d005d['isLimit'](_0x4fdfed))return!0x0;}return!0x1;}function Kt(_0x5debf7){return _0x5debf7['end']['parent']==_0x5debf7['start']['nodeAfter']&&_0x5debf7['end']['isAtStart'];}function Wt(_0x5912a8,_0x379fd3,_0x253a7d,_0xc36d06){const _0x2cb0f6=_0x15d3ac=>!_0x15d3ac['item']['is']('$textProxy')&&!_0xc36d06['isObject'](_0x15d3ac['item']),_0x441237=_0x5912a8['start']['getLastMatchingPosition'](_0x2cb0f6),_0x11b312=_0x5912a8['end']['getLastMatchingPosition'](_0x2cb0f6,{'direction':'backward'});return(!_0x5912a8['start']['isEqual'](_0x441237)||!_0x5912a8['end']['isEqual'](_0x11b312))&&(_0x441237['isBefore'](_0x11b312)?_0x253a7d['updateMarker'](_0x379fd3,{'range':_0x253a7d['createRange'](_0x441237,_0x11b312)}):_0x253a7d['removeMarker'](_0x379fd3),!0x0);}function Ht(_0x5c67bb){return _0x55a810(_0x5c67bb);}function Qt(_0x3eeacf){const _0x5e7de3=_0x3eeacf['start']['nodeAfter'];return _0x5e7de3&&_0x5e7de3['is']('element');}function Xt(_0xa577fe){return Kt(_0xa577fe)||function(_0x2c7940){return _0x2c7940['start']['parent']==_0x2c7940['end']['nodeBefore']&&_0x2c7940['start']['isAtEnd'];}(_0xa577fe);}function Yt(_0x1c39b6,_0x1b648a){try{const _0x391a46=_0x1c39b6['getRange']();for(const _0xf7b315 of _0x1b648a)if(_0x1c39b6!==_0xf7b315&&_0x391a46&&_0x391a46['isIntersecting'](_0xf7b315['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1b6e41,_0x488e20){return null==_0x1b6e41['end']['nodeBefore']&&_0x1b6e41['end']['parent']==_0x1b6e41['start']['nodeAfter']?tn(_0x1b6e41['start']['nodeAfter'],_0x488e20):_0x1b6e41;}function tn(_0x5278b5,_0x1b1fbf){const _0x2cadb2=_0x1b1fbf['schema']['isObject'](_0x5278b5)||_0x1b1fbf['schema']['isSelectable'](_0x5278b5);return _0x1b1fbf['createRange'](_0x1b1fbf['createPositionAt'](_0x5278b5,'before'),_0x2cadb2?_0x1b1fbf['createPositionAfter'](_0x5278b5):_0x1b1fbf['createPositionAt'](_0x5278b5,'end'));}function nn(_0x24be89,_0x493dc7,_0x2bdc5e,_0x1ffdd4){return!!en(_0x24be89,_0x493dc7)&&_0x2bdc5e['end']['isEqual'](_0x1ffdd4['start']);}function en(_0x3bfe42,_0x19e458){if(!_0x3bfe42['_isDataLoaded']||!_0x19e458['_isDataLoaded'])return!0x1;const _0x2e5927=new Set(Object['keys'](_0x3bfe42['attributes'])),_0x2d2602=new Set(Object['keys'](_0x19e458['attributes']));if(_0x2e5927['delete']('groupId'),_0x2d2602['delete']('groupId'),0x0==_0x2e5927['size']&&0x0==_0x2d2602['size'])return!0x0;if(_0x2e5927['size']!=_0x2d2602['size'])return!0x1;const _0x40e6a3={..._0x3bfe42['attributes']},_0x3310e8={..._0x19e458['attributes']};return delete _0x40e6a3['groupId'],delete _0x3310e8['groupId'],JSON['stringify'](_0x40e6a3)==JSON['stringify'](_0x3310e8);}function sn(_0x2c4e9e,_0x437b9a){const _0x239eba=on(_0x2c4e9e['attributes']),_0x4c0ee1=on(_0x437b9a);if(!_0x2c4e9e['_isDataLoaded'])return!0x1;for(const _0x553db3 of Object['keys'](_0x4c0ee1))if(!_0x442b56(_0x239eba[_0x553db3],_0x4c0ee1[_0x553db3]))return!0x1;return!0x0;}function on(_0x895987){const _0x1f2ac0=Object['assign']({},_0x895987);return delete _0x1f2ac0['skipNestingCheck'],delete _0x1f2ac0['tablePasteChainId'],_0x1f2ac0;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x494b93(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1edc4e,_0x4072a1,_0x3f04f6,_0x4f2b10){super(),this['model']=_0x4072a1,this['view']=_0x3f04f6,this['commentThreadController']=_0x4f2b10,this['_editor']=_0x1edc4e,this['_acceptCommand']=_0x1edc4e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1edc4e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xaaeab5,_0x3e30a8)=>_0xaaeab5||_0x3e30a8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5a9f91=>_0x5a9f91&&this['_editor']['model']['canEditAt'](_0x4072a1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x237814=>_0x237814&&this['_editor']['model']['canEditAt'](_0x4072a1['getRanges']())),this['_pendingAction']=null,_0x3f04f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3f04f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3f04f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3f04f6,'change:isDirty',()=>{_0x3f04f6['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 _0x4ea2c4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4ea2c4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x44ef91{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x305cfd,_0x158ab0,_0x43c718,_0x2d8110){super(_0x305cfd),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x53144a(_0x305cfd,o(_0x305cfd,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x158ab0['authoredAt']),this['bind']('authoredAt')['to'](_0x158ab0),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',_0x158ab0,'authoredAt',this,'descriptionParts',(_0x2765e0,_0xf04015,_0x215f11)=>{const _0xc837a0=_0x215f11['map'](_0x40986a=>ls(_0x40986a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2765e0-0x1,_0x158ab0['author']['name'],_0xf04015?_0x2d8110['formatDateTime'](_0xf04015):'',new DOMParser()['parseFromString'](_0xc837a0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3f7fdb(),this['focusTracker']=new _0x58ee41(),this['keystrokes']=new _0x188226(),this['focusCycler']=new _0x54e9c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x147039=>_0x147039['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x158ab0,this['_localUser']=_0x43c718,this['_config']=_0x2d8110,_0x2d8110['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x18514a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5671e8}=this['_config'];this['commentsListView']=new _0x5671e8(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',_0x2c88ea=>_0x2c88ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2775cf,_0xec978)=>_0x2775cf||!!_0xec978);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e9757}=this['_config'],_0x54e97f=new _0x4e9757(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x36c221=_0x54e97f['commentInputView'];return _0x54e97f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x36c221,'value',(_0x14d3a5,_0x2d61a7,_0x4cc09e)=>!!_0x4cc09e||_0x14d3a5&&!_0x2d61a7),_0x36c221['on']('submit',(_0x24d9de,_0x58a482)=>{this['fire']('addComment',_0x58a482),_0x36c221['editor']['setData']('');}),_0x36c221['on']('cancel',()=>this['focus']()),_0x36c221['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54e97f;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x10bd46,_0x57d80c,_0x1d282f,_0x1e01ce){super(_0x10bd46,_0x57d80c,_0x1d282f,_0x1e01ce),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x53a630=>_0x53a630&&_0x53a630[0x0]?_0x53a630[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3c364c,_0x10b70a)=>{let _0x296923='';for(const _0xacc9d6 of _0x3c364c)_0x296923+='<p>'+ls(_0xacc9d6['content'],_0xacc9d6['color'])+'</p>';return _0x10b70a?_0x296923:_0x2a04dd(_0x296923,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1e01ce['SuggestionView'](_0x10bd46,_0x57d80c,{'formatDateTime':_0x1e01ce['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 _0x202b86=this['bindTemplate'],_0x28717c=[this['suggestionView']];return this['commentsListView']&&_0x28717c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x28717c['push'](this['commentThreadInputView']),_0x28717c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x202b86['if']('isActive','ck-suggestion-wrapper--active'),_0x202b86['to']('type',_0x49556e=>'ck-suggestion-'+_0x49556e),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':_0x202b86['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x28717c};}['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 _0x44ef91{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3276aa,_0x503c16,_0x53dc83){super(_0x3276aa),this['_model']=_0x503c16,this['_config']=_0x53dc83,this['set']('description',''),this['bind']('authoredAt')['to'](_0x503c16),this['acceptButton']=this['_createButton'](o(_0x3276aa,'Accept\x20suggestion'),_0x303803,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3276aa,'Discard\x20suggestion'),_0x318bc9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1fee7d(_0x3276aa,_0x503c16['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3f7fdb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x58ee41(),this['keystrokes']=new _0x188226(),this['focusCycler']=new _0x54e9c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x306c1f=>_0x306c1f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3158cc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3158cc['innerHTML']=this['description'],this['on']('change:description',(_0x24c2e2,_0x3ce9d2,_0x271d1d)=>{_0x3158cc['innerHTML']=_0x271d1d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5075f0=this['bindTemplate'],_0x4f9098=[{'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':_0x5075f0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5075f0['to']('authoredAt',_0x1462a2=>this['_config']['formatDateTime'](_0x1462a2))}]}]},{'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']&&_0x4f9098['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':_0x4f9098}]};}['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'](_0x1956c6,_0x332975,_0x145daa,_0x4ae6c5,_0x59f4f7){const _0x4f8524=new _0x5de585(this['locale']);return _0x4f8524['set']({'label':_0x1956c6,'icon':_0x332975,'tooltip':!0x0,'tooltipPosition':_0x59f4f7}),_0x4f8524['extendTemplate']({'attributes':{'class':_0x145daa}}),_0x4f8524['on']('execute',()=>{this['fire'](_0x4ae6c5,this['_model']['id']);}),_0x4f8524;}['_setupKeyboardNavigation'](){const _0x1667c8=this['element'];this['keystrokes']['listenTo'](_0x1667c8);for(const _0x3be9e7 of this['focusables'])this['focusTracker']['add'](_0x3be9e7['element']),this['keystrokes']['listenTo'](_0x3be9e7['element']);this['keystrokes']['set']('enter',(_0x41494f,_0x123a34)=>{_0x1667c8===_0x41494f['target']&&(this['focusCycler']['focusFirst'](),_0x123a34());}),this['keystrokes']['set']('esc',(_0x15c831,_0x594f35)=>{_0x1667c8!==_0x15c831['target']&&(this['focus'](),_0x594f35());});}}class u extends _0x109a9f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x27bc1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bec65){super(_0x1bec65),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3ca80a=this['editor']['config'];_0x3ca80a['define']('trackChanges.SuggestionThreadView',fe),_0x3ca80a['define']('trackChanges.SuggestionView',we),_0x3ca80a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3ca80a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x598c69,_0x7f6362){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x274901,_0x2429fb]of this['_handleControllerBuffer']){const _0x2af91f=this['_suggestionToController']['has'](_0x274901);_0x2af91f||_0x2429fb?_0x2af91f&&_0x2429fb&&this['_destroyController'](_0x274901):this['_initializeController'](_0x274901);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x598c69,_0x7f6362);}['init'](){const _0x1a0779=this['editor'],_0x4262d9=_0x1a0779['plugins']['get']('TrackChangesEditing'),_0x59b2e9=_0x1a0779['plugins']['get']('Annotations'),_0xc04a66=_0x1a0779['plugins']['get']('EditorAnnotations'),_0x10afd9=_0x1a0779['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xc04a66['addSourceCollector'](()=>{const _0x599c6c=[];for(const [_0x25d524,_0x4da0f5]of Array['from'](this['_suggestionToController'])){const _0x103b93=_0x25d524['getAllAdjacentSuggestions'](),_0xacd41d=[];for(const _0x2791c6 of _0x103b93){if(!_0x2791c6['isInContent'])continue;if(_0x2791c6['isMultiRange']){_0xacd41d['push'](..._0x2791c6['getRanges']());continue;}const _0x41e72a=_0x2791c6['getFirstRange']();if(_0xacd41d['length']>0x0){const _0x476bb2=_0xacd41d[0x0]['getJoined'](_0x41e72a);if(_0x476bb2){_0xacd41d[0x0]=_0x476bb2;continue;}}_0xacd41d['push'](_0x41e72a);}_0x599c6c['push']([_0x4da0f5['view'],_0xacd41d]);}return _0x599c6c;}),this['listenTo'](_0x4262d9,'suggestionLoaded',(_0x363977,_0x2116b0)=>{this['listenTo'](_0x2116b0,'change:previous',(_0x2f37b9,_0xf30ea3,_0x1978fc,_0x2eca81)=>{_0x2116b0['isInContent']&&(null==_0x1978fc?(this['_updateController'](_0x2eca81['head']),this['_handleSuggestionControllerDelayed'](_0x2116b0,!0x1)):(this['_updateController'](_0x1978fc['head']),null==_0x2eca81&&this['_handleSuggestionControllerDelayed'](_0x2116b0,!0x0)));}),null!==_0x2116b0['previous']?this['_updateController'](_0x2116b0['head']):this['_handleSuggestionControllerDelayed'](_0x2116b0,!0x1);}),this['listenTo'](_0x4262d9,'suggestionUnloaded',(_0x2115bc,_0x5cacfe,_0x5bfe40)=>{this['stopListening'](_0x5cacfe,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5cacfe),this['_suggestionToController']['has'](_0x5cacfe)&&this['_destroyController'](_0x5cacfe),_0x5bfe40&&this['_updateController'](_0x5bfe40['head']);}),this['listenTo'](_0x4262d9,'suggestionChanged',(_0x2ae0cd,_0x303e9c)=>{this['_updateController'](_0x303e9c);}),this['listenTo'](_0x59b2e9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10afd9,'addComment',(_0x34d1e0,{threadId:_0xb2b0c2,isFromAdapter:_0xfd361c})=>{if(_0xfd361c||!_0x4262d9['hasSuggestion'](_0xb2b0c2))return;const _0x3a08bf=_0x4262d9['getSuggestion'](_0xb2b0c2);this['_suggestionToController']['get'](_0x3a08bf)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4c4d32=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2be3d0;for(const _0x58c8ff in _0x4c4d32){const _0x370d84=_0x58c8ff,_0x1d0b20=_0x4c4d32[_0x370d84];if('trackChangesLicenseKeyValid'==_0x1d0b20||'trackChangesLicenseKeyInvalid'==_0x1d0b20||'trackChangesLicenseKeyExpired'==_0x1d0b20||'trackChangesLicenseKeyDomainLimit'==_0x1d0b20||'trackChangesLicenseKeyNotAllowed'==_0x1d0b20||'trackChangesLicenseKeyEvaluationLimit'==_0x1d0b20||'trackChangesLicenseKeyUsageLimit'==_0x1d0b20){delete _0x4c4d32[_0x370d84],_0x2be3d0=_0x1d0b20,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2be3d0&&_0x4c4d32['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4bff72){const _0x44bcdd=this['_suggestionToController']['get'](_0x4bff72);if(!_0x44bcdd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x44bcdd['view'])||null;}['getSuggestionForAnnotation'](_0x2e2787){const _0x8b82e6=this['_viewToController']['get'](_0x2e2787['innerView']);return _0x8b82e6?_0x8b82e6['model']:null;}['_refreshActiveMarkers'](){const _0x59f54f=this['editor']['plugins']['get']('Annotations'),_0xb8439b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13184b=Array['from'](_0x59f54f['activeAnnotations'],_0x1e2649=>_0x1e2649['innerView'])['filter'](_0x25f238=>this['_viewToController']['has'](_0x25f238)),_0x357d83=[];for(const _0x253cf0 of _0x13184b){const _0x4d8dc2=this['_viewToController']['get'](_0x253cf0)['model']['getAllAdjacentSuggestions']();_0x357d83['push'](..._0x4d8dc2['reduce']((_0x5799f4,_0x2016f0)=>[..._0x5799f4,..._0x2016f0['getMarkerNames']()],[]));}_0xb8439b['activeMarkers']=_0x357d83;}['_addUIComponentsToFactory'](){const _0x46844=this['editor'],_0xa80ce3=_0x46844['locale'],_0x263046=o(_0xa80ce3,'Track\x20changes'),_0x4d547b=new _0x4c1321([{'type':'switchbutton','model':new _0x2cb3b8({'withText':!0x0,'isToggleable':!0x0,'label':_0x263046,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2cb3b8({'withText':!0x0,'label':o(_0xa80ce3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb3b8({'withText':!0x0,'label':o(_0xa80ce3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb3b8({'withText':!0x0,'label':o(_0xa80ce3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2cb3b8({'withText':!0x0,'label':o(_0xa80ce3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46844['plugins']['has']('TrackChangesPreview')&&_0x4d547b['addMany']([{'type':'separator'},{'type':'button','model':new _0x2cb3b8({'withText':!0x0,'label':o(_0xa80ce3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x29ba92 of _0x4d547b)if(ke(_0x29ba92)){const _0x35e04e=_0x46844['commands']['get'](_0x29ba92['model']['commandName']);_0x29ba92['model']['bind']('isOn','isEnabled')['to'](_0x35e04e,'value','isEnabled');}_0x46844['ui']['componentFactory']['add']('trackChanges',_0x3124e8=>this['_createToolbarButton'](_0x3124e8,_0x4d547b,_0x263046)),_0x46844['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3fe61f=>this['_createMenuBarMenu'](_0x3fe61f,_0x4d547b,_0x263046));}['_createToolbarButton'](_0x2aefe3,_0x4a2fb0,_0x3ce1df){const _0x194f18=_0x2d562c(_0x2aefe3,_0x12b438),_0x5c7950=this['editor']['commands']['get']('trackChanges');_0x194f18['buttonView']['set']({'tooltip':_0x3ce1df,'label':_0x3ce1df,'icon':_0x20145f}),_0x194f18['buttonView']['bind']('isOn')['to'](_0x5c7950,'value'),_0x194f18['buttonView']['on']('execute',()=>{_0x5c7950['execute'](),this['editor']['editing']['view']['focus']();}),_0xfa3624(_0x194f18,_0x4a2fb0,{'role':'menu'});const _0x401213=[];for(const _0x4a3a39 of _0x4a2fb0)ke(_0x4a3a39)&&_0x401213['push'](this['editor']['commands']['get'](_0x4a3a39['model']['commandName']));const _0x16d212=_0x194f18['buttonView'];return _0x16d212['actionView']['unbind']('isEnabled'),_0x16d212['arrowView']['unbind']('isEnabled'),_0x16d212['actionView']['bind']('isEnabled')['to'](_0x5c7950,'isEnabled'),_0x16d212['arrowView']['bind']('isEnabled')['toMany'](_0x401213,'isEnabled',(..._0x26e8b9)=>_0x26e8b9['some'](_0x265152=>_0x265152)),_0x194f18['on']('execute',_0x1121c5=>{this['editor']['execute'](_0x1121c5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x194f18;}['_createMenuBarMenu'](_0x4a7b9b,_0x582067,_0x5bbb06){const _0xd1e64e=new _0xdf29b4(_0x4a7b9b),_0xf6e034=this['editor']['commands']['get']('trackChanges');_0xd1e64e['buttonView']['set']({'label':_0x5bbb06,'icon':_0x20145f});const _0x195b9a=new _0x40df45(_0x4a7b9b);for(const _0x40c1b9 of _0x582067){if('separator'==_0x40c1b9['type']){_0x195b9a['items']['add'](new _0x31c191(_0x4a7b9b));continue;}const _0x33b284=new _0x5b667b(_0x4a7b9b,_0xd1e64e),_0xd9bf1a=new _0x4ae6bc(_0x4a7b9b),_0x3a052a=_0x40c1b9['model'];_0xd9bf1a['bind'](...Object['keys'](_0x3a052a))['to'](_0x3a052a),_0xd9bf1a['delegate']('execute')['to'](_0xd1e64e),_0xd9bf1a['on']('execute',()=>{this['editor']['execute'](_0x3a052a['commandName']),this['editor']['editing']['view']['focus']();}),_0x33b284['children']['add'](_0xd9bf1a),_0x195b9a['items']['add'](_0x33b284);}return _0xd1e64e['bind']('isEnabled')['to'](_0xf6e034,'isEnabled'),_0xd1e64e['panelView']['children']['add'](_0x195b9a),_0xd1e64e;}['_initializeController'](_0x1da063){const _0x507565=this['editor'],_0x51670d=_0x507565['config'],_0x34964f=_0x507565['plugins']['get']('Annotations'),_0x47a835=_0x507565['plugins']['get']('CommentsRepository'),_0x3084cc=_0x507565['plugins']['get']('EditorAnnotations'),_0x333c30=_0x507565['plugins']['get'](_0x27bc1a)['me'],_0x2153fa=_0x51670d['get']('trackChanges')['SuggestionThreadView'],_0x36f3e6=_0x51670d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5c1acb,CommentThreadInputView:_0x49a770}=_0x507565['plugins']['get']('CommentsUI');let _0x22da09,_0x16d196,_0x26f83f;this['_annotationViews']['has'](_0x1da063['id'])?(_0x16d196=this['_annotationViews']['get'](_0x1da063['id']),_0x22da09=_0x16d196['mainView']):(_0x22da09=new _0x2153fa(_0x507565['locale'],_0x1da063,_0x333c30,{'disableComments':this['_disableComments'],'editorConfig':{..._0x51670d['get']('comments.editorConfig'),'licenseKey':_0x51670d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x51670d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x51670d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x51670d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b12bc(_0x51670d['get']('locale'),_0x507565['locale']),'CommentView':_0x51670d['get']('comments')['CommentView'],'CommentsListView':_0x5c1acb,'CommentThreadInputView':_0x49a770,'SuggestionView':_0x36f3e6}),_0x22da09['suggestionView']['acceptButton']['on']('execute',()=>{_0x507565['editing']['view']['focus']();}),_0x22da09['suggestionView']['discardButton']['on']('execute',()=>{_0x507565['editing']['view']['focus']();}),_0x16d196=_0x34964f['createAnnotationView'](this['editor']['locale'],_0x22da09),_0x16d196['bind']('isDirty')['to'](_0x22da09,'isDirty'),_0x16d196['bind']('length')['to'](_0x22da09),_0x16d196['bind']('type')['to'](_0x22da09,'type',_0x46f210=>'suggestion-'+_0x46f210),_0x22da09['on']('escape',()=>{_0x26f83f['fire']('escape');}),this['_annotationViews']['set'](_0x1da063['id'],_0x16d196));const _0x5cbfa0=_0x47a835['createCommentThreadController'](_0x1da063['commentThread'],_0x22da09),_0x3b86fc=new pe(_0x507565,_0x1da063,_0x22da09,_0x5cbfa0),_0x180397=_0x1da063['getAllAdjacentSuggestions']()['filter'](_0x4dbad7=>_0x4dbad7['isInContent']);_0x22da09['descriptionParts']=_0x507565['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x180397),this['_suggestionToController']['set'](_0x1da063,_0x3b86fc),this['_viewToController']['set'](_0x22da09,_0x3b86fc);const _0x2161bb=()=>{const _0x405b9b=[],_0x16e924=_0x1da063['getAllAdjacentSuggestions']()['filter'](_0x5d8a9d=>_0x5d8a9d['isInContent']);for(const _0x26f9cc of _0x16e924)_0x405b9b['push'](..._0x26f9cc['getMarkers']());return _0x3e42bd(_0x507565['editing'],_0x405b9b);};_0x26f83f=_0x34964f['createAnnotation']({'view':_0x16d196,'target':_0x2161bb,'type':()=>'suggestion-'+_0x3b86fc['view']['type'],'isVisible':!!_0x2161bb()}),_0x47a835['_bindAnnotationToEditors'](_0x22da09,_0x26f83f),_0x34964f['add'](_0x26f83f),_0x3084cc['registerAnnotation'](_0x26f83f);}['_destroyController'](_0x2457d2){const _0xa5f5a2=this['editor']['plugins']['get']('CommentsRepository'),_0x10849a=this['editor']['plugins']['get']('Annotations'),_0x4afcbf=this['_suggestionToController']['get'](_0x2457d2),_0x5ce166=_0x4afcbf['view'],_0x44c5c8=_0x10849a['getByInnerView'](_0x5ce166);_0xa5f5a2['_unbindEditors'](_0x5ce166),_0x44c5c8&&_0x10849a['remove'](_0x44c5c8),this['_suggestionToController']['delete'](_0x2457d2),this['_viewToController']['delete'](_0x5ce166),_0x4afcbf['destroy']();}['_updateController'](_0x41765b){if(!_0x41765b['isInContent']||!this['_suggestionToController']['has'](_0x41765b))return;const _0x1b41c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bd6f1=this['_suggestionToController']['get'](_0x41765b),_0x409b29=_0x41765b['getAllAdjacentSuggestions']();_0x3bd6f1['view']['descriptionParts']=_0x1b41c1['descriptionFactory']['getDescriptions'](_0x409b29);}['destroy'](){for(const _0x3fe399 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fe399);for(const _0x2c18a7 of this['_annotationViews']['values']())_0x2c18a7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3aad52){return'model'in _0x3aad52;}class Ne extends _0x109a9f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x398453){this['editor']['plugins']['get'](d)['adapter']=_0x398453;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x170e36){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x170e36);}['getSuggestions']({skipNotAttached:_0x3205da=!0x1,toJSON:_0x18638c=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3205da,'toJSON':_0x18638c});}['getSuggestion'](_0x1d8974){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1d8974);}}const p=['Pagination'];class re extends _0x109a9f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45fc32=this['editor'];if(_0x45fc32['config']['define']('trackChangesData.editorCreator',_0x210409=>{const _0x39e6af=_0x45fc32['model']['document']['getRootNames']()['reduce']((_0x4381ec,_0x123cdb)=>(_0x4381ec[_0x123cdb]='',_0x4381ec),{});return _0x45fc32['constructor']['create'](_0x39e6af,_0x210409);}),'function'!=typeof _0x45fc32['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a7ee6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4b0cf4){return P(this['editor'],!0x0,_0x4b0cf4);}['getDataWithDiscardedSuggestions'](_0xc69faa){return P(this['editor'],!0x1,_0xc69faa);}}class Fe extends _0x109a9f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ebd2a){function _0x27e2a2(_0x10c0f0){return _0x10c0f0['map'](_0x20f72a=>String['fromCharCode'](_0x20f72a))['join']('');}super(_0x4ebd2a),this['result']='end',_0x4ebd2a[_0x27e2a2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27e2a2([0x76,0x69,0x65,0x77])][_0x27e2a2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27e2a2([0x61,0x75,0x74,0x6f]),_0x4ebd2a[_0x27e2a2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x27e2a2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27e2a2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x27e2a2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x27e2a2([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 De(_0x53a8b7){return void 0x0!==_0x53a8b7['getRootsAttributes'];}async function P(_0x44e307,_0x4d9318,_0x26d148){const _0xe9ed27=_0x513cc0(_0x44e307,p);_0xe9ed27['plugins']['push'](d,Fe),_0xe9ed27['rootsAttributes']=De(_0x44e307)?_0x44e307['getRootsAttributes']():void 0x0;const _0x109e90=document['createDocumentFragment'](),_0x4ecc0c=_0x44e307['config']['get']('trackChangesData')['editorCreator'],_0x491297=await _0x4ecc0c(_0xe9ed27,()=>function(_0xf353f7){const _0x42eeaf=document['createElement']('div');return _0xf353f7['appendChild'](_0x42eeaf),_0x42eeaf;}(_0x109e90));!function(_0x1c9b69,_0x3e5a22){const _0x25ed50=_0x1c9b69['model']['document']['getRootNames']()['reduce']((_0x1cfe29,_0x594c87)=>(_0x1cfe29[_0x594c87]=_0x1c9b69['data']['get']({'rootName':_0x594c87}),_0x1cfe29),{}),_0x515d44=_0x1c9b69['plugins']['get']('Users')['users']['map'](_0x5005d9=>({'id':_0x5005d9['id'],'name':_0x5005d9['name']})),_0x3d1444=_0x1c9b69['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b04ea=_0x1c9b69['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a2a01=_0x3e5a22['plugins']['get']('Users'),_0x14573c=_0x3e5a22['plugins']['get']('TrackChangesEditing'),_0xe2f8a6=_0x3e5a22['plugins']['get']('CommentsRepository');for(const _0x4e411d of _0xe2f8a6['getCommentThreads']())_0x4e411d['remove']();for(const _0x15dd07 of _0x515d44)_0x4a2a01['getUser'](_0x15dd07['id'])||_0x4a2a01['addUser'](_0x15dd07);_0x4a2a01['me']||_0x4a2a01['useAnonymousUser']();for(const _0x575e3a of _0x1b04ea)_0xe2f8a6['addCommentThread'](_0x575e3a);for(const _0x3d7218 of _0x3d1444)_0x14573c['addSuggestionData'](_0x3d7218);_0x3e5a22['data']['set'](_0x25ed50);}(_0x44e307,_0x491297),_0x491297['execute'](_0x4d9318?'acceptAllSuggestions':'discardAllSuggestions');const _0xc507fc=De(_0x491297)?_0x491297['getFullData'](_0x26d148):_0x491297['data']['get'](_0x26d148);return await _0x491297['destroy'](),_0xc507fc;}class Me extends _0x44ef91{['options'];constructor(_0xe183bd,_0x483ab9){super(_0xe183bd),this['options']=_0x483ab9,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'](_0x1148ac,_0x49afa0){if(!this['element'])return;const _0x27805e=[];for(const [_0x2eccaa,_0x54f18e]of _0x1148ac){const _0x560692=document['createElement']('div');_0x560692['setAttribute']('data-ck-root-name',_0x2eccaa),_0x560692['className']=_0x54f18e['classes']+'\x20ck-track-changes-preview__root-container',_0x560692['innerHTML']=_0x54f18e['content'],_0x27805e['push'](_0x560692);}_0x49afa0(this['element'],_0x27805e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4df1d1{constructor(_0x7944f0){super(_0x7944f0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3de8f9=this['editor'],_0x5ae848=_0x3de8f9['locale'],_0x5d5ac6=_0x3de8f9['plugins']['get']('Dialog');let _0x19e046;const _0x1ae48e=function(_0x10993b){const _0x2b3421={};if('editables'in _0x10993b['ui']['view']){for(const [_0x28439d,_0x2796a5]of Object['entries'](_0x10993b['ui']['view']['editables']))_0x2b3421[_0x28439d]=_0x2796a5['element'];}else _0x2b3421[_0x10993b['model']['document']['getRootNames']()[0x0]]=_0x10993b['ui']['view']['editable']['element'];return _0x2b3421;}(_0x3de8f9),_0x2f1ca3=function(_0xac6826){let _0x1719b1=0x0;for(const _0x220826 of Object['values'](_0xac6826))_0x1719b1=Math['max'](_0x1719b1,_0x220826['getBoundingClientRect']()['width']);let _0x10c599=0x0;for(const _0x440dff of Object['values'](_0xac6826))_0x10c599+=_0x440dff['getBoundingClientRect']()['height'];const _0x22e997=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4c0ae1=Math['min'](_0x10c599,_0x22e997);return{'width':_0x1719b1,'height':_0x4c0ae1};}(_0x1ae48e);_0x5d5ac6['show']({'id':'finalContentPreview','title':o(_0x5ae848,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5ae848,{'dialogRects':_0x2f1ca3}),'onHide':()=>{_0x19e046['detachFromDom']();},'onShow':()=>{_0x3de8f9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x194796=>{const _0x20a7c4=this['_standarizeRootsData'](_0x194796,_0x3de8f9,_0x1ae48e);_0x5d5ac6['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x20a7c4,_0x3de8f9['config']['get']('trackChanges.preview.renderFunction'));}),_0x19e046=new _0x554ec3(_0x5ae848,[_0x5d5ac6['view']]),_0x19e046['attachToDom'](),_0x19e046['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3de8f9['once']('destroy',()=>{_0x19e046['detachFromDom']();});const _0x153331=_0x5d5ac6['view']['headerView']['class'];_0x5d5ac6['view']['headerView']['class']=_0x153331?_0x153331+'\x20ck-reset_all':'ck-reset_all',_0x5d5ac6['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5d5ac6['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x32e8ea=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x51f836=_0x32e8ea['previewMode'],_0x46efad={};if('$labels'===_0x51f836){for(const _0xb768b1 of _0x32e8ea['getMergeFieldsIds']())_0x46efad[_0xb768b1]=_0x32e8ea['getLabel'](_0xb768b1)||_0xb768b1;}else{const _0x46e9e5='$defaultValues'===_0x51f836?_0x32e8ea['getDefaultValues']():_0x32e8ea['getDataSetValues'](_0x51f836,!0x0);for(const _0x48f09a of Object['entries'](_0x46e9e5)){const [_0x42a7d1,_0x499ead]=_0x48f09a;_0x46efad[_0x42a7d1]=null!==_0x499ead?_0x499ead:_0x32e8ea['getLabel'](_0x42a7d1)||_0x42a7d1;}}return{'mergeFieldsData':_0x46efad};}['_standarizeRootsData'](_0x1e1f22,_0xcd850,_0x1fb40f){let _0x32c168;if('string'==typeof _0x1e1f22){const _0x275f4f=_0xcd850['model']['document']['getRootNames']()[0x0];_0x32c168={[_0x275f4f]:_0x1e1f22};}else _0x32c168=_0x1e1f22;const _0x25059f=this['_fixMediaEmbeds'](_0x32c168,_0xcd850),_0x505109=function(_0x30cb0e,_0x588f62){for(const [_0xddde39,_0x1afbb8]of _0x30cb0e)_0x1afbb8['classes']=_0x588f62[_0xddde39]['classList']['value']['replace']('ck-focused','');return _0x30cb0e;}(this['_sortRoots'](_0xcd850)['reduce']((_0x964972,_0x4184b1)=>(_0x964972['push']([_0x4184b1,{'content':_0x25059f[_0x4184b1],'classes':''}]),_0x964972),[]),_0x1fb40f);return _0x505109;}['_fixMediaEmbeds'](_0x35fe86,_0x132386){if(!_0x132386['plugins']['has']('MediaEmbedEditing'))return _0x35fe86;const _0x4f3f67=_0x132386['plugins']['get']('MediaEmbedEditing');for(const [_0x186a36,_0x3601de]of Object['entries'](_0x35fe86)){const _0x4c7d21=document['createElement']('div');_0x4c7d21['innerHTML']=_0x3601de,(_0x4c7d21['querySelectorAll']('figure.media')['forEach'](_0x4aa8a5=>{const _0x413636=_0x4aa8a5['querySelector']('oembed');if(_0x413636){const _0xb35c48=_0x413636['getAttribute']('url');if(_0xb35c48){const _0x6e1a45=_0x4f3f67['registry']['getMediaViewElement'](new _0x2f6240(_0x132386['editing']['view']['document']),_0xb35c48,{'elementName':'','renderForEditingView':!0x0}),_0x4a501f=document['createElement']('div');_0x4a501f['classList']['add']('ck-media__wrapper'),_0x6e1a45['render'](_0x4a501f,_0x132386['editing']['view']['domConverter']),_0x413636['replaceWith'](_0x4a501f);}}}),_0x35fe86[_0x186a36]=_0x4c7d21['innerHTML']);}return _0x35fe86;}['_sortRoots'](_0x172f7f){if(!function(_0x22be4d){return void 0x0!==_0x22be4d['getRootsAttributes'];}(_0x172f7f))return _0x172f7f['model']['document']['getRootNames']();const _0x9d38e3=[],_0x19a7ad=new Map();for(const _0x12e7d9 of _0x172f7f['model']['document']['getRootNames']()){const _0x49f22a=_0x172f7f['editing']['view']['getDomRoot'](_0x12e7d9)['getClientRects']()['item'](0x0);_0x9d38e3['push'](_0x12e7d9),_0x19a7ad['set'](_0x12e7d9,_0x49f22a);}return _0x9d38e3['sort']((_0xab30e6,_0x435c88)=>{const _0x4155fc=_0x19a7ad['get'](_0xab30e6),_0x36a692=_0x19a7ad['get'](_0x435c88);return _0x4155fc['y']-_0x36a692['y']||_0x4155fc['x']-_0x36a692['x'];}),_0x9d38e3;}}class Ue extends _0x109a9f{static get['requires'](){return[re,_0x2269c9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bc0df){super(_0x4bc0df),_0x4bc0df['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4bc0df['config']['define']('trackChanges.preview.renderFunction',(_0x5d0da9,_0x43f705)=>{for(const _0x10ace7 of _0x43f705)_0x5d0da9['appendChild'](_0x10ace7);});}}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,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x49194f,Plugin as _0x57897a,PendingActions as _0x814fbc}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3cc67a,ObservableMixin as _0xb17401,uid as _0x5ddf4e,priorities as _0x3658c7,insertToPriorityArray as _0x20bfd2,logWarning as _0x4c011a,getEnvKeystrokeText as _0x2641b3,FocusTracker as _0x584cc8,KeystrokeHandler as _0x48423c,Collection as _0x39e284}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1f511f,IconCancel as _0x3acaa0,IconTrackChanges as _0x45dd9a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5a6421,View as _0x2682c3,ViewCollection as _0x4f658f,FocusCycler as _0x18143f,UIModel as _0x431553,createDropdown as _0x2bcbec,SplitButtonView as _0x1a386c,addListToDropdown as _0x3478e4,MenuBarMenuView as _0x37f73e,MenuBarMenuListView as _0x3de5c6,ListSeparatorView as _0x12c6cb,MenuBarMenuListItemView as _0x55ad21,MenuBarMenuListItemButtonView as _0xd98227,BodyCollection as _0x57bfc4,Dialog as _0x52467d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x356af8,Users as _0x114b0f,DocumentCompare as _0x3e095d,fixElementSuggestionRange as _0x2c11df,hashObject as _0x18192e,splitSuggestionMarkerName as _0x217cf3,surroundingMarkersDetector as _0x3c492f,FOCUS_ANNOTATION_KEYSTROKE as _0x2df5c8,AriaDescriptionView as _0x3e2cce,setupThreadKeyboardNavigation as _0x40342b,trimHtml as _0x4cd635,UserView as _0x4e1e1c,LateFocusButtonView as _0x1d3e61,getDateTimeFormatter as _0x284689,getAllMarkersDomElementsSorted as _0x5e3402,sanitizeEditorConfig as _0x32f4b5}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1ee960,ModelLiveRange as _0x110c0b,ModelLivePosition as _0x366946,ViewDowncastWriter as _0x3c347c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x41a589,set as _0x3b7def,isEqual as _0x3bfd67,unset as _0xa5d8ee,omit as Jt}from'es-toolkit/compat';import{Delete as _0x12d37e,Input as _0x1c220d}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x486bd6}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x23c23f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x49194f{['_enabledCommands'];constructor(_0x40e892,_0x10b0ac){super(_0x40e892),this['_enabledCommands']=_0x10b0ac,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 _0x33f317 of this['editor']['commands']['commands']())_0x33f317['affectsData']&&!this['_enabledCommands']['has'](_0x33f317)&&_0x33f317['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2cb4bc of this['editor']['commands']['commands']())_0x2cb4bc['affectsData']&&!this['_enabledCommands']['has'](_0x2cb4bc)&&_0x2cb4bc['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x49194f{['_suggestions'];constructor(_0x2cd5e4,_0xe51394){super(_0x2cd5e4),this['_suggestions']=_0xe51394,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3c59c5){const _0x37704c=this['_suggestions']['get'](_0x3c59c5);if(!_0x37704c)throw new _0x3cc67a('track-changes-accept-suggestion-not-found',this);const _0x4eb39d=_0x37704c['getRanges']();this['editor']['model']['canEditAt'](_0x4eb39d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x37704c);}}class x extends _0x49194f{['_suggestions'];constructor(_0x46bdee,_0x1f6d2f){super(_0x46bdee),this['_suggestions']=_0x1f6d2f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x32a05f){const _0x16969c=this['_suggestions']['get'](_0x32a05f);if(!_0x16969c)throw new _0x3cc67a('track-changes-discard-suggestion-not-found',this);const _0x50df70=_0x16969c['getRanges']();this['editor']['model']['canEditAt'](_0x50df70)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x16969c);}}function ls(_0x4055f6,_0x1f812c){let _0x3f5f86='';return _0x3f5f86+=_0x4055f6['split']('*')['map']((_0x1b3882,_0x3d72e3)=>_0x3d72e3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x1b3882)+'</span>':cn(_0x1b3882))['join'](''),_0x1f812c&&(_0x3f5f86+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f812c['value']+'\x22\x20title=\x22'+_0x1f812c['title']+'\x22></span>'),_0x3f5f86;}function cn(_0x3d009f){const _0x57571a=document['createElement']('span');return _0x57571a['innerText']=_0x3d009f,_0x57571a['innerHTML'];}function ts(_0x57f116){return _0x57f116['sort']((_0x3bbebf,_0x569501)=>'attribute'===_0x3bbebf['type']&&'attribute'!==_0x569501['type']?-0x1:'attribute'!==_0x3bbebf['type']&&'attribute'===_0x569501['type']?0x1:'deletion'==_0x3bbebf['type']&&'deletion'!=_0x569501['type']?-0x1:'deletion'!=_0x3bbebf['type']&&'deletion'==_0x569501['type']?0x1:0x0);}function to(_0x8f19c0,_0x1bf797){let _0x19e608,_0x30ef85=0x0;const _0x513813=[],_0x2a996c=_0x1bf797['schema'];for(;_0x30ef85<_0x8f19c0['length'];){const _0x27c002=_0x8f19c0[_0x30ef85],_0x39ad10=_0x8f19c0[_0x30ef85+0x1];_0x19e608||(_0x19e608=_0x1bf797['createPositionBefore'](_0x27c002)),un(_0x1bf797,_0x27c002,_0x39ad10)||(_0x513813['push'](_0x1bf797['createRange'](_0x19e608,_0x2a996c['isObject'](_0x27c002)?_0x1bf797['createPositionAfter'](_0x27c002):_0x1bf797['createPositionAt'](_0x27c002,'end'))),_0x19e608=null),_0x30ef85++;}return _0x513813;}function un(_0x5d2bd2,_0x6274f,_0x55360d){if(!_0x55360d)return!0x1;const _0x5b5d6e=_0x5d2bd2['createPositionAfter'](_0x6274f),_0x4e962e=_0x5d2bd2['createPositionBefore'](_0x55360d);return _0x5b5d6e['isTouching'](_0x4e962e);}function rs(_0x2e8553,_0x236ddf,_0x2d523d){for(;_0x2d523d['length'];){const _0x1aef08=_0x2d523d['splice'](0x0,0x64);_0x2e8553['change'](()=>{for(const _0x5b49a0 of _0x1aef08)_0x5b49a0['isInContent']&&_0x236ddf['execute'](_0x5b49a0['id']);});}}class M extends _0x49194f{['_command'];['_suggestions'];constructor(_0x4fb11f,_0x508064,_0x17a062){super(_0x4fb11f),this['_command']=_0x508064,this['_suggestions']=_0x17a062,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x593e01=Array['from'](this['_suggestions']['values']())['some'](_0x14ae54=>_0x14ae54['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x593e01;}['execute'](){const _0x59e318=ts(Array['from'](this['_suggestions']['values']()));for(const _0xad62fe of _0x59e318){const _0xacd323=_0xad62fe['getRanges']();if(!this['editor']['model']['canEditAt'](_0xacd323))return;}rs(this['editor']['model'],this['_command'],_0x59e318);}}class R extends _0x49194f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5905df,_0x8ddc1,_0x125c24){super(_0x5905df),this['_command']=_0x8ddc1,this['_suggestions']=_0x125c24,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15af63=this['editor']['model']['document']['selection'],_0x50e947=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x35c682,_0x25e5f0){const _0x3394b0=Array['from'](_0x35c682['getRanges']()),_0x2a8fba=new Set();for(const _0x307a74 of _0x25e5f0)if(_0x307a74['isInContent']){for(const _0x537a54 of _0x3394b0)for(const _0xefdc32 of _0x307a74['getRanges']())(_0x537a54['isIntersecting'](_0xefdc32)||_0x35c682['isCollapsed']&&!_0x307a74['isMultiRange']&&_0x307a74['next']&&_0xefdc32['end']['isTouching'](_0x537a54['start']))&&_0x2a8fba['add'](_0x307a74);}return _0x2a8fba;}(_0x15af63,_0x50e947),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2f4305=ts(Array['from'](this['_selectedSuggestions']));for(const _0x30dc2e of _0x2f4305){const _0x50358f=_0x30dc2e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50358f))return;}rs(this['editor']['model'],this['_command'],_0x2f4305);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb17401(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x418070,_0x1952dc){super(),this['id']=_0x1952dc['id'],this['type']=_0x1952dc['type'],this['subType']=_0x1952dc['subType']||null,this['author']=_0x1952dc['author'],this['creator']=_0x1952dc['creator']||_0x1952dc['author'],this['isExternal']=Boolean(_0x1952dc['attributes']&&_0x1952dc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1952dc['originalSuggestionId']||null,this['_model']=_0x418070,this['_onAccept']=_0x1952dc['onAccept'],this['_onDiscard']=_0x1952dc['onDiscard'],this['_onAttributesChange']=_0x1952dc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1952dc['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 _0x1f8384=this;for(;_0x1f8384['previous'];)_0x1f8384=_0x1f8384['previous'];return _0x1f8384;}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'](_0x5b1014){this['_markerNames']['add'](_0x5b1014);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x574a44=>this['_model']['markers']['get'](_0x574a44))['filter'](_0x451cce=>_0x451cce);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6cf611=>{for(const _0x2b2f49 of this['getMarkers']())_0x6cf611['removeMarker'](_0x2b2f49);}),this['_markerNames']['clear']();}['removeMarker'](_0x3037be){this['_model']['change'](_0x599f94=>{_0x599f94['removeMarker'](_0x3037be);}),this['_markerNames']['delete'](_0x3037be);}['addRange'](_0xfe5ea0){const _0x1aa1db='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1aa1db),this['_model']['change'](_0xb40819=>{_0xb40819['addMarker'](_0x1aa1db,{'range':_0xfe5ea0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3a5324){for(const _0x5dcd9d of this['getRanges']())if(_0x5dcd9d['isIntersecting'](_0x3a5324))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x49b20a=>_0x49b20a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xe9aa03,_0x1a3594)=>[..._0xe9aa03,..._0x1a3594['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x438553=this['getRanges']();if(0x1!=_0x438553['length'])return null;const _0x4a69ee=_0x438553[0x0],_0x5d0db6=_0x4a69ee['start']['nodeAfter'],_0x4bab47=_0x4a69ee['end']['nodeBefore'];return _0x5d0db6 instanceof _0x1ee960?_0x5d0db6!=_0x4bab47?null:_0x5d0db6: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 _0x18366a=[];let _0x190bf4=this['head'];for(;_0x190bf4;)_0x18366a['push'](_0x190bf4),_0x190bf4=_0x190bf4['next'];return _0x18366a;}['setAttribute'](_0x484536,_0x22ff4e){const _0x372496=_0x41a589(this['attributes']);_0x3b7def(_0x372496,_0x484536,_0x22ff4e),_0x3bfd67(_0x372496,this['attributes'])||(this['attributes']=_0x372496,this['_onAttributesChange'](_0x372496));}['removeAttribute'](_0x381849){const _0x5ab975=_0x41a589(this['attributes']);_0xa5d8ee(_0x5ab975,_0x381849),_0x3bfd67(_0x5ab975,this['attributes'])||(this['attributes']=_0x5ab975,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 _0x5ddf4e()['substr'](0x1,0x5);}}function o(_0x35f9ba,_0x262ec5,_0x39e541){const _0x1c2ba8=_0x35f9ba['t'],t=_0x35f9ba['t'];switch(_0x262ec5){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',_0x39e541);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x39e541);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x39e541);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x39e541);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x39e541);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',_0x39e541);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x39e541);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',_0x39e541);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x39e541);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x39e541);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x39e541);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x39e541);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x39e541);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x39e541);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x39e541);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x39e541);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x39e541);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x39e541);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x39e541);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x39e541);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x39e541);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x39e541);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x39e541);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x39e541);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x39e541);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'},_0x39e541);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x39e541);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x39e541);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x39e541);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x39e541);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x39e541);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x39e541);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x39e541);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'},_0x39e541);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x39e541);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x39e541);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x39e541);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x39e541);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'},_0x39e541);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x39e541);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'},_0x39e541);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'},_0x39e541);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x39e541);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'},_0x39e541);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x39e541);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'},_0x39e541);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x39e541);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x39e541);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x39e541);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x39e541);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x39e541);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'},_0x39e541);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x39e541);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 _0x1c2ba8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x39e541);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c2ba8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x39e541);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x39e541);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'},_0x39e541);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'},_0x39e541);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'},_0x39e541);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x262ec5;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1cf34e,_0xfd659f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1cf34e,this['_locale']=_0xfd659f;}['getDescriptions'](_0x3bc477){const _0xdafb2f=[],_0x41a684=new Set(),_0x1715d6=new Set();for(let _0x1e6dc5=0x0;_0x1e6dc5<_0x3bc477['length'];_0x1e6dc5++){const _0x36f468=_0x3bc477[_0x1e6dc5];if(!_0x36f468['isInContent'])continue;const _0x44cc34=this['_handleCustomCallbackDescription'](_0x36f468);if(_0x44cc34){if(null!=_0x36f468['subType']){if(_0x41a684['has'](_0x36f468['subType']))continue;_0x41a684['add'](_0x36f468['subType']);}_0xdafb2f['push'](_0x44cc34);}else{if('attribute'==_0x36f468['type']){const _0x38467a=_0x36f468['data']['key'];if(_0x1715d6['has'](_0x38467a))continue;_0x1715d6['add'](_0x36f468['data']['key']),_0x38467a==m?this['_handleRenameSuggestionDescription'](_0xdafb2f,_0x36f468):this['_handleAttributeSuggestionDescription'](_0xdafb2f,_0x36f468);continue;}'insertion'!=_0x36f468['type']&&'deletion'!=_0x36f468['type']||this['_handleInsertRemoveSuggestionDescription'](_0xdafb2f,_0x36f468,_0x3bc477[_0x1e6dc5+0x1]);}}return this['_resolveDescriptionItems'](_0xdafb2f);}['registerDescriptionCallback'](_0x38c407){this['_customCallbacks']['push'](_0x38c407);}['registerElementLabel'](_0x2c12e0,_0x3b1dfe,_0x48b0bc=_0x3658c7['normal']){'function'==typeof _0x2c12e0?_0x20bfd2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2c12e0,'label':_0x3b1dfe,'priority':_0x48b0bc}):this['_itemLabels']['set'](_0x2c12e0,_0x3b1dfe);}['registerAttributeLabel'](_0x42d789,_0x53e58d){this['_attributeLabels']['set'](_0x42d789,_0x53e58d);}['getItemLabel'](_0xddb62f,_0x5fc836=0x1){let _0x132a16;for(const _0x1ec6c3 of this['_itemLabelsCallbacks'])if(_0x1ec6c3['matchingCallback'](_0xddb62f)){_0x132a16=_0x1ec6c3['label'];break;}return _0x132a16||(_0x132a16=this['_itemLabels']['get'](_0xddb62f['name'])),_0x132a16?_0x132a16(_0x5fc836):0x1!==_0x5fc836?_0x5fc836+'\x20'+_0xddb62f['name']+'s':''+_0xddb62f['name'];}['_addDescriptionItems'](_0x2c4362,_0x443d8a){const _0x1ff578=_0x443d8a['getFirstRange']()['getWalker'](),_0x4fdf8d='insertion'==_0x443d8a['type']?'add':'remove';for(const _0x29a285 of _0x1ff578){const _0x171356=_0x29a285['item'],_0x2be091=_0x2c4362[_0x2c4362['length']-0x1];if(_0x171356['is']('$textProxy'))_0x2be091&&_0x2be091['type']['indexOf']('Container')>-0x1&&_0x2c4362['pop'](),_0x2be091&&'text'==_0x2be091['type']?_0x2be091[_0x4fdf8d]+=_0x171356['data']:_0x2c4362['push']({'type':'text','add':'add'==_0x4fdf8d?_0x171356['data']:'','remove':'remove'==_0x4fdf8d?_0x171356['data']:''});else{if(this['_schema']['isObject'](_0x171356)){const _0x3be612=_0x171356;if(_0x2be091&&_0x2be091['type']['indexOf']('Container')>-0x1&&_0x2c4362['pop'](),'elementEnd'==_0x29a285['type'])continue;_0x2be091&&_0x2be091['type']==_0x4fdf8d+'Object'&&_0x2be091['element']['name']==_0x3be612['name']?_0x2be091['quantity']++:_0x2c4362['push']({'type':_0x4fdf8d+'Object','element':_0x3be612,'quantity':0x1}),_0x1ff578['skip'](_0x3219d4=>!('elementEnd'==_0x3219d4['type']&&_0x3219d4['item']==_0x171356));}else{if(this['_schema']['checkChild'](_0x171356,'$text')||_0x171356['is']('element','softBreak')){const _0xdbc701=_0x171356;if('add'==_0x4fdf8d&&'elementStart'==_0x29a285['type']||'remove'==_0x4fdf8d&&'elementEnd'==_0x29a285['type'])continue;if(_0x2be091&&-0x1==_0x2be091['type']['indexOf']('Container')){'text'==_0x2be091['type']&&(_0x2be091[_0x4fdf8d]+='\x0a');continue;}let _0x2029b3;if(_0x2029b3='add'==_0x4fdf8d?_0xdbc701['nextSibling']&&!this['_schema']['isObject'](_0xdbc701['nextSibling'])?_0xdbc701['nextSibling']:null:_0xdbc701['previousSibling']&&!this['_schema']['isObject'](_0xdbc701['previousSibling'])?_0xdbc701['previousSibling']:null,_0xdbc701['isEmpty']||_0x2029b3&&_0x2029b3['isEmpty']){const _0x2377da=_0x2029b3&&_0x2029b3['isEmpty']?_0x2029b3:_0xdbc701;_0x2be091&&_0x2be091['type']==_0x4fdf8d+'EmptyContainer'&&_0x2be091['element']['name']==_0x2377da['name']?_0x2be091['quantity']++:_0x2c4362['push']({'type':_0x4fdf8d+'EmptyContainer','element':_0x2377da,'quantity':0x1});}else _0x2c4362['push']({'type':_0x4fdf8d+'Container','element':_0xdbc701});}}}}}['_resolveDescriptionItems'](_0x4de423){const _0x287b05=this['_locale'],_0x236581=[],_0x54ab70=[],_0x506600=[];for(const _0x4630b5 of _0x4de423)switch(_0x4630b5['type']){case'text':if(_0x4630b5['add']=_0x4630b5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4630b5['remove']=_0x4630b5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4630b5['add']&&''!=_0x4630b5['remove']){_0x236581['push']({'type':'replace','content':o(_0x287b05,'REPLACE_TEXT',['\x22'+_0x4630b5['remove']+'\x22','\x22'+_0x4630b5['add']+'\x22'])});continue;}if(null!=_0x4630b5['add']['match'](/^ +$/)){_0x236581['push']({'type':'insertion','content':o(_0x287b05,'*Insert:*\x20%0',o(_0x287b05,'ELEMENT_SPACE',_0x4630b5['add']['length']))});continue;}if(null!=_0x4630b5['remove']['match'](/^ +$/)){_0x236581['push']({'type':'deletion','content':o(_0x287b05,'*Remove:*\x20%0',o(_0x287b05,'ELEMENT_SPACE',_0x4630b5['remove']['length']))});continue;}if(''!=_0x4630b5['add']){_0x236581['push']({'type':'insertion','content':o(_0x287b05,'*Insert:*\x20%0','\x22'+_0x4630b5['add']+'\x22')});continue;}_0x236581['push']({'type':'deletion','content':o(_0x287b05,'*Remove:*\x20%0','\x22'+_0x4630b5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x236581['push']({'type':'insertion','content':o(_0x287b05,'*Insert:*\x20%0',this['getItemLabel'](_0x4630b5['element'],_0x4630b5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x236581['push']({'type':'deletion','content':o(_0x287b05,'*Remove:*\x20%0',this['getItemLabel'](_0x4630b5['element'],_0x4630b5['quantity']))});continue;case'addContainer':_0x236581['push']({'type':'insertion','content':o(_0x287b05,'*Split:*\x20%0',this['getItemLabel'](_0x4630b5['element'],_0x4630b5['quantity']))});continue;case'removeContainer':_0x236581['push']({'type':'deletion','content':o(_0x287b05,'*Merge:*\x20%0',this['getItemLabel'](_0x4630b5['element'],_0x4630b5['quantity']))});continue;case'addFormat':_0x54ab70['push'](_0x4630b5['key']);continue;case'removeFormat':_0x506600['push'](_0x4630b5['key']);continue;default:_0x236581['push'](_0x4630b5);}if(_0x54ab70['length']){const _0x1f0fb3=_0x54ab70['map'](_0x4fc57b=>this['_attributeLabels']['has'](_0x4fc57b)?this['_attributeLabels']['get'](_0x4fc57b):_0x4fc57b)['join'](',\x20');_0x236581['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f0fb3)});}if(_0x506600['length']){const _0x3516da=_0x506600['map'](_0x3e4060=>this['_attributeLabels']['has'](_0x3e4060)?this['_attributeLabels']['get'](_0x3e4060):_0x3e4060)['join'](',\x20');_0x236581['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3516da)});}return _0x236581;}['_handleCustomCallbackDescription'](_0x4d3fa4){for(const _0x27f665 of this['_customCallbacks']){const _0x55aec4=_0x27f665(_0x4d3fa4);if(_0x55aec4&&'type'in _0x55aec4)return _0x55aec4;}}['_handleAttributeSuggestionDescription'](_0x57233,_0x17f520){const _0x253885=_0x17f520['data'],_0x332995=void 0x0===_0x253885['newValue']?'removeFormat':'addFormat';_0x57233['push']({'type':_0x332995,'key':_0x253885['key']});}['_handleRenameSuggestionDescription'](_0x181db1,_0x2c002d){_0x181db1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2c002d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c6043,_0x236e5a,_0x5f3b07){if(this['_addDescriptionItems'](_0x1c6043,_0x236e5a),_0x5f3b07&&_0x5f3b07['getFirstRange']()&&!_0x236e5a['getFirstRange']()['end']['isEqual'](_0x5f3b07['getFirstRange']()['start'])){const _0xea2c32=_0x1c6043[_0x1c6043['length']-0x1],_0x15ec00='insertion'==_0x236e5a['type']?'add':'remove';_0xea2c32&&'text'==_0xea2c32['type']&&(_0xea2c32[_0x15ec00]+='\x0a');}}}class U extends _0x57897a{['afterInit'](){const _0x2fafad=this['editor'],_0x4bd3e9=_0x2fafad['plugins']['get']('TrackChangesEditing');_0x2fafad['commands']['get']('showAIAssistant')&&_0x4bd3e9['enableCommand']('showAIAssistant');}}class V extends _0x57897a{['afterInit'](){const _0x27b76a=this['editor'],_0x4a5de5=_0x27b76a['plugins']['get']('TrackChangesEditing');_0x27b76a['commands']['get']('toggleAi')&&_0x4a5de5['enableCommand']('toggleAi');}}class F extends _0x57897a{['afterInit'](){const _0x2e51ad=this['editor'],_0x31123f=_0x2e51ad['plugins']['get']('TrackChangesEditing');_0x2e51ad['commands']['get']('aiQuickAction')&&_0x31123f['enableCommand']('aiQuickAction');}}class G extends _0x57897a{['afterInit'](){const _0x1fa25f=this['editor'],_0x492e61=_0x1fa25f['locale'];if(!_0x1fa25f['plugins']['has']('AlignmentEditing'))return;const _0xc06dbd=_0x1fa25f['plugins']['get']('TrackChangesEditing');_0xc06dbd['enableDefaultAttributesIntegration']('alignment'),_0xc06dbd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x492e61,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126b90=this['editor'],_0x442166=_0x126b90['locale'];_0x126b90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4db54=>{if('formatBlock'!=_0xd4db54['type'])return;const {data:_0x852d8d}=_0xd4db54;if(_0x852d8d&&'alignment'==_0x852d8d['commandName']){const _0x4c87f5=_0x852d8d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x442166,'*Format:*\x20%0',function(_0x159be5){switch(_0x159be5){case'left':return o(_0x442166,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x442166,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x442166,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x442166,'FORMAT_JUSTIFY_TEXT');}}(_0x4c87f5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x57897a{['afterInit'](){const _0x2e215b=this['editor'],_0x59958e=_0x2e215b['plugins']['get']('TrackChangesEditing'),_0x2e0ca0=_0x2e215b['locale'];for(const _0x12a870 of ti){if(!_0x2e215b['plugins']['has'](_0x12a870))continue;const _0x1ee7ec=_0x12a870['slice'](0x0,-0x7)['toLowerCase'](),_0x174a70='FORMAT_'+_0x1ee7ec['toUpperCase']();_0x59958e['enableDefaultAttributesIntegration'](_0x1ee7ec),_0x59958e['descriptionFactory']['registerAttributeLabel'](_0x1ee7ec,o(_0x2e0ca0,_0x174a70));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271f61=this['editor'],_0x365c4d=_0x271f61['locale'],_0x4c4aff=_0x271f61['plugins']['get']('TrackChangesEditing');function _0x1556cd(_0x8f2e19,_0x4dae88){_0x4c4aff['descriptionFactory']['registerDescriptionCallback'](_0x5aa7c3=>{if('formatInline'!=_0x5aa7c3['type'])return;const {data:_0x848c21}=_0x5aa7c3;return _0x848c21&&_0x848c21['commandName']===_0x8f2e19?_0x848c21['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x365c4d,'*Format:*\x20%0',_0x4dae88)}:{'type':'format','content':o(_0x365c4d,'*Remove\x20format:*\x20%0',_0x4dae88)}:void 0x0;});}_0x1556cd('bold',o(_0x365c4d,'FORMAT_BOLD')),_0x1556cd('italic',o(_0x365c4d,'FORMAT_ITALIC')),_0x1556cd('underline',o(_0x365c4d,'FORMAT_UNDERLINE')),_0x1556cd('code',o(_0x365c4d,'FORMAT_CODE')),_0x1556cd('strikethrough',o(_0x365c4d,'FORMAT_STRIKETHROUGH')),_0x1556cd('subscript',o(_0x365c4d,'FORMAT_SUBSCRIPT')),_0x1556cd('superscript',o(_0x365c4d,'FORMAT_SUPERSCRIPT'));}}class J extends _0x57897a{['afterInit'](){const _0x4d3261=this['editor'],_0x4a43c8=_0x4d3261['locale'];if(!_0x4d3261['plugins']['has']('BlockQuoteEditing'))return;const _0x4f606a=_0x4d3261['plugins']['get']('TrackChangesEditing'),_0x339fe7=this['editor']['commands']['get']('blockQuote');_0x4f606a['enableCommand']('blockQuote',(_0x23f321,_0x439f6a={})=>{const _0x3ea75d=this['editor']['model']['document']['selection'],_0x21ef8a=_0x439f6a&&void 0x0!==_0x439f6a['forceValue']?_0x439f6a['forceValue']:!_0x339fe7['value'];let _0x45c293=[];if(_0x21ef8a){const _0x3542ca=Array['from'](_0x3ea75d['getSelectedBlocks']())['filter'](_0x5a2f22=>oo(_0x5a2f22)||function(_0x585962,_0x3e4068){const _0x4c5fa0=_0x3e4068['checkChild'](_0x585962['parent'],'blockQuote'),_0x1804de=_0x3e4068['checkChild'](['$root','blockQuote'],_0x585962);return _0x4c5fa0&&_0x1804de;}(_0x5a2f22,this['editor']['model']['schema']));_0x45c293=to(_0x3542ca,_0x4d3261['model']);}else{const _0x1b6c39=Array['from'](_0x3ea75d['getSelectedBlocks']())['filter'](_0x510a44=>oo(_0x510a44));_0x45c293=to(_0x1b6c39,_0x4d3261['model']);}_0x4d3261['model']['change'](()=>{for(const _0xa9fcc0 of _0x45c293)_0x4f606a['markBlockFormat'](_0xa9fcc0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x21ef8a}]});});}),_0x4f606a['descriptionFactory']['registerDescriptionCallback'](_0x43a35e=>{const {data:_0x40dc6e}=_0x43a35e;if(_0x40dc6e&&'blockQuote'==_0x40dc6e['commandName']){const _0x2eca47=o(_0x4a43c8,'ELEMENT_BLOCK_QUOTE');return _0x40dc6e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a43c8,'*Set\x20format:*\x20%0',_0x2eca47)}:{'type':'format','content':o(_0x4a43c8,'*Remove\x20format:*\x20%0',_0x2eca47)};}});}}function oo(_0x5be4f0){return'blockQuote'==_0x5be4f0['parent']['name'];}class q extends _0x57897a{['afterInit'](){const _0x3f657b=this['editor'],_0x268c9a=_0x3f657b['locale'],_0x21988c=_0x3f657b['plugins']['get']('TrackChangesEditing');_0x3f657b['plugins']['has']('BookmarkEditing')&&(_0x21988c['enableCommand']('insertBookmark'),_0x21988c['enableDefaultAttributesIntegration']('updateBookmark'),_0x21988c['descriptionFactory']['registerDescriptionCallback'](_0x17149d=>{if('insertion'!=_0x17149d['type']&&'deletion'!=_0x17149d['type']&&'attribute'!=_0x17149d['type'])return;const _0x2e5f64=_0x17149d['getContainedElement']();if(null==_0x2e5f64)return;if(!_0x2e5f64['is']('element','bookmark'))return;const _0x2882e6=_0x2e5f64['getAttribute']('bookmarkId');if('insertion'==_0x17149d['type'])return{'type':'insertion','content':o(_0x268c9a,'*Insert:*\x20%0','\x22'+_0x2882e6+'\x22\x20'+o(_0x268c9a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x17149d['type'])return{'type':'deletion','content':o(_0x268c9a,'*Remove:*\x20%0','\x22'+_0x2882e6+'\x22\x20'+o(_0x268c9a,'ELEMENT_BOOKMARK'))};const {data:_0x3f9a46}=_0x17149d;if(!_0x3f9a46||'bookmarkId'!=_0x3f9a46['key'])return;return{'type':'format','content':o(_0x268c9a,'*Set\x20bookmark:*\x20%0','\x22'+_0x3f9a46['newValue']+'\x22')};}));}}class z extends _0x57897a{['afterInit'](){const _0x53560b=this['editor'];_0x53560b['plugins']['has']('CaseChange')&&(_0x53560b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53560b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53560b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x57897a{['afterInit'](){const _0x1e1e25=this['editor'];_0x1e1e25['commands']['get']('ckbox')&&_0x1e1e25['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x57897a{['afterInit'](){const _0x3a6493=this['editor'];if(!_0x3a6493['plugins']['has']('CodeBlock'))return;const _0x269ae9=_0x3a6493['plugins']['get']('TrackChangesEditing'),_0x4be51a=_0x3a6493['locale'],_0x2373fe=_0x3a6493['config']['get']('codeBlock')['languages'],_0x37c1f0=_0x3a6493['commands']['get']('codeBlock');_0x269ae9['enableCommand']('indentCodeBlock'),_0x269ae9['enableCommand']('outdentCodeBlock'),_0x269ae9['enableCommand']('codeBlock',(_0x4e56af,_0x38e645={})=>{const _0x2bbe6e=_0x3a6493['model'],_0x4da72d=_0x3a6493['model']['document']['selection'],_0xa7476a=_0x38e645&&void 0x0!==_0x38e645['forceValue']?_0x38e645['forceValue']:!_0x37c1f0['value'];let _0x20a3dd;_0x38e645['language']||(_0x38e645['language']=_0x2373fe[0x0]['language']),_0x20a3dd=_0xa7476a?Array['from'](_0x4da72d['getSelectedBlocks']())['filter'](_0x45f643=>co(_0x45f643)||function(_0x1c4d7f,_0xfb5502){if(_0x1c4d7f['is']('rootElement')||_0xfb5502['isLimit'](_0x1c4d7f))return!0x1;return _0xfb5502['checkChild'](_0x1c4d7f['parent'],'codeBlock');}(_0x45f643,_0x2bbe6e['schema'])):Array['from'](_0x4da72d['getSelectedBlocks']())['filter'](_0x378e21=>co(_0x378e21));const _0x3b09d2=to(_0x20a3dd,_0x2bbe6e);_0x2bbe6e['change'](()=>{for(const _0x4720f2 of _0x3b09d2)_0x269ae9['markBlockFormat'](_0x4720f2,{'commandName':'codeBlock','commandParams':[{..._0x38e645,'forceValue':_0xa7476a}],'formatGroupId':'blockName'});});}),(_0x269ae9['descriptionFactory']['registerElementLabel']('codeBlock',_0x312c77=>o(_0x4be51a,'ELEMENT_CODE_BLOCK',_0x312c77)),_0x269ae9['descriptionFactory']['registerDescriptionCallback'](_0x23e0ae=>{if('formatBlock'!=_0x23e0ae['type'])return;const _0x69656c=_0x4be51a['t'],{data:_0x220875}=_0x23e0ae;if(!_0x220875||'codeBlock'!=_0x220875['commandName'])return;const _0x3260ba=_0x220875['commandParams'][0x0]['language'],_0x167b9d=_0x69656c(_0x2373fe['find'](_0x43d58b=>_0x43d58b['language']===_0x3260ba)['label'])['toLowerCase']();return _0x220875['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4be51a,'*Set\x20format:*\x20%0',o(_0x4be51a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x167b9d+')')}:{'type':'format','content':o(_0x4be51a,'*Remove\x20format:*\x20%0',o(_0x4be51a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2c8be1){return'codeBlock'==_0x2c8be1['name'];}class H extends _0x57897a{['afterInit'](){const _0x385db4=this['editor'];if(!_0x385db4['plugins']['has']('CommentsEditing'))return;_0x385db4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x57897a{static get['requires'](){return[_0x12d37e];}['init'](){const _0x2108bd=this['editor'],_0x549767=_0x2108bd['plugins']['get']('TrackChangesEditing');_0x549767['enableCommand']('delete');const _0x59326f=_0x2108bd['commands']['get']('deleteForward');_0x549767['enableCommand']('deleteForward',(_0x461dda,_0x747f9b={})=>{const _0x114607=_0x2108bd['model']['createSelection'](_0x2108bd['model']['document']['selection']);_0x114607['isCollapsed']&&_0x2108bd['model']['modifySelection'](_0x114607,{'direction':'forward','unit':_0x747f9b['unit']});const _0x16a787=_0x114607['getFirstRange'](),_0x1490a9=_0x110c0b['fromRange'](_0x16a787);let _0x1d1be3;_0x461dda(_0x747f9b),_0x1d1be3='$graveyard'==_0x1490a9['root']['rootName']?_0x2108bd['model']['createRange'](_0x16a787['start']):_0x2108bd['model']['createRange'](_0x1490a9['start'],_0x1490a9['end']),_0x1490a9['detach'](),_0x2108bd['model']['enqueueChange'](_0x59326f['buffer']['batch'],_0x1fcb1c=>{_0x59326f['buffer']['lock'](),_0x1fcb1c['setSelection'](_0x1fcb1c['createRange'](_0x1d1be3['end'])),_0x59326f['buffer']['unlock']();});});}}class X extends _0x57897a{['afterInit'](){const _0x46ed15=this['editor'];if(!_0x46ed15['plugins']['has']('ListEditing'))return;const _0x31aeac=_0x46ed15['locale'],_0x6a5090=_0x46ed15['plugins']['get']('TrackChangesEditing'),_0x217b97=_0x46ed15['plugins']['has']('TodoListEditing'),_0x4824a8=!!_0x46ed15['config']['get']('list.multiBlock');function _0x33f9d9(_0x15fa9c){return{'type':'format','content':''+o(_0x31aeac,'*Set\x20format:*\x20%0',_0x15fa9c)};}function _0x7d463f(_0x2771c2){return{'type':'format','content':''+o(_0x31aeac,'*Remove\x20format:*\x20%0',_0x2771c2)};}_0x6a5090['enableDefaultAttributesIntegration']('numberedList'),_0x6a5090['enableDefaultAttributesIntegration']('bulletedList'),_0x6a5090['enableDefaultAttributesIntegration']('customNumberedList'),_0x6a5090['enableDefaultAttributesIntegration']('customBulletedList'),_0x6a5090['enableDefaultAttributesIntegration']('indentList'),_0x6a5090['enableDefaultAttributesIntegration']('outdentList'),_0x6a5090['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x6a5090['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4824a8&&(_0x6a5090['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x6a5090['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x217b97&&(_0x6a5090['enableDefaultAttributesIntegration']('todoList'),_0x6a5090['enableDefaultAttributesIntegration']('checkTodoList'),_0x6a5090['descriptionFactory']['registerDescriptionCallback'](_0x24ee72=>{const {data:_0xdbfbbf}=_0x24ee72;if(_0xdbfbbf&&'todoListChecked'==_0xdbfbbf['key'])return{'type':'format','content':_0xdbfbbf['newValue']?o(_0x31aeac,'*Check\x20item*'):o(_0x31aeac,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a4d0a=>{if(_0x2a4d0a['batch']['isUndo'])return!0x1;let _0x4f95a1=!0x1;const _0x3c60e8=_0x6a5090['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c86d5=>'todoListChecked'===_0x6a5090['_getAttributeKey'](_0x3c86d5));for(const _0x517278 of _0x3c60e8){'todo'!=_0x517278['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x6a5090['_findSuggestions'](_0x517278['getFirstRange'](),'attribute')['find'](_0x3d2a37=>'listType'===_0x6a5090['_getAttributeKey'](_0x3d2a37['suggestion']))||(_0x2a4d0a['removeMarker'](_0x517278['getFirstMarker']()),_0x4f95a1=!0x0));}return _0x4f95a1;})),_0x6a5090['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x31aeac,'FORMAT_INDENT'));const _0x2e5ca2={'type':'format','content':''};_0x6a5090['descriptionFactory']['registerDescriptionCallback'](_0x132023=>{const {data:_0x28f841}=_0x132023;if(!_0x28f841||'listType'!=_0x28f841['key'])return;let _0x4eb7d3=_0x132023['head'];for(;_0x4eb7d3;){if(_0x4eb7d3['data']&&(('listStyle'==_0x4eb7d3['data']['key']||'listMarkerStyle'==_0x4eb7d3['data']['key'])&&(_0x4eb7d3['data']['newValue']&&'default'!=_0x4eb7d3['data']['newValue']||'default'!=_0x4eb7d3['data']['oldValue']&&!_0x28f841['newValue'])||!_0x4824a8&&_0x4eb7d3['data']['key']==m))return _0x2e5ca2;_0x4eb7d3=_0x4eb7d3['next'];}if(null==_0x28f841['newValue'])switch(_0x28f841['oldValue']){case'bulleted':return _0x7d463f(o(_0x31aeac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7d463f(o(_0x31aeac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7d463f(o(_0x31aeac,'ELEMENT_TODO_LIST'));}switch(_0x28f841['newValue']){case'bulleted':return _0x33f9d9(o(_0x31aeac,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33f9d9(o(_0x31aeac,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33f9d9(o(_0x31aeac,'ELEMENT_TODO_LIST'));}}),_0x6a5090['descriptionFactory']['registerDescriptionCallback'](_0x401d76=>{const {data:_0x98ec24}=_0x401d76;if(_0x98ec24&&'listIndent'==_0x98ec24['key'])return null==_0x98ec24['newValue']||null==_0x98ec24['oldValue']&&0x0==_0x98ec24['newValue']?_0x2e5ca2:void 0x0;}),_0x6a5090['descriptionFactory']['registerDescriptionCallback'](_0x59b3f1=>{if('attribute'!=_0x59b3f1['type'])return;const {data:_0x17ea5b}=_0x59b3f1;if(!_0x17ea5b||'listItemId'!=_0x17ea5b['key'])return;const _0x51b88f=Te(_0x59b3f1);return'newValue'==_0x51b88f?{'type':'format','content':o(_0x31aeac,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51b88f?{'type':'format','content':o(_0x31aeac,'*Split:*\x20list\x20item')}:_0x2e5ca2;}),_0x46ed15['model']['document']['registerPostFixer'](_0x49411f=>this['listItemIdFixer'](_0x49411f)),_0x46ed15['model']['document']['registerPostFixer'](_0x51076d=>this['noTrackChangesFixer'](_0x51076d)),_0x46ed15['model']['document']['on']('change:data',(_0x43703c,_0x4e5356)=>{if(_0x4e5356['isUndo']||!_0x4e5356['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19e2f3){if(_0x19e2f3['batch']['isUndo']||!_0x19e2f3['batch']['isLocal'])return!0x1;let _0x372322=!0x1;const _0xa7c8e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xdbf979=>_0xdbf979['data']&&'listItemId'==_0xdbf979['data']['key'])['filter'](_0x598481=>_0x598481['data']['newValue']&&_0x598481['data']['oldValue']);for(const _0x47ff2c of _0xa7c8e6)Te(_0x47ff2c)||(_0x19e2f3['removeMarker'](_0x47ff2c['getFirstMarker']()),_0x372322=!0x0);return _0x372322;}['noTrackChangesFixer'](_0x2a8207){if(_0x2a8207['batch']['isUndo']||!_0x2a8207['batch']['isLocal'])return!0x1;const _0x4add8b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4add8b['trackChangesCommand']['value'])return!0x1;let _0x3a1014=!0x1;const _0x51e3e3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3d04c4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x307c60=>'attribute'==_0x307c60['type'])['filter'](_0x2e1f6d=>_0x51e3e3['includes'](_0x2e1f6d['attributeKey']));if(0x0==_0x3d04c4['length'])return _0x3a1014;for(const _0x5b0507 of _0x3d04c4){const _0x17eac2=_0x4add8b['_findSuggestions'](_0x5b0507['range'],'attribute')['filter'](_0x3e1078=>!_0x3e1078['meta']['isNextTo'])['map'](_0x3bb39e=>_0x3bb39e['suggestion'])['filter'](_0x313b3c=>{const _0x36c622=_0x4add8b['_getAttributeKey'](_0x313b3c);return _0x51e3e3['includes'](_0x36c622);});if(_0x17eac2['length']){for(const _0x163a1e of _0x17eac2)_0x2a8207['removeMarker'](_0x163a1e['getFirstMarker']());_0x3a1014=!0x0;}}return _0x3a1014;}['assureChains'](){const _0x305c22=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb4a60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14ab5c;const _0x7b121c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1af155=>{if(_0x1af155['data']['oldRange']||!_0x1af155['data']['newRange'])return null;if(!_0x1af155['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4de838}=_0x305c22['_splitMarkerName'](_0x1af155['name']);if(!_0x305c22['hasSuggestion'](_0x4de838))return null;const _0x2879ca=_0x305c22['getSuggestion'](_0x4de838);return _0xbb4a60['includes'](_0x2879ca['data']['key']);})['map'](_0x2c993=>{const {id:_0x695a8c}=_0x305c22['_splitMarkerName'](_0x2c993['name']),_0x1b5307=_0x305c22['getSuggestion'](_0x695a8c);return _0x14ab5c=_0x1b5307['attributes']['groupId'],_0x1b5307['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x7b121c['size'])return;const _0x5a7b50=_0x305c22['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd5ab=>'attribute'==_0x1fd5ab['type']&&_0x1fd5ab['data']&&_0xbb4a60['includes'](_0x1fd5ab['data']['key'])&&_0x1fd5ab['attributes']['groupId']!=_0x14ab5c)['map'](_0x26b13f=>({'listItem':_0x26b13f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x26b13f['attributes']['groupId']})),_0xf65512=new Set();for(const {groupId:_0x4d3158,listItem:_0x136d53}of _0x5a7b50)_0x7b121c['has'](_0x136d53)&&_0xf65512['add'](_0x4d3158);for(const _0xdcc994 of _0x305c22['getSuggestions']())_0xf65512['has'](_0xdcc994['attributes']['groupId'])&&_0xdcc994['setAttribute']('groupId',_0x14ab5c);}['_supportLegacySuggestions'](){const _0x3d0a64=this['editor'],_0x23f2fc=_0x3d0a64['locale'],_0x1382b0=_0x3d0a64['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1382b0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x336bec,_0x2d5ac7){const _0x4a221c=[];for(let _0x35d0bd of _0x336bec)_0x35d0bd['start']['nodeAfter']===_0x35d0bd['end']['parent']&&(_0x35d0bd=_0x3d0a64['model']['createRange'](_0x3d0a64['model']['createPositionAt'](_0x35d0bd['start']['nodeAfter'],0x0))),_0x4a221c['push'](_0x35d0bd);_0x3d0a64['model']['change'](_0xde506f=>{const _0x2b0cab=_0x3d0a64['model']['document']['selection'],_0x1adcfa=Array['from'](_0x2b0cab['getRanges']())['map'](_0x54043c=>_0x110c0b['fromRange'](_0x54043c));_0xde506f['setSelection'](_0x4a221c),_0x3d0a64['commands']['get'](_0x2d5ac7['commandName'])['refresh'](),_0x2d5ac7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d0a64['execute'](_0x2d5ac7['commandName'],..._0x2d5ac7['commandParams']),_0xde506f['setSelection'](_0x1adcfa);for(const _0x27e043 of _0x1adcfa)_0x27e043['detach']();});}),_0x1382b0['descriptionFactory']['registerElementLabel'](function(_0x2bc5f3){const _0x398052=!_0x3d0a64['model']['schema']['isObject'](_0x2bc5f3),_0x58cd43=_0x2bc5f3['previousSibling'],_0x3582a7=_0x2bc5f3['nextSibling'],_0x1e4721=_0x2bc5f3['getAttribute']('listItemId'),_0x5240a9=!_0x58cd43||_0x58cd43['getAttribute']('listItemId')!==_0x1e4721,_0x314951=!_0x3582a7||_0x3582a7['getAttribute']('listItemId')!==_0x1e4721;return _0x398052&&Boolean(_0x1e4721)&&_0x5240a9&&_0x314951;},_0x33053b=>o(_0x23f2fc,'ELEMENT_LIST_ITEM',_0x33053b));}['_registerLegacyDescription'](){const _0x2c3a02=this['editor'],_0x6275f7=_0x2c3a02['locale'];function _0x57bfab(_0x1ed503){const _0x51e706=_0x2c3a02['commands']['get']('bulletedList')['value'],_0x4bbee3=_0x2c3a02['commands']['get']('numberedList')['value'];return'numberedList'===_0x1ed503?_0x51e706:_0x4bbee3;}_0x2c3a02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x58c739){if('formatBlock'!=_0x58c739['type'])return;const {data:_0x534c77}=_0x58c739;if(!_0x534c77)return;let _0x1b0f02,_0x3aef79,_0x411fc7,_0x5a727a;switch(_0x534c77['commandName']){case'bulletedList':_0x411fc7=_0x534c77['commandParams'][0x0]['forceValue'],_0x5a727a=_0x57bfab(_0x534c77['commandName']),_0x1b0f02=_0x411fc7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a727a&&_0x2c3a02['config']['get']('list.multiBlock')||(_0x1b0f02='*Change\x20to:*\x20%0'),_0x3aef79={'type':'format','content':o(_0x6275f7,_0x1b0f02,o(_0x6275f7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x411fc7=_0x534c77['commandParams'][0x0]['forceValue'],_0x5a727a=_0x57bfab(_0x534c77['commandName']),_0x1b0f02=_0x411fc7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a727a&&_0x2c3a02['config']['get']('list.multiBlock')||(_0x1b0f02='*Change\x20to:*\x20%0'),_0x3aef79={'type':'format','content':o(_0x6275f7,_0x1b0f02,o(_0x6275f7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b0f02='*Indent:*\x20%0',_0x3aef79={'type':'format','content':o(_0x6275f7,_0x1b0f02,o(_0x6275f7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b0f02=function(_0x455482){const _0x2b222c=_0x455482['getFirstRange']();let _0x21165f=_0x2b222c['start']['nodeAfter'];for(;_0x21165f&&_0x2b222c['containsItem'](_0x21165f);){if(_0x21165f['getAttribute']('listIndent')>0x0)return!0x1;_0x21165f=_0x21165f['nextSibling'];}return!0x0;}(_0x58c739)?o(_0x6275f7,'*Format:*\x20remove\x20from\x20%0',o(_0x6275f7,function(_0x2c47f2){return'ELEMENT_'+_0x2c47f2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x58c739))):o(_0x6275f7,'*Outdent:*\x20%0',o(_0x6275f7,'ELEMENT_LIST_ITEM')),_0x3aef79={'type':'format','content':_0x1b0f02};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x534c77['multipleBlocks']&&(_0x1b0f02='*Merge:*\x20%0',_0x3aef79={'type':'deletion','content':o(_0x6275f7,_0x1b0f02,o(_0x6275f7,'ELEMENT_LIST_ITEM'))});}return _0x3aef79;});}}function Te(_0xd5e8fe){let _0x320004=_0xd5e8fe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x320004;){const _0x5bf48e=_0x320004['getAttribute']('listItemId');if(!_0x5bf48e)return!0x1;if(_0x5bf48e==_0xd5e8fe['data']['newValue'])return'newValue';if(_0x5bf48e==_0xd5e8fe['data']['oldValue'])return'oldValue';_0x320004=_0x320004['previousSibling'];}return!0x1;}class Y extends _0x57897a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x16e4bf=this['editor']['config']['get']('list.properties'),_0xf149bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x16e4bf['styles']&&_0xf149bb['enableDefaultAttributesIntegration']('listStyle'),_0x16e4bf['reversed']&&_0xf149bb['enableDefaultAttributesIntegration']('listReversed'),_0x16e4bf['startIndex']&&_0xf149bb['enableDefaultAttributesIntegration']('listStart');const _0x403ea0={'type':'format','content':''};_0xf149bb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47ed28=this['editor']['locale'];_0xf149bb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47ed28,'FORMAT_LIST_REVERSED')),_0xf149bb['descriptionFactory']['registerDescriptionCallback'](_0x2a02e2=>{const {data:_0x3432d5}=_0x2a02e2;if(_0x3432d5&&'listReversed'==_0x3432d5['key'])return null==_0x3432d5['newValue']||0x0==_0x3432d5['newValue']&&null==_0x3432d5['oldValue']?_0x403ea0:void 0x0;}),_0xf149bb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47ed28,'FORMAT_LIST_START')),_0xf149bb['descriptionFactory']['registerDescriptionCallback'](_0x36bf74=>{const {data:_0x9094a8}=_0x36bf74;if(_0x9094a8&&'listStart'==_0x9094a8['key'])return null==_0x9094a8['newValue']||0x1==_0x9094a8['newValue']&&null==_0x9094a8['oldValue']?_0x403ea0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x367ae6=>{if(_0x367ae6['batch']['isUndo'])return!0x1;let _0x28695d=!0x1;const _0x466790=_0xf149bb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c9e6d=>{const _0x5da4f9=_0xf149bb['_getAttributeKey'](_0x4c9e6d);return'listStart'==_0x5da4f9||'listReversed'==_0x5da4f9;});for(const _0x77fea8 of _0x466790){const _0x2ff429=_0x77fea8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ff429||'customNumbered'==_0x2ff429)continue;_0xf149bb['_findSuggestions'](_0x77fea8['getFirstRange'](),'attribute')['find'](_0x4be5e6=>'listType'==_0xf149bb['_getAttributeKey'](_0x4be5e6['suggestion']))||(_0x367ae6['removeMarker'](_0x77fea8['getFirstMarker']()),_0x28695d=!0x0);}return _0x28695d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40e2eb){const _0x37bd6d=this['editor']['locale'],{data:_0x122544}=_0x40e2eb,_0x597e87={'type':'format','content':''};if(!_0x122544||'listStyle'!=_0x122544['key'])return;if(!_0x122544['oldValue'])return'default'==_0x122544['newValue']?_0x597e87:{'type':'format','content':''+o(_0x37bd6d,'*Set\x20format:*\x20%0',o(_0x37bd6d,this['_getTranslationKeyForListStyle'](_0x122544['newValue'])))};if(!_0x122544['newValue']){if('default'==_0x122544['oldValue'])return _0x597e87;let _0x47f040=_0x40e2eb['head'];for(;_0x47f040;){if(_0x47f040['data']&&'listType'==_0x47f040['data']['key']&&_0x47f040['data']['newValue'])return _0x597e87;_0x47f040=_0x47f040['next'];}return{'type':'format','content':''+o(_0x37bd6d,'*Remove\x20format:*\x20%0',o(_0x37bd6d,this['_getTranslationKeyForListStyle'](_0x122544['oldValue'])))};}if('default'!=_0x122544['newValue'])return{'type':'format','content':''+o(_0x37bd6d,'*Set\x20format:*\x20%0',o(_0x37bd6d,this['_getTranslationKeyForListStyle'](_0x122544['newValue'])))};let _0x35bd7b=_0x40e2eb['head'];for(;_0x35bd7b;){if(_0x35bd7b['data']&&'listType'==_0x35bd7b['data']['key']&&_0x35bd7b['data']['newValue']&&_0x35bd7b['data']['oldValue'])return _0x597e87;_0x35bd7b=_0x35bd7b['next'];}return{'type':'format','content':o(_0x37bd6d,'*Set\x20format:*\x20%0',o(_0x37bd6d,'ELEMENT_'+_0x40e2eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x40a594=this['editor'],_0x4c5f12=_0x40a594['locale'];_0x40a594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1db541=>{if('formatBlock'!=_0x1db541['type'])return;const {data:_0x45679c}=_0x1db541;if(!_0x45679c)return;let _0x40e79a,_0x4ad910;switch(_0x45679c['commandName']){case'listStyle':_0x40e79a='*Change\x20to:*\x20%0',_0x4ad910={'type':'format','content':o(_0x4c5f12,_0x40e79a,o(_0x4c5f12,this['_getTranslationKeyForListStyle'](_0x45679c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40e79a=_0x45679c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ad910={'type':'format','content':o(_0x4c5f12,_0x40e79a)};break;case'listStart':_0x40e79a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ad910={'type':'format','content':o(_0x4c5f12,_0x40e79a,_0x45679c['commandParams'][0x0]['startIndex'])};}return _0x4ad910;});}['_getTranslationKeyForListStyle'](_0x195b4a){return'ELEMENT_'+function(_0xb1a6d3){if(ye['includes'](_0xb1a6d3))return'bulleted';if(Se['includes'](_0xb1a6d3))return'numbered';return null;}(_0x195b4a)['toUpperCase']()+'_LIST_'+_0x195b4a['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 _0x57897a{['afterInit'](){const _0x1fdfc0=this['editor'];_0x1fdfc0['commands']['get']('emoji')&&_0x1fdfc0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x57897a{static get['requires'](){return[_0x486bd6];}['init'](){const _0x4f33c4=this['editor'],_0x16cb33=_0x4f33c4['plugins']['get']('TrackChangesEditing'),_0xfc83b9=_0x4f33c4['commands']['get']('enter');_0x16cb33['enableCommand']('enter',()=>{_0x4f33c4['model']['change'](_0x4221de=>{const _0x49c32a=_0x4f33c4['model']['document']['selection'],_0x38685d=_0x49c32a['getFirstPosition'](),_0x15b87a=_0x110c0b['fromRange'](_0x49c32a['getFirstRange']());if(_0xfc83b9['enterBlock'](_0x4221de)){const _0x274327=_0x4f33c4['model']['createPositionAt'](_0x38685d['parent']['nextSibling'],0x0),_0xf27040=_0x4221de['createRange'](_0x38685d,_0x274327);_0x16cb33['markInsertion'](_0xf27040);}else _0x4221de['setSelection'](_0x4221de['createRange'](_0x15b87a['end']));_0x15b87a['detach'](),_0xfc83b9['fire']('afterExecute',{'writer':_0x4221de});});});}}class nt extends _0x57897a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3af7fc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3af7fc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3af7fc['enableCommand']('findNext'),_0x3af7fc['enableCommand']('findPrevious'),_0x3af7fc['enableCommand']('replace'),_0x3af7fc['enableCommand']('replaceAll');}['handleFindCommand'](_0x51a68c,_0x274cc1,_0x1a4cd1={}){const _0x3fc074=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x51a68c(_0x3b4b7c=>{let _0x15cbc1=('string'==typeof _0x274cc1?_0x3fc074['findByTextCallback'](_0x274cc1,_0x1a4cd1):_0x274cc1)(_0x3b4b7c);Array['isArray'](_0x15cbc1)&&(_0x15cbc1={'results':_0x15cbc1,'searchText':'string'==typeof _0x274cc1?_0x274cc1:''});const _0x566daf=_0x15cbc1['results']['filter'](_0xf11d39=>!0x1===this['_isInDeletionRange'](_0xf11d39,_0x3b4b7c['item']));return{..._0x15cbc1,'results':_0x566daf};},_0x1a4cd1);}['_isInDeletionRange'](_0x16e8f1,_0x217fd3){const _0x39f80a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x217fd3,_0x16e8f1['start']),this['editor']['model']['createPositionAt'](_0x217fd3,_0x16e8f1['end']));for(const _0x4386d8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x39f80a['getIntersection'](_0x4386d8['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 _0x57897a{['afterInit'](){const _0x20b542=this['editor']['locale'],_0x2cb9dd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1d6e81,commandName:_0x36b87b}of eo)this['editor']['plugins']['has'](_0x1d6e81)&&_0x2cb9dd['enableDefaultAttributesIntegration'](_0x36b87b);_0x2cb9dd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20b542,'FORMAT_FONT_SIZE')),_0x2cb9dd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20b542,'FORMAT_FONT_FAMILY')),_0x2cb9dd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20b542,'FORMAT_FONT_COLOR')),_0x2cb9dd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20b542,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c888d=this['editor'],_0x5aa59b=_0x5c888d['locale'];_0x5c888d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xab9a2=>{const _0x4820d9=_0x5aa59b['t'];if('formatInline'!=_0xab9a2['type'])return;const {data:_0x5cce78}=_0xab9a2;if(null!=_0x5cce78){if('fontSize'==_0x5cce78['commandName']){const _0xdf6d29=_0x5cce78['commandParams'][0x0]['value'];if(_0xdf6d29){const _0x3cfec0=_0x4820d9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x303269=>_0x303269['model']==_0xdf6d29)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5aa59b,'*Set\x20font\x20size:*\x20%0',_0x3cfec0)};}return{'type':'format','content':o(_0x5aa59b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cce78['commandName']){const _0x4fe3a8=_0x5cce78['commandParams'][0x0]['value'];return _0x4fe3a8?{'type':'format','content':o(_0x5aa59b,'*Set\x20font\x20family:*\x20%0',_0x4fe3a8)}:{'type':'format','content':o(_0x5aa59b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cce78['commandName']){const _0x33bc22=_0x5cce78['commandParams'][0x0]['value'];if(_0x33bc22){const _0x245b1c=_0x5a6421(this['editor']['config']['get']('fontColor.colors'))['find'](_0x169467=>_0x169467['model']==_0x33bc22);let _0x31786e=_0x33bc22,_0x155a30='';return _0x245b1c&&(_0x31786e=_0x245b1c['label'],_0x155a30=_0x4820d9(_0x31786e)['toLowerCase']()),{'type':'format','content':o(_0x5aa59b,'*Set\x20font\x20color:*\x20%0',_0x155a30)['trim'](),'color':{'value':_0x33bc22,'title':_0x155a30||_0x31786e}};}return{'type':'format','content':o(_0x5aa59b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cce78['commandName']){const _0x383d73=_0x5cce78['commandParams'][0x0]['value'];if(_0x383d73){const _0x30e485=_0x5a6421(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49a910=>_0x49a910['model']==_0x383d73);let _0x10d653=_0x383d73,_0x1f17ec='';return _0x30e485&&(_0x10d653=_0x30e485['label'],_0x1f17ec=_0x4820d9(_0x10d653)['toLowerCase']()),{'type':'format','content':o(_0x5aa59b,'*Set\x20font\x20background\x20color:*\x20%0',_0x1f17ec)['trim'](),'color':{'value':_0x383d73,'title':_0x1f17ec||_0x10d653}};}return{'type':'format','content':o(_0x5aa59b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x57897a{['afterInit'](){const {plugins:_0x1a0ed4}=this['editor'];_0x1a0ed4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1a0ed4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5ce530,plugins:_0x1d7f04,commands:_0x2c09e2}=this['editor'],_0x20b41c=_0x1d7f04['get']('TrackChangesEditing');_0x2c09e2['get']('footnotesStyle')&&_0x20b41c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2c09e2['get']('footnotesStart')&&_0x20b41c['enableDefaultAttributesIntegration']('footnotesStart'),_0x20b41c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x5ce530,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x20b41c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x5ce530,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x43ebb2=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x280b99,commands:_0xfc600e}=this['editor'];_0xfc600e['get']('insertFootnote')&&_0x43ebb2['enableCommand']('insertFootnote'),_0x43ebb2['descriptionFactory']['registerElementLabel']('footnoteRef',_0x7363c1=>o(_0x280b99,'ELEMENT_FOOTNOTE_REF',_0x7363c1)),_0x43ebb2['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x250f6e=>o(_0x280b99,'ELEMENT_FOOTNOTE_DEFINITION',_0x250f6e)),_0x43ebb2['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4c5cc2=>o(_0x280b99,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4c5cc2));}}class st extends _0x57897a{['afterInit'](){const _0xba1456=this['editor'],_0x1260c0=_0xba1456['plugins']['get']('TrackChangesEditing'),_0xb4b03e=_0xba1456['commands']['get']('copyFormat'),_0x5b69c1=_0xba1456['commands']['get']('pasteFormat');_0xb4b03e&&_0x5b69c1&&(_0x1260c0['enableDefaultAttributesIntegration']('pasteFormat'),_0x1260c0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x46d623=this['editor'],_0x4866d7=_0x46d623['locale'];_0x46d623['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30d7e0=>{if('formatBlock'!=_0x30d7e0['type']&&'formatInline'!=_0x30d7e0['type'])return;const {data:_0x2eebe5}=_0x30d7e0;if(_0x2eebe5&&'pasteFormat'===_0x2eebe5['commandName']){const _0x53619d=[],_0x5e4bbc=_0x2eebe5['commandParams'][0x0];for(const [_0x2ca777,_0x1a06a5]of Object['entries'](_0x5e4bbc))_0x53619d['push'](ro(_0x46d623,_0x2ca777,_0x1a06a5));return _0x53619d['length']?{'type':'format','content':o(_0x4866d7,'*Set\x20format\x20to:*\x20%0',_0x53619d['join'](',\x20'))}:{'type':'format','content':o(_0x4866d7,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x217c71,_0x2802a2,_0xb5275b){const _0x1e327c=_0x217c71['locale']['t'],_0x41f7e6=_0x2802a2['split'](/(?=[A-Z])/)['join']('\x20'),_0x2323eb=_0x1e327c(_0x41f7e6['charAt'](0x0)['toUpperCase']()+_0x41f7e6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb5275b)return _0x2323eb;if('fontColor'===_0x2802a2||'fontBackgroundColor'===_0x2802a2){const _0x3d9959=_0x5a6421(_0x217c71['config']['get']('fontColor.colors'))['find'](_0xed24f6=>_0xed24f6['model']==_0xb5275b);return _0x2323eb+'\x20('+(_0x3d9959?_0x1e327c(_0x3d9959['label'])['toLowerCase']():_0xb5275b)+')';}if('fontSize'===_0x2802a2&&isNaN(parseFloat(_0xb5275b))){const _0xe14209=_0x217c71['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x217c71['config']['get']('fontSize.options'))['find'](_0xb3f9ae=>_0xb3f9ae['model']==_0xb5275b);return _0x2323eb+'\x20('+(_0xe14209?_0x1e327c(_0xe14209['title'])['toLowerCase']():_0xb5275b)+')';}return _0x2323eb+'\x20('+_0xb5275b+')';}class ot extends _0x57897a{['_headingOptions'];['afterInit'](){const _0x4c1e1c=this['editor'];if(!_0x4c1e1c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4c1e1c['config']['get']('heading.options');const _0x141a1d=_0x4c1e1c['locale'],_0x123caf=_0x4c1e1c['plugins']['get']('TrackChangesEditing');_0x123caf['enableDefaultAttributesIntegration']('heading');for(const _0xe2c079 of this['_headingOptions'])'paragraph'!=_0xe2c079['model']&&_0x123caf['descriptionFactory']['registerElementLabel'](_0xe2c079['model'],_0x455616=>{const _0x565cb8=this['_getHeadingLevel'](_0xe2c079['model']);return null!==_0x565cb8?_0xcfce02(_0x455616,_0x565cb8):_0x44a8ce(_0x455616,_0xe2c079['title']);});function _0xcfce02(_0x3eddcf,_0x19cf16){return o(_0x141a1d,'ELEMENT_HEADING',[_0x3eddcf,_0x19cf16]);}function _0x44a8ce(_0x28810d,_0x19cda4){return o(_0x141a1d,'ELEMENT_HEADING_CUSTOM',[_0x28810d,_0x19cda4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52711d=this['editor'],_0x5bdcaa=_0x52711d['locale'];function _0x165874(_0x13359c,_0x5a6e41){return o(_0x5bdcaa,'ELEMENT_HEADING_CUSTOM',[_0x13359c,_0x5a6e41]);}_0x52711d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f5dfa=>{if('formatBlock'!=_0x1f5dfa['type'])return;const {data:_0x9dee0f}=_0x1f5dfa;if(_0x9dee0f&&'heading'==_0x9dee0f['commandName']){const _0x1527d4=_0x9dee0f['commandParams'][0x0]['value'],_0xca7798=this['_getHeadingLevel'](_0x1527d4);if(null!==_0xca7798)return{'type':'format','content':o(_0x5bdcaa,'*Change\x20to:*\x20%0',(_0x201c0c=0x1,_0x2f501d=_0xca7798,o(_0x5bdcaa,'ELEMENT_HEADING',[_0x201c0c,_0x2f501d])))};const _0x1cc742=this['_headingOptions']['find'](_0x59d51b=>_0x59d51b['model']===_0x1527d4)['title'];return{'type':'format','content':o(_0x5bdcaa,'*Change\x20to:*\x20%0',_0x165874(0x1,_0x1cc742))};}var _0x201c0c,_0x2f501d;});}['_getHeadingLevel'](_0x237b69){const _0x2ac397=_0x237b69['match'](/^heading(\d+)/);if(_0x2ac397)return _0x2ac397[0x1];const _0x2ed7e2=this['_headingOptions']?.['find'](_0x432db8=>_0x432db8['model']==_0x237b69);if(_0x2ed7e2&&_0x2ed7e2['view']){const _0x2f1391=_0x2ed7e2['view'],_0x2d442b=(_0x2f1391['name']??_0x2f1391)['match'](/^h(\d+)/);if(_0x2d442b)return _0x2d442b[0x1];}return null;}}class rt extends _0x57897a{['afterInit'](){const _0x254449=this['editor'];if(!_0x254449['plugins']['has']('HighlightEditing'))return;const _0x159253=_0x254449['plugins']['get']('TrackChangesEditing'),_0x487575=_0x254449['locale'];_0x159253['enableDefaultAttributesIntegration']('highlight'),_0x159253['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x487575,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43636f=this['editor'],_0x27cb3d=_0x43636f['locale'];_0x43636f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf4d4ad=>{if('formatInline'!=_0xf4d4ad['type'])return;const {data:_0x20ceb8}=_0xf4d4ad;if(_0x20ceb8&&'highlight'==_0x20ceb8['commandName']){const _0x46c9f1=_0x27cb3d['t'],_0x480687=_0x20ceb8['commandParams'][0x0]['value'];if(_0x480687){const _0x3f406f=_0x43636f['config']['get']('highlight.options')['find'](_0x2edffe=>_0x2edffe['model']==_0x480687),_0x255415=_0x46c9f1(_0x3f406f['title'])['toLowerCase']();return{'type':'format','content':o(_0x27cb3d,'*Set\x20highlight:*\x20%0',_0x255415),'color':{'value':_0x3f406f['color'],'title':_0x3f406f['title']}};}return{'type':'format','content':o(_0x27cb3d,'*Remove\x20highlight*',o(_0x27cb3d,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x57897a{['afterInit'](){const _0x556ae8=this['editor'];if(!_0x556ae8['plugins']['has']('HorizontalLineEditing'))return;_0x556ae8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x391eb6=_0x556ae8['plugins']['get']('TrackChangesEditing'),_0x3b801b=_0x556ae8['locale'];_0x391eb6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1d0670=>o(_0x3b801b,'ELEMENT_HORIZONTAL_LINE',_0x1d0670));}}class ct extends _0x57897a{['afterInit'](){const _0x1649fa=this['editor'];if(!_0x1649fa['plugins']['has']('HtmlEmbed'))return;const _0x4668e0=_0x1649fa['plugins']['get']('TrackChangesEditing'),_0x309710=_0x1649fa['locale'];_0x4668e0['descriptionFactory']['registerElementLabel']('rawHtml',_0x283e52=>o(_0x309710,'ELEMENT_HTML_EMBED',_0x283e52)),_0x4668e0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4668e0['descriptionFactory']['registerDescriptionCallback'](_0x30c6e2=>{if('attribute'!=_0x30c6e2['type'])return;const {data:_0x460e34}=_0x30c6e2;if(_0x460e34&&'value'==_0x460e34['key']&&_0x30c6e2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46e957=o(_0x309710,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x309710,'*Change\x20%0\x20content*',_0x46e957)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490992=this['editor'],_0x1de486=_0x490992['locale'];_0x490992['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba79f=>{if('formatBlock'!=_0x1ba79f['type'])return;const {data:_0x1e36ee}=_0x1ba79f;if(_0x1e36ee&&'htmlEmbed'==_0x1e36ee['commandName']){const _0x3e9c49=o(_0x1de486,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1de486,'*Change\x20%0\x20content*',_0x3e9c49)};}});}}class ut extends _0x57897a{['afterInit'](){const _0x4674e2=this['editor'];if(!_0x4674e2['plugins']['has']('ImageEditing'))return;const _0x35792f=_0x4674e2['plugins']['get']('TrackChangesEditing'),_0x35f139=_0x4674e2['plugins']['get']('ImageUtils'),_0x144f1a=_0x4674e2['locale'];_0x35792f['enableCommand']('insertImage'),_0x35792f['descriptionFactory']['registerElementLabel']('imageBlock',_0x29b207=>o(_0x144f1a,'ELEMENT_IMAGE',_0x29b207)),_0x35792f['descriptionFactory']['registerElementLabel']('imageInline',_0xd5d57=>o(_0x144f1a,'ELEMENT_INLINE_IMAGE',_0xd5d57)),_0x35792f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x144f1a,'ELEMENT_CAPTION')),_0x4674e2['plugins']['has']('ImageUploadEditing')&&_0x35792f['enableCommand']('uploadImage'),_0x4674e2['plugins']['has']('ImageBlockEditing')&&_0x4674e2['plugins']['has']('ImageInlineEditing')&&(_0x35792f['enableCommand']('imageTypeInline',(_0xd5e1e5,_0x59a06a)=>{const _0xc69193=_0x35f139['getClosestSelectedImageElement'](_0x4674e2['model']['document']['selection']);_0x4674e2['model']['change'](()=>{_0x35792f['markBlockFormat'](_0xc69193,{'commandName':'imageTypeInline','commandParams':[_0x59a06a]},[],'convertBlockImageToInline');});}),_0x35792f['enableCommand']('imageTypeBlock',(_0x32bcfa,_0x4329d)=>{_0x4674e2['model']['change'](_0x5d6d09=>{let _0xfe9a6d=_0x35f139['getClosestSelectedImageElement'](_0x4674e2['model']['document']['selection']),_0x4938f7=_0x5d6d09['createRangeOn'](_0xfe9a6d);const _0x5acdbb=_0x366946['fromPosition'](_0x4938f7['start'],'toPrevious'),_0x174da0=_0x366946['fromPosition'](_0x4938f7['end'],'toNext');_0x35792f['forceDefaultExecution'](()=>_0x32bcfa(_0x4329d)),_0xfe9a6d=_0x35f139['getClosestSelectedImageElement'](_0x4674e2['model']['document']['selection']),_0x4938f7=_0x5d6d09['createRangeOn'](_0xfe9a6d);const _0x4b8059=_0x5d6d09['createRange'](_0x5acdbb,_0x174da0);_0x5acdbb['detach'](),_0x174da0['detach'](),_0x35792f['markBlockFormat'](_0xfe9a6d,{'commandName':'imageTypeInline','commandParams':[_0x4329d]},[],'convertInlineImageToBlock'),_0x4b8059['start']['isBefore'](_0x4938f7['start'])&&_0x35792f['markInsertion'](_0x5d6d09['createRange'](_0x4b8059['start'],_0x4938f7['start']),'convertInlineImageToBlock'),_0x4938f7['end']['isBefore'](_0x4b8059['end'])&&_0x35792f['markInsertion'](_0x5d6d09['createRange'](_0x4938f7['end'],_0x4b8059['end']),'convertInlineImageToBlock');});}),_0x35792f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35792f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35792f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35792f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35792f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35792f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x11c504])=>{const _0x386f4c=_0x35792f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x504e33=_0x11c504['start'],_0x1e59fa=_0x11c504['end'];const _0x3b0720=_0x4674e2['model']['schema']['getNearestSelectionRange'](_0x504e33,'backward'),_0x22acff=_0x4674e2['model']['schema']['getNearestSelectionRange'](_0x1e59fa,'forward');_0x3b0720['isCollapsed']&&(_0x504e33=_0x3b0720['start']),_0x22acff['isCollapsed']&&(_0x1e59fa=_0x22acff['end']),_0x386f4c([_0x4674e2['model']['createRange'](_0x504e33,_0x1e59fa)]);}),_0x35792f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c5750),_0x35792f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c5750)),_0x4674e2['plugins']['has']('ImageCaptionEditing')&&(_0x35792f['enableCommand']('toggleImageCaption',(_0x5eb0de,_0x452352)=>{const _0x2d50b=_0x4674e2['plugins']['get']('ImageCaptionUtils');let _0x5e89d5=_0x35f139['getClosestSelectedImageElement'](_0x4674e2['model']['document']['selection']),_0x840ef7=_0x2d50b['getCaptionFromImageModelElement'](_0x5e89d5);_0x4674e2['model']['change'](()=>{if(_0x840ef7)return void _0x35792f['markDeletion'](_0x4674e2['model']['createRangeOn'](_0x840ef7));const _0x13effe=_0x35f139['isBlockImage'](_0x5e89d5);_0x5eb0de(_0x452352),_0x5e89d5=_0x35f139['getClosestSelectedImageElement'](_0x4674e2['model']['document']['selection']),_0x840ef7=_0x2d50b['getCaptionFromImageModelElement'](_0x5e89d5),_0x35792f['markInsertion'](_0x4674e2['model']['createRangeOn'](_0x840ef7),_0x13effe?null:'imageCaption');});}),_0x35792f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c5750));const _0x3c4147=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b075d(_0x551490,_0x120233){const _0x31cfd6=_0x3c4147['findIndex'](({type:_0x5c3ce0,subType:_0x4188a0})=>_0x551490['type']==_0x5c3ce0&&_0x551490['subType']==_0x4188a0),_0x504293=_0x3c4147['findIndex'](({type:_0x3d4983,subType:_0x5ec0e7})=>_0x120233['type']==_0x3d4983&&_0x120233['subType']==_0x5ec0e7);if(_0x31cfd6<0x0||_0x504293<0x0)return!0x1;const _0x57369b=_0x551490['getFirstRange'](),_0x3b2888=_0x120233['getFirstRange']();if((0x0==_0x31cfd6||0x1==_0x31cfd6)&&0x2==_0x504293&&_0x57369b['isIntersecting'](_0x3b2888))return!0x0;if(0x2==_0x31cfd6&&0x3==_0x504293){const _0x104b0c=_0x35792f['_findSuggestions'](_0x57369b,'insertion')['filter'](({suggestion:_0x3eb39a,meta:_0x4d01f2})=>_0x4d01f2['isOwn']&&'convertInlineImageToBlock'==_0x3eb39a['subType']);if(_0x104b0c['length']>0x1&&_0x3b2888['end']['isEqual'](_0x57369b['start']))return!0x0;if(0x1==_0x104b0c['length']&&(_0x57369b['start']['isEqual'](_0x3b2888['end'])||_0x57369b['end']['isEqual'](_0x3b2888['start'])))return!0x0;}if(0x3==_0x31cfd6&&0x3==_0x504293&&_0x57369b['start']['isBefore'](_0x3b2888['start'])){const _0x5de162=_0x57369b['end']['nodeAfter'],_0x42a949=_0x3b2888['start']['nodeBefore'];return _0x35f139['isBlockImage'](_0x5de162)&&_0x5de162===_0x42a949;}return!0x1;}function _0x2c5750(_0x4cd0a8,_0x21fdb0){return _0x2b075d(_0x4cd0a8,_0x21fdb0)?[_0x4cd0a8,_0x21fdb0]:_0x2b075d(_0x21fdb0,_0x4cd0a8)?[_0x21fdb0,_0x4cd0a8]:null;}_0x4674e2['plugins']['has']('ImageResize')&&(_0x35792f['enableDefaultAttributesIntegration']('resizeImage'),_0x35792f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x144f1a,'FORMAT_IMAGE_SIZE'))),_0x4674e2['plugins']['has']('ImageTextAlternativeEditing')&&_0x35792f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4674e2['plugins']['has']('PictureEditing')&&_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x564415=>{if('attribute'!=_0x564415['type'])return;const {data:_0x1dc41e}=_0x564415;return _0x1dc41e&&'sources'==_0x1dc41e['key']?{'type':'format','content':''}:void 0x0;}),_0x4674e2['plugins']['has']('ImageSizeAttributes')&&_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x24a310=>{if('attribute'!=_0x24a310['type'])return;const {data:_0x5d6a18}=_0x24a310;return!_0x5d6a18||'width'!=_0x5d6a18['key']&&'height'!=_0x5d6a18['key']?void 0x0:{'type':'format','content':''};}),_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x18e6ed=>{if(!!_0x3c4147['find'](({type:_0x42c3a6,subType:_0xcfd2fa})=>_0x18e6ed['type']==_0x42c3a6&&_0x18e6ed['subType']==_0xcfd2fa))return _0x18e6ed['previous']?{}:void 0x0;}),_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x1e4e39=>{if('insertion'==_0x1e4e39['type']||'deletion'==_0x1e4e39['type']){const _0x5986c8=_0x1e4e39['getContainedElement']();if(_0x5986c8&&_0x5986c8['is']('element','caption'))return{'type':'insertion'==_0x1e4e39['type']?'addObject':'removeObject','element':_0x5986c8,'quantity':0x1};}}),_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x227158=>'formatBlock'==_0x227158['type']&&'convertInlineImageToBlock'==_0x227158['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x227158['type']&&'convertBlockImageToInline'==_0x227158['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35792f['descriptionFactory']['registerDescriptionCallback'](_0x121dfa=>{if('attribute'!=_0x121dfa['type'])return;const {data:_0x2e96ae}=_0x121dfa;if(!_0x2e96ae||'alt'!=_0x2e96ae['key'])return;const _0x481592=_0x2e96ae['newValue'];return _0x481592?{'type':'format','content':o(_0x144f1a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x481592+'\x22')}:{'type':'format','content':o(_0x144f1a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a9067=this['editor'],_0x3544eb=_0x2a9067['locale'];_0x2a9067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3338=>{if('formatBlock'!=_0x4c3338['type']&&'formatInline'!=_0x4c3338['type'])return;const {data:_0x536bf8}=_0x4c3338;if(_0x536bf8){if('imageTextAlternative'==_0x536bf8['commandName']){const _0x2e9216=_0x536bf8['commandParams'][0x0]['newValue'];return _0x2e9216?{'type':'format','content':o(_0x3544eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e9216+'\x22')}:{'type':'format','content':o(_0x3544eb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x536bf8['commandName']){const _0x4f7444=_0x536bf8['commandParams'][0x0]['width'];return _0x4f7444?{'type':'format','content':o(_0x3544eb,'*Set\x20image\x20width:*\x20%0',_0x4f7444)}:{'type':'format','content':o(_0x3544eb,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x57897a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x27a4b2=this['editor']['locale'],_0x428ece=this['editor']['plugins']['get']('TrackChangesEditing');_0x428ece['enableDefaultAttributesIntegration']('replaceImageSource'),_0x428ece['descriptionFactory']['registerDescriptionCallback'](_0x1e7cb5=>{if('attribute'!=_0x1e7cb5['type'])return;const {data:_0x4668c6}=_0x1e7cb5;return _0x4668c6&&'src'==_0x4668c6['key']?_0x4668c6['newValue']&&_0x4668c6['oldValue']?{'type':'format','content':o(_0x27a4b2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18d8bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x18d8bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x18d8bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18d8bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x18d8bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a851f=this['editor'],_0x1f24e3=_0x1a851f['locale'];_0x1a851f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58e0e2=>{if('formatBlock'!=_0x58e0e2['type']&&'formatInline'!=_0x58e0e2['type'])return;const {data:_0x3fb48b}=_0x58e0e2;if(!_0x3fb48b||'replaceImageSource'!=_0x3fb48b['commandName'])return;return{'type':'format','content':o(_0x1f24e3,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x57897a{['afterInit'](){const _0x1daf7e=this['editor'];if(!_0x1daf7e['plugins']['has']('ImageStyleEditing'))return;const _0x639f81=_0x1daf7e['plugins']['get']('TrackChangesEditing'),_0x47ceed=_0x1daf7e['plugins']['get']('ImageUtils'),_0x570302={};_0x639f81['enableCommand']('imageStyle',(_0x57238a,_0x10326a)=>{const _0x387eef=_0x1daf7e['plugins']['get']('Users')['me'],_0x335934=_0x1daf7e['commands']['get']('imageStyle');let _0x212e37=_0x47ceed['getClosestSelectedImageElement'](_0x1daf7e['model']['document']['selection']),_0x291722=_0x1daf7e['model']['createRangeOn'](_0x212e37),_0x24f08c=_0x335934['value'];if(_0x24f08c==_0x10326a['value'])return;const _0xf98558={'commandName':'imageStyle','commandParams':[_0x10326a],'formatGroupId':_0x5ddf4e()};_0x1daf7e['model']['change'](()=>{if(_0x639f81['getSuggestions']()['filter'](_0x2049c0=>_0x2049c0['isInContent']&&_0x387eef==_0x2049c0['author']&&('formatBlock'==_0x2049c0['type']||'formatInline'==_0x2049c0['type'])&&('imageStylePreApply'==_0x2049c0['subType']||'imageStylePostApply'==_0x2049c0['subType'])&&_0x2049c0['getFirstRange']()['isEqual'](_0x291722))['forEach'](_0x512d61=>_0x639f81['discardSuggestion'](_0x512d61['head'])),_0x212e37=_0x47ceed['getClosestSelectedImageElement'](_0x1daf7e['model']['document']['selection']),_0x291722=_0x1daf7e['model']['createRangeOn'](_0x212e37),_0x335934['refresh'](),_0x1daf7e['commands']['get']('imageTypeInline')['refresh'](),_0x1daf7e['commands']['get']('imageTypeBlock')['refresh'](),_0x24f08c=_0x335934['value'],_0x24f08c!=_0x10326a['value'])return _0x47ceed['isInlineImage'](_0x212e37)&&_0x335934['shouldConvertImageType'](_0x10326a['value'],_0x212e37)?(_0x57238a({..._0x10326a,'setImageSizes':!0x1}),_0x212e37=_0x47ceed['getClosestSelectedImageElement'](_0x1daf7e['model']['document']['selection']),void _0x639f81['markBlockFormat'](_0x212e37,{..._0xf98558,'commandReversedParams':[{'value':_0x24f08c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x47ceed['isBlockImage'](_0x212e37)?_0x639f81['markBlockFormat'](_0x212e37,_0xf98558,[],'imageStylePostApply'):_0x639f81['markInlineFormat'](_0x291722,_0xf98558,'imageStylePostApply'));});});for(const _0x4fa32c of _0x1daf7e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x570302[_0x4fa32c['name']]=_0x4fa32c['title']['toLowerCase']();_0x639f81['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x639f81['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x639f81['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x639f81['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4213ec])=>{_0x47ceed['setImageNaturalSizeAttributes'](_0x4213ec['getContainedElement']());}),_0x639f81['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x417568,_0x25e7ef)=>{_0x639f81['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x417568,{'commandName':_0x25e7ef['commandName'],'commandParams':_0x25e7ef['commandReversedParams']});}),_0x639f81['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x322051,_0x42b3cf){if(_0x186c00(_0x322051,_0x42b3cf))return[_0x322051,_0x42b3cf];if(_0x186c00(_0x42b3cf,_0x322051))return[_0x42b3cf,_0x322051];return null;});const _0x85a52d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x186c00(_0x322e02,_0x1cd13c){const _0xc039c2=_0x85a52d['findIndex'](({type:_0x53da24,subType:_0x205a7d})=>_0x322e02['type']==_0x53da24&&_0x322e02['subType']==_0x205a7d),_0x35356a=_0x85a52d['findIndex'](({type:_0x172168,subType:_0x186d76})=>_0x1cd13c['type']==_0x172168&&_0x1cd13c['subType']==_0x186d76);if(_0xc039c2<0x0||_0x35356a<0x0)return!0x1;const _0x6d3c68=_0x322e02['getFirstRange'](),_0x13e090=_0x1cd13c['getFirstRange']();if((0x0==_0xc039c2||0x1==_0xc039c2)&&0x2==_0x35356a&&_0x6d3c68['isIntersecting'](_0x13e090))return!0x0;if(0x2==_0xc039c2&&0x3==_0x35356a){const _0x136321=_0x639f81['_findSuggestions'](_0x6d3c68,'insertion')['filter'](({suggestion:_0x169174,meta:_0x4a9549})=>_0x4a9549['isOwn']&&'convertInlineImageToBlock'==_0x169174['subType']);if(_0x136321['length']>0x1&&_0x13e090['end']['isEqual'](_0x6d3c68['start']))return!0x0;if(0x1==_0x136321['length']&&(_0x6d3c68['start']['isEqual'](_0x13e090['end'])||_0x6d3c68['end']['isEqual'](_0x13e090['start'])))return!0x0;}if(0x3==_0xc039c2&&0x3==_0x35356a&&_0x6d3c68['start']['isBefore'](_0x13e090['start'])){const _0x1ee9cb=_0x6d3c68['end']['nodeAfter'],_0xc0a12f=_0x13e090['start']['nodeBefore'];return _0x47ceed['isBlockImage'](_0x1ee9cb)&&_0x1ee9cb===_0xc0a12f;}return!0x1;}_0x1daf7e['model']['document']['registerPostFixer'](()=>{let _0xe5d9fc=!0x1;const _0x424d4d=Array['from'](_0x1daf7e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22dd65,data:_0x287f79}of _0x424d4d){const {group:_0x2dfaea,type:_0x4dba55,subType:_0x574285,id:_0x35805b}=_0x639f81['_splitMarkerName'](_0x22dd65);if('suggestion'==_0x2dfaea&&_0x639f81['hasSuggestion'](_0x35805b)){if('formatBlock'==_0x4dba55&&('imageStylePreApply'==_0x574285||'imageStylePostApply'==_0x574285)){const _0xe67775=_0x639f81['getSuggestion'](_0x35805b);if(_0x287f79['newRange']){const _0x33b17d=_0xe67775['getFirstRange']()['getContainedElement']();if(_0x47ceed['isBlockImage'](_0x33b17d))continue;_0x639f81['discardSuggestion'](_0xe67775),_0xe5d9fc=!0x0;}}if('insertion'==_0x4dba55&&'imageCaption'==_0x574285&&!_0x287f79['newRange']){const _0x2f9c13=_0x639f81['getSuggestion'](_0x35805b);_0x2f9c13['next']&&_0x2f9c13['next']['isInContent']&&(_0x639f81['discardSuggestion'](_0x2f9c13['next']),_0xe5d9fc=!0x0);}}}return _0xe5d9fc;}),this['_registerLegacyDescription'](_0x570302);}['_registerLegacyDescription'](_0x503a80){const _0x4aea80=this['editor'],_0x5ab08f=_0x4aea80['locale'];_0x4aea80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2da0bd=>{if('formatBlock'!=_0x2da0bd['type']&&'formatInline'!=_0x2da0bd['type'])return;const {data:_0x29fdda}=_0x2da0bd;if(!_0x29fdda||'imageStyle'!=_0x29fdda['commandName'])return;const _0x4817af=_0x29fdda['commandParams'][0x0]['value'];return _0x3f1657('side'===_0x4817af?o(_0x5ab08f,'FORMAT_SIDE_IMAGE'):_0x503a80[_0x4817af]||_0x4817af);function _0x3f1657(_0x2aed30){return{'type':'format','content':o(_0x5ab08f,'*Format:*\x20%0',_0x2aed30)};}});}}class lt extends _0x57897a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x186ad9){super(_0x186ad9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d2d53=this['editor'],_0x529877=_0x4d2d53['commands']['get']('importWord'),_0x5133c3=_0x4d2d53['commands']['get']('trackChanges');_0x529877&&(_0x529877['on']('execute',(_0x53eabb,[,_0x560bfa])=>{this['_trackChangesValueDuringImport']=_0x5133c3['value'],_0x560bfa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x529877,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x529877,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5133c3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d2d53['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1a5fda,_0x53f7fd){const {suggestions:_0x2648b9}=_0x53f7fd,_0x165b9c=this['editor']['commands']['get']('trackChanges'),_0x474d0e=_0x165b9c['value'];this['_trackChangesValueDuringImport']!==_0x474d0e&&(_0x165b9c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2648b9&&_0x2648b9['forEach'](({id:_0x34f549,type:_0x187f63,author:_0x4ef14e,created_at:_0xd04513})=>{const _0x1426bf={'id':_0x34f549,'type':_0x187f63,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ef14e,'createdAt':_0xd04513?new Date(_0xd04513):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1426bf);});}}class gt extends _0x57897a{['afterInit'](){const _0x3c825f=this['editor'],_0x40a3e0=_0x3c825f['plugins']['get']('TrackChangesEditing');if(_0x3c825f['plugins']['has']('IndentEditing')&&(_0x40a3e0['enableCommand']('indent'),_0x40a3e0['enableCommand']('outdent')),_0x3c825f['plugins']['has']('IndentBlock')){for(const _0x4b15a7 of['indentBlock','outdentBlock'])_0x40a3e0['enableDefaultAttributesIntegration'](_0x4b15a7);if(_0x3c825f['plugins']['has']('ListEditing')){for(const _0x241d40 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x40a3e0['enableDefaultAttributesIntegration'](_0x241d40);}}const _0x9c1249=_0x3c825f['locale'];_0x40a3e0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x9c1249,'FORMAT_INDENT')),_0x40a3e0['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x9c1249,'FORMAT_INDENT')),_0x40a3e0['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x9c1249,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e0d47=this['editor'],_0x429736=_0x2e0d47['locale'],_0x32e6ca=_0x2e0d47['plugins']['get']('TrackChangesEditing');_0x32e6ca['descriptionFactory']['registerDescriptionCallback'](_0x37822c=>{if('formatBlock'!=_0x37822c['type'])return;const {data:_0x250702}=_0x37822c;if(!_0x250702)return;if('indentBlock'!=_0x250702['commandName']&&'outdentBlock'!=_0x250702['commandName'])return;const _0x473fb9=_0x37822c['getItems']()[0x0],_0x385b02=_0x32e6ca['descriptionFactory']['getItemLabel'](_0x473fb9);return'indentBlock'==_0x250702['commandName']?{'type':'format','content':o(_0x429736,'*Indent:*\x20%0',_0x385b02)}:'outdentBlock'==_0x250702['commandName']?{'type':'format','content':o(_0x429736,'*Outdent:*\x20%0',_0x385b02)}:void 0x0;});}}class mt extends _0x57897a{static get['requires'](){return[_0x1c220d];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x57897a{['afterInit'](){const _0x5b36e6=this['editor'];if(!_0x5b36e6['plugins']['has']('LinkEditing'))return;const _0x4ac0e9=_0x5b36e6['plugins']['get']('TrackChangesEditing'),_0x5b33d6=_0x5b36e6['commands']['get']('link');_0x4ac0e9['enableDefaultAttributesIntegration']('link'),_0x4ac0e9['enableDefaultAttributesIntegration']('unlink');for(const _0x4db1be of _0x5b33d6['manualDecorators'])_0x4ac0e9['descriptionFactory']['registerAttributeLabel'](_0x4db1be['id'],'link\x20('+_0x4db1be['label']['toLowerCase']()+')');_0x4ac0e9['descriptionFactory']['registerDescriptionCallback'](_0x192755=>{if('attribute'!=_0x192755['type'])return;const {data:_0x5ee09f}=_0x192755;if(!_0x5ee09f||'linkHref'!=_0x5ee09f['key'])return;const _0x74ef28=_0x5ee09f['newValue'],_0x4d8b36=_0x5b36e6['locale'];return{'type':'format','content':null==_0x74ef28?o(_0x4d8b36,'*Remove\x20link*'):o(_0x4d8b36,'*Set\x20link:*\x20%0','\x22'+_0x74ef28+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5de362=this['editor'],_0x4c4972=_0x5de362['locale'];_0x5de362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1de514=>{if('formatInline'!=_0x1de514['type'])return;const {data:_0x4e7359}=_0x1de514;if(_0x4e7359){if('link'==_0x4e7359['commandName']){const _0x467d3c=_0x4e7359['commandParams'][0x0];return{'type':'format','content':o(_0x4c4972,'*Set\x20link:*\x20%0','\x22'+_0x467d3c+'\x22')};}return'unlink'==_0x4e7359['commandName']?{'type':'format','content':o(_0x4c4972,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x57897a{['afterInit'](){const _0x467d8d=this['editor'],_0x3ed566=_0x467d8d['locale'];if(!_0x467d8d['plugins']['has']('LegacyListEditing'))return;const _0x5ab71c=_0x467d8d['plugins']['get']('TrackChangesEditing'),_0x1e3e1f=_0x467d8d['plugins']['has']('LegacyTodoListEditing');function _0x3d0f5f(_0x3e7be2){return()=>{const _0x349908=_0x467d8d['model']['document']['selection'],_0x4c683e=_0x467d8d['commands']['get'](_0x3e7be2);if(_0x4c683e['value'])return void _0x467d8d['execute']('paragraph',{});const _0x2625d4=_0x3e7be2['slice'](0x0,-0x4),_0x2fa695=function(_0xc42377,_0x49a8dd,_0xa22286){let _0x4528f3=Array['from'](_0xc42377)['filter'](_0x6fe11=>function(_0x5450aa,_0x5ed0d1){return _0x5ed0d1['checkChild'](_0x5450aa['parent'],'listItem')&&!_0x5ed0d1['isObject'](_0x5450aa);}(_0x6fe11,_0xa22286));_0x4528f3=_0x4528f3['filter'](_0x45dc15=>!_0x45dc15['is']('element','listItem')||_0x45dc15['getAttribute']('listType')!=_0x49a8dd);const _0x3fda71=new Set();for(const _0x485c10 of _0x4528f3)_0x485c10['is']('element','listItem')?_0x3fda71['add'](Le(_0x485c10)):_0x3fda71['add'](_0x485c10);return Array['from'](_0x3fda71);}(_0x349908['getSelectedBlocks'](),_0x2625d4,_0x467d8d['model']['schema']);_0x467d8d['model']['change'](()=>{for(const _0x4b1028 of _0x2fa695)_0x5ab71c['markBlockFormat'](_0x4b1028,{'commandName':_0x3e7be2,'commandParams':[{'forceValue':!_0x4c683e['value']}],'formatGroupId':'blockName'},Ee(_0x4b1028));});};}function _0x2c1020(_0x46dccc){return()=>{const _0x2b164f=function(_0x42fd92){let _0x559661=Array['from'](_0x42fd92);const _0x587a78=_0x559661['findIndex'](_0x3078d3=>'listItem'!=_0x3078d3['name']);return _0x587a78>-0x1&&(_0x559661=_0x559661['slice'](0x0,_0x587a78)),_0x559661;}(_0x467d8d['model']['document']['selection']['getSelectedBlocks']()),_0x452861=_0x467d8d['model']['createRange'](_0x467d8d['model']['createPositionAt'](_0x2b164f[0x0],'before'),_0x467d8d['model']['createPositionAt'](_0x2b164f[_0x2b164f['length']-0x1],'end'));_0x467d8d['model']['change'](()=>{_0x5ab71c['markBlockFormat'](_0x452861,{'commandName':_0x46dccc,'commandParams':[],'formatGroupId':'listIndent'},function(_0x477b44){const _0x3cd114=new Set();for(const _0x5d56e8 of _0x477b44){let _0x325a11=_0x5d56e8['nextSibling'];for(;_0x325a11&&_0x325a11['getAttribute']('listIndent')>_0x5d56e8['getAttribute']('listIndent');)_0x3cd114['add'](_0x325a11),_0x325a11=_0x325a11['nextSibling'];}return Array['from'](_0x3cd114);}(_0x2b164f));});};}_0x5ab71c['enableCommand']('numberedList',_0x3d0f5f('numberedList')),_0x5ab71c['enableCommand']('bulletedList',_0x3d0f5f('bulletedList')),_0x1e3e1f&&_0x5ab71c['enableCommand']('todoList',_0x3d0f5f('todoList')),_0x5ab71c['enableCommand']('indentList',_0x2c1020('indentList')),_0x5ab71c['enableCommand']('outdentList',_0x2c1020('outdentList')),_0x1e3e1f&&_0x5ab71c['enableCommand']('checkTodoList',()=>{const _0x3c7d18=_0x467d8d['commands']['get']('checkTodoList'),_0x5b5bbc=Array['from'](_0x3c7d18['_selectedElements']);_0x5b5bbc['filter'](_0x4c1239=>_0x4c1239['getAttribute']('todoListChecked')!=_0x3c7d18['value']),_0x467d8d['model']['change'](()=>{for(const _0x38757f of _0x5b5bbc)_0x5ab71c['markBlockFormat'](_0x38757f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3c7d18['value']}]});});}),_0x5ab71c['descriptionFactory']['registerElementLabel']('listItem',_0x30cb3c=>o(_0x3ed566,'ELEMENT_LIST_ITEM',_0x30cb3c)),_0x5ab71c['descriptionFactory']['registerDescriptionCallback'](_0x4d3e1e=>{if('formatBlock'!=_0x4d3e1e['type']&&'formatInline'!=_0x4d3e1e['type'])return;const {data:_0x396443}=_0x4d3e1e;if(_0x396443){if('numberedList'==_0x396443['commandName']||'bulletedList'==_0x396443['commandName']||'todoList'==_0x396443['commandName'])switch(_0x396443['commandName']['replace']('List','')){case'bulleted':return _0x51618f(o(_0x3ed566,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51618f(o(_0x3ed566,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51618f(o(_0x3ed566,'ELEMENT_TODO_LIST'));}if('indentList'==_0x396443['commandName'])return{'type':'format','content':o(_0x3ed566,'*Indent:*\x20%0',o(_0x3ed566,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x396443['commandName'])return{'type':'format','content':o(_0x3ed566,'*Outdent:*\x20%0',o(_0x3ed566,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x396443['commandName'])return _0x396443['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ed566,'*Check\x20item*')}:{'type':'format','content':o(_0x3ed566,'*Uncheck\x20item*')};}function _0x51618f(_0x2c4a95){return{'type':'format','content':o(_0x3ed566,'*Change\x20to:*\x20%0',_0x2c4a95)};}});}}function Le(_0x48b462){const _0x4241fc=_0x48b462['getAttribute']('listIndent');if(0x0==_0x4241fc)return _0x48b462;let _0x10c90d=_0x48b462;for(;_0x48b462['previousSibling']&&_0x48b462['previousSibling']['is']('element','listItem');){const _0x51e2a4=_0x48b462['previousSibling']['getAttribute']('listIndent');if(_0x51e2a4==_0x4241fc)_0x10c90d=_0x48b462['previousSibling'];else{if(_0x51e2a4<_0x4241fc)break;}_0x48b462=_0x48b462['previousSibling'];}return _0x10c90d;}function Ee(_0x404884){const _0x30f781=[];if(_0x404884['is']('element','listItem')&&_0x404884['getAttribute']('listIndent')>0x0){let _0x3c70fa=_0x404884['nextSibling'];for(;_0x3c70fa&&'listItem'==_0x3c70fa['name']&&_0x3c70fa['getAttribute']('listIndent')==_0x404884['getAttribute']('listIndent');)_0x30f781['push'](_0x3c70fa),_0x3c70fa=_0x3c70fa['nextSibling'];}return _0x30f781;}class wt extends _0x57897a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e14ef=this['editor']['config']['get']('list.properties'),_0x3d0492=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e14ef['styles']&&_0x3d0492['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e14ef['reversed']&&_0x3d0492['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e14ef['startIndex']&&_0x3d0492['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3d0492['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50cd40,_0x136a31={}){const _0xc14e93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54df45=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc14e93['markMultiRangeBlockFormat'](_0x54df45,{'commandName':'listStyle','commandParams':[{'type':_0x136a31['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x332ee4,_0xf65811={}){const _0x28e8a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d0df=this['_getSuggestionBlocks'](_0x503f3d=>_0x503f3d['is']('element','listItem')&&'numbered'===_0x503f3d['getAttribute']('listType'));if(_0x34d0df['length']<0x1)return;const _0x18c5d5=_0x34d0df['map'](_0x10122a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10122a,'before'),this['editor']['model']['createPositionAt'](_0x10122a,0x0)));this['editor']['model']['change'](()=>{_0x28e8a0['markMultiRangeBlockFormat'](_0x18c5d5,{'commandName':'listReversed','commandParams':[{'reversed':_0xf65811['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x52dc58,_0x40a779={}){const _0x54d7ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b9ad8=this['_getSuggestionBlocks'](_0x4a8eaf=>_0x4a8eaf['is']('element','listItem')&&'numbered'===_0x4a8eaf['getAttribute']('listType'));if(_0x4b9ad8['length']<0x1)return;const _0x405f98=_0x4b9ad8['map'](_0x143099=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x143099,'before'),this['editor']['model']['createPositionAt'](_0x143099,0x0)));this['editor']['model']['change'](()=>{_0x54d7ff['markMultiRangeBlockFormat'](_0x405f98,{'commandName':'listStart','commandParams':[{'startIndex':_0x40a779['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43795a){if('formatBlock'!=_0x43795a['type']&&'formatInline'!=_0x43795a['type'])return;const _0x5d9c47=this['editor']['locale'],{data:_0x5b6857}=_0x43795a;if(!_0x5b6857)return;let _0x4b48f3,_0x4cbd73;switch(_0x5b6857['commandName']){case'listStyle':_0x4b48f3='*Change\x20to:*\x20%0',_0x4cbd73={'type':'format','content':o(_0x5d9c47,_0x4b48f3,o(_0x5d9c47,this['_getTranslationKeyForListStyle'](_0x5b6857['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b48f3=_0x5b6857['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4cbd73={'type':'format','content':o(_0x5d9c47,_0x4b48f3)};break;case'listStart':_0x4b48f3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4cbd73={'type':'format','content':o(_0x5d9c47,_0x4b48f3,_0x5b6857['commandParams'][0x0]['startIndex'])};}return _0x4cbd73;}['_getSuggestionBlocksForListStyle'](){const _0x459a12=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c6900=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c6900[0x0]?.['is']('element','listItem')&&_0x4c6900['unshift'](..._0x459a12['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c6900[_0x4c6900['length']-0x1]?.['is']('element','listItem')&&_0x4c6900['push'](..._0x459a12['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c6900=[...new Set(_0x4c6900)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c6900=_0x4c6900['filter'](_0x45590e=>_0x45590e['is']('element','listItem'))),_0x4c6900;}['_getSuggestionBlocks'](_0x168b2b){const _0x4f08bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x299a7c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x168b2b)['map'](_0x572f96=>{const _0x18941c=this['editor']['model']['createPositionAt'](_0x572f96,0x0);return[..._0x4f08bd['getSiblingNodes'](_0x18941c,'backward'),..._0x4f08bd['getSiblingNodes'](_0x18941c,'forward')];})['flat']();return _0x299a7c=[...new Set(_0x299a7c)],_0x299a7c;}['_getTranslationKeyForListStyle'](_0x3d108d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3d108d)||'default')['toUpperCase']()+'_LIST_'+_0x3d108d['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x57897a{['afterInit'](){const _0x277b3f=this['editor'];if(!_0x277b3f['plugins']['has']('MediaEmbedEditing'))return;const _0x1f8cab=_0x277b3f['plugins']['get']('TrackChangesEditing'),_0x5539cf=_0x277b3f['locale'];_0x1f8cab['enableCommand']('mediaEmbed'),_0x1f8cab['descriptionFactory']['registerElementLabel']('media',_0x543942=>o(_0x5539cf,'ELEMENT_MEDIA',_0x543942));}}class bt extends _0x57897a{['afterInit'](){const _0x5808ef=this['editor'];_0x5808ef['plugins']['has']('MentionEditing')&&_0x5808ef['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x57897a{['afterInit'](){const _0x282262=this['editor'];if(!_0x282262['plugins']['has']('MergeFieldsEditing'))return;const _0x107598=_0x282262['plugins']['get']('TrackChangesEditing'),_0x1e90ad=_0x282262['locale'];_0x107598['enableCommand']('insertMergeField'),_0x107598['enableCommand']('insertMergeFieldBlock'),_0x107598['enableCommand']('insertMergeFieldImage'),_0x107598['descriptionFactory']['registerElementLabel']('mergeField',_0x41e0b4=>o(_0x1e90ad,'ELEMENT_MERGE_FIELD',_0x41e0b4)),_0x107598['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x42cf69=>o(_0x1e90ad,'ELEMENT_MERGE_FIELD',_0x42cf69)),_0x107598['descriptionFactory']['registerDescriptionCallback'](_0x127781=>{if('insertion'!=_0x127781['type']&&'deletion'!=_0x127781['type'])return;const _0x3ca362=_0x127781['getContainedElement']();if(null==_0x3ca362)return;const _0x3a52e8=_0x282262['plugins']['get']('MergeFieldsEditing');let _0x18cd6c;switch(_0x3a52e8['getMergeFieldType'](_0x3ca362)){case null:return;case'image':{const _0x37aa53=_0x3a52e8['unwrapAffixes'](_0x3ca362['getAttribute']('src'));_0x18cd6c=_0x3a52e8['getLabel'](_0x37aa53)||_0x37aa53;break;}default:{const _0x4b6953=_0x3ca362['getAttribute']('id');_0x18cd6c=_0x3a52e8['getLabel'](_0x4b6953)||_0x4b6953;break;}}return'insertion'==_0x127781['type']?{'type':'insertion','content':o(_0x1e90ad,'*Insert:*\x20%0','\x22'+_0x18cd6c+'\x22\x20'+o(_0x1e90ad,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1e90ad,'*Remove:*\x20%0','\x22'+_0x18cd6c+'\x22\x20'+o(_0x1e90ad,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x57897a{['afterInit'](){const _0x5ce404=this['editor'],_0x575f84=_0x5ce404['plugins']['get']('TrackChangesEditing');_0x5ce404['plugins']['has']('MultiLevelList')&&(_0x575f84['enableDefaultAttributesIntegration']('multiLevelList'),_0x575f84['descriptionFactory']['registerDescriptionCallback'](_0x394f6e=>this['handleDescriptions'](_0x394f6e)));}['handleDescriptions'](_0x4e7c31){const _0x145d57=this['editor']['locale'],{data:_0x513068}=_0x4e7c31,_0x416341={'type':'format','content':''};if(_0x513068&&'listMarkerStyle'==_0x513068['key']){if(!_0x513068['oldValue'])return{'type':'format','content':o(_0x145d57,'*Set\x20format:*\x20%0',o(_0x145d57,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x513068['newValue']+')'};if(!_0x513068['newValue']){let _0x39f342=_0x4e7c31['head'];for(;_0x39f342;){if(_0x39f342['data']&&'listType'==_0x39f342['data']['key']&&_0x39f342['data']['newValue'])return _0x416341;_0x39f342=_0x39f342['next'];}return{'type':'format','content':o(_0x145d57,'*Remove\x20format:*\x20%0',o(_0x145d57,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x513068['oldValue']+')'};}}}}class St extends _0x57897a{['afterInit'](){const _0x3f8b17=this['editor'];if(!_0x3f8b17['plugins']['has']('PageBreakEditing'))return;_0x3f8b17['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ae298=_0x3f8b17['plugins']['get']('TrackChangesEditing'),_0x5e645c=_0x3f8b17['locale'];_0x3ae298['descriptionFactory']['registerElementLabel']('pageBreak',_0x33b461=>o(_0x5e645c,'ELEMENT_PAGE_BREAK',_0x33b461));}}class It extends _0x57897a{['afterInit'](){const _0x16ed24=this['editor'];if(!_0x16ed24['plugins']['has']('Paragraph'))return;const _0x45f896=_0x16ed24['locale'],_0x5da485=_0x16ed24['plugins']['get']('TrackChangesEditing');_0x5da485['descriptionFactory']['registerElementLabel']('paragraph',_0x223f32=>o(_0x45f896,'ELEMENT_PARAGRAPH',_0x223f32)),_0x5da485['enableDefaultAttributesIntegration']('paragraph'),_0x5da485['enableCommand']('insertParagraph');const _0xea9a17=_0x5da485['descriptionFactory'];_0xea9a17['registerDescriptionCallback'](_0x3fe5eb=>{if('insertion'!==_0x3fe5eb['type'])return;const {start:_0x42209b,end:_0x175f21}=_0x3fe5eb['getFirstRange']();if(!_0x42209b['isTouching'](_0x175f21)||!_0x42209b['nodeAfter'])return;const _0x1042fc=_0x16ed24['model']['schema'],_0x40de3a=_0x42209b['nodeAfter'];return _0x1042fc['isBlock'](_0x40de3a)&&!_0x1042fc['isLimit'](_0x40de3a)&&_0x1042fc['checkChild'](_0x40de3a,'$text')?{'type':'insertion','content':o(_0x45f896,'*Insert:*\x20%0',_0xea9a17['getItemLabel'](_0x40de3a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c6495=this['editor'],_0x587205=_0x5c6495['locale'];_0x5c6495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55f916=>{if('formatBlock'!=_0x55f916['type'])return;const {data:_0x7bb52d}=_0x55f916;return _0x7bb52d&&'paragraph'==_0x7bb52d['commandName']?{'type':'format','content':o(_0x587205,'*Change\x20to:*\x20%0',o(_0x587205,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x57897a{['afterInit'](){const _0x105034=this['editor'];_0x105034['commands']['get']('replaceSource')&&_0x105034['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x57897a{['afterInit'](){const _0x4edbf2=this['editor'];if(!_0x4edbf2['plugins']['has']('RemoveFormatEditing'))return;_0x4edbf2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff390=this['editor'];_0x4ff390['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fc23b=>{if('formatBlock'!=_0x4fc23b['type']&&'formatInline'!=_0x4fc23b['type'])return;const {data:_0x3471fa}=_0x4fc23b;return _0x3471fa&&'removeFormat'==_0x3471fa['commandName']?{'type':'format','content':o(_0x4ff390['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x57897a{['afterInit'](){const _0x26e738=this['editor'];if(!_0x26e738['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x504966=_0x26e738['plugins']['get']('TrackChangesEditing');_0x504966['enableCommand']('goToPreviousRestrictedEditingException'),_0x504966['enableCommand']('goToNextRestrictedEditingException');const _0x33d672=_0x26e738['plugins']['get']('RestrictedEditingModeEditing');_0x33d672['enableCommand']('trackChanges'),_0x33d672['enableCommand']('acceptSuggestion'),_0x33d672['enableCommand']('discardSuggestion'),_0x33d672['enableCommand']('acceptAllSuggestions'),_0x33d672['enableCommand']('discardAllSuggestions'),_0x33d672['enableCommand']('acceptSelectedSuggestions'),_0x33d672['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x57897a{['afterInit'](){const _0x418804=this['editor'];if(!_0x418804['plugins']['has']('ShiftEnter'))return;const _0x5764cc=_0x418804['plugins']['get']('TrackChangesEditing');_0x5764cc['enableCommand']('shiftEnter'),_0x5764cc['descriptionFactory']['registerElementLabel']('softBreak',_0x5b7fe1=>o(_0x418804['locale'],'ELEMENT_LINE_BREAK',_0x5b7fe1));}}function rn(_0x135b9b,_0x164fc2,_0x2c616a){const _0x430841=[];for(const _0x22bc0e of _0x164fc2['getItems']())_0x22bc0e['hasAttribute'](_0x135b9b)&&_0x430841['push'](_0x2c616a['createRangeOn'](_0x22bc0e));return _0x430841;}class $t extends _0x57897a{['afterInit'](){const _0x200a29=this['editor'],_0x1bbef5=_0x200a29['plugins']['get']('TrackChangesEditing');_0x200a29['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1bbef5['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5e9a96=this['editor'],_0x55758e=_0x5e9a96['model'],_0x4e7e6=_0x5e9a96['locale'],_0x4bdf5d=_0x5e9a96['plugins']['get']('TrackChangesEditing'),_0x4201b9='restrictedEditingException',_0x328778=_0x5e9a96['commands']['get'](_0x4201b9);_0x4bdf5d['enableCommand'](_0x4201b9,(_0x4b1ca5,_0x591829={})=>{const _0x4dab8a=_0x55758e['document']['selection'];if(_0x4dab8a['isCollapsed'])return void _0x4b1ca5(_0x591829);const _0x4547a7=void 0x0!==_0x591829['forceValue']?_0x591829['forceValue']:!_0x328778['value'];_0x55758e['change'](()=>{const _0x4330df=Array['from'](_0x4dab8a['getRanges']());for(const _0x5243b8 of _0x4330df){const _0x29c3cd=_0x4547a7?[_0x5243b8]:rn(_0x4201b9,_0x5243b8,_0x55758e);for(const _0x29abd7 of _0x29c3cd)_0x4bdf5d['markInlineFormat'](_0x29abd7,{'commandName':_0x4201b9,'commandParams':[{'forceValue':_0x4547a7}]});}});}),_0x4bdf5d['descriptionFactory']['registerDescriptionCallback'](_0x316603=>{if('formatBlock'!=_0x316603['type']&&'formatInline'!=_0x316603['type'])return;const {data:_0x18eda6}=_0x316603;return _0x18eda6&&_0x18eda6['commandName']==_0x4201b9?_0x18eda6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e7e6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e7e6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x85745=this['editor'],_0x1fec1a=_0x85745['locale'],_0x3246fa=_0x85745['plugins']['get']('TrackChangesEditing'),_0x382041='restrictedEditingExceptionBlock',_0x328245=this['editor']['commands']['get'](_0x382041);_0x3246fa['enableCommand'](_0x382041,(_0x160731,_0x319756={})=>{const _0x32174e=this['editor']['model']['document']['selection'],_0x56e3fe=_0x319756&&void 0x0!==_0x319756['forceValue']?_0x319756['forceValue']:!_0x328245['value'];let _0x21387c=[];if(_0x56e3fe){const _0x5e9183=Array['from'](_0x32174e['getSelectedBlocks']())['filter'](_0x3cf522=>function(_0x306fe3){return!!_0x306fe3['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3cf522)||function(_0x4ba312,_0x4090f1){const _0x15be1a=_0x4090f1['createContext'](_0x4ba312['parent']);if(!_0x4090f1['checkChild'](_0x15be1a,'restrictedEditingException'))return!0x1;if(!_0x4090f1['checkChild'](_0x15be1a['push']('restrictedEditingException'),_0x4ba312))return!0x1;return!0x0;}(_0x3cf522,this['editor']['model']['schema']));_0x21387c=to(_0x5e9183,_0x85745['model']);}else{const _0x1d0120=Array['from'](_0x32174e['getSelectedBlocks']())['map'](_0x4e8ceb=>function(_0x1806ac){let _0x47eec3=_0x1806ac;for(;_0x47eec3['parent'];){if('restrictedEditingException'==_0x47eec3['parent']['name'])return _0x47eec3;_0x47eec3=_0x47eec3['parent'];}return null;}(_0x4e8ceb))['filter'](_0x56d869=>!!_0x56d869);_0x21387c=to(_0x1d0120,_0x85745['model']);}_0x85745['model']['change'](()=>{for(const _0x2b3373 of _0x21387c)_0x3246fa['markBlockFormat'](_0x2b3373,{'commandName':_0x382041,'commandParams':[{'forceValue':_0x56e3fe}]});});}),_0x3246fa['descriptionFactory']['registerDescriptionCallback'](_0x35f4c2=>{const {data:_0x23db8f}=_0x35f4c2;if(_0x23db8f&&_0x23db8f['commandName']==_0x382041)return _0x23db8f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fec1a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1fec1a,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x57897a{['afterInit'](){const _0x581ca6=this['editor'];if(!_0x581ca6['plugins']['has']('Style')||!_0x581ca6['plugins']['has']('DataSchema'))return;const _0x5e3dbf=_0x581ca6['plugins']['get']('TrackChangesEditing'),_0x26cf93=_0x581ca6['locale'],_0x495a10=_0x581ca6['config']['get']('style')||{},_0x5c36d5=_0x581ca6['plugins']['get']('GeneralHtmlSupport'),_0x4270f0=_0x581ca6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x581ca6['plugins']['get']('DataSchema'),_0x495a10['definitions']);_0x5e3dbf['enableDefaultAttributesIntegration']('style');const _0x539ab2=new Set();for(const _0x216119 of _0x4270f0['block']){const _0xeec746=_0x5c36d5['getGhsAttributeNameForElement'](_0x216119['element']);_0x539ab2['add'](_0xeec746);}const _0x348d33=new Set();for(const _0x271e94 of _0x4270f0['inline']){const _0x204be3=_0x5c36d5['getGhsAttributeNameForElement'](_0x271e94['element']);_0x348d33['add'](_0x204be3);for(const _0x454c7b of _0x271e94['ghsAttributes'])_0x348d33['add'](_0x454c7b);}for(const _0x2f02f2 of _0x539ab2)_0x5e3dbf['descriptionFactory']['registerAttributeLabel'](_0x2f02f2,o(_0x26cf93,'FORMAT_STYLE'));for(const _0x2cb0b8 of _0x348d33)_0x5e3dbf['descriptionFactory']['registerAttributeLabel'](_0x2cb0b8,o(_0x26cf93,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x221382=this['editor'],_0x414d7a=_0x221382['locale'];_0x221382['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7b1a=>{if('formatBlock'!=_0x2e7b1a['type']&&'formatInline'!=_0x2e7b1a['type'])return;const {data:_0x4affa3}=_0x2e7b1a;return _0x4affa3&&'style'===_0x4affa3['commandName']?_0x4affa3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x414d7a,'*Set\x20format:*\x20%0',_0x4affa3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x414d7a,'*Remove\x20format:*\x20%0',_0x4affa3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x57897a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x589c90){super(_0x589c90),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5623a5=this['editor'],_0x4d136b=_0x5623a5['model']['document']['selection'];if(!_0x5623a5['plugins']['has']('TableEditing'))return;const _0x339b90=_0x5623a5['locale'],_0x46c560=_0x5623a5['plugins']['get']('TrackChangesEditing'),_0x1525a8=_0x5623a5['plugins']['get']('TableUtils');_0x46c560['descriptionFactory']['registerElementLabel']('table',_0x47ec68=>o(_0x339b90,'ELEMENT_TABLE',_0x47ec68)),this['_setupColumnsRowsFixing'](),_0x46c560['enableCommand']('insertTable'),_0x46c560['enableCommand']('selectTableRow'),_0x46c560['enableCommand']('selectTableColumn');for(const _0x1448f7 of['insertTableRowAbove','insertTableRowBelow']){const _0x3aea78=_0x5623a5['commands']['get'](_0x1448f7);_0x46c560['enableCommand'](_0x1448f7,_0x56838b=>{_0x5623a5['model']['change'](_0x487630=>{_0x56838b();const _0x395f50='above'===_0x3aea78['order'],_0x462415=_0x1525a8['getSelectionAffectedTableCells'](_0x4d136b),_0x4cc1a7=_0x1525a8['getRowIndexes'](_0x462415),_0x509e78=_0x395f50?_0x4cc1a7['first']-0x1:_0x4cc1a7['last']+0x1,_0x175918=_0x462415[0x0]['findAncestor']('table'),_0x2f5ac5=_0x1525a8['createTableWalker'](_0x175918,{'startRow':_0x509e78,'endRow':_0x509e78}),_0x65c1d2=Array['from'](_0x2f5ac5)['map'](_0xff3019=>_0x487630['createRangeOn'](_0xff3019['cell']));_0x46c560['markMultiRangeInsertion'](_0x65c1d2,'tableRow');});});}for(const _0x143401 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3cc5b8=_0x5623a5['commands']['get'](_0x143401);_0x46c560['enableCommand'](_0x143401,_0x303a65=>{_0x5623a5['model']['change'](_0x2d1091=>{_0x303a65();const _0x41a703='left'===_0x3cc5b8['order'],_0x35e051=_0x1525a8['getSelectionAffectedTableCells'](_0x4d136b),_0x2324ee=_0x1525a8['getColumnIndexes'](_0x35e051),_0x2d0293=_0x41a703?_0x2324ee['first']-0x1:_0x2324ee['last']+0x1,_0x101d19=_0x35e051[0x0]['findAncestor']('table'),_0x2a8058=_0x1525a8['createTableWalker'](_0x101d19,{'startRow':0x0,'column':_0x2d0293,'includeAllSlots':!0x1}),_0x38c501=Array['from'](_0x2a8058)['map'](_0x1881ba=>_0x2d1091['createRangeOn'](_0x1881ba['cell']));_0x46c560['markMultiRangeInsertion'](_0x38c501,'tableColumn');});});}for(const _0x5bb6e3 of['removeTableRow','removeTableColumn']){const _0x24f433=_0x5bb6e3['substr'](0xb),_0x2cadf3=_0x24f433['toLowerCase'](),_0x2ba150=_0x2cadf3['substr'](0x0,0x3)+'span',_0x1d9c84='table'+_0x24f433,_0x17df34='min'+_0x24f433,_0x4b9332='max'+_0x24f433;_0x46c560['enableCommand'](_0x5bb6e3,()=>{_0x5623a5['model']['change'](_0x573f00=>{const _0x28cbff=_0x1525a8['getSelectionAffectedTableCells'](_0x4d136b),_0x16e3ed=_0x28cbff[0x0]['findAncestor']('table');let _0x4c4f0b;if('removeTableRow'==_0x5bb6e3){const _0xa903a2=_0x1525a8['getRowIndexes'](_0x28cbff);_0x4c4f0b={'startRow':_0xa903a2['first'],'endRow':_0xa903a2['last'],'includeAllSlots':!0x0};}else{const _0x11768a=_0x1525a8['getColumnIndexes'](_0x28cbff);_0x4c4f0b={'startColumn':_0x11768a['first'],'endColumn':_0x11768a['last'],'includeAllSlots':!0x0};}const _0x53607c=_0x1525a8['createTableWalker'](_0x16e3ed,_0x4c4f0b),_0x2c10a8=Array['from'](_0x53607c)['map'](({cell:_0x38bab1})=>_0x38bab1),_0x768a97=_e(_0x2c10a8['filter'](_0x5a4adc=>_0x5a4adc['hasAttribute'](_0x2ba150))),_0x34fd94=_e(_0x2c10a8['filter'](_0x38d882=>!_0x38d882['hasAttribute'](_0x2ba150)))['map'](_0x10ec7b=>_0x573f00['createRangeOn'](_0x10ec7b)),_0x36ce4b=_0x46c560['markMultiRangeDeletion'](_0x34fd94,_0x1d9c84);if(_0x36ce4b&&('tableRow'==_0x36ce4b['subType']||'tableColumn'==_0x36ce4b['subType'])){const _0x164243=this['_getSuggestionCoords'](_0x36ce4b);for(const _0x21dc38 of _0x768a97){const _0x3f60f6=_0x573f00['createRangeOn'](_0x21dc38),_0x1816c4=_0x1525a8['getCellLocation'](_0x21dc38),_0x59b752=_0x21dc38['getAttribute'](_0x2ba150)-0x1,_0x4349cd=_0x164243[_0x17df34],_0x4a6d6c=_0x164243[_0x4b9332];_0x4349cd<=_0x1816c4[_0x2cadf3]&&_0x1816c4[_0x2cadf3]+_0x59b752<=_0x4a6d6c&&_0x36ce4b['addRange'](_0x3f60f6);}}});});}function _0x4d6dfc(_0x493e20){const _0x4c2a0e=Array['from'](_0x4d136b['getRanges']())['map'](_0x30736c=>_0x110c0b['fromRange'](_0x30736c));_0x5623a5['model']['change'](_0x2b1e31=>{const _0x162ab3=_0x2b1e31['batch'];_0x493e20=_0x493e20['filter'](_0x47a567=>'$graveyard'!=_0x47a567['root']['rootName']),_0x2b1e31['setSelection'](_0x493e20),_0x5623a5['commands']['get']('removeTableRow')['refresh'](),_0x5623a5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5623a5['model']['enqueueChange'](()=>{_0x5623a5['model']['enqueueChange'](_0x162ab3,_0x908c68=>{const _0x1a2f1e=_0x4c2a0e['filter'](_0x3d6c0e=>'$graveyard'!=_0x3d6c0e['root']['rootName']);_0x1a2f1e['length']>0x0&&_0x908c68['setSelection'](_0x1a2f1e);for(const _0x3c0566 of _0x4c2a0e)_0x3c0566['detach']();});});});}function _0x42de03(_0xeb8895){_0x5623a5['model']['change'](_0x34b93c=>{const _0x2b6ddf=Array['from'](_0x4d136b['getRanges']())['map'](_0x331e17=>_0x110c0b['fromRange'](_0x331e17)),_0x13d47e=[];for(const _0x3f0792 of _0xeb8895)for(const _0x4b0b2e of _0x3f0792['getItems']({'shallow':!0x0}))_0x13d47e['push'](_0x4b0b2e);for(const _0x2a6d1a of _0x13d47e)'$graveyard'!=_0x2a6d1a['root']['rootName']&&(_0x34b93c['setSelection'](_0x34b93c['createPositionAt'](_0x2a6d1a,0x0)),_0x5623a5['commands']['get']('removeTableColumn')['refresh'](),_0x5623a5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d4375=_0x2b6ddf['filter'](_0xbb8e55=>'$graveyard'!=_0xbb8e55['root']['rootName']);_0x5d4375['length']>0x0&&_0x34b93c['setSelection'](_0x5d4375);for(const _0xb6eec8 of _0x2b6ddf)_0xb6eec8['detach']();});}function _0x21ea0f(_0x54d647,_0x5542fe){return _0x5542fe['every'](_0x468eed=>_0x54d647['some'](_0x505f8c=>_0x505f8c['end']['isEqual'](_0x468eed['start'])||_0x468eed['end']['isEqual'](_0x505f8c['start'])));}function _0x5abe22(_0x1c0e29,_0x89fbdf){return!_0x1c0e29['some'](_0x369471=>_0x89fbdf['some'](_0x532d23=>_0x369471['isIntersecting'](_0x532d23)))&&_0x1c0e29['some'](_0x46b5e0=>_0x89fbdf['some'](_0x17b391=>_0x46b5e0['end']['isTouching'](_0x17b391['start'])));}_0x46c560['descriptionFactory']['registerDescriptionCallback'](_0x53e30d=>{if('insertion'!=_0x53e30d['type']&&'deletion'!=_0x53e30d['type'])return;const _0x4a961a=_0x53e30d['getContainedElement']();if(null!=_0x4a961a&&_0x4a961a['is']('element','table')){if('insertion'==_0x53e30d['type']){const _0x25b341=_0x53e30d['getItems']()['filter'](_0x311f88=>_0x311f88['is']('$textProxy'))['map'](_0xd3a71c=>_0xd3a71c['data']);if(_0x25b341['length'])return{'type':'insertion','content':o(_0x339b90,'*Insert:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25b341['join']('\x20')+'\x22'))};}if('deletion'==_0x53e30d['type']){const _0x3365f8=_0x53e30d['getItems']()['filter'](_0x4818d8=>_0x4818d8['is']('$textProxy'))['map'](_0xf6aec8=>_0xf6aec8['data']);if(_0x3365f8['length'])return{'type':'deletion','content':o(_0x339b90,'*Remove:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3365f8['join']('\x20')+'\x22'))};}}}),_0x46c560['descriptionFactory']['registerDescriptionCallback'](_0x3bcfb8=>{if('tableRow'==_0x3bcfb8['subType']){const _0x5a8979=_0x3bcfb8['getItems']()['filter'](_0x3d10a6=>_0x3d10a6['is']('$textProxy'))['map'](_0x1c69d2=>_0x1c69d2['data']),_0xd3f33b=this['_getSuggestionCoords'](_0x3bcfb8),_0x2d8ef6=_0xd3f33b['maxRow']-_0xd3f33b['minRow']+0x1;if('insertion'==_0x3bcfb8['type'])return _0x5a8979['length']?{'type':'insertion','content':o(_0x339b90,'*Insert:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2d8ef6,'\x22'+_0x5a8979['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x339b90,'*Insert:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_ROW',_0x2d8ef6))};if('deletion'==_0x3bcfb8['type'])return _0x5a8979['length']?{'type':'deletion','content':o(_0x339b90,'*Remove:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2d8ef6,'\x22'+_0x5a8979['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x339b90,'*Remove:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_ROW',_0x2d8ef6))};}if('tableColumn'==_0x3bcfb8['subType']){const _0x1106ab=_0x3bcfb8['getItems']()['filter'](_0x34a28f=>_0x34a28f['is']('$textProxy'))['map'](_0x4086bf=>_0x4086bf['data']),_0x9a2c01=this['_getSuggestionCoords'](_0x3bcfb8),_0x15ff3c=_0x9a2c01['maxColumn']-_0x9a2c01['minColumn']+0x1;if('insertion'==_0x3bcfb8['type'])return _0x1106ab['length']?{'type':'insertion','content':o(_0x339b90,'*Insert:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15ff3c,'\x22'+_0x1106ab['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x339b90,'*Insert:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_COLUMN',_0x15ff3c))};if('deletion'==_0x3bcfb8['type'])return _0x1106ab['length']?{'type':'deletion','content':o(_0x339b90,'*Remove:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15ff3c,'\x22'+_0x1106ab['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x339b90,'*Remove:*\x20%0',o(_0x339b90,'ELEMENT_TABLE_COLUMN',_0x15ff3c))};}}),_0x46c560['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d6dfc),_0x46c560['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d6dfc),_0x46c560['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42de03),_0x46c560['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42de03),_0x46c560['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21ea0f),_0x46c560['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21ea0f),_0x46c560['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5abe22),_0x46c560['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5abe22);}['_acceptFormatSuggestionCallbackFactory'](){const _0x78c245=this['editor'],_0x3f4764=_0x78c245['model']['document']['selection'];return(_0x24cfac,_0x18bbb9)=>{_0x78c245['model']['change'](_0xe2964e=>{const {commandName:_0x37b225,commandParams:_0x511e98}=_0x18bbb9;let _0x5476a8=_0x24cfac[0x0]['end']['nodeBefore'];_0x511e98&&_0x511e98[0x0]&&!0x1===_0x511e98[0x0]['forceValue']&&(_0x5476a8=_0x24cfac[0x0]['start']['nodeAfter']);const _0x5de548=_0xe2964e['createRangeIn'](_0x5476a8);if('$graveyard'==_0x5de548['root']['rootName'])return;const _0x2d53ae=Array['from'](_0x3f4764['getRanges']())['map'](_0x4e4fec=>_0x110c0b['fromRange'](_0x4e4fec));_0xe2964e['setSelection'](_0x5de548),_0x78c245['commands']['get'](_0x37b225)['refresh'](),_0x511e98['push']({'forceDefaultExecution':!0x0}),_0x78c245['execute'](_0x37b225,..._0x511e98);const _0x3ec7f5=_0x2d53ae['filter'](_0x2977f3=>'$graveyard'!=_0x2977f3['root']['rootName']);_0x3ec7f5['length']>0x0&&_0xe2964e['setSelection'](_0x3ec7f5);for(const _0x37b862 of _0x2d53ae)_0x37b862['detach']();});};}['_getCoordsForCells'](_0x9f1f80){const _0x11702d=this['editor']['plugins']['get']('TableUtils');let _0x30a0a7=Number['MAX_SAFE_INTEGER'],_0xd5f4d8=Number['MIN_SAFE_INTEGER'],_0x31beef=Number['MAX_SAFE_INTEGER'],_0x3802bd=Number['MIN_SAFE_INTEGER'];for(const _0x29cf3b of _0x9f1f80){if('$graveyard'==_0x29cf3b['root']['rootName'])continue;const {row:_0x4ffdbc,column:_0x40d7f8}=_0x11702d['getCellLocation'](_0x29cf3b),_0x5cdc42=_0x29cf3b['hasAttribute']('rowspan')?_0x29cf3b['getAttribute']('rowspan')-0x1:0x0,_0xf93c17=_0x29cf3b['hasAttribute']('colspan')?_0x29cf3b['getAttribute']('colspan')-0x1:0x0;_0x30a0a7=_0x4ffdbc<_0x30a0a7?_0x4ffdbc:_0x30a0a7,_0xd5f4d8=_0x4ffdbc+_0x5cdc42>_0xd5f4d8?_0x4ffdbc+_0x5cdc42:_0xd5f4d8,_0x31beef=_0x40d7f8<_0x31beef?_0x40d7f8:_0x31beef,_0x3802bd=_0x40d7f8+_0xf93c17>_0x3802bd?_0x40d7f8+_0xf93c17:_0x3802bd;}return{'minRow':_0x30a0a7,'maxRow':_0xd5f4d8,'minColumn':_0x31beef,'maxColumn':_0x3802bd};}['_setupColumnsRowsFixing'](){const _0x1b2a37=this['editor'],_0xdfb50=_0x1b2a37['plugins']['get']('TrackChangesEditing'),_0x5ee227=_0x1b2a37['plugins']['get']('TableUtils');_0x1b2a37['model']['document']['on']('change:data',()=>{const _0x1075f0=Array['from'](_0x1b2a37['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45df16,data:_0x207e3b}of _0x1075f0){const {group:_0x4c9a10,id:_0x3bf062,subType:_0x28ec96}=_0xdfb50['_splitMarkerName'](_0x45df16);if('suggestion'!=_0x4c9a10)continue;if(null!=_0x207e3b['oldRange'])continue;const _0x21137f=_0xdfb50['getSuggestion'](_0x3bf062);this['_tablePostFixingSubtypes']['includes'](_0x28ec96)&&this['_tableSuggestions']['add'](_0x21137f);}},{'priority':'low'});const _0x29a212=(_0x509963,_0x1915ab)=>{let _0x5c0f5b=!0x1;const _0x4286a0=_0x1915ab['createRangeOn'](_0x509963),_0x492c45=_0x509963['findAncestor']('table'),_0x224657=_0x5ee227['getCellLocation'](_0x509963);for(const _0x412887 of this['_tableSuggestions']){const _0x58cc83=_0x412887['subType'],_0x3f9f47=_0x58cc83['startsWith']('tablePaste'),_0x4ebe69=_0x58cc83['substr'](_0x3f9f47?0xa:0x5),_0x373d0a=_0x4ebe69['toLowerCase'](),_0x21805=_0x373d0a['substr'](0x0,0x3)+'span',_0x491466='min'+_0x4ebe69,_0x5006f7='max'+_0x4ebe69;if(!_0x412887['isInContent'])continue;if(_0x492c45!=_0x412887['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x412887['isIntersectingWithRange'](_0x4286a0))continue;const _0x468be7=_0x509963['hasAttribute'](_0x21805)?_0x509963['getAttribute'](_0x21805)-0x1:0x0,_0x1dcc9c=this['_getSuggestionCoords'](_0x412887),_0x4b1dbd=_0x1dcc9c[_0x491466],_0x2ca8c4=_0x1dcc9c[_0x5006f7];_0x4b1dbd<=_0x224657[_0x373d0a]&&_0x224657[_0x373d0a]+_0x468be7<=_0x2ca8c4&&(_0x412887['addRange'](_0x4286a0),_0x5c0f5b=!0x0);}return _0x5c0f5b;};_0x1b2a37['model']['document']['registerPostFixer'](_0x5c252b=>{let _0x132dcf=!0x1;for(const _0x26bb9c of _0x1b2a37['model']['document']['differ']['getChanges']())if('insert'==_0x26bb9c['type']){if('tableRow'==_0x26bb9c['name']){for(const _0x4bcc2b of _0x26bb9c['position']['nodeAfter']['getChildren']())_0x132dcf=_0x132dcf||_0x29a212(_0x4bcc2b,_0x5c252b);}else'tableCell'==_0x26bb9c['name']&&(_0x132dcf=_0x132dcf||_0x29a212(_0x26bb9c['position']['nodeAfter'],_0x5c252b));}return _0x132dcf;});}['_getSuggestionCoords'](_0x4218e6){return this['_getCoordsForCells'](_0x4218e6['getRanges']()['map'](_0x25c3eb=>_0x25c3eb['start']['nodeAfter']));}}function _e(_0x306a3d){return Array['from'](new Set(_0x306a3d)['values']());}class Bt extends _0x57897a{static get['requires'](){return[Dt];}['afterInit'](){const _0x55b34d=this['editor'],_0x53e9c4=_0x55b34d['model']['document']['selection'],_0x22efd7=_0x55b34d['locale'];if(!_0x55b34d['plugins']['has']('TableEditing'))return;const _0x171798=_0x55b34d['plugins']['get']('TrackChangesEditing'),_0x389d33=_0x55b34d['plugins']['get']('TableUtils'),_0x39d6e1=_0x55b34d['plugins']['get'](Dt);_0x39d6e1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x171798['enableCommand']('mergeTableCells',()=>{const _0x9e8ba5=_0x389d33['getSelectionAffectedTableCells'](_0x55b34d['model']['document']['selection']);_0x55b34d['model']['change'](()=>{_0x171798['markMultiRangeBlockFormat'](_0x9e8ba5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55b34d['commands']['get']('mergeTableCells')['on']('execute',(_0x38ec5a,_0x31ad86)=>{_0x55b34d['commands']['get']('trackChanges')['value']&&(_0x31ad86['length']>0x0&&_0x31ad86[_0x31ad86['length']-0x1]&&_0x31ad86[_0x31ad86['length']-0x1]['forceDefaultExecution']||_0x171798['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x38ec5a['stop']());},{'priority':'highest'});for(const _0x456e88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1af0c1=_0x55b34d['commands']['get'](_0x456e88);_0x171798['enableCommand'](_0x456e88,()=>{const _0x250b8a=_0x55b34d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x245b44=>_0x245b44['is']('element','tableCell')),_0x225f3e=_0x1af0c1['value'];_0x55b34d['model']['change'](()=>{_0x171798['markMultiRangeBlockFormat']([_0x250b8a,_0x225f3e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2f8086 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14590a=_0x55b34d['commands']['get'](_0x2f8086);_0x171798['enableCommand'](_0x2f8086,()=>{const _0x45ebeb=_0x389d33['getSelectionAffectedTableCells'](_0x55b34d['model']['document']['selection'])[0x0],_0x24fac1=_0x45ebeb['findAncestor']('table'),{column:_0x1c7373,row:_0x146b9b}=_0x389d33['getCellLocation'](_0x45ebeb);let _0x4427fb=[];if('horizontally'==_0x14590a['direction']){const _0x6cf78=_0x389d33['createTableWalker'](_0x24fac1,{'startRow':_0x146b9b,'endRow':_0x146b9b,'includeAllSlots':!0x0});_0x4427fb=Array['from'](_0x6cf78)['map'](_0x109324=>_0x109324['cell']);}else{const _0x41017e=_0x389d33['createTableWalker'](_0x24fac1,{'column':_0x1c7373,'includeAllSlots':!0x0});_0x4427fb=Array['from'](_0x41017e)['map'](_0x404ece=>_0x404ece['cell']);}_0x55b34d['model']['change'](_0x17900d=>{_0x171798['markBlockFormat'](_0x17900d['createRangeOn'](_0x45ebeb),{'commandName':_0x2f8086,'commandParams':[]},_0x4427fb,_0x2f8086);});});}_0x171798['descriptionFactory']['registerDescriptionCallback'](_0x30936b=>{if('formatBlock'!=_0x30936b['type']&&'formatInline'!=_0x30936b['type'])return;const {data:_0x3bfc77}=_0x30936b;return _0x3bfc77&&'mergeTableCells'==_0x3bfc77['commandName']?{'type':'format','content':o(_0x22efd7,'*Merge\x20cells*')}:void 0x0;}),_0x171798['descriptionFactory']['registerDescriptionCallback'](_0x2f5f25=>{if('formatBlock'!=_0x2f5f25['type']&&'formatInline'!=_0x2f5f25['type'])return;const {data:_0x5264bd}=_0x2f5f25;return _0x5264bd?'splitTableCellVertically'==_0x5264bd['commandName']?{'type':'format','content':o(_0x22efd7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5264bd['commandName']?{'type':'format','content':o(_0x22efd7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x533a71=_0x39d6e1['_acceptFormatSuggestionCallbackFactory']();for(const _0x265784 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x171798['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x265784,'accept',_0x533a71);for(const _0x1925d8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x171798['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1925d8,'accept',_0x533a71);_0x171798['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1f602b=>{_0x55b34d['model']['change'](_0x2be91e=>{const _0x42c316=Array['from'](_0x53e9c4['getRanges']())['map'](_0x3b2a43=>_0x110c0b['fromRange'](_0x3b2a43));_0x2be91e['setSelection'](_0x1f602b),_0x55b34d['commands']['get']('mergeTableCells')['refresh'](),_0x55b34d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b3764=_0x42c316['filter'](_0xe209d6=>'$graveyard'!=_0xe209d6['root']['rootName']);_0x1b3764['length']>0x0&&_0x2be91e['setSelection'](_0x1b3764);for(const _0x10c40f of _0x42c316)_0x10c40f['detach']();});});for(const _0x28aa21 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x44b838=_0x55b34d['commands']['get'](_0x28aa21);_0x44b838['on']('set:isEnabled',(_0x38f93d,_0x2bc617,_0x4ad45c)=>{if(_0x4ad45c){const _0x140df8=_0x55b34d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe3d407=>_0xe3d407['is']('element','tableCell'));this['_areMergableCells'](_0x44b838['value'],_0x140df8)||(_0x38f93d['return']=!0x1,_0x38f93d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x95e1fc=this['editor']['commands']['get']('mergeTableCells'),_0x915c03=this['editor']['plugins']['get']('TableUtils');if(!_0x95e1fc['isEnabled'])return!0x1;const _0x4e057c=_0x915c03['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1eab9a of _0x4e057c)for(const _0x3267d6 of _0x4e057c)if(_0x1eab9a!=_0x3267d6&&!this['_areMergableCells'](_0x1eab9a,_0x3267d6))return!0x1;return!0x0;}['_areMergableCells'](_0x2f88c4,_0x1b83ea){const _0x31edb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29dc5b=this['editor']['model']['createRangeOn'](_0x2f88c4),_0x1d278a=this['editor']['model']['createRangeOn'](_0x1b83ea),_0x3f9224=new Set(),_0x247a35=new Set();for(const _0x194033 of _0x31edb3['getSuggestions']())if(('insertion'==_0x194033['type']||'deletion'==_0x194033['type']||'mergeTableCells'==_0x194033['subType'])&&_0x194033['isInContent']){for(const _0x56d21e of _0x194033['getRanges']())_0x56d21e['containsRange'](_0x29dc5b,!0x0)&&_0x3f9224['add'](_0x194033['type']+':'+_0x194033['author']['id']),_0x56d21e['containsRange'](_0x1d278a,!0x0)&&_0x247a35['add'](_0x194033['type']+':'+_0x194033['author']['id']);}if(_0x3f9224['size']!=_0x247a35['size'])return!0x1;for(const _0x421324 of _0x3f9224)if(!_0x247a35['has'](_0x421324))return!0x1;return!0x0;}}class Ot extends _0x57897a{static get['requires'](){return[Dt];}['afterInit'](){const _0x28b91b=this['editor'];if(!_0x28b91b['plugins']['has']('TableEditing'))return;const _0x3e61aa=_0x28b91b['locale'],_0x57f15=_0x28b91b['plugins']['get']('TrackChangesEditing');_0x57f15['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f15['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f15['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3e61aa,'FORMAT_HEADER_ROW')),_0x57f15['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3e61aa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5aae4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224d5a=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x5aae4d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x224d5a),_0x5aae4d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x224d5a),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x370daf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bab46=this['editor']['plugins']['get']('TableUtils');function _0x35dadf({showActiveMarker:_0x2703d7=!0x0,setDataAttribute:_0x43456f=!0x0}={}){return(_0x214ad2,_0x18d110,_0x5ad58e)=>{const {type:_0x24c326,id:_0x586625}=_0x370daf['_splitMarkerName'](_0x18d110['markerName']);if(!_0x370daf['hasSuggestion'](_0x586625))return;const _0x20f7b9=_0x370daf['getSuggestion'](_0x586625),_0x1939ad=_0x20f7b9['data'];if('formatBlock'!=_0x20f7b9['type']||!_0x1939ad||'setTableColumnHeader'!=_0x1939ad['commandName'])return;if(_0x18d110['item'])return void _0x214ad2['stop']();if(!_0x5ad58e['consumable']['consume'](_0x18d110['markerRange'],_0x214ad2['name']))return;const _0x26b958=_0x18d110['markerRange']['start']['nodeAfter'],_0x332506=_0x18d110['markerRange']['end']['nodeBefore'],_0x515e02=_0x26b958['parent']['parent'],{column:_0x4e353f}=_0x4bab46['getCellLocation'](_0x26b958),{column:_0x39dfda}=_0x4bab46['getCellLocation'](_0x332506);for(let _0x5242da=_0x4e353f;_0x5242da<=_0x39dfda;_0x5242da++){const _0xfc340b=_0x4bab46['createTableWalker'](_0x515e02,{'column':_0x5242da,'includeAllSlots':!0x1});for(const _0x32e3f1 of _0xfc340b){const _0x2d3a99=_0x32e3f1['cell'],_0x52e9b7=_0x5ad58e['mapper']['toViewElement'](_0x2d3a99);_0x5ad58e['writer']['addClass']('ck-suggestion-marker-'+_0x24c326,_0x52e9b7),_0x43456f&&_0x5ad58e['writer']['setAttribute']('data-suggestion',_0x586625,_0x52e9b7),_0x5ad58e['mapper']['bindElementToMarker'](_0x52e9b7,_0x18d110['markerName']),_0x2703d7&&(_0x370daf['activeMarkers']['includes'](_0x18d110['markerName'])?_0x5ad58e['writer']['addClass']('ck-suggestion-marker--active',_0x52e9b7):_0x5ad58e['writer']['removeClass']('ck-suggestion-marker--active',_0x52e9b7));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35dadf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c6c5b,_0x7e1fdf,_0x5da887)=>{_0x5da887['options']['showSuggestionHighlights']&&_0x35dadf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1c6c5b,_0x7e1fdf,_0x5da887);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x6c6dce,_0x2a8455,_0x7df0d4)=>{const {type:_0x3e5864,id:_0x5c92b6}=_0x370daf['_splitMarkerName'](_0x2a8455['markerName']);if(!_0x370daf['hasSuggestion'](_0x5c92b6))return;const _0x5a9300=_0x370daf['getSuggestion'](_0x5c92b6),_0x4fa280=_0x5a9300['data'];if('formatBlock'!=_0x5a9300['type']||!_0x4fa280||'setTableColumnHeader'!=_0x4fa280['commandName'])return;const _0x375501=_0x7df0d4['mapper']['markerNameToElements'](_0x2a8455['markerName']);if(_0x375501){for(const _0x1c9ca7 of _0x375501)_0x7df0d4['writer']['removeClass']('ck-suggestion-marker-'+_0x3e5864,_0x1c9ca7),_0x7df0d4['writer']['removeClass']('ck-suggestion-marker--active',_0x1c9ca7),_0x7df0d4['writer']['removeAttribute']('data-suggestion',_0x1c9ca7),_0x7df0d4['mapper']['unbindElementFromMarkerName'](_0x1c9ca7,_0x2a8455['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x223342=this['editor'],_0x15e358=_0x223342['locale'];function _0x3d8e64(_0x390b6e){return{'type':'format','content':o(_0x15e358,'*Format:*\x20%0',_0x390b6e)};}_0x223342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f253=>{if('formatBlock'!=_0x18f253['type'])return;const {data:_0x20ed79}=_0x18f253;if(_0x20ed79){if('setTableRowHeader'==_0x20ed79['commandName']){const _0x1cb5b2=_0x20ed79['commandParams'][0x0]['forceValue'];return _0x3d8e64(o(_0x15e358,_0x1cb5b2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x20ed79['commandName']){const _0x15e22d=_0x20ed79['commandParams'][0x0]['forceValue'];return _0x3d8e64(o(_0x15e358,_0x15e22d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x57897a{['afterInit'](){const _0xaf39e8=this['editor'],_0x1c3af7=_0xaf39e8['locale'],_0x292453=_0xaf39e8['plugins']['get']('TrackChangesEditing');function _0x11530c(_0x54d5f3){return{'type':'format','content':''+o(_0x1c3af7,'*Set\x20table\x20type:*\x20%0',_0x54d5f3)};}_0xaf39e8['plugins']['has']('TableLayout')&&(_0x292453['enableCommand']('insertTableLayout'),_0x292453['enableDefaultAttributesIntegration']('tableType'),_0x292453['descriptionFactory']['registerElementLabel'](_0x483569=>_0x483569['is']('element','table')&&'layout'===_0x483569['getAttribute']('tableType'),_0x43840f=>o(_0x1c3af7,'ELEMENT_LAYOUT_TABLE',_0x43840f)),_0x292453['descriptionFactory']['registerDescriptionCallback'](_0x5589bb=>{const {data:_0x241758}=_0x5589bb;if(_0x241758&&'tableType'==_0x241758['key'])switch(_0x241758['newValue']){case'layout':return _0x11530c(o(_0x1c3af7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x11530c(o(_0x1c3af7,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x1d4971=>[_0x1d4971,null]));class Mt extends _0x57897a{static get['requires'](){return[Dt];}['afterInit'](){const _0x1a69f3=this['editor'];if(!_0x1a69f3['plugins']['has']('TableClipboard'))return;const _0x1c3157=_0x1a69f3['plugins']['get']('TrackChangesEditing'),_0x59a1de=_0x1a69f3['plugins']['get']('TableUtils'),_0x1244ed=_0x1a69f3['plugins']['get'](Dt),_0x5b2cf5=_0x1a69f3['plugins']['get']('TableClipboard'),_0x41c187=_0x1a69f3['plugins']['get']('TableSelection'),_0x207dec=_0x1a69f3['plugins']['get'](_0x23c23f);_0x1244ed['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1a69f3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1a69f3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d3c5e=null,_0x1f52c0=!0x1;_0x207dec['on']('contentInsertion',(_0x62b305,_0x78a2e0)=>{_0x1f52c0='paste'===_0x78a2e0['method'];}),_0x1a69f3['model']['on']('insertContent',(_0x12b669,_0x4113de)=>{if(!_0x1f52c0&&null===_0x41c187['getSelectedTableCells']())return;const [_0x3b6e8f,_0x5527ca]=_0x4113de,_0x463185=_0x4113de[_0x4113de['length']-0x1];_0x463185&&_0x463185['forceDefaultExecution']||_0x1c3157['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x327cd0,_0x4ffa03,_0x50a4e8,_0x2376cf,_0x41a08a){if(_0x4ffa03&&!_0x4ffa03['is']('documentSelection'))return!0x1;const _0x90f114=_0x41a08a['getTableIfOnlyTableInContent'](_0x327cd0,_0x50a4e8);if(!_0x90f114||!Oe(_0x90f114,void 0x0,_0x2376cf))return!0x1;const _0x42dffe=_0x2376cf['getSelectionAffectedTableCells'](_0x50a4e8['document']['selection']);if(!_0x42dffe['length'])return!0x1;const _0x26a4eb=_0x42dffe[0x0]['findAncestor']('table'),_0x1eff41=_0x2376cf['getRowIndexes'](_0x42dffe),_0x1c60d8=_0x2376cf['getColumnIndexes'](_0x42dffe),_0x53ed06={'startRow':_0x1eff41['first'],'endRow':_0x1eff41['last'],'startColumn':_0x1c60d8['first'],'endColumn':_0x1c60d8['last']};return 0x1==_0x42dffe['length']&&(_0x53ed06['endRow']+=_0x2376cf['getRows'](_0x90f114)-0x1,_0x53ed06['endColumn']+=_0x2376cf['getColumns'](_0x90f114)-0x1),Oe(_0x26a4eb,_0x53ed06,_0x2376cf);}(_0x3b6e8f,_0x5527ca,_0x1a69f3['model'],_0x59a1de,_0x5b2cf5)&&(_0x12b669['stop'](),_0x3d3c5e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a69f3['model']['change'](()=>{_0x1a69f3['model']['insertContent'](_0x4113de[0x0],_0x4113de[0x1],_0x4113de[0x2],{'forceDefaultExecution':!0x0});const _0x258455=_0x5ddf4e(),{rowInsertionRanges:_0x5b413a,columnInsertionRanges:_0x4eaf76,insertionRanges:_0x58496e,deletionRanges:_0x40c5b7,cells:_0x280842}=_0x3d3c5e;_0x5b413a['length']&&_0x1c3157['markMultiRangeInsertion'](_0x5b413a,'tablePasteRow',{'tablePasteChainId':_0x258455}),_0x4eaf76['length']&&_0x1c3157['markMultiRangeInsertion'](_0x4eaf76,'tablePasteColumn',{'tablePasteChainId':_0x258455}),_0x58496e['length']&&(_0x1c3157['markMultiRangeInsertion'](_0x58496e,'tablePaste',{'tablePasteChainId':_0x258455,'skipNestingCheck':!0x0}),_0x58496e['forEach'](_0x56690f=>_0x56690f['detach']?.())),_0x40c5b7['length']&&(_0x1c3157['markMultiRangeDeletion'](_0x40c5b7,'tablePaste',{'tablePasteChainId':_0x258455,'skipNestingCheck':!0x0}),_0x40c5b7['forEach'](_0x4d6bc9=>_0x4d6bc9['detach']?.()));const _0x51d0b4=_0x1c3157['markMultiRangeBlockFormat'](_0x280842['map'](({element:_0x514405})=>_0x514405),{'formatGroupId':_0x5ddf4e()},[],'tablePasteCell',{'tablePasteChainId':_0x258455});if(_0x51d0b4){const _0x3235d3=_0x51d0b4['getMarkers'](),_0x435f6d=[];for(const {element:_0x27fe8b,attributes:_0x531a58}of _0x280842){if(!_0x531a58)continue;const _0x507ba4=_0x1a69f3['model']['createRangeOn'](_0x27fe8b),_0x22d78f=_0x3235d3['find'](_0x3abb21=>_0x3abb21['getRange']()['isEqual'](_0x507ba4));_0x22d78f&&_0x435f6d['push']([_0x22d78f['name'],_0x531a58]);}_0x435f6d['length']&&_0x51d0b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x435f6d));}_0x3d3c5e=null;}));},{'priority':_0x3658c7['high']+0xa}),_0x207dec['on']('contentInsertion',()=>{_0x1f52c0=!0x1;},{'priority':'lowest'}),_0x1a69f3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2d21d6,_0x1d29ec)=>{const [_0x165f8b,_0x4595cb,,_0x528e9e]=_0x1d29ec;if(!_0x3d3c5e)return;_0x2d21d6['stop']();const _0x4ad4b4=_0x165f8b['cell'],_0x40fb90=_0x4595cb,_0x44df73=Be(_0x4ad4b4),_0x4fdb06=Be(_0x40fb90);_0x2d21d6['return']=_0x4ad4b4;let _0x467bb7=null,_0x249e13=null;if(_0x4fdb06||_0x44df73){if(_0x44df73&&!_0x4fdb06){_0x528e9e['remove'](_0x4ad4b4['getChild'](0x0));for(const _0x5ef466 of Array['from'](_0x40fb90['getChildren']()))_0x528e9e['insert'](_0x5ef466,_0x4ad4b4,'end');const _0x2e384f=_0x3d3c5e['rowInsertionIndexes']['includes'](_0x165f8b['row']),_0x3c33a1=_0x3d3c5e['columnInsertionIndexes']['includes'](_0x165f8b['column']);_0x2e384f||_0x3c33a1||(_0x467bb7=_0x110c0b['fromRange'](_0x528e9e['createRangeIn'](_0x4ad4b4)));}else _0x4fdb06&&!_0x44df73&&(_0x249e13=_0x528e9e['createRangeIn'](_0x4ad4b4));}else{const _0x483780=_0x528e9e['createElement']('tableCellSuggestion'),_0x4a6064=_0x528e9e['createElement']('tableCellSuggestion');_0x528e9e['wrap'](_0x528e9e['createRangeIn'](_0x4ad4b4),_0x4a6064),_0x528e9e['insert'](_0x483780,_0x4ad4b4,0x0);for(const _0xa9092f of Array['from'](_0x40fb90['getChildren']()))_0x528e9e['insert'](_0xa9092f,_0x483780,'end');_0x467bb7=_0x110c0b['fromRange'](_0x528e9e['createRangeOn'](_0x483780)),_0x249e13=_0x110c0b['fromRange'](_0x528e9e['createRangeOn'](_0x4a6064));}const _0x23b6c0=Array['from'](_0x40fb90['getAttributes']())['filter'](([_0xfcb44d])=>Re['includes'](_0xfcb44d));_0x3d3c5e['cells']['push']({'element':_0x4ad4b4,'attributes':_0x23b6c0['length']?Object['fromEntries'](_0x23b6c0):null}),_0x467bb7&&_0x3d3c5e['insertionRanges']['push'](_0x467bb7),_0x249e13&&_0x3d3c5e['deletionRanges']['push'](_0x249e13);},{'priority':'high'}),_0x59a1de['on']('insertColumns',(_0x43af77,_0x32a6f6)=>{const [_0xb6ed9a,_0x1323d0={}]=_0x32a6f6;if(!_0x3d3c5e)return;const _0x34a756=_0x1323d0['at']||0x0,_0x3cd453=_0x1323d0['columns']||0x1;_0x3d3c5e['columnInsertionIndexes']=new Array(_0x3cd453)['fill'](_0x34a756)['map']((_0x52b064,_0x1c1ae2)=>_0x52b064+_0x1c1ae2);for(const {cell:_0x504841}of _0x59a1de['createTableWalker'](_0xb6ed9a,{'startColumn':_0x34a756,'endColumn':_0x34a756+_0x3cd453-0x1}))_0x3d3c5e['columnInsertionRanges']['push'](_0x1a69f3['model']['createRangeOn'](_0x504841));},{'priority':'low'}),_0x59a1de['on']('insertRows',(_0x553352,_0xd90a29)=>{const [_0x437963,_0x2d2616={}]=_0xd90a29;if(!_0x3d3c5e)return;const _0x29ff22=_0x2d2616['at']||0x0,_0x5d802b=_0x2d2616['rows']||0x1;_0x3d3c5e['rowInsertionIndexes']=new Array(_0x5d802b)['fill'](_0x29ff22)['map']((_0x4eaf2f,_0x167d0c)=>_0x4eaf2f+_0x167d0c);for(const {cell:_0x5d83f2}of _0x59a1de['createTableWalker'](_0x437963,{'startRow':_0x29ff22,'endRow':_0x29ff22+_0x5d802b-0x1}))_0x3d3c5e['rowInsertionRanges']['push'](_0x1a69f3['model']['createRangeOn'](_0x5d83f2));},{'priority':'low'}),_0x1c3157['descriptionFactory']['registerDescriptionCallback'](_0x32748e=>{if(_0x32748e['subType']&&_0x32748e['subType']['startsWith']('tablePaste'))return _0x32748e['previous']?{}:{'type':'insertion','content':o(_0x1a69f3['locale'],'*Replace\x20table\x20cells*')};});const _0x202f5e=()=>!0x1;for(const _0xa60ee2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1c3157['_suggestionFactory']['registerCustomCallback']('insertion',_0xa60ee2,'join',_0x202f5e),_0x1c3157['_suggestionFactory']['registerCustomCallback']('deletion',_0xa60ee2,'join',_0x202f5e),_0x1c3157['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa60ee2,'join',_0x202f5e);_0x1c3157['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x202f5e),_0x1c3157['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2feeed,_0xfa024,_0x1de604)=>{const _0x2a653d=_0x2feeed['map'](_0x495bb5=>_0x495bb5['getContainedElement']())['filter'](_0x32a81a=>_0x32a81a),_0x8d12af=new Map(_0x2a653d['map'](_0x2ac304=>[_0x2ac304,null]));if(_0x3d3c5e){for(const {element:_0xbefe43,attributes:_0x16ee05}of _0x3d3c5e['cells'])_0x16ee05&&_0x8d12af['set'](_0xbefe43,_0x16ee05);}else{if(_0x1de604&&_0x1de604['markerAttributes'])for(const [_0x59a9ed,_0x51c357]of Object['entries'](_0x1de604['markerAttributes'])){const _0x14e4b7=_0x1a69f3['model']['markers']['get'](_0x59a9ed),_0x45d800=_0x14e4b7?_0x14e4b7['getRange']()['getContainedElement']():null;_0x45d800&&_0x8d12af['set'](_0x45d800,_0x51c357);}}_0x1a69f3['model']['change'](_0x3c1240=>{for(const [_0x5f3998,_0x10cdf3]of _0x8d12af)_0x3c1240['setAttributes']({...Ae,..._0x10cdf3},_0x5f3998);});});const _0xbd7695=(_0x58c850,_0x3f5d10)=>{_0x1c3157['_suggestionFactory']['registerCustomCallback'](_0x58c850,'tablePaste',_0x3f5d10,(_0x29ab3d,_0x2b245f,_0x4164d3)=>{_0x1a69f3['model']['change'](_0x3b87ec=>{const _0x2866be=[];for(const _0x2cf321 of _0x29ab3d){const _0x525c95=_0x2cf321['start']['nodeAfter'];_0x525c95['is']('element','tableCellSuggestion')&&_0x2866be['push'](_0x525c95);}_0x1c3157['_suggestionFactory']['getSuggestionCallback'](_0x58c850,null,_0x3f5d10)(_0x29ab3d,_0x2b245f,_0x4164d3);for(const _0x163c0c of _0x2866be)'$graveyard'!=_0x163c0c['root']['rootName']&&_0x3b87ec['unwrap'](_0x163c0c);});});};_0xbd7695('insertion','accept'),_0xbd7695('insertion','discard'),_0xbd7695('deletion','accept'),_0xbd7695('deletion','discard'),_0x1c3157['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xca1cf=>{const _0x1167db=_0xca1cf['map'](_0x2815f8=>_0x2815f8['getContainedElement']()),_0x3acca1=_0x1167db[0x0]['findAncestor']('table'),{minRow:_0x9981ec,maxRow:_0x1e81a6}=_0x1244ed['_getCoordsForCells'](_0x1167db);_0x59a1de['removeRows'](_0x3acca1,{'at':_0x9981ec,'rows':_0x1e81a6-_0x9981ec+0x1});}),_0x1c3157['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd7a6bc=>{const _0x4ec98d=_0xd7a6bc['map'](_0x298609=>_0x298609['getContainedElement']()),_0x3b8767=_0x4ec98d[0x0]['findAncestor']('table'),{minColumn:_0x180d74,maxColumn:_0x1d5438}=_0x1244ed['_getCoordsForCells'](_0x4ec98d);_0x59a1de['removeColumns'](_0x3b8767,{'at':_0x180d74,'columns':_0x1d5438-_0x180d74+0x1});});const _0x4e267a=(_0x5e4296,_0x224bcf)=>{if(!_0x224bcf['subType']||!_0x224bcf['subType']['startsWith']('tablePaste'))return;const _0x2f703e=_0x224bcf['attributes']['tablePasteChainId'],_0x330f8b=_0x1c3157['getSuggestions']()['filter'](_0x1cd0fb=>_0x1cd0fb['isInContent']&&_0x1cd0fb['attributes']&&_0x1cd0fb['attributes']['tablePasteChainId']==_0x2f703e);_0x330f8b['length']&&_0x224bcf['getAllAdjacentSuggestions']()['length']!=_0x330f8b['length']&&_0x330f8b['reduce']((_0x194198,_0x1e9fe4)=>(_0x194198['next']=_0x1e9fe4,_0x1e9fe4['previous']=_0x194198,_0x1e9fe4));};function _0x5a6bfc(_0x1b643b,_0x2eb2f2=!0x0){const {id:_0x2bc202,authorId:_0x5eddd2}=_0x1c3157['_splitMarkerName'](_0x1b643b['markerName']),_0x13492f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x365fa8=_0x1c3157['activeMarkers']['includes'](_0x1b643b['markerName']);return _0x365fa8&&_0x13492f['push']('ck-suggestion-marker--active'),{'classes':_0x13492f,'attributes':{'data-suggestion':_0x2bc202,'data-author-id':_0x5eddd2},'priority':_0x365fa8&&_0x2eb2f2?0xbc2:0xbb8};}_0x1c3157['on']('suggestionLoaded',_0x4e267a,{'priority':'high'}),_0x1c3157['on']('suggestionUnloaded',_0x4e267a,{'priority':'high'}),_0x1a69f3['model']['document']['registerPostFixer'](()=>{let _0x2cdd13=!0x1;const _0x245d84=Array['from'](_0x1a69f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x258b23,data:_0x16b279}of _0x245d84){const {group:_0x4efb23,type:_0x49f115,id:_0x27ccd7}=_0x1c3157['_splitMarkerName'](_0x258b23);if('suggestion'!=_0x4efb23||'deletion'!=_0x49f115||_0x16b279['oldRange'])continue;if(!_0x1c3157['hasSuggestion'](_0x27ccd7))continue;const _0x374c60=_0x1c3157['getSuggestion'](_0x27ccd7)['getRanges'](),_0x3263d5=_0x1a69f3['plugins']['get']('Users')['me'];for(const _0x1cf7ce of _0x1c3157['getSuggestions']()){if(!_0x1cf7ce['isInContent']||_0x1cf7ce['author']!=_0x3263d5)continue;if('formatBlock'!=_0x1cf7ce['type']||'tablePasteCell'!=_0x1cf7ce['subType'])continue;if(_0x1cf7ce['getRanges']()['every'](_0x551220=>_0x374c60['some'](_0x10b1af=>_0x10b1af['containsRange'](_0x551220,!0x0)))){for(const _0x1f8537 of _0x1cf7ce['getAllAdjacentSuggestions']())_0x1f8537['isInContent']&&(_0x1f8537['discard'](),_0x2cdd13=!0x0);}}}return _0x2cdd13;}),_0x1a69f3['model']['document']['registerPostFixer'](_0x12d339=>{const _0x3ba08b=_0x1a69f3['commands']['get']('redo');if(!_0x3ba08b||!_0x3ba08b['_createdBatches']['has'](_0x12d339['batch']))return!0x1;let _0x488fd3=!0x1;const _0xd18908=_0x1a69f3['plugins']['get']('Users')['me'],_0x3c1d90=_0x1a69f3['model']['document']['differ']['getChanges'](),_0x33f2f2=Array['from'](_0x1a69f3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x30015e,data:_0x403ece})=>{const {group:_0x15b021,subType:_0x2de489,authorId:_0xdd4676}=_0x1c3157['_splitMarkerName'](_0x30015e);return'suggestion'==_0x15b021&&'tablePaste'==_0x2de489&&_0xdd4676==_0xd18908['id']&&!_0x403ece['oldRange'];});for(const _0x1a8af9 of _0x3c1d90){if('insert'!=_0x1a8af9['type']||'tableCellSuggestion'!=_0x1a8af9['name']||0x1!=_0x1a8af9['length'])continue;const _0x31def0=_0x12d339['createRange'](_0x1a8af9['position'],_0x1a8af9['position']['getShiftedBy'](0x1));if(!_0x33f2f2['find'](({data:_0x40be08})=>_0x40be08['newRange']['isEqual'](_0x31def0))){for(const {name:_0x36c521,data:_0x37cfec}of _0x33f2f2)if(_0x31def0['containsRange'](_0x37cfec['newRange'])){_0x12d339['updateMarker'](_0x36c521,{'range':_0x31def0}),_0x488fd3=!0x0;break;}}}return _0x488fd3;}),_0x1a69f3['model']['document']['registerPostFixer'](_0x14de40=>{let _0x4075d6=!0x1;const _0x12c5e5=_0x1a69f3['plugins']['get']('Users')['me'],_0x101f78=_0x1c3157['getSuggestions']()['filter'](_0x439851=>_0x439851['isInContent']&&_0x439851['author']==_0x12c5e5),_0x3f0af6=new Set(),_0x5dce9c=new Set();for(const _0x4ad9de of _0x101f78)if('tablePaste'==_0x4ad9de['subType'])for(const _0x418659 of _0x4ad9de['getMarkers']()){const _0x396422=_0x418659['getRange']()['getContainedElement']();if(_0x396422){if(_0x396422['is']('element','tableCellSuggestion')&&Be(_0x396422)){_0x4ad9de['removeMarker'](_0x418659['name']),_0x3f0af6['add'](_0x396422),_0x4075d6=!0x0;const _0x392ed2=_0x396422['nextSibling'],_0x32b48c=_0x396422['previousSibling'],_0x4be693=_0x392ed2&&_0x392ed2['is']('element','tableCellSuggestion'),_0x231e39=_0x32b48c&&_0x32b48c['is']('element','tableCellSuggestion');_0x4be693&&!_0x3f0af6['has'](_0x392ed2)&&_0x5dce9c['add'](_0x392ed2),_0x231e39&&!_0x3f0af6['has'](_0x32b48c)&&_0x5dce9c['add'](_0x32b48c);}else _0x396422['is']('element','paragraph')&&_0x396422['isEmpty']&&(_0x4ad9de['removeMarker'](_0x418659['name']),_0x4075d6=!0x0);}}else{if('tablePasteCell'==_0x4ad9de['subType']){if(!_0x4ad9de['attributes']||!_0x4ad9de['attributes']['tablePasteChainId'])continue;const _0x5c6044=_0x4ad9de['attributes']['markerAttributes'];if(_0x5c6044&&Object['keys'](_0x5c6044)['length'])continue;const _0x30bba5=_0x4ad9de['attributes']['tablePasteChainId'];let _0x2cefc7=!0x0,_0x1a9261=!0x0;for(const _0x4c3de4 of _0x101f78)if(_0x4c3de4['subType']&&_0x4c3de4['subType']['startsWith']('tablePaste')){if(!_0x4c3de4['attributes']['tablePasteChainId']){_0x1a9261=!0x1;break;}if(_0x4c3de4['id']!=_0x4ad9de['id']&&_0x4c3de4['attributes']['tablePasteChainId']==_0x30bba5){_0x2cefc7=!0x1;break;}}_0x1a9261&&_0x2cefc7&&(_0x4ad9de['removeMarkers'](),_0x4075d6=!0x0);}}for(const _0x5618fb of _0x3f0af6)_0x14de40['remove'](_0x5618fb);for(const _0x4b0d67 of _0x5dce9c)_0x14de40['unwrap'](_0x4b0d67);return _0x4075d6;}),_0x1a69f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4df15c=>_0x5a6bfc(_0x4df15c),'converterPriority':'high'}),_0x1a69f3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5bc003,_0x81555)=>_0x81555['options']['showSuggestionHighlights']?_0x5a6bfc(_0x5bc003,!0x1):null,'converterPriority':'high'});const _0x1bcaf3=_0x1a69f3['editing']['view'];this['listenTo'](_0x1bcaf3['document'],'clipboardOutput',(_0x10650c,_0x21b98f)=>{const _0x5d00a1=[];for(const _0x41b187 of _0x1bcaf3['createRangeIn'](_0x21b98f['content'])['getItems']())_0x41b187['is']('element','suggestion-td')&&_0x5d00a1['push'](_0x41b187);_0x1bcaf3['change'](_0x39b338=>{for(const _0x548d5f of _0x5d00a1)_0x39b338['move'](_0x39b338['createRangeIn'](_0x548d5f),_0x39b338['createPositionBefore'](_0x548d5f)),_0x39b338['remove'](_0x548d5f);});});}}function Be(_0x7906e5){if(_0x7906e5['isEmpty'])return!0x0;const _0x50a099=_0x7906e5['getChild'](0x0);return _0x50a099['is']('element','paragraph')&&_0x50a099['isEmpty'];}function Oe(_0x4dd2a0,_0x2ea623={},_0x6256e9){for(const {isAnchor:_0x423900,cellHeight:_0x27fb51,cellWidth:_0x46d543}of _0x6256e9['createTableWalker'](_0x4dd2a0,{'includeAllSlots':!0x0,..._0x2ea623}))if(!_0x423900||0x1!=_0x27fb51||0x1!=_0x46d543)return!0x1;return!0x0;}class Rt extends _0x57897a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x27951a=this['editor']['plugins']['get']('TrackChangesEditing');_0x27951a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x27951a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x27951a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27951a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x27951a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x27951a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5f5840,_0x4fa3c7){const _0x3846b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x279f63=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19279d=_0x4fa3c7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x546f18=_0x279f63['getColumnGroupElement'](_0x19279d);let _0x1616a8=_0x546f18?_0x279f63['getTableColumnsWidths'](_0x546f18):null,_0x5d0335=_0x19279d['getAttribute']('tableWidth')||null;const _0x4663bd=_0x4fa3c7['tableWidth']||_0x5d0335,_0x257a72=_0x4fa3c7['columnWidths']||_0x1616a8,_0xbf59d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x358ae6 of _0x3846b8['getSuggestions']()){const _0x58887e=_0x358ae6['getContainedElement']();if('resizeTable'===_0x358ae6['subType']&&_0x58887e===_0x19279d){_0x358ae6['author']!==_0xbf59d1&&_0x358ae6['discard']();const _0x5a4d15=_0x358ae6['data']['commandParams'];_0x5d0335=_0x5a4d15[0x0]['tableWidth'],_0x1616a8=_0x5a4d15[0x0]['columnWidths'];break;}}_0x5f5840({'table':_0x19279d,'tableWidth':_0x4663bd,'columnWidths':_0x257a72}),_0x3846b8['markBlockFormat'](_0x19279d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d0335,'columnWidths':_0x1616a8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25c299){if('formatBlock'!=_0x25c299['type']&&'formatInline'!=_0x25c299['type'])return;const {data:_0x3f5840}=_0x25c299;if(_0x3f5840&&'resizeTable'===_0x3f5840['formatGroupId']){const _0x1f5656='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1f5656)};}}}class Tt extends _0x57897a{['afterInit'](){const _0x31db31=this['editor'];_0x31db31['plugins']['has']('Template')&&_0x31db31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x57897a{['afterInit'](){const _0x5d626d=this['editor'];if(!_0x5d626d['commands']['get']('insertTableOfContents'))return;_0x5d626d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28c9dd=_0x5d626d['plugins']['get']('TrackChangesEditing'),_0x5cd6ca=_0x5d626d['locale'];_0x28c9dd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5de0a8=>o(_0x5cd6ca,'ELEMENT_TABLE_OF_CONTENTS',_0x5de0a8));}}class Ut extends _0x57897a{['afterInit'](){const _0x2ecdd7=this['editor'];if(!_0x2ecdd7['plugins']['has']('Title'))return;const _0x5efcac=_0x2ecdd7['plugins']['get']('TrackChangesEditing');_0x5efcac['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ecdd7['locale'],'ELEMENT_TITLE')),_0x2ecdd7['model']['document']['registerPostFixer'](_0x4d596d=>{let _0x46a263=!0x1;const _0x4e0aba=Array['from'](_0x2ecdd7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1045de,data:_0x312145}of _0x4e0aba){const {group:_0x426523}=_0x5efcac['_splitMarkerName'](_0x1045de);if('suggestion'!==_0x426523||!_0x312145['newRange'])continue;const _0x39121d=_0x312145['newRange'],_0xd5c2f2=_0x39121d['end']['nodeBefore'];if(!_0xd5c2f2||!_0xd5c2f2['is']('element','title-content'))continue;if(!_0x39121d['start']['isTouching'](_0x39121d['end']))continue;const _0x5ec241=_0x2ecdd7['model']['schema']['getNearestSelectionRange'](_0x39121d['end'],'forward');if(_0x5ec241&&_0x5ec241['isCollapsed']){const _0x15c34c=_0x4d596d['createRange'](_0x39121d['start'],_0x5ec241['start']);_0x15c34c['isEqual'](_0x39121d)||(_0x4d596d['updateMarker'](_0x1045de,{'range':_0x15c34c}),_0x46a263=!0x0);}_0x46a263||(_0x4d596d['removeMarker'](_0x1045de),_0x46a263=!0x0);}return _0x46a263;});}}class Vt extends _0x57897a{['afterInit'](){const _0x17e379=this['editor'],_0x32991c=_0x17e379['plugins']['get']('TrackChangesEditing');_0x17e379['plugins']['has']('Uploadcare')&&(_0x32991c['enableCommand']('uploadcare'),_0x17e379['plugins']['has']('UploadcareImageEdit')&&(_0x32991c['enableCommand']('uploadcareImageEdit'),_0x32991c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32991c['descriptionFactory']['registerDescriptionCallback'](_0x251d7b=>{if('attribute'!=_0x251d7b['type'])return;const {data:_0x5dd270}=_0x251d7b;return _0x5dd270&&'uploadcareImageId'==_0x5dd270['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x57897a{['afterInit'](){const _0x3a8ffe=this['editor'],_0x4006a2=_0x3a8ffe['plugins']['get']('TrackChangesEditing');_0x3a8ffe['plugins']['has']('UndoEditing')&&(_0x4006a2['enableCommand']('undo'),_0x4006a2['enableCommand']('redo'));}}class Pt extends _0x57897a{static get['requires'](){return[Dt];}['afterInit'](){const _0x2a5754=this['editor'];if(!_0x2a5754['plugins']['has']('TableCaptionEditing'))return;_0x2a5754['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x57897a{['tableProperties'];['tableCellProperties'];constructor(_0x3b9105){super(_0x3b9105),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x3b9105['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 _0x154306=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x553c90 of this['tableProperties'])_0x154306['enableCommand'](_0x553c90,(_0x330c03,_0x4d6467)=>{const _0x269641=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x553c90,[_0x269641],this['tableProperties'],'tableProperties',_0x330c03,_0x4d6467);});_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x154306['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d3b80,_0x10a39a)=>this['handleDiscardAction'](this['tableProperties'],_0x1d3b80,_0x10a39a)),_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3d36d5 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3d36d5)&&_0x154306['enableCommand'](_0x3d36d5,(_0x3c7e9b,_0x569dc8)=>{const _0x1a441b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3d36d5,_0x1a441b,this['tableCellProperties'],'tableCellProperties',_0x3c7e9b,_0x569dc8);});_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x154306['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xf41552,_0x7943ad)=>this['handleDiscardAction'](this['tableCellProperties'],_0xf41552,_0x7943ad)),_0x154306['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x154306['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x154306['descriptionFactory']['registerDescriptionCallback'](_0x4c2333=>this['handleSuggestionDescription'](_0x4c2333)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5d7c23,_0x1d3099,_0xee2dc3,_0x438e82,_0x303d77,_0x2f3c38){const _0xf2192b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f3c38['batch'],()=>{for(const _0x557da6 of _0x1d3099){if(this['_getSuggestion'](_0x557da6,_0x438e82))_0x303d77(_0x2f3c38);else{const _0x192ed0={};for(const _0x1ea26b of _0xee2dc3){const _0x174cc7=_0x557da6['getAttribute'](_0x1ea26b);void 0x0!==_0x174cc7&&(_0x192ed0[_0x1ea26b]=_0x174cc7);}_0x303d77(_0x2f3c38),_0xf2192b['markBlockFormat'](_0x557da6,{'commandParams':[_0x192ed0]},[],_0x438e82);}}});}['handleDiscardAction'](_0x1c7f26,_0x580e43,_0x4f6274){const _0x392e05=_0x580e43[0x0]['start']['nodeAfter'],_0x24ba87=_0x4f6274['commandParams'][0x0];this['editor']['model']['change'](_0x487552=>{for(const _0x556e03 of _0x1c7f26)void 0x0!==_0x24ba87[_0x556e03]?_0x487552['setAttribute'](_0x556e03,_0x24ba87[_0x556e03],_0x392e05):_0x487552['removeAttribute'](_0x556e03,_0x392e05);});}['handleSuggestionDescription'](_0x5164ef){if(_0x5164ef['data'])switch(_0x5164ef['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'](_0x4a37b4,_0x14c79b){const _0x249d75=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x45c7ab of _0x249d75['getSuggestions']({'skipNotAttached':!0x0})){const _0x5908f6=_0x45c7ab['getContainedElement']();if(_0x45c7ab['subType']===_0x14c79b&&_0x5908f6===_0x4a37b4)return _0x45c7ab;}return null;}['_registerTablePropertiesAttributes'](){const _0x3b1618=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387627=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2345dc of _0x387627){const _0xea9e72=_0x2345dc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3b1618['descriptionFactory']['registerAttributeLabel'](_0x2345dc,o(this['editor']['locale'],'FORMAT_'+_0xea9e72));}}}class Lt extends _0x57897a{['afterInit'](){const _0x42b3cb=this['editor'];if(!_0x42b3cb['plugins']['has']('LineHeight'))return;const _0x235e24=_0x42b3cb['plugins']['get']('TrackChangesEditing'),_0xd61ee3=_0x42b3cb['locale'];_0x235e24['enableDefaultAttributesIntegration']('lineHeight'),_0x235e24['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xd61ee3,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x57897a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x356af8,_0x114b0f,_0x814fbc,_0x3e095d,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(_0x48fc5a){super(_0x48fc5a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55d94a,_0x1b2230,_0x16c503,_0x2118b7)=>{this['_model']['change'](()=>{for(const _0x3aa494 of[..._0x2118b7,..._0x16c503])this['_model']['markers']['has'](_0x3aa494)&&_0x48fc5a['editing']['reconvertMarker'](_0x3aa494);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x48fc5a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x48fc5a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x48fc5a['config']['get']('trackChanges.trackFormatChanges'),_0x48fc5a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x48fc5a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x48fc5a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x54055d=this['editor'];_0x54055d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5a5ec9,{writer:_0x283767})=>{let _0x3966c7='suggestion:'+_0x5a5ec9['getAttribute']('suggestion-type')+':'+_0x5a5ec9['getAttribute']('id');return _0x5a5ec9['getAttribute']('marker-count')&&(_0x3966c7+=':'+_0x5a5ec9['getAttribute']('marker-count')),_0x283767['createElement']('$marker',{'data-name':_0x3966c7});}}),_0x54055d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x54055d['model']['document']['registerPostFixer'](_0x10b564=>{let _0x21ecb7=!0x1;const _0x2a8eb6=Array['from'](_0x54055d['model']['document']['differ']['getChangedMarkers']()),_0x3cbec0=new Set();for(const {name:_0x2a0d5b,data:_0x4bfccd}of _0x2a8eb6){const {group:_0x3dbb01,type:_0x17ff79,subType:_0x397182,id:_0x53600c}=this['_splitMarkerName'](_0x2a0d5b);if('suggestion'!==_0x3dbb01)continue;const _0x5d843a=_0x397182?'suggestion:'+_0x17ff79+':'+_0x397182+':'+_0x53600c:'suggestion:'+_0x17ff79+':'+_0x53600c,_0x470025=_0x54055d['model']['markers']['getMarkersGroup'](_0x5d843a),_0xa5dee8=_0x54055d['model']['markers']['get'](_0x2a0d5b),_0x39bcc8=this['_suggestions']['get'](_0x53600c);if(null!=_0x4bfccd['newRange']){'formatInline'==_0x17ff79&&(_0x21ecb7=_0x21ecb7||Wt(_0x4bfccd['newRange'],_0x2a0d5b,_0x10b564,_0x54055d['model']['schema']));const _0x380af5='attribute'==_0x17ff79&&this['_isBlockAttribute'](_0x397182['split']('|')[0x0]),_0x2f4bc6='attribute'==_0x17ff79&&this['_isInlineAttribute'](_0x397182['split']('|')[0x0]);if(_0x4bfccd['newRange']['isCollapsed']||'$graveyard'==_0x4bfccd['newRange']['root']['rootName']||'formatBlock'==_0x17ff79&&!Qt(_0x4bfccd['newRange'])||_0x380af5&&!Qt(_0x4bfccd['newRange'])||_0x2f4bc6&&Xt(_0x4bfccd['newRange'])||'deletion'==_0x17ff79&&Xt(_0x4bfccd['newRange'])||_0xa5dee8&&Yt(_0xa5dee8,_0x470025))_0x10b564['removeMarker'](_0x2a0d5b),_0x21ecb7=!0x0;else{if(!_0x39bcc8||!_0x39bcc8['isInContent'])continue;if(_0x4bfccd['newRange']&&_0x4bfccd['oldRange']&&_0x4bfccd['newRange']['isEqual'](_0x4bfccd['oldRange']))continue;_0x3cbec0['add'](_0x39bcc8);}}}return _0x3cbec0['size']>0x0&&(_0x21ecb7=!!this['_joinWithAdjacentSuggestions'](_0x3cbec0)||_0x21ecb7),_0x21ecb7;}),_0x54055d['model']['document']['registerPostFixer'](_0x4f2afc=>{let _0x35b984=!0x1;for(const _0xd44cdf of _0x54055d['model']['document']['differ']['getChanges']())if('insert'==_0xd44cdf['type'])for(const _0x1bdaaa of this['_suggestions']['values']()){if(_0x1bdaaa['isMultiRange']||!_0x1bdaaa['isInContent'])continue;const _0x1e8bcd='formatBlock'==_0x1bdaaa['type'],_0x33b22b=this['_getAttributeKey'](_0x1bdaaa),_0x4a1e4d=_0x33b22b&&this['_isBlockAttribute'](_0x33b22b);if(!_0x1e8bcd&&!_0x4a1e4d)continue;const _0x11c5dc=_0x1bdaaa['getFirstRange']();if(_0x11c5dc['start']['parent']!=_0x11c5dc['end']['parent']&&!_0x11c5dc['end']['isAtEnd']){const _0x4688a2=_0x54055d['model']['createPositionAt'](_0x11c5dc['start']['nodeAfter'],'end'),_0x425918=_0x54055d['model']['createRange'](_0x11c5dc['start'],_0x4688a2);_0x4f2afc['updateMarker'](_0x1bdaaa['getFirstMarker'](),{'range':_0x425918}),_0x35b984=!0x0;}}return _0x35b984;}),_0x54055d['model']['document']['registerPostFixer'](_0x4fb81f=>this['_processAttributeChanges'](_0x4fb81f)),_0x54055d['model']['document']['registerPostFixer'](_0x2a7ff2=>!_0x2a7ff2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a7ff2)),_0x54055d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x54055d['model']['document']['on']('change:data',(_0x1fa016,_0x2df79c)=>{if(!_0x2df79c['isLocal']||_0x2df79c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xe43550=_0x54055d['model']['document']['differ']['getChanges']();if(0x0==_0xe43550['length'])return;const _0x63f61d=[],_0x240752=_0xe43550['filter'](_0x398f26=>'attribute'==_0x398f26['type']),_0x377d38=_0xe43550['filter'](_0x2f0c29=>'insert'==_0x2f0c29['type']&&'$text'!=_0x2f0c29['name']);for(const _0x5743c5 of _0x240752)this['_isRegisteredAttribute'](_0x5743c5['attributeKey'])&&_0x63f61d['push']({'key':_0x5743c5['attributeKey'],'newValue':_0x5743c5['attributeNewValue'],'oldValue':_0x5743c5['attributeOldValue'],'range':Zt(_0x5743c5['range'],_0x54055d['model'])});for(const _0x557fa4 of _0x377d38){if('rename'!=_0x557fa4['action']&&'refresh'!=_0x557fa4['action'])continue;const _0x4e5d8d=tn(_0x557fa4['position']['nodeAfter'],_0x54055d['model']),_0xf57961=_0x557fa4['before'];'rename'==_0x557fa4['action']&&_0x63f61d['push']({'key':m,'newValue':_0x557fa4['name'],'oldValue':_0xf57961['name'],'range':_0x4e5d8d});for(const [_0x431c44,_0x3465d2]of _0xf57961['attributes']){if(!this['_isRegisteredAttribute'](_0x431c44))continue;const _0x528a32=_0x557fa4['attributes']['get'](_0x431c44);_0x3465d2!==_0x528a32&&_0x63f61d['push']({'key':_0x431c44,'newValue':_0x528a32,'oldValue':_0x3465d2,'range':_0x4e5d8d});}for(const [_0x113770,_0x345cf5]of _0x557fa4['attributes'])this['_isRegisteredAttribute'](_0x113770)&&(_0xf57961['attributes']['has'](_0x113770)||_0x63f61d['push']({'key':_0x113770,'newValue':_0x345cf5,'oldValue':null,'range':_0x4e5d8d}));}0x0!=_0x63f61d['length']&&_0x54055d['model']['enqueueChange'](_0x2df79c,_0xa1c901=>{const _0x5738b5=_0x5ddf4e();for(const {range:_0x2c73a0,key:_0x322815,oldValue:_0x1b8671,newValue:_0x1b16c3}of _0x63f61d)this['markAttributeChange'](_0x2c73a0,_0x322815,_0x1b8671,_0x1b16c3,{'groupId':_0x5738b5});this['_reduceExistingSuggestions'](_0xa1c901,_0x63f61d);});},{'priority':'lowest'}),_0x54055d['model']['markers']['on']('update:suggestion',(_0x4b8f70,_0x57529f,_0x4590dc)=>{if(null==_0x4590dc){const {id:_0x20d403}=this['_splitMarkerName'](_0x57529f['name']),_0x224d60=this['_suggestions']['get'](_0x20d403);_0x224d60&&_0x224d60['addMarkerName'](_0x57529f['name']);}}),_0x54055d['model']['document']['on']('change:data',()=>{const _0x3a82bb=Array['from'](_0x54055d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x594329=>'suggestion'===this['_splitMarkerName'](_0x594329['name'])['group']);if(0x0===_0x3a82bb['length'])return;_0x3a82bb['sort']((_0x888f96,_0x8feb58)=>{const _0x37ee37=_0x888f96['data']['oldRange'],_0xbf364a=_0x8feb58['data']['oldRange'];return null===_0x37ee37&&null===_0xbf364a?0x0:null===_0x37ee37&&null!==_0xbf364a?-0x1:null!==_0x37ee37&&null===_0xbf364a?0x1:_0x37ee37['start']['isBefore'](_0xbf364a['start'])?-0x1:0x1;});const _0x38c1a5=new Set(),_0x287d62=new Set();for(const {name:_0x1697c3,data:_0xfb60cc}of _0x3a82bb){const {id:_0x5b9b00}=this['_splitMarkerName'](_0x1697c3);if(null===_0xfb60cc['oldRange']){const _0x389df4=this['_handleNewSuggestionMarker'](_0x1697c3);_0x287d62['add'](_0x389df4);}else{const _0x40a479=this['_suggestions']['get'](_0x5b9b00);null!==_0xfb60cc['newRange']||_0x40a479['isInContent']?(_0x38c1a5['add'](_0x40a479['head']),_0x287d62['add'](_0x40a479)):this['_removeSuggestion'](_0x40a479);}}_0x287d62['size']>0x0&&this['_refreshSuggestionsChain'](_0x287d62);for(const _0xba1d76 of _0x38c1a5)this['fire']('suggestionChanged',_0xba1d76);}),_0x54055d['model']['on']('applyOperation',(_0xd2ec6e,_0x14671e)=>{const _0x5b6240=_0x14671e[0x0];if(!this['_suggestions']['size'])return;if(!_0x5b6240['isDocumentOperation'])return;if(_0x5b6240['batch']['isUndo']||!_0x5b6240['batch']['isLocal'])return;let _0x5c8fe1,_0x24d343;switch(_0x5b6240['type']){case'insert':_0x5c8fe1=_0x54055d['model']['createPositionAt'](_0x5b6240['position']),_0x24d343=_0x5c8fe1['getShiftedBy'](_0x5b6240['howMany']);break;case'split':_0x5c8fe1=_0x54055d['model']['createPositionAt'](_0x5b6240['splitPosition']),_0x24d343=_0x54055d['model']['createPositionAt'](_0x5b6240['moveTargetPosition']);break;case'move':_0x5c8fe1=_0x54055d['model']['createPositionAt'](_0x5b6240['targetPosition']),_0x24d343=_0x5c8fe1['getShiftedBy'](_0x5b6240['howMany']);break;default:return;}const _0x27ea10=_0x54055d['model']['createRange'](_0x5c8fe1,_0x24d343);_0x54055d['model']['change'](()=>{for(const {suggestion:_0x19a073,meta:_0x91b925}of this['_findSuggestions'](_0x27ea10)){if(_0x19a073['isMultiRange'])continue;if('formatInline'==_0x19a073['type'])continue;const _0x461c2d=this['_getAttributeKey'](_0x19a073);if(_0x461c2d&&this['_isBlockAttribute'](_0x461c2d)&&'split'!=_0x5b6240['type'])continue;const _0x5c8d20=_0x19a073['data']&&_0x19a073['data']['multipleBlocks'];('formatBlock'!=_0x19a073['type']||'split'==_0x5b6240['type']&&!_0x5c8d20)&&(_0x91b925['containsRangeInObject']||'insertion'==_0x19a073['type']&&_0x91b925['isOwn']||_0x19a073['getFirstRange']()['containsRange'](_0x27ea10)&&this['_breakSuggestionMarker'](_0x19a073,_0x5c8fe1,_0x24d343));}});},{'priority':'lowest'}),_0x54055d['model']['on']('deleteContent',(_0x2c5bef,_0x1d1458)=>{const _0x290ada=_0x1d1458[0x0],_0x280cdf=_0x1d1458[0x1];if(_0x280cdf&&_0x280cdf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x290ada['isCollapsed'])return;const _0x1674b5=_0x54055d['model']['schema'],{start:_0x17be00,end:_0x16da47}=_0x290ada['getFirstRange'](),_0x51dc62=_0x17be00['nodeAfter']&&_0x1674b5['isLimit'](_0x17be00['nodeAfter'])?null:_0x1674b5['getNearestSelectionRange'](_0x17be00,'forward'),_0x442bf4=_0x16da47['nodeBefore']&&_0x1674b5['isLimit'](_0x16da47['nodeBefore'])?null:_0x1674b5['getNearestSelectionRange'](_0x16da47,'backward'),_0x947cfe=_0x54055d['model']['createRange'](_0x51dc62?_0x51dc62['start']:_0x17be00,_0x442bf4?_0x442bf4['end']:_0x16da47);_0x54055d['model']['change'](_0x56b251=>{this['markDeletion'](_0x947cfe);const _0x1d8b3e=_0x54055d['model']['schema']['getNearestSelectionRange'](_0x947cfe['start']);_0x290ada['is']('documentSelection')?_0x56b251['setSelection'](_0x1d8b3e):_0x290ada['setTo'](_0x1d8b3e);}),_0x2c5bef['stop']();},{'priority':_0x3658c7['normal']+0xa}),_0x54055d['model']['on']('insertContent',(_0x2320f3,_0x25d9ff)=>{const _0x1f7b54=_0x25d9ff[_0x25d9ff['length']-0x1];_0x1f7b54&&_0x1f7b54['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x54055d['model']['change'](()=>{let _0x19aac9=_0x54055d['model']['insertContent'](_0x25d9ff[0x0],_0x25d9ff[0x1],_0x25d9ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x19aac9)return;_0x2320f3['return']=_0x19aac9['clone']();const _0x4d5b42=_0x19aac9['end']['nodeBefore'],_0x460cbf=_0x54055d['model']['schema'];_0x4d5b42&&_0x460cbf['isBlock'](_0x4d5b42)&&!_0x460cbf['isObject'](_0x4d5b42)&&(_0x19aac9=_0x54055d['model']['createRange'](_0x19aac9['start'],_0x54055d['model']['createPositionAt'](_0x4d5b42,'end'))),this['markInsertion'](_0x19aac9);}),_0x2320f3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1b200a=new O(_0x54055d,this['_suggestions']);_0x54055d['commands']['add']('acceptSuggestion',_0x1b200a),this['enableCommand']('acceptSuggestion');const _0x35d2a3=new x(_0x54055d,this['_suggestions']);_0x54055d['commands']['add']('discardSuggestion',_0x35d2a3),this['enableCommand']('discardSuggestion'),_0x54055d['commands']['add']('acceptAllSuggestions',new M(_0x54055d,_0x1b200a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x54055d['commands']['add']('discardAllSuggestions',new M(_0x54055d,_0x35d2a3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x54055d['commands']['add']('acceptSelectedSuggestions',new R(_0x54055d,_0x1b200a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x54055d['commands']['add']('discardSelectedSuggestions',new R(_0x54055d,_0x35d2a3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x439171=_0x54055d['plugins']['get']('CommentsRepository');this['listenTo'](_0x439171,'addComment',(_0x308e6b,{threadId:_0x38bdba})=>{const _0x2fa42f=this['_suggestions']['get'](_0x38bdba);_0x2fa42f&&_0x2fa42f['commentThread']&&0x1===_0x2fa42f['commentThread']['length']&&this['_updateSuggestionData'](_0x38bdba,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x439171,'removeComment',(_0x583b2f,{threadId:_0x3a4ec5})=>{const _0x3919c9=this['_suggestions']['get'](_0x3a4ec5);_0x3919c9&&_0x3919c9['commentThread']&&!_0x3919c9['commentThread']['length']&&this['_updateSuggestionData'](_0x3a4ec5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xf3c702){const _0x1360e0=_0x290ecc([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]),_0x214962=0x3d8d0df,_0x7d21cf=0x3df5677^_0x214962,_0x3c3eab=window[_0x290ecc([0x44,0x61,0x74,0x65])][_0x290ecc([0x6e,0x6f,0x77])](),_0x5ab49b=_0xf3c702[_0x290ecc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c7055=new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4078ec=>{_0x5ab49b[_0x290ecc([0x6f,0x6e,0x63,0x65])](_0x290ecc([0x72,0x65,0x61,0x64,0x79]),_0x4078ec);}),_0x2e8577={[_0x290ecc([0x6b,0x74,0x79])]:_0x290ecc([0x45,0x43]),[_0x290ecc([0x75,0x73,0x65])]:_0x290ecc([0x73,0x69,0x67]),[_0x290ecc([0x63,0x72,0x76])]:_0x290ecc([0x50,0x2d,0x32,0x35,0x36]),[_0x290ecc([0x78])]:_0x290ecc([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]),[_0x290ecc([0x79])]:_0x290ecc([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]),[_0x290ecc([0x61,0x6c,0x67])]:_0x290ecc([0x45,0x53,0x32,0x35,0x36])},_0x594b3b=_0x5ab49b[_0x290ecc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x290ecc([0x67,0x65,0x74])](_0x290ecc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x283a3f(){let _0x14fda4,_0x304f8e=null,_0x857d66=null;try{if(_0x594b3b==_0x290ecc([0x47,0x50,0x4c]))return _0x290ecc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14fda4=_0x6e79a7(),!_0x14fda4)return _0x290ecc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14fda4[_0x290ecc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x857d66=_0x24eb13(_0x14fda4[_0x290ecc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14fda4[_0x290ecc([0x6a,0x74,0x69])])),await _0x5f1d0c()?_0x320d21()?_0x382c18()?_0x290ecc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c7bcb()?(_0x14fda4[_0x290ecc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x290ecc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x304f8e=_0x53b19f(_0x290ecc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2841c9()):_0x290ecc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x290ecc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x290ecc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x290ecc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x382c18(){const _0x5ded01=[_0x290ecc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x290ecc([0x74,0x72,0x69,0x61,0x6c])][_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14fda4[_0x290ecc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c3eab/0x3e8:0xe10*_0x7d21cf;return _0x14fda4[_0x290ecc([0x65,0x78,0x70])]<_0x5ded01;}function _0x320d21(){const _0x26a102=_0x14fda4[_0x290ecc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26a102)return!0x1;if(_0x26a102[_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290ecc([0x2a])))return!0x0;if(_0x26a102[_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290ecc([0x54,0x43])))return!0x0;if(_0x26a102[_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290ecc([0x52,0x54,0x43]))){if(_0x59fbb3())return!0x0;if(_0xf6ebf0()||_0x2644e0())return!0x0;}return!0x1;}function _0x4c7bcb(){const _0x3f06dd=_0x14fda4[_0x290ecc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f06dd||0x0==_0x3f06dd[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29be7c}=new URL(window[_0x290ecc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f06dd[_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29be7c))return!0x0;const _0x3401d1=_0x29be7c[_0x290ecc([0x73,0x70,0x6c,0x69,0x74])](_0x290ecc([0x2e]));return _0x3f06dd[_0x290ecc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ee1fb=>_0x3ee1fb[_0x290ecc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x290ecc([0x2a])))[_0x290ecc([0x6d,0x61,0x70])](_0x2c3bfd=>_0x2c3bfd[_0x290ecc([0x73,0x70,0x6c,0x69,0x74])](_0x290ecc([0x2e])))[_0x290ecc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5cccf5=>_0x5cccf5[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3401d1[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x290ecc([0x6d,0x61,0x70])](_0x42040f=>Array(_0x3401d1[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42040f[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x290ecc([0x66,0x69,0x6c,0x6c])](_0x42040f[0x0]===_0x290ecc([0x2a])?_0x290ecc([0x2a]):'')[_0x290ecc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42040f))[_0x290ecc([0x73,0x6f,0x6d,0x65])](_0x2a776b=>_0x3401d1[_0x290ecc([0x65,0x76,0x65,0x72,0x79])]((_0x51dba1,_0x1c92f0)=>_0x2a776b[_0x1c92f0]===_0x51dba1||_0x2a776b[_0x1c92f0]===_0x290ecc([0x2a])));}function _0x2841c9(){return _0x304f8e&&_0x857d66?new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d42ff,_0x53e270)=>{_0x304f8e[_0x290ecc([0x74,0x68,0x65,0x6e])](_0x4d42ff,_0x53e270),_0x857d66[_0x290ecc([0x74,0x68,0x65,0x6e])](_0x2f805e=>{_0x2f805e!=_0x290ecc([0x56,0x61,0x6c,0x69,0x64])&&_0x4d42ff(_0x2f805e);},_0x53e270);}):_0x304f8e||_0x857d66||_0x290ecc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24eb13(_0x19e354,_0x2c830a){return new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46c2a4=>{if(_0x2b991a())return _0x46c2a4(_0x290ecc([0x56,0x61,0x6c,0x69,0x64]));_0x4175af(),_0x5ab49b[_0x290ecc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x290ecc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a9a59=!0x1;const _0x11f05f=_0x5ddf4e();function _0x10901f(_0x194bfd){return!!_0x194bfd&&(typeof _0x194bfd===_0x290ecc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x194bfd===_0x290ecc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x194bfd[_0x290ecc([0x74,0x68,0x65,0x6e])]===_0x290ecc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x194bfd[_0x290ecc([0x63,0x61,0x74,0x63,0x68])]===_0x290ecc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x393ed1(_0x25faf){_0x2ea64f(_0x25faf)[_0x290ecc([0x74,0x68,0x65,0x6e])](_0x2bb381=>{if(!_0x2bb381||_0x2bb381[_0x290ecc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x290ecc([0x6f,0x6b]))return _0x290ecc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b9758(_0x369af1(_0x11f05f+_0x2c830a))!=_0x2bb381[_0x290ecc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x290ecc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x290ecc([0x56,0x61,0x6c,0x69,0x64]);})[_0x290ecc([0x74,0x68,0x65,0x6e])](_0xa0b1f5=>(_0x13a9be(),_0xa0b1f5),()=>{const _0x1b9475=_0x22b472();return null==_0x1b9475?(_0x13a9be(),_0x290ecc([0x56,0x61,0x6c,0x69,0x64])):_0x290ecc(_0x3c3eab-_0x1b9475>(0x27d454df^_0x214962)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x290ecc([0x74,0x68,0x65,0x6e])](_0x46c2a4)[_0x290ecc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46c2a4(_0x290ecc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x220062=0x3ee3e5f^_0x214962;function _0x13a9be(){const _0x35d387=_0x290ecc([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9758(_0x369af1(_0x19e354)),_0x1b9800=_0x100c1e(_0x1b9758(window[_0x290ecc([0x4d,0x61,0x74,0x68])][_0x290ecc([0x63,0x65,0x69,0x6c])](_0x3c3eab/_0x220062)));window[_0x290ecc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x290ecc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35d387,_0x1b9800);}function _0x22b472(){const _0x1404b0=_0x290ecc([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b9758(_0x369af1(_0x19e354)),_0x3ac9bd=window[_0x290ecc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x290ecc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1404b0);return _0x3ac9bd?window[_0x290ecc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x100c1e(_0x3ac9bd),0x10)*_0x220062:null;}function _0x2ea64f(_0x1fca64){return new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47527f,_0x1d2ac6)=>{_0x1fca64[_0x290ecc([0x74,0x68,0x65,0x6e])](_0x47527f,_0x1d2ac6),window[_0x290ecc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d2ac6,0x3d9041f^_0x214962);});}}_0x5ab49b[_0x290ecc([0x6f,0x6e])](_0x290ecc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ea397,_0x43e483)=>{if(_0x43e483[0x0]!=_0x19e354)return _0x46c2a4(_0x290ecc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43e483[0x1]={..._0x43e483[0x1],[_0x290ecc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11f05f};},{[_0x290ecc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x290ecc([0x68,0x69,0x67,0x68])}),_0x5ab49b[_0x290ecc([0x6f,0x6e])](_0x290ecc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2abff0=>{_0x10901f(_0x2abff0[_0x290ecc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a9a59=!0x0,_0x393ed1(_0x2abff0[_0x290ecc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x290ecc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x290ecc([0x6c,0x6f,0x77])}),_0x3c7055[_0x290ecc([0x74,0x68,0x65,0x6e])](()=>{_0x1a9a59||_0x46c2a4(_0x290ecc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b991a(){return _0x5ab49b[_0x290ecc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x290ecc([0x76,0x69,0x65,0x77])][_0x290ecc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x290ecc([0x61,0x75,0x74,0x6f]);}function _0x4175af(){_0x5ab49b[_0x290ecc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x290ecc([0x76,0x69,0x65,0x77])][_0x290ecc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x290ecc([0x61,0x75,0x74,0x6f]);}}function _0x53b19f(_0x3f5bab){const _0x3f250c=[new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x329590=>setTimeout(_0x329590,0x3d1ee13^_0x214962)),_0x3c7055[_0x290ecc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538907=>{let _0x540a24=0x0;_0x5ab49b[_0x290ecc([0x6d,0x6f,0x64,0x65,0x6c])][_0x290ecc([0x6f,0x6e])](_0x290ecc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x486421,_0x5d8272)=>{_0x5d8272[0x0][_0x290ecc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x540a24++,_0x540a24==(0x3d8d537^_0x214962)&&(_0x538907(),_0x486421[_0x290ecc([0x6f,0x66,0x66])]());});}))];return window[_0x290ecc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x290ecc([0x72,0x61,0x63,0x65])](_0x3f250c)[_0x290ecc([0x74,0x68,0x65,0x6e])](()=>_0x3f5bab);}async function _0x17c92d(){await _0x3c7055,_0x5ab49b[_0x290ecc([0x6d,0x6f,0x64,0x65,0x6c])][_0x290ecc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x680e1f,_0x5ab49b[_0x290ecc([0x6d,0x6f,0x64,0x65,0x6c])][_0x290ecc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x680e1f,_0x5ab49b[_0x290ecc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x290ecc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x59fbb3(){return _0x591aff(_0x290ecc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x536bef(_0x290ecc([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x290ecc([0x73,0x74,0x61,0x74,0x65])]==_0x290ecc([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf6ebf0(){return _0x591aff(_0x290ecc([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 _0x2644e0(){return _0x591aff(_0x290ecc([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3abe0c(_0x1bb9c2){const _0x26e6f3=_0x1e5bb0();_0x5ab49b[_0x26e6f3]=_0x290ecc([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bb9c2,_0x1bb9c2!=_0x290ecc([0x56,0x61,0x6c,0x69,0x64])&&_0x17c92d();}function _0x1e5bb0(){const _0x578f32=window[_0x290ecc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x290ecc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x290ecc([0x6e,0x6f,0x77])]())[_0x290ecc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x290ecc([0x2e]),'');let _0x5598dc=_0x290ecc([0x52]);for(let _0x19dff2=0x0;_0x19dff2<_0x578f32[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19dff2+=0x2){let _0x2c056c=window[_0x290ecc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578f32[_0x290ecc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19dff2,_0x19dff2+0x2));_0x2c056c>=_0x1360e0[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c056c-=_0x1360e0[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5598dc+=_0x1360e0[_0x2c056c];}return _0x5598dc;}function _0x6e79a7(){const _0x40be03=_0x594b3b[_0x290ecc([0x73,0x70,0x6c,0x69,0x74])](_0x290ecc([0x2e]));if(0x3!=_0x40be03[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2db457(_0x40be03[0x1]);function _0x2db457(_0x5bbd1e){const _0x2a53ff=_0x4698d8(_0x5bbd1e);return _0x2a53ff&&_0x1471fc()?_0x2a53ff:null;function _0x1471fc(){const _0x10bfeb=_0x2a53ff[_0x290ecc([0x6a,0x74,0x69])],_0x44ff85=window[_0x290ecc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10bfeb[_0x290ecc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10bfeb[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a10a3={..._0x2a53ff,[_0x290ecc([0x6a,0x74,0x69])]:_0x10bfeb[_0x290ecc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10bfeb[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a10a3[_0x290ecc([0x76,0x63])],_0x369af1(_0x5a10a3)==_0x44ff85;}}}async function _0x5f1d0c(){let _0x277284=!0x0;try{const _0x45154d=_0x594b3b[_0x290ecc([0x73,0x70,0x6c,0x69,0x74])](_0x290ecc([0x2e])),[_0x4d07aa,_0x513144,_0x5ac004]=_0x45154d;return _0x2c5309(_0x4d07aa),await _0x4250ba(_0x4d07aa,_0x513144,_0x5ac004),_0x277284;}catch{return!0x1;}function _0x2c5309(_0x530d0c){const _0x8cf6fe=_0x4698d8(_0x530d0c);_0x8cf6fe&&_0x8cf6fe[_0x290ecc([0x61,0x6c,0x67])]==_0x290ecc([0x45,0x53,0x32,0x35,0x36])||(_0x277284=!0x1);}async function _0x4250ba(_0x181d24,_0x2898bd,_0x5509b2){const _0x1444ec=window[_0x290ecc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x290ecc([0x66,0x72,0x6f,0x6d])](_0x21bc87(_0x5509b2),_0x2bae9b=>_0x2bae9b[_0x290ecc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2910a7=new window[(_0x290ecc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x290ecc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x181d24+_0x290ecc([0x2e])+_0x2898bd),_0x157153=window[_0x290ecc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x290ecc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x157153)return;const _0x3453b3=await _0x157153[_0x290ecc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x290ecc([0x6a,0x77,0x6b]),_0x2e8577,{[_0x290ecc([0x6e,0x61,0x6d,0x65])]:_0x290ecc([0x45,0x43,0x44,0x53,0x41]),[_0x290ecc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x290ecc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x290ecc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x157153[_0x290ecc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x290ecc([0x6e,0x61,0x6d,0x65])]:_0x290ecc([0x45,0x43,0x44,0x53,0x41]),[_0x290ecc([0x68,0x61,0x73,0x68])]:{[_0x290ecc([0x6e,0x61,0x6d,0x65])]:_0x290ecc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3453b3,_0x1444ec,_0x2910a7)||(_0x277284=!0x1);}}function _0x4698d8(_0x1afd51){return _0x1afd51[_0x290ecc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x290ecc([0x65,0x79]))?JSON[_0x290ecc([0x70,0x61,0x72,0x73,0x65])](_0x21bc87(_0x1afd51)):null;}function _0x21bc87(_0x456d72){return window[_0x290ecc([0x61,0x74,0x6f,0x62])](_0x456d72[_0x290ecc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x290ecc([0x2b]))[_0x290ecc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x290ecc([0x2f])));}function _0x369af1(_0x568762){let _0x5a4c18=0x1505;function _0x281cbc(_0x5b17cc){for(let _0x55a701=0x0;_0x55a701<_0x5b17cc[_0x290ecc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55a701++){const _0x4e65f4=_0x5b17cc[_0x290ecc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55a701);_0x5a4c18=(_0x5a4c18<<0x5)+_0x5a4c18+_0x4e65f4,_0x5a4c18&=_0x5a4c18;}}function _0x381e68(_0x492ce3){Array[_0x290ecc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x492ce3)?_0x492ce3[_0x290ecc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x381e68):_0x492ce3&&typeof _0x492ce3==_0x290ecc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x290ecc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x492ce3)[_0x290ecc([0x73,0x6f,0x72,0x74])]()[_0x290ecc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49e9c1,_0x146fb1])=>{_0x281cbc(_0x49e9c1),_0x381e68(_0x146fb1);}):_0x281cbc(window[_0x290ecc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x492ce3));}return _0x381e68(_0x568762),_0x5a4c18>>>0x0;}function _0x1b9758(_0x4b56c4){return _0x4b56c4[_0x290ecc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x290ecc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x290ecc([0x30]));}function _0x100c1e(_0xd31b2d){return _0xd31b2d[_0x290ecc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x290ecc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x290ecc([0x6a,0x6f,0x69,0x6e])]('');}function _0x591aff(_0x35128d){return _0x5ab49b[_0x290ecc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x290ecc([0x68,0x61,0x73])](_0x35128d);}function _0x536bef(_0x1ded8f){return _0x5ab49b[_0x290ecc([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x290ecc([0x67,0x65,0x74])](_0x1ded8f);}function _0x680e1f(){}function _0x290ecc(_0x2e3364){return _0x2e3364['map'](_0x1aa121=>String['fromCharCode'](_0x1aa121))['join']('');}_0x3abe0c(await _0x283a3f());}(this);}set['adapter'](_0x51942e){if(this['_adapter'])throw new _0x3cc67a('track-changes-adapter-already-set',this);this['_adapter']=_0x51942e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d75d2=!0x1,toJSON:_0x3da8b9=!0x1}={}){const _0x325d90=[];for(const _0x1326d2 of this['_suggestions']['values']())_0x3d75d2&&!_0x1326d2['isInContent']||_0x325d90['push'](_0x1326d2);return _0x3da8b9?_0x325d90['map'](_0x474dd5=>_0x474dd5['toJSON']()):_0x325d90;}['getSuggestion'](_0x18cb05){const _0xe0f05f=this['_suggestions']['get'](_0x18cb05);if(!_0xe0f05f)throw new _0x3cc67a('track-changes-suggestion-not-found',this);return _0xe0f05f;}['hasSuggestion'](_0x1e70bc){return this['_suggestions']['has'](_0x1e70bc);}['addSuggestionData'](_0x4680ec){const {authorId:_0x2a0b11,id:_0x17708e,originalSuggestionId:_0x35ba48,attributes:_0x24bfce}=_0x4680ec,[_0x5aae99,_0x414892]=_0x4680ec['type']['split'](':'),_0x26ee61=this['_suggestions']['get'](_0x17708e)||this['_createSuggestion'](_0x5aae99,_0x414892,_0x17708e,_0x2a0b11,_0x24bfce,_0x35ba48);if(this['_addThreadToSuggestion'](_0x26ee61),this['_checkSuggestionCorrectness'](_0x26ee61,_0x5aae99,_0x414892||null,_0x2a0b11),_0x26ee61['createdAt']=_0x4680ec['createdAt'],_0x26ee61['_isDataLoaded']=!0x0,_0x24bfce&&_0x24bfce['@external']){const _0x1d5223=_0x24bfce['@external'],_0x3c29bc=this['_getExternalAuthor'](_0x1d5223['authorName']);_0x26ee61['authoredAt']=_0x1d5223['createdAt'],_0x26ee61['author']=_0x3c29bc,_0x26ee61['isExternal']=!0x0;}else _0x26ee61['authoredAt']=_0x4680ec['createdAt'];switch(_0x4680ec['data']&&(_0x26ee61['data']=_0x4680ec['data']),_0x4680ec['attributes']&&(_0x26ee61['attributes']=_0x4680ec['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26ee61['_saved']=!0x0),this['_suggestionState']['get'](_0x26ee61)){case'notReady':this['_suggestionState']['set'](_0x26ee61,'dataReady');break;case'markerReady':_0x26ee61['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26ee61])),this['_refreshSuggestionsChain'](new Set([_0x26ee61])),this['_suggestionState']['set'](_0x26ee61,'ready'),this['fire']('suggestionLoaded',_0x26ee61)):this['_suggestionState']['set'](_0x26ee61,'removed');}return _0x26ee61;}['acceptSuggestion'](_0x46b3e5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e96c of _0x46b3e5['getAllAdjacentSuggestions']())_0x15e96c['accept']();});});}['discardSuggestion'](_0x4252bf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d5e23 of _0x4252bf['getAllAdjacentSuggestions']())_0x5d5e23['discard']();});});}['enableCommand'](_0x11d61b,_0x37e233){const _0x43ee38=this['editor']['commands']['get'](_0x11d61b);if(!_0x43ee38)throw new _0x3cc67a('track-changes-command-not-found',this,{'commandName':_0x11d61b});if(this['_enabledCommands']['has'](_0x43ee38))throw new _0x3cc67a('track-changes-enable-command-twice',this,{'commandName':_0x11d61b});this['_enabledCommands']['add'](_0x43ee38),_0x37e233&&_0x43ee38['on']('execute',(_0x1a4151,_0x854d69)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x854d69['length']>0x0&&_0x854d69[_0x854d69['length']-0x1]&&_0x854d69[_0x854d69['length']-0x1]['forceDefaultExecution']?_0x854d69['pop']():(_0x1a4151['return']=_0x37e233((..._0x5a5d56)=>_0x43ee38['execute'](..._0x5a5d56,{'forceDefaultExecution':!0x0}),..._0x854d69),_0x1a4151['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4773b1){let _0x5d354b,_0xe0257d;const _0x1e07d8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5d354b=_0x4773b1();}catch(_0x23dcb7){_0xe0257d=_0x23dcb7;}return _0x1e07d8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe0257d&&_0x3cc67a['rethrowUnexpectedError'](_0xe0257d,this),_0x5d354b;}['markInsertion'](_0x56bcad,_0x5174fd=null,_0x530102={}){if(_0x56bcad['isCollapsed'])return null;const _0x47678f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x530102['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34a631,meta:_0x21ea31}of this['_findSuggestions'](_0x56bcad,'insertion'))if(_0x21ea31['isOwn']){if(!_0x21ea31['isNextTo']){if(_0x21ea31['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x34a631,_0x530102))continue;return _0x34a631;}if(sn(_0x34a631,_0x530102))return _0x34a631;this['_breakSuggestionMarker'](_0x34a631,_0x56bcad['start'],_0x56bcad['end']);break;}if(_0x5174fd==_0x34a631['subType']&&sn(_0x34a631,_0x530102)){const _0x381b79=_0x34a631['getFirstRange']();return _0x381b79['start']['isEqual'](_0x56bcad['end'])?this['_setSuggestionRange'](_0x34a631,this['_model']['createRange'](_0x56bcad['start'],_0x381b79['end'])):this['_setSuggestionRange'](_0x34a631,this['_model']['createRange'](_0x381b79['start'],_0x56bcad['end'])),_0x34a631;}}const _0x1cc153=_0x5ddf4e(),_0x52fa0b=_0x47678f['id'],_0x44d6b1=_0x5174fd?'insertion:'+_0x5174fd:'insertion',_0x4c143d=this['_setSuggestionData']({'id':_0x1cc153,'type':_0x44d6b1,'createdAt':new Date(),'authorId':_0x52fa0b,'attributes':_0x530102});return this['_addSuggestionMarker'](_0x44d6b1,_0x1cc153,_0x52fa0b,_0x56bcad),_0x4c143d;}['markMultiRangeInsertion'](_0x4b665f,_0x24aafc='multi',_0x292bad={}){const _0x2446b5=this['editor']['plugins']['get']('Users')['me'],_0x38a609=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x24aafc,'join');this['_trackingSessionId']&&(_0x292bad['trackingSessionId']=this['_trackingSessionId']);for(const _0x31ca53 of this['getSuggestions']())if(_0x31ca53['author']['id']==_0x2446b5['id']&&'insertion'==_0x31ca53['type']&&_0x31ca53['subType']==_0x24aafc&&sn(_0x31ca53,_0x292bad)&&(_0x38a609(_0x31ca53['getRanges'](),_0x4b665f)||_0x38a609(_0x4b665f,_0x31ca53['getRanges']()))){for(const _0x51af08 of _0x4b665f)_0x31ca53['addRange'](_0x51af08);return _0x31ca53;}for(const {suggestion:_0x2cb1a7,meta:_0x5a108c}of this['_findSuggestions'](_0x4b665f,'insertion')){if(!_0x5a108c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a108c['containsRangeInObject'])continue;if(!sn(_0x2cb1a7,_0x292bad))continue;let _0x3af965=!0x0;for(const _0x3aad94 of _0x2cb1a7['getRanges']())for(const _0x2290c4 of _0x4b665f)if(!_0x3aad94['containsRange'](_0x2290c4)){_0x3af965=!0x1;break;}if(_0x3af965)return _0x2cb1a7;}const _0x1db716=_0x5ddf4e(),_0x236954=_0x2446b5['id'],_0x2a4055='insertion:'+_0x24aafc,_0x63715d=this['_setSuggestionData']({'id':_0x1db716,'type':_0x2a4055,'createdAt':new Date(),'authorId':_0x236954,'attributes':_0x292bad});for(const _0x4c2dff of _0x4b665f)this['_addSuggestionMarker'](_0x2a4055,_0x1db716,_0x236954,_0x4c2dff,T['getMultiRangeId']());return _0x63715d;}['markInlineFormat'](_0x575a29,_0x48943e,_0x19240d=null,_0x513b16={}){if(_0x19240d=_0x19240d||Ht(_0x48943e),_0x575a29['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x513b16['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35aa8e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19240d,'accept');return this['forceDefaultExecution'](()=>_0x35aa8e([_0x575a29],_0x48943e,_0x513b16)),null;}const _0x58c37c=this['editor']['plugins']['get']('Users')['me'],_0x38d09c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x18267c,meta:_0x2a6b2d}of this['_findSuggestions'](_0x575a29,'insertion'))_0x2a6b2d['isOwn']&&!_0x2a6b2d['isInsideObject']&&_0x38d09c['push'](..._0x18267c['getRanges']());}const _0xde5643=function(_0x953112,_0x568aad){const _0x1c0087=[];for(const _0x380070 of _0x568aad){const _0xe1e688=_0x953112['getIntersection'](_0x380070);_0xe1e688&&_0x1c0087['push'](_0xe1e688);}return _0x1c0087;}(_0x575a29,_0x38d09c),_0x292721=function(_0x2151d7,_0x30331b){const _0x55ef8c=[_0x2151d7];for(const _0x1d0628 of _0x30331b){let _0x1e1008=0x0;for(;_0x1e1008<_0x55ef8c['length'];){const _0x2e22c7=_0x55ef8c[_0x1e1008]['getDifference'](_0x1d0628);_0x55ef8c['splice'](_0x1e1008,0x1,..._0x2e22c7),_0x1e1008+=_0x2e22c7['length'];}}return _0x55ef8c;}(_0x575a29,_0x38d09c);_0xde5643['length']&&this['_model']['change'](()=>{for(const _0x2fc31a of _0xde5643){const _0x5c7eb6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19240d,'accept');this['forceDefaultExecution'](()=>_0x5c7eb6([_0x2fc31a],_0x48943e,_0x513b16));}});for(const _0x554758 of _0x292721){let _0x507649=null,_0x1ca3fa=_0x554758['start'],_0x35d7b2=_0x554758['end'];for(const {suggestion:_0x1b4840,meta:_0x1ae7d4}of this['_findSuggestions'](_0x554758,'formatInline')){if(!_0x1ae7d4['isOwn'])continue;if(_0x1b4840['subType']!=_0x19240d)continue;if(!sn(_0x1b4840,_0x513b16))continue;const _0x329b14=_0x1b4840['getFirstRange']();if(_0x329b14['containsRange'](_0x554758,!0x0))return null;_0x1ca3fa=_0x1ca3fa['isBefore'](_0x329b14['start'])?_0x1ca3fa:_0x329b14['start'],_0x35d7b2=_0x35d7b2['isAfter'](_0x329b14['end'])?_0x35d7b2:_0x329b14['end'],_0x507649?_0x329b14['start']['isBefore'](_0x507649['getFirstRange']()['start'])?(_0x507649['removeMarkers'](),_0x507649=_0x1b4840):_0x1b4840['removeMarkers']():_0x507649=_0x1b4840;}const _0x1053b9=this['_model']['createRange'](_0x1ca3fa,_0x35d7b2);if(_0x507649)this['_setSuggestionRange'](_0x507649,_0x1053b9);else{const _0x5875e0=_0x5ddf4e(),_0x3b8ce5=_0x58c37c['id'];this['_setSuggestionData']({'id':_0x5875e0,'type':'formatInline:'+_0x19240d,'data':_0x48943e,'createdAt':new Date(),'authorId':_0x3b8ce5,'attributes':_0x513b16}),this['_addSuggestionMarker']('formatInline:'+_0x19240d,_0x5875e0,_0x3b8ce5,_0x1053b9);}}return null;}['markBlockFormat'](_0xb385e1,_0x383ed4,_0x4afdf8=[],_0x471d4e=null,_0x59bb12={}){_0x383ed4['formatGroupId']||(_0x383ed4['formatGroupId']=_0x383ed4['commandName']),_0x383ed4['multipleBlocks']=_0xb385e1['is']('range'),_0x471d4e=_0x471d4e||Ht(_0x383ed4);const _0x31371b=_0x4afdf8['map'](_0x1bd722=>tn(_0x1bd722,this['_model'])),_0x3846fb=_0xb385e1['is']('range')?_0xb385e1:tn(_0xb385e1,this['_model']);if(this['_trackingSessionId']&&(_0x59bb12['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3ce9b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471d4e,'accept');return this['forceDefaultExecution'](()=>_0x3ce9b3([_0x3846fb],_0x383ed4,_0x59bb12)),null;}_0x31371b['push'](_0x3846fb);let _0x40f1f0=!0x0;for(const _0x432769 of _0x31371b)if(!this['_rangeIsInLocalUserInsertion'](_0x432769)){_0x40f1f0=!0x1;break;}if(_0x40f1f0&&'always'!==this['_trackFormatChanges']){const _0x3a34b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471d4e,'accept');return this['forceDefaultExecution'](()=>_0x3a34b9([_0x3846fb],_0x383ed4,_0x59bb12)),null;}let _0x4fc54a=null,_0x4448c0=_0x3846fb['start'],_0x4e95f9=_0x3846fb['end'];for(const {suggestion:_0x1b1a17,meta:_0x49804c}of this['_findSuggestions'](_0x3846fb,'formatBlock')){if(!_0x49804c['isOwn'])continue;if(_0x49804c['isNextTo']||_0x49804c['containsRangeInObject']||_0x49804c['isInsideObject'])continue;if(_0x1b1a17['data']['formatGroupId']!=_0x383ed4['formatGroupId'])continue;if(!sn(_0x1b1a17,_0x59bb12))continue;const _0x14f5a0=_0x1b1a17['getFirstRange']();if(_0x1b1a17['subType']==_0x471d4e){if(_0x14f5a0['containsRange'](_0x3846fb,!0x0))return null;_0x4448c0=_0x4448c0['isBefore'](_0x14f5a0['start'])?_0x4448c0:_0x14f5a0['start'],_0x4e95f9=_0x4e95f9['isAfter'](_0x14f5a0['end'])?_0x4e95f9:_0x14f5a0['end'],_0x4fc54a?_0x14f5a0['start']['isBefore'](_0x4fc54a['getFirstRange']()['start'])?(_0x4fc54a['removeMarkers'](),_0x4fc54a=_0x1b1a17):_0x1b1a17['removeMarkers']():_0x4fc54a=_0x1b1a17;}else{const _0x4e5d7f=_0x3846fb['getIntersection'](_0x14f5a0);this['_cutOutSuggestionMarker'](_0x1b1a17,_0x4e5d7f);}}const _0x1cc799=this['editor']['plugins']['get']('Users')['me'],_0x306e16=_0x5ddf4e(),_0x5ce9aa=_0x1cc799['id'];if(_0x4fc54a)return this['_setSuggestionRange'](_0x4fc54a,this['_model']['createRange'](_0x4448c0,_0x4e95f9)),_0x4fc54a;{const _0x1d50b0=this['_setSuggestionData']({'id':_0x306e16,'type':'formatBlock:'+_0x471d4e,'data':_0x383ed4,'createdAt':new Date(),'authorId':_0x5ce9aa,'attributes':_0x59bb12});return this['_addSuggestionMarker']('formatBlock:'+_0x471d4e,_0x306e16,_0x5ce9aa,this['_model']['createRange'](_0x4448c0,_0x4e95f9)),_0x1d50b0;}}['markMultiRangeBlockFormat'](_0x46ea67,_0x5af926,_0x1617ed=[],_0x35d0ca=null,_0x1c57b1={}){_0x5af926['formatGroupId']||(_0x5af926['formatGroupId']=_0x5af926['commandName']);const _0x3f9fdb=_0x46ea67[0x0];_0x5af926['multipleBlocks']=_0x3f9fdb['is']('range'),_0x35d0ca=_0x35d0ca||Ht(_0x5af926);const _0x3659a5=_0x1617ed['map'](_0x4260b4=>tn(_0x4260b4,this['_model'])),_0x281bdd=_0x3f9fdb['is']('range')?_0x46ea67:_0x46ea67['map'](_0x198135=>tn(_0x198135,this['_model']));if(this['_trackingSessionId']&&(_0x1c57b1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e9a35=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d0ca,'accept');return this['forceDefaultExecution'](()=>_0x4e9a35(_0x281bdd,_0x5af926,_0x1c57b1)),null;}_0x3659a5['push'](..._0x281bdd);let _0x28506c=!0x0;for(const _0x336f7f of _0x3659a5)if(!this['_rangeIsInLocalUserInsertion'](_0x336f7f)){_0x28506c=!0x1;break;}if(_0x28506c&&'always'!==this['_trackFormatChanges']){const _0x1bee7d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d0ca,'accept');return this['forceDefaultExecution'](()=>_0x1bee7d(_0x281bdd,_0x5af926,_0x1c57b1)),null;}const _0x5944f8=this['editor']['plugins']['get']('Users')['me'];for(const _0x1addc1 of this['getSuggestions']()){const _0x237fc6=_0x1addc1['data'];if(_0x1addc1['author']['id']!=_0x5944f8['id'])continue;if('formatBlock'!=_0x1addc1['type']||_0x237fc6['formatGroupId']!=_0x5af926['formatGroupId'])continue;if(!sn(_0x1addc1,_0x1c57b1))continue;const _0x3dbf6f=_0x1addc1['subType']==_0x35d0ca;for(let _0x3d025f=0x0;_0x3d025f<_0x281bdd['length'];_0x3d025f++){const _0x287a44=_0x281bdd[_0x3d025f];for(const _0x509ae8 of _0x1addc1['getMarkers']()){const _0x46b794=_0x509ae8['getRange']();if(_0x287a44['isEqual'](_0x46b794)){_0x3dbf6f?(_0x281bdd['splice'](_0x3d025f,0x1),_0x3d025f--):_0x1addc1['removeMarker'](_0x509ae8['name']);break;}}}}if(0x0==_0x281bdd['length'])return null;const _0x56cb69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35d0ca,'join');for(const _0xf4db25 of this['getSuggestions']()){const _0x2a179c=_0xf4db25['data'];if(_0xf4db25['author']['id']==_0x5944f8['id']&&('formatBlock'==_0xf4db25['type']&&_0x2a179c['formatGroupId']==_0x5af926['formatGroupId']&&_0xf4db25['subType']==_0x35d0ca&&sn(_0xf4db25,_0x1c57b1)&&(_0x56cb69(_0xf4db25['getRanges'](),_0x281bdd)||_0x56cb69(_0x281bdd,_0xf4db25['getRanges']())))){for(const _0x3396f3 of _0x281bdd)_0xf4db25['addRange'](_0x3396f3);return _0xf4db25;}}const _0x3410e2=_0x5ddf4e(),_0x4e1e5b=_0x5944f8['id'],_0x1bce40='formatBlock:'+_0x35d0ca,_0x495644=this['_setSuggestionData']({'id':_0x3410e2,'type':_0x1bce40,'data':_0x5af926,'createdAt':new Date(),'authorId':_0x4e1e5b,'attributes':_0x1c57b1});for(const _0x50d2f7 of _0x281bdd)this['_addSuggestionMarker'](_0x1bce40,_0x3410e2,_0x4e1e5b,_0x50d2f7,T['getMultiRangeId']());return _0x495644;}['markDeletion'](_0x1515e1,_0x3dc11f=null,_0x2d18f5={}){if(_0x1515e1['isCollapsed'])return null;const _0x163f81=this['editor']['plugins']['get']('Users')['me'],_0x8b36c9=new _0x110c0b(_0x1515e1['start'],_0x1515e1['end']);this['_trackingSessionId']&&(_0x2d18f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37525f,meta:_0x501df7}of this['_findSuggestions'](_0x8b36c9,'insertion'))if(_0x501df7['isOwn']&&!_0x501df7['isNextTo']){if(_0x37525f['isMultiRange']){const _0x11a358=_0x37525f['getRanges']()['filter'](_0x5aa4eb=>'$graveyard'!=_0x5aa4eb['root']['rootName']);_0x11a358['every'](_0x291ebc=>_0x8b36c9['containsRange'](_0x291ebc,!0x0))&&_0x37525f['discard']();if(_0x11a358['some'](_0xf55d9=>_0xf55d9['containsRange'](_0x8b36c9,!0x0))){const _0x5d7534=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dc11f,'accept');return this['forceDefaultExecution'](()=>_0x5d7534([_0x8b36c9],null,_0x2d18f5)),null;}}else{const _0x572656=_0x8b36c9['getIntersection'](_0x37525f['getFirstRange']());null!==_0x572656&&_0x37525f['_onDiscard']([_0x572656],null,_0x2d18f5);}}if(_0x8b36c9['detach'](),_0x8b36c9['isCollapsed']||'$graveyard'==_0x8b36c9['root']['rootName'])return null;let _0x412f1c=null,_0x617a4c=_0x8b36c9['start'],_0x1807c6=_0x8b36c9['end'];const _0x1338f0=this['_findSuggestions'](_0x8b36c9,'deletion');for(const {suggestion:_0x25cf9c,meta:_0x4483da}of _0x1338f0){const _0x435d66=this['_model']['createRange'](_0x617a4c,_0x1807c6);if(_0x4483da['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4483da['containsRangeInObject']&&!_0x4483da['isInsideObject'])){if(_0x25cf9c['isMultiRange']){if(!sn(_0x25cf9c,_0x2d18f5))continue;let _0x56abee=!0x0;for(const _0x4cfb6c of _0x25cf9c['getRanges']()){if(_0x4cfb6c['containsRange'](_0x435d66,!0x0))return _0x25cf9c;_0x435d66['containsRange'](_0x4cfb6c)||(_0x56abee=!0x1);}_0x56abee&&_0x25cf9c['discard']();}else{const _0x130c7f=_0x25cf9c['getFirstRange']();if(_0x130c7f['containsRange'](_0x435d66,!0x0))return _0x25cf9c;if(!sn(_0x25cf9c,_0x2d18f5)){_0x435d66['containsRange'](_0x130c7f)?_0x25cf9c['removeMarkers']():_0x130c7f['containsPosition'](_0x617a4c)?_0x617a4c=_0x130c7f['end']:_0x130c7f['containsPosition'](_0x1807c6)&&(_0x1807c6=_0x130c7f['start']);continue;}_0x617a4c=_0x617a4c['isBefore'](_0x130c7f['start'])?_0x617a4c:_0x130c7f['start'],_0x1807c6=_0x1807c6['isAfter'](_0x130c7f['end'])?_0x1807c6:_0x130c7f['end'],_0x2d18f5=Object['assign']({},_0x25cf9c['attributes']),_0x412f1c?_0x130c7f['start']['isBefore'](_0x412f1c['getFirstRange']()['start'])?(_0x412f1c['removeMarkers'](),_0x412f1c=_0x25cf9c):_0x25cf9c['removeMarkers']():_0x412f1c=_0x25cf9c;}}}if(_0x412f1c)return this['_setSuggestionRange'](_0x412f1c,this['_model']['createRange'](_0x617a4c,_0x1807c6)),_0x412f1c;{const _0x39a72f=_0x5ddf4e(),_0x31096c=this['_model']['createRange'](_0x617a4c,_0x1807c6),_0x5c85e7=_0x163f81['id'],_0x46b5a2=_0x3dc11f?'deletion:'+_0x3dc11f:'deletion',_0x167ef8=this['_setSuggestionData']({'id':_0x39a72f,'type':_0x46b5a2,'createdAt':new Date(),'authorId':_0x5c85e7,'attributes':_0x2d18f5});return this['_addSuggestionMarker'](_0x46b5a2,_0x39a72f,_0x5c85e7,_0x31096c),_0x167ef8;}}['markMultiRangeDeletion'](_0x446045,_0x13479e='multi',_0x2a2167={}){const _0x57a8e4=this['editor']['plugins']['get']('Users')['me'],_0x4030da=_0x446045['map'](_0x5a5709=>new _0x110c0b(_0x5a5709['start'],_0x5a5709['end'])),_0x38696c=new Set();this['_trackingSessionId']&&(_0x2a2167['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x582b81,meta:_0x449ce5}of this['_findSuggestions'](_0x4030da,'insertion'))_0x449ce5['isOwn']&&!_0x449ce5['isNextTo']&&_0x38696c['add'](_0x582b81);for(const _0x186aac of _0x38696c)if(_0x186aac['isMultiRange']){const _0x1835a0=_0x186aac['getRanges']();(!_0x186aac['attributes']||!_0x186aac['attributes']['skipNestingCheck'])&&(_0x1835a0['every'](_0x57aee3=>_0x4030da['some'](_0x487490=>_0x487490['containsRange'](_0x57aee3,!0x0)))&&_0x186aac['discard']());if(_0x4030da['every'](_0x187a12=>_0x1835a0['some'](_0x25df5c=>_0x25df5c['containsRange'](_0x187a12,!0x0)))){const _0x2e805e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13479e,'accept');return this['forceDefaultExecution'](()=>_0x2e805e(_0x446045,null,_0x2a2167)),null;}}else{const _0x391750=_0x186aac['getFirstRange']();_0x4030da['some'](_0x229c9d=>_0x229c9d['containsRange'](_0x391750,!0x0))&&_0x186aac['discard']();if(_0x4030da['every'](_0x18cb40=>_0x391750['containsRange'](_0x18cb40,!0x0))){const _0x1ce42c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13479e,'accept');return this['forceDefaultExecution'](()=>_0x1ce42c(_0x4030da,null,_0x2a2167)),null;}}const _0x2aaabe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13479e,'join');let _0x23a30b=null;for(const _0x25f31 of this['getSuggestions']())if(_0x25f31['author']['id']==_0x57a8e4['id']&&_0x25f31['isInContent']&&'deletion'==_0x25f31['type']&&_0x25f31['subType']==_0x13479e&&sn(_0x25f31,_0x2a2167)&&(_0x2aaabe(_0x25f31['getRanges'](),_0x4030da)||_0x2aaabe(_0x4030da,_0x25f31['getRanges']()))){if(_0x23a30b){if(_0x25f31['commentThread']&&_0x25f31['commentThread']['length'])continue;for(const _0x1903aa of _0x25f31['getRanges']())_0x23a30b['isIntersectingWithRange'](_0x1903aa)||_0x23a30b['addRange'](_0x1903aa);_0x25f31['removeMarkers']();}else{_0x23a30b=_0x25f31;for(const _0x53bc11 of _0x4030da)_0x25f31['isIntersectingWithRange'](_0x53bc11)||_0x25f31['addRange'](_0x53bc11);}}if(_0x23a30b)return _0x23a30b;_0x38696c['clear']();for(const {suggestion:_0x15a229,meta:_0x28306e}of this['_findSuggestions'](_0x4030da,'deletion'))_0x28306e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28306e['containsRangeInObject']&&!_0x28306e['isInsideObject'])&&sn(_0x15a229,_0x2a2167)&&_0x38696c['add'](_0x15a229);for(const _0x347f3f of _0x38696c){const _0x4a09b6=_0x347f3f['getRanges']();if(!_0x2a2167||!_0x2a2167['skipNestingCheck']){if(_0x4030da['every'](_0x19ac9c=>_0x4a09b6['some'](_0x539d8b=>_0x539d8b['containsRange'](_0x19ac9c,!0x0))))return _0x347f3f;}(!_0x347f3f['attributes']||!_0x347f3f['attributes']['skipNestingCheck'])&&(_0x4a09b6['every'](_0x38d47b=>_0x4030da['some'](_0x139668=>_0x139668['containsRange'](_0x38d47b,!0x0)))&&_0x347f3f['discard']());}const _0x148284=_0x5ddf4e(),_0x1860ba=_0x57a8e4['id'],_0x5bc853='deletion:'+_0x13479e,_0x5426d4=this['_setSuggestionData']({'id':_0x148284,'type':_0x5bc853,'createdAt':new Date(),'authorId':_0x1860ba,'attributes':_0x2a2167});for(const _0x8acfc of _0x4030da)_0x8acfc['detach'](),_0x8acfc['isCollapsed']||'$graveyard'==_0x8acfc['root']['rootName']||this['_addSuggestionMarker'](_0x5bc853,_0x148284,_0x1860ba,_0x8acfc,T['getMultiRangeId']());return _0x5426d4;}['markAttributeChange'](_0x589059,_0x9a766a,_0x3d3f9d,_0x3b8999,_0x3034d7){if(_0x589059['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x311349=this['editor']['plugins']['get']('Users')['me']['id'],_0x361ddc=Array['from'](this['_suggestions']['values']())['filter'](_0x217504=>'attribute'==_0x217504['type']&&_0x217504['data']['key']==_0x9a766a&&_0x217504['isIntersectingWithRange'](_0x589059));if(this['_trackingSessionId']&&(_0x3034d7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xe43d95=this['_findSuggestions'](_0x589059,'insertion')['filter'](({meta:_0x34dc73})=>_0x34dc73['isOwn']&&!_0x34dc73['isInsideObject']&&!_0x34dc73['isNextTo'])['map'](({suggestion:_0x138de6})=>_0x138de6);_0x361ddc['unshift'](..._0xe43d95);}const _0x524a97=new Map([[_0x589059,_0x3d3f9d]]);for(const _0x3a38fb of _0x361ddc){const _0x4eb772='attribute'==_0x3a38fb['type']?_0x3a38fb['data']['oldValue']:void 0x0,_0x2e620e=_0x3a38fb['getFirstRange'](),_0x442658=Array['from'](_0x524a97['keys']())['find'](_0x3d5f05=>_0x3d5f05['isIntersecting'](_0x2e620e));if(!_0x442658)continue;const _0x1af30e=_0x442658['getDifference'](_0x2e620e);this['_isBlockAttribute'](_0x9a766a)&&'insertion'==_0x3a38fb['type']&&0x0!=_0x1af30e['length']||(_0x524a97['delete'](_0x442658),_0x1af30e['forEach'](_0x49d318=>{_0x524a97['set'](_0x49d318,_0x3d3f9d);}),'insertion'!=_0x3a38fb['type']&&_0x4eb772!=_0x3b8999&&_0x524a97['set'](_0x442658['getIntersection'](_0x2e620e),_0x4eb772));}const _0x231621=[];for(const [_0x28c6d3,_0x3e769c]of _0x524a97){const _0x1fdf9c=_0x5ddf4e(),_0x149f2e={'key':_0x9a766a,'oldValue':_0x3e769c,'newValue':_0x3b8999};_0x9a766a['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':_0x9a766a});const _0x204344=('attribute:'+(_0x9a766a+'|'+Ht({'newValue':_0x3b8999})))['substring'](0x0,0x3c),_0x21a212=this['_setSuggestionData']({'id':_0x1fdf9c,'type':_0x204344,'data':_0x149f2e,'createdAt':new Date(),'authorId':_0x311349,'attributes':_0x3034d7});_0x231621['push'](_0x21a212),this['_addSuggestionMarker'](_0x204344,_0x1fdf9c,_0x311349,_0x28c6d3);}return _0x231621;}['enableDefaultAttributesIntegration'](_0x3edbc0){this['enableCommand'](_0x3edbc0,(_0x3de839,..._0x12bc15)=>{this['recordAttributeChanges'](()=>{_0x3de839(..._0x12bc15);});});}['registerBlockAttribute'](_0x46c321){this['editor']['plugins']['get'](_0x356af8)['registerBlockAttribute'](_0x46c321);}['registerInlineAttribute'](_0x2bffb5){this['editor']['plugins']['get'](_0x356af8)['registerInlineAttribute'](_0x2bffb5);}['startTrackingSession'](_0x117067){return this['_trackingSessionId']=void 0x0!==_0x117067?_0x117067:_0x5ddf4e(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4e27ac){return'attribute'==_0x4e27ac['type']?_0x4e27ac['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x309c06){if(0x0==_0x309c06['length'])return;const _0x58dd49=this['editor'],_0x44d953=_0x58dd49['plugins']['get'](_0x3e095d),_0x51560a=[];_0x58dd49['model']['change'](_0x2a4752=>{for(let _0x414ec2=0x0;_0x414ec2<_0x309c06['length'];_0x414ec2++){const _0x439266=_0x309c06[_0x414ec2];if(_0x439266['baseVersion']=_0x58dd49['model']['document']['version'],_0x439266['isDocumentOperation']=!0x0,_0x44d953['isMarkedRemoveOperation'](_0x439266)){const _0x202a8e=_0x2c11df(_0x439266['newRange'],_0x58dd49['model']);_0x51560a['unshift'](_0x110c0b['fromRange'](_0x202a8e));}else switch(_0x439266['type']){case'rename':{const _0xba0f7=_0x439266['oldName'],_0x5dc768=_0x439266['newName'];if(_0xba0f7==_0x5dc768)break;_0x2a4752['batch']['addOperation'](_0x439266),_0x58dd49['model']['applyOperation'](_0x439266);const _0x58e710='$elementName',_0x4acaa7=_0x439266['position'],_0x403367=_0x58dd49['model']['createRange'](_0x4acaa7,_0x58dd49['model']['createPositionAt'](_0x4acaa7['nodeAfter'],'end'));this['markAttributeChange'](_0x403367,_0x58e710,_0xba0f7,_0x5dc768,{'groupId':_0x5ddf4e()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x16b7bd=_0x439266['oldValue'],_0x1d4cf5=_0x439266['newValue'];if(_0x16b7bd==_0x1d4cf5)break;_0x2a4752['batch']['addOperation'](_0x439266),_0x58dd49['model']['applyOperation'](_0x439266);const _0x2adc9f=_0x439266['key'];if(!this['_isRegisteredAttribute'](_0x2adc9f))break;const _0x328456=_0x2c11df(_0x439266['range'],_0x58dd49['model']);this['markAttributeChange'](_0x328456,_0x2adc9f,_0x16b7bd,_0x1d4cf5,{'groupId':_0x5ddf4e()});break;}case'insert':{_0x2a4752['batch']['addOperation'](_0x439266),_0x58dd49['model']['applyOperation'](_0x439266);if(_0x309c06[_0x414ec2+0x1]&&'move'==_0x309c06[_0x414ec2+0x1]['type'])break;const _0x55a5b8=_0x439266['position'],_0xd0d031=_0x439266['howMany'],_0x8a71a6=_0x2c11df(_0x58dd49['model']['createRange'](_0x55a5b8,_0x55a5b8['getShiftedBy'](_0xd0d031)),_0x58dd49['model']);this['markInsertion'](_0x8a71a6);break;}case'split':{_0x2a4752['batch']['addOperation'](_0x439266),_0x58dd49['model']['applyOperation'](_0x439266);const _0x41b3d4=_0x439266['splitPosition'],_0x3c543d=_0x439266['moveTargetPosition'];this['markInsertion'](_0x58dd49['model']['createRange'](_0x41b3d4,_0x3c543d));break;}case'move':case'remove':_0x2a4752['batch']['addOperation'](_0x439266),_0x58dd49['model']['applyOperation'](_0x439266);}}for(const _0x28c03d of _0x51560a)_0x28c03d['detach'](),this['markDeletion'](_0x28c03d);});}['_setSuggestionRange'](_0x1a73a9,_0xa754cd){const _0x2ffbdb=_0x1a73a9['getFirstMarker']();this['_model']['change'](_0x717bdd=>{_0x717bdd['updateMarker'](_0x2ffbdb,{'range':_0xa754cd});});}['_addThreadToSuggestion'](_0x150436){const _0x5d1c4d=_0x150436['id'],_0x6c6b96=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5d1c4d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x6c6b96,'threadId':_0x5d1c4d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3851f5=this['_commentsRepository']['getCommentThread'](_0x5d1c4d);_0x3851f5['unbind']('isRemovable'),_0x3851f5['isRemovable']=!0x1,_0x150436['commentThread']=_0x3851f5;}['_checkSuggestionCorrectness'](_0x1e49d9,_0x2b31c7,_0x4d89a8,_0x2de650){if(_0x1e49d9['type']!=_0x2b31c7||_0x1e49d9['subType']!=_0x4d89a8||_0x1e49d9['creator']['id']!=_0x2de650)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cc67a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x207c2d,_0x5195be){const _0x10e790=_0x207c2d['getFirstRange']();if(_0x5195be['isEqual'](_0x10e790))_0x207c2d['removeMarkers']();else{if(_0x10e790['containsRange'](_0x5195be)){const _0x3d5be0=this['_model']['createPositionAt'](_0x5195be['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x207c2d,this['_model']['createRange'](_0x10e790['start'],_0x3d5be0));const _0x2d5ec6=_0x5ddf4e(),_0x11801e=_0x207c2d['creator']['id'],_0x23bb95=_0x207c2d['type']+':'+_0x207c2d['subType'];this['_setSuggestionData']({'id':_0x2d5ec6,'type':_0x23bb95,'createdAt':new Date(),'authorId':_0x11801e,'data':_0x207c2d['data'],'attributes':_0x207c2d['attributes']});const _0x4c4e18=this['_model']['createPositionAt'](_0x5195be['end']['parent'],'after'),_0x959090=this['_model']['createRange'](_0x4c4e18,_0x10e790['end']);this['_addSuggestionMarker'](_0x23bb95,_0x2d5ec6,_0x11801e,_0x959090);}else{if(_0x10e790['containsPosition'](_0x5195be['start'])){const _0xa1f618=this['_model']['createPositionAt'](_0x5195be['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x207c2d,this['_model']['createRange'](_0x10e790['start'],_0xa1f618));}else{const _0x2b9e92=this['_model']['createPositionAt'](_0x5195be['end']['parent'],'after');this['_setSuggestionRange'](_0x207c2d,this['_model']['createRange'](_0x2b9e92,_0x10e790['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3b57f6){for(const {suggestion:_0x1c1c52,meta:_0x393ada}of this['_findSuggestions'](_0x3b57f6,'insertion')){if(!_0x393ada['isOwn'])continue;const _0x4ccfa4=_0x1c1c52['getRanges']();for(const _0x3bb654 of _0x4ccfa4)if(!_0x3b57f6['getDifference'](_0x3bb654)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f999e){return this['editor']['plugins']['get']('Users')['getUser'](_0x4f999e);}['_getExternalAuthor'](_0x16d8ef){const _0x579f76=this['editor']['plugins']['get']('Users'),_0x5f57a9=_0x18192e('external:'+_0x16d8ef),_0x5b8a9e=_0x579f76['getUser'](_0x5f57a9);return _0x5b8a9e||_0x579f76['addUser']({'id':_0x5f57a9,'name':_0x16d8ef});}['_createSuggestion'](_0x4d2796,_0xcffb30,_0x3ecfb0,_0x311275,_0x15c1be,_0x57e191){const _0x4640eb=this['_getAuthorFromId'](_0x311275);if(!_0x4640eb)throw new _0x3cc67a('track-changes-user-not-found',this,{'authorId':_0x311275,'suggestionId':_0x3ecfb0});const _0x50d7b7=this['_suggestionFactory']['buildSuggestion'](_0x4d2796,_0xcffb30,_0x3ecfb0,_0x4640eb,_0x15c1be,_0x1a47a1=>{this['_updateSuggestionData'](_0x3ecfb0,{'attributes':_0x1a47a1});const _0xe60c1c=this['getSuggestion'](_0x3ecfb0);this['_joinWithAdjacentSuggestions'](new Set([_0xe60c1c])),this['_refreshSuggestionsChain'](new Set([_0xe60c1c]));},_0x57e191);return this['listenTo'](_0x50d7b7,'accept',()=>{this['_updateSuggestionData'](_0x3ecfb0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x50d7b7,'discard',()=>{this['_updateSuggestionData'](_0x3ecfb0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ecfb0,_0x50d7b7),this['_suggestionState']['set'](_0x50d7b7,'notReady'),_0x50d7b7;}['_splitMarkerName'](_0xd5cbf9){return _0x217cf3(_0xd5cbf9);}['_breakSuggestionMarker'](_0x46682d,_0x24eae6,_0x11683a){const _0x1f38e5=_0x46682d['getFirstRange'](),_0x22e29d=_0x1f38e5['start'],_0x501b88=_0x1f38e5['end'];this['_setSuggestionRange'](_0x46682d,this['_model']['createRange'](_0x22e29d,_0x24eae6));const _0x1d17d1=_0x5ddf4e(),_0x53ae89=_0x46682d['creator']['id'],_0x2a4b6f=_0x46682d['type']+(_0x46682d['subType']?':'+_0x46682d['subType']:'');this['_setSuggestionData']({'id':_0x1d17d1,'type':_0x2a4b6f,'createdAt':new Date(),'authorId':_0x53ae89,'originalSuggestionId':_0x46682d['_originalSuggestionId']||_0x46682d['id'],'attributes':_0x46682d['attributes'],'data':_0x46682d['data']});const _0x364a42=this['_getAttributeKey'](_0x46682d);('formatBlock'==_0x46682d['type']||_0x364a42&&this['_isBlockAttribute'](_0x364a42))&&(_0x11683a=this['_model']['createPositionBefore'](_0x11683a['parent'])),this['_addSuggestionMarker'](_0x2a4b6f,_0x1d17d1,_0x53ae89,this['_model']['createRange'](_0x11683a,_0x501b88));}['_findSuggestions'](_0x31d7a6,_0x196daa=null){const _0x3ffe93=[],_0x559a1d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31d7a6)||(_0x31d7a6=[_0x31d7a6]);for(const _0x186b10 of this['getSuggestions']()){if(!_0x186b10['isInContent'])continue;if(_0x196daa&&_0x186b10['type']!=_0x196daa)continue;let _0x325a81=!0x1;for(const _0x305426 of _0x186b10['getRanges']()){for(const _0x2d4670 of _0x31d7a6){const _0x3a1548=_0x2d4670['start']['isEqual'](_0x305426['end'])||_0x2d4670['end']['isEqual'](_0x305426['start']);if(_0x3a1548||_0x2d4670['getIntersection'](_0x305426)){const _0x10aa10=_0x2d4670['containsRange'](_0x305426)&&zt(this['_model']['schema'],_0x305426['start'],_0x2d4670),_0x49fc39=_0x305426['containsRange'](_0x2d4670)&&zt(this['_model']['schema'],_0x2d4670['start'],_0x305426);_0x3ffe93['push']({'suggestion':_0x186b10,'meta':{'isOwn':_0x559a1d==_0x186b10['author'],'isNextTo':_0x3a1548,'isInsideObject':_0x10aa10,'containsRangeInObject':_0x49fc39}}),_0x325a81=!0x0;break;}}if(_0x325a81)break;}}return _0x3ffe93;}['_addSuggestionMarker'](_0x3bec12,_0x2376ad,_0x2c7315,_0x1181b4,_0x56ca66){this['_model']['change'](_0x183375=>{let _0x1ec1ad='suggestion:'+_0x3bec12+':'+_0x2376ad+':'+_0x2c7315;_0x56ca66&&(_0x1ec1ad=_0x1ec1ad+':'+_0x56ca66),_0x183375['addMarker'](_0x1ec1ad,{'range':_0x1181b4,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3bb10d){const _0x4408b4=_0x3bb10d['previous'],_0x152031=_0x3bb10d['next'];_0x3bb10d['previous']=null,_0x3bb10d['next']=null,null!=_0x4408b4&&_0x4408b4['next']==_0x3bb10d&&(_0x4408b4['next']=_0x152031),null!=_0x152031&&_0x152031['previous']==_0x3bb10d&&(_0x152031['previous']=_0x4408b4),'ready'==this['_suggestionState']['get'](_0x3bb10d)&&(this['_suggestionState']['set'](_0x3bb10d,'removed'),this['fire']('suggestionUnloaded',_0x3bb10d,_0x4408b4,_0x152031));}['_setSuggestionData'](_0x290cfc){const _0x35fd81=_0x290cfc['id'],_0x25d2bc=this['addSuggestionData'](_0x290cfc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5cbc02=this['editor']['plugins']['get']('PendingActions'),_0x13b4b9=_0x25d2bc['hasComments'],_0x578629=_0x25d2bc['subType']?_0x25d2bc['type']+':'+_0x25d2bc['subType']:_0x25d2bc['type'],_0x353699=this['editor']['locale'],_0x5bb1d8=_0x5cbc02['add'](o(_0x353699,'PENDING_ACTION_SUGGESTION')),_0x5f35f9={'id':_0x35fd81,'type':_0x578629,'hasComments':_0x13b4b9,'data':_0x290cfc['data']||null,'originalSuggestionId':_0x290cfc['originalSuggestionId']||null,'attributes':_0x25d2bc['attributes']};this['_adapter']['addSuggestion'](_0x5f35f9)['then'](_0x4dd450=>{_0x25d2bc['_saved']=!0x0,_0x5cbc02['remove'](_0x5bb1d8),_0x4dd450&&_0x4dd450['createdAt']&&(this['_suggestions']['get'](_0x35fd81)['createdAt']=_0x4dd450['createdAt']);})['catch'](_0x27abb7=>{throw _0x4c011a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25d2bc['discard']();}),_0x25d2bc['stopListening'](),this['_suggestions']['delete'](_0x25d2bc['id']),this['_suggestionState']['delete'](_0x25d2bc),_0x27abb7;});}return _0x25d2bc;}['_isBlockAttribute'](_0xf595ff){return this['editor']['plugins']['get'](_0x356af8)['isBlockAttribute'](_0xf595ff);}['_isInlineAttribute'](_0x4ab189){return this['editor']['plugins']['get'](_0x356af8)['isInlineAttribute'](_0x4ab189);}['_updateSuggestionData'](_0x570a38,_0x5cb26b){const _0x3bd7c3=this['editor']['plugins']['get']('PendingActions'),_0x38915d=this['getSuggestion'](_0x570a38);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x38915d['_saved']){const _0x324604=_0x3bd7c3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x570a38,_0x5cb26b)['then'](()=>{_0x3bd7c3['remove'](_0x324604);});}else _0x38915d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x570a38,_0x5cb26b);});}}['_getSuggestionData'](_0x26f5fd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cc67a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x26f5fd);}['_handleNewSuggestionMarker'](_0x382f70){const {id:_0x30827b,type:_0x413be9,subType:_0x561534,authorId:_0x47fc0b}=this['_splitMarkerName'](_0x382f70),_0x6b7e20=this['_suggestions']['get'](_0x30827b)||this['_createSuggestion'](_0x413be9,_0x561534,_0x30827b,_0x47fc0b,{});switch(this['_checkSuggestionCorrectness'](_0x6b7e20,_0x413be9,_0x561534,_0x47fc0b),this['_suggestionState']['get'](_0x6b7e20)){case'notReady':this['_getSuggestionData'](_0x30827b)['then'](_0x55e8aa=>{let _0x5f5ad7=Promise['resolve']();_0x55e8aa['hasComments']&&(_0x5f5ad7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30827b})),_0x5f5ad7['then'](()=>{this['addSuggestionData'](_0x55e8aa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x6b7e20,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30827b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x6b7e20,'ready'),this['fire']('suggestionLoaded',_0x6b7e20);break;case'ready':this['fire']('suggestionChanged',_0x6b7e20);}return _0x6b7e20['addMarkerName'](_0x382f70),_0x6b7e20;}['_refreshSuggestionsChain'](_0x70f827){const _0x4ddae3=Array['from'](_0x70f827),_0x397784=_0x4ddae3['filter'](_0x525f5b=>'attribute'==_0x525f5b['type']);this['_refreshAttributeSuggestionsChain'](_0x397784);const _0x491e15=_0x4ddae3['filter'](_0x1bc7df=>!_0x1bc7df['isMultiRange']&&'attribute'!=_0x1bc7df['type']),_0x32a7ac=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x146759=>!_0x146759['isMultiRange']&&'attribute'!=_0x146759['type']),_0x3ccd2c=_0x32a7ac['filter'](_0x53f3f0=>!_0x70f827['has'](_0x53f3f0)),_0x276931=new Map(_0x32a7ac['map'](_0x456eba=>[_0x456eba,this['_suggestionFactory']['getSuggestionCallback'](_0x456eba['type'],_0x456eba['subType'],'chain')])),_0x5b9179=new Map(_0x32a7ac['map'](_0x1e7cee=>[_0x1e7cee,_0x1e7cee['getFirstRange']()])),_0x433e74=new Set(),_0x471136=new Set();for(let _0x84f3a4=0x0;_0x84f3a4<_0x491e15['length'];_0x84f3a4++)_0x1297ef(_0x491e15[_0x84f3a4],_0x491e15,_0x84f3a4+0x1);for(let _0x3b5a37=0x0;_0x3b5a37<_0x491e15['length'];_0x3b5a37++)_0x1297ef(_0x491e15[_0x3b5a37],_0x3ccd2c,0x0);const _0x46b168=new Set();for(let _0x2be2bb=0x0;_0x2be2bb<_0x491e15['length'];_0x2be2bb++){const _0x53f497=_0x491e15[_0x2be2bb];!_0x471136['has'](_0x53f497)&&_0x53f497['previous']&&(_0x46b168['add'](_0x53f497['previous']),_0x53f497['previous']['next']===_0x53f497&&(_0x53f497['previous']['next']=null),_0x53f497['previous']=null),!_0x433e74['has'](_0x53f497)&&_0x53f497['next']&&(_0x46b168['add'](_0x53f497['next']),_0x53f497['next']['previous']===_0x53f497&&(_0x53f497['next']['previous']=null),_0x53f497['next']=null);}function _0x1297ef(_0x548929,_0x5c0bd0,_0x5e1d62){for(let _0x5ae8f8=_0x5e1d62;_0x5ae8f8<_0x5c0bd0['length'];_0x5ae8f8++){const _0x41b85b=_0x3c2cf8(_0x548929,_0x5c0bd0[_0x5ae8f8]);_0x41b85b&&(_0x41b85b[0x0]['next']=_0x41b85b[0x1],_0x41b85b[0x1]['previous']=_0x41b85b[0x0],_0x433e74['add'](_0x41b85b[0x0]),_0x471136['add'](_0x41b85b[0x1]));}}function _0x3c2cf8(_0x419f3a,_0x3caa57){if(_0x419f3a['author']['id']!==_0x3caa57['author']['id'])return null;const _0x24d7c9=_0x276931['get'](_0x419f3a)(_0x419f3a,_0x3caa57,_0x5b9179['get'](_0x419f3a),_0x5b9179['get'](_0x3caa57));if(!_0x24d7c9)return null;return _0x276931['get'](_0x3caa57)(_0x419f3a,_0x3caa57,_0x5b9179['get'](_0x419f3a),_0x5b9179['get'](_0x3caa57))?_0x24d7c9[0x1]['commentThread']&&_0x24d7c9[0x1]['commentThread']['length']?null:_0x24d7c9:null;}_0x46b168['size']&&this['_refreshSuggestionsChain'](_0x46b168);}['_refreshAttributeSuggestionsChain'](_0x2b3a9f){if(0x0==_0x2b3a9f['length'])return;const _0x45a35b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14f5cb=>'attribute'==_0x14f5cb['type']&&_0x14f5cb['_isDataLoaded']),_0x3ba323=[],_0x558940=new Map();for(const _0x4a5a18 of _0x45a35b){const _0x5c6569=_0x18192e(_0x4a5a18['attributes']);_0x558940['has'](_0x5c6569)||(_0x558940['set'](_0x5c6569,_0x3ba323['length']),_0x3ba323['push']([]));const _0x1344ba=_0x558940['get'](_0x5c6569);_0x3ba323[_0x1344ba]['push'](_0x4a5a18);}!(function(){_0x3ba323['sort']((_0x38c4b3,_0x3d8687)=>{const _0x5dba03=_0x38c4b3[0x0]['createdAt'],_0x2d0e48=_0x3d8687[0x0]['createdAt'];return _0x5dba03==_0x2d0e48?_0x38c4b3[0x0]['attributes']['groupId']<_0x3d8687[0x0]['attributes']['groupId']?-0x1:0x1:_0x5dba03<_0x2d0e48?-0x1:0x1;});for(const _0x4df588 of _0x3ba323)_0x4df588['sort']((_0x25b603,_0xf6aab0)=>_0x25b603['id']<_0xf6aab0['id']?-0x1:0x1);}());for(let _0x24588c=0x0;_0x24588c<_0x3ba323['length'];_0x24588c++){if(0x0==_0x3ba323[_0x24588c]['length'])continue;const _0x11112f=[];for(let _0x48d98a=_0x24588c+0x1;_0x48d98a<_0x3ba323['length'];_0x48d98a++)0x0!=_0x3ba323[_0x48d98a]['length']&&_0x121941(_0x3ba323[_0x24588c],_0x3ba323[_0x48d98a])&&_0x11112f['push'](_0x48d98a);for(const _0x50f34c of _0x11112f)_0x3ba323[_0x24588c]=_0x3ba323[_0x24588c]['concat'](_0x3ba323[_0x50f34c]),_0x3ba323[_0x50f34c]=[];}for(const _0x24bb04 of _0x3ba323)for(let _0x3034f3=0x0;_0x3034f3<_0x24bb04['length'];_0x3034f3++){const _0xc02d41=_0x24bb04[_0x3034f3+0x1]||null;_0x24bb04[_0x3034f3]['next']!==_0xc02d41&&(_0x24bb04[_0x3034f3]['next']=_0xc02d41);}for(const _0x472fcd of _0x3ba323)for(let _0x23bf92=0x0;_0x23bf92<_0x472fcd['length'];_0x23bf92++){const _0x5c4a32=_0x472fcd[_0x23bf92-0x1]||null;_0x472fcd[_0x23bf92]['previous']!==_0x5c4a32&&(_0x472fcd[_0x23bf92]['previous']=_0x5c4a32);}function _0x121941(_0x6e242d,_0x11a730){if(_0x6e242d[0x0]['attributes']['groupId']!==_0x11a730[0x0]['attributes']['groupId']&&_0x6e242d[0x0]['author']!==_0x11a730[0x0]['author'])return!0x1;if(!function(_0x8b4af7,_0x1dd2d4){if(!_0x8b4af7['hasComments']&&!_0x1dd2d4['hasComments'])return!0x0;if(_0x8b4af7['hasComments']&&_0x1dd2d4['hasComments'])return!0x1;if(_0x8b4af7['hasComments']&&_0x1dd2d4['createdAt']<_0x8b4af7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1dd2d4['hasComments']&&_0x8b4af7['createdAt']<_0x1dd2d4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6e242d[0x0],_0x11a730[0x0]))return!0x1;const _0x9a6220=Jt(_0x6e242d[0x0]['attributes'],['groupId','trackingSessionId']),_0x489941=Jt(_0x11a730[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3bfd67(_0x9a6220,_0x489941))return!0x1;if(_0x6e242d[0x0]['attributes']['groupId']==_0x11a730[0x0]['attributes']['groupId'])return!0x0;if(_0x6e242d[0x0]['attributes']['trackingSessionId']!==_0x11a730[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6e242d['every'](_0x131ef3=>_0x11a730['some'](_0x4110ab=>_0x131ef3['getFirstRange']()['isEqual'](_0x4110ab['getFirstRange']())))&&_0x11a730['every'](_0x362408=>_0x6e242d['some'](_0x371ec5=>_0x362408['getFirstRange']()['isEqual'](_0x371ec5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56806b){const _0x5400c6=Array['from'](_0x56806b),_0x5c14db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x15b8ba=_0x5c14db['filter'](_0x42ea81=>!_0x56806b['has'](_0x42ea81)),_0x5b6cc5=new Map(_0x5400c6['map'](_0x139e32=>[_0x139e32,this['_suggestionFactory']['getSuggestionCallback'](_0x139e32['type'],_0x139e32['subType'],'join')])),_0x1b88c3=new Map(_0x5c14db['map'](_0x1c70bd=>[_0x1c70bd,_0x1c70bd['getRanges']()]));for(let _0x404b8e=0x0;_0x404b8e<_0x5400c6['length'];_0x404b8e++){if(_0x44cdf8(this,_0x5400c6[_0x404b8e],_0x5400c6,_0x404b8e+0x1))return!0x0;}for(let _0x16e0ff=0x0;_0x16e0ff<_0x5400c6['length'];_0x16e0ff++){if(_0x44cdf8(this,_0x5400c6[_0x16e0ff],_0x15b8ba,0x0))return!0x0;}return!0x1;function _0x44cdf8(_0x316562,_0x5d7fb7,_0x59714b,_0x339d9c){for(let _0x240581=_0x339d9c;_0x240581<_0x59714b['length'];_0x240581++){const _0x127843=_0x59714b[_0x240581];if(_0x127843['type']!==_0x5d7fb7['type']||_0x127843['author']['id']!==_0x5d7fb7['author']['id']||_0x127843['subType']!==_0x5d7fb7['subType'])continue;if(!en(_0x5d7fb7,_0x127843))continue;if('attribute'==_0x5d7fb7['type']&&_0x5d7fb7['data']['oldValue']!=_0x127843['data']['oldValue'])continue;if('attribute'==_0x5d7fb7['type']&&_0x316562['_isBlockAttribute'](_0x5d7fb7['data']['key']))continue;if('formatBlock'==_0x5d7fb7['type']){const _0x4738fc=_0x316562['editor']['model'],_0x4d6404=_0x5d7fb7['getContainedElement']();if(_0x4d6404&&(_0x4738fc['schema']['isObject'](_0x4d6404)||_0x4738fc['schema']['isLimit'](_0x4d6404)))continue;}const _0x13c6e4=_0x5b6cc5['get'](_0x5d7fb7),_0x5dce7d=_0x1b88c3['get'](_0x5d7fb7),_0x1e17cb=_0x1b88c3['get'](_0x127843),_0x5e7d55=_0x5d7fb7['commentThread']&&_0x5d7fb7['commentThread']['length'],_0x4439b8=_0x127843['commentThread']&&_0x127843['commentThread']['length'];if(!_0x5e7d55&&_0x13c6e4(_0x1e17cb,_0x5dce7d))return _0x316562['_joinSuggestions'](_0x127843,_0x5d7fb7),_0x1b88c3['delete'](_0x5d7fb7),!0x0;if(!_0x4439b8&&_0x13c6e4(_0x5dce7d,_0x1e17cb))return _0x316562['_joinSuggestions'](_0x5d7fb7,_0x127843),_0x1b88c3['delete'](_0x127843),!0x0;}return!0x1;}}['_joinSuggestions'](_0x29854e,_0xc22683){if(_0x29854e['isMultiRange']){for(const _0x2674a9 of _0xc22683['getRanges']())_0x29854e['addRange'](_0x2674a9);}else{const _0x34b98a=_0xc22683['getFirstRange']()['end'];this['_setSuggestionRange'](_0x29854e,this['_model']['createRange'](_0x29854e['getFirstRange']()['start'],_0x34b98a));}_0xc22683['removeMarkers']();}['_getMarkerAnnouncementText'](_0x277216,_0x5efa9b,_0x2c4578){const _0x3dd2c2=_0x277216['startsWith']('format')||_0x277216['startsWith']('attribute')?'FORMATTING':_0x277216['toUpperCase']();return o(this['editor']['locale'],_0x5efa9b+'_'+_0x3dd2c2+'_SUGGESTION_ANNOUNCEMENT',_0x2c4578);}['_initAriaMarkerChangeAnnouncements'](){const _0x482d94=this['editor'];if(!_0x482d94['ui'])return;const {ariaLiveAnnouncer:_0x367a31}=_0x482d94['ui'];_0x3c492f(this['_model'],({left:_0x4252e3,entered:_0x4ae3f2})=>{for(const _0x2d90c9 of _0x4252e3){const {group:_0x25913d,type:_0x58fc7b}=this['_splitMarkerName'](_0x2d90c9['name']);if('suggestion'===_0x25913d){_0x367a31['announce'](this['_getMarkerAnnouncementText'](_0x58fc7b,'LEAVE'));break;}}for(const _0x52b25a of _0x4ae3f2){const {group:_0x3de77d,type:_0x4baff5}=this['_splitMarkerName'](_0x52b25a['name']);if('suggestion'===_0x3de77d){_0x367a31['announce'](this['_getMarkerAnnouncementText'](_0x4baff5,'ENTER',_0x2641b3(_0x2df5c8)));break;}}});}['_processAttributeChanges'](_0x3f6135){if(this['_recordAttributeSuggestions'])return!0x1;const _0x207ce3=this['editor'],_0x1613ea=_0x207ce3['model']['document']['differ']['getChanges']();if(0x0==_0x1613ea['length'])return!0x1;const _0x517a26=[],_0x3e2cad=_0x1613ea['filter'](_0xcea847=>'attribute'==_0xcea847['type']),_0xddbea6=_0x1613ea['filter'](_0x58ce7a=>'insert'==_0x58ce7a['type']&&'$text'!=_0x58ce7a['name']),_0x425459=_0x1613ea['filter'](_0x4e51de=>'remove'==_0x4e51de['type']&&'$text'!=_0x4e51de['name']);for(const _0x4b0a11 of _0x3e2cad)_0x517a26['push']({'key':_0x4b0a11['attributeKey'],'newValue':_0x4b0a11['attributeNewValue'],'oldValue':_0x4b0a11['attributeOldValue'],'range':Zt(_0x4b0a11['range'],_0x207ce3['model'])});for(const _0x2179f1 of _0xddbea6){const _0x545604=_0x425459['find'](_0x565cbf=>_0x565cbf['position']['isEqual'](_0x2179f1['position']));_0x545604&&_0x517a26['push']({'key':m,'newValue':_0x2179f1['name'],'oldValue':_0x545604['name'],'range':_0x207ce3['model']['createRangeOn'](_0x2179f1['position']['nodeAfter'])});}return 0x0!=_0x517a26['length']&&this['_reduceExistingSuggestions'](_0x3f6135,_0x517a26);}['_processAttributeSuggestions'](_0x39504b){let _0x36e395=!0x1;const _0x1f41a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x45f02d=>_0x45f02d['data']['newRange']&&_0x45f02d['name']['startsWith']('suggestion:attribute:'));for(const _0x4a9d8f of _0x1f41a1){const {subType:_0x305cd2,id:_0x5e01e9}=this['_splitMarkerName'](_0x4a9d8f['name']),_0x36af5d=_0x305cd2['split']('|')[0x0];for(const _0x263a93 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x263a93['id']!=_0x5e01e9&&'attribute'==_0x263a93['type']&&_0x263a93['data']&&_0x263a93['data']['key']==_0x36af5d&&_0x263a93['getFirstRange']()['isIntersecting'](_0x4a9d8f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x263a93,_0x4a9d8f['data']['newRange'],_0x39504b),_0x36e395=!0x0);}return _0x36e395;}['recordAttributeChanges'](_0x3ba4e3){this['_recordAttributeSuggestions']=!0x0,_0x3ba4e3();}['_isRegisteredAttribute'](_0x59aa4d){return this['editor']['plugins']['get'](_0x356af8)['isRegisteredAttribute'](_0x59aa4d);}['_reduceExistingSuggestions'](_0x190459,_0x58be51){if(0x0==_0x58be51['length'])return!0x1;let _0x544453=!0x1;for(const _0x38eda8 of _0x58be51){const _0x568eab=this['_findSuggestions'](_0x38eda8['range'],'attribute')['filter'](_0x4f356a=>!_0x4f356a['meta']['isNextTo'])['map'](_0x299111=>_0x299111['suggestion']),_0x5051ad=_0x18192e({'newValue':_0x38eda8['newValue']});_0x568eab['filter'](_0x8fcec0=>{const [_0x5b2076,_0x19ea6e]=_0x8fcec0['subType']['split']('|');return _0x5b2076==_0x38eda8['key']&&_0x19ea6e!=_0x5051ad;})['forEach'](_0x3e9238=>{this['_reduceSuggestionAttributeRange'](_0x3e9238,_0x38eda8['range'],_0x190459),_0x544453=!0x0;});}return _0x544453;}['_reduceSuggestionAttributeRange'](_0x41321c,_0x1b37be,_0x5d2943){const _0x2bd510=_0x41321c['getFirstRange']()['getDifference'](_0x1b37be);0x0!==_0x2bd510['length']?0x1!==_0x2bd510['length']?this['_breakSuggestionMarker'](_0x41321c,_0x1b37be['start'],_0x1b37be['end']):this['_setSuggestionRange'](_0x41321c,_0x2bd510[0x0]):_0x5d2943['removeMarker'](_0x41321c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x408b78){this['_editor']=_0x408b78,this['_model']=_0x408b78['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x321fa5,_0x7b591e,_0x14b4aa,_0x5e7207,_0x30938f,_0x4ec203,_0x15ce5f){return new T(this['_model'],{'type':_0x321fa5,'subType':_0x7b591e,'id':_0x14b4aa,'originalSuggestionId':_0x15ce5f,'author':_0x5e7207,'creator':_0x5e7207,'attributes':_0x30938f,'onAttributesChange':_0x4ec203,'onAccept':(..._0x4174b2)=>this['getSuggestionCallback'](_0x321fa5,_0x7b591e,'accept')(..._0x4174b2),'onDiscard':(..._0x2a9d01)=>this['getSuggestionCallback'](_0x321fa5,_0x7b591e,'discard')(..._0x2a9d01)});}['registerCustomCallback'](_0x1f1e95,_0x277e03,_0x1dcd5f,_0x3da9b3){const _0x17edd1=_0x1f1e95+':'+_0x277e03+':'+_0x1dcd5f;this['_customCallbacks']['set'](_0x17edd1,_0x3da9b3);}['getSuggestionCallback'](_0x577799,_0x3411d5,_0x4f9063){const _0x3d7a96=_0x577799+':'+_0x3411d5+':'+_0x4f9063;return this['_customCallbacks']['get'](_0x3d7a96)||this['_defaultCallbacks']['get'](_0x577799+':'+_0x4f9063);}['_registerDefaultCallbacks'](){const _0x112a2b=()=>!0x1,_0x28f287=_0x7c1d5a=>{_0x7c1d5a['sort']((_0x1530a9,_0x55ca98)=>_0x1530a9['start']['isBefore'](_0x55ca98['start'])?0x1:-0x1),this['_model']['change'](_0x3f3828=>{for(const _0x121f04 of _0x7c1d5a){let _0x5e5b15;_0x5e5b15=_0x121f04['end']['isAtEnd']&&_0x121f04['end']['parent']==_0x121f04['start']['nodeAfter']?_0x3f3828['createSelection'](_0x121f04['start']['nodeAfter'],'on'):_0x3f3828['createSelection'](_0x121f04),this['_model']['deleteContent'](_0x5e5b15,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c19c4=(_0x708a27,_0x19a4da)=>{_0x19a4da&&this['_model']['change'](_0x2f32b5=>{const {commandName:_0x4fdccc,commandParams:_0x4116d7=[]}=_0x19a4da,_0x11f370=_0x708a27['map'](_0x402c72=>(Kt(_0x402c72)&&(_0x402c72=this['_model']['createRange'](_0x402c72['end'])),_0x402c72))['filter'](_0x139dcf=>'$graveyard'!==_0x139dcf['root']['rootName']);if(_0x11f370['length']<0x1)return;const _0x4c9e1e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b0862=>_0x110c0b['fromRange'](_0x2b0862));_0x2f32b5['setSelection'](_0x11f370);for(const _0x9fbac of this['_editor']['commands']['commands']())_0x9fbac['refresh']();_0x4116d7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fdccc,..._0x4116d7);const _0xe674c4=_0x4c9e1e['filter'](_0x539663=>'$graveyard'!=_0x539663['root']['rootName']);_0xe674c4['length']>0x0&&_0x2f32b5['setSelection'](_0xe674c4);for(const _0x164710 of _0x4c9e1e)_0x164710['detach']();});},_0x3c3899=(_0x242497,_0x5f0798)=>0x1==_0x242497['length']&&0x1==_0x5f0798['length']&&_0x242497[0x0]['end']['isEqual'](_0x5f0798[0x0]['start']),_0x5d7891=(_0x42e3f3,_0x290758,_0x3cd8bf,_0x45e4c6)=>nn(_0x42e3f3,_0x290758,_0x3cd8bf,_0x45e4c6)?[_0x42e3f3,_0x290758]:nn(_0x290758,_0x42e3f3,_0x45e4c6,_0x3cd8bf)?[_0x290758,_0x42e3f3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x112a2b),this['_defaultCallbacks']['set']('insertion:discard',_0x28f287),this['_defaultCallbacks']['set']('insertion:join',_0x3c3899),this['_defaultCallbacks']['set']('insertion:chain',_0x5d7891),this['_defaultCallbacks']['set']('deletion:accept',_0x28f287),this['_defaultCallbacks']['set']('deletion:discard',_0x112a2b),this['_defaultCallbacks']['set']('deletion:join',_0x3c3899),this['_defaultCallbacks']['set']('deletion:chain',_0x5d7891),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c19c4),this['_defaultCallbacks']['set']('formatInline:discard',_0x112a2b),this['_defaultCallbacks']['set']('formatInline:join',_0x3c3899),this['_defaultCallbacks']['set']('formatInline:chain',_0x112a2b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c19c4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x112a2b),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c3899),this['_defaultCallbacks']['set']('formatBlock:chain',_0x112a2b),this['_defaultCallbacks']['set']('attribute:accept',_0x112a2b),this['_defaultCallbacks']['set']('attribute:discard',(_0x77f303,_0xffa257)=>{if(!_0xffa257)return;const _0x5317af=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xe0cb8b=>{if(_0xffa257['key']==m)for(const _0xc77cd3 of _0x77f303){const _0x4195a7=_0xc77cd3['start']['nodeAfter'],_0x90ad38=_0xffa257['oldValue'];_0xe0cb8b['rename'](_0x4195a7,_0x90ad38);}else{if(_0x5317af['_isBlockAttribute'](_0xffa257['key'])){for(const _0x1e6941 of _0x77f303)void 0x0!==_0xffa257['oldValue']?_0xe0cb8b['setAttribute'](_0xffa257['key'],_0xffa257['oldValue'],_0x1e6941['start']['nodeAfter']):_0xe0cb8b['removeAttribute'](_0xffa257['key'],_0x1e6941['start']['nodeAfter']);}else{for(const _0x164179 of _0x77f303)_0xffa257['oldValue']?_0xe0cb8b['setAttribute'](_0xffa257['key'],_0xffa257['oldValue'],_0x164179):_0xe0cb8b['removeAttribute'](_0xffa257['key'],_0x164179);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c3899);}}function zt(_0x33d917,_0x99df31,_0x5a14ee){for(const _0x3098e3 of _0x99df31['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3098e3['root']==_0x3098e3)return!0x1;if(!_0x5a14ee['containsItem'](_0x3098e3))return!0x1;if(_0x33d917['isObject'](_0x3098e3)||_0x33d917['isLimit'](_0x3098e3))return!0x0;}return!0x1;}function Kt(_0x119b1e){return _0x119b1e['end']['parent']==_0x119b1e['start']['nodeAfter']&&_0x119b1e['end']['isAtStart'];}function Wt(_0x5ce97b,_0x335fa1,_0x2245fe,_0x255b61){const _0x2a7c0a=_0x18b935=>!_0x18b935['item']['is']('$textProxy')&&!_0x255b61['isObject'](_0x18b935['item']),_0x5f1c93=_0x5ce97b['start']['getLastMatchingPosition'](_0x2a7c0a),_0x50538c=_0x5ce97b['end']['getLastMatchingPosition'](_0x2a7c0a,{'direction':'backward'});return(!_0x5ce97b['start']['isEqual'](_0x5f1c93)||!_0x5ce97b['end']['isEqual'](_0x50538c))&&(_0x5f1c93['isBefore'](_0x50538c)?_0x2245fe['updateMarker'](_0x335fa1,{'range':_0x2245fe['createRange'](_0x5f1c93,_0x50538c)}):_0x2245fe['removeMarker'](_0x335fa1),!0x0);}function Ht(_0x439f54){return _0x18192e(_0x439f54);}function Qt(_0x205601){const _0x43e07e=_0x205601['start']['nodeAfter'];return _0x43e07e&&_0x43e07e['is']('element');}function Xt(_0x32758f){return Kt(_0x32758f)||function(_0x6fb558){return _0x6fb558['start']['parent']==_0x6fb558['end']['nodeBefore']&&_0x6fb558['start']['isAtEnd'];}(_0x32758f);}function Yt(_0x26d826,_0x5ec4b4){try{const _0x68518c=_0x26d826['getRange']();for(const _0x2c80ce of _0x5ec4b4)if(_0x26d826!==_0x2c80ce&&_0x68518c&&_0x68518c['isIntersecting'](_0x2c80ce['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x39fd12,_0x14795a){return null==_0x39fd12['end']['nodeBefore']&&_0x39fd12['end']['parent']==_0x39fd12['start']['nodeAfter']?tn(_0x39fd12['start']['nodeAfter'],_0x14795a):_0x39fd12;}function tn(_0x1b037a,_0x3ddb8c){const _0x5a115a=_0x3ddb8c['schema']['isObject'](_0x1b037a)||_0x3ddb8c['schema']['isSelectable'](_0x1b037a);return _0x3ddb8c['createRange'](_0x3ddb8c['createPositionAt'](_0x1b037a,'before'),_0x5a115a?_0x3ddb8c['createPositionAfter'](_0x1b037a):_0x3ddb8c['createPositionAt'](_0x1b037a,'end'));}function nn(_0x284e58,_0x2105b6,_0x41ff4a,_0x16bbb8){return!!en(_0x284e58,_0x2105b6)&&_0x41ff4a['end']['isEqual'](_0x16bbb8['start']);}function en(_0x9820c3,_0x44d727){if(!_0x9820c3['_isDataLoaded']||!_0x44d727['_isDataLoaded'])return!0x1;const _0x58d0d6=new Set(Object['keys'](_0x9820c3['attributes'])),_0x27f889=new Set(Object['keys'](_0x44d727['attributes']));if(_0x58d0d6['delete']('groupId'),_0x27f889['delete']('groupId'),0x0==_0x58d0d6['size']&&0x0==_0x27f889['size'])return!0x0;if(_0x58d0d6['size']!=_0x27f889['size'])return!0x1;const _0x19f96a={..._0x9820c3['attributes']},_0x57cc10={..._0x44d727['attributes']};return delete _0x19f96a['groupId'],delete _0x57cc10['groupId'],JSON['stringify'](_0x19f96a)==JSON['stringify'](_0x57cc10);}function sn(_0xd3a78b,_0x4c9e90){const _0x17869c=on(_0xd3a78b['attributes']),_0x257396=on(_0x4c9e90);if(!_0xd3a78b['_isDataLoaded'])return!0x1;for(const _0x31b6ad of Object['keys'](_0x257396))if(!_0x3bfd67(_0x17869c[_0x31b6ad],_0x257396[_0x31b6ad]))return!0x1;return!0x0;}function on(_0x5c49ca){const _0x351cb7=Object['assign']({},_0x5c49ca);return delete _0x351cb7['skipNestingCheck'],delete _0x351cb7['tablePasteChainId'],_0x351cb7;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xb17401(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d6844,_0x3dd8fb,_0x288864,_0x22673b){super(),this['model']=_0x3dd8fb,this['view']=_0x288864,this['commentThreadController']=_0x22673b,this['_editor']=_0x2d6844,this['_acceptCommand']=_0x2d6844['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d6844['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5bbdb3,_0x121b44)=>_0x5bbdb3||_0x121b44),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xfbd7c0=>_0xfbd7c0&&this['_editor']['model']['canEditAt'](_0x3dd8fb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x90b68d=>_0x90b68d&&this['_editor']['model']['canEditAt'](_0x3dd8fb['getRanges']())),this['_pendingAction']=null,_0x288864['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x288864,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x288864,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x288864,'change:isDirty',()=>{_0x288864['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 _0x4ef22b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4ef22b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2682c3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3d0b3d,_0x213b6a,_0x10566b,_0x47cdca){super(_0x3d0b3d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3e2cce(_0x3d0b3d,o(_0x3d0b3d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x213b6a['authoredAt']),this['bind']('authoredAt')['to'](_0x213b6a),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',_0x213b6a,'authoredAt',this,'descriptionParts',(_0x1a89d3,_0x2e97ef,_0x3f5c40)=>{const _0x4295eb=_0x3f5c40['map'](_0x372bc1=>ls(_0x372bc1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a89d3-0x1,_0x213b6a['author']['name'],_0x2e97ef?_0x47cdca['formatDateTime'](_0x2e97ef):'',new DOMParser()['parseFromString'](_0x4295eb,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f658f(),this['focusTracker']=new _0x584cc8(),this['keystrokes']=new _0x48423c(),this['focusCycler']=new _0x18143f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5d163b=>_0x5d163b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x213b6a,this['_localUser']=_0x10566b,this['_config']=_0x47cdca,_0x47cdca['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x40342b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x21bf15}=this['_config'];this['commentsListView']=new _0x21bf15(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',_0x38ecba=>_0x38ecba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x107f2f,_0x464f77)=>_0x107f2f||!!_0x464f77);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x460da0}=this['_config'],_0xe4ea4e=new _0x460da0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x37134c=_0xe4ea4e['commentInputView'];return _0xe4ea4e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x37134c,'value',(_0xabc5e7,_0x3b7542,_0x265213)=>!!_0x265213||_0xabc5e7&&!_0x3b7542),_0x37134c['on']('submit',(_0x250c42,_0x5869c2)=>{this['fire']('addComment',_0x5869c2),_0x37134c['editor']['setData']('');}),_0x37134c['on']('cancel',()=>this['focus']()),_0x37134c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe4ea4e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2d4f44,_0x37a3d6,_0x5d4d03,_0x2aa711){super(_0x2d4f44,_0x37a3d6,_0x5d4d03,_0x2aa711),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x101242=>_0x101242&&_0x101242[0x0]?_0x101242[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5049a1,_0xbedd60)=>{let _0x1c9a0a='';for(const _0x3e7f5b of _0x5049a1)_0x1c9a0a+='<p>'+ls(_0x3e7f5b['content'],_0x3e7f5b['color'])+'</p>';return _0xbedd60?_0x1c9a0a:_0x4cd635(_0x1c9a0a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2aa711['SuggestionView'](_0x2d4f44,_0x37a3d6,{'formatDateTime':_0x2aa711['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 _0x3b68c8=this['bindTemplate'],_0xfec65d=[this['suggestionView']];return this['commentsListView']&&_0xfec65d['push'](this['commentsListView']),this['commentThreadInputView']&&_0xfec65d['push'](this['commentThreadInputView']),_0xfec65d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b68c8['if']('isActive','ck-suggestion-wrapper--active'),_0x3b68c8['to']('type',_0x1b79a2=>'ck-suggestion-'+_0x1b79a2),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':_0x3b68c8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xfec65d};}['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 _0x2682c3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x47ccfc,_0x3592ab,_0x34c822){super(_0x47ccfc),this['_model']=_0x3592ab,this['_config']=_0x34c822,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3592ab),this['acceptButton']=this['_createButton'](o(_0x47ccfc,'Accept\x20suggestion'),_0x1f511f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x47ccfc,'Discard\x20suggestion'),_0x3acaa0,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4e1e1c(_0x47ccfc,_0x3592ab['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f658f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x584cc8(),this['keystrokes']=new _0x48423c(),this['focusCycler']=new _0x18143f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e7625=>_0x2e7625['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x491835=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x491835['innerHTML']=this['description'],this['on']('change:description',(_0x1d15c8,_0x27e176,_0x1f9b53)=>{_0x491835['innerHTML']=_0x1f9b53;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x15a66d=this['bindTemplate'],_0x461e03=[{'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':_0x15a66d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x15a66d['to']('authoredAt',_0x56438c=>this['_config']['formatDateTime'](_0x56438c))}]}]},{'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']&&_0x461e03['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':_0x461e03}]};}['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'](_0x3fc3fd,_0x33d2ac,_0xf74651,_0x971a15,_0x5aed04){const _0x575e21=new _0x1d3e61(this['locale']);return _0x575e21['set']({'label':_0x3fc3fd,'icon':_0x33d2ac,'tooltip':!0x0,'tooltipPosition':_0x5aed04}),_0x575e21['extendTemplate']({'attributes':{'class':_0xf74651}}),_0x575e21['on']('execute',()=>{this['fire'](_0x971a15,this['_model']['id']);}),_0x575e21;}['_setupKeyboardNavigation'](){const _0x30fed1=this['element'];this['keystrokes']['listenTo'](_0x30fed1);for(const _0x240ad1 of this['focusables'])this['focusTracker']['add'](_0x240ad1['element']),this['keystrokes']['listenTo'](_0x240ad1['element']);this['keystrokes']['set']('enter',(_0x4ad9f7,_0x2ebad1)=>{_0x30fed1===_0x4ad9f7['target']&&(this['focusCycler']['focusFirst'](),_0x2ebad1());}),this['keystrokes']['set']('esc',(_0x496edc,_0x532a86)=>{_0x30fed1!==_0x496edc['target']&&(this['focus'](),_0x532a86());});}}class u extends _0x57897a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x114b0f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x534ce3){super(_0x534ce3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c3ef6=this['editor']['config'];_0x3c3ef6['define']('trackChanges.SuggestionThreadView',fe),_0x3c3ef6['define']('trackChanges.SuggestionView',we),_0x3c3ef6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c3ef6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3bf2d7,_0x33dde6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x31f05c,_0x5ecdff]of this['_handleControllerBuffer']){const _0x4605ab=this['_suggestionToController']['has'](_0x31f05c);_0x4605ab||_0x5ecdff?_0x4605ab&&_0x5ecdff&&this['_destroyController'](_0x31f05c):this['_initializeController'](_0x31f05c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3bf2d7,_0x33dde6);}['init'](){const _0x85da9=this['editor'],_0x406f0a=_0x85da9['plugins']['get']('TrackChangesEditing'),_0x3194f8=_0x85da9['plugins']['get']('Annotations'),_0x25d23c=_0x85da9['plugins']['get']('EditorAnnotations'),_0x5ccdd1=_0x85da9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x25d23c['addSourceCollector'](()=>{const _0x2bc5bc=[];for(const [_0x3cd38f,_0x59f983]of Array['from'](this['_suggestionToController'])){const _0x379f49=_0x3cd38f['getAllAdjacentSuggestions'](),_0x3f44b1=[];for(const _0x3e7e68 of _0x379f49){if(!_0x3e7e68['isInContent'])continue;if(_0x3e7e68['isMultiRange']){_0x3f44b1['push'](..._0x3e7e68['getRanges']());continue;}const _0x5552a8=_0x3e7e68['getFirstRange']();if(_0x3f44b1['length']>0x0){const _0x16b3af=_0x3f44b1[0x0]['getJoined'](_0x5552a8);if(_0x16b3af){_0x3f44b1[0x0]=_0x16b3af;continue;}}_0x3f44b1['push'](_0x5552a8);}_0x2bc5bc['push']([_0x59f983['view'],_0x3f44b1]);}return _0x2bc5bc;}),this['listenTo'](_0x406f0a,'suggestionLoaded',(_0xe8bddf,_0x569a3a)=>{this['listenTo'](_0x569a3a,'change:previous',(_0x5ae74a,_0x2b05f3,_0x53ed0a,_0x265835)=>{_0x569a3a['isInContent']&&(null==_0x53ed0a?(this['_updateController'](_0x265835['head']),this['_handleSuggestionControllerDelayed'](_0x569a3a,!0x1)):(this['_updateController'](_0x53ed0a['head']),null==_0x265835&&this['_handleSuggestionControllerDelayed'](_0x569a3a,!0x0)));}),null!==_0x569a3a['previous']?this['_updateController'](_0x569a3a['head']):this['_handleSuggestionControllerDelayed'](_0x569a3a,!0x1);}),this['listenTo'](_0x406f0a,'suggestionUnloaded',(_0x8e1d44,_0x36be56,_0x391778)=>{this['stopListening'](_0x36be56,'change:previous'),this['_handleControllerBuffer']['delete'](_0x36be56),this['_suggestionToController']['has'](_0x36be56)&&this['_destroyController'](_0x36be56),_0x391778&&this['_updateController'](_0x391778['head']);}),this['listenTo'](_0x406f0a,'suggestionChanged',(_0xd048a7,_0x147e83)=>{this['_updateController'](_0x147e83);}),this['listenTo'](_0x3194f8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5ccdd1,'addComment',(_0x316409,{threadId:_0x2b1504,isFromAdapter:_0x1405c0})=>{if(_0x1405c0||!_0x406f0a['hasSuggestion'](_0x2b1504))return;const _0x2af138=_0x406f0a['getSuggestion'](_0x2b1504);this['_suggestionToController']['get'](_0x2af138)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x426e5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a37c0;for(const _0x521826 in _0x426e5d){const _0x2ff6dc=_0x521826,_0x448888=_0x426e5d[_0x2ff6dc];if('trackChangesLicenseKeyValid'==_0x448888||'trackChangesLicenseKeyInvalid'==_0x448888||'trackChangesLicenseKeyExpired'==_0x448888||'trackChangesLicenseKeyDomainLimit'==_0x448888||'trackChangesLicenseKeyNotAllowed'==_0x448888||'trackChangesLicenseKeyEvaluationLimit'==_0x448888||'trackChangesLicenseKeyUsageLimit'==_0x448888){delete _0x426e5d[_0x2ff6dc],_0x2a37c0=_0x448888,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a37c0&&_0x426e5d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a37c0&&_0x426e5d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a37c0&&_0x426e5d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a37c0&&_0x426e5d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a37c0&&_0x426e5d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a37c0&&_0x426e5d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x39ce32){const _0x3c9a3c=this['_suggestionToController']['get'](_0x39ce32);if(!_0x3c9a3c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3c9a3c['view'])||null;}['getSuggestionForAnnotation'](_0x2ad2a7){const _0x49c165=this['_viewToController']['get'](_0x2ad2a7['innerView']);return _0x49c165?_0x49c165['model']:null;}['_refreshActiveMarkers'](){const _0xd24b73=this['editor']['plugins']['get']('Annotations'),_0x19e902=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b5449=Array['from'](_0xd24b73['activeAnnotations'],_0x54d054=>_0x54d054['innerView'])['filter'](_0x12f3a5=>this['_viewToController']['has'](_0x12f3a5)),_0x1caeea=[];for(const _0x365e12 of _0x2b5449){const _0xbc5aba=this['_viewToController']['get'](_0x365e12)['model']['getAllAdjacentSuggestions']();_0x1caeea['push'](..._0xbc5aba['reduce']((_0x456b00,_0x371e8d)=>[..._0x456b00,..._0x371e8d['getMarkerNames']()],[]));}_0x19e902['activeMarkers']=_0x1caeea;}['_addUIComponentsToFactory'](){const _0x92dc3=this['editor'],_0x39c469=_0x92dc3['locale'],_0x5de01b=o(_0x39c469,'Track\x20changes'),_0x16d5b3=new _0x39e284([{'type':'switchbutton','model':new _0x431553({'withText':!0x0,'isToggleable':!0x0,'label':_0x5de01b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x431553({'withText':!0x0,'label':o(_0x39c469,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x431553({'withText':!0x0,'label':o(_0x39c469,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x431553({'withText':!0x0,'label':o(_0x39c469,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x431553({'withText':!0x0,'label':o(_0x39c469,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x92dc3['plugins']['has']('TrackChangesPreview')&&_0x16d5b3['addMany']([{'type':'separator'},{'type':'button','model':new _0x431553({'withText':!0x0,'label':o(_0x39c469,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x31c5b4 of _0x16d5b3)if(ke(_0x31c5b4)){const _0x5a6c9a=_0x92dc3['commands']['get'](_0x31c5b4['model']['commandName']);_0x31c5b4['model']['bind']('isOn','isEnabled')['to'](_0x5a6c9a,'value','isEnabled');}_0x92dc3['ui']['componentFactory']['add']('trackChanges',_0x633aa4=>this['_createToolbarButton'](_0x633aa4,_0x16d5b3,_0x5de01b)),_0x92dc3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3931e1=>this['_createMenuBarMenu'](_0x3931e1,_0x16d5b3,_0x5de01b));}['_createToolbarButton'](_0x34bdc2,_0x5b7c63,_0x57eeae){const _0x4ef6a2=_0x2bcbec(_0x34bdc2,_0x1a386c),_0x43958e=this['editor']['commands']['get']('trackChanges');_0x4ef6a2['buttonView']['set']({'tooltip':_0x57eeae,'label':_0x57eeae,'icon':_0x45dd9a}),_0x4ef6a2['buttonView']['bind']('isOn')['to'](_0x43958e,'value'),_0x4ef6a2['buttonView']['on']('execute',()=>{_0x43958e['execute'](),this['editor']['editing']['view']['focus']();}),_0x3478e4(_0x4ef6a2,_0x5b7c63,{'role':'menu'});const _0x2eaf83=[];for(const _0x260c40 of _0x5b7c63)ke(_0x260c40)&&_0x2eaf83['push'](this['editor']['commands']['get'](_0x260c40['model']['commandName']));const _0x3fe8cc=_0x4ef6a2['buttonView'];return _0x3fe8cc['actionView']['unbind']('isEnabled'),_0x3fe8cc['arrowView']['unbind']('isEnabled'),_0x3fe8cc['actionView']['bind']('isEnabled')['to'](_0x43958e,'isEnabled'),_0x3fe8cc['arrowView']['bind']('isEnabled')['toMany'](_0x2eaf83,'isEnabled',(..._0x309a6b)=>_0x309a6b['some'](_0x316eef=>_0x316eef)),_0x4ef6a2['on']('execute',_0x1ca588=>{this['editor']['execute'](_0x1ca588['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ef6a2;}['_createMenuBarMenu'](_0x38856d,_0x36bbb5,_0x20be5f){const _0x431ec5=new _0x37f73e(_0x38856d),_0x2d05de=this['editor']['commands']['get']('trackChanges');_0x431ec5['buttonView']['set']({'label':_0x20be5f,'icon':_0x45dd9a});const _0x5f142a=new _0x3de5c6(_0x38856d);for(const _0x2261b3 of _0x36bbb5){if('separator'==_0x2261b3['type']){_0x5f142a['items']['add'](new _0x12c6cb(_0x38856d));continue;}const _0x36c11e=new _0x55ad21(_0x38856d,_0x431ec5),_0x43251e=new _0xd98227(_0x38856d),_0x173efa=_0x2261b3['model'];_0x43251e['bind'](...Object['keys'](_0x173efa))['to'](_0x173efa),_0x43251e['delegate']('execute')['to'](_0x431ec5),_0x43251e['on']('execute',()=>{this['editor']['execute'](_0x173efa['commandName']),this['editor']['editing']['view']['focus']();}),_0x36c11e['children']['add'](_0x43251e),_0x5f142a['items']['add'](_0x36c11e);}return _0x431ec5['bind']('isEnabled')['to'](_0x2d05de,'isEnabled'),_0x431ec5['panelView']['children']['add'](_0x5f142a),_0x431ec5;}['_initializeController'](_0x1ba04f){const _0x307c79=this['editor'],_0x5a47c0=_0x307c79['config'],_0x387a02=_0x307c79['plugins']['get']('Annotations'),_0x416c08=_0x307c79['plugins']['get']('CommentsRepository'),_0x1e370e=_0x307c79['plugins']['get']('EditorAnnotations'),_0x28185b=_0x307c79['plugins']['get'](_0x114b0f)['me'],_0x150b59=_0x5a47c0['get']('trackChanges')['SuggestionThreadView'],_0x404488=_0x5a47c0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12b873,CommentThreadInputView:_0x31de32}=_0x307c79['plugins']['get']('CommentsUI');let _0x557dfa,_0x231704,_0x3a07b9;this['_annotationViews']['has'](_0x1ba04f['id'])?(_0x231704=this['_annotationViews']['get'](_0x1ba04f['id']),_0x557dfa=_0x231704['mainView']):(_0x557dfa=new _0x150b59(_0x307c79['locale'],_0x1ba04f,_0x28185b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5a47c0['get']('comments.editorConfig'),'licenseKey':_0x5a47c0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5a47c0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5a47c0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5a47c0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x284689(_0x5a47c0['get']('locale'),_0x307c79['locale']),'CommentView':_0x5a47c0['get']('comments')['CommentView'],'CommentsListView':_0x12b873,'CommentThreadInputView':_0x31de32,'SuggestionView':_0x404488}),_0x557dfa['suggestionView']['acceptButton']['on']('execute',()=>{_0x307c79['editing']['view']['focus']();}),_0x557dfa['suggestionView']['discardButton']['on']('execute',()=>{_0x307c79['editing']['view']['focus']();}),_0x231704=_0x387a02['createAnnotationView'](this['editor']['locale'],_0x557dfa),_0x231704['bind']('isDirty')['to'](_0x557dfa,'isDirty'),_0x231704['bind']('length')['to'](_0x557dfa),_0x231704['bind']('type')['to'](_0x557dfa,'type',_0x4782ea=>'suggestion-'+_0x4782ea),_0x557dfa['on']('escape',()=>{_0x3a07b9['fire']('escape');}),this['_annotationViews']['set'](_0x1ba04f['id'],_0x231704));const _0x570dd4=_0x416c08['createCommentThreadController'](_0x1ba04f['commentThread'],_0x557dfa),_0x2674a4=new pe(_0x307c79,_0x1ba04f,_0x557dfa,_0x570dd4),_0x1042c6=_0x1ba04f['getAllAdjacentSuggestions']()['filter'](_0xc66710=>_0xc66710['isInContent']);_0x557dfa['descriptionParts']=_0x307c79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1042c6),this['_suggestionToController']['set'](_0x1ba04f,_0x2674a4),this['_viewToController']['set'](_0x557dfa,_0x2674a4);const _0x35f4b9=()=>{const _0x2dcfc6=[],_0x3a7d03=_0x1ba04f['getAllAdjacentSuggestions']()['filter'](_0x1c8d6b=>_0x1c8d6b['isInContent']);for(const _0xb6879b of _0x3a7d03)_0x2dcfc6['push'](..._0xb6879b['getMarkers']());return _0x5e3402(_0x307c79['editing'],_0x2dcfc6);};_0x3a07b9=_0x387a02['createAnnotation']({'view':_0x231704,'target':_0x35f4b9,'type':()=>'suggestion-'+_0x2674a4['view']['type'],'isVisible':!!_0x35f4b9()}),_0x416c08['_bindAnnotationToEditors'](_0x557dfa,_0x3a07b9),_0x387a02['add'](_0x3a07b9),_0x1e370e['registerAnnotation'](_0x3a07b9);}['_destroyController'](_0x427d7b){const _0x5d1b9e=this['editor']['plugins']['get']('CommentsRepository'),_0xce960b=this['editor']['plugins']['get']('Annotations'),_0x497d25=this['_suggestionToController']['get'](_0x427d7b),_0x26729e=_0x497d25['view'],_0x324e01=_0xce960b['getByInnerView'](_0x26729e);_0x5d1b9e['_unbindEditors'](_0x26729e),_0x324e01&&_0xce960b['remove'](_0x324e01),this['_suggestionToController']['delete'](_0x427d7b),this['_viewToController']['delete'](_0x26729e),_0x497d25['destroy']();}['_updateController'](_0x28821d){if(!_0x28821d['isInContent']||!this['_suggestionToController']['has'](_0x28821d))return;const _0x1918bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21f81b=this['_suggestionToController']['get'](_0x28821d),_0x53ae44=_0x28821d['getAllAdjacentSuggestions']();_0x21f81b['view']['descriptionParts']=_0x1918bd['descriptionFactory']['getDescriptions'](_0x53ae44);}['destroy'](){for(const _0x1e8ed7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e8ed7);for(const _0x12e292 of this['_annotationViews']['values']())_0x12e292['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x7b77f9){return'model'in _0x7b77f9;}class Ne extends _0x57897a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5957d5){this['editor']['plugins']['get'](d)['adapter']=_0x5957d5;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x387612){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x387612);}['getSuggestions']({skipNotAttached:_0x5abea7=!0x1,toJSON:_0x334635=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5abea7,'toJSON':_0x334635});}['getSuggestion'](_0x3dafed){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3dafed);}}const p=['Pagination'];class re extends _0x57897a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe2eb22=this['editor'];if(_0xe2eb22['config']['define']('trackChangesData.editorCreator',_0x413f20=>{const _0x3594aa=_0xe2eb22['model']['document']['getRootNames']()['reduce']((_0x14b597,_0x858816)=>(_0x14b597[_0x858816]='',_0x14b597),{});return _0xe2eb22['constructor']['create'](_0x3594aa,_0x413f20);}),'function'!=typeof _0xe2eb22['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cc67a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2277d0){return P(this['editor'],!0x0,_0x2277d0);}['getDataWithDiscardedSuggestions'](_0x10c630){return P(this['editor'],!0x1,_0x10c630);}}class Fe extends _0x57897a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19ccd7){function _0x3ef1e7(_0x3552ed){return _0x3552ed['map'](_0x40781c=>String['fromCharCode'](_0x40781c))['join']('');}super(_0x19ccd7),this['result']='end',_0x19ccd7[_0x3ef1e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ef1e7([0x76,0x69,0x65,0x77])][_0x3ef1e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ef1e7([0x61,0x75,0x74,0x6f]),_0x19ccd7[_0x3ef1e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ef1e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ef1e7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ef1e7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ef1e7([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 De(_0xacef31){return void 0x0!==_0xacef31['getRootsAttributes'];}async function P(_0x5df264,_0x172500,_0x10b668){const _0xd067e6=_0x32f4b5(_0x5df264,p);_0xd067e6['plugins']['push'](d,Fe),_0xd067e6['rootsAttributes']=De(_0x5df264)?_0x5df264['getRootsAttributes']():void 0x0;const _0x43630c=document['createDocumentFragment'](),_0x2f83d0=_0x5df264['config']['get']('trackChangesData')['editorCreator'],_0x34c89f=await _0x2f83d0(_0xd067e6,()=>function(_0xc7a1d8){const _0x3891d9=document['createElement']('div');return _0xc7a1d8['appendChild'](_0x3891d9),_0x3891d9;}(_0x43630c));!function(_0x5624d9,_0xb45258){const _0x45fb24=_0x5624d9['model']['document']['getRootNames']()['reduce']((_0x2dccff,_0x478631)=>(_0x2dccff[_0x478631]=_0x5624d9['data']['get']({'rootName':_0x478631}),_0x2dccff),{}),_0x3b5d12=_0x5624d9['plugins']['get']('Users')['users']['map'](_0x323fac=>({'id':_0x323fac['id'],'name':_0x323fac['name']})),_0x17ef40=_0x5624d9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cb005=_0x5624d9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ebb94=_0xb45258['plugins']['get']('Users'),_0x45dee1=_0xb45258['plugins']['get']('TrackChangesEditing'),_0x3488fd=_0xb45258['plugins']['get']('CommentsRepository');for(const _0x5a0d84 of _0x3488fd['getCommentThreads']())_0x5a0d84['remove']();for(const _0x26a3f1 of _0x3b5d12)_0x2ebb94['getUser'](_0x26a3f1['id'])||_0x2ebb94['addUser'](_0x26a3f1);_0x2ebb94['me']||_0x2ebb94['useAnonymousUser']();for(const _0x7ccebe of _0x4cb005)_0x3488fd['addCommentThread'](_0x7ccebe);for(const _0x4e892b of _0x17ef40)_0x45dee1['addSuggestionData'](_0x4e892b);_0xb45258['data']['set'](_0x45fb24);}(_0x5df264,_0x34c89f),_0x34c89f['execute'](_0x172500?'acceptAllSuggestions':'discardAllSuggestions');const _0x4310b7=De(_0x34c89f)?_0x34c89f['getFullData'](_0x10b668):_0x34c89f['data']['get'](_0x10b668);return await _0x34c89f['destroy'](),_0x4310b7;}class Me extends _0x2682c3{['options'];constructor(_0x2b07eb,_0x44a87e){super(_0x2b07eb),this['options']=_0x44a87e,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'](_0x119b57,_0x389d90){if(!this['element'])return;const _0x238fed=[];for(const [_0x1584d4,_0x43b436]of _0x119b57){const _0x117e27=document['createElement']('div');_0x117e27['setAttribute']('data-ck-root-name',_0x1584d4),_0x117e27['className']=_0x43b436['classes']+'\x20ck-track-changes-preview__root-container',_0x117e27['innerHTML']=_0x43b436['content'],_0x238fed['push'](_0x117e27);}_0x389d90(this['element'],_0x238fed),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x49194f{constructor(_0x1cf91e){super(_0x1cf91e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5a9cbf=this['editor'],_0x397422=_0x5a9cbf['locale'],_0x1bc87c=_0x5a9cbf['plugins']['get']('Dialog');let _0x3fa0d8;const _0x23c705=function(_0x5d579a){const _0x34aaa5={};if('editables'in _0x5d579a['ui']['view']){for(const [_0x11262e,_0x542f58]of Object['entries'](_0x5d579a['ui']['view']['editables']))_0x34aaa5[_0x11262e]=_0x542f58['element'];}else _0x34aaa5[_0x5d579a['model']['document']['getRootNames']()[0x0]]=_0x5d579a['ui']['view']['editable']['element'];return _0x34aaa5;}(_0x5a9cbf),_0x4c472a=function(_0x14ff1e){let _0x12404e=0x0;for(const _0x422ff5 of Object['values'](_0x14ff1e))_0x12404e=Math['max'](_0x12404e,_0x422ff5['getBoundingClientRect']()['width']);let _0x51f914=0x0;for(const _0x5d3b9c of Object['values'](_0x14ff1e))_0x51f914+=_0x5d3b9c['getBoundingClientRect']()['height'];const _0x47abe0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3a2176=Math['min'](_0x51f914,_0x47abe0);return{'width':_0x12404e,'height':_0x3a2176};}(_0x23c705);_0x1bc87c['show']({'id':'finalContentPreview','title':o(_0x397422,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x397422,{'dialogRects':_0x4c472a}),'onHide':()=>{_0x3fa0d8['detachFromDom']();},'onShow':()=>{_0x5a9cbf['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e7e28=>{const _0x40d3e6=this['_standarizeRootsData'](_0x3e7e28,_0x5a9cbf,_0x23c705);_0x1bc87c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x40d3e6,_0x5a9cbf['config']['get']('trackChanges.preview.renderFunction'));}),_0x3fa0d8=new _0x57bfc4(_0x397422,[_0x1bc87c['view']]),_0x3fa0d8['attachToDom'](),_0x3fa0d8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5a9cbf['once']('destroy',()=>{_0x3fa0d8['detachFromDom']();});const _0x43a4f5=_0x1bc87c['view']['headerView']['class'];_0x1bc87c['view']['headerView']['class']=_0x43a4f5?_0x43a4f5+'\x20ck-reset_all':'ck-reset_all',_0x1bc87c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1bc87c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2dedbb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x58bae7=_0x2dedbb['previewMode'],_0x110ce6={};if('$labels'===_0x58bae7){for(const _0x4de178 of _0x2dedbb['getMergeFieldsIds']())_0x110ce6[_0x4de178]=_0x2dedbb['getLabel'](_0x4de178)||_0x4de178;}else{const _0x324045='$defaultValues'===_0x58bae7?_0x2dedbb['getDefaultValues']():_0x2dedbb['getDataSetValues'](_0x58bae7,!0x0);for(const _0x4d1ef0 of Object['entries'](_0x324045)){const [_0x55d678,_0x15bb1a]=_0x4d1ef0;_0x110ce6[_0x55d678]=null!==_0x15bb1a?_0x15bb1a:_0x2dedbb['getLabel'](_0x55d678)||_0x55d678;}}return{'mergeFieldsData':_0x110ce6};}['_standarizeRootsData'](_0x6d2933,_0x4bf7d8,_0x2ce366){let _0x439ae0;if('string'==typeof _0x6d2933){const _0x4ba67e=_0x4bf7d8['model']['document']['getRootNames']()[0x0];_0x439ae0={[_0x4ba67e]:_0x6d2933};}else _0x439ae0=_0x6d2933;const _0x4474b6=this['_fixMediaEmbeds'](_0x439ae0,_0x4bf7d8),_0x2d3485=function(_0x5210ad,_0x2b36ec){for(const [_0x565282,_0x5c5176]of _0x5210ad)_0x5c5176['classes']=_0x2b36ec[_0x565282]['classList']['value']['replace']('ck-focused','');return _0x5210ad;}(this['_sortRoots'](_0x4bf7d8)['reduce']((_0x483ded,_0x5d9c9)=>(_0x483ded['push']([_0x5d9c9,{'content':_0x4474b6[_0x5d9c9],'classes':''}]),_0x483ded),[]),_0x2ce366);return _0x2d3485;}['_fixMediaEmbeds'](_0x94d6d1,_0x39ddea){if(!_0x39ddea['plugins']['has']('MediaEmbedEditing'))return _0x94d6d1;const _0x1f0c3a=_0x39ddea['plugins']['get']('MediaEmbedEditing');for(const [_0x33c2f3,_0x5b1cf9]of Object['entries'](_0x94d6d1)){const _0x575712=document['createElement']('div');_0x575712['innerHTML']=_0x5b1cf9,(_0x575712['querySelectorAll']('figure.media')['forEach'](_0xcc76ec=>{const _0x18a3d5=_0xcc76ec['querySelector']('oembed');if(_0x18a3d5){const _0x2ca10b=_0x18a3d5['getAttribute']('url');if(_0x2ca10b){const _0x484b03=_0x1f0c3a['registry']['getMediaViewElement'](new _0x3c347c(_0x39ddea['editing']['view']['document']),_0x2ca10b,{'elementName':'','renderForEditingView':!0x0}),_0x57d09c=document['createElement']('div');_0x57d09c['classList']['add']('ck-media__wrapper'),_0x484b03['render'](_0x57d09c,_0x39ddea['editing']['view']['domConverter']),_0x18a3d5['replaceWith'](_0x57d09c);}}}),_0x94d6d1[_0x33c2f3]=_0x575712['innerHTML']);}return _0x94d6d1;}['_sortRoots'](_0x51eefb){if(!function(_0x1605f7){return void 0x0!==_0x1605f7['getRootsAttributes'];}(_0x51eefb))return _0x51eefb['model']['document']['getRootNames']();const _0x2d61ad=[],_0x5d7b06=new Map();for(const _0x4073d1 of _0x51eefb['model']['document']['getRootNames']()){const _0x4052a2=_0x51eefb['editing']['view']['getDomRoot'](_0x4073d1)['getClientRects']()['item'](0x0);_0x2d61ad['push'](_0x4073d1),_0x5d7b06['set'](_0x4073d1,_0x4052a2);}return _0x2d61ad['sort']((_0x2b88d0,_0x5e343e)=>{const _0x435c2a=_0x5d7b06['get'](_0x2b88d0),_0x5e81d5=_0x5d7b06['get'](_0x5e343e);return _0x435c2a['y']-_0x5e81d5['y']||_0x435c2a['x']-_0x5e81d5['x'];}),_0x2d61ad;}}class Ue extends _0x57897a{static get['requires'](){return[re,_0x52467d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22e5ca){super(_0x22e5ca),_0x22e5ca['commands']['add']('previewFinalContent',new te(this['editor'])),_0x22e5ca['config']['define']('trackChanges.preview.renderFunction',(_0x19d547,_0x54ad20)=>{for(const _0x575f4a of _0x54ad20)_0x19d547['appendChild'](_0x575f4a);});}}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,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|