@ckeditor/ckeditor5-track-changes 47.5.0-alpha.6 → 47.5.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/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
|
-
_0xc5829f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xfa5d9f,_0x1e5f2c){super(),this['id']=_0x1e5f2c['id'],this['type']=_0x1e5f2c['type'],this['subType']=_0x1e5f2c['subType']||null,this['author']=_0x1e5f2c['author'],this['creator']=_0x1e5f2c['creator']||_0x1e5f2c['author'],this['isExternal']=Boolean(_0x1e5f2c['attributes']&&_0x1e5f2c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1e5f2c['originalSuggestionId']||null,this['_model']=_0xfa5d9f,this['_onAccept']=_0x1e5f2c['onAccept'],this['_onDiscard']=_0x1e5f2c['onDiscard'],this['_onAttributesChange']=_0x1e5f2c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e5f2c['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 _0x25684a=this;for(;_0x25684a['previous'];)_0x25684a=_0x25684a['previous'];return _0x25684a;}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'](_0xe9996){this['_markerNames']['add'](_0xe9996);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xa47187=>this['_model']['markers']['get'](_0xa47187))['filter'](_0x4f0080=>_0x4f0080);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e317d=>{for(const _0x3058d8 of this['getMarkers']())_0x4e317d['removeMarker'](_0x3058d8);}),this['_markerNames']['clear']();}['removeMarker'](_0x280714){this['_model']['change'](_0x1b2e86=>{_0x1b2e86['removeMarker'](_0x280714);}),this['_markerNames']['delete'](_0x280714);}['addRange'](_0x42b3a5){const _0x470d2f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x470d2f),this['_model']['change'](_0x2ee1b9=>{_0x2ee1b9['addMarker'](_0x470d2f,{'range':_0x42b3a5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xafaade){for(const _0xa68095 of this['getRanges']())if(_0xa68095['isIntersecting'](_0xafaade))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bd7d5=>_0x3bd7d5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4951a5,_0xe4df98)=>[..._0x4951a5,..._0xe4df98['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x429d88=this['getRanges']();if(0x1!=_0x429d88['length'])return null;const _0x463853=_0x429d88[0x0],_0x2c3d4a=_0x463853['start']['nodeAfter'],_0xf207f3=_0x463853['end']['nodeBefore'];return _0x2c3d4a instanceof _0x1ea7be?_0x2c3d4a!=_0xf207f3?null:_0x2c3d4a: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 _0x47ff2c=[];let _0x3536e2=this['head'];for(;_0x3536e2;)_0x47ff2c['push'](_0x3536e2),_0x3536e2=_0x3536e2['next'];return _0x47ff2c;}['setAttribute'](_0x374ecd,_0x148906){const _0x11fcf3=_0x177a54(this['attributes']);_0x5c69b5(_0x11fcf3,_0x374ecd,_0x148906),_0x4faab1(_0x11fcf3,this['attributes'])||(this['attributes']=_0x11fcf3,this['_onAttributesChange'](_0x11fcf3));}['removeAttribute'](_0x2e5e5f){const _0x1df051=_0x177a54(this['attributes']);_0x3a25b4(_0x1df051,_0x2e5e5f),_0x4faab1(_0x1df051,this['attributes'])||(this['attributes']=_0x1df051,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 _0x47121d()['substr'](0x1,0x5);}}function o(_0x3cfb2d,_0x198751,_0x4d1c30){const _0x18cd4c=_0x3cfb2d['t'],t=_0x3cfb2d['t'];switch(_0x198751){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',_0x4d1c30);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4d1c30);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4d1c30);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4d1c30);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4d1c30);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',_0x4d1c30);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4d1c30);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',_0x4d1c30);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4d1c30);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4d1c30);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4d1c30);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4d1c30);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4d1c30);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4d1c30);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4d1c30);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4d1c30);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4d1c30);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4d1c30);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4d1c30);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4d1c30);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4d1c30);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4d1c30);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4d1c30);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4d1c30);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4d1c30);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4d1c30);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4d1c30);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4d1c30);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4d1c30);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4d1c30);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4d1c30);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4d1c30);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4d1c30);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4d1c30);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4d1c30);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4d1c30);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'},_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4d1c30);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4d1c30);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4d1c30);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4d1c30);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4d1c30);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'},_0x4d1c30);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4d1c30);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 _0x18cd4c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4d1c30);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x18cd4c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4d1c30);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4d1c30);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'},_0x4d1c30);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'},_0x4d1c30);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'},_0x4d1c30);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x198751;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xa5937e,_0x1005aa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xa5937e,this['_locale']=_0x1005aa;}['getDescriptions'](_0x272286){const _0x15f858=[],_0x9fdbb=new Set(),_0x398ced=new Set();for(let _0x24e940=0x0;_0x24e940<_0x272286['length'];_0x24e940++){const _0x1eb8e5=_0x272286[_0x24e940];if(!_0x1eb8e5['isInContent'])continue;const _0x421c29=this['_handleCustomCallbackDescription'](_0x1eb8e5);if(_0x421c29){if(null!=_0x1eb8e5['subType']){if(_0x9fdbb['has'](_0x1eb8e5['subType']))continue;_0x9fdbb['add'](_0x1eb8e5['subType']);}_0x15f858['push'](_0x421c29);}else{if('attribute'==_0x1eb8e5['type']){const _0x327c23=_0x1eb8e5['data']['key'];if(_0x398ced['has'](_0x327c23))continue;_0x398ced['add'](_0x1eb8e5['data']['key']),_0x327c23==m?this['_handleRenameSuggestionDescription'](_0x15f858,_0x1eb8e5):this['_handleAttributeSuggestionDescription'](_0x15f858,_0x1eb8e5);continue;}'insertion'!=_0x1eb8e5['type']&&'deletion'!=_0x1eb8e5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15f858,_0x1eb8e5,_0x272286[_0x24e940+0x1]);}}return this['_resolveDescriptionItems'](_0x15f858);}['registerDescriptionCallback'](_0x6f6407){this['_customCallbacks']['push'](_0x6f6407);}['registerElementLabel'](_0x55178a,_0x15c238,_0x1e7a27=_0x250185['normal']){'function'==typeof _0x55178a?_0xa0d517(this['_itemLabelsCallbacks'],{'matchingCallback':_0x55178a,'label':_0x15c238,'priority':_0x1e7a27}):this['_itemLabels']['set'](_0x55178a,_0x15c238);}['registerAttributeLabel'](_0x22a973,_0xe0ad7e){this['_attributeLabels']['set'](_0x22a973,_0xe0ad7e);}['getItemLabel'](_0x1506d9,_0x2e4b8d=0x1){let _0x34ef42;for(const _0x2aae16 of this['_itemLabelsCallbacks'])if(_0x2aae16['matchingCallback'](_0x1506d9)){_0x34ef42=_0x2aae16['label'];break;}return _0x34ef42||(_0x34ef42=this['_itemLabels']['get'](_0x1506d9['name'])),_0x34ef42?_0x34ef42(_0x2e4b8d):0x1!==_0x2e4b8d?_0x2e4b8d+'\x20'+_0x1506d9['name']+'s':''+_0x1506d9['name'];}['_addDescriptionItems'](_0x546844,_0x41a7f5){const _0x58cf4f=_0x41a7f5['getFirstRange']()['getWalker'](),_0x3087ce='insertion'==_0x41a7f5['type']?'add':'remove';for(const _0x4869bb of _0x58cf4f){const _0x3bdb67=_0x4869bb['item'],_0x145a0f=_0x546844[_0x546844['length']-0x1];if(_0x3bdb67['is']('$textProxy'))_0x145a0f&&_0x145a0f['type']['indexOf']('Container')>-0x1&&_0x546844['pop'](),_0x145a0f&&'text'==_0x145a0f['type']?_0x145a0f[_0x3087ce]+=_0x3bdb67['data']:_0x546844['push']({'type':'text','add':'add'==_0x3087ce?_0x3bdb67['data']:'','remove':'remove'==_0x3087ce?_0x3bdb67['data']:''});else{if(this['_schema']['isObject'](_0x3bdb67)){const _0x11dd7=_0x3bdb67;if(_0x145a0f&&_0x145a0f['type']['indexOf']('Container')>-0x1&&_0x546844['pop'](),'elementEnd'==_0x4869bb['type'])continue;_0x145a0f&&_0x145a0f['type']==_0x3087ce+'Object'&&_0x145a0f['element']['name']==_0x11dd7['name']?_0x145a0f['quantity']++:_0x546844['push']({'type':_0x3087ce+'Object','element':_0x11dd7,'quantity':0x1}),_0x58cf4f['skip'](_0x930827=>!('elementEnd'==_0x930827['type']&&_0x930827['item']==_0x3bdb67));}else{if(this['_schema']['checkChild'](_0x3bdb67,'$text')||_0x3bdb67['is']('element','softBreak')){const _0x4dcda9=_0x3bdb67;if('add'==_0x3087ce&&'elementStart'==_0x4869bb['type']||'remove'==_0x3087ce&&'elementEnd'==_0x4869bb['type'])continue;if(_0x145a0f&&-0x1==_0x145a0f['type']['indexOf']('Container')){'text'==_0x145a0f['type']&&(_0x145a0f[_0x3087ce]+='\x0a');continue;}let _0x23abe2;if(_0x23abe2='add'==_0x3087ce?_0x4dcda9['nextSibling']&&!this['_schema']['isObject'](_0x4dcda9['nextSibling'])?_0x4dcda9['nextSibling']:null:_0x4dcda9['previousSibling']&&!this['_schema']['isObject'](_0x4dcda9['previousSibling'])?_0x4dcda9['previousSibling']:null,_0x4dcda9['isEmpty']||_0x23abe2&&_0x23abe2['isEmpty']){const _0x4e54a7=_0x23abe2&&_0x23abe2['isEmpty']?_0x23abe2:_0x4dcda9;_0x145a0f&&_0x145a0f['type']==_0x3087ce+'EmptyContainer'&&_0x145a0f['element']['name']==_0x4e54a7['name']?_0x145a0f['quantity']++:_0x546844['push']({'type':_0x3087ce+'EmptyContainer','element':_0x4e54a7,'quantity':0x1});}else _0x546844['push']({'type':_0x3087ce+'Container','element':_0x4dcda9});}}}}}['_resolveDescriptionItems'](_0x3f093){const _0xa802b3=this['_locale'],_0xf8e2d9=[],_0x57d6a1=[],_0xa8904f=[];for(const _0x32a5f1 of _0x3f093)switch(_0x32a5f1['type']){case'text':if(_0x32a5f1['add']=_0x32a5f1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x32a5f1['remove']=_0x32a5f1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x32a5f1['add']&&''!=_0x32a5f1['remove']){_0xf8e2d9['push']({'type':'replace','content':o(_0xa802b3,'REPLACE_TEXT',['\x22'+_0x32a5f1['remove']+'\x22','\x22'+_0x32a5f1['add']+'\x22'])});continue;}if(null!=_0x32a5f1['add']['match'](/^ +$/)){_0xf8e2d9['push']({'type':'insertion','content':o(_0xa802b3,'*Insert:*\x20%0',o(_0xa802b3,'ELEMENT_SPACE',_0x32a5f1['add']['length']))});continue;}if(null!=_0x32a5f1['remove']['match'](/^ +$/)){_0xf8e2d9['push']({'type':'deletion','content':o(_0xa802b3,'*Remove:*\x20%0',o(_0xa802b3,'ELEMENT_SPACE',_0x32a5f1['remove']['length']))});continue;}if(''!=_0x32a5f1['add']){_0xf8e2d9['push']({'type':'insertion','content':o(_0xa802b3,'*Insert:*\x20%0','\x22'+_0x32a5f1['add']+'\x22')});continue;}_0xf8e2d9['push']({'type':'deletion','content':o(_0xa802b3,'*Remove:*\x20%0','\x22'+_0x32a5f1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xf8e2d9['push']({'type':'insertion','content':o(_0xa802b3,'*Insert:*\x20%0',this['getItemLabel'](_0x32a5f1['element'],_0x32a5f1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xf8e2d9['push']({'type':'deletion','content':o(_0xa802b3,'*Remove:*\x20%0',this['getItemLabel'](_0x32a5f1['element'],_0x32a5f1['quantity']))});continue;case'addContainer':_0xf8e2d9['push']({'type':'insertion','content':o(_0xa802b3,'*Split:*\x20%0',this['getItemLabel'](_0x32a5f1['element'],_0x32a5f1['quantity']))});continue;case'removeContainer':_0xf8e2d9['push']({'type':'deletion','content':o(_0xa802b3,'*Merge:*\x20%0',this['getItemLabel'](_0x32a5f1['element'],_0x32a5f1['quantity']))});continue;case'addFormat':_0x57d6a1['push'](_0x32a5f1['key']);continue;case'removeFormat':_0xa8904f['push'](_0x32a5f1['key']);continue;default:_0xf8e2d9['push'](_0x32a5f1);}if(_0x57d6a1['length']){const _0x4ddf2a=_0x57d6a1['map'](_0x1dd883=>this['_attributeLabels']['has'](_0x1dd883)?this['_attributeLabels']['get'](_0x1dd883):_0x1dd883)['join'](',\x20');_0xf8e2d9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4ddf2a)});}if(_0xa8904f['length']){const _0x108c03=_0xa8904f['map'](_0x2e79c0=>this['_attributeLabels']['has'](_0x2e79c0)?this['_attributeLabels']['get'](_0x2e79c0):_0x2e79c0)['join'](',\x20');_0xf8e2d9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x108c03)});}return _0xf8e2d9;}['_handleCustomCallbackDescription'](_0x1d86c8){for(const _0x535a15 of this['_customCallbacks']){const _0x56b4f8=_0x535a15(_0x1d86c8);if(_0x56b4f8&&'type'in _0x56b4f8)return _0x56b4f8;}}['_handleAttributeSuggestionDescription'](_0x24d6e3,_0x33b17c){const _0x140205=_0x33b17c['data'],_0x445764=void 0x0===_0x140205['newValue']?'removeFormat':'addFormat';_0x24d6e3['push']({'type':_0x445764,'key':_0x140205['key']});}['_handleRenameSuggestionDescription'](_0x3b2e8f,_0x1d9fc8){_0x3b2e8f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1d9fc8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5cb1df,_0x50830f,_0x1a168e){if(this['_addDescriptionItems'](_0x5cb1df,_0x50830f),_0x1a168e&&_0x1a168e['getFirstRange']()&&!_0x50830f['getFirstRange']()['end']['isEqual'](_0x1a168e['getFirstRange']()['start'])){const _0x3781df=_0x5cb1df[_0x5cb1df['length']-0x1],_0x4c8996='insertion'==_0x50830f['type']?'add':'remove';_0x3781df&&'text'==_0x3781df['type']&&(_0x3781df[_0x4c8996]+='\x0a');}}}class R extends _0x568c70{['afterInit'](){const _0x3c794b=this['editor'],_0xa90eb3=_0x3c794b['plugins']['get']('TrackChangesEditing');_0x3c794b['commands']['get']('showAIAssistant')&&_0xa90eb3['enableCommand']('showAIAssistant');}}class T extends _0x568c70{['afterInit'](){const _0x5bdfd6=this['editor'],_0x4c0303=_0x5bdfd6['plugins']['get']('TrackChangesEditing');_0x5bdfd6['commands']['get']('toggleAi')&&_0x4c0303['enableCommand']('toggleAi');}}class E extends _0x568c70{['afterInit'](){const _0x26eb9f=this['editor'],_0x3bf4c9=_0x26eb9f['plugins']['get']('TrackChangesEditing');_0x26eb9f['commands']['get']('aiQuickAction')&&_0x3bf4c9['enableCommand']('aiQuickAction');}}class U extends _0x568c70{['afterInit'](){const _0x1cabde=this['editor'],_0x2f9cd4=_0x1cabde['locale'];if(!_0x1cabde['plugins']['has']('AlignmentEditing'))return;const _0x3f91fe=_0x1cabde['plugins']['get']('TrackChangesEditing');_0x3f91fe['enableDefaultAttributesIntegration']('alignment'),_0x3f91fe['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2f9cd4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c67cd=this['editor'],_0x4c7ca3=_0x1c67cd['locale'];_0x1c67cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18cdfd=>{if('formatBlock'!=_0x18cdfd['type'])return;const {data:_0x3fedc0}=_0x18cdfd;if(_0x3fedc0&&'alignment'==_0x3fedc0['commandName']){const _0x705ed3=_0x3fedc0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4c7ca3,'*Format:*\x20%0',function(_0x23a12f){switch(_0x23a12f){case'left':return o(_0x4c7ca3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4c7ca3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4c7ca3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4c7ca3,'FORMAT_JUSTIFY_TEXT');}}(_0x705ed3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x568c70{['afterInit'](){const _0x55cc30=this['editor'],_0x2d2b77=_0x55cc30['plugins']['get']('TrackChangesEditing'),_0x4b20ec=_0x55cc30['locale'];for(const _0x4dc08a of ti){if(!_0x55cc30['plugins']['has'](_0x4dc08a))continue;const _0x2e8557=_0x4dc08a['slice'](0x0,-0x7)['toLowerCase'](),_0x9b6d79='FORMAT_'+_0x2e8557['toUpperCase']();_0x2d2b77['enableDefaultAttributesIntegration'](_0x2e8557),_0x2d2b77['descriptionFactory']['registerAttributeLabel'](_0x2e8557,o(_0x4b20ec,_0x9b6d79));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15aed1=this['editor'],_0x4baa6b=_0x15aed1['locale'],_0x75813f=_0x15aed1['plugins']['get']('TrackChangesEditing');function _0x5d38c4(_0x2d0e56,_0x4d9270){_0x75813f['descriptionFactory']['registerDescriptionCallback'](_0x5b73c8=>{if('formatInline'!=_0x5b73c8['type'])return;const {data:_0xc5b588}=_0x5b73c8;return _0xc5b588&&_0xc5b588['commandName']===_0x2d0e56?_0xc5b588['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4baa6b,'*Format:*\x20%0',_0x4d9270)}:{'type':'format','content':o(_0x4baa6b,'*Remove\x20format:*\x20%0',_0x4d9270)}:void 0x0;});}_0x5d38c4('bold',o(_0x4baa6b,'FORMAT_BOLD')),_0x5d38c4('italic',o(_0x4baa6b,'FORMAT_ITALIC')),_0x5d38c4('underline',o(_0x4baa6b,'FORMAT_UNDERLINE')),_0x5d38c4('code',o(_0x4baa6b,'FORMAT_CODE')),_0x5d38c4('strikethrough',o(_0x4baa6b,'FORMAT_STRIKETHROUGH')),_0x5d38c4('subscript',o(_0x4baa6b,'FORMAT_SUBSCRIPT')),_0x5d38c4('superscript',o(_0x4baa6b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x568c70{['afterInit'](){const _0x2c24b0=this['editor'],_0x27e04a=_0x2c24b0['locale'];if(!_0x2c24b0['plugins']['has']('BlockQuoteEditing'))return;const _0x12fe2c=_0x2c24b0['plugins']['get']('TrackChangesEditing'),_0x3b3eac=this['editor']['commands']['get']('blockQuote');_0x12fe2c['enableCommand']('blockQuote',(_0x19274d,_0x5ab98c={})=>{const _0x4299f0=this['editor']['model']['document']['selection'],_0xd53950=_0x5ab98c&&void 0x0!==_0x5ab98c['forceValue']?_0x5ab98c['forceValue']:!_0x3b3eac['value'];let _0x331f63=[];if(_0xd53950){const _0x33f25d=Array['from'](_0x4299f0['getSelectedBlocks']())['filter'](_0x5055c6=>oo(_0x5055c6)||function(_0x1ddf13,_0x4578d7){const _0x47fe0f=_0x4578d7['checkChild'](_0x1ddf13['parent'],'blockQuote'),_0x4f8806=_0x4578d7['checkChild'](['$root','blockQuote'],_0x1ddf13);return _0x47fe0f&&_0x4f8806;}(_0x5055c6,this['editor']['model']['schema']));_0x331f63=to(_0x33f25d,_0x2c24b0['model']);}else{const _0x12d598=Array['from'](_0x4299f0['getSelectedBlocks']())['filter'](_0xc01d1a=>oo(_0xc01d1a));_0x331f63=to(_0x12d598,_0x2c24b0['model']);}_0x2c24b0['model']['change'](()=>{for(const _0x78735b of _0x331f63)_0x12fe2c['markBlockFormat'](_0x78735b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xd53950}]});});}),_0x12fe2c['descriptionFactory']['registerDescriptionCallback'](_0x403247=>{const {data:_0x136ac7}=_0x403247;if(_0x136ac7&&'blockQuote'==_0x136ac7['commandName']){const _0x28ea5f=o(_0x27e04a,'ELEMENT_BLOCK_QUOTE');return _0x136ac7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27e04a,'*Set\x20format:*\x20%0',_0x28ea5f)}:{'type':'format','content':o(_0x27e04a,'*Remove\x20format:*\x20%0',_0x28ea5f)};}});}}function oo(_0x5ea903){return'blockQuote'==_0x5ea903['parent']['name'];}class G extends _0x568c70{['afterInit'](){const _0x202711=this['editor'],_0x5d96e3=_0x202711['locale'],_0x2c10a4=_0x202711['plugins']['get']('TrackChangesEditing');_0x202711['plugins']['has']('BookmarkEditing')&&(_0x2c10a4['enableCommand']('insertBookmark'),_0x2c10a4['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c10a4['descriptionFactory']['registerDescriptionCallback'](_0x614de8=>{if('insertion'!=_0x614de8['type']&&'deletion'!=_0x614de8['type']&&'attribute'!=_0x614de8['type'])return;const _0x9cacc0=_0x614de8['getContainedElement']();if(null==_0x9cacc0)return;if(!_0x9cacc0['is']('element','bookmark'))return;const _0x3f6aed=_0x9cacc0['getAttribute']('bookmarkId');if('insertion'==_0x614de8['type'])return{'type':'insertion','content':o(_0x5d96e3,'*Insert:*\x20%0','\x22'+_0x3f6aed+'\x22\x20'+o(_0x5d96e3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x614de8['type'])return{'type':'deletion','content':o(_0x5d96e3,'*Remove:*\x20%0','\x22'+_0x3f6aed+'\x22\x20'+o(_0x5d96e3,'ELEMENT_BOOKMARK'))};const {data:_0x448066}=_0x614de8;if(!_0x448066||'bookmarkId'!=_0x448066['key'])return;return{'type':'format','content':o(_0x5d96e3,'*Set\x20bookmark:*\x20%0','\x22'+_0x448066['newValue']+'\x22')};}));}}class L extends _0x568c70{['afterInit'](){const _0x470e0c=this['editor'];_0x470e0c['plugins']['has']('CaseChange')&&(_0x470e0c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x470e0c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x470e0c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x568c70{['afterInit'](){const _0x183229=this['editor'];_0x183229['commands']['get']('ckbox')&&_0x183229['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x568c70{['afterInit'](){const _0x30a986=this['editor'];if(!_0x30a986['plugins']['has']('CodeBlock'))return;const _0x39a37f=_0x30a986['plugins']['get']('TrackChangesEditing'),_0x29bc02=_0x30a986['locale'],_0xa413aa=_0x30a986['config']['get']('codeBlock')['languages'],_0x15e100=_0x30a986['commands']['get']('codeBlock');_0x39a37f['enableCommand']('indentCodeBlock'),_0x39a37f['enableCommand']('outdentCodeBlock'),_0x39a37f['enableCommand']('codeBlock',(_0x49f760,_0x3819cb={})=>{const _0x40811e=_0x30a986['model'],_0xbb6da4=_0x30a986['model']['document']['selection'],_0x17cb3d=_0x3819cb&&void 0x0!==_0x3819cb['forceValue']?_0x3819cb['forceValue']:!_0x15e100['value'];let _0x88db8a;_0x3819cb['language']||(_0x3819cb['language']=_0xa413aa[0x0]['language']),_0x88db8a=_0x17cb3d?Array['from'](_0xbb6da4['getSelectedBlocks']())['filter'](_0x37106e=>co(_0x37106e)||function(_0x2321b0,_0x5e6467){if(_0x2321b0['is']('rootElement')||_0x5e6467['isLimit'](_0x2321b0))return!0x1;return _0x5e6467['checkChild'](_0x2321b0['parent'],'codeBlock');}(_0x37106e,_0x40811e['schema'])):Array['from'](_0xbb6da4['getSelectedBlocks']())['filter'](_0x46dd18=>co(_0x46dd18));const _0x2a390a=to(_0x88db8a,_0x40811e);_0x40811e['change'](()=>{for(const _0x5c8efe of _0x2a390a)_0x39a37f['markBlockFormat'](_0x5c8efe,{'commandName':'codeBlock','commandParams':[{..._0x3819cb,'forceValue':_0x17cb3d}],'formatGroupId':'blockName'});});}),(_0x39a37f['descriptionFactory']['registerElementLabel']('codeBlock',_0xbc0a6b=>o(_0x29bc02,'ELEMENT_CODE_BLOCK',_0xbc0a6b)),_0x39a37f['descriptionFactory']['registerDescriptionCallback'](_0x5da247=>{if('formatBlock'!=_0x5da247['type'])return;const _0xb747f2=_0x29bc02['t'],{data:_0x2d58ab}=_0x5da247;if(!_0x2d58ab||'codeBlock'!=_0x2d58ab['commandName'])return;const _0x32af0a=_0x2d58ab['commandParams'][0x0]['language'],_0x434caf=_0xb747f2(_0xa413aa['find'](_0x317d56=>_0x317d56['language']===_0x32af0a)['label'])['toLowerCase']();return _0x2d58ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29bc02,'*Set\x20format:*\x20%0',o(_0x29bc02,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x434caf+')')}:{'type':'format','content':o(_0x29bc02,'*Remove\x20format:*\x20%0',o(_0x29bc02,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x324eb2){return'codeBlock'==_0x324eb2['name'];}class z extends _0x568c70{['afterInit'](){const _0x2f4292=this['editor'];if(!_0x2f4292['plugins']['has']('CommentsEditing'))return;_0x2f4292['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x568c70{static get['requires'](){return[_0x1e96e2];}['init'](){const _0x1d5eb6=this['editor'],_0x428d33=_0x1d5eb6['plugins']['get']('TrackChangesEditing');_0x428d33['enableCommand']('delete');const _0x3bce68=_0x1d5eb6['commands']['get']('deleteForward');_0x428d33['enableCommand']('deleteForward',(_0x2e8667,_0x30aa07={})=>{const _0x38f1ab=_0x1d5eb6['model']['createSelection'](_0x1d5eb6['model']['document']['selection']);_0x38f1ab['isCollapsed']&&_0x1d5eb6['model']['modifySelection'](_0x38f1ab,{'direction':'forward','unit':_0x30aa07['unit']});const _0xe723d4=_0x38f1ab['getFirstRange'](),_0x5cb078=_0x44fa11['fromRange'](_0xe723d4);let _0x439c16;_0x2e8667(_0x30aa07),_0x439c16='$graveyard'==_0x5cb078['root']['rootName']?_0x1d5eb6['model']['createRange'](_0xe723d4['start']):_0x1d5eb6['model']['createRange'](_0x5cb078['start'],_0x5cb078['end']),_0x5cb078['detach'](),_0x1d5eb6['model']['enqueueChange'](_0x3bce68['buffer']['batch'],_0x4da0e7=>{_0x3bce68['buffer']['lock'](),_0x4da0e7['setSelection'](_0x4da0e7['createRange'](_0x439c16['end'])),_0x3bce68['buffer']['unlock']();});});}}class W extends _0x568c70{['afterInit'](){const _0x78b012=this['editor'];if(!_0x78b012['plugins']['has']('ListEditing'))return;const _0x48e1b3=_0x78b012['locale'],_0x2ac700=_0x78b012['plugins']['get']('TrackChangesEditing'),_0x2498cf=_0x78b012['plugins']['has']('TodoListEditing'),_0x12ea2b=!!_0x78b012['config']['get']('list.multiBlock');function _0x3b729d(_0x15fa06){return{'type':'format','content':''+o(_0x48e1b3,'*Set\x20format:*\x20%0',_0x15fa06)};}function _0x764a88(_0x46c579){return{'type':'format','content':''+o(_0x48e1b3,'*Remove\x20format:*\x20%0',_0x46c579)};}_0x2ac700['enableDefaultAttributesIntegration']('numberedList'),_0x2ac700['enableDefaultAttributesIntegration']('bulletedList'),_0x2ac700['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ac700['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ac700['enableDefaultAttributesIntegration']('indentList'),_0x2ac700['enableDefaultAttributesIntegration']('outdentList'),_0x2ac700['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ac700['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x12ea2b&&(_0x2ac700['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ac700['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2498cf&&(_0x2ac700['enableDefaultAttributesIntegration']('todoList'),_0x2ac700['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ac700['descriptionFactory']['registerDescriptionCallback'](_0x29fa0e=>{const {data:_0x42b574}=_0x29fa0e;if(_0x42b574&&'todoListChecked'==_0x42b574['key'])return{'type':'format','content':_0x42b574['newValue']?o(_0x48e1b3,'*Check\x20item*'):o(_0x48e1b3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x11e024=>{if(_0x11e024['batch']['isUndo'])return!0x1;let _0x1643d0=!0x1;const _0x4f6cc0=_0x2ac700['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x530606=>'todoListChecked'===_0x2ac700['_getAttributeKey'](_0x530606));for(const _0x3d952c of _0x4f6cc0){'todo'!=_0x3d952c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ac700['_findSuggestions'](_0x3d952c['getFirstRange'](),'attribute')['find'](_0x2d1b2b=>'listType'===_0x2ac700['_getAttributeKey'](_0x2d1b2b['suggestion']))||(_0x11e024['removeMarker'](_0x3d952c['getFirstMarker']()),_0x1643d0=!0x0));}return _0x1643d0;})),_0x2ac700['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x48e1b3,'FORMAT_INDENT'));const _0x41a904={'type':'format','content':''};_0x2ac700['descriptionFactory']['registerDescriptionCallback'](_0x5ed93a=>{const {data:_0x392864}=_0x5ed93a;if(!_0x392864||'listType'!=_0x392864['key'])return;let _0x2a11d3=_0x5ed93a['head'];for(;_0x2a11d3;){if(_0x2a11d3['data']&&(('listStyle'==_0x2a11d3['data']['key']||'listMarkerStyle'==_0x2a11d3['data']['key'])&&(_0x2a11d3['data']['newValue']&&'default'!=_0x2a11d3['data']['newValue']||'default'!=_0x2a11d3['data']['oldValue']&&!_0x392864['newValue'])||!_0x12ea2b&&_0x2a11d3['data']['key']==m))return _0x41a904;_0x2a11d3=_0x2a11d3['next'];}if(null==_0x392864['newValue'])switch(_0x392864['oldValue']){case'bulleted':return _0x764a88(o(_0x48e1b3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x764a88(o(_0x48e1b3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x764a88(o(_0x48e1b3,'ELEMENT_TODO_LIST'));}switch(_0x392864['newValue']){case'bulleted':return _0x3b729d(o(_0x48e1b3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b729d(o(_0x48e1b3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b729d(o(_0x48e1b3,'ELEMENT_TODO_LIST'));}}),_0x2ac700['descriptionFactory']['registerDescriptionCallback'](_0x47c188=>{const {data:_0x32448b}=_0x47c188;if(_0x32448b&&'listIndent'==_0x32448b['key'])return null==_0x32448b['newValue']||null==_0x32448b['oldValue']&&0x0==_0x32448b['newValue']?_0x41a904:void 0x0;}),_0x2ac700['descriptionFactory']['registerDescriptionCallback'](_0x58c37f=>{if('attribute'!=_0x58c37f['type'])return;const {data:_0xcc8235}=_0x58c37f;if(!_0xcc8235||'listItemId'!=_0xcc8235['key'])return;const _0x66f740=Te(_0x58c37f);return'newValue'==_0x66f740?{'type':'format','content':o(_0x48e1b3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x66f740?{'type':'format','content':o(_0x48e1b3,'*Split:*\x20list\x20item')}:_0x41a904;}),_0x78b012['model']['document']['registerPostFixer'](_0x5b0adb=>this['listItemIdFixer'](_0x5b0adb)),_0x78b012['model']['document']['registerPostFixer'](_0x388fe8=>this['noTrackChangesFixer'](_0x388fe8)),_0x78b012['model']['document']['on']('change:data',(_0x308068,_0x41f7fe)=>{if(_0x41f7fe['isUndo']||!_0x41f7fe['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x170d06){if(_0x170d06['batch']['isUndo']||!_0x170d06['batch']['isLocal'])return!0x1;let _0x5d498d=!0x1;const _0x25c0cb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ca0d3=>_0x1ca0d3['data']&&'listItemId'==_0x1ca0d3['data']['key'])['filter'](_0x28f223=>_0x28f223['data']['newValue']&&_0x28f223['data']['oldValue']);for(const _0x151d2d of _0x25c0cb)Te(_0x151d2d)||(_0x170d06['removeMarker'](_0x151d2d['getFirstMarker']()),_0x5d498d=!0x0);return _0x5d498d;}['noTrackChangesFixer'](_0x5000f0){if(_0x5000f0['batch']['isUndo']||!_0x5000f0['batch']['isLocal'])return!0x1;const _0x14fc73=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x14fc73['trackChangesCommand']['value'])return!0x1;let _0x5d3543=!0x1;const _0x2a9afd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5d4dcf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x55dc3b=>'attribute'==_0x55dc3b['type'])['filter'](_0x1e3cea=>_0x2a9afd['includes'](_0x1e3cea['attributeKey']));if(0x0==_0x5d4dcf['length'])return _0x5d3543;for(const _0xc709a2 of _0x5d4dcf){const _0x123a70=_0x14fc73['_findSuggestions'](_0xc709a2['range'],'attribute')['filter'](_0x523ea3=>!_0x523ea3['meta']['isNextTo'])['map'](_0x48fd08=>_0x48fd08['suggestion'])['filter'](_0x347f84=>{const _0x576dcd=_0x14fc73['_getAttributeKey'](_0x347f84);return _0x2a9afd['includes'](_0x576dcd);});if(_0x123a70['length']){for(const _0x4d69b9 of _0x123a70)_0x5000f0['removeMarker'](_0x4d69b9['getFirstMarker']());_0x5d3543=!0x0;}}return _0x5d3543;}['assureChains'](){const _0x1e60a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16059a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x439ebd;const _0x1e8273=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x72e0c=>{if(_0x72e0c['data']['oldRange']||!_0x72e0c['data']['newRange'])return null;if(!_0x72e0c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x270e8e}=_0x1e60a1['_splitMarkerName'](_0x72e0c['name']);if(!_0x1e60a1['hasSuggestion'](_0x270e8e))return null;const _0x38990f=_0x1e60a1['getSuggestion'](_0x270e8e);return _0x16059a['includes'](_0x38990f['data']['key']);})['map'](_0x5d4751=>{const {id:_0x5b0e41}=_0x1e60a1['_splitMarkerName'](_0x5d4751['name']),_0x2781bf=_0x1e60a1['getSuggestion'](_0x5b0e41);return _0x439ebd=_0x2781bf['attributes']['groupId'],_0x2781bf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1e8273['size'])return;const _0x7e17e2=_0x1e60a1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x258cba=>'attribute'==_0x258cba['type']&&_0x258cba['data']&&_0x16059a['includes'](_0x258cba['data']['key'])&&_0x258cba['attributes']['groupId']!=_0x439ebd)['map'](_0xb73817=>({'listItem':_0xb73817['getFirstRange']()['start']['nodeAfter'],'groupId':_0xb73817['attributes']['groupId']})),_0x262b76=new Set();for(const {groupId:_0x37cb38,listItem:_0x19dbf8}of _0x7e17e2)_0x1e8273['has'](_0x19dbf8)&&_0x262b76['add'](_0x37cb38);for(const _0x1a31a4 of _0x1e60a1['getSuggestions']())_0x262b76['has'](_0x1a31a4['attributes']['groupId'])&&_0x1a31a4['setAttribute']('groupId',_0x439ebd);}['_supportLegacySuggestions'](){const _0x578862=this['editor'],_0x3c2692=_0x578862['locale'],_0x31b6b7=_0x578862['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x31b6b7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x507c36,_0x1f0934){const _0x609511=[];for(let _0x5a65a2 of _0x507c36)_0x5a65a2['start']['nodeAfter']===_0x5a65a2['end']['parent']&&(_0x5a65a2=_0x578862['model']['createRange'](_0x578862['model']['createPositionAt'](_0x5a65a2['start']['nodeAfter'],0x0))),_0x609511['push'](_0x5a65a2);_0x578862['model']['change'](_0x551c76=>{const _0x5f2a9e=_0x578862['model']['document']['selection'],_0x546599=Array['from'](_0x5f2a9e['getRanges']())['map'](_0x3c681f=>_0x44fa11['fromRange'](_0x3c681f));_0x551c76['setSelection'](_0x609511),_0x578862['commands']['get'](_0x1f0934['commandName'])['refresh'](),_0x1f0934['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x578862['execute'](_0x1f0934['commandName'],..._0x1f0934['commandParams']),_0x551c76['setSelection'](_0x546599);for(const _0x3fe501 of _0x546599)_0x3fe501['detach']();});}),_0x31b6b7['descriptionFactory']['registerElementLabel'](function(_0x425f8c){const _0x48f852=!_0x578862['model']['schema']['isObject'](_0x425f8c),_0x2a5756=_0x425f8c['previousSibling'],_0x56f574=_0x425f8c['nextSibling'],_0x372fe4=_0x425f8c['getAttribute']('listItemId'),_0x110427=!_0x2a5756||_0x2a5756['getAttribute']('listItemId')!==_0x372fe4,_0x3379d2=!_0x56f574||_0x56f574['getAttribute']('listItemId')!==_0x372fe4;return _0x48f852&&Boolean(_0x372fe4)&&_0x110427&&_0x3379d2;},_0x5cb336=>o(_0x3c2692,'ELEMENT_LIST_ITEM',_0x5cb336));}['_registerLegacyDescription'](){const _0x41fa2e=this['editor'],_0x8a1b62=_0x41fa2e['locale'];function _0x3d8279(_0x498414){const _0x44697f=_0x41fa2e['commands']['get']('bulletedList')['value'],_0x59b2b9=_0x41fa2e['commands']['get']('numberedList')['value'];return'numberedList'===_0x498414?_0x44697f:_0x59b2b9;}_0x41fa2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e06f8){if('formatBlock'!=_0x1e06f8['type'])return;const {data:_0xe1e9b6}=_0x1e06f8;if(!_0xe1e9b6)return;let _0x43a79c,_0x19d9b7,_0x450647,_0x56ad1b;switch(_0xe1e9b6['commandName']){case'bulletedList':_0x450647=_0xe1e9b6['commandParams'][0x0]['forceValue'],_0x56ad1b=_0x3d8279(_0xe1e9b6['commandName']),_0x43a79c=_0x450647?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56ad1b&&_0x41fa2e['config']['get']('list.multiBlock')||(_0x43a79c='*Change\x20to:*\x20%0'),_0x19d9b7={'type':'format','content':o(_0x8a1b62,_0x43a79c,o(_0x8a1b62,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x450647=_0xe1e9b6['commandParams'][0x0]['forceValue'],_0x56ad1b=_0x3d8279(_0xe1e9b6['commandName']),_0x43a79c=_0x450647?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56ad1b&&_0x41fa2e['config']['get']('list.multiBlock')||(_0x43a79c='*Change\x20to:*\x20%0'),_0x19d9b7={'type':'format','content':o(_0x8a1b62,_0x43a79c,o(_0x8a1b62,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x43a79c='*Indent:*\x20%0',_0x19d9b7={'type':'format','content':o(_0x8a1b62,_0x43a79c,o(_0x8a1b62,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x43a79c=function(_0x16d6dc){const _0x102275=_0x16d6dc['getFirstRange']();let _0x5dd394=_0x102275['start']['nodeAfter'];for(;_0x5dd394&&_0x102275['containsItem'](_0x5dd394);){if(_0x5dd394['getAttribute']('listIndent')>0x0)return!0x1;_0x5dd394=_0x5dd394['nextSibling'];}return!0x0;}(_0x1e06f8)?o(_0x8a1b62,'*Format:*\x20remove\x20from\x20%0',o(_0x8a1b62,function(_0x27b067){return'ELEMENT_'+_0x27b067['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e06f8))):o(_0x8a1b62,'*Outdent:*\x20%0',o(_0x8a1b62,'ELEMENT_LIST_ITEM')),_0x19d9b7={'type':'format','content':_0x43a79c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe1e9b6['multipleBlocks']&&(_0x43a79c='*Merge:*\x20%0',_0x19d9b7={'type':'deletion','content':o(_0x8a1b62,_0x43a79c,o(_0x8a1b62,'ELEMENT_LIST_ITEM'))});}return _0x19d9b7;});}}function Te(_0x18dd25){let _0x260ac9=_0x18dd25['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x260ac9;){const _0x1b33ad=_0x260ac9['getAttribute']('listItemId');if(!_0x1b33ad)return!0x1;if(_0x1b33ad==_0x18dd25['data']['newValue'])return'newValue';if(_0x1b33ad==_0x18dd25['data']['oldValue'])return'oldValue';_0x260ac9=_0x260ac9['previousSibling'];}return!0x1;}class H extends _0x568c70{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4408a2=this['editor']['config']['get']('list.properties'),_0x2bbe87=this['editor']['plugins']['get']('TrackChangesEditing');_0x4408a2['styles']&&_0x2bbe87['enableDefaultAttributesIntegration']('listStyle'),_0x4408a2['reversed']&&_0x2bbe87['enableDefaultAttributesIntegration']('listReversed'),_0x4408a2['startIndex']&&_0x2bbe87['enableDefaultAttributesIntegration']('listStart');const _0x7cfbb={'type':'format','content':''};_0x2bbe87['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x7e6834=this['editor']['locale'];_0x2bbe87['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x7e6834,'FORMAT_LIST_REVERSED')),_0x2bbe87['descriptionFactory']['registerDescriptionCallback'](_0x5a20b1=>{const {data:_0x6d7ece}=_0x5a20b1;if(_0x6d7ece&&'listReversed'==_0x6d7ece['key'])return null==_0x6d7ece['newValue']||0x0==_0x6d7ece['newValue']&&null==_0x6d7ece['oldValue']?_0x7cfbb:void 0x0;}),_0x2bbe87['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x7e6834,'FORMAT_LIST_START')),_0x2bbe87['descriptionFactory']['registerDescriptionCallback'](_0x1e8c7a=>{const {data:_0x21437a}=_0x1e8c7a;if(_0x21437a&&'listStart'==_0x21437a['key'])return null==_0x21437a['newValue']||0x1==_0x21437a['newValue']&&null==_0x21437a['oldValue']?_0x7cfbb:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x596dea=>{if(_0x596dea['batch']['isUndo'])return!0x1;let _0x199a56=!0x1;const _0x4dd8df=_0x2bbe87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a66bf=>{const _0x3562c3=_0x2bbe87['_getAttributeKey'](_0x5a66bf);return'listStart'==_0x3562c3||'listReversed'==_0x3562c3;});for(const _0x86d7c1 of _0x4dd8df){const _0x116a9c=_0x86d7c1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x116a9c||'customNumbered'==_0x116a9c)continue;_0x2bbe87['_findSuggestions'](_0x86d7c1['getFirstRange'](),'attribute')['find'](_0x3c1cac=>'listType'==_0x2bbe87['_getAttributeKey'](_0x3c1cac['suggestion']))||(_0x596dea['removeMarker'](_0x86d7c1['getFirstMarker']()),_0x199a56=!0x0);}return _0x199a56;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x62d46f){const _0x19c846=this['editor']['locale'],{data:_0x135156}=_0x62d46f,_0x5f64c5={'type':'format','content':''};if(!_0x135156||'listStyle'!=_0x135156['key'])return;if(!_0x135156['oldValue'])return'default'==_0x135156['newValue']?_0x5f64c5:{'type':'format','content':''+o(_0x19c846,'*Set\x20format:*\x20%0',o(_0x19c846,this['_getTranslationKeyForListStyle'](_0x135156['newValue'])))};if(!_0x135156['newValue']){if('default'==_0x135156['oldValue'])return _0x5f64c5;let _0x4d7c5a=_0x62d46f['head'];for(;_0x4d7c5a;){if(_0x4d7c5a['data']&&'listType'==_0x4d7c5a['data']['key']&&_0x4d7c5a['data']['newValue'])return _0x5f64c5;_0x4d7c5a=_0x4d7c5a['next'];}return{'type':'format','content':''+o(_0x19c846,'*Remove\x20format:*\x20%0',o(_0x19c846,this['_getTranslationKeyForListStyle'](_0x135156['oldValue'])))};}if('default'!=_0x135156['newValue'])return{'type':'format','content':''+o(_0x19c846,'*Set\x20format:*\x20%0',o(_0x19c846,this['_getTranslationKeyForListStyle'](_0x135156['newValue'])))};let _0x39c164=_0x62d46f['head'];for(;_0x39c164;){if(_0x39c164['data']&&'listType'==_0x39c164['data']['key']&&_0x39c164['data']['newValue']&&_0x39c164['data']['oldValue'])return _0x5f64c5;_0x39c164=_0x39c164['next'];}return{'type':'format','content':o(_0x19c846,'*Set\x20format:*\x20%0',o(_0x19c846,'ELEMENT_'+_0x62d46f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x518d84=this['editor'],_0x14449d=_0x518d84['locale'];_0x518d84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x146221=>{if('formatBlock'!=_0x146221['type'])return;const {data:_0x2b2fdd}=_0x146221;if(!_0x2b2fdd)return;let _0x7ed85d,_0x24b2b5;switch(_0x2b2fdd['commandName']){case'listStyle':_0x7ed85d='*Change\x20to:*\x20%0',_0x24b2b5={'type':'format','content':o(_0x14449d,_0x7ed85d,o(_0x14449d,this['_getTranslationKeyForListStyle'](_0x2b2fdd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7ed85d=_0x2b2fdd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24b2b5={'type':'format','content':o(_0x14449d,_0x7ed85d)};break;case'listStart':_0x7ed85d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24b2b5={'type':'format','content':o(_0x14449d,_0x7ed85d,_0x2b2fdd['commandParams'][0x0]['startIndex'])};}return _0x24b2b5;});}['_getTranslationKeyForListStyle'](_0x17d00a){return'ELEMENT_'+function(_0x10030d){if(ye['includes'](_0x10030d))return'bulleted';if(Se['includes'](_0x10030d))return'numbered';return null;}(_0x17d00a)['toUpperCase']()+'_LIST_'+_0x17d00a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x568c70{['afterInit'](){const _0xc43574=this['editor'];_0xc43574['commands']['get']('emoji')&&_0xc43574['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x568c70{static get['requires'](){return[_0x21ef0a];}['init'](){const _0x55f9a8=this['editor'],_0x58fd7f=_0x55f9a8['plugins']['get']('TrackChangesEditing'),_0x2f2204=_0x55f9a8['commands']['get']('enter');_0x58fd7f['enableCommand']('enter',()=>{_0x55f9a8['model']['change'](_0x45f1aa=>{const _0x4a301a=_0x55f9a8['model']['document']['selection'],_0x56fa00=_0x4a301a['getFirstPosition'](),_0x2f3e68=_0x44fa11['fromRange'](_0x4a301a['getFirstRange']());if(_0x2f2204['enterBlock'](_0x45f1aa)){const _0x4c50db=_0x55f9a8['model']['createPositionAt'](_0x56fa00['parent']['nextSibling'],0x0),_0x25020a=_0x45f1aa['createRange'](_0x56fa00,_0x4c50db);_0x58fd7f['markInsertion'](_0x25020a);}else _0x45f1aa['setSelection'](_0x45f1aa['createRange'](_0x2f3e68['end']));_0x2f3e68['detach'](),_0x2f2204['fire']('afterExecute',{'writer':_0x45f1aa});});});}}class Y extends _0x568c70{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x52b372=this['editor']['plugins']['get']('TrackChangesEditing');_0x52b372['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x52b372['enableCommand']('findNext'),_0x52b372['enableCommand']('findPrevious'),_0x52b372['enableCommand']('replace'),_0x52b372['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c6744,_0x5f8e6d,_0x56442e={}){const _0x526bc3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c6744(_0x24d598=>{let _0x38d9db=('string'==typeof _0x5f8e6d?_0x526bc3['findByTextCallback'](_0x5f8e6d,_0x56442e):_0x5f8e6d)(_0x24d598);Array['isArray'](_0x38d9db)&&(_0x38d9db={'results':_0x38d9db,'searchText':'string'==typeof _0x5f8e6d?_0x5f8e6d:''});const _0x470b8e=_0x38d9db['results']['filter'](_0xb303e6=>!0x1===this['_isInDeletionRange'](_0xb303e6,_0x24d598['item']));return{..._0x38d9db,'results':_0x470b8e};},_0x56442e);}['_isInDeletionRange'](_0x199447,_0x10f993){const _0x7e09fc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10f993,_0x199447['start']),this['editor']['model']['createPositionAt'](_0x10f993,_0x199447['end']));for(const _0x407877 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x7e09fc['getIntersection'](_0x407877['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x568c70{['afterInit'](){const _0x4639fe=this['editor']['locale'],_0x102eda=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x7c8f34,commandName:_0x5a7426}of eo)this['editor']['plugins']['has'](_0x7c8f34)&&_0x102eda['enableDefaultAttributesIntegration'](_0x5a7426);_0x102eda['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4639fe,'FORMAT_FONT_SIZE')),_0x102eda['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4639fe,'FORMAT_FONT_FAMILY')),_0x102eda['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4639fe,'FORMAT_FONT_COLOR')),_0x102eda['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4639fe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117d2a=this['editor'],_0x3af104=_0x117d2a['locale'];_0x117d2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f715a=>{const _0x36a2cd=_0x3af104['t'];if('formatInline'!=_0x2f715a['type'])return;const {data:_0x592aac}=_0x2f715a;if(null!=_0x592aac){if('fontSize'==_0x592aac['commandName']){const _0x564208=_0x592aac['commandParams'][0x0]['value'];if(_0x564208){const _0x5d4864=_0x36a2cd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x10fd12=>_0x10fd12['model']==_0x564208)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3af104,'*Set\x20font\x20size:*\x20%0',_0x5d4864)};}return{'type':'format','content':o(_0x3af104,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x592aac['commandName']){const _0x507181=_0x592aac['commandParams'][0x0]['value'];return _0x507181?{'type':'format','content':o(_0x3af104,'*Set\x20font\x20family:*\x20%0',_0x507181)}:{'type':'format','content':o(_0x3af104,'*Reset\x20font\x20family*')};}if('fontColor'==_0x592aac['commandName']){const _0x2ce302=_0x592aac['commandParams'][0x0]['value'];if(_0x2ce302){const _0x215a07=_0x44dc29(this['editor']['config']['get']('fontColor.colors'))['find'](_0x33cdcf=>_0x33cdcf['model']==_0x2ce302);let _0x449ecf=_0x2ce302,_0x22b3e1='';return _0x215a07&&(_0x449ecf=_0x215a07['label'],_0x22b3e1=_0x36a2cd(_0x449ecf)['toLowerCase']()),{'type':'format','content':o(_0x3af104,'*Set\x20font\x20color:*\x20%0',_0x22b3e1)['trim'](),'color':{'value':_0x2ce302,'title':_0x22b3e1||_0x449ecf}};}return{'type':'format','content':o(_0x3af104,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x592aac['commandName']){const _0x23f48a=_0x592aac['commandParams'][0x0]['value'];if(_0x23f48a){const _0xf0d0dd=_0x44dc29(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2a4948=>_0x2a4948['model']==_0x23f48a);let _0x59cb9d=_0x23f48a,_0x20bbf1='';return _0xf0d0dd&&(_0x59cb9d=_0xf0d0dd['label'],_0x20bbf1=_0x36a2cd(_0x59cb9d)['toLowerCase']()),{'type':'format','content':o(_0x3af104,'*Set\x20font\x20background\x20color:*\x20%0',_0x20bbf1)['trim'](),'color':{'value':_0x23f48a,'title':_0x20bbf1||_0x59cb9d}};}return{'type':'format','content':o(_0x3af104,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x568c70{['afterInit'](){const {plugins:_0x1c3ccf}=this['editor'];_0x1c3ccf['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1c3ccf['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x52bab1,plugins:_0x308b52,commands:_0x3ed550}=this['editor'],_0x339601=_0x308b52['get']('TrackChangesEditing');_0x3ed550['get']('footnotesStyle')&&_0x339601['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3ed550['get']('footnotesStart')&&_0x339601['enableDefaultAttributesIntegration']('footnotesStart'),_0x339601['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x52bab1,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x339601['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x52bab1,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1db220=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5257d7,commands:_0x50c7e6}=this['editor'];_0x50c7e6['get']('insertFootnote')&&_0x1db220['enableCommand']('insertFootnote'),_0x1db220['descriptionFactory']['registerElementLabel']('footnoteRef',_0x15a327=>o(_0x5257d7,'ELEMENT_FOOTNOTE_REF',_0x15a327)),_0x1db220['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x540a13=>o(_0x5257d7,'ELEMENT_FOOTNOTE_DEFINITION',_0x540a13)),_0x1db220['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x200009=>o(_0x5257d7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x200009));}}class nt extends _0x568c70{['afterInit'](){const _0x2e2eda=this['editor'],_0x66a07c=_0x2e2eda['plugins']['get']('TrackChangesEditing'),_0xe52a96=_0x2e2eda['commands']['get']('copyFormat'),_0x197ce7=_0x2e2eda['commands']['get']('pasteFormat');_0xe52a96&&_0x197ce7&&(_0x66a07c['enableDefaultAttributesIntegration']('pasteFormat'),_0x66a07c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x384d89=this['editor'],_0x211461=_0x384d89['locale'];_0x384d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d3e7=>{if('formatBlock'!=_0x51d3e7['type']&&'formatInline'!=_0x51d3e7['type'])return;const {data:_0x1e84e6}=_0x51d3e7;if(_0x1e84e6&&'pasteFormat'===_0x1e84e6['commandName']){const _0x3d6fd3=[],_0x17842c=_0x1e84e6['commandParams'][0x0];for(const [_0x2bf32d,_0x3f4d83]of Object['entries'](_0x17842c))_0x3d6fd3['push'](ro(_0x384d89,_0x2bf32d,_0x3f4d83));return _0x3d6fd3['length']?{'type':'format','content':o(_0x211461,'*Set\x20format\x20to:*\x20%0',_0x3d6fd3['join'](',\x20'))}:{'type':'format','content':o(_0x211461,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2a2b40,_0x8f3156,_0x351dc7){const _0xdfd7a=_0x2a2b40['locale']['t'],_0x1d7d21=_0x8f3156['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b7b2d=_0xdfd7a(_0x1d7d21['charAt'](0x0)['toUpperCase']()+_0x1d7d21['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x351dc7)return _0x3b7b2d;if('fontColor'===_0x8f3156||'fontBackgroundColor'===_0x8f3156){const _0x25151f=_0x44dc29(_0x2a2b40['config']['get']('fontColor.colors'))['find'](_0xfc9cf1=>_0xfc9cf1['model']==_0x351dc7);return _0x3b7b2d+'\x20('+(_0x25151f?_0xdfd7a(_0x25151f['label'])['toLowerCase']():_0x351dc7)+')';}if('fontSize'===_0x8f3156&&isNaN(parseFloat(_0x351dc7))){const _0x38bebc=_0x2a2b40['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2a2b40['config']['get']('fontSize.options'))['find'](_0x440bcf=>_0x440bcf['model']==_0x351dc7);return _0x3b7b2d+'\x20('+(_0x38bebc?_0xdfd7a(_0x38bebc['title'])['toLowerCase']():_0x351dc7)+')';}return _0x3b7b2d+'\x20('+_0x351dc7+')';}class it extends _0x568c70{['_headingOptions'];['afterInit'](){const _0x44d591=this['editor'];if(!_0x44d591['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x44d591['config']['get']('heading.options');const _0xb82733=_0x44d591['locale'],_0x377787=_0x44d591['plugins']['get']('TrackChangesEditing');_0x377787['enableDefaultAttributesIntegration']('heading');for(const _0x397c5e of this['_headingOptions'])'paragraph'!=_0x397c5e['model']&&_0x377787['descriptionFactory']['registerElementLabel'](_0x397c5e['model'],_0x3f2ce1=>{const _0x5a1d8a=this['_getHeadingLevel'](_0x397c5e['model']);return null!==_0x5a1d8a?_0x21acdc(_0x3f2ce1,_0x5a1d8a):_0x5c957e(_0x3f2ce1,_0x397c5e['title']);});function _0x21acdc(_0x41007d,_0x2309e7){return o(_0xb82733,'ELEMENT_HEADING',[_0x41007d,_0x2309e7]);}function _0x5c957e(_0x3a9ce3,_0x2d90b2){return o(_0xb82733,'ELEMENT_HEADING_CUSTOM',[_0x3a9ce3,_0x2d90b2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12d04e=this['editor'],_0x4793ca=_0x12d04e['locale'];function _0x1a26c3(_0x277988,_0xdff808){return o(_0x4793ca,'ELEMENT_HEADING_CUSTOM',[_0x277988,_0xdff808]);}_0x12d04e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e6c1e=>{if('formatBlock'!=_0x4e6c1e['type'])return;const {data:_0x52f4c3}=_0x4e6c1e;if(_0x52f4c3&&'heading'==_0x52f4c3['commandName']){const _0x24ca42=_0x52f4c3['commandParams'][0x0]['value'],_0x3b82f5=this['_getHeadingLevel'](_0x24ca42);if(null!==_0x3b82f5)return{'type':'format','content':o(_0x4793ca,'*Change\x20to:*\x20%0',(_0x3b4a20=0x1,_0x30f62b=_0x3b82f5,o(_0x4793ca,'ELEMENT_HEADING',[_0x3b4a20,_0x30f62b])))};const _0x2b833c=this['_headingOptions']['find'](_0x3fb686=>_0x3fb686['model']===_0x24ca42)['title'];return{'type':'format','content':o(_0x4793ca,'*Change\x20to:*\x20%0',_0x1a26c3(0x1,_0x2b833c))};}var _0x3b4a20,_0x30f62b;});}['_getHeadingLevel'](_0x3c9dfe){const _0x4c5c70=_0x3c9dfe['match'](/^heading(\d+)/);if(_0x4c5c70)return _0x4c5c70[0x1];const _0x2e0f00=this['_headingOptions']?.['find'](_0xf5c89d=>_0xf5c89d['model']==_0x3c9dfe);if(_0x2e0f00&&_0x2e0f00['view']){const _0x1b407e=_0x2e0f00['view'],_0x5f472c=(_0x1b407e['name']??_0x1b407e)['match'](/^h(\d+)/);if(_0x5f472c)return _0x5f472c[0x1];}return null;}}class et extends _0x568c70{['afterInit'](){const _0x2bd8e6=this['editor'];if(!_0x2bd8e6['plugins']['has']('HighlightEditing'))return;const _0x231412=_0x2bd8e6['plugins']['get']('TrackChangesEditing'),_0x320095=_0x2bd8e6['locale'];_0x231412['enableDefaultAttributesIntegration']('highlight'),_0x231412['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x320095,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25bed2=this['editor'],_0x4301dd=_0x25bed2['locale'];_0x25bed2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2758d6=>{if('formatInline'!=_0x2758d6['type'])return;const {data:_0x5acab2}=_0x2758d6;if(_0x5acab2&&'highlight'==_0x5acab2['commandName']){const _0x30f3c4=_0x4301dd['t'],_0x19d9d5=_0x5acab2['commandParams'][0x0]['value'];if(_0x19d9d5){const _0x552ab9=_0x25bed2['config']['get']('highlight.options')['find'](_0x55d218=>_0x55d218['model']==_0x19d9d5),_0x1ad5f5=_0x30f3c4(_0x552ab9['title'])['toLowerCase']();return{'type':'format','content':o(_0x4301dd,'*Set\x20highlight:*\x20%0',_0x1ad5f5),'color':{'value':_0x552ab9['color'],'title':_0x552ab9['title']}};}return{'type':'format','content':o(_0x4301dd,'*Remove\x20highlight*',o(_0x4301dd,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x568c70{['afterInit'](){const _0x4a63d8=this['editor'];if(!_0x4a63d8['plugins']['has']('HorizontalLineEditing'))return;_0x4a63d8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x184358=_0x4a63d8['plugins']['get']('TrackChangesEditing'),_0x18a866=_0x4a63d8['locale'];_0x184358['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1de8f9=>o(_0x18a866,'ELEMENT_HORIZONTAL_LINE',_0x1de8f9));}}class ot extends _0x568c70{['afterInit'](){const _0x35bfcc=this['editor'];if(!_0x35bfcc['plugins']['has']('HtmlEmbed'))return;const _0x506839=_0x35bfcc['plugins']['get']('TrackChangesEditing'),_0x33bd7f=_0x35bfcc['locale'];_0x506839['descriptionFactory']['registerElementLabel']('rawHtml',_0x18616f=>o(_0x33bd7f,'ELEMENT_HTML_EMBED',_0x18616f)),_0x506839['enableDefaultAttributesIntegration']('htmlEmbed'),_0x506839['descriptionFactory']['registerDescriptionCallback'](_0x2dd60d=>{if('attribute'!=_0x2dd60d['type'])return;const {data:_0x22076c}=_0x2dd60d;if(_0x22076c&&'value'==_0x22076c['key']&&_0x2dd60d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d781b=o(_0x33bd7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33bd7f,'*Change\x20%0\x20content*',_0x3d781b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dc92=this['editor'],_0x498002=_0x29dc92['locale'];_0x29dc92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33421d=>{if('formatBlock'!=_0x33421d['type'])return;const {data:_0x2af0dc}=_0x33421d;if(_0x2af0dc&&'htmlEmbed'==_0x2af0dc['commandName']){const _0x5bff8e=o(_0x498002,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x498002,'*Change\x20%0\x20content*',_0x5bff8e)};}});}}class rt extends _0x568c70{['afterInit'](){const _0x409908=this['editor'];if(!_0x409908['plugins']['has']('ImageEditing'))return;const _0x28bd3f=_0x409908['plugins']['get']('TrackChangesEditing'),_0x60c7e2=_0x409908['plugins']['get']('ImageUtils'),_0xbebd11=_0x409908['locale'];_0x28bd3f['enableCommand']('insertImage'),_0x28bd3f['descriptionFactory']['registerElementLabel']('imageBlock',_0x1514c0=>o(_0xbebd11,'ELEMENT_IMAGE',_0x1514c0)),_0x28bd3f['descriptionFactory']['registerElementLabel']('imageInline',_0x172a11=>o(_0xbebd11,'ELEMENT_INLINE_IMAGE',_0x172a11)),_0x28bd3f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xbebd11,'ELEMENT_CAPTION')),_0x409908['plugins']['has']('ImageUploadEditing')&&_0x28bd3f['enableCommand']('uploadImage'),_0x409908['plugins']['has']('ImageBlockEditing')&&_0x409908['plugins']['has']('ImageInlineEditing')&&(_0x28bd3f['enableCommand']('imageTypeInline',(_0xab5171,_0x435d30)=>{const _0x1aa70f=_0x60c7e2['getClosestSelectedImageElement'](_0x409908['model']['document']['selection']);_0x409908['model']['change'](()=>{_0x28bd3f['markBlockFormat'](_0x1aa70f,{'commandName':'imageTypeInline','commandParams':[_0x435d30]},[],'convertBlockImageToInline');});}),_0x28bd3f['enableCommand']('imageTypeBlock',(_0x2afed7,_0x39a085)=>{_0x409908['model']['change'](_0x5e2b14=>{let _0x3eead1=_0x60c7e2['getClosestSelectedImageElement'](_0x409908['model']['document']['selection']),_0x3c3598=_0x5e2b14['createRangeOn'](_0x3eead1);const _0x286587=_0x2f9207['fromPosition'](_0x3c3598['start'],'toPrevious'),_0x61fc5a=_0x2f9207['fromPosition'](_0x3c3598['end'],'toNext');_0x28bd3f['forceDefaultExecution'](()=>_0x2afed7(_0x39a085)),_0x3eead1=_0x60c7e2['getClosestSelectedImageElement'](_0x409908['model']['document']['selection']),_0x3c3598=_0x5e2b14['createRangeOn'](_0x3eead1);const _0x580e1e=_0x5e2b14['createRange'](_0x286587,_0x61fc5a);_0x286587['detach'](),_0x61fc5a['detach'](),_0x28bd3f['markBlockFormat'](_0x3eead1,{'commandName':'imageTypeInline','commandParams':[_0x39a085]},[],'convertInlineImageToBlock'),_0x580e1e['start']['isBefore'](_0x3c3598['start'])&&_0x28bd3f['markInsertion'](_0x5e2b14['createRange'](_0x580e1e['start'],_0x3c3598['start']),'convertInlineImageToBlock'),_0x3c3598['end']['isBefore'](_0x580e1e['end'])&&_0x28bd3f['markInsertion'](_0x5e2b14['createRange'](_0x3c3598['end'],_0x580e1e['end']),'convertInlineImageToBlock');});}),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x28bd3f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4d8831])=>{const _0x54be58=_0x28bd3f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x18b47a=_0x4d8831['start'],_0x4b1c66=_0x4d8831['end'];const _0x2b6d89=_0x409908['model']['schema']['getNearestSelectionRange'](_0x18b47a,'backward'),_0x42bfcc=_0x409908['model']['schema']['getNearestSelectionRange'](_0x4b1c66,'forward');_0x2b6d89['isCollapsed']&&(_0x18b47a=_0x2b6d89['start']),_0x42bfcc['isCollapsed']&&(_0x4b1c66=_0x42bfcc['end']),_0x54be58([_0x409908['model']['createRange'](_0x18b47a,_0x4b1c66)]);}),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5a4acc),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5a4acc)),_0x409908['plugins']['has']('ImageCaptionEditing')&&(_0x28bd3f['enableCommand']('toggleImageCaption',(_0x491b2d,_0x22e1ac)=>{const _0xd88837=_0x409908['plugins']['get']('ImageCaptionUtils');let _0x9e2a52=_0x60c7e2['getClosestSelectedImageElement'](_0x409908['model']['document']['selection']),_0x52a181=_0xd88837['getCaptionFromImageModelElement'](_0x9e2a52);_0x409908['model']['change'](()=>{if(_0x52a181)return void _0x28bd3f['markDeletion'](_0x409908['model']['createRangeOn'](_0x52a181));const _0x393dda=_0x60c7e2['isBlockImage'](_0x9e2a52);_0x491b2d(_0x22e1ac),_0x9e2a52=_0x60c7e2['getClosestSelectedImageElement'](_0x409908['model']['document']['selection']),_0x52a181=_0xd88837['getCaptionFromImageModelElement'](_0x9e2a52),_0x28bd3f['markInsertion'](_0x409908['model']['createRangeOn'](_0x52a181),_0x393dda?null:'imageCaption');});}),_0x28bd3f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5a4acc));const _0x2b9f04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47b82e(_0x347970,_0x509795){const _0x47bd82=_0x2b9f04['findIndex'](({type:_0x9e6d00,subType:_0x5c8566})=>_0x347970['type']==_0x9e6d00&&_0x347970['subType']==_0x5c8566),_0xeb48ba=_0x2b9f04['findIndex'](({type:_0x4ffff7,subType:_0x3d15a8})=>_0x509795['type']==_0x4ffff7&&_0x509795['subType']==_0x3d15a8);if(_0x47bd82<0x0||_0xeb48ba<0x0)return!0x1;const _0x34808b=_0x347970['getFirstRange'](),_0x5d0136=_0x509795['getFirstRange']();if((0x0==_0x47bd82||0x1==_0x47bd82)&&0x2==_0xeb48ba&&_0x34808b['isIntersecting'](_0x5d0136))return!0x0;if(0x2==_0x47bd82&&0x3==_0xeb48ba){const _0x44cc4c=_0x28bd3f['_findSuggestions'](_0x34808b,'insertion')['filter'](({suggestion:_0x4a3739,meta:_0x4b6489})=>_0x4b6489['isOwn']&&'convertInlineImageToBlock'==_0x4a3739['subType']);if(_0x44cc4c['length']>0x1&&_0x5d0136['end']['isEqual'](_0x34808b['start']))return!0x0;if(0x1==_0x44cc4c['length']&&(_0x34808b['start']['isEqual'](_0x5d0136['end'])||_0x34808b['end']['isEqual'](_0x5d0136['start'])))return!0x0;}if(0x3==_0x47bd82&&0x3==_0xeb48ba&&_0x34808b['start']['isBefore'](_0x5d0136['start'])){const _0x5a884a=_0x34808b['end']['nodeAfter'],_0x506abd=_0x5d0136['start']['nodeBefore'];return _0x60c7e2['isBlockImage'](_0x5a884a)&&_0x5a884a===_0x506abd;}return!0x1;}function _0x5a4acc(_0x5e8629,_0x11b7f8){return _0x47b82e(_0x5e8629,_0x11b7f8)?[_0x5e8629,_0x11b7f8]:_0x47b82e(_0x11b7f8,_0x5e8629)?[_0x11b7f8,_0x5e8629]:null;}_0x409908['plugins']['has']('ImageResize')&&(_0x28bd3f['enableDefaultAttributesIntegration']('resizeImage'),_0x28bd3f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xbebd11,'FORMAT_IMAGE_SIZE'))),_0x409908['plugins']['has']('ImageTextAlternativeEditing')&&_0x28bd3f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x409908['plugins']['has']('PictureEditing')&&_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0x5da9b8=>{if('attribute'!=_0x5da9b8['type'])return;const {data:_0x5880ac}=_0x5da9b8;return _0x5880ac&&'sources'==_0x5880ac['key']?{'type':'format','content':''}:void 0x0;}),_0x409908['plugins']['has']('ImageSizeAttributes')&&_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0x123481=>{if('attribute'!=_0x123481['type'])return;const {data:_0x4fdcb4}=_0x123481;return!_0x4fdcb4||'width'!=_0x4fdcb4['key']&&'height'!=_0x4fdcb4['key']?void 0x0:{'type':'format','content':''};}),_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0xfc18f3=>{if(!!_0x2b9f04['find'](({type:_0xbb717a,subType:_0x440be7})=>_0xfc18f3['type']==_0xbb717a&&_0xfc18f3['subType']==_0x440be7))return _0xfc18f3['previous']?{}:void 0x0;}),_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0x171ad2=>{if('insertion'==_0x171ad2['type']||'deletion'==_0x171ad2['type']){const _0x441e2c=_0x171ad2['getContainedElement']();if(_0x441e2c&&_0x441e2c['is']('element','caption'))return{'type':'insertion'==_0x171ad2['type']?'addObject':'removeObject','element':_0x441e2c,'quantity':0x1};}}),_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0x43a6aa=>'formatBlock'==_0x43a6aa['type']&&'convertInlineImageToBlock'==_0x43a6aa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x43a6aa['type']&&'convertBlockImageToInline'==_0x43a6aa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x28bd3f['descriptionFactory']['registerDescriptionCallback'](_0x1aa35f=>{if('attribute'!=_0x1aa35f['type'])return;const {data:_0x492c9e}=_0x1aa35f;if(!_0x492c9e||'alt'!=_0x492c9e['key'])return;const _0x6ceacc=_0x492c9e['newValue'];return _0x6ceacc?{'type':'format','content':o(_0xbebd11,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x6ceacc+'\x22')}:{'type':'format','content':o(_0xbebd11,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1406de=this['editor'],_0x2aa20a=_0x1406de['locale'];_0x1406de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a866=>{if('formatBlock'!=_0x21a866['type']&&'formatInline'!=_0x21a866['type'])return;const {data:_0x56a5a8}=_0x21a866;if(_0x56a5a8){if('imageTextAlternative'==_0x56a5a8['commandName']){const _0x15eed8=_0x56a5a8['commandParams'][0x0]['newValue'];return _0x15eed8?{'type':'format','content':o(_0x2aa20a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x15eed8+'\x22')}:{'type':'format','content':o(_0x2aa20a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x56a5a8['commandName']){const _0x19b1a8=_0x56a5a8['commandParams'][0x0]['width'];return _0x19b1a8?{'type':'format','content':o(_0x2aa20a,'*Set\x20image\x20width:*\x20%0',_0x19b1a8)}:{'type':'format','content':o(_0x2aa20a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x568c70{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x56d3fe=this['editor']['locale'],_0x1713fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1713fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1713fb['descriptionFactory']['registerDescriptionCallback'](_0x2f1d13=>{if('attribute'!=_0x2f1d13['type'])return;const {data:_0x45afd3}=_0x2f1d13;return _0x45afd3&&'src'==_0x45afd3['key']?_0x45afd3['newValue']&&_0x45afd3['oldValue']?{'type':'format','content':o(_0x56d3fe,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ffbdf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ffbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4ffbdf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ffbdf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4ffbdf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f82d4=this['editor'],_0x16de0e=_0x3f82d4['locale'];_0x3f82d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a393d=>{if('formatBlock'!=_0x2a393d['type']&&'formatInline'!=_0x2a393d['type'])return;const {data:_0x2eb5c8}=_0x2a393d;if(!_0x2eb5c8||'replaceImageSource'!=_0x2eb5c8['commandName'])return;return{'type':'format','content':o(_0x16de0e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x568c70{['afterInit'](){const _0x50ae1c=this['editor'];if(!_0x50ae1c['plugins']['has']('ImageStyleEditing'))return;const _0x20143d=_0x50ae1c['plugins']['get']('TrackChangesEditing'),_0x766ccc=_0x50ae1c['plugins']['get']('ImageUtils'),_0x51732e={};_0x20143d['enableCommand']('imageStyle',(_0x356f95,_0xd23472)=>{const _0x5e798c=_0x50ae1c['plugins']['get']('Users')['me'],_0x4d0e83=_0x50ae1c['commands']['get']('imageStyle');let _0x2b258c=_0x766ccc['getClosestSelectedImageElement'](_0x50ae1c['model']['document']['selection']),_0x2c1ec9=_0x50ae1c['model']['createRangeOn'](_0x2b258c),_0x1d7be6=_0x4d0e83['value'];if(_0x1d7be6==_0xd23472['value'])return;const _0x21e4ad={'commandName':'imageStyle','commandParams':[_0xd23472],'formatGroupId':_0x47121d()};_0x50ae1c['model']['change'](()=>{if(_0x20143d['getSuggestions']()['filter'](_0x55ce87=>_0x55ce87['isInContent']&&_0x5e798c==_0x55ce87['author']&&('formatBlock'==_0x55ce87['type']||'formatInline'==_0x55ce87['type'])&&('imageStylePreApply'==_0x55ce87['subType']||'imageStylePostApply'==_0x55ce87['subType'])&&_0x55ce87['getFirstRange']()['isEqual'](_0x2c1ec9))['forEach'](_0x50466e=>_0x20143d['discardSuggestion'](_0x50466e['head'])),_0x2b258c=_0x766ccc['getClosestSelectedImageElement'](_0x50ae1c['model']['document']['selection']),_0x2c1ec9=_0x50ae1c['model']['createRangeOn'](_0x2b258c),_0x4d0e83['refresh'](),_0x50ae1c['commands']['get']('imageTypeInline')['refresh'](),_0x50ae1c['commands']['get']('imageTypeBlock')['refresh'](),_0x1d7be6=_0x4d0e83['value'],_0x1d7be6!=_0xd23472['value'])return _0x766ccc['isInlineImage'](_0x2b258c)&&_0x4d0e83['shouldConvertImageType'](_0xd23472['value'],_0x2b258c)?(_0x356f95({..._0xd23472,'setImageSizes':!0x1}),_0x2b258c=_0x766ccc['getClosestSelectedImageElement'](_0x50ae1c['model']['document']['selection']),void _0x20143d['markBlockFormat'](_0x2b258c,{..._0x21e4ad,'commandReversedParams':[{'value':_0x1d7be6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x766ccc['isBlockImage'](_0x2b258c)?_0x20143d['markBlockFormat'](_0x2b258c,_0x21e4ad,[],'imageStylePostApply'):_0x20143d['markInlineFormat'](_0x2c1ec9,_0x21e4ad,'imageStylePostApply'));});});for(const _0x1b08bc of _0x50ae1c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51732e[_0x1b08bc['name']]=_0x1b08bc['title']['toLowerCase']();_0x20143d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x20143d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x20143d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x20143d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x49c286])=>{_0x766ccc['setImageNaturalSizeAttributes'](_0x49c286['getContainedElement']());}),_0x20143d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19b4ef,_0x399856)=>{_0x20143d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19b4ef,{'commandName':_0x399856['commandName'],'commandParams':_0x399856['commandReversedParams']});}),_0x20143d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x47bd5f,_0x5755da){if(_0xbbba2c(_0x47bd5f,_0x5755da))return[_0x47bd5f,_0x5755da];if(_0xbbba2c(_0x5755da,_0x47bd5f))return[_0x5755da,_0x47bd5f];return null;});const _0x1a993b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbbba2c(_0x427e26,_0xd5c78c){const _0x5806d9=_0x1a993b['findIndex'](({type:_0x25702f,subType:_0x148af3})=>_0x427e26['type']==_0x25702f&&_0x427e26['subType']==_0x148af3),_0x2ead51=_0x1a993b['findIndex'](({type:_0x55d665,subType:_0x598535})=>_0xd5c78c['type']==_0x55d665&&_0xd5c78c['subType']==_0x598535);if(_0x5806d9<0x0||_0x2ead51<0x0)return!0x1;const _0x197fa3=_0x427e26['getFirstRange'](),_0x248a72=_0xd5c78c['getFirstRange']();if((0x0==_0x5806d9||0x1==_0x5806d9)&&0x2==_0x2ead51&&_0x197fa3['isIntersecting'](_0x248a72))return!0x0;if(0x2==_0x5806d9&&0x3==_0x2ead51){const _0x4456ef=_0x20143d['_findSuggestions'](_0x197fa3,'insertion')['filter'](({suggestion:_0x255239,meta:_0x1c0c99})=>_0x1c0c99['isOwn']&&'convertInlineImageToBlock'==_0x255239['subType']);if(_0x4456ef['length']>0x1&&_0x248a72['end']['isEqual'](_0x197fa3['start']))return!0x0;if(0x1==_0x4456ef['length']&&(_0x197fa3['start']['isEqual'](_0x248a72['end'])||_0x197fa3['end']['isEqual'](_0x248a72['start'])))return!0x0;}if(0x3==_0x5806d9&&0x3==_0x2ead51&&_0x197fa3['start']['isBefore'](_0x248a72['start'])){const _0x507299=_0x197fa3['end']['nodeAfter'],_0x439370=_0x248a72['start']['nodeBefore'];return _0x766ccc['isBlockImage'](_0x507299)&&_0x507299===_0x439370;}return!0x1;}_0x50ae1c['model']['document']['registerPostFixer'](()=>{let _0x4fb746=!0x1;const _0x52dc8e=Array['from'](_0x50ae1c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa2d8b7,data:_0x5db8a7}of _0x52dc8e){const {group:_0x207dd1,type:_0x22041c,subType:_0x1cedac,id:_0x46a8f9}=_0x20143d['_splitMarkerName'](_0xa2d8b7);if('suggestion'==_0x207dd1&&_0x20143d['hasSuggestion'](_0x46a8f9)){if('formatBlock'==_0x22041c&&('imageStylePreApply'==_0x1cedac||'imageStylePostApply'==_0x1cedac)){const _0x19a6bd=_0x20143d['getSuggestion'](_0x46a8f9);if(_0x5db8a7['newRange']){const _0x5d8e51=_0x19a6bd['getFirstRange']()['getContainedElement']();if(_0x766ccc['isBlockImage'](_0x5d8e51))continue;_0x20143d['discardSuggestion'](_0x19a6bd),_0x4fb746=!0x0;}}if('insertion'==_0x22041c&&'imageCaption'==_0x1cedac&&!_0x5db8a7['newRange']){const _0x1580ec=_0x20143d['getSuggestion'](_0x46a8f9);_0x1580ec['next']&&_0x1580ec['next']['isInContent']&&(_0x20143d['discardSuggestion'](_0x1580ec['next']),_0x4fb746=!0x0);}}}return _0x4fb746;}),this['_registerLegacyDescription'](_0x51732e);}['_registerLegacyDescription'](_0x2dd8b5){const _0x1091dd=this['editor'],_0x4969fb=_0x1091dd['locale'];_0x1091dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7177f7=>{if('formatBlock'!=_0x7177f7['type']&&'formatInline'!=_0x7177f7['type'])return;const {data:_0x11fd9d}=_0x7177f7;if(!_0x11fd9d||'imageStyle'!=_0x11fd9d['commandName'])return;const _0x4562cf=_0x11fd9d['commandParams'][0x0]['value'];return _0x363066('side'===_0x4562cf?o(_0x4969fb,'FORMAT_SIDE_IMAGE'):_0x2dd8b5[_0x4562cf]||_0x4562cf);function _0x363066(_0x254db7){return{'type':'format','content':o(_0x4969fb,'*Format:*\x20%0',_0x254db7)};}});}}class ut extends _0x568c70{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2e31e5){super(_0x2e31e5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x80b98b=this['editor'],_0x1237c3=_0x80b98b['commands']['get']('importWord'),_0x41a216=_0x80b98b['commands']['get']('trackChanges');_0x1237c3&&(_0x1237c3['on']('execute',(_0x4f93a2,[,_0x1ad581])=>{this['_trackChangesValueDuringImport']=_0x41a216['value'],_0x1ad581['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1237c3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1237c3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x41a216['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x80b98b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x357eff,_0x45f60a){const {suggestions:_0x9d0dce}=_0x45f60a,_0x186963=this['editor']['commands']['get']('trackChanges'),_0x33b566=_0x186963['value'];this['_trackChangesValueDuringImport']!==_0x33b566&&(_0x186963['execute'](),this['_trackChangesExecuted']=!0x0),_0x9d0dce&&_0x9d0dce['forEach'](({id:_0x5c543b,type:_0x187e07,author:_0x1c421c,created_at:_0x533a0e})=>{const _0x255870={'id':_0x5c543b,'type':_0x187e07,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c421c,'createdAt':_0x533a0e?new Date(_0x533a0e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x255870);});}}class ft extends _0x568c70{['afterInit'](){const _0x3f7841=this['editor'],_0x5c6761=_0x3f7841['plugins']['get']('TrackChangesEditing');if(_0x3f7841['plugins']['has']('IndentEditing')&&(_0x5c6761['enableCommand']('indent'),_0x5c6761['enableCommand']('outdent')),_0x3f7841['plugins']['has']('IndentBlock')){for(const _0x237410 of['indentBlock','outdentBlock'])_0x5c6761['enableDefaultAttributesIntegration'](_0x237410);}const _0x2b1451=_0x3f7841['locale'];_0x5c6761['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2b1451,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24b0c0=this['editor'],_0x520dcf=_0x24b0c0['locale'],_0x1e5322=_0x24b0c0['plugins']['get']('TrackChangesEditing');_0x1e5322['descriptionFactory']['registerDescriptionCallback'](_0xa91bd5=>{if('formatBlock'!=_0xa91bd5['type'])return;const {data:_0xcd3e1c}=_0xa91bd5;if(!_0xcd3e1c)return;if('indentBlock'!=_0xcd3e1c['commandName']&&'outdentBlock'!=_0xcd3e1c['commandName'])return;const _0x1b677d=_0xa91bd5['getItems']()[0x0],_0x318533=_0x1e5322['descriptionFactory']['getItemLabel'](_0x1b677d);return'indentBlock'==_0xcd3e1c['commandName']?{'type':'format','content':o(_0x520dcf,'*Indent:*\x20%0',_0x318533)}:'outdentBlock'==_0xcd3e1c['commandName']?{'type':'format','content':o(_0x520dcf,'*Outdent:*\x20%0',_0x318533)}:void 0x0;});}}class ht extends _0x568c70{static get['requires'](){return[_0x191eb3];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x568c70{['afterInit'](){const _0x2c9271=this['editor'];if(!_0x2c9271['plugins']['has']('LinkEditing'))return;const _0x3da792=_0x2c9271['plugins']['get']('TrackChangesEditing'),_0x5991c7=_0x2c9271['commands']['get']('link');_0x3da792['enableDefaultAttributesIntegration']('link'),_0x3da792['enableDefaultAttributesIntegration']('unlink');for(const _0x1263c2 of _0x5991c7['manualDecorators'])_0x3da792['descriptionFactory']['registerAttributeLabel'](_0x1263c2['id'],'link\x20('+_0x1263c2['label']['toLowerCase']()+')');_0x3da792['descriptionFactory']['registerDescriptionCallback'](_0x4ef474=>{if('attribute'!=_0x4ef474['type'])return;const {data:_0x3eea92}=_0x4ef474;if(!_0x3eea92||'linkHref'!=_0x3eea92['key'])return;const _0x1c87e5=_0x3eea92['newValue'],_0x3087c4=_0x2c9271['locale'];return{'type':'format','content':null==_0x1c87e5?o(_0x3087c4,'*Remove\x20link*'):o(_0x3087c4,'*Set\x20link:*\x20%0','\x22'+_0x1c87e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58810c=this['editor'],_0x5ef491=_0x58810c['locale'];_0x58810c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4d17=>{if('formatInline'!=_0x3b4d17['type'])return;const {data:_0x11f4fb}=_0x3b4d17;if(_0x11f4fb){if('link'==_0x11f4fb['commandName']){const _0x5d802b=_0x11f4fb['commandParams'][0x0];return{'type':'format','content':o(_0x5ef491,'*Set\x20link:*\x20%0','\x22'+_0x5d802b+'\x22')};}return'unlink'==_0x11f4fb['commandName']?{'type':'format','content':o(_0x5ef491,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x568c70{['afterInit'](){const _0x29c4e5=this['editor'],_0x55ab0f=_0x29c4e5['locale'];if(!_0x29c4e5['plugins']['has']('LegacyListEditing'))return;const _0x514181=_0x29c4e5['plugins']['get']('TrackChangesEditing'),_0x2c6362=_0x29c4e5['plugins']['has']('LegacyTodoListEditing');function _0x4a3540(_0x4dd157){return()=>{const _0x4d0695=_0x29c4e5['model']['document']['selection'],_0x3cece3=_0x29c4e5['commands']['get'](_0x4dd157);if(_0x3cece3['value'])return void _0x29c4e5['execute']('paragraph',{});const _0x47b150=_0x4dd157['slice'](0x0,-0x4),_0x2e9b16=function(_0x4af29f,_0x2c322d,_0xc22fd9){let _0x142e08=Array['from'](_0x4af29f)['filter'](_0x1ec065=>function(_0x262175,_0x1d1f57){return _0x1d1f57['checkChild'](_0x262175['parent'],'listItem')&&!_0x1d1f57['isObject'](_0x262175);}(_0x1ec065,_0xc22fd9));_0x142e08=_0x142e08['filter'](_0x1622ea=>!_0x1622ea['is']('element','listItem')||_0x1622ea['getAttribute']('listType')!=_0x2c322d);const _0x4c7d2d=new Set();for(const _0x3bf9c3 of _0x142e08)_0x3bf9c3['is']('element','listItem')?_0x4c7d2d['add'](Le(_0x3bf9c3)):_0x4c7d2d['add'](_0x3bf9c3);return Array['from'](_0x4c7d2d);}(_0x4d0695['getSelectedBlocks'](),_0x47b150,_0x29c4e5['model']['schema']);_0x29c4e5['model']['change'](()=>{for(const _0x16d177 of _0x2e9b16)_0x514181['markBlockFormat'](_0x16d177,{'commandName':_0x4dd157,'commandParams':[{'forceValue':!_0x3cece3['value']}],'formatGroupId':'blockName'},Ee(_0x16d177));});};}function _0x51389d(_0x5b416c){return()=>{const _0x4db683=function(_0x4cca76){let _0x2316b8=Array['from'](_0x4cca76);const _0xafa366=_0x2316b8['findIndex'](_0x1dfa16=>'listItem'!=_0x1dfa16['name']);return _0xafa366>-0x1&&(_0x2316b8=_0x2316b8['slice'](0x0,_0xafa366)),_0x2316b8;}(_0x29c4e5['model']['document']['selection']['getSelectedBlocks']()),_0x28e582=_0x29c4e5['model']['createRange'](_0x29c4e5['model']['createPositionAt'](_0x4db683[0x0],'before'),_0x29c4e5['model']['createPositionAt'](_0x4db683[_0x4db683['length']-0x1],'end'));_0x29c4e5['model']['change'](()=>{_0x514181['markBlockFormat'](_0x28e582,{'commandName':_0x5b416c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x10008c){const _0x445648=new Set();for(const _0x5cdd91 of _0x10008c){let _0x401dd5=_0x5cdd91['nextSibling'];for(;_0x401dd5&&_0x401dd5['getAttribute']('listIndent')>_0x5cdd91['getAttribute']('listIndent');)_0x445648['add'](_0x401dd5),_0x401dd5=_0x401dd5['nextSibling'];}return Array['from'](_0x445648);}(_0x4db683));});};}_0x514181['enableCommand']('numberedList',_0x4a3540('numberedList')),_0x514181['enableCommand']('bulletedList',_0x4a3540('bulletedList')),_0x2c6362&&_0x514181['enableCommand']('todoList',_0x4a3540('todoList')),_0x514181['enableCommand']('indentList',_0x51389d('indentList')),_0x514181['enableCommand']('outdentList',_0x51389d('outdentList')),_0x2c6362&&_0x514181['enableCommand']('checkTodoList',()=>{const _0x2255c7=_0x29c4e5['commands']['get']('checkTodoList'),_0x1daa31=Array['from'](_0x2255c7['_selectedElements']);_0x1daa31['filter'](_0x410b12=>_0x410b12['getAttribute']('todoListChecked')!=_0x2255c7['value']),_0x29c4e5['model']['change'](()=>{for(const _0x5cdb0f of _0x1daa31)_0x514181['markBlockFormat'](_0x5cdb0f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2255c7['value']}]});});}),_0x514181['descriptionFactory']['registerElementLabel']('listItem',_0x298075=>o(_0x55ab0f,'ELEMENT_LIST_ITEM',_0x298075)),_0x514181['descriptionFactory']['registerDescriptionCallback'](_0x539f44=>{if('formatBlock'!=_0x539f44['type']&&'formatInline'!=_0x539f44['type'])return;const {data:_0x10a338}=_0x539f44;if(_0x10a338){if('numberedList'==_0x10a338['commandName']||'bulletedList'==_0x10a338['commandName']||'todoList'==_0x10a338['commandName'])switch(_0x10a338['commandName']['replace']('List','')){case'bulleted':return _0x46cea4(o(_0x55ab0f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46cea4(o(_0x55ab0f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46cea4(o(_0x55ab0f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x10a338['commandName'])return{'type':'format','content':o(_0x55ab0f,'*Indent:*\x20%0',o(_0x55ab0f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x10a338['commandName'])return{'type':'format','content':o(_0x55ab0f,'*Outdent:*\x20%0',o(_0x55ab0f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x10a338['commandName'])return _0x10a338['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55ab0f,'*Check\x20item*')}:{'type':'format','content':o(_0x55ab0f,'*Uncheck\x20item*')};}function _0x46cea4(_0x48887c){return{'type':'format','content':o(_0x55ab0f,'*Change\x20to:*\x20%0',_0x48887c)};}});}}function Le(_0x56c633){const _0x718a63=_0x56c633['getAttribute']('listIndent');if(0x0==_0x718a63)return _0x56c633;let _0x571cbb=_0x56c633;for(;_0x56c633['previousSibling']&&_0x56c633['previousSibling']['is']('element','listItem');){const _0x34815c=_0x56c633['previousSibling']['getAttribute']('listIndent');if(_0x34815c==_0x718a63)_0x571cbb=_0x56c633['previousSibling'];else{if(_0x34815c<_0x718a63)break;}_0x56c633=_0x56c633['previousSibling'];}return _0x571cbb;}function Ee(_0x4deba7){const _0x2d6f06=[];if(_0x4deba7['is']('element','listItem')&&_0x4deba7['getAttribute']('listIndent')>0x0){let _0x4df48e=_0x4deba7['nextSibling'];for(;_0x4df48e&&'listItem'==_0x4df48e['name']&&_0x4df48e['getAttribute']('listIndent')==_0x4deba7['getAttribute']('listIndent');)_0x2d6f06['push'](_0x4df48e),_0x4df48e=_0x4df48e['nextSibling'];}return _0x2d6f06;}class mt extends _0x568c70{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36041b=this['editor']['config']['get']('list.properties'),_0x56539a=this['editor']['plugins']['get']('TrackChangesEditing');_0x36041b['styles']&&_0x56539a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36041b['reversed']&&_0x56539a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36041b['startIndex']&&_0x56539a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56539a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x58ab82,_0x177a94={}){const _0x3bc94a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ac180=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3bc94a['markMultiRangeBlockFormat'](_0x2ac180,{'commandName':'listStyle','commandParams':[{'type':_0x177a94['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe2d747,_0x7ad75e={}){const _0x5ab332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f24df=this['_getSuggestionBlocks'](_0x3531ba=>_0x3531ba['is']('element','listItem')&&'numbered'===_0x3531ba['getAttribute']('listType'));if(_0x3f24df['length']<0x1)return;const _0xbb2bea=_0x3f24df['map'](_0x483f7d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x483f7d,'before'),this['editor']['model']['createPositionAt'](_0x483f7d,0x0)));this['editor']['model']['change'](()=>{_0x5ab332['markMultiRangeBlockFormat'](_0xbb2bea,{'commandName':'listReversed','commandParams':[{'reversed':_0x7ad75e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44d811,_0xb621e0={}){const _0x2e59ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x168184=this['_getSuggestionBlocks'](_0x4142cf=>_0x4142cf['is']('element','listItem')&&'numbered'===_0x4142cf['getAttribute']('listType'));if(_0x168184['length']<0x1)return;const _0x55e702=_0x168184['map'](_0x3ba2e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ba2e7,'before'),this['editor']['model']['createPositionAt'](_0x3ba2e7,0x0)));this['editor']['model']['change'](()=>{_0x2e59ac['markMultiRangeBlockFormat'](_0x55e702,{'commandName':'listStart','commandParams':[{'startIndex':_0xb621e0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2e6bd9){if('formatBlock'!=_0x2e6bd9['type']&&'formatInline'!=_0x2e6bd9['type'])return;const _0x1ab2db=this['editor']['locale'],{data:_0x38ddd7}=_0x2e6bd9;if(!_0x38ddd7)return;let _0x1bf03e,_0x3f3fa1;switch(_0x38ddd7['commandName']){case'listStyle':_0x1bf03e='*Change\x20to:*\x20%0',_0x3f3fa1={'type':'format','content':o(_0x1ab2db,_0x1bf03e,o(_0x1ab2db,this['_getTranslationKeyForListStyle'](_0x38ddd7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bf03e=_0x38ddd7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3f3fa1={'type':'format','content':o(_0x1ab2db,_0x1bf03e)};break;case'listStart':_0x1bf03e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3f3fa1={'type':'format','content':o(_0x1ab2db,_0x1bf03e,_0x38ddd7['commandParams'][0x0]['startIndex'])};}return _0x3f3fa1;}['_getSuggestionBlocksForListStyle'](){const _0x3d1b7b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b3437=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b3437[0x0]?.['is']('element','listItem')&&_0x4b3437['unshift'](..._0x3d1b7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b3437[_0x4b3437['length']-0x1]?.['is']('element','listItem')&&_0x4b3437['push'](..._0x3d1b7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b3437=[...new Set(_0x4b3437)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b3437=_0x4b3437['filter'](_0x2acb00=>_0x2acb00['is']('element','listItem'))),_0x4b3437;}['_getSuggestionBlocks'](_0x276198){const _0x596edb=this['editor']['plugins']['get']('LegacyListUtils');let _0x2a86e7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x276198)['map'](_0x141650=>{const _0x415787=this['editor']['model']['createPositionAt'](_0x141650,0x0);return[..._0x596edb['getSiblingNodes'](_0x415787,'backward'),..._0x596edb['getSiblingNodes'](_0x415787,'forward')];})['flat']();return _0x2a86e7=[...new Set(_0x2a86e7)],_0x2a86e7;}['_getTranslationKeyForListStyle'](_0x7cbf1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x7cbf1e)||'default')['toUpperCase']()+'_LIST_'+_0x7cbf1e['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x568c70{['afterInit'](){const _0x2fac0d=this['editor'];if(!_0x2fac0d['plugins']['has']('MediaEmbedEditing'))return;const _0x1d566e=_0x2fac0d['plugins']['get']('TrackChangesEditing'),_0x3a63ce=_0x2fac0d['locale'];_0x1d566e['enableCommand']('mediaEmbed'),_0x1d566e['descriptionFactory']['registerElementLabel']('media',_0x2df97f=>o(_0x3a63ce,'ELEMENT_MEDIA',_0x2df97f));}}class pt extends _0x568c70{['afterInit'](){const _0x97fc6b=this['editor'];_0x97fc6b['plugins']['has']('MentionEditing')&&_0x97fc6b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x568c70{['afterInit'](){const _0x1ff302=this['editor'];if(!_0x1ff302['plugins']['has']('MergeFieldsEditing'))return;const _0x1a5d1d=_0x1ff302['plugins']['get']('TrackChangesEditing'),_0x1dc315=_0x1ff302['locale'];_0x1a5d1d['enableCommand']('insertMergeField'),_0x1a5d1d['enableCommand']('insertMergeFieldBlock'),_0x1a5d1d['enableCommand']('insertMergeFieldImage'),_0x1a5d1d['descriptionFactory']['registerElementLabel']('mergeField',_0x26e375=>o(_0x1dc315,'ELEMENT_MERGE_FIELD',_0x26e375)),_0x1a5d1d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1a5e44=>o(_0x1dc315,'ELEMENT_MERGE_FIELD',_0x1a5e44)),_0x1a5d1d['descriptionFactory']['registerDescriptionCallback'](_0x40613b=>{if('insertion'!=_0x40613b['type']&&'deletion'!=_0x40613b['type'])return;const _0x2f57bd=_0x40613b['getContainedElement']();if(null==_0x2f57bd)return;const _0x28bb78=_0x1ff302['plugins']['get']('MergeFieldsEditing');let _0x2ef1dc;switch(_0x28bb78['getMergeFieldType'](_0x2f57bd)){case null:return;case'image':{const _0xe6656d=_0x28bb78['unwrapAffixes'](_0x2f57bd['getAttribute']('src'));_0x2ef1dc=_0x28bb78['getLabel'](_0xe6656d)||_0xe6656d;break;}default:{const _0x4f1202=_0x2f57bd['getAttribute']('id');_0x2ef1dc=_0x28bb78['getLabel'](_0x4f1202)||_0x4f1202;break;}}return'insertion'==_0x40613b['type']?{'type':'insertion','content':o(_0x1dc315,'*Insert:*\x20%0','\x22'+_0x2ef1dc+'\x22\x20'+o(_0x1dc315,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1dc315,'*Remove:*\x20%0','\x22'+_0x2ef1dc+'\x22\x20'+o(_0x1dc315,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x568c70{['afterInit'](){const _0x3c33ae=this['editor'],_0x2d5568=_0x3c33ae['plugins']['get']('TrackChangesEditing');_0x3c33ae['plugins']['has']('MultiLevelList')&&(_0x2d5568['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d5568['descriptionFactory']['registerDescriptionCallback'](_0x2dc1b3=>this['handleDescriptions'](_0x2dc1b3)));}['handleDescriptions'](_0x4fcbee){const _0x5ead3a=this['editor']['locale'],{data:_0xe78316}=_0x4fcbee,_0x119e62={'type':'format','content':''};if(_0xe78316&&'listMarkerStyle'==_0xe78316['key']){if(!_0xe78316['oldValue'])return{'type':'format','content':o(_0x5ead3a,'*Set\x20format:*\x20%0',o(_0x5ead3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe78316['newValue']+')'};if(!_0xe78316['newValue']){let _0x33b2d6=_0x4fcbee['head'];for(;_0x33b2d6;){if(_0x33b2d6['data']&&'listType'==_0x33b2d6['data']['key']&&_0x33b2d6['data']['newValue'])return _0x119e62;_0x33b2d6=_0x33b2d6['next'];}return{'type':'format','content':o(_0x5ead3a,'*Remove\x20format:*\x20%0',o(_0x5ead3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe78316['oldValue']+')'};}}}}class bt extends _0x568c70{['afterInit'](){const _0x28f1b4=this['editor'];if(!_0x28f1b4['plugins']['has']('PageBreakEditing'))return;_0x28f1b4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40f612=_0x28f1b4['plugins']['get']('TrackChangesEditing'),_0x419e8b=_0x28f1b4['locale'];_0x40f612['descriptionFactory']['registerElementLabel']('pageBreak',_0x537b5e=>o(_0x419e8b,'ELEMENT_PAGE_BREAK',_0x537b5e));}}class yt extends _0x568c70{['afterInit'](){const _0x34c2b2=this['editor'];if(!_0x34c2b2['plugins']['has']('Paragraph'))return;const _0x48bea7=_0x34c2b2['locale'],_0x39004c=_0x34c2b2['plugins']['get']('TrackChangesEditing');_0x39004c['descriptionFactory']['registerElementLabel']('paragraph',_0x1c55da=>o(_0x48bea7,'ELEMENT_PARAGRAPH',_0x1c55da)),_0x39004c['enableDefaultAttributesIntegration']('paragraph'),_0x39004c['enableCommand']('insertParagraph');const _0xd75e32=_0x39004c['descriptionFactory'];_0xd75e32['registerDescriptionCallback'](_0x5e64ea=>{if('insertion'!==_0x5e64ea['type'])return;const {start:_0x5b27f0,end:_0xb1cd62}=_0x5e64ea['getFirstRange']();if(!_0x5b27f0['isTouching'](_0xb1cd62)||!_0x5b27f0['nodeAfter'])return;const _0x38748f=_0x34c2b2['model']['schema'],_0x51f284=_0x5b27f0['nodeAfter'];return _0x38748f['isBlock'](_0x51f284)&&!_0x38748f['isLimit'](_0x51f284)&&_0x38748f['checkChild'](_0x51f284,'$text')?{'type':'insertion','content':o(_0x48bea7,'*Insert:*\x20%0',_0xd75e32['getItemLabel'](_0x51f284,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3475=this['editor'],_0x4a76de=_0x3e3475['locale'];_0x3e3475['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x455530=>{if('formatBlock'!=_0x455530['type'])return;const {data:_0x31371f}=_0x455530;return _0x31371f&&'paragraph'==_0x31371f['commandName']?{'type':'format','content':o(_0x4a76de,'*Change\x20to:*\x20%0',o(_0x4a76de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x568c70{['afterInit'](){const _0x34ad9e=this['editor'];_0x34ad9e['commands']['get']('replaceSource')&&_0x34ad9e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x568c70{['afterInit'](){const _0x34b246=this['editor'];if(!_0x34b246['plugins']['has']('RemoveFormatEditing'))return;_0x34b246['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeda5d2=this['editor'];_0xeda5d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e149=>{if('formatBlock'!=_0x56e149['type']&&'formatInline'!=_0x56e149['type'])return;const {data:_0x27f13e}=_0x56e149;return _0x27f13e&&'removeFormat'==_0x27f13e['commandName']?{'type':'format','content':o(_0xeda5d2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x568c70{['afterInit'](){const _0x590570=this['editor'];if(!_0x590570['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15b880=_0x590570['plugins']['get']('TrackChangesEditing');_0x15b880['enableCommand']('goToPreviousRestrictedEditingException'),_0x15b880['enableCommand']('goToNextRestrictedEditingException');const _0x2898a1=_0x590570['plugins']['get']('RestrictedEditingModeEditing');_0x2898a1['enableCommand']('trackChanges'),_0x2898a1['enableCommand']('acceptSuggestion'),_0x2898a1['enableCommand']('discardSuggestion'),_0x2898a1['enableCommand']('acceptAllSuggestions'),_0x2898a1['enableCommand']('discardAllSuggestions'),_0x2898a1['enableCommand']('acceptSelectedSuggestions'),_0x2898a1['enableCommand']('discardSelectedSuggestions');}}class At extends _0x568c70{['afterInit'](){const _0x1e21b1=this['editor'];if(!_0x1e21b1['plugins']['has']('ShiftEnter'))return;const _0x2b90f4=_0x1e21b1['plugins']['get']('TrackChangesEditing');_0x2b90f4['enableCommand']('shiftEnter'),_0x2b90f4['descriptionFactory']['registerElementLabel']('softBreak',_0x2435f9=>o(_0x1e21b1['locale'],'ELEMENT_LINE_BREAK',_0x2435f9));}}function an(_0x2c8751,_0x5ea4f1,_0x5acbff){const _0x252913=[];for(const _0x1a2cd4 of _0x5ea4f1['getItems']())_0x1a2cd4['hasAttribute'](_0x2c8751)&&_0x252913['push'](_0x5acbff['createRangeOn'](_0x1a2cd4));return _0x252913;}class _t extends _0x568c70{['afterInit'](){const _0x279b52=this['editor'],_0x34a5fe=_0x279b52['plugins']['get']('TrackChangesEditing');_0x279b52['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x34a5fe['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x21b861=this['editor'],_0x4aace4=_0x21b861['model'],_0x1635b=_0x21b861['locale'],_0xdf0104=_0x21b861['plugins']['get']('TrackChangesEditing'),_0x5f1e0e='restrictedEditingException',_0x4fb0f6=_0x21b861['commands']['get'](_0x5f1e0e);_0xdf0104['enableCommand'](_0x5f1e0e,(_0xfd2c65,_0x490096={})=>{const _0x294d2a=_0x4aace4['document']['selection'];if(_0x294d2a['isCollapsed'])return void _0xfd2c65(_0x490096);const _0x3b0dd2=void 0x0!==_0x490096['forceValue']?_0x490096['forceValue']:!_0x4fb0f6['value'];_0x4aace4['change'](()=>{const _0x2b5b3a=Array['from'](_0x294d2a['getRanges']());for(const _0x938116 of _0x2b5b3a){const _0x192fa0=_0x3b0dd2?[_0x938116]:an(_0x5f1e0e,_0x938116,_0x4aace4);for(const _0x1dd86b of _0x192fa0)_0xdf0104['markInlineFormat'](_0x1dd86b,{'commandName':_0x5f1e0e,'commandParams':[{'forceValue':_0x3b0dd2}]});}});}),_0xdf0104['descriptionFactory']['registerDescriptionCallback'](_0x1a124d=>{if('formatBlock'!=_0x1a124d['type']&&'formatInline'!=_0x1a124d['type'])return;const {data:_0x271112}=_0x1a124d;return _0x271112&&_0x271112['commandName']==_0x5f1e0e?_0x271112['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1635b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1635b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x530165=this['editor'],_0x49f728=_0x530165['locale'],_0x33b767=_0x530165['plugins']['get']('TrackChangesEditing'),_0x266671='restrictedEditingExceptionBlock',_0x116360=this['editor']['commands']['get'](_0x266671);_0x33b767['enableCommand'](_0x266671,(_0x4c4f78,_0x35f6a9={})=>{const _0x45c70e=this['editor']['model']['document']['selection'],_0x423c70=_0x35f6a9&&void 0x0!==_0x35f6a9['forceValue']?_0x35f6a9['forceValue']:!_0x116360['value'];let _0x23b435=[];if(_0x423c70){const _0x30c2c6=Array['from'](_0x45c70e['getSelectedBlocks']())['filter'](_0x2ee750=>function(_0x4dbf8b){return!!_0x4dbf8b['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2ee750)||function(_0x4fbe05,_0x4e4f62){const _0x3c989b=_0x4e4f62['createContext'](_0x4fbe05['parent']);if(!_0x4e4f62['checkChild'](_0x3c989b,'restrictedEditingException'))return!0x1;if(!_0x4e4f62['checkChild'](_0x3c989b['push']('restrictedEditingException'),_0x4fbe05))return!0x1;return!0x0;}(_0x2ee750,this['editor']['model']['schema']));_0x23b435=to(_0x30c2c6,_0x530165['model']);}else{const _0x478a45=Array['from'](_0x45c70e['getSelectedBlocks']())['map'](_0x36fdd8=>function(_0xc7653f){let _0x1bd3e9=_0xc7653f;for(;_0x1bd3e9['parent'];){if('restrictedEditingException'==_0x1bd3e9['parent']['name'])return _0x1bd3e9;_0x1bd3e9=_0x1bd3e9['parent'];}return null;}(_0x36fdd8))['filter'](_0x279a29=>!!_0x279a29);_0x23b435=to(_0x478a45,_0x530165['model']);}_0x530165['model']['change'](()=>{for(const _0x4ebff8 of _0x23b435)_0x33b767['markBlockFormat'](_0x4ebff8,{'commandName':_0x266671,'commandParams':[{'forceValue':_0x423c70}]});});}),_0x33b767['descriptionFactory']['registerDescriptionCallback'](_0x51cbce=>{const {data:_0x1d0a95}=_0x51cbce;if(_0x1d0a95&&_0x1d0a95['commandName']==_0x266671)return _0x1d0a95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49f728,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x49f728,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x568c70{['afterInit'](){const _0x39b072=this['editor'];if(!_0x39b072['plugins']['has']('Style')||!_0x39b072['plugins']['has']('DataSchema'))return;const _0x57af77=_0x39b072['plugins']['get']('TrackChangesEditing'),_0x44d6ee=_0x39b072['locale'],_0x3d7447=_0x39b072['config']['get']('style')||{},_0x472b00=_0x39b072['plugins']['get']('GeneralHtmlSupport'),_0x1e4613=_0x39b072['plugins']['get']('StyleUtils')['normalizeConfig'](_0x39b072['plugins']['get']('DataSchema'),_0x3d7447['definitions']);_0x57af77['enableDefaultAttributesIntegration']('style');const _0x56930c=new Set();for(const _0x27eda7 of _0x1e4613['block']){const _0x476fc8=_0x472b00['getGhsAttributeNameForElement'](_0x27eda7['element']);_0x56930c['add'](_0x476fc8);}const _0x3126db=new Set();for(const _0x2f4c8c of _0x1e4613['inline']){const _0x31fd0a=_0x472b00['getGhsAttributeNameForElement'](_0x2f4c8c['element']);_0x3126db['add'](_0x31fd0a);for(const _0x377b9d of _0x2f4c8c['ghsAttributes'])_0x3126db['add'](_0x377b9d);}for(const _0x10271d of _0x56930c)_0x57af77['descriptionFactory']['registerAttributeLabel'](_0x10271d,o(_0x44d6ee,'FORMAT_STYLE'));for(const _0x47dcc8 of _0x3126db)_0x57af77['descriptionFactory']['registerAttributeLabel'](_0x47dcc8,o(_0x44d6ee,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7138ed=this['editor'],_0x3711e0=_0x7138ed['locale'];_0x7138ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9d9429=>{if('formatBlock'!=_0x9d9429['type']&&'formatInline'!=_0x9d9429['type'])return;const {data:_0x38973c}=_0x9d9429;return _0x38973c&&'style'===_0x38973c['commandName']?_0x38973c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3711e0,'*Set\x20format:*\x20%0',_0x38973c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3711e0,'*Remove\x20format:*\x20%0',_0x38973c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x568c70{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3192f0){super(_0x3192f0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x45cc87=this['editor'],_0x39cd4d=_0x45cc87['model']['document']['selection'];if(!_0x45cc87['plugins']['has']('TableEditing'))return;const _0x12e620=_0x45cc87['locale'],_0x5826e8=_0x45cc87['plugins']['get']('TrackChangesEditing'),_0x3d915b=_0x45cc87['plugins']['get']('TableUtils');_0x5826e8['descriptionFactory']['registerElementLabel']('table',_0x385ba4=>o(_0x12e620,'ELEMENT_TABLE',_0x385ba4)),this['_setupColumnsRowsFixing'](),_0x5826e8['enableCommand']('insertTable'),_0x5826e8['enableCommand']('selectTableRow'),_0x5826e8['enableCommand']('selectTableColumn');for(const _0x74dc3f of['insertTableRowAbove','insertTableRowBelow']){const _0x554330=_0x45cc87['commands']['get'](_0x74dc3f);_0x5826e8['enableCommand'](_0x74dc3f,_0x35f2c1=>{_0x45cc87['model']['change'](_0x5021ed=>{_0x35f2c1();const _0xb48c55='above'===_0x554330['order'],_0x427182=_0x3d915b['getSelectionAffectedTableCells'](_0x39cd4d),_0x55dace=_0x3d915b['getRowIndexes'](_0x427182),_0x54adb2=_0xb48c55?_0x55dace['first']-0x1:_0x55dace['last']+0x1,_0x5c5246=_0x427182[0x0]['findAncestor']('table'),_0x14bab6=_0x3d915b['createTableWalker'](_0x5c5246,{'startRow':_0x54adb2,'endRow':_0x54adb2}),_0x3346e6=Array['from'](_0x14bab6)['map'](_0xd908ab=>_0x5021ed['createRangeOn'](_0xd908ab['cell']));_0x5826e8['markMultiRangeInsertion'](_0x3346e6,'tableRow');});});}for(const _0x4b0017 of['insertTableColumnLeft','insertTableColumnRight']){const _0x56566d=_0x45cc87['commands']['get'](_0x4b0017);_0x5826e8['enableCommand'](_0x4b0017,_0x4802df=>{_0x45cc87['model']['change'](_0x35d2a7=>{_0x4802df();const _0x3bc1a3='left'===_0x56566d['order'],_0x43bf82=_0x3d915b['getSelectionAffectedTableCells'](_0x39cd4d),_0x420c19=_0x3d915b['getColumnIndexes'](_0x43bf82),_0x5a00cf=_0x3bc1a3?_0x420c19['first']-0x1:_0x420c19['last']+0x1,_0x4db916=_0x43bf82[0x0]['findAncestor']('table'),_0x33f719=_0x3d915b['createTableWalker'](_0x4db916,{'startRow':0x0,'column':_0x5a00cf,'includeAllSlots':!0x1}),_0x548196=Array['from'](_0x33f719)['map'](_0x1dea4a=>_0x35d2a7['createRangeOn'](_0x1dea4a['cell']));_0x5826e8['markMultiRangeInsertion'](_0x548196,'tableColumn');});});}for(const _0x43a8f4 of['removeTableRow','removeTableColumn']){const _0x49d203=_0x43a8f4['substr'](0xb),_0x4276ab=_0x49d203['toLowerCase'](),_0x5ad66c=_0x4276ab['substr'](0x0,0x3)+'span',_0x26642a='table'+_0x49d203,_0xaa38a3='min'+_0x49d203,_0x49f2cb='max'+_0x49d203;_0x5826e8['enableCommand'](_0x43a8f4,()=>{_0x45cc87['model']['change'](_0x160af6=>{const _0x462208=_0x3d915b['getSelectionAffectedTableCells'](_0x39cd4d),_0xb23508=_0x462208[0x0]['findAncestor']('table');let _0x5d8856;if('removeTableRow'==_0x43a8f4){const _0x5c5bc6=_0x3d915b['getRowIndexes'](_0x462208);_0x5d8856={'startRow':_0x5c5bc6['first'],'endRow':_0x5c5bc6['last'],'includeAllSlots':!0x0};}else{const _0x49bac0=_0x3d915b['getColumnIndexes'](_0x462208);_0x5d8856={'startColumn':_0x49bac0['first'],'endColumn':_0x49bac0['last'],'includeAllSlots':!0x0};}const _0x588007=_0x3d915b['createTableWalker'](_0xb23508,_0x5d8856),_0x441b35=Array['from'](_0x588007)['map'](({cell:_0x2958a5})=>_0x2958a5),_0x509909=_e(_0x441b35['filter'](_0xc0c9a3=>_0xc0c9a3['hasAttribute'](_0x5ad66c))),_0x1e26c5=_e(_0x441b35['filter'](_0xcaef38=>!_0xcaef38['hasAttribute'](_0x5ad66c)))['map'](_0x2e70c5=>_0x160af6['createRangeOn'](_0x2e70c5)),_0x14d384=_0x5826e8['markMultiRangeDeletion'](_0x1e26c5,_0x26642a);if(_0x14d384&&('tableRow'==_0x14d384['subType']||'tableColumn'==_0x14d384['subType'])){const _0x3391af=this['_getSuggestionCoords'](_0x14d384);for(const _0x578632 of _0x509909){const _0x56c5ef=_0x160af6['createRangeOn'](_0x578632),_0x58bd79=_0x3d915b['getCellLocation'](_0x578632),_0x4042dd=_0x578632['getAttribute'](_0x5ad66c)-0x1,_0x1fefdd=_0x3391af[_0xaa38a3],_0x3fa929=_0x3391af[_0x49f2cb];_0x1fefdd<=_0x58bd79[_0x4276ab]&&_0x58bd79[_0x4276ab]+_0x4042dd<=_0x3fa929&&_0x14d384['addRange'](_0x56c5ef);}}});});}function _0x164aeb(_0x1ba19c){const _0x5bfe6e=Array['from'](_0x39cd4d['getRanges']())['map'](_0x5a4a11=>_0x44fa11['fromRange'](_0x5a4a11));_0x45cc87['model']['change'](_0x21ffdc=>{const _0xc0c18d=_0x21ffdc['batch'];_0x1ba19c=_0x1ba19c['filter'](_0xa1f6ad=>'$graveyard'!=_0xa1f6ad['root']['rootName']),_0x21ffdc['setSelection'](_0x1ba19c),_0x45cc87['commands']['get']('removeTableRow')['refresh'](),_0x45cc87['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x45cc87['model']['enqueueChange'](()=>{_0x45cc87['model']['enqueueChange'](_0xc0c18d,_0x4dcfad=>{const _0x2a8afb=_0x5bfe6e['filter'](_0x413e23=>'$graveyard'!=_0x413e23['root']['rootName']);_0x2a8afb['length']>0x0&&_0x4dcfad['setSelection'](_0x2a8afb);for(const _0x521e3f of _0x5bfe6e)_0x521e3f['detach']();});});});}function _0x29c42e(_0x5b1915){_0x45cc87['model']['change'](_0x44157d=>{const _0x2933cd=Array['from'](_0x39cd4d['getRanges']())['map'](_0xda132=>_0x44fa11['fromRange'](_0xda132)),_0x14c739=[];for(const _0x34abe8 of _0x5b1915)for(const _0x34d599 of _0x34abe8['getItems']({'shallow':!0x0}))_0x14c739['push'](_0x34d599);for(const _0x25762c of _0x14c739)'$graveyard'!=_0x25762c['root']['rootName']&&(_0x44157d['setSelection'](_0x44157d['createPositionAt'](_0x25762c,0x0)),_0x45cc87['commands']['get']('removeTableColumn')['refresh'](),_0x45cc87['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x45b9e6=_0x2933cd['filter'](_0x11acc4=>'$graveyard'!=_0x11acc4['root']['rootName']);_0x45b9e6['length']>0x0&&_0x44157d['setSelection'](_0x45b9e6);for(const _0x3a88cf of _0x2933cd)_0x3a88cf['detach']();});}function _0x2be6b7(_0x456186,_0x5eac5e){return _0x5eac5e['every'](_0xdde3e7=>_0x456186['some'](_0x4b3b4d=>_0x4b3b4d['end']['isEqual'](_0xdde3e7['start'])||_0xdde3e7['end']['isEqual'](_0x4b3b4d['start'])));}function _0x15ad85(_0x52beab,_0x46b082){return!_0x52beab['some'](_0x577c5f=>_0x46b082['some'](_0x1209fe=>_0x577c5f['isIntersecting'](_0x1209fe)))&&_0x52beab['some'](_0x899e1d=>_0x46b082['some'](_0x36b2b5=>_0x899e1d['end']['isTouching'](_0x36b2b5['start'])));}_0x5826e8['descriptionFactory']['registerDescriptionCallback'](_0x19a580=>{if('insertion'!=_0x19a580['type']&&'deletion'!=_0x19a580['type'])return;const _0xf1dc6f=_0x19a580['getContainedElement']();if(null!=_0xf1dc6f&&_0xf1dc6f['is']('element','table')){if('insertion'==_0x19a580['type']){const _0x388962=_0x19a580['getItems']()['filter'](_0x409d7d=>_0x409d7d['is']('$textProxy'))['map'](_0x4be015=>_0x4be015['data']);if(_0x388962['length'])return{'type':'insertion','content':o(_0x12e620,'*Insert:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x388962['join']('\x20')+'\x22'))};}if('deletion'==_0x19a580['type']){const _0x3c5682=_0x19a580['getItems']()['filter'](_0x3020b=>_0x3020b['is']('$textProxy'))['map'](_0x111f5e=>_0x111f5e['data']);if(_0x3c5682['length'])return{'type':'deletion','content':o(_0x12e620,'*Remove:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c5682['join']('\x20')+'\x22'))};}}}),_0x5826e8['descriptionFactory']['registerDescriptionCallback'](_0x42ee5d=>{if('tableRow'==_0x42ee5d['subType']){const _0x49cf07=_0x42ee5d['getItems']()['filter'](_0x2b4dc9=>_0x2b4dc9['is']('$textProxy'))['map'](_0x1f74ae=>_0x1f74ae['data']),_0x417b62=this['_getSuggestionCoords'](_0x42ee5d),_0x245fec=_0x417b62['maxRow']-_0x417b62['minRow']+0x1;if('insertion'==_0x42ee5d['type'])return _0x49cf07['length']?{'type':'insertion','content':o(_0x12e620,'*Insert:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245fec,'\x22'+_0x49cf07['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12e620,'*Insert:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_ROW',_0x245fec))};if('deletion'==_0x42ee5d['type'])return _0x49cf07['length']?{'type':'deletion','content':o(_0x12e620,'*Remove:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x245fec,'\x22'+_0x49cf07['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12e620,'*Remove:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_ROW',_0x245fec))};}if('tableColumn'==_0x42ee5d['subType']){const _0x469765=_0x42ee5d['getItems']()['filter'](_0x5637f5=>_0x5637f5['is']('$textProxy'))['map'](_0x441eda=>_0x441eda['data']),_0x3fca36=this['_getSuggestionCoords'](_0x42ee5d),_0x471e97=_0x3fca36['maxColumn']-_0x3fca36['minColumn']+0x1;if('insertion'==_0x42ee5d['type'])return _0x469765['length']?{'type':'insertion','content':o(_0x12e620,'*Insert:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x471e97,'\x22'+_0x469765['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x12e620,'*Insert:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_COLUMN',_0x471e97))};if('deletion'==_0x42ee5d['type'])return _0x469765['length']?{'type':'deletion','content':o(_0x12e620,'*Remove:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x471e97,'\x22'+_0x469765['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x12e620,'*Remove:*\x20%0',o(_0x12e620,'ELEMENT_TABLE_COLUMN',_0x471e97))};}}),_0x5826e8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x164aeb),_0x5826e8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x164aeb),_0x5826e8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x29c42e),_0x5826e8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x29c42e),_0x5826e8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2be6b7),_0x5826e8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2be6b7),_0x5826e8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x15ad85),_0x5826e8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x15ad85);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5d9e01=this['editor'],_0x3b861f=_0x5d9e01['model']['document']['selection'];return(_0x50b1e1,_0x4c6889)=>{_0x5d9e01['model']['change'](_0x6148bf=>{const {commandName:_0x53baa2,commandParams:_0x476f37}=_0x4c6889;let _0x197409=_0x50b1e1[0x0]['end']['nodeBefore'];_0x476f37&&_0x476f37[0x0]&&!0x1===_0x476f37[0x0]['forceValue']&&(_0x197409=_0x50b1e1[0x0]['start']['nodeAfter']);const _0x31f01f=_0x6148bf['createRangeIn'](_0x197409);if('$graveyard'==_0x31f01f['root']['rootName'])return;const _0x4a3ee7=Array['from'](_0x3b861f['getRanges']())['map'](_0x23d13f=>_0x44fa11['fromRange'](_0x23d13f));_0x6148bf['setSelection'](_0x31f01f),_0x5d9e01['commands']['get'](_0x53baa2)['refresh'](),_0x476f37['push']({'forceDefaultExecution':!0x0}),_0x5d9e01['execute'](_0x53baa2,..._0x476f37);const _0x5605a5=_0x4a3ee7['filter'](_0x360b54=>'$graveyard'!=_0x360b54['root']['rootName']);_0x5605a5['length']>0x0&&_0x6148bf['setSelection'](_0x5605a5);for(const _0x507972 of _0x4a3ee7)_0x507972['detach']();});};}['_getCoordsForCells'](_0x506cad){const _0x5941f8=this['editor']['plugins']['get']('TableUtils');let _0x5a1259=Number['MAX_SAFE_INTEGER'],_0x1b5448=Number['MIN_SAFE_INTEGER'],_0x5d65f9=Number['MAX_SAFE_INTEGER'],_0x1d92fa=Number['MIN_SAFE_INTEGER'];for(const _0x3aa1b0 of _0x506cad){if('$graveyard'==_0x3aa1b0['root']['rootName'])continue;const {row:_0x5b675f,column:_0x55279a}=_0x5941f8['getCellLocation'](_0x3aa1b0),_0x717c5c=_0x3aa1b0['hasAttribute']('rowspan')?_0x3aa1b0['getAttribute']('rowspan')-0x1:0x0,_0x538000=_0x3aa1b0['hasAttribute']('colspan')?_0x3aa1b0['getAttribute']('colspan')-0x1:0x0;_0x5a1259=_0x5b675f<_0x5a1259?_0x5b675f:_0x5a1259,_0x1b5448=_0x5b675f+_0x717c5c>_0x1b5448?_0x5b675f+_0x717c5c:_0x1b5448,_0x5d65f9=_0x55279a<_0x5d65f9?_0x55279a:_0x5d65f9,_0x1d92fa=_0x55279a+_0x538000>_0x1d92fa?_0x55279a+_0x538000:_0x1d92fa;}return{'minRow':_0x5a1259,'maxRow':_0x1b5448,'minColumn':_0x5d65f9,'maxColumn':_0x1d92fa};}['_setupColumnsRowsFixing'](){const _0x207550=this['editor'],_0x42d6fb=_0x207550['plugins']['get']('TrackChangesEditing'),_0x272523=_0x207550['plugins']['get']('TableUtils');_0x207550['model']['document']['on']('change:data',()=>{const _0x32bd73=Array['from'](_0x207550['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54e8b9,data:_0x1f4ef4}of _0x32bd73){const {group:_0x37efe9,id:_0x1f1a7d,subType:_0x2ad78a}=_0x42d6fb['_splitMarkerName'](_0x54e8b9);if('suggestion'!=_0x37efe9)continue;if(null!=_0x1f4ef4['oldRange'])continue;const _0x9d320c=_0x42d6fb['getSuggestion'](_0x1f1a7d);this['_tablePostFixingSubtypes']['includes'](_0x2ad78a)&&this['_tableSuggestions']['add'](_0x9d320c);}},{'priority':'low'});const _0x2414fc=(_0x28d3c3,_0x571425)=>{let _0x1094dd=!0x1;const _0x1bc6bb=_0x571425['createRangeOn'](_0x28d3c3),_0x386a90=_0x28d3c3['findAncestor']('table'),_0x147b26=_0x272523['getCellLocation'](_0x28d3c3);for(const _0x4b145f of this['_tableSuggestions']){const _0x5b9080=_0x4b145f['subType'],_0x3c6128=_0x5b9080['startsWith']('tablePaste'),_0x212517=_0x5b9080['substr'](_0x3c6128?0xa:0x5),_0x3e6e34=_0x212517['toLowerCase'](),_0x4dda2b=_0x3e6e34['substr'](0x0,0x3)+'span',_0x55ed6d='min'+_0x212517,_0x4f92a0='max'+_0x212517;if(!_0x4b145f['isInContent'])continue;if(_0x386a90!=_0x4b145f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b145f['isIntersectingWithRange'](_0x1bc6bb))continue;const _0x169080=_0x28d3c3['hasAttribute'](_0x4dda2b)?_0x28d3c3['getAttribute'](_0x4dda2b)-0x1:0x0,_0x5cdb14=this['_getSuggestionCoords'](_0x4b145f),_0x45e728=_0x5cdb14[_0x55ed6d],_0x15febd=_0x5cdb14[_0x4f92a0];_0x45e728<=_0x147b26[_0x3e6e34]&&_0x147b26[_0x3e6e34]+_0x169080<=_0x15febd&&(_0x4b145f['addRange'](_0x1bc6bb),_0x1094dd=!0x0);}return _0x1094dd;};_0x207550['model']['document']['registerPostFixer'](_0x556898=>{let _0x562e1d=!0x1;for(const _0x2faabe of _0x207550['model']['document']['differ']['getChanges']())if('insert'==_0x2faabe['type']){if('tableRow'==_0x2faabe['name']){for(const _0x1da977 of _0x2faabe['position']['nodeAfter']['getChildren']())_0x562e1d=_0x562e1d||_0x2414fc(_0x1da977,_0x556898);}else'tableCell'==_0x2faabe['name']&&(_0x562e1d=_0x562e1d||_0x2414fc(_0x2faabe['position']['nodeAfter'],_0x556898));}return _0x562e1d;});}['_getSuggestionCoords'](_0x414c35){return this['_getCoordsForCells'](_0x414c35['getRanges']()['map'](_0x3e7401=>_0x3e7401['start']['nodeAfter']));}}function _e(_0x39b012){return Array['from'](new Set(_0x39b012)['values']());}class $t extends _0x568c70{static get['requires'](){return[Nt];}['afterInit'](){const _0x415443=this['editor'],_0x57880e=_0x415443['model']['document']['selection'],_0x58ce60=_0x415443['locale'];if(!_0x415443['plugins']['has']('TableEditing'))return;const _0x521a88=_0x415443['plugins']['get']('TrackChangesEditing'),_0x2c020d=_0x415443['plugins']['get']('TableUtils'),_0x322372=_0x415443['plugins']['get'](Nt);_0x322372['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x521a88['enableCommand']('mergeTableCells',()=>{const _0x1e79ba=_0x2c020d['getSelectionAffectedTableCells'](_0x415443['model']['document']['selection']);_0x415443['model']['change'](()=>{_0x521a88['markMultiRangeBlockFormat'](_0x1e79ba,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x415443['commands']['get']('mergeTableCells')['on']('execute',(_0x29e836,_0x5bcf64)=>{_0x415443['commands']['get']('trackChanges')['value']&&(_0x5bcf64['length']>0x0&&_0x5bcf64[_0x5bcf64['length']-0x1]&&_0x5bcf64[_0x5bcf64['length']-0x1]['forceDefaultExecution']||_0x521a88['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x29e836['stop']());},{'priority':'highest'});for(const _0x546e38 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1fbcf5=_0x415443['commands']['get'](_0x546e38);_0x521a88['enableCommand'](_0x546e38,()=>{const _0x33d3cb=_0x415443['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58cca9=>_0x58cca9['is']('element','tableCell')),_0x188fd4=_0x1fbcf5['value'];_0x415443['model']['change'](()=>{_0x521a88['markMultiRangeBlockFormat']([_0x33d3cb,_0x188fd4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4b4a29 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2ac026=_0x415443['commands']['get'](_0x4b4a29);_0x521a88['enableCommand'](_0x4b4a29,()=>{const _0xbb7379=_0x2c020d['getSelectionAffectedTableCells'](_0x415443['model']['document']['selection'])[0x0],_0x1bac13=_0xbb7379['findAncestor']('table'),{column:_0x403ebc,row:_0x33a320}=_0x2c020d['getCellLocation'](_0xbb7379);let _0x4a3f18=[];if('horizontally'==_0x2ac026['direction']){const _0x5d18bd=_0x2c020d['createTableWalker'](_0x1bac13,{'startRow':_0x33a320,'endRow':_0x33a320,'includeAllSlots':!0x0});_0x4a3f18=Array['from'](_0x5d18bd)['map'](_0x3c18b5=>_0x3c18b5['cell']);}else{const _0x2bc37a=_0x2c020d['createTableWalker'](_0x1bac13,{'column':_0x403ebc,'includeAllSlots':!0x0});_0x4a3f18=Array['from'](_0x2bc37a)['map'](_0x2014a1=>_0x2014a1['cell']);}_0x415443['model']['change'](_0x49ece5=>{_0x521a88['markBlockFormat'](_0x49ece5['createRangeOn'](_0xbb7379),{'commandName':_0x4b4a29,'commandParams':[]},_0x4a3f18,_0x4b4a29);});});}_0x521a88['descriptionFactory']['registerDescriptionCallback'](_0x5ccab6=>{if('formatBlock'!=_0x5ccab6['type']&&'formatInline'!=_0x5ccab6['type'])return;const {data:_0x45c015}=_0x5ccab6;return _0x45c015&&'mergeTableCells'==_0x45c015['commandName']?{'type':'format','content':o(_0x58ce60,'*Merge\x20cells*')}:void 0x0;}),_0x521a88['descriptionFactory']['registerDescriptionCallback'](_0x3eaaea=>{if('formatBlock'!=_0x3eaaea['type']&&'formatInline'!=_0x3eaaea['type'])return;const {data:_0x18bb88}=_0x3eaaea;return _0x18bb88?'splitTableCellVertically'==_0x18bb88['commandName']?{'type':'format','content':o(_0x58ce60,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x18bb88['commandName']?{'type':'format','content':o(_0x58ce60,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4b790a=_0x322372['_acceptFormatSuggestionCallbackFactory']();for(const _0xe44123 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x521a88['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe44123,'accept',_0x4b790a);for(const _0xff3e1c of['splitTableCellVertically','splitTableCellHorizontally'])_0x521a88['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xff3e1c,'accept',_0x4b790a);_0x521a88['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3edf0f=>{_0x415443['model']['change'](_0xbc35fc=>{const _0x84daed=Array['from'](_0x57880e['getRanges']())['map'](_0x442e9b=>_0x44fa11['fromRange'](_0x442e9b));_0xbc35fc['setSelection'](_0x3edf0f),_0x415443['commands']['get']('mergeTableCells')['refresh'](),_0x415443['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x842df5=_0x84daed['filter'](_0x498724=>'$graveyard'!=_0x498724['root']['rootName']);_0x842df5['length']>0x0&&_0xbc35fc['setSelection'](_0x842df5);for(const _0x2e4e83 of _0x84daed)_0x2e4e83['detach']();});});for(const _0x35fc66 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x39eaac=_0x415443['commands']['get'](_0x35fc66);_0x39eaac['on']('set:isEnabled',(_0x1c7e4a,_0x1e9c32,_0x57da4f)=>{if(_0x57da4f){const _0x45644f=_0x415443['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5213e2=>_0x5213e2['is']('element','tableCell'));this['_areMergableCells'](_0x39eaac['value'],_0x45644f)||(_0x1c7e4a['return']=!0x1,_0x1c7e4a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3c43c8=this['editor']['commands']['get']('mergeTableCells'),_0x2537fd=this['editor']['plugins']['get']('TableUtils');if(!_0x3c43c8['isEnabled'])return!0x1;const _0x577327=_0x2537fd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1718cd of _0x577327)for(const _0x2a0068 of _0x577327)if(_0x1718cd!=_0x2a0068&&!this['_areMergableCells'](_0x1718cd,_0x2a0068))return!0x1;return!0x0;}['_areMergableCells'](_0x79ea60,_0x1dd588){const _0x4154ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57274c=this['editor']['model']['createRangeOn'](_0x79ea60),_0xd04bf9=this['editor']['model']['createRangeOn'](_0x1dd588),_0x262485=new Set(),_0x40f585=new Set();for(const _0x47fe98 of _0x4154ab['getSuggestions']())if(('insertion'==_0x47fe98['type']||'deletion'==_0x47fe98['type']||'mergeTableCells'==_0x47fe98['subType'])&&_0x47fe98['isInContent']){for(const _0x38609d of _0x47fe98['getRanges']())_0x38609d['containsRange'](_0x57274c,!0x0)&&_0x262485['add'](_0x47fe98['type']+':'+_0x47fe98['author']['id']),_0x38609d['containsRange'](_0xd04bf9,!0x0)&&_0x40f585['add'](_0x47fe98['type']+':'+_0x47fe98['author']['id']);}if(_0x262485['size']!=_0x40f585['size'])return!0x1;for(const _0x19bfb9 of _0x262485)if(!_0x40f585['has'](_0x19bfb9))return!0x1;return!0x0;}}class vt extends _0x568c70{static get['requires'](){return[Nt];}['afterInit'](){const _0x840b8e=this['editor'];if(!_0x840b8e['plugins']['has']('TableEditing'))return;const _0x2af28e=_0x840b8e['locale'],_0x423759=_0x840b8e['plugins']['get']('TrackChangesEditing');_0x423759['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x423759['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x423759['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2af28e,'FORMAT_HEADER_ROW')),_0x423759['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2af28e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x247110=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a86b8=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x247110['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a86b8),_0x247110['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a86b8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x143a44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44f83b=this['editor']['plugins']['get']('TableUtils');function _0x46a0a1({showActiveMarker:_0x19d59e=!0x0,setDataAttribute:_0x401b8c=!0x0}={}){return(_0x5acf0f,_0x5188cb,_0x40ae7b)=>{const {type:_0x4e0c5f,id:_0x592529}=_0x143a44['_splitMarkerName'](_0x5188cb['markerName']);if(!_0x143a44['hasSuggestion'](_0x592529))return;const _0x1ebc30=_0x143a44['getSuggestion'](_0x592529),_0x3f943f=_0x1ebc30['data'];if('formatBlock'!=_0x1ebc30['type']||!_0x3f943f||'setTableColumnHeader'!=_0x3f943f['commandName'])return;if(_0x5188cb['item'])return void _0x5acf0f['stop']();if(!_0x40ae7b['consumable']['consume'](_0x5188cb['markerRange'],_0x5acf0f['name']))return;const _0x205f7c=_0x5188cb['markerRange']['start']['nodeAfter'],_0x10bb7a=_0x5188cb['markerRange']['end']['nodeBefore'],_0x3cf16e=_0x205f7c['parent']['parent'],{column:_0xdf3a7}=_0x44f83b['getCellLocation'](_0x205f7c),{column:_0x4d8416}=_0x44f83b['getCellLocation'](_0x10bb7a);for(let _0x11b3a0=_0xdf3a7;_0x11b3a0<=_0x4d8416;_0x11b3a0++){const _0x4f3f3a=_0x44f83b['createTableWalker'](_0x3cf16e,{'column':_0x11b3a0,'includeAllSlots':!0x1});for(const _0x5e9626 of _0x4f3f3a){const _0x30d890=_0x5e9626['cell'],_0x59c107=_0x40ae7b['mapper']['toViewElement'](_0x30d890);_0x40ae7b['writer']['addClass']('ck-suggestion-marker-'+_0x4e0c5f,_0x59c107),_0x401b8c&&_0x40ae7b['writer']['setAttribute']('data-suggestion',_0x592529,_0x59c107),_0x40ae7b['mapper']['bindElementToMarker'](_0x59c107,_0x5188cb['markerName']),_0x19d59e&&(_0x143a44['activeMarkers']['includes'](_0x5188cb['markerName'])?_0x40ae7b['writer']['addClass']('ck-suggestion-marker--active',_0x59c107):_0x40ae7b['writer']['removeClass']('ck-suggestion-marker--active',_0x59c107));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46a0a1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb877,_0x78b4b6,_0x17e2e8)=>{_0x17e2e8['options']['showSuggestionHighlights']&&_0x46a0a1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1cb877,_0x78b4b6,_0x17e2e8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x43b199,_0x32d6e4,_0x30e5d3)=>{const {type:_0x260bc0,id:_0x185736}=_0x143a44['_splitMarkerName'](_0x32d6e4['markerName']);if(!_0x143a44['hasSuggestion'](_0x185736))return;const _0x26f683=_0x143a44['getSuggestion'](_0x185736),_0x40017e=_0x26f683['data'];if('formatBlock'!=_0x26f683['type']||!_0x40017e||'setTableColumnHeader'!=_0x40017e['commandName'])return;const _0x344ccb=_0x30e5d3['mapper']['markerNameToElements'](_0x32d6e4['markerName']);if(_0x344ccb){for(const _0x7ca4b of _0x344ccb)_0x30e5d3['writer']['removeClass']('ck-suggestion-marker-'+_0x260bc0,_0x7ca4b),_0x30e5d3['writer']['removeClass']('ck-suggestion-marker--active',_0x7ca4b),_0x30e5d3['writer']['removeAttribute']('data-suggestion',_0x7ca4b),_0x30e5d3['mapper']['unbindElementFromMarkerName'](_0x7ca4b,_0x32d6e4['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x979a43=this['editor'],_0x495563=_0x979a43['locale'];function _0x47e4cd(_0x528f29){return{'type':'format','content':o(_0x495563,'*Format:*\x20%0',_0x528f29)};}_0x979a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa27ecb=>{if('formatBlock'!=_0xa27ecb['type'])return;const {data:_0x56d9bc}=_0xa27ecb;if(_0x56d9bc){if('setTableRowHeader'==_0x56d9bc['commandName']){const _0x1008a5=_0x56d9bc['commandParams'][0x0]['forceValue'];return _0x47e4cd(o(_0x495563,_0x1008a5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x56d9bc['commandName']){const _0x340579=_0x56d9bc['commandParams'][0x0]['forceValue'];return _0x47e4cd(o(_0x495563,_0x340579?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x568c70{['afterInit'](){const _0x2fead4=this['editor'],_0x3cc2aa=_0x2fead4['locale'],_0xfb32f0=_0x2fead4['plugins']['get']('TrackChangesEditing');function _0xac6b57(_0x1860ad){return{'type':'format','content':''+o(_0x3cc2aa,'*Set\x20table\x20type:*\x20%0',_0x1860ad)};}_0x2fead4['plugins']['has']('TableLayout')&&(_0xfb32f0['enableCommand']('insertTableLayout'),_0xfb32f0['enableDefaultAttributesIntegration']('tableType'),_0xfb32f0['descriptionFactory']['registerElementLabel'](_0x89165f=>_0x89165f['is']('element','table')&&'layout'===_0x89165f['getAttribute']('tableType'),_0x3a9381=>o(_0x3cc2aa,'ELEMENT_LAYOUT_TABLE',_0x3a9381)),_0xfb32f0['descriptionFactory']['registerDescriptionCallback'](_0x352114=>{const {data:_0x169b45}=_0x352114;if(_0x169b45&&'tableType'==_0x169b45['key'])switch(_0x169b45['newValue']){case'layout':return _0xac6b57(o(_0x3cc2aa,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xac6b57(o(_0x3cc2aa,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x21ceee=>[_0x21ceee,null]));class Bt extends _0x568c70{static get['requires'](){return[Nt];}['afterInit'](){const _0x17697a=this['editor'];if(!_0x17697a['plugins']['has']('TableClipboard'))return;const _0x56dba3=_0x17697a['plugins']['get']('TrackChangesEditing'),_0x11724d=_0x17697a['plugins']['get']('TableUtils'),_0x1cc240=_0x17697a['plugins']['get'](Nt),_0x1090a1=_0x17697a['plugins']['get']('TableClipboard'),_0x22cd4b=_0x17697a['plugins']['get']('TableSelection'),_0x36b8d2=_0x17697a['plugins']['get'](_0x5606b6);_0x1cc240['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17697a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17697a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xfb34d0=null,_0x4ea20c=!0x1;_0x36b8d2['on']('contentInsertion',(_0x1bc0d8,_0x1c5a31)=>{_0x4ea20c='paste'===_0x1c5a31['method'];}),_0x17697a['model']['on']('insertContent',(_0x3601bd,_0x4854a0)=>{if(!_0x4ea20c&&null===_0x22cd4b['getSelectedTableCells']())return;const [_0x15b122,_0x500365]=_0x4854a0,_0x14e7ab=_0x4854a0[_0x4854a0['length']-0x1];_0x14e7ab&&_0x14e7ab['forceDefaultExecution']||_0x56dba3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25cc54,_0x55ccbd,_0x183244,_0x90584a,_0x21014b){if(_0x55ccbd&&!_0x55ccbd['is']('documentSelection'))return!0x1;const _0x402731=_0x21014b['getTableIfOnlyTableInContent'](_0x25cc54,_0x183244);if(!_0x402731||!Oe(_0x402731,void 0x0,_0x90584a))return!0x1;const _0x1b4ad3=_0x90584a['getSelectionAffectedTableCells'](_0x183244['document']['selection']);if(!_0x1b4ad3['length'])return!0x1;const _0x15c66a=_0x1b4ad3[0x0]['findAncestor']('table'),_0x2afaed=_0x90584a['getRowIndexes'](_0x1b4ad3),_0x4cdbae=_0x90584a['getColumnIndexes'](_0x1b4ad3),_0x26f501={'startRow':_0x2afaed['first'],'endRow':_0x2afaed['last'],'startColumn':_0x4cdbae['first'],'endColumn':_0x4cdbae['last']};return 0x1==_0x1b4ad3['length']&&(_0x26f501['endRow']+=_0x90584a['getRows'](_0x402731)-0x1,_0x26f501['endColumn']+=_0x90584a['getColumns'](_0x402731)-0x1),Oe(_0x15c66a,_0x26f501,_0x90584a);}(_0x15b122,_0x500365,_0x17697a['model'],_0x11724d,_0x1090a1)&&(_0x3601bd['stop'](),_0xfb34d0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17697a['model']['change'](()=>{_0x17697a['model']['insertContent'](_0x4854a0[0x0],_0x4854a0[0x1],_0x4854a0[0x2],{'forceDefaultExecution':!0x0});const _0x2076df=_0x47121d(),{rowInsertionRanges:_0x4e8a09,columnInsertionRanges:_0x40c968,insertionRanges:_0xd264ff,deletionRanges:_0x115f91,cells:_0xe1e137}=_0xfb34d0;_0x4e8a09['length']&&_0x56dba3['markMultiRangeInsertion'](_0x4e8a09,'tablePasteRow',{'tablePasteChainId':_0x2076df}),_0x40c968['length']&&_0x56dba3['markMultiRangeInsertion'](_0x40c968,'tablePasteColumn',{'tablePasteChainId':_0x2076df}),_0xd264ff['length']&&(_0x56dba3['markMultiRangeInsertion'](_0xd264ff,'tablePaste',{'tablePasteChainId':_0x2076df,'skipNestingCheck':!0x0}),_0xd264ff['forEach'](_0x23de39=>_0x23de39['detach']?.())),_0x115f91['length']&&(_0x56dba3['markMultiRangeDeletion'](_0x115f91,'tablePaste',{'tablePasteChainId':_0x2076df,'skipNestingCheck':!0x0}),_0x115f91['forEach'](_0x8677de=>_0x8677de['detach']?.()));const _0x3f853d=_0x56dba3['markMultiRangeBlockFormat'](_0xe1e137['map'](({element:_0x3792c5})=>_0x3792c5),{'formatGroupId':_0x47121d()},[],'tablePasteCell',{'tablePasteChainId':_0x2076df});if(_0x3f853d){const _0x2ccdb8=_0x3f853d['getMarkers'](),_0x3b41f0=[];for(const {element:_0xb7ea6e,attributes:_0x1a87d5}of _0xe1e137){if(!_0x1a87d5)continue;const _0x8d469c=_0x17697a['model']['createRangeOn'](_0xb7ea6e),_0x36a39=_0x2ccdb8['find'](_0xefafea=>_0xefafea['getRange']()['isEqual'](_0x8d469c));_0x36a39&&_0x3b41f0['push']([_0x36a39['name'],_0x1a87d5]);}_0x3b41f0['length']&&_0x3f853d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3b41f0));}_0xfb34d0=null;}));},{'priority':_0x250185['high']+0xa}),_0x36b8d2['on']('contentInsertion',()=>{_0x4ea20c=!0x1;},{'priority':'lowest'}),_0x17697a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x455a9b,_0x24d227)=>{const [_0x4339ab,_0x603f64,,_0x451e83]=_0x24d227;if(!_0xfb34d0)return;_0x455a9b['stop']();const _0x127cb4=_0x4339ab['cell'],_0x6dcc7f=_0x603f64,_0x367245=Be(_0x127cb4),_0x5718cd=Be(_0x6dcc7f);_0x455a9b['return']=_0x127cb4;let _0x3b65ed=null,_0x2f80d7=null;if(_0x5718cd||_0x367245){if(_0x367245&&!_0x5718cd){_0x451e83['remove'](_0x127cb4['getChild'](0x0));for(const _0x1e537c of Array['from'](_0x6dcc7f['getChildren']()))_0x451e83['insert'](_0x1e537c,_0x127cb4,'end');const _0x4f104f=_0xfb34d0['rowInsertionIndexes']['includes'](_0x4339ab['row']),_0x2b966f=_0xfb34d0['columnInsertionIndexes']['includes'](_0x4339ab['column']);_0x4f104f||_0x2b966f||(_0x3b65ed=_0x44fa11['fromRange'](_0x451e83['createRangeIn'](_0x127cb4)));}else _0x5718cd&&!_0x367245&&(_0x2f80d7=_0x451e83['createRangeIn'](_0x127cb4));}else{const _0x43c005=_0x451e83['createElement']('tableCellSuggestion'),_0x423a01=_0x451e83['createElement']('tableCellSuggestion');_0x451e83['wrap'](_0x451e83['createRangeIn'](_0x127cb4),_0x423a01),_0x451e83['insert'](_0x43c005,_0x127cb4,0x0);for(const _0x133a9d of Array['from'](_0x6dcc7f['getChildren']()))_0x451e83['insert'](_0x133a9d,_0x43c005,'end');_0x3b65ed=_0x44fa11['fromRange'](_0x451e83['createRangeOn'](_0x43c005)),_0x2f80d7=_0x44fa11['fromRange'](_0x451e83['createRangeOn'](_0x423a01));}const _0x21a9f6=Array['from'](_0x6dcc7f['getAttributes']())['filter'](([_0x23c142])=>Re['includes'](_0x23c142));_0xfb34d0['cells']['push']({'element':_0x127cb4,'attributes':_0x21a9f6['length']?Object['fromEntries'](_0x21a9f6):null}),_0x3b65ed&&_0xfb34d0['insertionRanges']['push'](_0x3b65ed),_0x2f80d7&&_0xfb34d0['deletionRanges']['push'](_0x2f80d7);},{'priority':'high'}),_0x11724d['on']('insertColumns',(_0x586993,_0x2cf4df)=>{const [_0x54706,_0x51645f={}]=_0x2cf4df;if(!_0xfb34d0)return;const _0x50048f=_0x51645f['at']||0x0,_0x18bd71=_0x51645f['columns']||0x1;_0xfb34d0['columnInsertionIndexes']=new Array(_0x18bd71)['fill'](_0x50048f)['map']((_0x2e0051,_0x55dac9)=>_0x2e0051+_0x55dac9);for(const {cell:_0x198f6e}of _0x11724d['createTableWalker'](_0x54706,{'startColumn':_0x50048f,'endColumn':_0x50048f+_0x18bd71-0x1}))_0xfb34d0['columnInsertionRanges']['push'](_0x17697a['model']['createRangeOn'](_0x198f6e));},{'priority':'low'}),_0x11724d['on']('insertRows',(_0x3efb78,_0x8eb18b)=>{const [_0x229b24,_0x107120={}]=_0x8eb18b;if(!_0xfb34d0)return;const _0x172e29=_0x107120['at']||0x0,_0x11450b=_0x107120['rows']||0x1;_0xfb34d0['rowInsertionIndexes']=new Array(_0x11450b)['fill'](_0x172e29)['map']((_0x13b2de,_0x2077f0)=>_0x13b2de+_0x2077f0);for(const {cell:_0x2d45fb}of _0x11724d['createTableWalker'](_0x229b24,{'startRow':_0x172e29,'endRow':_0x172e29+_0x11450b-0x1}))_0xfb34d0['rowInsertionRanges']['push'](_0x17697a['model']['createRangeOn'](_0x2d45fb));},{'priority':'low'}),_0x56dba3['descriptionFactory']['registerDescriptionCallback'](_0x8ea5cd=>{if(_0x8ea5cd['subType']&&_0x8ea5cd['subType']['startsWith']('tablePaste'))return _0x8ea5cd['previous']?{}:{'type':'insertion','content':o(_0x17697a['locale'],'*Replace\x20table\x20cells*')};});const _0x34d35b=()=>!0x1;for(const _0x5c906c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x56dba3['_suggestionFactory']['registerCustomCallback']('insertion',_0x5c906c,'join',_0x34d35b),_0x56dba3['_suggestionFactory']['registerCustomCallback']('deletion',_0x5c906c,'join',_0x34d35b),_0x56dba3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5c906c,'join',_0x34d35b);_0x56dba3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x34d35b),_0x56dba3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2894b2,_0x3bf4db,_0x5323f2)=>{const _0x5be506=_0x2894b2['map'](_0xe29afe=>_0xe29afe['getContainedElement']())['filter'](_0x1979f1=>_0x1979f1),_0x323f16=new Map(_0x5be506['map'](_0x1c47ac=>[_0x1c47ac,null]));if(_0xfb34d0){for(const {element:_0x437670,attributes:_0x4bd126}of _0xfb34d0['cells'])_0x4bd126&&_0x323f16['set'](_0x437670,_0x4bd126);}else{if(_0x5323f2&&_0x5323f2['markerAttributes'])for(const [_0x1c148d,_0x44ccdc]of Object['entries'](_0x5323f2['markerAttributes'])){const _0x187ffc=_0x17697a['model']['markers']['get'](_0x1c148d),_0x577b80=_0x187ffc?_0x187ffc['getRange']()['getContainedElement']():null;_0x577b80&&_0x323f16['set'](_0x577b80,_0x44ccdc);}}_0x17697a['model']['change'](_0x16fbd1=>{for(const [_0x1a78a3,_0x517cfc]of _0x323f16)_0x16fbd1['setAttributes']({...Ae,..._0x517cfc},_0x1a78a3);});});const _0x11f71e=(_0x4d34d0,_0x311668)=>{_0x56dba3['_suggestionFactory']['registerCustomCallback'](_0x4d34d0,'tablePaste',_0x311668,(_0x5512bb,_0x4acf1a,_0x5d248b)=>{_0x17697a['model']['change'](_0xd9e47d=>{const _0x1e4403=[];for(const _0x3d5815 of _0x5512bb){const _0xbc76ea=_0x3d5815['start']['nodeAfter'];_0xbc76ea['is']('element','tableCellSuggestion')&&_0x1e4403['push'](_0xbc76ea);}_0x56dba3['_suggestionFactory']['getSuggestionCallback'](_0x4d34d0,null,_0x311668)(_0x5512bb,_0x4acf1a,_0x5d248b);for(const _0x261de0 of _0x1e4403)'$graveyard'!=_0x261de0['root']['rootName']&&_0xd9e47d['unwrap'](_0x261de0);});});};_0x11f71e('insertion','accept'),_0x11f71e('insertion','discard'),_0x11f71e('deletion','accept'),_0x11f71e('deletion','discard'),_0x56dba3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5c8dbd=>{const _0x5893ae=_0x5c8dbd['map'](_0x1a9a18=>_0x1a9a18['getContainedElement']()),_0x3d729f=_0x5893ae[0x0]['findAncestor']('table'),{minRow:_0x3d72bf,maxRow:_0x114516}=_0x1cc240['_getCoordsForCells'](_0x5893ae);_0x11724d['removeRows'](_0x3d729f,{'at':_0x3d72bf,'rows':_0x114516-_0x3d72bf+0x1});}),_0x56dba3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2fd14b=>{const _0xbe1d20=_0x2fd14b['map'](_0x2db286=>_0x2db286['getContainedElement']()),_0x56fea4=_0xbe1d20[0x0]['findAncestor']('table'),{minColumn:_0x5a7586,maxColumn:_0x5e01af}=_0x1cc240['_getCoordsForCells'](_0xbe1d20);_0x11724d['removeColumns'](_0x56fea4,{'at':_0x5a7586,'columns':_0x5e01af-_0x5a7586+0x1});});const _0x28b7db=(_0x4b3380,_0x312258)=>{if(!_0x312258['subType']||!_0x312258['subType']['startsWith']('tablePaste'))return;const _0xb0e7ee=_0x312258['attributes']['tablePasteChainId'],_0x22b72e=_0x56dba3['getSuggestions']()['filter'](_0xe00c69=>_0xe00c69['isInContent']&&_0xe00c69['attributes']&&_0xe00c69['attributes']['tablePasteChainId']==_0xb0e7ee);_0x22b72e['length']&&_0x312258['getAllAdjacentSuggestions']()['length']!=_0x22b72e['length']&&_0x22b72e['reduce']((_0x2333a8,_0x579aa7)=>(_0x2333a8['next']=_0x579aa7,_0x579aa7['previous']=_0x2333a8,_0x579aa7));};function _0x963371(_0x7cfb9e,_0x21a0b1=!0x0){const {id:_0x3bf1d5,authorId:_0xc8cc4f}=_0x56dba3['_splitMarkerName'](_0x7cfb9e['markerName']),_0x1ee188=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x412641=_0x56dba3['activeMarkers']['includes'](_0x7cfb9e['markerName']);return _0x412641&&_0x1ee188['push']('ck-suggestion-marker--active'),{'classes':_0x1ee188,'attributes':{'data-suggestion':_0x3bf1d5,'data-author-id':_0xc8cc4f},'priority':_0x412641&&_0x21a0b1?0xbc2:0xbb8};}_0x56dba3['on']('suggestionLoaded',_0x28b7db,{'priority':'high'}),_0x56dba3['on']('suggestionUnloaded',_0x28b7db,{'priority':'high'}),_0x17697a['model']['document']['registerPostFixer'](()=>{let _0x7f9ece=!0x1;const _0x3e9042=Array['from'](_0x17697a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d5f0a,data:_0x14316c}of _0x3e9042){const {group:_0x4a482,type:_0x2e0ea0,id:_0xa0b01f}=_0x56dba3['_splitMarkerName'](_0x3d5f0a);if('suggestion'!=_0x4a482||'deletion'!=_0x2e0ea0||_0x14316c['oldRange'])continue;if(!_0x56dba3['hasSuggestion'](_0xa0b01f))continue;const _0x34b5e0=_0x56dba3['getSuggestion'](_0xa0b01f)['getRanges'](),_0x3ca76a=_0x17697a['plugins']['get']('Users')['me'];for(const _0x1f1712 of _0x56dba3['getSuggestions']()){if(!_0x1f1712['isInContent']||_0x1f1712['author']!=_0x3ca76a)continue;if('formatBlock'!=_0x1f1712['type']||'tablePasteCell'!=_0x1f1712['subType'])continue;if(_0x1f1712['getRanges']()['every'](_0x5b9f89=>_0x34b5e0['some'](_0x14afd1=>_0x14afd1['containsRange'](_0x5b9f89,!0x0)))){for(const _0x1c1817 of _0x1f1712['getAllAdjacentSuggestions']())_0x1c1817['isInContent']&&(_0x1c1817['discard'](),_0x7f9ece=!0x0);}}}return _0x7f9ece;}),_0x17697a['model']['document']['registerPostFixer'](_0x58ac85=>{const _0x1f7bd4=_0x17697a['commands']['get']('redo');if(!_0x1f7bd4||!_0x1f7bd4['_createdBatches']['has'](_0x58ac85['batch']))return!0x1;let _0x5c2078=!0x1;const _0x34b7ce=_0x17697a['plugins']['get']('Users')['me'],_0x1dc11b=_0x17697a['model']['document']['differ']['getChanges'](),_0x2407b5=Array['from'](_0x17697a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4dabcc,data:_0x1eda28})=>{const {group:_0x4cffe2,subType:_0x5ccbac,authorId:_0x194dba}=_0x56dba3['_splitMarkerName'](_0x4dabcc);return'suggestion'==_0x4cffe2&&'tablePaste'==_0x5ccbac&&_0x194dba==_0x34b7ce['id']&&!_0x1eda28['oldRange'];});for(const _0x57a949 of _0x1dc11b){if('insert'!=_0x57a949['type']||'tableCellSuggestion'!=_0x57a949['name']||0x1!=_0x57a949['length'])continue;const _0x46340e=_0x58ac85['createRange'](_0x57a949['position'],_0x57a949['position']['getShiftedBy'](0x1));if(!_0x2407b5['find'](({data:_0x25624a})=>_0x25624a['newRange']['isEqual'](_0x46340e))){for(const {name:_0x2d40f2,data:_0x160e97}of _0x2407b5)if(_0x46340e['containsRange'](_0x160e97['newRange'])){_0x58ac85['updateMarker'](_0x2d40f2,{'range':_0x46340e}),_0x5c2078=!0x0;break;}}}return _0x5c2078;}),_0x17697a['model']['document']['registerPostFixer'](_0x5747d1=>{let _0x1a4494=!0x1;const _0x552504=_0x17697a['plugins']['get']('Users')['me'],_0x3360e5=_0x56dba3['getSuggestions']()['filter'](_0x34bcfd=>_0x34bcfd['isInContent']&&_0x34bcfd['author']==_0x552504),_0x5ca34d=new Set(),_0xef9a59=new Set();for(const _0x6f77b9 of _0x3360e5)if('tablePaste'==_0x6f77b9['subType'])for(const _0x431bbd of _0x6f77b9['getMarkers']()){const _0x10d17f=_0x431bbd['getRange']()['getContainedElement']();if(_0x10d17f){if(_0x10d17f['is']('element','tableCellSuggestion')&&Be(_0x10d17f)){_0x6f77b9['removeMarker'](_0x431bbd['name']),_0x5ca34d['add'](_0x10d17f),_0x1a4494=!0x0;const _0x51afa2=_0x10d17f['nextSibling'],_0x427fce=_0x10d17f['previousSibling'],_0x374682=_0x51afa2&&_0x51afa2['is']('element','tableCellSuggestion'),_0x4576d1=_0x427fce&&_0x427fce['is']('element','tableCellSuggestion');_0x374682&&!_0x5ca34d['has'](_0x51afa2)&&_0xef9a59['add'](_0x51afa2),_0x4576d1&&!_0x5ca34d['has'](_0x427fce)&&_0xef9a59['add'](_0x427fce);}else _0x10d17f['is']('element','paragraph')&&_0x10d17f['isEmpty']&&(_0x6f77b9['removeMarker'](_0x431bbd['name']),_0x1a4494=!0x0);}}else{if('tablePasteCell'==_0x6f77b9['subType']){if(!_0x6f77b9['attributes']||!_0x6f77b9['attributes']['tablePasteChainId'])continue;const _0x51fb74=_0x6f77b9['attributes']['markerAttributes'];if(_0x51fb74&&Object['keys'](_0x51fb74)['length'])continue;const _0x5b6d83=_0x6f77b9['attributes']['tablePasteChainId'];let _0x3ae9ee=!0x0,_0x31c20a=!0x0;for(const _0x45d694 of _0x3360e5)if(_0x45d694['subType']&&_0x45d694['subType']['startsWith']('tablePaste')){if(!_0x45d694['attributes']['tablePasteChainId']){_0x31c20a=!0x1;break;}if(_0x45d694['id']!=_0x6f77b9['id']&&_0x45d694['attributes']['tablePasteChainId']==_0x5b6d83){_0x3ae9ee=!0x1;break;}}_0x31c20a&&_0x3ae9ee&&(_0x6f77b9['removeMarkers'](),_0x1a4494=!0x0);}}for(const _0x4772a7 of _0x5ca34d)_0x5747d1['remove'](_0x4772a7);for(const _0x4d271c of _0xef9a59)_0x5747d1['unwrap'](_0x4d271c);return _0x1a4494;}),_0x17697a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3991fb=>_0x963371(_0x3991fb),'converterPriority':'high'}),_0x17697a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2db2ff,_0x4fa7c0)=>_0x4fa7c0['options']['showSuggestionHighlights']?_0x963371(_0x2db2ff,!0x1):null,'converterPriority':'high'});const _0x49c945=_0x17697a['editing']['view'];this['listenTo'](_0x49c945['document'],'clipboardOutput',(_0x270afa,_0x15e0ce)=>{const _0x41492f=[];for(const _0x46b203 of _0x49c945['createRangeIn'](_0x15e0ce['content'])['getItems']())_0x46b203['is']('element','suggestion-td')&&_0x41492f['push'](_0x46b203);_0x49c945['change'](_0x937e2c=>{for(const _0x450c76 of _0x41492f)_0x937e2c['move'](_0x937e2c['createRangeIn'](_0x450c76),_0x937e2c['createPositionBefore'](_0x450c76)),_0x937e2c['remove'](_0x450c76);});});}}function Be(_0x1dfb73){if(_0x1dfb73['isEmpty'])return!0x0;const _0x40f97b=_0x1dfb73['getChild'](0x0);return _0x40f97b['is']('element','paragraph')&&_0x40f97b['isEmpty'];}function Oe(_0x3ff5cc,_0xfc8aee={},_0x14281b){for(const {isAnchor:_0x52fe03,cellHeight:_0x3d4980,cellWidth:_0x26ea6f}of _0x14281b['createTableWalker'](_0x3ff5cc,{'includeAllSlots':!0x0,..._0xfc8aee}))if(!_0x52fe03||0x1!=_0x3d4980||0x1!=_0x26ea6f)return!0x1;return!0x0;}class Ot extends _0x568c70{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b7563=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b7563['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b7563['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b7563['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b7563['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b7563['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b7563['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x377b15,_0x1c6333){const _0x34ee49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x138ac3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4eaf13=_0x1c6333['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x38ac6d=_0x138ac3['getColumnGroupElement'](_0x4eaf13);let _0x59d50f=_0x38ac6d?_0x138ac3['getTableColumnsWidths'](_0x38ac6d):null,_0x565455=_0x4eaf13['getAttribute']('tableWidth')||null;const _0x15b764=_0x1c6333['tableWidth']||_0x565455,_0x3f428c=_0x1c6333['columnWidths']||_0x59d50f,_0x45b3e2=this['editor']['plugins']['get']('Users')['me'];for(const _0x182d76 of _0x34ee49['getSuggestions']()){const _0x504bfb=_0x182d76['getContainedElement']();if('resizeTable'===_0x182d76['subType']&&_0x504bfb===_0x4eaf13){_0x182d76['author']!==_0x45b3e2&&_0x182d76['discard']();const _0x18cd93=_0x182d76['data']['commandParams'];_0x565455=_0x18cd93[0x0]['tableWidth'],_0x59d50f=_0x18cd93[0x0]['columnWidths'];break;}}_0x377b15({'table':_0x4eaf13,'tableWidth':_0x15b764,'columnWidths':_0x3f428c}),_0x34ee49['markBlockFormat'](_0x4eaf13,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x565455,'columnWidths':_0x59d50f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41e7a0){if('formatBlock'!=_0x41e7a0['type']&&'formatInline'!=_0x41e7a0['type'])return;const {data:_0x5aa2a1}=_0x41e7a0;if(_0x5aa2a1&&'resizeTable'===_0x5aa2a1['formatGroupId']){const _0x459742='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x459742)};}}}class xt extends _0x568c70{['afterInit'](){const _0x5255f6=this['editor'];_0x5255f6['plugins']['has']('Template')&&_0x5255f6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x568c70{['afterInit'](){const _0x3e4791=this['editor'];if(!_0x3e4791['commands']['get']('insertTableOfContents'))return;_0x3e4791['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4896a3=_0x3e4791['plugins']['get']('TrackChangesEditing'),_0x4aaf72=_0x3e4791['locale'];_0x4896a3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x58f563=>o(_0x4aaf72,'ELEMENT_TABLE_OF_CONTENTS',_0x58f563));}}class Rt extends _0x568c70{['afterInit'](){const _0x124023=this['editor'];if(!_0x124023['plugins']['has']('Title'))return;const _0x3c59ea=_0x124023['plugins']['get']('TrackChangesEditing');_0x3c59ea['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x124023['locale'],'ELEMENT_TITLE')),_0x124023['model']['document']['registerPostFixer'](_0x8eba5a=>{let _0x4fe568=!0x1;const _0x31e11d=Array['from'](_0x124023['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597242,data:_0x2ee891}of _0x31e11d){const {group:_0x235e9f}=_0x3c59ea['_splitMarkerName'](_0x597242);if('suggestion'!==_0x235e9f||!_0x2ee891['newRange'])continue;const _0x2e8d24=_0x2ee891['newRange'],_0xca5fb0=_0x2e8d24['end']['nodeBefore'];if(!_0xca5fb0||!_0xca5fb0['is']('element','title-content'))continue;if(!_0x2e8d24['start']['isTouching'](_0x2e8d24['end']))continue;const _0x20d9d5=_0x124023['model']['schema']['getNearestSelectionRange'](_0x2e8d24['end'],'forward');if(_0x20d9d5&&_0x20d9d5['isCollapsed']){const _0x450683=_0x8eba5a['createRange'](_0x2e8d24['start'],_0x20d9d5['start']);_0x450683['isEqual'](_0x2e8d24)||(_0x8eba5a['updateMarker'](_0x597242,{'range':_0x450683}),_0x4fe568=!0x0);}_0x4fe568||(_0x8eba5a['removeMarker'](_0x597242),_0x4fe568=!0x0);}return _0x4fe568;});}}class Tt extends _0x568c70{['afterInit'](){const _0xa5502=this['editor'],_0x5a58e8=_0xa5502['plugins']['get']('TrackChangesEditing');_0xa5502['plugins']['has']('Uploadcare')&&(_0x5a58e8['enableCommand']('uploadcare'),_0xa5502['plugins']['has']('UploadcareImageEdit')&&(_0x5a58e8['enableCommand']('uploadcareImageEdit'),_0x5a58e8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5a58e8['descriptionFactory']['registerDescriptionCallback'](_0x54db1c=>{if('attribute'!=_0x54db1c['type'])return;const {data:_0x10488e}=_0x54db1c;return _0x10488e&&'uploadcareImageId'==_0x10488e['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x568c70{['afterInit'](){const _0x4aaaff=this['editor'],_0x41bca5=_0x4aaaff['plugins']['get']('TrackChangesEditing');_0x4aaaff['plugins']['has']('UndoEditing')&&(_0x41bca5['enableCommand']('undo'),_0x41bca5['enableCommand']('redo'));}}class Ut extends _0x568c70{static get['requires'](){return[Nt];}['afterInit'](){const _0x550363=this['editor'];if(!_0x550363['plugins']['has']('TableCaptionEditing'))return;_0x550363['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x568c70{['tableProperties'];['tableCellProperties'];constructor(_0x1e3e92){super(_0x1e3e92),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x1e3e92['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 _0x38218c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4e81e1 of this['tableProperties'])_0x38218c['enableCommand'](_0x4e81e1,(_0x14efbb,_0x1cf1e5)=>{const _0x9645ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4e81e1,[_0x9645ee],this['tableProperties'],'tableProperties',_0x14efbb,_0x1cf1e5);});_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x38218c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bfb56,_0x4b3d79)=>this['handleDiscardAction'](this['tableProperties'],_0x2bfb56,_0x4b3d79)),_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x187270 of this['tableCellProperties'])this['editor']['commands']['get'](_0x187270)&&_0x38218c['enableCommand'](_0x187270,(_0x3d1dde,_0x125478)=>{const _0x7e4801=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x187270,_0x7e4801,this['tableCellProperties'],'tableCellProperties',_0x3d1dde,_0x125478);});_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x38218c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b4e64,_0xfd3dbf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b4e64,_0xfd3dbf)),_0x38218c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x38218c['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x38218c['descriptionFactory']['registerDescriptionCallback'](_0x5e5bc1=>this['handleSuggestionDescription'](_0x5e5bc1)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x145b90,_0x11829a,_0x755308,_0xe26233,_0x254656,_0x45dd72){const _0x5b9ab0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x45dd72['batch'],()=>{for(const _0x3d05dc of _0x11829a){if(this['_getSuggestion'](_0x3d05dc,_0xe26233))_0x254656(_0x45dd72);else{const _0x46bde6={};for(const _0x78a628 of _0x755308){const _0x94e43b=_0x3d05dc['getAttribute'](_0x78a628);void 0x0!==_0x94e43b&&(_0x46bde6[_0x78a628]=_0x94e43b);}_0x254656(_0x45dd72),_0x5b9ab0['markBlockFormat'](_0x3d05dc,{'commandParams':[_0x46bde6]},[],_0xe26233);}}});}['handleDiscardAction'](_0x1c6cd0,_0x515120,_0x3f23c5){const _0x2ad696=_0x515120[0x0]['start']['nodeAfter'],_0x8431e7=_0x3f23c5['commandParams'][0x0];this['editor']['model']['change'](_0x47d2f5=>{for(const _0x31bbcf of _0x1c6cd0)void 0x0!==_0x8431e7[_0x31bbcf]?_0x47d2f5['setAttribute'](_0x31bbcf,_0x8431e7[_0x31bbcf],_0x2ad696):_0x47d2f5['removeAttribute'](_0x31bbcf,_0x2ad696);});}['handleSuggestionDescription'](_0x539478){if(_0x539478['data'])switch(_0x539478['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'](_0x213747,_0xe8e781){const _0x524f88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a94f6 of _0x524f88['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e32e1=_0x1a94f6['getContainedElement']();if(_0x1a94f6['subType']===_0xe8e781&&_0x5e32e1===_0x213747)return _0x1a94f6;}return null;}['_registerTablePropertiesAttributes'](){const _0x27cf87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fce4e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2a1d6a of _0x3fce4e){const _0x3a873d=_0x2a1d6a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x27cf87['descriptionFactory']['registerAttributeLabel'](_0x2a1d6a,o(this['editor']['locale'],'FORMAT_'+_0x3a873d));}}}class Ft extends _0x568c70{['afterInit'](){const _0x3fe8b8=this['editor'];if(!_0x3fe8b8['plugins']['has']('LineHeight'))return;const _0x3e9cb6=_0x3fe8b8['plugins']['get']('TrackChangesEditing'),_0x126be4=_0x3fe8b8['locale'];_0x3e9cb6['enableDefaultAttributesIntegration']('lineHeight'),_0x3e9cb6['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x126be4,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x568c70{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x56af09,_0x12e0b2,_0x1879ab,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1777e1){super(_0x1777e1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d983f,_0x3e7852,_0x409d2f,_0x16051f)=>{this['_model']['change'](()=>{for(const _0x57d873 of[..._0x16051f,..._0x409d2f])this['_model']['markers']['has'](_0x57d873)&&_0x1777e1['editing']['reconvertMarker'](_0x57d873);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1777e1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1777e1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1777e1['config']['get']('trackChanges.trackFormatChanges'),_0x1777e1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1777e1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x1777e1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45f1eb=this['editor'];_0x45f1eb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4647f2,{writer:_0x29e1e8})=>{let _0x153add='suggestion:'+_0x4647f2['getAttribute']('suggestion-type')+':'+_0x4647f2['getAttribute']('id');return _0x4647f2['getAttribute']('marker-count')&&(_0x153add+=':'+_0x4647f2['getAttribute']('marker-count')),_0x29e1e8['createElement']('$marker',{'data-name':_0x153add});}}),_0x45f1eb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45f1eb['model']['document']['registerPostFixer'](_0x23a408=>{let _0x584a05=!0x1;const _0x584adb=Array['from'](_0x45f1eb['model']['document']['differ']['getChangedMarkers']()),_0x6b23c2=new Set();for(const {name:_0x45fba2,data:_0x51b0c2}of _0x584adb){const {group:_0x3781d1,type:_0x353611,subType:_0xb98cd3,id:_0x35b9c8}=this['_splitMarkerName'](_0x45fba2);if('suggestion'!==_0x3781d1)continue;const _0x2b947c=_0xb98cd3?'suggestion:'+_0x353611+':'+_0xb98cd3+':'+_0x35b9c8:'suggestion:'+_0x353611+':'+_0x35b9c8,_0x50a820=_0x45f1eb['model']['markers']['getMarkersGroup'](_0x2b947c),_0x155180=_0x45f1eb['model']['markers']['get'](_0x45fba2),_0x3559ac=this['_suggestions']['get'](_0x35b9c8);if(null!=_0x51b0c2['newRange']){'formatInline'==_0x353611&&(_0x584a05=_0x584a05||Wt(_0x51b0c2['newRange'],_0x45fba2,_0x23a408,_0x45f1eb['model']['schema']));const _0x3b9e82='attribute'==_0x353611&&this['_isBlockAttribute'](_0xb98cd3['split']('|')[0x0]),_0x48b60c='attribute'==_0x353611&&this['_isInlineAttribute'](_0xb98cd3['split']('|')[0x0]);if(_0x51b0c2['newRange']['isCollapsed']||'$graveyard'==_0x51b0c2['newRange']['root']['rootName']||'formatBlock'==_0x353611&&!Qt(_0x51b0c2['newRange'])||_0x3b9e82&&!Qt(_0x51b0c2['newRange'])||_0x48b60c&&Xt(_0x51b0c2['newRange'])||'deletion'==_0x353611&&Xt(_0x51b0c2['newRange'])||_0x155180&&Yt(_0x155180,_0x50a820))_0x23a408['removeMarker'](_0x45fba2),_0x584a05=!0x0;else{if(!_0x3559ac||!_0x3559ac['isInContent'])continue;if(_0x51b0c2['newRange']&&_0x51b0c2['oldRange']&&_0x51b0c2['newRange']['isEqual'](_0x51b0c2['oldRange']))continue;_0x6b23c2['add'](_0x3559ac);}}}return _0x6b23c2['size']>0x0&&(_0x584a05=!!this['_joinWithAdjacentSuggestions'](_0x6b23c2)||_0x584a05),_0x584a05;}),_0x45f1eb['model']['document']['registerPostFixer'](_0xc3ffab=>{let _0x204421=!0x1;for(const _0x44a075 of _0x45f1eb['model']['document']['differ']['getChanges']())if('insert'==_0x44a075['type'])for(const _0x4af480 of this['_suggestions']['values']()){if(_0x4af480['isMultiRange']||!_0x4af480['isInContent'])continue;const _0x2efa9c='formatBlock'==_0x4af480['type'],_0x53728d=this['_getAttributeKey'](_0x4af480),_0x68b67a=_0x53728d&&this['_isBlockAttribute'](_0x53728d);if(!_0x2efa9c&&!_0x68b67a)continue;const _0x55a58f=_0x4af480['getFirstRange']();if(_0x55a58f['start']['parent']!=_0x55a58f['end']['parent']&&!_0x55a58f['end']['isAtEnd']){const _0x2f1e43=_0x45f1eb['model']['createPositionAt'](_0x55a58f['start']['nodeAfter'],'end'),_0x17634b=_0x45f1eb['model']['createRange'](_0x55a58f['start'],_0x2f1e43);_0xc3ffab['updateMarker'](_0x4af480['getFirstMarker'](),{'range':_0x17634b}),_0x204421=!0x0;}}return _0x204421;}),_0x45f1eb['model']['document']['registerPostFixer'](_0xf8998c=>this['_processAttributeChanges'](_0xf8998c)),_0x45f1eb['model']['document']['registerPostFixer'](_0x50b651=>!_0x50b651['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x50b651)),_0x45f1eb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45f1eb['model']['document']['on']('change:data',(_0x2f8b6e,_0x434f76)=>{if(!_0x434f76['isLocal']||_0x434f76['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5af5e9=_0x45f1eb['model']['document']['differ']['getChanges']();if(0x0==_0x5af5e9['length'])return;const _0x10bbcf=[],_0x49b0e1=_0x5af5e9['filter'](_0x4cf92d=>'attribute'==_0x4cf92d['type']),_0x48c338=_0x5af5e9['filter'](_0x4dc30c=>'insert'==_0x4dc30c['type']&&'$text'!=_0x4dc30c['name']);for(const _0x3e6023 of _0x49b0e1)this['_isRegisteredAttribute'](_0x3e6023['attributeKey'])&&_0x10bbcf['push']({'key':_0x3e6023['attributeKey'],'newValue':_0x3e6023['attributeNewValue'],'oldValue':_0x3e6023['attributeOldValue'],'range':Zt(_0x3e6023['range'],_0x45f1eb['model'])});for(const _0x5bb1d6 of _0x48c338){if('rename'!=_0x5bb1d6['action']&&'refresh'!=_0x5bb1d6['action'])continue;const _0x505c54=tn(_0x5bb1d6['position']['nodeAfter'],_0x45f1eb['model']),_0x5acd44=_0x5bb1d6['before'];'rename'==_0x5bb1d6['action']&&_0x10bbcf['push']({'key':m,'newValue':_0x5bb1d6['name'],'oldValue':_0x5acd44['name'],'range':_0x505c54});for(const [_0x4c58dd,_0x1e93ab]of _0x5acd44['attributes']){if(!this['_isRegisteredAttribute'](_0x4c58dd))continue;const _0x388001=_0x5bb1d6['attributes']['get'](_0x4c58dd);_0x1e93ab!==_0x388001&&_0x10bbcf['push']({'key':_0x4c58dd,'newValue':_0x388001,'oldValue':_0x1e93ab,'range':_0x505c54});}for(const [_0x25baa6,_0x260c0b]of _0x5bb1d6['attributes'])this['_isRegisteredAttribute'](_0x25baa6)&&(_0x5acd44['attributes']['has'](_0x25baa6)||_0x10bbcf['push']({'key':_0x25baa6,'newValue':_0x260c0b,'oldValue':null,'range':_0x505c54}));}0x0!=_0x10bbcf['length']&&_0x45f1eb['model']['enqueueChange'](_0x434f76,_0x27faf7=>{const _0x3b24c2=_0x47121d();for(const {range:_0x89c695,key:_0x2a2151,oldValue:_0x426f99,newValue:_0x21119c}of _0x10bbcf)this['markAttributeChange'](_0x89c695,_0x2a2151,_0x426f99,_0x21119c,{'groupId':_0x3b24c2});this['_reduceExistingSuggestions'](_0x27faf7,_0x10bbcf);});},{'priority':'lowest'}),_0x45f1eb['model']['markers']['on']('update:suggestion',(_0x1a8791,_0x3244a1,_0x374d1f)=>{if(null==_0x374d1f){const {id:_0x4c3d71}=this['_splitMarkerName'](_0x3244a1['name']),_0x3e3d53=this['_suggestions']['get'](_0x4c3d71);_0x3e3d53&&_0x3e3d53['addMarkerName'](_0x3244a1['name']);}}),_0x45f1eb['model']['document']['on']('change:data',()=>{const _0x5856bc=Array['from'](_0x45f1eb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e8183=>'suggestion'===this['_splitMarkerName'](_0x5e8183['name'])['group']);if(0x0===_0x5856bc['length'])return;_0x5856bc['sort']((_0x4ff2d5,_0x16eb01)=>{const _0x15c5e4=_0x4ff2d5['data']['oldRange'],_0x3decd2=_0x16eb01['data']['oldRange'];return null===_0x15c5e4&&null===_0x3decd2?0x0:null===_0x15c5e4&&null!==_0x3decd2?-0x1:null!==_0x15c5e4&&null===_0x3decd2?0x1:_0x15c5e4['start']['isBefore'](_0x3decd2['start'])?-0x1:0x1;});const _0x4ed818=new Set(),_0x2df3d7=new Set();for(const {name:_0x4f2b85,data:_0x359b97}of _0x5856bc){const {id:_0x17e444}=this['_splitMarkerName'](_0x4f2b85);if(null===_0x359b97['oldRange']){const _0x2c8a57=this['_handleNewSuggestionMarker'](_0x4f2b85);_0x2df3d7['add'](_0x2c8a57);}else{const _0x5b740d=this['_suggestions']['get'](_0x17e444);null!==_0x359b97['newRange']||_0x5b740d['isInContent']?(_0x4ed818['add'](_0x5b740d['head']),_0x2df3d7['add'](_0x5b740d)):this['_removeSuggestion'](_0x5b740d);}}_0x2df3d7['size']>0x0&&this['_refreshSuggestionsChain'](_0x2df3d7);for(const _0x33a893 of _0x4ed818)this['fire']('suggestionChanged',_0x33a893);}),_0x45f1eb['model']['on']('applyOperation',(_0x34ec2e,_0x343966)=>{const _0x27d8cc=_0x343966[0x0];if(!this['_suggestions']['size'])return;if(!_0x27d8cc['isDocumentOperation'])return;if(_0x27d8cc['batch']['isUndo']||!_0x27d8cc['batch']['isLocal'])return;let _0xb336b4,_0x32c7f8;switch(_0x27d8cc['type']){case'insert':_0xb336b4=_0x45f1eb['model']['createPositionAt'](_0x27d8cc['position']),_0x32c7f8=_0xb336b4['getShiftedBy'](_0x27d8cc['howMany']);break;case'split':_0xb336b4=_0x45f1eb['model']['createPositionAt'](_0x27d8cc['splitPosition']),_0x32c7f8=_0x45f1eb['model']['createPositionAt'](_0x27d8cc['moveTargetPosition']);break;case'move':_0xb336b4=_0x45f1eb['model']['createPositionAt'](_0x27d8cc['targetPosition']),_0x32c7f8=_0xb336b4['getShiftedBy'](_0x27d8cc['howMany']);break;default:return;}const _0x2aaf6e=_0x45f1eb['model']['createRange'](_0xb336b4,_0x32c7f8);_0x45f1eb['model']['change'](()=>{for(const {suggestion:_0x2a9dbd,meta:_0x7737e}of this['_findSuggestions'](_0x2aaf6e)){if(_0x2a9dbd['isMultiRange'])continue;if('formatInline'==_0x2a9dbd['type'])continue;const _0x5a0aae=this['_getAttributeKey'](_0x2a9dbd);if(_0x5a0aae&&this['_isBlockAttribute'](_0x5a0aae)&&'split'!=_0x27d8cc['type'])continue;const _0x421c7d=_0x2a9dbd['data']&&_0x2a9dbd['data']['multipleBlocks'];('formatBlock'!=_0x2a9dbd['type']||'split'==_0x27d8cc['type']&&!_0x421c7d)&&(_0x7737e['containsRangeInObject']||'insertion'==_0x2a9dbd['type']&&_0x7737e['isOwn']||_0x2a9dbd['getFirstRange']()['containsRange'](_0x2aaf6e)&&this['_breakSuggestionMarker'](_0x2a9dbd,_0xb336b4,_0x32c7f8));}});},{'priority':'lowest'}),_0x45f1eb['model']['on']('deleteContent',(_0x450fec,_0x44e73f)=>{const _0x3045bc=_0x44e73f[0x0],_0x2970b9=_0x44e73f[0x1];if(_0x2970b9&&_0x2970b9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3045bc['isCollapsed'])return;const _0x47329a=_0x45f1eb['model']['schema'],{start:_0x428147,end:_0x226bf3}=_0x3045bc['getFirstRange'](),_0x58cbc5=_0x428147['nodeAfter']&&_0x47329a['isLimit'](_0x428147['nodeAfter'])?null:_0x47329a['getNearestSelectionRange'](_0x428147,'forward'),_0x573da2=_0x226bf3['nodeBefore']&&_0x47329a['isLimit'](_0x226bf3['nodeBefore'])?null:_0x47329a['getNearestSelectionRange'](_0x226bf3,'backward'),_0x35df81=_0x45f1eb['model']['createRange'](_0x58cbc5?_0x58cbc5['start']:_0x428147,_0x573da2?_0x573da2['end']:_0x226bf3);_0x45f1eb['model']['change'](_0x1e8889=>{this['markDeletion'](_0x35df81);const _0x123ee0=_0x45f1eb['model']['schema']['getNearestSelectionRange'](_0x35df81['start']);_0x3045bc['is']('documentSelection')?_0x1e8889['setSelection'](_0x123ee0):_0x3045bc['setTo'](_0x123ee0);}),_0x450fec['stop']();},{'priority':_0x250185['normal']+0xa}),_0x45f1eb['model']['on']('insertContent',(_0xbf94f3,_0x490b26)=>{const _0x1e4e15=_0x490b26[_0x490b26['length']-0x1];_0x1e4e15&&_0x1e4e15['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45f1eb['model']['change'](()=>{let _0x4221cf=_0x45f1eb['model']['insertContent'](_0x490b26[0x0],_0x490b26[0x1],_0x490b26[0x2],{'forceDefaultExecution':!0x0});if(!_0x4221cf)return;_0xbf94f3['return']=_0x4221cf['clone']();const _0x23fab7=_0x4221cf['end']['nodeBefore'],_0x1e4a9c=_0x45f1eb['model']['schema'];_0x23fab7&&_0x1e4a9c['isBlock'](_0x23fab7)&&!_0x1e4a9c['isObject'](_0x23fab7)&&(_0x4221cf=_0x45f1eb['model']['createRange'](_0x4221cf['start'],_0x45f1eb['model']['createPositionAt'](_0x23fab7,'end'))),this['markInsertion'](_0x4221cf);}),_0xbf94f3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x7b10f9=new v(_0x45f1eb,this['_suggestions']);_0x45f1eb['commands']['add']('acceptSuggestion',_0x7b10f9),this['enableCommand']('acceptSuggestion');const _0x418162=new D(_0x45f1eb,this['_suggestions']);_0x45f1eb['commands']['add']('discardSuggestion',_0x418162),this['enableCommand']('discardSuggestion'),_0x45f1eb['commands']['add']('acceptAllSuggestions',new B(_0x45f1eb,_0x7b10f9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45f1eb['commands']['add']('discardAllSuggestions',new B(_0x45f1eb,_0x418162,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45f1eb['commands']['add']('acceptSelectedSuggestions',new O(_0x45f1eb,_0x7b10f9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45f1eb['commands']['add']('discardSelectedSuggestions',new O(_0x45f1eb,_0x418162,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8893d6=_0x45f1eb['plugins']['get']('CommentsRepository');this['listenTo'](_0x8893d6,'addComment',(_0x969ebc,{threadId:_0x43905a})=>{const _0x285b8a=this['_suggestions']['get'](_0x43905a);_0x285b8a&&_0x285b8a['commentThread']&&0x1===_0x285b8a['commentThread']['length']&&this['_updateSuggestionData'](_0x43905a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8893d6,'removeComment',(_0x1a96d2,{threadId:_0x26c295})=>{const _0x5eb736=this['_suggestions']['get'](_0x26c295);_0x5eb736&&_0x5eb736['commentThread']&&!_0x5eb736['commentThread']['length']&&this['_updateSuggestionData'](_0x26c295,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xe15cbd){const _0x49d4c9=_0x371288([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]),_0x3d797f=0x3d8d0df,_0x7accf1=0x3df51e7^_0x3d797f,_0xcc0bf8=window[_0x371288([0x44,0x61,0x74,0x65])][_0x371288([0x6e,0x6f,0x77])](),_0x4f6ab1=_0xe15cbd[_0x371288([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x171d67=new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55d3af=>{_0x4f6ab1[_0x371288([0x6f,0x6e,0x63,0x65])](_0x371288([0x72,0x65,0x61,0x64,0x79]),_0x55d3af);}),_0x53dee1={[_0x371288([0x6b,0x74,0x79])]:_0x371288([0x45,0x43]),[_0x371288([0x75,0x73,0x65])]:_0x371288([0x73,0x69,0x67]),[_0x371288([0x63,0x72,0x76])]:_0x371288([0x50,0x2d,0x32,0x35,0x36]),[_0x371288([0x78])]:_0x371288([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]),[_0x371288([0x79])]:_0x371288([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]),[_0x371288([0x61,0x6c,0x67])]:_0x371288([0x45,0x53,0x32,0x35,0x36])},_0x5e77a0=_0x4f6ab1[_0x371288([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x371288([0x67,0x65,0x74])](_0x371288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45080c(){let _0x361b38,_0x1301c8=null,_0x364ccb=null;try{if(_0x5e77a0==_0x371288([0x47,0x50,0x4c]))return _0x371288([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x361b38=_0xd53d5(),!_0x361b38)return _0x371288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x361b38[_0x371288([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x364ccb=_0x477e65(_0x361b38[_0x371288([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x361b38[_0x371288([0x6a,0x74,0x69])])),await _0x1951b4()?_0x4dd029()?_0x51fc15()?_0x371288([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46f92f()?(_0x361b38[_0x371288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x371288([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1301c8=_0x288584(_0x371288([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d1ba0()):_0x371288([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x371288([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x371288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x371288([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51fc15(){const _0x5ac897=[_0x371288([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x371288([0x74,0x72,0x69,0x61,0x6c])][_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361b38[_0x371288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcc0bf8/0x3e8:0xe10*_0x7accf1;return _0x361b38[_0x371288([0x65,0x78,0x70])]<_0x5ac897;}function _0x4dd029(){const _0x43c5af=_0x361b38[_0x371288([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43c5af)return!0x1;if(_0x43c5af[_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371288([0x2a])))return!0x0;if(_0x43c5af[_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371288([0x54,0x43])))return!0x0;if(_0x43c5af[_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371288([0x52,0x54,0x43]))){if(_0x4dac8b())return!0x0;if(_0x190d6f()||_0x2fd7d7())return!0x0;}return!0x1;}function _0x46f92f(){const _0x23c9fe=_0x361b38[_0x371288([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23c9fe||0x0==_0x23c9fe[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d626a}=new URL(window[_0x371288([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23c9fe[_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d626a))return!0x0;const _0x2bfb98=_0x3d626a[_0x371288([0x73,0x70,0x6c,0x69,0x74])](_0x371288([0x2e]));return _0x23c9fe[_0x371288([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x432db1=>_0x432db1[_0x371288([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x371288([0x2a])))[_0x371288([0x6d,0x61,0x70])](_0x25c4ad=>_0x25c4ad[_0x371288([0x73,0x70,0x6c,0x69,0x74])](_0x371288([0x2e])))[_0x371288([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47f015=>_0x47f015[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2bfb98[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371288([0x6d,0x61,0x70])](_0x11674c=>Array(_0x2bfb98[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11674c[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x371288([0x66,0x69,0x6c,0x6c])](_0x11674c[0x0]===_0x371288([0x2a])?_0x371288([0x2a]):'')[_0x371288([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11674c))[_0x371288([0x73,0x6f,0x6d,0x65])](_0x54ad7d=>_0x2bfb98[_0x371288([0x65,0x76,0x65,0x72,0x79])]((_0x431b2f,_0x3b7734)=>_0x54ad7d[_0x3b7734]===_0x431b2f||_0x54ad7d[_0x3b7734]===_0x371288([0x2a])));}function _0x5d1ba0(){return _0x1301c8&&_0x364ccb?new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x711d41,_0x3cb162)=>{_0x1301c8[_0x371288([0x74,0x68,0x65,0x6e])](_0x711d41,_0x3cb162),_0x364ccb[_0x371288([0x74,0x68,0x65,0x6e])](_0x441a5a=>{_0x441a5a!=_0x371288([0x56,0x61,0x6c,0x69,0x64])&&_0x711d41(_0x441a5a);},_0x3cb162);}):_0x1301c8||_0x364ccb||_0x371288([0x56,0x61,0x6c,0x69,0x64]);}}function _0x477e65(_0x59dbc1,_0x4d5f35){return new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f287b=>{if(_0x5d8c82())return _0x1f287b(_0x371288([0x56,0x61,0x6c,0x69,0x64]));_0x3e5a8d(),_0x4f6ab1[_0x371288([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x371288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14532d=!0x1;const _0x577ee6=_0x47121d();function _0x5ad413(_0x324770){return!!_0x324770&&(typeof _0x324770===_0x371288([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x324770===_0x371288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x324770[_0x371288([0x74,0x68,0x65,0x6e])]===_0x371288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x324770[_0x371288([0x63,0x61,0x74,0x63,0x68])]===_0x371288([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fcbfa(_0x5f7934){_0x3b69b9(_0x5f7934)[_0x371288([0x74,0x68,0x65,0x6e])](_0x3598aa=>{if(!_0x3598aa||_0x3598aa[_0x371288([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x371288([0x6f,0x6b]))return _0x371288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9674ef(_0x5296f4(_0x577ee6+_0x4d5f35))!=_0x3598aa[_0x371288([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x371288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x371288([0x56,0x61,0x6c,0x69,0x64]);})[_0x371288([0x74,0x68,0x65,0x6e])](_0x4228e2=>(_0x55cd4e(),_0x4228e2),()=>{const _0x457dae=_0x2c82d6();return null==_0x457dae?(_0x55cd4e(),_0x371288([0x56,0x61,0x6c,0x69,0x64])):_0x371288(_0xcc0bf8-_0x457dae>(0x27d454df^_0x3d797f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x371288([0x74,0x68,0x65,0x6e])](_0x1f287b)[_0x371288([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f287b(_0x371288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x69290f=0x3ee3e5f^_0x3d797f;function _0x55cd4e(){const _0x2938fa=_0x371288([0x6c,0x6c,0x63,0x74,0x2d])+_0x9674ef(_0x5296f4(_0x59dbc1)),_0x37c576=_0x23778b(_0x9674ef(window[_0x371288([0x4d,0x61,0x74,0x68])][_0x371288([0x63,0x65,0x69,0x6c])](_0xcc0bf8/_0x69290f)));window[_0x371288([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371288([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2938fa,_0x37c576);}function _0x2c82d6(){const _0x5d9f39=_0x371288([0x6c,0x6c,0x63,0x74,0x2d])+_0x9674ef(_0x5296f4(_0x59dbc1)),_0x3765a5=window[_0x371288([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x371288([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d9f39);return _0x3765a5?window[_0x371288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23778b(_0x3765a5),0x10)*_0x69290f:null;}function _0x3b69b9(_0x37cf45){return new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a3c05,_0xaca355)=>{_0x37cf45[_0x371288([0x74,0x68,0x65,0x6e])](_0x5a3c05,_0xaca355),window[_0x371288([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaca355,0x3d9041f^_0x3d797f);});}}_0x4f6ab1[_0x371288([0x6f,0x6e])](_0x371288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x851385,_0x33a540)=>{if(_0x33a540[0x0]!=_0x59dbc1)return _0x1f287b(_0x371288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33a540[0x1]={..._0x33a540[0x1],[_0x371288([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x577ee6};},{[_0x371288([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371288([0x68,0x69,0x67,0x68])}),_0x4f6ab1[_0x371288([0x6f,0x6e])](_0x371288([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42ea53=>{_0x5ad413(_0x42ea53[_0x371288([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14532d=!0x0,_0x2fcbfa(_0x42ea53[_0x371288([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x371288([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x371288([0x6c,0x6f,0x77])}),_0x171d67[_0x371288([0x74,0x68,0x65,0x6e])](()=>{_0x14532d||_0x1f287b(_0x371288([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d8c82(){return _0x4f6ab1[_0x371288([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371288([0x76,0x69,0x65,0x77])][_0x371288([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x371288([0x61,0x75,0x74,0x6f]);}function _0x3e5a8d(){_0x4f6ab1[_0x371288([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x371288([0x76,0x69,0x65,0x77])][_0x371288([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x371288([0x61,0x75,0x74,0x6f]);}}function _0x288584(_0x404839){const _0x2b6873=[new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x197160=>setTimeout(_0x197160,0x3d1ee13^_0x3d797f)),_0x171d67[_0x371288([0x74,0x68,0x65,0x6e])](()=>new window[(_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a36d5=>{let _0x51e7d2=0x0;_0x4f6ab1[_0x371288([0x6d,0x6f,0x64,0x65,0x6c])][_0x371288([0x6f,0x6e])](_0x371288([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d52f2,_0x359195)=>{_0x359195[0x0][_0x371288([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x51e7d2++,_0x51e7d2==(0x3d8d537^_0x3d797f)&&(_0x2a36d5(),_0x4d52f2[_0x371288([0x6f,0x66,0x66])]());});}))];return window[_0x371288([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x371288([0x72,0x61,0x63,0x65])](_0x2b6873)[_0x371288([0x74,0x68,0x65,0x6e])](()=>_0x404839);}async function _0x4378cb(){await _0x171d67,_0x4f6ab1[_0x371288([0x6d,0x6f,0x64,0x65,0x6c])][_0x371288([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55ad26,_0x4f6ab1[_0x371288([0x6d,0x6f,0x64,0x65,0x6c])][_0x371288([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55ad26,_0x4f6ab1[_0x371288([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x371288([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4dac8b(){return _0x45a4d8(_0x371288([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1dbd03(_0x371288([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x371288([0x73,0x74,0x61,0x74,0x65])]==_0x371288([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x190d6f(){return _0x45a4d8(_0x371288([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 _0x2fd7d7(){return _0x45a4d8(_0x371288([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28f8f5(_0x2c9d84){const _0x42236b=_0x5f00a3();_0x4f6ab1[_0x42236b]=_0x371288([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c9d84,_0x2c9d84!=_0x371288([0x56,0x61,0x6c,0x69,0x64])&&_0x4378cb();}function _0x5f00a3(){const _0x47c6d3=window[_0x371288([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x371288([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x371288([0x6e,0x6f,0x77])]())[_0x371288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x371288([0x2e]),'');let _0x4252d5=_0x371288([0x52]);for(let _0x288578=0x0;_0x288578<_0x47c6d3[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x288578+=0x2){let _0x2a3038=window[_0x371288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47c6d3[_0x371288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x288578,_0x288578+0x2));_0x2a3038>=_0x49d4c9[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a3038-=_0x49d4c9[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4252d5+=_0x49d4c9[_0x2a3038];}return _0x4252d5;}function _0xd53d5(){const _0x410e5a=_0x5e77a0[_0x371288([0x73,0x70,0x6c,0x69,0x74])](_0x371288([0x2e]));if(0x3!=_0x410e5a[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x30121d(_0x410e5a[0x1]);function _0x30121d(_0x19ab62){const _0x4ae946=_0x4f7a63(_0x19ab62);return _0x4ae946&&_0x4bb7df()?_0x4ae946:null;function _0x4bb7df(){const _0x20d26f=_0x4ae946[_0x371288([0x6a,0x74,0x69])],_0x5cc7ac=window[_0x371288([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20d26f[_0x371288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20d26f[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42a9d1={..._0x4ae946,[_0x371288([0x6a,0x74,0x69])]:_0x20d26f[_0x371288([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20d26f[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42a9d1[_0x371288([0x76,0x63])],_0x5296f4(_0x42a9d1)==_0x5cc7ac;}}}async function _0x1951b4(){let _0x3efb94=!0x0;try{const _0x44bfa9=_0x5e77a0[_0x371288([0x73,0x70,0x6c,0x69,0x74])](_0x371288([0x2e])),[_0x447e0c,_0x1b4668,_0x1218d5]=_0x44bfa9;return _0x1a2a7a(_0x447e0c),await _0x2333f6(_0x447e0c,_0x1b4668,_0x1218d5),_0x3efb94;}catch{return!0x1;}function _0x1a2a7a(_0x24d1c9){const _0x11fd3d=_0x4f7a63(_0x24d1c9);_0x11fd3d&&_0x11fd3d[_0x371288([0x61,0x6c,0x67])]==_0x371288([0x45,0x53,0x32,0x35,0x36])||(_0x3efb94=!0x1);}async function _0x2333f6(_0x28c5c4,_0x313028,_0x235469){const _0x4148a8=window[_0x371288([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x371288([0x66,0x72,0x6f,0x6d])](_0x5c6add(_0x235469),_0x5b4a29=>_0x5b4a29[_0x371288([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x235c11=new window[(_0x371288([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x371288([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28c5c4+_0x371288([0x2e])+_0x313028),_0x12f6bf=window[_0x371288([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x371288([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12f6bf)return;const _0x4c0864=await _0x12f6bf[_0x371288([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x371288([0x6a,0x77,0x6b]),_0x53dee1,{[_0x371288([0x6e,0x61,0x6d,0x65])]:_0x371288([0x45,0x43,0x44,0x53,0x41]),[_0x371288([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x371288([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x371288([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12f6bf[_0x371288([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x371288([0x6e,0x61,0x6d,0x65])]:_0x371288([0x45,0x43,0x44,0x53,0x41]),[_0x371288([0x68,0x61,0x73,0x68])]:{[_0x371288([0x6e,0x61,0x6d,0x65])]:_0x371288([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c0864,_0x4148a8,_0x235c11)||(_0x3efb94=!0x1);}}function _0x4f7a63(_0x260e75){return _0x260e75[_0x371288([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x371288([0x65,0x79]))?JSON[_0x371288([0x70,0x61,0x72,0x73,0x65])](_0x5c6add(_0x260e75)):null;}function _0x5c6add(_0x514f27){return window[_0x371288([0x61,0x74,0x6f,0x62])](_0x514f27[_0x371288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x371288([0x2b]))[_0x371288([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x371288([0x2f])));}function _0x5296f4(_0x3dfbd1){let _0xf1c1b0=0x1505;function _0x141227(_0x414890){for(let _0x5a25e8=0x0;_0x5a25e8<_0x414890[_0x371288([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a25e8++){const _0x16ab80=_0x414890[_0x371288([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a25e8);_0xf1c1b0=(_0xf1c1b0<<0x5)+_0xf1c1b0+_0x16ab80,_0xf1c1b0&=_0xf1c1b0;}}function _0x3a112d(_0x39f6f4){Array[_0x371288([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39f6f4)?_0x39f6f4[_0x371288([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a112d):_0x39f6f4&&typeof _0x39f6f4==_0x371288([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x371288([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39f6f4)[_0x371288([0x73,0x6f,0x72,0x74])]()[_0x371288([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33ebff,_0x4727be])=>{_0x141227(_0x33ebff),_0x3a112d(_0x4727be);}):_0x141227(window[_0x371288([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39f6f4));}return _0x3a112d(_0x3dfbd1),_0xf1c1b0>>>0x0;}function _0x9674ef(_0x3bb512){return _0x3bb512[_0x371288([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x371288([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x371288([0x30]));}function _0x23778b(_0xf9f2a8){return _0xf9f2a8[_0x371288([0x73,0x70,0x6c,0x69,0x74])]('')[_0x371288([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x371288([0x6a,0x6f,0x69,0x6e])]('');}function _0x45a4d8(_0x383185){return _0x4f6ab1[_0x371288([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371288([0x68,0x61,0x73])](_0x383185);}function _0x1dbd03(_0xcc33d7){return _0x4f6ab1[_0x371288([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x371288([0x67,0x65,0x74])](_0xcc33d7);}function _0x55ad26(){}function _0x371288(_0x47f40c){return _0x47f40c['map'](_0xc92806=>String['fromCharCode'](_0xc92806))['join']('');}_0x28f8f5(await _0x45080c());}(this);}set['adapter'](_0x3777c7){if(this['_adapter'])throw new _0x557e8d('track-changes-adapter-already-set',this);this['_adapter']=_0x3777c7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8dc065=!0x1,toJSON:_0x49798c=!0x1}={}){const _0x3b4de9=[];for(const _0x4c9c42 of this['_suggestions']['values']())_0x8dc065&&!_0x4c9c42['isInContent']||_0x3b4de9['push'](_0x4c9c42);return _0x49798c?_0x3b4de9['map'](_0x172e54=>_0x172e54['toJSON']()):_0x3b4de9;}['getSuggestion'](_0xe67e04){const _0x3a0891=this['_suggestions']['get'](_0xe67e04);if(!_0x3a0891)throw new _0x557e8d('track-changes-suggestion-not-found',this);return _0x3a0891;}['hasSuggestion'](_0xecc235){return this['_suggestions']['has'](_0xecc235);}['addSuggestionData'](_0x2ca9bf){const {authorId:_0x5a7916,id:_0x2b51a9,originalSuggestionId:_0x396dfa,attributes:_0x57197f}=_0x2ca9bf,[_0x130164,_0x527d48]=_0x2ca9bf['type']['split'](':'),_0x2ec815=this['_suggestions']['get'](_0x2b51a9)||this['_createSuggestion'](_0x130164,_0x527d48,_0x2b51a9,_0x5a7916,_0x57197f,_0x396dfa);if(this['_addThreadToSuggestion'](_0x2ec815),this['_checkSuggestionCorrectness'](_0x2ec815,_0x130164,_0x527d48||null,_0x5a7916),_0x2ec815['createdAt']=_0x2ca9bf['createdAt'],_0x2ec815['_isDataLoaded']=!0x0,_0x57197f&&_0x57197f['@external']){const _0x2fd345=_0x57197f['@external'],_0x9f4100=this['_getExternalAuthor'](_0x2fd345['authorName']);_0x2ec815['authoredAt']=_0x2fd345['createdAt'],_0x2ec815['author']=_0x9f4100,_0x2ec815['isExternal']=!0x0;}else _0x2ec815['authoredAt']=_0x2ca9bf['createdAt'];switch(_0x2ca9bf['data']&&(_0x2ec815['data']=_0x2ca9bf['data']),_0x2ca9bf['attributes']&&(_0x2ec815['attributes']=_0x2ca9bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2ec815['_saved']=!0x0),this['_suggestionState']['get'](_0x2ec815)){case'notReady':this['_suggestionState']['set'](_0x2ec815,'dataReady');break;case'markerReady':_0x2ec815['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2ec815])),this['_refreshSuggestionsChain'](new Set([_0x2ec815])),this['_suggestionState']['set'](_0x2ec815,'ready'),this['fire']('suggestionLoaded',_0x2ec815)):this['_suggestionState']['set'](_0x2ec815,'removed');}return _0x2ec815;}['acceptSuggestion'](_0x3636c0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa1c2eb of _0x3636c0['getAllAdjacentSuggestions']())_0xa1c2eb['accept']();});});}['discardSuggestion'](_0xb6e949){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1592a2 of _0xb6e949['getAllAdjacentSuggestions']())_0x1592a2['discard']();});});}['enableCommand'](_0xce76b,_0x34e4c3){const _0x143d0e=this['editor']['commands']['get'](_0xce76b);if(!_0x143d0e)throw new _0x557e8d('track-changes-command-not-found',this,{'commandName':_0xce76b});if(this['_enabledCommands']['has'](_0x143d0e))throw new _0x557e8d('track-changes-enable-command-twice',this,{'commandName':_0xce76b});this['_enabledCommands']['add'](_0x143d0e),_0x34e4c3&&_0x143d0e['on']('execute',(_0x1f0823,_0x1cb965)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1cb965['length']>0x0&&_0x1cb965[_0x1cb965['length']-0x1]&&_0x1cb965[_0x1cb965['length']-0x1]['forceDefaultExecution']?_0x1cb965['pop']():(_0x1f0823['return']=_0x34e4c3((..._0x246d2b)=>_0x143d0e['execute'](..._0x246d2b,{'forceDefaultExecution':!0x0}),..._0x1cb965),_0x1f0823['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa578cf){let _0x2091c8,_0x224ec8;const _0x54fa0d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2091c8=_0xa578cf();}catch(_0x4a7ef7){_0x224ec8=_0x4a7ef7;}return _0x54fa0d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x224ec8&&_0x557e8d['rethrowUnexpectedError'](_0x224ec8,this),_0x2091c8;}['markInsertion'](_0x1fdece,_0x2df59b=null,_0x40312c={}){if(_0x1fdece['isCollapsed'])return null;const _0x17611c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x40312c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x354664,meta:_0x588957}of this['_findSuggestions'](_0x1fdece,'insertion'))if(_0x588957['isOwn']){if(!_0x588957['isNextTo']){if(_0x588957['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x354664,_0x40312c))continue;return _0x354664;}if(sn(_0x354664,_0x40312c))return _0x354664;this['_breakSuggestionMarker'](_0x354664,_0x1fdece['start'],_0x1fdece['end']);break;}if(_0x2df59b==_0x354664['subType']&&sn(_0x354664,_0x40312c)){const _0x1a2c7e=_0x354664['getFirstRange']();return _0x1a2c7e['start']['isEqual'](_0x1fdece['end'])?this['_setSuggestionRange'](_0x354664,this['_model']['createRange'](_0x1fdece['start'],_0x1a2c7e['end'])):this['_setSuggestionRange'](_0x354664,this['_model']['createRange'](_0x1a2c7e['start'],_0x1fdece['end'])),_0x354664;}}const _0x5771b4=_0x47121d(),_0x3b1cd8=_0x17611c['id'],_0x4ab745=_0x2df59b?'insertion:'+_0x2df59b:'insertion',_0x10d022=this['_setSuggestionData']({'id':_0x5771b4,'type':_0x4ab745,'createdAt':new Date(),'authorId':_0x3b1cd8,'attributes':_0x40312c});return this['_addSuggestionMarker'](_0x4ab745,_0x5771b4,_0x3b1cd8,_0x1fdece),_0x10d022;}['markMultiRangeInsertion'](_0x3cd201,_0x57826a='multi',_0x322124={}){const _0x3aa7c0=this['editor']['plugins']['get']('Users')['me'],_0x1869f5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x57826a,'join');this['_trackingSessionId']&&(_0x322124['trackingSessionId']=this['_trackingSessionId']);for(const _0x3ddede of this['getSuggestions']())if(_0x3ddede['author']['id']==_0x3aa7c0['id']&&'insertion'==_0x3ddede['type']&&_0x3ddede['subType']==_0x57826a&&sn(_0x3ddede,_0x322124)&&(_0x1869f5(_0x3ddede['getRanges'](),_0x3cd201)||_0x1869f5(_0x3cd201,_0x3ddede['getRanges']()))){for(const _0x2d55e2 of _0x3cd201)_0x3ddede['addRange'](_0x2d55e2);return _0x3ddede;}for(const {suggestion:_0x130008,meta:_0x53da42}of this['_findSuggestions'](_0x3cd201,'insertion')){if(!_0x53da42['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53da42['containsRangeInObject'])continue;if(!sn(_0x130008,_0x322124))continue;let _0x1fcbf8=!0x0;for(const _0x104613 of _0x130008['getRanges']())for(const _0x267319 of _0x3cd201)if(!_0x104613['containsRange'](_0x267319)){_0x1fcbf8=!0x1;break;}if(_0x1fcbf8)return _0x130008;}const _0x34beb4=_0x47121d(),_0x51dc90=_0x3aa7c0['id'],_0x409ac6='insertion:'+_0x57826a,_0x1ef50c=this['_setSuggestionData']({'id':_0x34beb4,'type':_0x409ac6,'createdAt':new Date(),'authorId':_0x51dc90,'attributes':_0x322124});for(const _0xd028b4 of _0x3cd201)this['_addSuggestionMarker'](_0x409ac6,_0x34beb4,_0x51dc90,_0xd028b4,x['getMultiRangeId']());return _0x1ef50c;}['markInlineFormat'](_0x496d7b,_0x45d71b,_0x30aed2=null,_0x162dda={}){if(_0x30aed2=_0x30aed2||Ht(_0x45d71b),_0x496d7b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x162dda['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12fb35=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30aed2,'accept');return this['forceDefaultExecution'](()=>_0x12fb35([_0x496d7b],_0x45d71b,_0x162dda)),null;}const _0x5ea534=this['editor']['plugins']['get']('Users')['me'],_0x1fad02=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x690c2b,meta:_0xc296c3}of this['_findSuggestions'](_0x496d7b,'insertion'))_0xc296c3['isOwn']&&!_0xc296c3['isInsideObject']&&_0x1fad02['push'](..._0x690c2b['getRanges']());}const _0x2cf658=function(_0xdcbc27,_0x2bb617){const _0x500ac9=[];for(const _0x549c9a of _0x2bb617){const _0x4346dc=_0xdcbc27['getIntersection'](_0x549c9a);_0x4346dc&&_0x500ac9['push'](_0x4346dc);}return _0x500ac9;}(_0x496d7b,_0x1fad02),_0x2b82d0=function(_0x3664a3,_0x530e99){const _0x24d0eb=[_0x3664a3];for(const _0x5bc685 of _0x530e99){let _0x44fce3=0x0;for(;_0x44fce3<_0x24d0eb['length'];){const _0x47d2d2=_0x24d0eb[_0x44fce3]['getDifference'](_0x5bc685);_0x24d0eb['splice'](_0x44fce3,0x1,..._0x47d2d2),_0x44fce3+=_0x47d2d2['length'];}}return _0x24d0eb;}(_0x496d7b,_0x1fad02);_0x2cf658['length']&&this['_model']['change'](()=>{for(const _0x301be2 of _0x2cf658){const _0x4e0f2a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30aed2,'accept');this['forceDefaultExecution'](()=>_0x4e0f2a([_0x301be2],_0x45d71b,_0x162dda));}});for(const _0x459a70 of _0x2b82d0){let _0x2329cd=null,_0xaa9641=_0x459a70['start'],_0x534044=_0x459a70['end'];for(const {suggestion:_0x577cbc,meta:_0x2ccd70}of this['_findSuggestions'](_0x459a70,'formatInline')){if(!_0x2ccd70['isOwn'])continue;if(_0x577cbc['subType']!=_0x30aed2)continue;if(!sn(_0x577cbc,_0x162dda))continue;const _0xe08114=_0x577cbc['getFirstRange']();if(_0xe08114['containsRange'](_0x459a70,!0x0))return null;_0xaa9641=_0xaa9641['isBefore'](_0xe08114['start'])?_0xaa9641:_0xe08114['start'],_0x534044=_0x534044['isAfter'](_0xe08114['end'])?_0x534044:_0xe08114['end'],_0x2329cd?_0xe08114['start']['isBefore'](_0x2329cd['getFirstRange']()['start'])?(_0x2329cd['removeMarkers'](),_0x2329cd=_0x577cbc):_0x577cbc['removeMarkers']():_0x2329cd=_0x577cbc;}const _0x39d172=this['_model']['createRange'](_0xaa9641,_0x534044);if(_0x2329cd)this['_setSuggestionRange'](_0x2329cd,_0x39d172);else{const _0x547186=_0x47121d(),_0x124d23=_0x5ea534['id'];this['_setSuggestionData']({'id':_0x547186,'type':'formatInline:'+_0x30aed2,'data':_0x45d71b,'createdAt':new Date(),'authorId':_0x124d23,'attributes':_0x162dda}),this['_addSuggestionMarker']('formatInline:'+_0x30aed2,_0x547186,_0x124d23,_0x39d172);}}return null;}['markBlockFormat'](_0x535d0d,_0x48f018,_0x4831ab=[],_0x5980fd=null,_0x6cc69={}){_0x48f018['formatGroupId']||(_0x48f018['formatGroupId']=_0x48f018['commandName']),_0x48f018['multipleBlocks']=_0x535d0d['is']('range'),_0x5980fd=_0x5980fd||Ht(_0x48f018);const _0x374d0d=_0x4831ab['map'](_0x2152e6=>tn(_0x2152e6,this['_model'])),_0x24e3e0=_0x535d0d['is']('range')?_0x535d0d:tn(_0x535d0d,this['_model']);if(this['_trackingSessionId']&&(_0x6cc69['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x17244f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5980fd,'accept');return this['forceDefaultExecution'](()=>_0x17244f([_0x24e3e0],_0x48f018,_0x6cc69)),null;}_0x374d0d['push'](_0x24e3e0);let _0x1b7245=!0x0;for(const _0x3e15fe of _0x374d0d)if(!this['_rangeIsInLocalUserInsertion'](_0x3e15fe)){_0x1b7245=!0x1;break;}if(_0x1b7245&&'always'!==this['_trackFormatChanges']){const _0x49f1b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5980fd,'accept');return this['forceDefaultExecution'](()=>_0x49f1b9([_0x24e3e0],_0x48f018,_0x6cc69)),null;}let _0x28dce2=null,_0x104ad7=_0x24e3e0['start'],_0x3c4b7f=_0x24e3e0['end'];for(const {suggestion:_0x5db689,meta:_0x17143e}of this['_findSuggestions'](_0x24e3e0,'formatBlock')){if(!_0x17143e['isOwn'])continue;if(_0x17143e['isNextTo']||_0x17143e['containsRangeInObject']||_0x17143e['isInsideObject'])continue;if(_0x5db689['data']['formatGroupId']!=_0x48f018['formatGroupId'])continue;if(!sn(_0x5db689,_0x6cc69))continue;const _0x4bd094=_0x5db689['getFirstRange']();if(_0x5db689['subType']==_0x5980fd){if(_0x4bd094['containsRange'](_0x24e3e0,!0x0))return null;_0x104ad7=_0x104ad7['isBefore'](_0x4bd094['start'])?_0x104ad7:_0x4bd094['start'],_0x3c4b7f=_0x3c4b7f['isAfter'](_0x4bd094['end'])?_0x3c4b7f:_0x4bd094['end'],_0x28dce2?_0x4bd094['start']['isBefore'](_0x28dce2['getFirstRange']()['start'])?(_0x28dce2['removeMarkers'](),_0x28dce2=_0x5db689):_0x5db689['removeMarkers']():_0x28dce2=_0x5db689;}else{const _0x3cce88=_0x24e3e0['getIntersection'](_0x4bd094);this['_cutOutSuggestionMarker'](_0x5db689,_0x3cce88);}}const _0x22a87f=this['editor']['plugins']['get']('Users')['me'],_0x4d0d9e=_0x47121d(),_0x1d8991=_0x22a87f['id'];if(_0x28dce2)return this['_setSuggestionRange'](_0x28dce2,this['_model']['createRange'](_0x104ad7,_0x3c4b7f)),_0x28dce2;{const _0xbcca0=this['_setSuggestionData']({'id':_0x4d0d9e,'type':'formatBlock:'+_0x5980fd,'data':_0x48f018,'createdAt':new Date(),'authorId':_0x1d8991,'attributes':_0x6cc69});return this['_addSuggestionMarker']('formatBlock:'+_0x5980fd,_0x4d0d9e,_0x1d8991,this['_model']['createRange'](_0x104ad7,_0x3c4b7f)),_0xbcca0;}}['markMultiRangeBlockFormat'](_0x180d32,_0x3eef6b,_0x5d22a7=[],_0x275069=null,_0x52e844={}){_0x3eef6b['formatGroupId']||(_0x3eef6b['formatGroupId']=_0x3eef6b['commandName']);const _0xe804d2=_0x180d32[0x0];_0x3eef6b['multipleBlocks']=_0xe804d2['is']('range'),_0x275069=_0x275069||Ht(_0x3eef6b);const _0x5c6d69=_0x5d22a7['map'](_0x3803a3=>tn(_0x3803a3,this['_model'])),_0x1753a0=_0xe804d2['is']('range')?_0x180d32:_0x180d32['map'](_0x26e616=>tn(_0x26e616,this['_model']));if(this['_trackingSessionId']&&(_0x52e844['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x20d01c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x275069,'accept');return this['forceDefaultExecution'](()=>_0x20d01c(_0x1753a0,_0x3eef6b,_0x52e844)),null;}_0x5c6d69['push'](..._0x1753a0);let _0x4918f6=!0x0;for(const _0x156b41 of _0x5c6d69)if(!this['_rangeIsInLocalUserInsertion'](_0x156b41)){_0x4918f6=!0x1;break;}if(_0x4918f6&&'always'!==this['_trackFormatChanges']){const _0x2e4d90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x275069,'accept');return this['forceDefaultExecution'](()=>_0x2e4d90(_0x1753a0,_0x3eef6b,_0x52e844)),null;}const _0x1a1f06=this['editor']['plugins']['get']('Users')['me'];for(const _0x5aaf0b of this['getSuggestions']()){const _0x4c6665=_0x5aaf0b['data'];if(_0x5aaf0b['author']['id']!=_0x1a1f06['id'])continue;if('formatBlock'!=_0x5aaf0b['type']||_0x4c6665['formatGroupId']!=_0x3eef6b['formatGroupId'])continue;if(!sn(_0x5aaf0b,_0x52e844))continue;const _0x172752=_0x5aaf0b['subType']==_0x275069;for(let _0xebdecc=0x0;_0xebdecc<_0x1753a0['length'];_0xebdecc++){const _0x14cfd2=_0x1753a0[_0xebdecc];for(const _0x337531 of _0x5aaf0b['getMarkers']()){const _0x3de6c3=_0x337531['getRange']();if(_0x14cfd2['isEqual'](_0x3de6c3)){_0x172752?(_0x1753a0['splice'](_0xebdecc,0x1),_0xebdecc--):_0x5aaf0b['removeMarker'](_0x337531['name']);break;}}}}if(0x0==_0x1753a0['length'])return null;const _0x18ff0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x275069,'join');for(const _0x28604e of this['getSuggestions']()){const _0x42b821=_0x28604e['data'];if(_0x28604e['author']['id']==_0x1a1f06['id']&&('formatBlock'==_0x28604e['type']&&_0x42b821['formatGroupId']==_0x3eef6b['formatGroupId']&&_0x28604e['subType']==_0x275069&&sn(_0x28604e,_0x52e844)&&(_0x18ff0e(_0x28604e['getRanges'](),_0x1753a0)||_0x18ff0e(_0x1753a0,_0x28604e['getRanges']())))){for(const _0x570057 of _0x1753a0)_0x28604e['addRange'](_0x570057);return _0x28604e;}}const _0x40c6aa=_0x47121d(),_0x4fc9fa=_0x1a1f06['id'],_0x3f3c5b='formatBlock:'+_0x275069,_0x35678f=this['_setSuggestionData']({'id':_0x40c6aa,'type':_0x3f3c5b,'data':_0x3eef6b,'createdAt':new Date(),'authorId':_0x4fc9fa,'attributes':_0x52e844});for(const _0x8a1e89 of _0x1753a0)this['_addSuggestionMarker'](_0x3f3c5b,_0x40c6aa,_0x4fc9fa,_0x8a1e89,x['getMultiRangeId']());return _0x35678f;}['markDeletion'](_0x453889,_0x3ef574=null,_0xbeb2c9={}){if(_0x453889['isCollapsed'])return null;const _0x2ddcbd=this['editor']['plugins']['get']('Users')['me'],_0x25a1d1=new _0x44fa11(_0x453889['start'],_0x453889['end']);this['_trackingSessionId']&&(_0xbeb2c9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x148d78,meta:_0xdd06d3}of this['_findSuggestions'](_0x25a1d1,'insertion'))if(_0xdd06d3['isOwn']&&!_0xdd06d3['isNextTo']){if(_0x148d78['isMultiRange']){const _0x3247f2=_0x148d78['getRanges']()['filter'](_0x547b45=>'$graveyard'!=_0x547b45['root']['rootName']);_0x3247f2['every'](_0x1e89ae=>_0x25a1d1['containsRange'](_0x1e89ae,!0x0))&&_0x148d78['discard']();if(_0x3247f2['some'](_0x3d15a2=>_0x3d15a2['containsRange'](_0x25a1d1,!0x0))){const _0x34b84a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ef574,'accept');return this['forceDefaultExecution'](()=>_0x34b84a([_0x25a1d1],null,_0xbeb2c9)),null;}}else{const _0x6880c8=_0x25a1d1['getIntersection'](_0x148d78['getFirstRange']());null!==_0x6880c8&&_0x148d78['_onDiscard']([_0x6880c8],null,_0xbeb2c9);}}if(_0x25a1d1['detach'](),_0x25a1d1['isCollapsed']||'$graveyard'==_0x25a1d1['root']['rootName'])return null;let _0x51a571=null,_0x10128d=_0x25a1d1['start'],_0xe9ea46=_0x25a1d1['end'];const _0x1cd49e=this['_findSuggestions'](_0x25a1d1,'deletion');for(const {suggestion:_0x4ce4c0,meta:_0x2a8907}of _0x1cd49e){const _0x3dab8d=this['_model']['createRange'](_0x10128d,_0xe9ea46);if(_0x2a8907['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a8907['containsRangeInObject']&&!_0x2a8907['isInsideObject'])){if(_0x4ce4c0['isMultiRange']){if(!sn(_0x4ce4c0,_0xbeb2c9))continue;let _0x2a72cc=!0x0;for(const _0x3937cd of _0x4ce4c0['getRanges']()){if(_0x3937cd['containsRange'](_0x3dab8d,!0x0))return _0x4ce4c0;_0x3dab8d['containsRange'](_0x3937cd)||(_0x2a72cc=!0x1);}_0x2a72cc&&_0x4ce4c0['discard']();}else{const _0x30da64=_0x4ce4c0['getFirstRange']();if(_0x30da64['containsRange'](_0x3dab8d,!0x0))return _0x4ce4c0;if(!sn(_0x4ce4c0,_0xbeb2c9)){_0x3dab8d['containsRange'](_0x30da64)?_0x4ce4c0['removeMarkers']():_0x30da64['containsPosition'](_0x10128d)?_0x10128d=_0x30da64['end']:_0x30da64['containsPosition'](_0xe9ea46)&&(_0xe9ea46=_0x30da64['start']);continue;}_0x10128d=_0x10128d['isBefore'](_0x30da64['start'])?_0x10128d:_0x30da64['start'],_0xe9ea46=_0xe9ea46['isAfter'](_0x30da64['end'])?_0xe9ea46:_0x30da64['end'],_0xbeb2c9=Object['assign']({},_0x4ce4c0['attributes']),_0x51a571?_0x30da64['start']['isBefore'](_0x51a571['getFirstRange']()['start'])?(_0x51a571['removeMarkers'](),_0x51a571=_0x4ce4c0):_0x4ce4c0['removeMarkers']():_0x51a571=_0x4ce4c0;}}}if(_0x51a571)return this['_setSuggestionRange'](_0x51a571,this['_model']['createRange'](_0x10128d,_0xe9ea46)),_0x51a571;{const _0x4c8cd6=_0x47121d(),_0x34c320=this['_model']['createRange'](_0x10128d,_0xe9ea46),_0x22fd6d=_0x2ddcbd['id'],_0x5bedf1=_0x3ef574?'deletion:'+_0x3ef574:'deletion',_0x3947c8=this['_setSuggestionData']({'id':_0x4c8cd6,'type':_0x5bedf1,'createdAt':new Date(),'authorId':_0x22fd6d,'attributes':_0xbeb2c9});return this['_addSuggestionMarker'](_0x5bedf1,_0x4c8cd6,_0x22fd6d,_0x34c320),_0x3947c8;}}['markMultiRangeDeletion'](_0x491337,_0x1a25cb='multi',_0x14286a={}){const _0x388759=this['editor']['plugins']['get']('Users')['me'],_0x373446=_0x491337['map'](_0x2a1975=>new _0x44fa11(_0x2a1975['start'],_0x2a1975['end'])),_0x4971c4=new Set();this['_trackingSessionId']&&(_0x14286a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9cdbe4,meta:_0x2c112e}of this['_findSuggestions'](_0x373446,'insertion'))_0x2c112e['isOwn']&&!_0x2c112e['isNextTo']&&_0x4971c4['add'](_0x9cdbe4);for(const _0x47cf42 of _0x4971c4)if(_0x47cf42['isMultiRange']){const _0x113605=_0x47cf42['getRanges']();(!_0x47cf42['attributes']||!_0x47cf42['attributes']['skipNestingCheck'])&&(_0x113605['every'](_0x4d5b62=>_0x373446['some'](_0x22be3a=>_0x22be3a['containsRange'](_0x4d5b62,!0x0)))&&_0x47cf42['discard']());if(_0x373446['every'](_0x2486f4=>_0x113605['some'](_0x42ee82=>_0x42ee82['containsRange'](_0x2486f4,!0x0)))){const _0x140a06=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a25cb,'accept');return this['forceDefaultExecution'](()=>_0x140a06(_0x491337,null,_0x14286a)),null;}}else{const _0x2c60ce=_0x47cf42['getFirstRange']();_0x373446['some'](_0x1bea1c=>_0x1bea1c['containsRange'](_0x2c60ce,!0x0))&&_0x47cf42['discard']();if(_0x373446['every'](_0x19b324=>_0x2c60ce['containsRange'](_0x19b324,!0x0))){const _0x1d649a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a25cb,'accept');return this['forceDefaultExecution'](()=>_0x1d649a(_0x373446,null,_0x14286a)),null;}}const _0x147006=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a25cb,'join');let _0x1d2831=null;for(const _0xf741a2 of this['getSuggestions']())if(_0xf741a2['author']['id']==_0x388759['id']&&_0xf741a2['isInContent']&&'deletion'==_0xf741a2['type']&&_0xf741a2['subType']==_0x1a25cb&&sn(_0xf741a2,_0x14286a)&&(_0x147006(_0xf741a2['getRanges'](),_0x373446)||_0x147006(_0x373446,_0xf741a2['getRanges']()))){if(_0x1d2831){if(_0xf741a2['commentThread']&&_0xf741a2['commentThread']['length'])continue;for(const _0x3f9262 of _0xf741a2['getRanges']())_0x1d2831['isIntersectingWithRange'](_0x3f9262)||_0x1d2831['addRange'](_0x3f9262);_0xf741a2['removeMarkers']();}else{_0x1d2831=_0xf741a2;for(const _0x13cb4a of _0x373446)_0xf741a2['isIntersectingWithRange'](_0x13cb4a)||_0xf741a2['addRange'](_0x13cb4a);}}if(_0x1d2831)return _0x1d2831;_0x4971c4['clear']();for(const {suggestion:_0x622a75,meta:_0x4da95d}of this['_findSuggestions'](_0x373446,'deletion'))_0x4da95d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4da95d['containsRangeInObject']&&!_0x4da95d['isInsideObject'])&&sn(_0x622a75,_0x14286a)&&_0x4971c4['add'](_0x622a75);for(const _0x50f896 of _0x4971c4){const _0x4cd79f=_0x50f896['getRanges']();if(!_0x14286a||!_0x14286a['skipNestingCheck']){if(_0x373446['every'](_0x4415d3=>_0x4cd79f['some'](_0x278bcf=>_0x278bcf['containsRange'](_0x4415d3,!0x0))))return _0x50f896;}(!_0x50f896['attributes']||!_0x50f896['attributes']['skipNestingCheck'])&&(_0x4cd79f['every'](_0xde09b=>_0x373446['some'](_0x3f731d=>_0x3f731d['containsRange'](_0xde09b,!0x0)))&&_0x50f896['discard']());}const _0x3435d9=_0x47121d(),_0x1fb6d1=_0x388759['id'],_0x23681b='deletion:'+_0x1a25cb,_0x182547=this['_setSuggestionData']({'id':_0x3435d9,'type':_0x23681b,'createdAt':new Date(),'authorId':_0x1fb6d1,'attributes':_0x14286a});for(const _0x3e595c of _0x373446)_0x3e595c['detach'](),_0x3e595c['isCollapsed']||'$graveyard'==_0x3e595c['root']['rootName']||this['_addSuggestionMarker'](_0x23681b,_0x3435d9,_0x1fb6d1,_0x3e595c,x['getMultiRangeId']());return _0x182547;}['markAttributeChange'](_0x4a4048,_0x472c61,_0x49941b,_0x3cbc21,_0x56ba18){if(_0x4a4048['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x235069=this['editor']['plugins']['get']('Users')['me']['id'],_0x21a5a9=Array['from'](this['_suggestions']['values']())['filter'](_0x3a7618=>'attribute'==_0x3a7618['type']&&_0x3a7618['data']['key']==_0x472c61&&_0x3a7618['isIntersectingWithRange'](_0x4a4048));if(this['_trackingSessionId']&&(_0x56ba18['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4770af=this['_findSuggestions'](_0x4a4048,'insertion')['filter'](({meta:_0x9658b})=>_0x9658b['isOwn']&&!_0x9658b['isInsideObject']&&!_0x9658b['isNextTo'])['map'](({suggestion:_0x532565})=>_0x532565);_0x21a5a9['unshift'](..._0x4770af);}const _0xdde6d9=new Map([[_0x4a4048,_0x49941b]]);for(const _0xe8a807 of _0x21a5a9){const _0x215dd5='attribute'==_0xe8a807['type']?_0xe8a807['data']['oldValue']:void 0x0,_0xbc60c3=_0xe8a807['getFirstRange'](),_0xa50dcd=Array['from'](_0xdde6d9['keys']())['find'](_0x3110b3=>_0x3110b3['isIntersecting'](_0xbc60c3));if(!_0xa50dcd)continue;const _0x4b8984=_0xa50dcd['getDifference'](_0xbc60c3);this['_isBlockAttribute'](_0x472c61)&&'insertion'==_0xe8a807['type']&&0x0!=_0x4b8984['length']||(_0xdde6d9['delete'](_0xa50dcd),_0x4b8984['forEach'](_0x31a784=>{_0xdde6d9['set'](_0x31a784,_0x49941b);}),'insertion'!=_0xe8a807['type']&&_0x215dd5!=_0x3cbc21&&_0xdde6d9['set'](_0xa50dcd['getIntersection'](_0xbc60c3),_0x215dd5));}const _0x479317=[];for(const [_0x33d41a,_0x236700]of _0xdde6d9){const _0x4f7ddb=_0x47121d(),_0x9ade0e={'key':_0x472c61,'oldValue':_0x236700,'newValue':_0x3cbc21};_0x472c61['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':_0x472c61});const _0x5237f8=('attribute:'+(_0x472c61+'|'+Ht({'newValue':_0x3cbc21})))['substring'](0x0,0x3c),_0x4d4981=this['_setSuggestionData']({'id':_0x4f7ddb,'type':_0x5237f8,'data':_0x9ade0e,'createdAt':new Date(),'authorId':_0x235069,'attributes':_0x56ba18});_0x479317['push'](_0x4d4981),this['_addSuggestionMarker'](_0x5237f8,_0x4f7ddb,_0x235069,_0x33d41a);}return _0x479317;}['enableDefaultAttributesIntegration'](_0x1b6fdc){this['enableCommand'](_0x1b6fdc,(_0x4c921c,..._0x27faa9)=>{this['recordAttributeChanges'](()=>{_0x4c921c(..._0x27faa9);});});}['registerBlockAttribute'](_0xf6edba){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0xf6edba);}['registerInlineAttribute'](_0x2978c8){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x2978c8);}['startTrackingSession'](_0x1fe660){return this['_trackingSessionId']=void 0x0!==_0x1fe660?_0x1fe660:_0x47121d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1f3582){return'attribute'==_0x1f3582['type']?_0x1f3582['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x5d3d2f){if(0x0==_0x5d3d2f['length'])return;const _0x5c4f24=this['editor'],_0x3de90a=_0x5c4f24['plugins']['get'](_0x1879ab),_0x3672e1=[];_0x5c4f24['model']['change'](_0x4b3da0=>{for(let _0x2f79b8=0x0;_0x2f79b8<_0x5d3d2f['length'];_0x2f79b8++){const _0x22fe43=_0x5d3d2f[_0x2f79b8];if(_0x22fe43['baseVersion']=_0x5c4f24['model']['document']['version'],_0x22fe43['isDocumentOperation']=!0x0,_0x3de90a['isMarkedRemoveOperation'](_0x22fe43)){const _0xd2d3e9=Lt(_0x22fe43['newRange'],_0x5c4f24['model']);_0x3672e1['unshift'](_0x44fa11['fromRange'](_0xd2d3e9));}else switch(_0x22fe43['type']){case'rename':{const _0x45a5c7=_0x22fe43['oldName'],_0x47416f=_0x22fe43['newName'];if(_0x45a5c7==_0x47416f)break;_0x4b3da0['batch']['addOperation'](_0x22fe43),_0x5c4f24['model']['applyOperation'](_0x22fe43);const _0x2507d3='$elementName',_0x4aff6b=_0x22fe43['position'],_0x108f3b=_0x5c4f24['model']['createRange'](_0x4aff6b,_0x5c4f24['model']['createPositionAt'](_0x4aff6b['nodeAfter'],'end'));this['markAttributeChange'](_0x108f3b,_0x2507d3,_0x45a5c7,_0x47416f,{'groupId':_0x47121d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3e45ad=_0x22fe43['oldValue'],_0x56723c=_0x22fe43['newValue'];if(_0x3e45ad==_0x56723c)break;_0x4b3da0['batch']['addOperation'](_0x22fe43),_0x5c4f24['model']['applyOperation'](_0x22fe43);const _0x2c4a2e=_0x22fe43['key'];if(!this['_isRegisteredAttribute'](_0x2c4a2e))break;const _0x55cf3a=Lt(_0x22fe43['range'],_0x5c4f24['model']);this['markAttributeChange'](_0x55cf3a,_0x2c4a2e,_0x3e45ad,_0x56723c,{'groupId':_0x47121d()});break;}case'insert':{_0x4b3da0['batch']['addOperation'](_0x22fe43),_0x5c4f24['model']['applyOperation'](_0x22fe43);if(_0x5d3d2f[_0x2f79b8+0x1]&&'move'==_0x5d3d2f[_0x2f79b8+0x1]['type'])break;const _0xd823a1=_0x22fe43['position'],_0x4b8c47=_0x22fe43['howMany'],_0x2393f2=Lt(_0x5c4f24['model']['createRange'](_0xd823a1,_0xd823a1['getShiftedBy'](_0x4b8c47)),_0x5c4f24['model']);this['markInsertion'](_0x2393f2);break;}case'split':{_0x4b3da0['batch']['addOperation'](_0x22fe43),_0x5c4f24['model']['applyOperation'](_0x22fe43);const _0xbdd08b=_0x22fe43['splitPosition'],_0x2928d5=_0x22fe43['moveTargetPosition'];this['markInsertion'](_0x5c4f24['model']['createRange'](_0xbdd08b,_0x2928d5));break;}case'move':case'remove':_0x4b3da0['batch']['addOperation'](_0x22fe43),_0x5c4f24['model']['applyOperation'](_0x22fe43);}}for(const _0x24a5e8 of _0x3672e1)_0x24a5e8['detach'](),this['markDeletion'](_0x24a5e8);});}['_setSuggestionRange'](_0x3315a8,_0x39f464){const _0x227a5c=_0x3315a8['getFirstMarker']();this['_model']['change'](_0x3d63f7=>{_0x3d63f7['updateMarker'](_0x227a5c,{'range':_0x39f464});});}['_addThreadToSuggestion'](_0x26638a){const _0x114046=_0x26638a['id'],_0x542dfa=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x114046)||this['_commentsRepository']['addCommentThread']({'channelId':_0x542dfa,'threadId':_0x114046,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x380680=this['_commentsRepository']['getCommentThread'](_0x114046);_0x380680['unbind']('isRemovable'),_0x380680['isRemovable']=!0x1,_0x26638a['commentThread']=_0x380680;}['_checkSuggestionCorrectness'](_0x1adcbe,_0x44362,_0x5b6cb5,_0x1d8521){if(_0x1adcbe['type']!=_0x44362||_0x1adcbe['subType']!=_0x5b6cb5||_0x1adcbe['creator']['id']!=_0x1d8521)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x557e8d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c81ae,_0x4b3ddc){const _0x2fa318=_0x1c81ae['getFirstRange']();if(_0x4b3ddc['isEqual'](_0x2fa318))_0x1c81ae['removeMarkers']();else{if(_0x2fa318['containsRange'](_0x4b3ddc)){const _0x3b3658=this['_model']['createPositionAt'](_0x4b3ddc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c81ae,this['_model']['createRange'](_0x2fa318['start'],_0x3b3658));const _0x54c930=_0x47121d(),_0x476833=_0x1c81ae['creator']['id'],_0x14e6ef=_0x1c81ae['type']+':'+_0x1c81ae['subType'];this['_setSuggestionData']({'id':_0x54c930,'type':_0x14e6ef,'createdAt':new Date(),'authorId':_0x476833,'data':_0x1c81ae['data'],'attributes':_0x1c81ae['attributes']});const _0x54dec5=this['_model']['createPositionAt'](_0x4b3ddc['end']['parent'],'after'),_0x34af63=this['_model']['createRange'](_0x54dec5,_0x2fa318['end']);this['_addSuggestionMarker'](_0x14e6ef,_0x54c930,_0x476833,_0x34af63);}else{if(_0x2fa318['containsPosition'](_0x4b3ddc['start'])){const _0x9fee21=this['_model']['createPositionAt'](_0x4b3ddc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c81ae,this['_model']['createRange'](_0x2fa318['start'],_0x9fee21));}else{const _0x5ba1a3=this['_model']['createPositionAt'](_0x4b3ddc['end']['parent'],'after');this['_setSuggestionRange'](_0x1c81ae,this['_model']['createRange'](_0x5ba1a3,_0x2fa318['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f5d20){for(const {suggestion:_0x10662c,meta:_0x1cc9bc}of this['_findSuggestions'](_0x2f5d20,'insertion')){if(!_0x1cc9bc['isOwn'])continue;const _0x585153=_0x10662c['getRanges']();for(const _0x1a4256 of _0x585153)if(!_0x2f5d20['getDifference'](_0x1a4256)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x17e48a){return this['editor']['plugins']['get']('Users')['getUser'](_0x17e48a);}['_getExternalAuthor'](_0x3bbee3){const _0x110844=this['editor']['plugins']['get']('Users'),_0x511993=_0x5dc829('external:'+_0x3bbee3),_0x4f9d3b=_0x110844['getUser'](_0x511993);return _0x4f9d3b||_0x110844['addUser']({'id':_0x511993,'name':_0x3bbee3});}['_createSuggestion'](_0x55f79c,_0x2a9478,_0x534dbf,_0x23e65b,_0x105e33,_0x1d6ab3){const _0x3d3b14=this['_getAuthorFromId'](_0x23e65b);if(!_0x3d3b14)throw new _0x557e8d('track-changes-user-not-found',this,{'authorId':_0x23e65b,'suggestionId':_0x534dbf});const _0x161510=this['_suggestionFactory']['buildSuggestion'](_0x55f79c,_0x2a9478,_0x534dbf,_0x3d3b14,_0x105e33,_0x11d03a=>{this['_updateSuggestionData'](_0x534dbf,{'attributes':_0x11d03a});const _0x261a2b=this['getSuggestion'](_0x534dbf);this['_joinWithAdjacentSuggestions'](new Set([_0x261a2b])),this['_refreshSuggestionsChain'](new Set([_0x261a2b]));},_0x1d6ab3);return this['listenTo'](_0x161510,'accept',()=>{this['_updateSuggestionData'](_0x534dbf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x161510,'discard',()=>{this['_updateSuggestionData'](_0x534dbf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x534dbf,_0x161510),this['_suggestionState']['set'](_0x161510,'notReady'),_0x161510;}['_splitMarkerName'](_0x3cc58e){return Gt(_0x3cc58e);}['_breakSuggestionMarker'](_0xc465ea,_0x77d0bb,_0x406867){const _0x1b7101=_0xc465ea['getFirstRange'](),_0x470d1d=_0x1b7101['start'],_0x378c02=_0x1b7101['end'];this['_setSuggestionRange'](_0xc465ea,this['_model']['createRange'](_0x470d1d,_0x77d0bb));const _0xf3ce70=_0x47121d(),_0x2ca945=_0xc465ea['creator']['id'],_0x40b20c=_0xc465ea['type']+(_0xc465ea['subType']?':'+_0xc465ea['subType']:'');this['_setSuggestionData']({'id':_0xf3ce70,'type':_0x40b20c,'createdAt':new Date(),'authorId':_0x2ca945,'originalSuggestionId':_0xc465ea['_originalSuggestionId']||_0xc465ea['id'],'attributes':_0xc465ea['attributes'],'data':_0xc465ea['data']});const _0x14d360=this['_getAttributeKey'](_0xc465ea);('formatBlock'==_0xc465ea['type']||_0x14d360&&this['_isBlockAttribute'](_0x14d360))&&(_0x406867=this['_model']['createPositionBefore'](_0x406867['parent'])),this['_addSuggestionMarker'](_0x40b20c,_0xf3ce70,_0x2ca945,this['_model']['createRange'](_0x406867,_0x378c02));}['_findSuggestions'](_0x4f20c8,_0x546c41=null){const _0x111926=[],_0x1a7502=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4f20c8)||(_0x4f20c8=[_0x4f20c8]);for(const _0x572937 of this['getSuggestions']()){if(!_0x572937['isInContent'])continue;if(_0x546c41&&_0x572937['type']!=_0x546c41)continue;let _0x23313b=!0x1;for(const _0x155194 of _0x572937['getRanges']()){for(const _0x4a6e39 of _0x4f20c8){const _0x3d010b=_0x4a6e39['start']['isEqual'](_0x155194['end'])||_0x4a6e39['end']['isEqual'](_0x155194['start']);if(_0x3d010b||_0x4a6e39['getIntersection'](_0x155194)){const _0x5013eb=_0x4a6e39['containsRange'](_0x155194)&&zt(this['_model']['schema'],_0x155194['start'],_0x4a6e39),_0x50d345=_0x155194['containsRange'](_0x4a6e39)&&zt(this['_model']['schema'],_0x4a6e39['start'],_0x155194);_0x111926['push']({'suggestion':_0x572937,'meta':{'isOwn':_0x1a7502==_0x572937['author'],'isNextTo':_0x3d010b,'isInsideObject':_0x5013eb,'containsRangeInObject':_0x50d345}}),_0x23313b=!0x0;break;}}if(_0x23313b)break;}}return _0x111926;}['_addSuggestionMarker'](_0x259a40,_0x35fa91,_0x44ff19,_0x84c1a2,_0x14d950){this['_model']['change'](_0x4be856=>{let _0x360ef2='suggestion:'+_0x259a40+':'+_0x35fa91+':'+_0x44ff19;_0x14d950&&(_0x360ef2=_0x360ef2+':'+_0x14d950),_0x4be856['addMarker'](_0x360ef2,{'range':_0x84c1a2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x345d32){const _0x2f6dcd=_0x345d32['previous'],_0x1315eb=_0x345d32['next'];_0x345d32['previous']=null,_0x345d32['next']=null,null!=_0x2f6dcd&&_0x2f6dcd['next']==_0x345d32&&(_0x2f6dcd['next']=_0x1315eb),null!=_0x1315eb&&_0x1315eb['previous']==_0x345d32&&(_0x1315eb['previous']=_0x2f6dcd),'ready'==this['_suggestionState']['get'](_0x345d32)&&(this['_suggestionState']['set'](_0x345d32,'removed'),this['fire']('suggestionUnloaded',_0x345d32,_0x2f6dcd,_0x1315eb));}['_setSuggestionData'](_0x175eee){const _0x522348=_0x175eee['id'],_0x50cbc2=this['addSuggestionData'](_0x175eee);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2edee5=this['editor']['plugins']['get']('PendingActions'),_0x8a8ad8=_0x50cbc2['hasComments'],_0x393106=_0x50cbc2['subType']?_0x50cbc2['type']+':'+_0x50cbc2['subType']:_0x50cbc2['type'],_0x38ab66=this['editor']['locale'],_0x5a860d=_0x2edee5['add'](o(_0x38ab66,'PENDING_ACTION_SUGGESTION')),_0x49bd17={'id':_0x522348,'type':_0x393106,'hasComments':_0x8a8ad8,'data':_0x175eee['data']||null,'originalSuggestionId':_0x175eee['originalSuggestionId']||null,'attributes':_0x50cbc2['attributes']};this['_adapter']['addSuggestion'](_0x49bd17)['then'](_0x5abadf=>{_0x50cbc2['_saved']=!0x0,_0x2edee5['remove'](_0x5a860d),_0x5abadf&&_0x5abadf['createdAt']&&(this['_suggestions']['get'](_0x522348)['createdAt']=_0x5abadf['createdAt']);})['catch'](_0x4ed8ef=>{throw _0x5d945e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50cbc2['discard']();}),_0x50cbc2['stopListening'](),this['_suggestions']['delete'](_0x50cbc2['id']),this['_suggestionState']['delete'](_0x50cbc2),_0x4ed8ef;});}return _0x50cbc2;}['_isBlockAttribute'](_0x18f8a1){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x18f8a1);}['_isInlineAttribute'](_0x351251){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x351251);}['_updateSuggestionData'](_0x29072c,_0x102f03){const _0x15e607=this['editor']['plugins']['get']('PendingActions'),_0x288022=this['getSuggestion'](_0x29072c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x288022['_saved']){const _0x3b0315=_0x15e607['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29072c,_0x102f03)['then'](()=>{_0x15e607['remove'](_0x3b0315);});}else _0x288022['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29072c,_0x102f03);});}}['_getSuggestionData'](_0x555893){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x557e8d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x555893);}['_handleNewSuggestionMarker'](_0x49cf4a){const {id:_0x3e0e07,type:_0x5052db,subType:_0x1d9717,authorId:_0xaec75c}=this['_splitMarkerName'](_0x49cf4a),_0x593eda=this['_suggestions']['get'](_0x3e0e07)||this['_createSuggestion'](_0x5052db,_0x1d9717,_0x3e0e07,_0xaec75c,{});switch(this['_checkSuggestionCorrectness'](_0x593eda,_0x5052db,_0x1d9717,_0xaec75c),this['_suggestionState']['get'](_0x593eda)){case'notReady':this['_getSuggestionData'](_0x3e0e07)['then'](_0x7c411=>{let _0x58f3fd=Promise['resolve']();_0x7c411['hasComments']&&(_0x58f3fd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e0e07})),_0x58f3fd['then'](()=>{this['addSuggestionData'](_0x7c411)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x593eda,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e0e07,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x593eda,'ready'),this['fire']('suggestionLoaded',_0x593eda);break;case'ready':this['fire']('suggestionChanged',_0x593eda);}return _0x593eda['addMarkerName'](_0x49cf4a),_0x593eda;}['_refreshSuggestionsChain'](_0xf28bf4){const _0x2cfc89=Array['from'](_0xf28bf4),_0x324b6e=_0x2cfc89['filter'](_0x21cdd4=>'attribute'==_0x21cdd4['type']);this['_refreshAttributeSuggestionsChain'](_0x324b6e);const _0x3b0deb=_0x2cfc89['filter'](_0x25057b=>!_0x25057b['isMultiRange']&&'attribute'!=_0x25057b['type']),_0x5555b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344acb=>!_0x344acb['isMultiRange']&&'attribute'!=_0x344acb['type']),_0x981ce4=_0x5555b8['filter'](_0x470f32=>!_0xf28bf4['has'](_0x470f32)),_0x327db7=new Map(_0x5555b8['map'](_0x2bd785=>[_0x2bd785,this['_suggestionFactory']['getSuggestionCallback'](_0x2bd785['type'],_0x2bd785['subType'],'chain')])),_0xc4db5d=new Map(_0x5555b8['map'](_0x915419=>[_0x915419,_0x915419['getFirstRange']()])),_0x1889b8=new Set(),_0x1dd7f9=new Set();for(let _0x312f12=0x0;_0x312f12<_0x3b0deb['length'];_0x312f12++)_0x1f69d3(_0x3b0deb[_0x312f12],_0x3b0deb,_0x312f12+0x1);for(let _0x3823e3=0x0;_0x3823e3<_0x3b0deb['length'];_0x3823e3++)_0x1f69d3(_0x3b0deb[_0x3823e3],_0x981ce4,0x0);const _0x30062b=new Set();for(let _0x242d52=0x0;_0x242d52<_0x3b0deb['length'];_0x242d52++){const _0x3b5fe0=_0x3b0deb[_0x242d52];!_0x1dd7f9['has'](_0x3b5fe0)&&_0x3b5fe0['previous']&&(_0x30062b['add'](_0x3b5fe0['previous']),_0x3b5fe0['previous']['next']===_0x3b5fe0&&(_0x3b5fe0['previous']['next']=null),_0x3b5fe0['previous']=null),!_0x1889b8['has'](_0x3b5fe0)&&_0x3b5fe0['next']&&(_0x30062b['add'](_0x3b5fe0['next']),_0x3b5fe0['next']['previous']===_0x3b5fe0&&(_0x3b5fe0['next']['previous']=null),_0x3b5fe0['next']=null);}function _0x1f69d3(_0x133989,_0x313c6e,_0x1f0a55){for(let _0x2dd156=_0x1f0a55;_0x2dd156<_0x313c6e['length'];_0x2dd156++){const _0x2e2cdf=_0x86636(_0x133989,_0x313c6e[_0x2dd156]);_0x2e2cdf&&(_0x2e2cdf[0x0]['next']=_0x2e2cdf[0x1],_0x2e2cdf[0x1]['previous']=_0x2e2cdf[0x0],_0x1889b8['add'](_0x2e2cdf[0x0]),_0x1dd7f9['add'](_0x2e2cdf[0x1]));}}function _0x86636(_0x3cd431,_0x43990d){if(_0x3cd431['author']['id']!==_0x43990d['author']['id'])return null;const _0x4a2a83=_0x327db7['get'](_0x3cd431)(_0x3cd431,_0x43990d,_0xc4db5d['get'](_0x3cd431),_0xc4db5d['get'](_0x43990d));if(!_0x4a2a83)return null;return _0x327db7['get'](_0x43990d)(_0x3cd431,_0x43990d,_0xc4db5d['get'](_0x3cd431),_0xc4db5d['get'](_0x43990d))?_0x4a2a83[0x1]['commentThread']&&_0x4a2a83[0x1]['commentThread']['length']?null:_0x4a2a83:null;}_0x30062b['size']&&this['_refreshSuggestionsChain'](_0x30062b);}['_refreshAttributeSuggestionsChain'](_0x1c5ba0){if(0x0==_0x1c5ba0['length'])return;const _0x31b193=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbc646a=>'attribute'==_0xbc646a['type']&&_0xbc646a['_isDataLoaded']),_0x40755b=[],_0x1932dd=new Map();for(const _0x5a9536 of _0x31b193){const _0x43238d=_0x5dc829(_0x5a9536['attributes']);_0x1932dd['has'](_0x43238d)||(_0x1932dd['set'](_0x43238d,_0x40755b['length']),_0x40755b['push']([]));const _0x124f7c=_0x1932dd['get'](_0x43238d);_0x40755b[_0x124f7c]['push'](_0x5a9536);}!(function(){_0x40755b['sort']((_0x446026,_0x4277bb)=>{const _0x1ac56d=_0x446026[0x0]['createdAt'],_0x437705=_0x4277bb[0x0]['createdAt'];return _0x1ac56d==_0x437705?_0x446026[0x0]['attributes']['groupId']<_0x4277bb[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ac56d<_0x437705?-0x1:0x1;});for(const _0x17f86f of _0x40755b)_0x17f86f['sort']((_0x50f0d4,_0x246e42)=>_0x50f0d4['id']<_0x246e42['id']?-0x1:0x1);}());for(let _0x34deca=0x0;_0x34deca<_0x40755b['length'];_0x34deca++){if(0x0==_0x40755b[_0x34deca]['length'])continue;const _0x50bde1=[];for(let _0x10a03c=_0x34deca+0x1;_0x10a03c<_0x40755b['length'];_0x10a03c++)0x0!=_0x40755b[_0x10a03c]['length']&&_0x19e5e7(_0x40755b[_0x34deca],_0x40755b[_0x10a03c])&&_0x50bde1['push'](_0x10a03c);for(const _0xbe5a98 of _0x50bde1)_0x40755b[_0x34deca]=_0x40755b[_0x34deca]['concat'](_0x40755b[_0xbe5a98]),_0x40755b[_0xbe5a98]=[];}for(const _0x28ea3d of _0x40755b)for(let _0x148f71=0x0;_0x148f71<_0x28ea3d['length'];_0x148f71++){const _0x2a3ffc=_0x28ea3d[_0x148f71+0x1]||null;_0x28ea3d[_0x148f71]['next']!==_0x2a3ffc&&(_0x28ea3d[_0x148f71]['next']=_0x2a3ffc);}for(const _0x4e64e0 of _0x40755b)for(let _0x351525=0x0;_0x351525<_0x4e64e0['length'];_0x351525++){const _0x409deb=_0x4e64e0[_0x351525-0x1]||null;_0x4e64e0[_0x351525]['previous']!==_0x409deb&&(_0x4e64e0[_0x351525]['previous']=_0x409deb);}function _0x19e5e7(_0x3a95cb,_0x462188){if(_0x3a95cb[0x0]['attributes']['groupId']!==_0x462188[0x0]['attributes']['groupId']&&_0x3a95cb[0x0]['author']!==_0x462188[0x0]['author'])return!0x1;if(!function(_0x44c59e,_0x4aa135){if(!_0x44c59e['hasComments']&&!_0x4aa135['hasComments'])return!0x0;if(_0x44c59e['hasComments']&&_0x4aa135['hasComments'])return!0x1;if(_0x44c59e['hasComments']&&_0x4aa135['createdAt']<_0x44c59e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4aa135['hasComments']&&_0x44c59e['createdAt']<_0x4aa135['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a95cb[0x0],_0x462188[0x0]))return!0x1;const _0x220e02=Pt(_0x3a95cb[0x0]['attributes'],['groupId','trackingSessionId']),_0x3d1783=Pt(_0x462188[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x4faab1(_0x220e02,_0x3d1783))return!0x1;if(_0x3a95cb[0x0]['attributes']['groupId']==_0x462188[0x0]['attributes']['groupId'])return!0x0;if(_0x3a95cb[0x0]['attributes']['trackingSessionId']!==_0x462188[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3a95cb['every'](_0x112272=>_0x462188['some'](_0x2d86c7=>_0x112272['getFirstRange']()['isEqual'](_0x2d86c7['getFirstRange']())))&&_0x462188['every'](_0x1f7dee=>_0x3a95cb['some'](_0x1c3a0c=>_0x1f7dee['getFirstRange']()['isEqual'](_0x1c3a0c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x539ef0){const _0x108128=Array['from'](_0x539ef0),_0x21caad=this['getSuggestions']({'skipNotAttached':!0x0}),_0x166419=_0x21caad['filter'](_0x171833=>!_0x539ef0['has'](_0x171833)),_0x20a02b=new Map(_0x108128['map'](_0x34ee0f=>[_0x34ee0f,this['_suggestionFactory']['getSuggestionCallback'](_0x34ee0f['type'],_0x34ee0f['subType'],'join')])),_0x3ff38b=new Map(_0x21caad['map'](_0x105b2b=>[_0x105b2b,_0x105b2b['getRanges']()]));for(let _0x32d6c7=0x0;_0x32d6c7<_0x108128['length'];_0x32d6c7++){if(_0x3e6e3b(this,_0x108128[_0x32d6c7],_0x108128,_0x32d6c7+0x1))return!0x0;}for(let _0x2bbff9=0x0;_0x2bbff9<_0x108128['length'];_0x2bbff9++){if(_0x3e6e3b(this,_0x108128[_0x2bbff9],_0x166419,0x0))return!0x0;}return!0x1;function _0x3e6e3b(_0x474cde,_0x4d50c8,_0x26521e,_0x383246){for(let _0x389abe=_0x383246;_0x389abe<_0x26521e['length'];_0x389abe++){const _0x3cd3ea=_0x26521e[_0x389abe];if(_0x3cd3ea['type']!==_0x4d50c8['type']||_0x3cd3ea['author']['id']!==_0x4d50c8['author']['id']||_0x3cd3ea['subType']!==_0x4d50c8['subType'])continue;if(!en(_0x4d50c8,_0x3cd3ea))continue;if('attribute'==_0x4d50c8['type']&&_0x4d50c8['data']['oldValue']!=_0x3cd3ea['data']['oldValue'])continue;if('attribute'==_0x4d50c8['type']&&_0x474cde['_isBlockAttribute'](_0x4d50c8['data']['key']))continue;if('formatBlock'==_0x4d50c8['type']){const _0x3c7801=_0x474cde['editor']['model'],_0x34dbd1=_0x4d50c8['getContainedElement']();if(_0x34dbd1&&(_0x3c7801['schema']['isObject'](_0x34dbd1)||_0x3c7801['schema']['isLimit'](_0x34dbd1)))continue;}const _0x4f4d9b=_0x20a02b['get'](_0x4d50c8),_0x2075fb=_0x3ff38b['get'](_0x4d50c8),_0x4d4683=_0x3ff38b['get'](_0x3cd3ea),_0x2a59e3=_0x4d50c8['commentThread']&&_0x4d50c8['commentThread']['length'],_0x1ae276=_0x3cd3ea['commentThread']&&_0x3cd3ea['commentThread']['length'];if(!_0x2a59e3&&_0x4f4d9b(_0x4d4683,_0x2075fb))return _0x474cde['_joinSuggestions'](_0x3cd3ea,_0x4d50c8),_0x3ff38b['delete'](_0x4d50c8),!0x0;if(!_0x1ae276&&_0x4f4d9b(_0x2075fb,_0x4d4683))return _0x474cde['_joinSuggestions'](_0x4d50c8,_0x3cd3ea),_0x3ff38b['delete'](_0x3cd3ea),!0x0;}return!0x1;}}['_joinSuggestions'](_0x16b430,_0x1c9112){if(_0x16b430['isMultiRange']){for(const _0x2bd925 of _0x1c9112['getRanges']())_0x16b430['addRange'](_0x2bd925);}else{const _0x1f4338=_0x1c9112['getFirstRange']()['end'];this['_setSuggestionRange'](_0x16b430,this['_model']['createRange'](_0x16b430['getFirstRange']()['start'],_0x1f4338));}_0x1c9112['removeMarkers']();}['_getMarkerAnnouncementText'](_0x353b31,_0x22180a,_0x36ce11){const _0x2c4aca=_0x353b31['startsWith']('format')||_0x353b31['startsWith']('attribute')?'FORMATTING':_0x353b31['toUpperCase']();return o(this['editor']['locale'],_0x22180a+'_'+_0x2c4aca+'_SUGGESTION_ANNOUNCEMENT',_0x36ce11);}['_initAriaMarkerChangeAnnouncements'](){const _0x555b84=this['editor'];if(!_0x555b84['ui'])return;const {ariaLiveAnnouncer:_0x394676}=_0x555b84['ui'];_0x356f69(this['_model'],({left:_0x555325,entered:_0x15a3fd})=>{for(const _0x4b68da of _0x555325){const {group:_0x4afed8,type:_0x124a1e}=this['_splitMarkerName'](_0x4b68da['name']);if('suggestion'===_0x4afed8){_0x394676['announce'](this['_getMarkerAnnouncementText'](_0x124a1e,'LEAVE'));break;}}for(const _0x113eb2 of _0x15a3fd){const {group:_0x3fc1b3,type:_0x3c746d}=this['_splitMarkerName'](_0x113eb2['name']);if('suggestion'===_0x3fc1b3){_0x394676['announce'](this['_getMarkerAnnouncementText'](_0x3c746d,'ENTER',_0x8cefc0(_0x58d21c)));break;}}});}['_processAttributeChanges'](_0x239e67){if(this['_recordAttributeSuggestions'])return!0x1;const _0x366a89=this['editor'],_0x482616=_0x366a89['model']['document']['differ']['getChanges']();if(0x0==_0x482616['length'])return!0x1;const _0x589a68=[],_0x28bd73=_0x482616['filter'](_0x5ea3e0=>'attribute'==_0x5ea3e0['type']),_0x1a07dc=_0x482616['filter'](_0x146c51=>'insert'==_0x146c51['type']&&'$text'!=_0x146c51['name']),_0x166ac6=_0x482616['filter'](_0x6ed259=>'remove'==_0x6ed259['type']&&'$text'!=_0x6ed259['name']);for(const _0x39a6a4 of _0x28bd73)_0x589a68['push']({'key':_0x39a6a4['attributeKey'],'newValue':_0x39a6a4['attributeNewValue'],'oldValue':_0x39a6a4['attributeOldValue'],'range':Zt(_0x39a6a4['range'],_0x366a89['model'])});for(const _0x2dc9ee of _0x1a07dc){const _0x53e1c2=_0x166ac6['find'](_0x3f4e90=>_0x3f4e90['position']['isEqual'](_0x2dc9ee['position']));_0x53e1c2&&_0x589a68['push']({'key':m,'newValue':_0x2dc9ee['name'],'oldValue':_0x53e1c2['name'],'range':_0x366a89['model']['createRangeOn'](_0x2dc9ee['position']['nodeAfter'])});}return 0x0!=_0x589a68['length']&&this['_reduceExistingSuggestions'](_0x239e67,_0x589a68);}['_processAttributeSuggestions'](_0x655032){let _0x3f4447=!0x1;const _0x93767a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x485f6b=>_0x485f6b['data']['newRange']&&_0x485f6b['name']['startsWith']('suggestion:attribute:'));for(const _0xfb4e1d of _0x93767a){const {subType:_0x33f41b,id:_0x262249}=this['_splitMarkerName'](_0xfb4e1d['name']),_0x880354=_0x33f41b['split']('|')[0x0];for(const _0x164249 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x164249['id']!=_0x262249&&'attribute'==_0x164249['type']&&_0x164249['data']&&_0x164249['data']['key']==_0x880354&&_0x164249['getFirstRange']()['isIntersecting'](_0xfb4e1d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x164249,_0xfb4e1d['data']['newRange'],_0x655032),_0x3f4447=!0x0);}return _0x3f4447;}['recordAttributeChanges'](_0x217951){this['_recordAttributeSuggestions']=!0x0,_0x217951();}['_isRegisteredAttribute'](_0xaffc2c){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0xaffc2c);}['_reduceExistingSuggestions'](_0x25c79d,_0x1004a0){if(0x0==_0x1004a0['length'])return!0x1;let _0x267d7b=!0x1;for(const _0x2bd912 of _0x1004a0){const _0x49acc2=this['_findSuggestions'](_0x2bd912['range'],'attribute')['filter'](_0x5c7478=>!_0x5c7478['meta']['isNextTo'])['map'](_0x21e26b=>_0x21e26b['suggestion']),_0xe9a5fc=_0x5dc829({'newValue':_0x2bd912['newValue']});_0x49acc2['filter'](_0x1e28e4=>{const [_0x24b24e,_0x406b54]=_0x1e28e4['subType']['split']('|');return _0x24b24e==_0x2bd912['key']&&_0x406b54!=_0xe9a5fc;})['forEach'](_0x484441=>{this['_reduceSuggestionAttributeRange'](_0x484441,_0x2bd912['range'],_0x25c79d),_0x267d7b=!0x0;});}return _0x267d7b;}['_reduceSuggestionAttributeRange'](_0xe4edbf,_0x8ce1d9,_0x29de2a){const _0x4470f1=_0xe4edbf['getFirstRange']()['getDifference'](_0x8ce1d9);0x0!==_0x4470f1['length']?0x1!==_0x4470f1['length']?this['_breakSuggestionMarker'](_0xe4edbf,_0x8ce1d9['start'],_0x8ce1d9['end']):this['_setSuggestionRange'](_0xe4edbf,_0x4470f1[0x0]):_0x29de2a['removeMarker'](_0xe4edbf['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xbb6543){this['_editor']=_0xbb6543,this['_model']=_0xbb6543['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x144e37,_0x18d92d,_0x21e34f,_0xdc02fa,_0x284663,_0x57606a,_0x255999){return new x(this['_model'],{'type':_0x144e37,'subType':_0x18d92d,'id':_0x21e34f,'originalSuggestionId':_0x255999,'author':_0xdc02fa,'creator':_0xdc02fa,'attributes':_0x284663,'onAttributesChange':_0x57606a,'onAccept':(..._0x2b8628)=>this['getSuggestionCallback'](_0x144e37,_0x18d92d,'accept')(..._0x2b8628),'onDiscard':(..._0x59c62c)=>this['getSuggestionCallback'](_0x144e37,_0x18d92d,'discard')(..._0x59c62c)});}['registerCustomCallback'](_0x4420dd,_0x5bcc0c,_0x9ebece,_0x488609){const _0x52a91b=_0x4420dd+':'+_0x5bcc0c+':'+_0x9ebece;this['_customCallbacks']['set'](_0x52a91b,_0x488609);}['getSuggestionCallback'](_0x2b59dd,_0x5a2bd0,_0x2e1116){const _0x4f4fad=_0x2b59dd+':'+_0x5a2bd0+':'+_0x2e1116;return this['_customCallbacks']['get'](_0x4f4fad)||this['_defaultCallbacks']['get'](_0x2b59dd+':'+_0x2e1116);}['_registerDefaultCallbacks'](){const _0x99324e=()=>!0x1,_0x2aa3a8=_0x2cb7cb=>{_0x2cb7cb['sort']((_0x30fb05,_0x35cafe)=>_0x30fb05['start']['isBefore'](_0x35cafe['start'])?0x1:-0x1),this['_model']['change'](_0x53949e=>{for(const _0x50bd98 of _0x2cb7cb){let _0x3b37d3;_0x3b37d3=_0x50bd98['end']['isAtEnd']&&_0x50bd98['end']['parent']==_0x50bd98['start']['nodeAfter']?_0x53949e['createSelection'](_0x50bd98['start']['nodeAfter'],'on'):_0x53949e['createSelection'](_0x50bd98),this['_model']['deleteContent'](_0x3b37d3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c42e1=(_0x43816e,_0x3a811a)=>{_0x3a811a&&this['_model']['change'](_0x5c701d=>{const {commandName:_0x368e85,commandParams:_0x2b5afd=[]}=_0x3a811a,_0x27479e=_0x43816e['map'](_0xcd7d76=>(Kt(_0xcd7d76)&&(_0xcd7d76=this['_model']['createRange'](_0xcd7d76['end'])),_0xcd7d76))['filter'](_0xe5b6b6=>'$graveyard'!==_0xe5b6b6['root']['rootName']);if(_0x27479e['length']<0x1)return;const _0x51cccb=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3dfdb2=>_0x44fa11['fromRange'](_0x3dfdb2));_0x5c701d['setSelection'](_0x27479e);for(const _0x3b5f06 of this['_editor']['commands']['commands']())_0x3b5f06['refresh']();_0x2b5afd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x368e85,..._0x2b5afd);const _0x196e3b=_0x51cccb['filter'](_0x1d9790=>'$graveyard'!=_0x1d9790['root']['rootName']);_0x196e3b['length']>0x0&&_0x5c701d['setSelection'](_0x196e3b);for(const _0x48b2b5 of _0x51cccb)_0x48b2b5['detach']();});},_0x4116f6=(_0x8c92fc,_0x5b310f)=>0x1==_0x8c92fc['length']&&0x1==_0x5b310f['length']&&_0x8c92fc[0x0]['end']['isEqual'](_0x5b310f[0x0]['start']),_0x1a714b=(_0x3f971f,_0x42843e,_0x4296df,_0x150de6)=>nn(_0x3f971f,_0x42843e,_0x4296df,_0x150de6)?[_0x3f971f,_0x42843e]:nn(_0x42843e,_0x3f971f,_0x150de6,_0x4296df)?[_0x42843e,_0x3f971f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x99324e),this['_defaultCallbacks']['set']('insertion:discard',_0x2aa3a8),this['_defaultCallbacks']['set']('insertion:join',_0x4116f6),this['_defaultCallbacks']['set']('insertion:chain',_0x1a714b),this['_defaultCallbacks']['set']('deletion:accept',_0x2aa3a8),this['_defaultCallbacks']['set']('deletion:discard',_0x99324e),this['_defaultCallbacks']['set']('deletion:join',_0x4116f6),this['_defaultCallbacks']['set']('deletion:chain',_0x1a714b),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c42e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x99324e),this['_defaultCallbacks']['set']('formatInline:join',_0x4116f6),this['_defaultCallbacks']['set']('formatInline:chain',_0x99324e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c42e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x99324e),this['_defaultCallbacks']['set']('formatBlock:join',_0x4116f6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x99324e),this['_defaultCallbacks']['set']('attribute:accept',_0x99324e),this['_defaultCallbacks']['set']('attribute:discard',(_0x5c800c,_0x51291a)=>{if(!_0x51291a)return;const _0x2703ca=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x343b70=>{if(_0x51291a['key']==m)for(const _0x32d062 of _0x5c800c){const _0x40d320=_0x32d062['start']['nodeAfter'],_0x2231cb=_0x51291a['oldValue'];_0x343b70['rename'](_0x40d320,_0x2231cb);}else{if(_0x2703ca['_isBlockAttribute'](_0x51291a['key'])){for(const _0x58591e of _0x5c800c)void 0x0!==_0x51291a['oldValue']?_0x343b70['setAttribute'](_0x51291a['key'],_0x51291a['oldValue'],_0x58591e['start']['nodeAfter']):_0x343b70['removeAttribute'](_0x51291a['key'],_0x58591e['start']['nodeAfter']);}else{for(const _0x753fbb of _0x5c800c)_0x51291a['oldValue']?_0x343b70['setAttribute'](_0x51291a['key'],_0x51291a['oldValue'],_0x753fbb):_0x343b70['removeAttribute'](_0x51291a['key'],_0x753fbb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4116f6);}}function zt(_0x1e6c3c,_0x1ca17b,_0x578617){for(const _0x4a8dc7 of _0x1ca17b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4a8dc7['root']==_0x4a8dc7)return!0x1;if(!_0x578617['containsItem'](_0x4a8dc7))return!0x1;if(_0x1e6c3c['isObject'](_0x4a8dc7)||_0x1e6c3c['isLimit'](_0x4a8dc7))return!0x0;}return!0x1;}function Kt(_0x25227b){return _0x25227b['end']['parent']==_0x25227b['start']['nodeAfter']&&_0x25227b['end']['isAtStart'];}function Wt(_0x1f41ef,_0xe52b2e,_0x32742c,_0x3585fb){const _0x213faf=_0x3cf749=>!_0x3cf749['item']['is']('$textProxy')&&!_0x3585fb['isObject'](_0x3cf749['item']),_0x4c2df5=_0x1f41ef['start']['getLastMatchingPosition'](_0x213faf),_0xa23f4f=_0x1f41ef['end']['getLastMatchingPosition'](_0x213faf,{'direction':'backward'});return(!_0x1f41ef['start']['isEqual'](_0x4c2df5)||!_0x1f41ef['end']['isEqual'](_0xa23f4f))&&(_0x4c2df5['isBefore'](_0xa23f4f)?_0x32742c['updateMarker'](_0xe52b2e,{'range':_0x32742c['createRange'](_0x4c2df5,_0xa23f4f)}):_0x32742c['removeMarker'](_0xe52b2e),!0x0);}function Ht(_0x441b80){return _0x5dc829(_0x441b80);}function Qt(_0x137fe1){const _0x304ab3=_0x137fe1['start']['nodeAfter'];return _0x304ab3&&_0x304ab3['is']('element');}function Xt(_0x2dce90){return Kt(_0x2dce90)||function(_0xa2f1f8){return _0xa2f1f8['start']['parent']==_0xa2f1f8['end']['nodeBefore']&&_0xa2f1f8['start']['isAtEnd'];}(_0x2dce90);}function Yt(_0x29b4df,_0x53e7ec){try{const _0xdf55d2=_0x29b4df['getRange']();for(const _0x118d75 of _0x53e7ec)if(_0x29b4df!==_0x118d75&&_0xdf55d2&&_0xdf55d2['isIntersecting'](_0x118d75['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xaf7e39,_0x2e944c){return null==_0xaf7e39['end']['nodeBefore']&&_0xaf7e39['end']['parent']==_0xaf7e39['start']['nodeAfter']?tn(_0xaf7e39['start']['nodeAfter'],_0x2e944c):_0xaf7e39;}function tn(_0x2698b5,_0x518fd8){const _0x110292=_0x518fd8['schema']['isObject'](_0x2698b5)||_0x518fd8['schema']['isSelectable'](_0x2698b5);return _0x518fd8['createRange'](_0x518fd8['createPositionAt'](_0x2698b5,'before'),_0x110292?_0x518fd8['createPositionAfter'](_0x2698b5):_0x518fd8['createPositionAt'](_0x2698b5,'end'));}function nn(_0x1b0359,_0x49d65d,_0x58f95a,_0x4f671c){return!!en(_0x1b0359,_0x49d65d)&&_0x58f95a['end']['isEqual'](_0x4f671c['start']);}function en(_0x2ab320,_0x493d3b){if(!_0x2ab320['_isDataLoaded']||!_0x493d3b['_isDataLoaded'])return!0x1;const _0xf41c58=new Set(Object['keys'](_0x2ab320['attributes'])),_0x418ede=new Set(Object['keys'](_0x493d3b['attributes']));if(_0xf41c58['delete']('groupId'),_0x418ede['delete']('groupId'),0x0==_0xf41c58['size']&&0x0==_0x418ede['size'])return!0x0;if(_0xf41c58['size']!=_0x418ede['size'])return!0x1;const _0x1ba36b={..._0x2ab320['attributes']},_0x4b6e89={..._0x493d3b['attributes']};return delete _0x1ba36b['groupId'],delete _0x4b6e89['groupId'],JSON['stringify'](_0x1ba36b)==JSON['stringify'](_0x4b6e89);}function sn(_0x5388db,_0x33e9da){const _0x37090e=on(_0x5388db['attributes']),_0x2a8cb6=on(_0x33e9da);if(!_0x5388db['_isDataLoaded'])return!0x1;for(const _0x40b681 of Object['keys'](_0x2a8cb6))if(!_0x4faab1(_0x37090e[_0x40b681],_0x2a8cb6[_0x40b681]))return!0x1;return!0x0;}function on(_0x4b1615){const _0x50a5f3=Object['assign']({},_0x4b1615);return delete _0x50a5f3['skipNestingCheck'],delete _0x50a5f3['tablePasteChainId'],_0x50a5f3;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xc5829f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x13c58e,_0xc05d49,_0x195e97,_0x153622){super(),this['model']=_0xc05d49,this['view']=_0x195e97,this['commentThreadController']=_0x153622,this['_editor']=_0x13c58e,this['_acceptCommand']=_0x13c58e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13c58e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x530685,_0x4d79d2)=>_0x530685||_0x4d79d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x481895=>_0x481895&&this['_editor']['model']['canEditAt'](_0xc05d49['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc72b80=>_0xc72b80&&this['_editor']['model']['canEditAt'](_0xc05d49['getRanges']())),this['_pendingAction']=null,_0x195e97['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x195e97,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x195e97,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x195e97,'change:isDirty',()=>{_0x195e97['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 _0xd7d7d4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xd7d7d4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x165694{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44fc28,_0x44053e,_0x3a58e6,_0x217d3c){super(_0x44fc28),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x431229(_0x44fc28,o(_0x44fc28,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x44053e['authoredAt']),this['bind']('authoredAt')['to'](_0x44053e),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',_0x44053e,'authoredAt',this,'descriptionParts',(_0x45c7ea,_0x5f4d5f,_0x4b8c0d)=>{const _0x2fecf6=_0x4b8c0d['map'](_0x238e4d=>ls(_0x238e4d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x45c7ea-0x1,_0x44053e['author']['name'],_0x5f4d5f?_0x217d3c['formatDateTime'](_0x5f4d5f):'',new DOMParser()['parseFromString'](_0x2fecf6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x572c6d(),this['focusTracker']=new _0x414a5c(),this['keystrokes']=new _0x493e13(),this['focusCycler']=new _0x23d48f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x397a78=>_0x397a78['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x44053e,this['_localUser']=_0x3a58e6,this['_config']=_0x217d3c,_0x217d3c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x38743b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5c653a}=this['_config'];this['commentsListView']=new _0x5c653a(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',_0x4f74e8=>_0x4f74e8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x430be1,_0x4d3868)=>_0x430be1||!!_0x4d3868);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x561ec9}=this['_config'],_0x92b7e4=new _0x561ec9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5abcd8=_0x92b7e4['commentInputView'];return _0x92b7e4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5abcd8,'value',(_0x4897ac,_0x193536,_0x3002a7)=>!!_0x3002a7||_0x4897ac&&!_0x193536),_0x5abcd8['on']('submit',(_0x4c6080,_0x5dfe80)=>{this['fire']('addComment',_0x5dfe80),_0x5abcd8['editor']['setData']('');}),_0x5abcd8['on']('cancel',()=>this['focus']()),_0x5abcd8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x92b7e4;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x476b0a,_0xcba026,_0x3745f9,_0x3e362b){super(_0x476b0a,_0xcba026,_0x3745f9,_0x3e362b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1b5cf0=>_0x1b5cf0&&_0x1b5cf0[0x0]?_0x1b5cf0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x58f353,_0x48fa7b)=>{let _0xaec44c='';for(const _0x5ce1c9 of _0x58f353)_0xaec44c+='<p>'+ls(_0x5ce1c9['content'],_0x5ce1c9['color'])+'</p>';return _0x48fa7b?_0xaec44c:_0x20f3d4(_0xaec44c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e362b['SuggestionView'](_0x476b0a,_0xcba026,{'formatDateTime':_0x3e362b['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 _0x47adff=this['bindTemplate'],_0xcd95a7=[this['suggestionView']];return this['commentsListView']&&_0xcd95a7['push'](this['commentsListView']),this['commentThreadInputView']&&_0xcd95a7['push'](this['commentThreadInputView']),_0xcd95a7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x47adff['if']('isActive','ck-suggestion-wrapper--active'),_0x47adff['to']('type',_0xb20218=>'ck-suggestion-'+_0xb20218),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':_0x47adff['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xcd95a7};}['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 _0x165694{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x470018,_0x595b13,_0x3e9d37){super(_0x470018),this['_model']=_0x595b13,this['_config']=_0x3e9d37,this['set']('description',''),this['bind']('authoredAt')['to'](_0x595b13),this['acceptButton']=this['_createButton'](o(_0x470018,'Accept\x20suggestion'),_0x5f0596,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x470018,'Discard\x20suggestion'),_0x2fe9cc,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3f8149(_0x470018,_0x595b13['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x572c6d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x414a5c(),this['keystrokes']=new _0x493e13(),this['focusCycler']=new _0x23d48f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x35d6ac=>_0x35d6ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x6b2ef6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x6b2ef6['innerHTML']=this['description'],this['on']('change:description',(_0x2ad104,_0x423e29,_0x1f3606)=>{_0x6b2ef6['innerHTML']=_0x1f3606;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4505d8=this['bindTemplate'],_0x38e8c7=[{'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':_0x4505d8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4505d8['to']('authoredAt',_0x21491a=>this['_config']['formatDateTime'](_0x21491a))}]}]},{'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']&&_0x38e8c7['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':_0x38e8c7}]};}['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'](_0xa9158c,_0x183d29,_0x537e0a,_0x5ad893,_0x3a907f){const _0x230891=new _0x3fa569(this['locale']);return _0x230891['set']({'label':_0xa9158c,'icon':_0x183d29,'tooltip':!0x0,'tooltipPosition':_0x3a907f}),_0x230891['extendTemplate']({'attributes':{'class':_0x537e0a}}),_0x230891['on']('execute',()=>{this['fire'](_0x5ad893,this['_model']['id']);}),_0x230891;}['_setupKeyboardNavigation'](){const _0x2eb63f=this['element'];this['keystrokes']['listenTo'](_0x2eb63f);for(const _0xa1d68e of this['focusables'])this['focusTracker']['add'](_0xa1d68e['element']),this['keystrokes']['listenTo'](_0xa1d68e['element']);this['keystrokes']['set']('enter',(_0x4105d7,_0x1b8412)=>{_0x2eb63f===_0x4105d7['target']&&(this['focusCycler']['focusFirst'](),_0x1b8412());}),this['keystrokes']['set']('esc',(_0x49f22e,_0x167161)=>{_0x2eb63f!==_0x49f22e['target']&&(this['focus'](),_0x167161());});}}class u extends _0x568c70{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x56af09,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x227811){super(_0x227811),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2b9099=this['editor']['config'];_0x2b9099['define']('trackChanges.SuggestionThreadView',fe),_0x2b9099['define']('trackChanges.SuggestionView',we),_0x2b9099['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2b9099['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49a134,_0x3bfccf){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x727679,_0x57031f]of this['_handleControllerBuffer']){const _0x4a18ff=this['_suggestionToController']['has'](_0x727679);_0x4a18ff||_0x57031f?_0x4a18ff&&_0x57031f&&this['_destroyController'](_0x727679):this['_initializeController'](_0x727679);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49a134,_0x3bfccf);}['init'](){const _0x1112a5=this['editor'],_0x4de536=_0x1112a5['plugins']['get']('TrackChangesEditing'),_0x2bbf30=_0x1112a5['plugins']['get']('Annotations'),_0x43207d=_0x1112a5['plugins']['get']('EditorAnnotations'),_0xc3e7e6=_0x1112a5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x43207d['addSourceCollector'](()=>{const _0x290279=[];for(const [_0x2c03e5,_0x33ac42]of Array['from'](this['_suggestionToController'])){const _0x2f518d=_0x2c03e5['getAllAdjacentSuggestions'](),_0x1527ca=[];for(const _0x28d86b of _0x2f518d){if(!_0x28d86b['isInContent'])continue;if(_0x28d86b['isMultiRange']){_0x1527ca['push'](..._0x28d86b['getRanges']());continue;}const _0x1ece8b=_0x28d86b['getFirstRange']();if(_0x1527ca['length']>0x0){const _0x41fee9=_0x1527ca[0x0]['getJoined'](_0x1ece8b);if(_0x41fee9){_0x1527ca[0x0]=_0x41fee9;continue;}}_0x1527ca['push'](_0x1ece8b);}_0x290279['push']([_0x33ac42['view'],_0x1527ca]);}return _0x290279;}),this['listenTo'](_0x4de536,'suggestionLoaded',(_0x1442eb,_0x11eb94)=>{this['listenTo'](_0x11eb94,'change:previous',(_0x35e73b,_0x1ba4be,_0x3367c8,_0x5b3b2f)=>{_0x11eb94['isInContent']&&(null==_0x3367c8?(this['_updateController'](_0x5b3b2f['head']),this['_handleSuggestionControllerDelayed'](_0x11eb94,!0x1)):(this['_updateController'](_0x3367c8['head']),null==_0x5b3b2f&&this['_handleSuggestionControllerDelayed'](_0x11eb94,!0x0)));}),null!==_0x11eb94['previous']?this['_updateController'](_0x11eb94['head']):this['_handleSuggestionControllerDelayed'](_0x11eb94,!0x1);}),this['listenTo'](_0x4de536,'suggestionUnloaded',(_0x31d248,_0x37e241,_0x21403d)=>{this['stopListening'](_0x37e241,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37e241),this['_suggestionToController']['has'](_0x37e241)&&this['_destroyController'](_0x37e241),_0x21403d&&this['_updateController'](_0x21403d['head']);}),this['listenTo'](_0x4de536,'suggestionChanged',(_0xfb5502,_0x3318a0)=>{this['_updateController'](_0x3318a0);}),this['listenTo'](_0x2bbf30,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xc3e7e6,'addComment',(_0x4a38d2,{threadId:_0x3ae79e,isFromAdapter:_0x11dd5f})=>{if(_0x11dd5f||!_0x4de536['hasSuggestion'](_0x3ae79e))return;const _0x169109=_0x4de536['getSuggestion'](_0x3ae79e);this['_suggestionToController']['get'](_0x169109)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1720a6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x31e202;for(const _0x4b69fc in _0x1720a6){const _0x5bb367=_0x4b69fc,_0x4ec5e8=_0x1720a6[_0x5bb367];if('trackChangesLicenseKeyValid'==_0x4ec5e8||'trackChangesLicenseKeyInvalid'==_0x4ec5e8||'trackChangesLicenseKeyExpired'==_0x4ec5e8||'trackChangesLicenseKeyDomainLimit'==_0x4ec5e8||'trackChangesLicenseKeyNotAllowed'==_0x4ec5e8||'trackChangesLicenseKeyEvaluationLimit'==_0x4ec5e8||'trackChangesLicenseKeyUsageLimit'==_0x4ec5e8){delete _0x1720a6[_0x5bb367],_0x31e202=_0x4ec5e8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x31e202&&_0x1720a6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x31e202&&_0x1720a6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x31e202&&_0x1720a6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x31e202&&_0x1720a6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x31e202&&_0x1720a6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x31e202&&_0x1720a6['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c092d){const _0x21b60f=this['_suggestionToController']['get'](_0x3c092d);if(!_0x21b60f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x21b60f['view'])||null;}['getSuggestionForAnnotation'](_0x523f43){const _0x41e7e4=this['_viewToController']['get'](_0x523f43['innerView']);return _0x41e7e4?_0x41e7e4['model']:null;}['_refreshActiveMarkers'](){const _0x26a799=this['editor']['plugins']['get']('Annotations'),_0x385ddd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e663f=Array['from'](_0x26a799['activeAnnotations'],_0x3d9dd5=>_0x3d9dd5['innerView'])['filter'](_0x4a9036=>this['_viewToController']['has'](_0x4a9036)),_0x5074bd=[];for(const _0x4a00a7 of _0x3e663f){const _0x312bca=this['_viewToController']['get'](_0x4a00a7)['model']['getAllAdjacentSuggestions']();_0x5074bd['push'](..._0x312bca['reduce']((_0x57d23f,_0x257401)=>[..._0x57d23f,..._0x257401['getMarkerNames']()],[]));}_0x385ddd['activeMarkers']=_0x5074bd;}['_addUIComponentsToFactory'](){const _0xbf6f5=this['editor'],_0x1a3e10=_0xbf6f5['locale'],_0x3d25e4=o(_0x1a3e10,'Track\x20changes'),_0x3e9cc8=new _0x1b9123([{'type':'switchbutton','model':new _0x5765ae({'withText':!0x0,'isToggleable':!0x0,'label':_0x3d25e4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5765ae({'withText':!0x0,'label':o(_0x1a3e10,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5765ae({'withText':!0x0,'label':o(_0x1a3e10,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5765ae({'withText':!0x0,'label':o(_0x1a3e10,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5765ae({'withText':!0x0,'label':o(_0x1a3e10,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xbf6f5['plugins']['has']('TrackChangesPreview')&&_0x3e9cc8['addMany']([{'type':'separator'},{'type':'button','model':new _0x5765ae({'withText':!0x0,'label':o(_0x1a3e10,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xd6e740 of _0x3e9cc8)if(ke(_0xd6e740)){const _0x4f4bc2=_0xbf6f5['commands']['get'](_0xd6e740['model']['commandName']);_0xd6e740['model']['bind']('isOn','isEnabled')['to'](_0x4f4bc2,'value','isEnabled');}_0xbf6f5['ui']['componentFactory']['add']('trackChanges',_0x147edc=>this['_createToolbarButton'](_0x147edc,_0x3e9cc8,_0x3d25e4)),_0xbf6f5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x23a724=>this['_createMenuBarMenu'](_0x23a724,_0x3e9cc8,_0x3d25e4));}['_createToolbarButton'](_0x392a1c,_0x555566,_0xf7b3db){const _0x2e6267=_0x3f5a4b(_0x392a1c,_0x369267),_0x2d38f5=this['editor']['commands']['get']('trackChanges');_0x2e6267['buttonView']['set']({'tooltip':_0xf7b3db,'label':_0xf7b3db,'icon':_0xcc0150}),_0x2e6267['buttonView']['bind']('isOn')['to'](_0x2d38f5,'value'),_0x2e6267['buttonView']['on']('execute',()=>{_0x2d38f5['execute'](),this['editor']['editing']['view']['focus']();}),_0x577162(_0x2e6267,_0x555566,{'role':'menu'});const _0x34d469=[];for(const _0x4a2342 of _0x555566)ke(_0x4a2342)&&_0x34d469['push'](this['editor']['commands']['get'](_0x4a2342['model']['commandName']));const _0x5b0edb=_0x2e6267['buttonView'];return _0x5b0edb['actionView']['unbind']('isEnabled'),_0x5b0edb['arrowView']['unbind']('isEnabled'),_0x5b0edb['actionView']['bind']('isEnabled')['to'](_0x2d38f5,'isEnabled'),_0x5b0edb['arrowView']['bind']('isEnabled')['toMany'](_0x34d469,'isEnabled',(..._0x20b9cb)=>_0x20b9cb['some'](_0x14ceea=>_0x14ceea)),_0x2e6267['on']('execute',_0xca3229=>{this['editor']['execute'](_0xca3229['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e6267;}['_createMenuBarMenu'](_0x4dc1d9,_0x292790,_0x38eb37){const _0x3088ad=new _0x338a3c(_0x4dc1d9),_0x7bc415=this['editor']['commands']['get']('trackChanges');_0x3088ad['buttonView']['set']({'label':_0x38eb37,'icon':_0xcc0150});const _0x48e5ae=new _0x63ea6b(_0x4dc1d9);for(const _0x4e9fba of _0x292790){if('separator'==_0x4e9fba['type']){_0x48e5ae['items']['add'](new _0x173d6b(_0x4dc1d9));continue;}const _0x20d053=new _0x2f6983(_0x4dc1d9,_0x3088ad),_0x2a3115=new _0x25a517(_0x4dc1d9),_0x1cbfb9=_0x4e9fba['model'];_0x2a3115['bind'](...Object['keys'](_0x1cbfb9))['to'](_0x1cbfb9),_0x2a3115['delegate']('execute')['to'](_0x3088ad),_0x2a3115['on']('execute',()=>{this['editor']['execute'](_0x1cbfb9['commandName']),this['editor']['editing']['view']['focus']();}),_0x20d053['children']['add'](_0x2a3115),_0x48e5ae['items']['add'](_0x20d053);}return _0x3088ad['bind']('isEnabled')['to'](_0x7bc415,'isEnabled'),_0x3088ad['panelView']['children']['add'](_0x48e5ae),_0x3088ad;}['_initializeController'](_0x187d2c){const _0x1a98c8=this['editor'],_0x334b4e=_0x1a98c8['config'],_0xd5c03a=_0x1a98c8['plugins']['get']('Annotations'),_0x197134=_0x1a98c8['plugins']['get']('CommentsRepository'),_0x4fd0c1=_0x1a98c8['plugins']['get']('EditorAnnotations'),_0xe62b83=_0x1a98c8['plugins']['get'](_0x56af09)['me'],_0x1d8f66=_0x334b4e['get']('trackChanges')['SuggestionThreadView'],_0x4198c3=_0x334b4e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x181f2e,CommentThreadInputView:_0x45e775}=_0x1a98c8['plugins']['get']('CommentsUI');let _0x5835d4,_0x3cafc2,_0x158364;this['_annotationViews']['has'](_0x187d2c['id'])?(_0x3cafc2=this['_annotationViews']['get'](_0x187d2c['id']),_0x5835d4=_0x3cafc2['mainView']):(_0x5835d4=new _0x1d8f66(_0x1a98c8['locale'],_0x187d2c,_0xe62b83,{'disableComments':this['_disableComments'],'editorConfig':{..._0x334b4e['get']('comments.editorConfig'),'licenseKey':_0x334b4e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x334b4e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x334b4e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x334b4e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5924a5(_0x334b4e['get']('locale'),_0x1a98c8['locale']),'CommentView':_0x334b4e['get']('comments')['CommentView'],'CommentsListView':_0x181f2e,'CommentThreadInputView':_0x45e775,'SuggestionView':_0x4198c3}),_0x5835d4['suggestionView']['acceptButton']['on']('execute',()=>{_0x1a98c8['editing']['view']['focus']();}),_0x5835d4['suggestionView']['discardButton']['on']('execute',()=>{_0x1a98c8['editing']['view']['focus']();}),_0x3cafc2=_0xd5c03a['createAnnotationView'](this['editor']['locale'],_0x5835d4),_0x3cafc2['bind']('isDirty')['to'](_0x5835d4,'isDirty'),_0x3cafc2['bind']('length')['to'](_0x5835d4),_0x3cafc2['bind']('type')['to'](_0x5835d4,'type',_0x579893=>'suggestion-'+_0x579893),_0x5835d4['on']('escape',()=>{_0x158364['fire']('escape');}),this['_annotationViews']['set'](_0x187d2c['id'],_0x3cafc2));const _0x191aa0=_0x197134['createCommentThreadController'](_0x187d2c['commentThread'],_0x5835d4),_0x1b5f21=new pe(_0x1a98c8,_0x187d2c,_0x5835d4,_0x191aa0),_0x1cb8d7=_0x187d2c['getAllAdjacentSuggestions']()['filter'](_0x598378=>_0x598378['isInContent']);_0x5835d4['descriptionParts']=_0x1a98c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1cb8d7),this['_suggestionToController']['set'](_0x187d2c,_0x1b5f21),this['_viewToController']['set'](_0x5835d4,_0x1b5f21);const _0x3926bd=()=>{const _0x29723f=[],_0x4a1c07=_0x187d2c['getAllAdjacentSuggestions']()['filter'](_0x4247f9=>_0x4247f9['isInContent']);for(const _0x5e5651 of _0x4a1c07)_0x29723f['push'](..._0x5e5651['getMarkers']());return _0x23b145(_0x1a98c8['editing'],_0x29723f);};_0x158364=_0xd5c03a['createAnnotation']({'view':_0x3cafc2,'target':_0x3926bd,'type':()=>'suggestion-'+_0x1b5f21['view']['type'],'isVisible':!!_0x3926bd()}),_0x197134['_bindAnnotationToEditors'](_0x5835d4,_0x158364),_0xd5c03a['add'](_0x158364),_0x4fd0c1['registerAnnotation'](_0x158364);}['_destroyController'](_0x2f2081){const _0x30085f=this['editor']['plugins']['get']('CommentsRepository'),_0x4457c2=this['editor']['plugins']['get']('Annotations'),_0x402207=this['_suggestionToController']['get'](_0x2f2081),_0x338c1f=_0x402207['view'],_0x39be9c=_0x4457c2['getByInnerView'](_0x338c1f);_0x30085f['_unbindEditors'](_0x338c1f),_0x39be9c&&_0x4457c2['remove'](_0x39be9c),this['_suggestionToController']['delete'](_0x2f2081),this['_viewToController']['delete'](_0x338c1f),_0x402207['destroy']();}['_updateController'](_0x1e4eff){if(!_0x1e4eff['isInContent']||!this['_suggestionToController']['has'](_0x1e4eff))return;const _0x230d00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f35b5=this['_suggestionToController']['get'](_0x1e4eff),_0x3495bd=_0x1e4eff['getAllAdjacentSuggestions']();_0x2f35b5['view']['descriptionParts']=_0x230d00['descriptionFactory']['getDescriptions'](_0x3495bd);}['destroy'](){for(const _0x16dc0a of this['_suggestionToController']['keys']())this['_destroyController'](_0x16dc0a);for(const _0x18b992 of this['_annotationViews']['values']())_0x18b992['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x40d398){return'model'in _0x40d398;}class Ne extends _0x568c70{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5022b4){this['editor']['plugins']['get'](d)['adapter']=_0x5022b4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x58c948){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x58c948);}['getSuggestions']({skipNotAttached:_0xa2814b=!0x1,toJSON:_0x1896ba=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xa2814b,'toJSON':_0x1896ba});}['getSuggestion'](_0x53c089){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x53c089);}}const p=['Pagination'];class re extends _0x568c70{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x364a5c=this['editor'];if(_0x364a5c['config']['define']('trackChangesData.editorCreator',_0x28756b=>{const _0x51fd4c=_0x364a5c['model']['document']['getRootNames']()['reduce']((_0x52d67d,_0x477703)=>(_0x52d67d[_0x477703]='',_0x52d67d),{});return _0x364a5c['constructor']['create'](_0x51fd4c,_0x28756b);}),'function'!=typeof _0x364a5c['config']['get']('trackChangesData')['editorCreator'])throw new _0x557e8d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3fa558){return P(this['editor'],!0x0,_0x3fa558);}['getDataWithDiscardedSuggestions'](_0x3811df){return P(this['editor'],!0x1,_0x3811df);}}class Fe extends _0x568c70{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4373f0){function _0x4e7f19(_0x55823){return _0x55823['map'](_0x27bb04=>String['fromCharCode'](_0x27bb04))['join']('');}super(_0x4373f0),this['result']='end',_0x4373f0[_0x4e7f19([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e7f19([0x76,0x69,0x65,0x77])][_0x4e7f19([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e7f19([0x61,0x75,0x74,0x6f]),_0x4373f0[_0x4e7f19([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e7f19([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e7f19([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e7f19([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e7f19([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(_0x2219c7){return void 0x0!==_0x2219c7['getRootsAttributes'];}async function P(_0x161c85,_0x40980c,_0x32393d){const _0x232f53=_0x86da05(_0x161c85,p);_0x232f53['plugins']['push'](d,Fe),_0x232f53['rootsAttributes']=De(_0x161c85)?_0x161c85['getRootsAttributes']():void 0x0;const _0x3a8c22=document['createDocumentFragment'](),_0x330255=_0x161c85['config']['get']('trackChangesData')['editorCreator'],_0x1f4f2f=await _0x330255(_0x232f53,()=>function(_0x2f1782){const _0x2d20b1=document['createElement']('div');return _0x2f1782['appendChild'](_0x2d20b1),_0x2d20b1;}(_0x3a8c22));!function(_0x5e8873,_0x53447e){const _0x41d6a4=_0x5e8873['model']['document']['getRootNames']()['reduce']((_0x3b2b03,_0x1452e5)=>(_0x3b2b03[_0x1452e5]=_0x5e8873['data']['get']({'rootName':_0x1452e5}),_0x3b2b03),{}),_0x25ba53=_0x5e8873['plugins']['get']('Users')['users']['map'](_0x577ee7=>({'id':_0x577ee7['id'],'name':_0x577ee7['name']})),_0x2e5c92=_0x5e8873['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1616aa=_0x5e8873['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x161e0c=_0x53447e['plugins']['get']('Users'),_0xda94a9=_0x53447e['plugins']['get']('TrackChangesEditing'),_0x1eb3f1=_0x53447e['plugins']['get']('CommentsRepository');for(const _0x1e4092 of _0x1eb3f1['getCommentThreads']())_0x1e4092['remove']();for(const _0x34db2a of _0x25ba53)_0x161e0c['getUser'](_0x34db2a['id'])||_0x161e0c['addUser'](_0x34db2a);_0x161e0c['me']||_0x161e0c['useAnonymousUser']();for(const _0x5bf069 of _0x1616aa)_0x1eb3f1['addCommentThread'](_0x5bf069);for(const _0x30014d of _0x2e5c92)_0xda94a9['addSuggestionData'](_0x30014d);_0x53447e['data']['set'](_0x41d6a4);}(_0x161c85,_0x1f4f2f),_0x1f4f2f['execute'](_0x40980c?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c1d0c=De(_0x1f4f2f)?_0x1f4f2f['getFullData'](_0x32393d):_0x1f4f2f['data']['get'](_0x32393d);return await _0x1f4f2f['destroy'](),_0x1c1d0c;}class Me extends _0x165694{['options'];constructor(_0x2135ea,_0x3dafe7){super(_0x2135ea),this['options']=_0x3dafe7,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'](_0x354695,_0xcc1d5b){if(!this['element'])return;const _0x42121a=[];for(const [_0x5d2dc3,_0x40a5b1]of _0x354695){const _0x39a7c2=document['createElement']('div');_0x39a7c2['setAttribute']('data-ck-root-name',_0x5d2dc3),_0x39a7c2['className']=_0x40a5b1['classes']+'\x20ck-track-changes-preview__root-container',_0x39a7c2['innerHTML']=_0x40a5b1['content'],_0x42121a['push'](_0x39a7c2);}_0xcc1d5b(this['element'],_0x42121a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2f840d{constructor(_0x10b2b4){super(_0x10b2b4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x563071=this['editor'],_0x1837df=_0x563071['locale'],_0xa1c823=_0x563071['plugins']['get']('Dialog');let _0xd74b6f;const _0x38c971=function(_0x12a60e){const _0x480462={};if('editables'in _0x12a60e['ui']['view']){for(const [_0x4f9722,_0x11465a]of Object['entries'](_0x12a60e['ui']['view']['editables']))_0x480462[_0x4f9722]=_0x11465a['element'];}else _0x480462[_0x12a60e['model']['document']['getRootNames']()[0x0]]=_0x12a60e['ui']['view']['editable']['element'];return _0x480462;}(_0x563071),_0x18c8b4=function(_0x2273ec){let _0x2611ce=0x0;for(const _0x8896c7 of Object['values'](_0x2273ec))_0x2611ce=Math['max'](_0x2611ce,_0x8896c7['getBoundingClientRect']()['width']);let _0x319df7=0x0;for(const _0x3e27b3 of Object['values'](_0x2273ec))_0x319df7+=_0x3e27b3['getBoundingClientRect']()['height'];const _0x383b07=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x56fc8c=Math['min'](_0x319df7,_0x383b07);return{'width':_0x2611ce,'height':_0x56fc8c};}(_0x38c971);_0xa1c823['show']({'id':'finalContentPreview','title':o(_0x1837df,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1837df,{'dialogRects':_0x18c8b4}),'onHide':()=>{_0xd74b6f['detachFromDom']();},'onShow':()=>{_0x563071['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x11efb0=>{const _0xd8526d=this['_standarizeRootsData'](_0x11efb0,_0x563071,_0x38c971);_0xa1c823['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd8526d,_0x563071['config']['get']('trackChanges.preview.renderFunction'));}),_0xd74b6f=new _0x17593e(_0x1837df,[_0xa1c823['view']]),_0xd74b6f['attachToDom'](),_0xd74b6f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x563071['once']('destroy',()=>{_0xd74b6f['detachFromDom']();});const _0x24946c=_0xa1c823['view']['headerView']['class'];_0xa1c823['view']['headerView']['class']=_0x24946c?_0x24946c+'\x20ck-reset_all':'ck-reset_all',_0xa1c823['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xa1c823['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x227022=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x368eb5=_0x227022['previewMode'],_0x1699e2={};if('$labels'===_0x368eb5){for(const _0x3c55ce of _0x227022['getMergeFieldsIds']())_0x1699e2[_0x3c55ce]=_0x227022['getLabel'](_0x3c55ce)||_0x3c55ce;}else{const _0x2704be='$defaultValues'===_0x368eb5?_0x227022['getDefaultValues']():_0x227022['getDataSetValues'](_0x368eb5,!0x0);for(const _0x2f3b6e of Object['entries'](_0x2704be)){const [_0x34ad96,_0x2044f1]=_0x2f3b6e;_0x1699e2[_0x34ad96]=null!==_0x2044f1?_0x2044f1:_0x227022['getLabel'](_0x34ad96)||_0x34ad96;}}return{'mergeFieldsData':_0x1699e2};}['_standarizeRootsData'](_0x3f82a1,_0x464a66,_0x51eb81){let _0x73a65a;if('string'==typeof _0x3f82a1){const _0x461d3b=_0x464a66['model']['document']['getRootNames']()[0x0];_0x73a65a={[_0x461d3b]:_0x3f82a1};}else _0x73a65a=_0x3f82a1;const _0x3b3145=this['_fixMediaEmbeds'](_0x73a65a,_0x464a66),_0x297861=function(_0x1a094e,_0xdab625){for(const [_0x1c0d14,_0x52b249]of _0x1a094e)_0x52b249['classes']=_0xdab625[_0x1c0d14]['classList']['value']['replace']('ck-focused','');return _0x1a094e;}(this['_sortRoots'](_0x464a66)['reduce']((_0x44b3ce,_0x29ac3e)=>(_0x44b3ce['push']([_0x29ac3e,{'content':_0x3b3145[_0x29ac3e],'classes':''}]),_0x44b3ce),[]),_0x51eb81);return _0x297861;}['_fixMediaEmbeds'](_0xf05692,_0x2dd77c){if(!_0x2dd77c['plugins']['has']('MediaEmbedEditing'))return _0xf05692;const _0x1e3b08=_0x2dd77c['plugins']['get']('MediaEmbedEditing');for(const [_0x362427,_0x5e5219]of Object['entries'](_0xf05692)){const _0x52db3a=document['createElement']('div');_0x52db3a['innerHTML']=_0x5e5219,(_0x52db3a['querySelectorAll']('figure.media')['forEach'](_0x4de144=>{const _0x7e3acb=_0x4de144['querySelector']('oembed');if(_0x7e3acb){const _0x59e142=_0x7e3acb['getAttribute']('url');if(_0x59e142){const _0x2a1805=_0x1e3b08['registry']['getMediaViewElement'](new _0x286c68(_0x2dd77c['editing']['view']['document']),_0x59e142,{'elementName':'','renderForEditingView':!0x0}),_0x203997=document['createElement']('div');_0x203997['classList']['add']('ck-media__wrapper'),_0x2a1805['render'](_0x203997,_0x2dd77c['editing']['view']['domConverter']),_0x7e3acb['replaceWith'](_0x203997);}}}),_0xf05692[_0x362427]=_0x52db3a['innerHTML']);}return _0xf05692;}['_sortRoots'](_0x531a0e){if(!function(_0x27de68){return void 0x0!==_0x27de68['getRootsAttributes'];}(_0x531a0e))return _0x531a0e['model']['document']['getRootNames']();const _0x549a2d=[],_0x3d05e7=new Map();for(const _0xa3d2ff of _0x531a0e['model']['document']['getRootNames']()){const _0x16c461=_0x531a0e['editing']['view']['getDomRoot'](_0xa3d2ff)['getClientRects']()['item'](0x0);_0x549a2d['push'](_0xa3d2ff),_0x3d05e7['set'](_0xa3d2ff,_0x16c461);}return _0x549a2d['sort']((_0x3b480a,_0x6be2d9)=>{const _0x5af866=_0x3d05e7['get'](_0x3b480a),_0x3aee1a=_0x3d05e7['get'](_0x6be2d9);return _0x5af866['y']-_0x3aee1a['y']||_0x5af866['x']-_0x3aee1a['x'];}),_0x549a2d;}}class Ue extends _0x568c70{static get['requires'](){return[re,_0x33554c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2136c3){super(_0x2136c3),_0x2136c3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2136c3['config']['define']('trackChanges.preview.renderFunction',(_0x4c5541,_0x4d6eea)=>{for(const _0x2c9dfa of _0x4d6eea)_0x4c5541['appendChild'](_0x2c9dfa);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x25cf1c,Plugin as _0x116a29,PendingActions as _0x33c8e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x428d7a,ObservableMixin as _0xdf0621,uid as _0x492477,priorities as _0x144041,insertToPriorityArray as _0x5af390,logWarning as _0x242bbe,getEnvKeystrokeText as _0x397604,FocusTracker as _0x4ec7ea,KeystrokeHandler as _0x4da634,Collection as _0x42d68e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x14e302,IconCancel as _0x2ff71d,IconTrackChanges as _0x459346}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x197994,View as _0x45dd94,ViewCollection as _0x97e7be,FocusCycler as _0x412906,UIModel as _0x1662fa,createDropdown as _0x483a08,SplitButtonView as _0x3c77a1,addListToDropdown as _0x186803,MenuBarMenuView as _0x114742,MenuBarMenuListView as _0x31f0a0,ListSeparatorView as _0x2d3004,MenuBarMenuListItemView as _0x4647b4,MenuBarMenuListItemButtonView as _0x2f308f,BodyCollection as _0xc85bd9,Dialog as _0x382d28}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5a4c16,DocumentCompare as _0x30cb5c,hashObject as _0x1d67e1,surroundingMarkersDetector as _0x232abf,FOCUS_ANNOTATION_KEYSTROKE as _0x147b7e,AriaDescriptionView as _0x4101c8,setupThreadKeyboardNavigation as _0x10ac8d,trimHtml as _0x28264b,UserView as _0x26c0e6,LateFocusButtonView as _0xaf0268,getDateTimeFormatter as _0x5876db,getAllMarkersDomElementsSorted as _0x22e28,sanitizeEditorConfig as _0x53e095}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x517346,ModelLiveRange as _0x2d8975,ModelLivePosition as _0x5cd0d0,ViewDowncastWriter as _0x285051}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1be826,set as _0x129193,isEqual as _0x3a0690,unset as _0x25ba5b,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5dc36c,Input as _0xfc0fdb}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x402d32}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4a131b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x25cf1c{['_enabledCommands'];constructor(_0x535125,_0xa5204e){super(_0x535125),this['_enabledCommands']=_0xa5204e,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 _0x36337d of this['editor']['commands']['commands']())_0x36337d['affectsData']&&!this['_enabledCommands']['has'](_0x36337d)&&_0x36337d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x228edd of this['editor']['commands']['commands']())_0x228edd['affectsData']&&!this['_enabledCommands']['has'](_0x228edd)&&_0x228edd['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x25cf1c{['_suggestions'];constructor(_0x539a0a,_0x144160){super(_0x539a0a),this['_suggestions']=_0x144160,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x70dff9){const _0x2d821a=this['_suggestions']['get'](_0x70dff9);if(!_0x2d821a)throw new _0x428d7a('track-changes-accept-suggestion-not-found',this);const _0x5d50ee=_0x2d821a['getRanges']();this['editor']['model']['canEditAt'](_0x5d50ee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2d821a);}}class D extends _0x25cf1c{['_suggestions'];constructor(_0x108bb8,_0x96bd6e){super(_0x108bb8),this['_suggestions']=_0x96bd6e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x28d6ce){const _0x15e96b=this['_suggestions']['get'](_0x28d6ce);if(!_0x15e96b)throw new _0x428d7a('track-changes-discard-suggestion-not-found',this);const _0x1ca451=_0x15e96b['getRanges']();this['editor']['model']['canEditAt'](_0x1ca451)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x15e96b);}}function ls(_0x4bb14d,_0x320252){let _0x579927='';return _0x579927+=_0x4bb14d['split']('*')['map']((_0xa810e3,_0x197eaa)=>_0x197eaa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0xa810e3)+'</span>':rn(_0xa810e3))['join'](''),_0x320252&&(_0x579927+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x320252['value']+'\x22\x20title=\x22'+_0x320252['title']+'\x22></span>'),_0x579927;}function rn(_0x31e07f){const _0x3346c0=document['createElement']('span');return _0x3346c0['innerText']=_0x31e07f,_0x3346c0['innerHTML'];}function ts(_0x5d0ac1){return _0x5d0ac1['sort']((_0x413c79,_0x1668de)=>'attribute'===_0x413c79['type']&&'attribute'!==_0x1668de['type']?-0x1:'attribute'!==_0x413c79['type']&&'attribute'===_0x1668de['type']?0x1:'deletion'==_0x413c79['type']&&'deletion'!=_0x1668de['type']?-0x1:'deletion'!=_0x413c79['type']&&'deletion'==_0x1668de['type']?0x1:0x0);}function to(_0xe6cc72,_0x3b3442){let _0x2c24f7,_0x40ef4c=0x0;const _0x2800f9=[],_0x1518db=_0x3b3442['schema'];for(;_0x40ef4c<_0xe6cc72['length'];){const _0x422ad3=_0xe6cc72[_0x40ef4c],_0x28facb=_0xe6cc72[_0x40ef4c+0x1];_0x2c24f7||(_0x2c24f7=_0x3b3442['createPositionBefore'](_0x422ad3)),cn(_0x3b3442,_0x422ad3,_0x28facb)||(_0x2800f9['push'](_0x3b3442['createRange'](_0x2c24f7,_0x1518db['isObject'](_0x422ad3)?_0x3b3442['createPositionAfter'](_0x422ad3):_0x3b3442['createPositionAt'](_0x422ad3,'end'))),_0x2c24f7=null),_0x40ef4c++;}return _0x2800f9;}function cn(_0x4c1269,_0x3db505,_0x43fb41){if(!_0x43fb41)return!0x1;const _0x55731d=_0x4c1269['createPositionAfter'](_0x3db505),_0x1b1fcc=_0x4c1269['createPositionBefore'](_0x43fb41);return _0x55731d['isTouching'](_0x1b1fcc);}function rs(_0x104fc5,_0x5d57b1,_0x1f1813){for(;_0x1f1813['length'];){const _0xb03208=_0x1f1813['splice'](0x0,0x64);_0x104fc5['change'](()=>{for(const _0x30fd83 of _0xb03208)_0x30fd83['isInContent']&&_0x5d57b1['execute'](_0x30fd83['id']);});}}class B extends _0x25cf1c{['_command'];['_suggestions'];constructor(_0x233819,_0x527c23,_0x5926fb){super(_0x233819),this['_command']=_0x527c23,this['_suggestions']=_0x5926fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b1a1c=Array['from'](this['_suggestions']['values']())['some'](_0x47957f=>_0x47957f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b1a1c;}['execute'](){const _0x24d5a1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x18b918 of _0x24d5a1){const _0x22ad7d=_0x18b918['getRanges']();if(!this['editor']['model']['canEditAt'](_0x22ad7d))return;}rs(this['editor']['model'],this['_command'],_0x24d5a1);}}class O extends _0x25cf1c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4950fc,_0xb00e08,_0xf1eb6){super(_0x4950fc),this['_command']=_0xb00e08,this['_suggestions']=_0xf1eb6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27195a=this['editor']['model']['document']['selection'],_0x19876e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x313eeb,_0xbe0f7){const _0x371217=Array['from'](_0x313eeb['getRanges']()),_0x55a842=new Set();for(const _0x5a7953 of _0xbe0f7)if(_0x5a7953['isInContent']){for(const _0x12709d of _0x371217)for(const _0x1588ce of _0x5a7953['getRanges']())(_0x12709d['isIntersecting'](_0x1588ce)||_0x313eeb['isCollapsed']&&!_0x5a7953['isMultiRange']&&_0x5a7953['next']&&_0x1588ce['end']['isTouching'](_0x12709d['start']))&&_0x55a842['add'](_0x5a7953);}return _0x55a842;}(_0x27195a,_0x19876e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54ce2d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x31918f of _0x54ce2d){const _0x51bce4=_0x31918f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x51bce4))return;}rs(this['editor']['model'],this['_command'],_0x54ce2d);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xdf0621(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x43bd08,_0xe33830){super(),this['id']=_0xe33830['id'],this['type']=_0xe33830['type'],this['subType']=_0xe33830['subType']||null,this['author']=_0xe33830['author'],this['creator']=_0xe33830['creator']||_0xe33830['author'],this['isExternal']=Boolean(_0xe33830['attributes']&&_0xe33830['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xe33830['originalSuggestionId']||null,this['_model']=_0x43bd08,this['_onAccept']=_0xe33830['onAccept'],this['_onDiscard']=_0xe33830['onDiscard'],this['_onAttributesChange']=_0xe33830['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe33830['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 _0x1bdf9f=this;for(;_0x1bdf9f['previous'];)_0x1bdf9f=_0x1bdf9f['previous'];return _0x1bdf9f;}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'](_0x400ee6){this['_markerNames']['add'](_0x400ee6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x255dfa=>this['_model']['markers']['get'](_0x255dfa))['filter'](_0x599bc9=>_0x599bc9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb2d9ba=>{for(const _0x1a26b6 of this['getMarkers']())_0xb2d9ba['removeMarker'](_0x1a26b6);}),this['_markerNames']['clear']();}['removeMarker'](_0x588091){this['_model']['change'](_0x210189=>{_0x210189['removeMarker'](_0x588091);}),this['_markerNames']['delete'](_0x588091);}['addRange'](_0x5b70b6){const _0x1568b8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1568b8),this['_model']['change'](_0x168ef0=>{_0x168ef0['addMarker'](_0x1568b8,{'range':_0x5b70b6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4044b1){for(const _0x1523e2 of this['getRanges']())if(_0x1523e2['isIntersecting'](_0x4044b1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x880006=>_0x880006['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44a374,_0x46729c)=>[..._0x44a374,..._0x46729c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x375c63=this['getRanges']();if(0x1!=_0x375c63['length'])return null;const _0x392458=_0x375c63[0x0],_0x3e986d=_0x392458['start']['nodeAfter'],_0x4b630a=_0x392458['end']['nodeBefore'];return _0x3e986d instanceof _0x517346?_0x3e986d!=_0x4b630a?null:_0x3e986d: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 _0x47fc76=[];let _0xaeed9b=this['head'];for(;_0xaeed9b;)_0x47fc76['push'](_0xaeed9b),_0xaeed9b=_0xaeed9b['next'];return _0x47fc76;}['setAttribute'](_0x1e6e76,_0x205b72){const _0x378671=_0x1be826(this['attributes']);_0x129193(_0x378671,_0x1e6e76,_0x205b72),_0x3a0690(_0x378671,this['attributes'])||(this['attributes']=_0x378671,this['_onAttributesChange'](_0x378671));}['removeAttribute'](_0x37c0f1){const _0x44786a=_0x1be826(this['attributes']);_0x25ba5b(_0x44786a,_0x37c0f1),_0x3a0690(_0x44786a,this['attributes'])||(this['attributes']=_0x44786a,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 _0x492477()['substr'](0x1,0x5);}}function o(_0x5c3dad,_0x345da9,_0x16456b){const _0x436c8d=_0x5c3dad['t'],t=_0x5c3dad['t'];switch(_0x345da9){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',_0x16456b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16456b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16456b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16456b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16456b);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',_0x16456b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16456b);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',_0x16456b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16456b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16456b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16456b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16456b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16456b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x16456b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16456b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16456b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16456b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16456b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16456b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16456b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16456b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16456b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16456b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16456b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x16456b);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'},_0x16456b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x16456b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x16456b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16456b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16456b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16456b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16456b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16456b);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'},_0x16456b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16456b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16456b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16456b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16456b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x16456b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16456b);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'},_0x16456b);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'},_0x16456b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16456b);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'},_0x16456b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16456b);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'},_0x16456b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16456b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x16456b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x16456b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x16456b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16456b);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'},_0x16456b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x16456b);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 _0x436c8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16456b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x436c8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16456b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x16456b);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'},_0x16456b);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'},_0x16456b);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'},_0x16456b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x345da9;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x54dfe3,_0xe7e39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x54dfe3,this['_locale']=_0xe7e39;}['getDescriptions'](_0x2e93fe){const _0x5c5f40=[],_0x2b503c=new Set(),_0x5cd76e=new Set();for(let _0x5ede02=0x0;_0x5ede02<_0x2e93fe['length'];_0x5ede02++){const _0xe7088c=_0x2e93fe[_0x5ede02];if(!_0xe7088c['isInContent'])continue;const _0x4502f7=this['_handleCustomCallbackDescription'](_0xe7088c);if(_0x4502f7){if(null!=_0xe7088c['subType']){if(_0x2b503c['has'](_0xe7088c['subType']))continue;_0x2b503c['add'](_0xe7088c['subType']);}_0x5c5f40['push'](_0x4502f7);}else{if('attribute'==_0xe7088c['type']){const _0x455acc=_0xe7088c['data']['key'];if(_0x5cd76e['has'](_0x455acc))continue;_0x5cd76e['add'](_0xe7088c['data']['key']),_0x455acc==m?this['_handleRenameSuggestionDescription'](_0x5c5f40,_0xe7088c):this['_handleAttributeSuggestionDescription'](_0x5c5f40,_0xe7088c);continue;}'insertion'!=_0xe7088c['type']&&'deletion'!=_0xe7088c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5c5f40,_0xe7088c,_0x2e93fe[_0x5ede02+0x1]);}}return this['_resolveDescriptionItems'](_0x5c5f40);}['registerDescriptionCallback'](_0x18c37b){this['_customCallbacks']['push'](_0x18c37b);}['registerElementLabel'](_0x2fa0a6,_0x3aba3d,_0x49298b=_0x144041['normal']){'function'==typeof _0x2fa0a6?_0x5af390(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2fa0a6,'label':_0x3aba3d,'priority':_0x49298b}):this['_itemLabels']['set'](_0x2fa0a6,_0x3aba3d);}['registerAttributeLabel'](_0x38d0aa,_0x2b3b10){this['_attributeLabels']['set'](_0x38d0aa,_0x2b3b10);}['getItemLabel'](_0x1e37d2,_0x5b1720=0x1){let _0x5a7c54;for(const _0x4a2e00 of this['_itemLabelsCallbacks'])if(_0x4a2e00['matchingCallback'](_0x1e37d2)){_0x5a7c54=_0x4a2e00['label'];break;}return _0x5a7c54||(_0x5a7c54=this['_itemLabels']['get'](_0x1e37d2['name'])),_0x5a7c54?_0x5a7c54(_0x5b1720):0x1!==_0x5b1720?_0x5b1720+'\x20'+_0x1e37d2['name']+'s':''+_0x1e37d2['name'];}['_addDescriptionItems'](_0x1e41a6,_0x1f505a){const _0x2bbb27=_0x1f505a['getFirstRange']()['getWalker'](),_0x59c114='insertion'==_0x1f505a['type']?'add':'remove';for(const _0x1fd1aa of _0x2bbb27){const _0x18b53c=_0x1fd1aa['item'],_0x453506=_0x1e41a6[_0x1e41a6['length']-0x1];if(_0x18b53c['is']('$textProxy'))_0x453506&&_0x453506['type']['indexOf']('Container')>-0x1&&_0x1e41a6['pop'](),_0x453506&&'text'==_0x453506['type']?_0x453506[_0x59c114]+=_0x18b53c['data']:_0x1e41a6['push']({'type':'text','add':'add'==_0x59c114?_0x18b53c['data']:'','remove':'remove'==_0x59c114?_0x18b53c['data']:''});else{if(this['_schema']['isObject'](_0x18b53c)){const _0x1f3c6b=_0x18b53c;if(_0x453506&&_0x453506['type']['indexOf']('Container')>-0x1&&_0x1e41a6['pop'](),'elementEnd'==_0x1fd1aa['type'])continue;_0x453506&&_0x453506['type']==_0x59c114+'Object'&&_0x453506['element']['name']==_0x1f3c6b['name']?_0x453506['quantity']++:_0x1e41a6['push']({'type':_0x59c114+'Object','element':_0x1f3c6b,'quantity':0x1}),_0x2bbb27['skip'](_0x28b1a4=>!('elementEnd'==_0x28b1a4['type']&&_0x28b1a4['item']==_0x18b53c));}else{if(this['_schema']['checkChild'](_0x18b53c,'$text')||_0x18b53c['is']('element','softBreak')){const _0x4bed7b=_0x18b53c;if('add'==_0x59c114&&'elementStart'==_0x1fd1aa['type']||'remove'==_0x59c114&&'elementEnd'==_0x1fd1aa['type'])continue;if(_0x453506&&-0x1==_0x453506['type']['indexOf']('Container')){'text'==_0x453506['type']&&(_0x453506[_0x59c114]+='\x0a');continue;}let _0x4e8f32;if(_0x4e8f32='add'==_0x59c114?_0x4bed7b['nextSibling']&&!this['_schema']['isObject'](_0x4bed7b['nextSibling'])?_0x4bed7b['nextSibling']:null:_0x4bed7b['previousSibling']&&!this['_schema']['isObject'](_0x4bed7b['previousSibling'])?_0x4bed7b['previousSibling']:null,_0x4bed7b['isEmpty']||_0x4e8f32&&_0x4e8f32['isEmpty']){const _0x37f0aa=_0x4e8f32&&_0x4e8f32['isEmpty']?_0x4e8f32:_0x4bed7b;_0x453506&&_0x453506['type']==_0x59c114+'EmptyContainer'&&_0x453506['element']['name']==_0x37f0aa['name']?_0x453506['quantity']++:_0x1e41a6['push']({'type':_0x59c114+'EmptyContainer','element':_0x37f0aa,'quantity':0x1});}else _0x1e41a6['push']({'type':_0x59c114+'Container','element':_0x4bed7b});}}}}}['_resolveDescriptionItems'](_0x2a61be){const _0x2f2760=this['_locale'],_0x532aae=[],_0x1a7f88=[],_0x49a438=[];for(const _0x1d8c71 of _0x2a61be)switch(_0x1d8c71['type']){case'text':if(_0x1d8c71['add']=_0x1d8c71['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d8c71['remove']=_0x1d8c71['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d8c71['add']&&''!=_0x1d8c71['remove']){_0x532aae['push']({'type':'replace','content':o(_0x2f2760,'REPLACE_TEXT',['\x22'+_0x1d8c71['remove']+'\x22','\x22'+_0x1d8c71['add']+'\x22'])});continue;}if(null!=_0x1d8c71['add']['match'](/^ +$/)){_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0',o(_0x2f2760,'ELEMENT_SPACE',_0x1d8c71['add']['length']))});continue;}if(null!=_0x1d8c71['remove']['match'](/^ +$/)){_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0',o(_0x2f2760,'ELEMENT_SPACE',_0x1d8c71['remove']['length']))});continue;}if(''!=_0x1d8c71['add']){_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0','\x22'+_0x1d8c71['add']+'\x22')});continue;}_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0','\x22'+_0x1d8c71['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Insert:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Remove:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'addContainer':_0x532aae['push']({'type':'insertion','content':o(_0x2f2760,'*Split:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'removeContainer':_0x532aae['push']({'type':'deletion','content':o(_0x2f2760,'*Merge:*\x20%0',this['getItemLabel'](_0x1d8c71['element'],_0x1d8c71['quantity']))});continue;case'addFormat':_0x1a7f88['push'](_0x1d8c71['key']);continue;case'removeFormat':_0x49a438['push'](_0x1d8c71['key']);continue;default:_0x532aae['push'](_0x1d8c71);}if(_0x1a7f88['length']){const _0xbaf7e7=_0x1a7f88['map'](_0x4b4f1e=>this['_attributeLabels']['has'](_0x4b4f1e)?this['_attributeLabels']['get'](_0x4b4f1e):_0x4b4f1e)['join'](',\x20');_0x532aae['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xbaf7e7)});}if(_0x49a438['length']){const _0x591778=_0x49a438['map'](_0x2776d3=>this['_attributeLabels']['has'](_0x2776d3)?this['_attributeLabels']['get'](_0x2776d3):_0x2776d3)['join'](',\x20');_0x532aae['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x591778)});}return _0x532aae;}['_handleCustomCallbackDescription'](_0x193699){for(const _0x307de6 of this['_customCallbacks']){const _0x2610e3=_0x307de6(_0x193699);if(_0x2610e3&&'type'in _0x2610e3)return _0x2610e3;}}['_handleAttributeSuggestionDescription'](_0x1f586f,_0x52bdda){const _0xbd2844=_0x52bdda['data'],_0x25d07b=void 0x0===_0xbd2844['newValue']?'removeFormat':'addFormat';_0x1f586f['push']({'type':_0x25d07b,'key':_0xbd2844['key']});}['_handleRenameSuggestionDescription'](_0x28ce31,_0x2f8e35){_0x28ce31['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2f8e35['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x28fdd9,_0x42db21,_0x5f1026){if(this['_addDescriptionItems'](_0x28fdd9,_0x42db21),_0x5f1026&&_0x5f1026['getFirstRange']()&&!_0x42db21['getFirstRange']()['end']['isEqual'](_0x5f1026['getFirstRange']()['start'])){const _0x442553=_0x28fdd9[_0x28fdd9['length']-0x1],_0x104599='insertion'==_0x42db21['type']?'add':'remove';_0x442553&&'text'==_0x442553['type']&&(_0x442553[_0x104599]+='\x0a');}}}class R extends _0x116a29{['afterInit'](){const _0x1748c1=this['editor'],_0x1bce55=_0x1748c1['plugins']['get']('TrackChangesEditing');_0x1748c1['commands']['get']('showAIAssistant')&&_0x1bce55['enableCommand']('showAIAssistant');}}class T extends _0x116a29{['afterInit'](){const _0x2fae16=this['editor'],_0x47ba00=_0x2fae16['plugins']['get']('TrackChangesEditing');_0x2fae16['commands']['get']('toggleAi')&&_0x47ba00['enableCommand']('toggleAi');}}class E extends _0x116a29{['afterInit'](){const _0x2384d3=this['editor'],_0x46352d=_0x2384d3['plugins']['get']('TrackChangesEditing');_0x2384d3['commands']['get']('aiQuickAction')&&_0x46352d['enableCommand']('aiQuickAction');}}class U extends _0x116a29{['afterInit'](){const _0x22b673=this['editor'],_0x1f6ae3=_0x22b673['locale'];if(!_0x22b673['plugins']['has']('AlignmentEditing'))return;const _0x4a3002=_0x22b673['plugins']['get']('TrackChangesEditing');_0x4a3002['enableDefaultAttributesIntegration']('alignment'),_0x4a3002['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1f6ae3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86b846=this['editor'],_0x13bf7b=_0x86b846['locale'];_0x86b846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x299b1e=>{if('formatBlock'!=_0x299b1e['type'])return;const {data:_0x404491}=_0x299b1e;if(_0x404491&&'alignment'==_0x404491['commandName']){const _0x1ad926=_0x404491['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x13bf7b,'*Format:*\x20%0',function(_0x35b6ed){switch(_0x35b6ed){case'left':return o(_0x13bf7b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x13bf7b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x13bf7b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x13bf7b,'FORMAT_JUSTIFY_TEXT');}}(_0x1ad926))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x116a29{['afterInit'](){const _0x4dde5f=this['editor'],_0x2099c9=_0x4dde5f['plugins']['get']('TrackChangesEditing'),_0x1ec61a=_0x4dde5f['locale'];for(const _0xe70d26 of ti){if(!_0x4dde5f['plugins']['has'](_0xe70d26))continue;const _0x272365=_0xe70d26['slice'](0x0,-0x7)['toLowerCase'](),_0x4e4c11='FORMAT_'+_0x272365['toUpperCase']();_0x2099c9['enableDefaultAttributesIntegration'](_0x272365),_0x2099c9['descriptionFactory']['registerAttributeLabel'](_0x272365,o(_0x1ec61a,_0x4e4c11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117f22=this['editor'],_0x6fd8b0=_0x117f22['locale'],_0x26d634=_0x117f22['plugins']['get']('TrackChangesEditing');function _0x57a1e1(_0x310b95,_0x310f8d){_0x26d634['descriptionFactory']['registerDescriptionCallback'](_0xcf2909=>{if('formatInline'!=_0xcf2909['type'])return;const {data:_0xf0c7e5}=_0xcf2909;return _0xf0c7e5&&_0xf0c7e5['commandName']===_0x310b95?_0xf0c7e5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6fd8b0,'*Format:*\x20%0',_0x310f8d)}:{'type':'format','content':o(_0x6fd8b0,'*Remove\x20format:*\x20%0',_0x310f8d)}:void 0x0;});}_0x57a1e1('bold',o(_0x6fd8b0,'FORMAT_BOLD')),_0x57a1e1('italic',o(_0x6fd8b0,'FORMAT_ITALIC')),_0x57a1e1('underline',o(_0x6fd8b0,'FORMAT_UNDERLINE')),_0x57a1e1('code',o(_0x6fd8b0,'FORMAT_CODE')),_0x57a1e1('strikethrough',o(_0x6fd8b0,'FORMAT_STRIKETHROUGH')),_0x57a1e1('subscript',o(_0x6fd8b0,'FORMAT_SUBSCRIPT')),_0x57a1e1('superscript',o(_0x6fd8b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x116a29{['afterInit'](){const _0x34c48e=this['editor'],_0x3fadd4=_0x34c48e['locale'];if(!_0x34c48e['plugins']['has']('BlockQuoteEditing'))return;const _0x415e6f=_0x34c48e['plugins']['get']('TrackChangesEditing'),_0x119c6f=this['editor']['commands']['get']('blockQuote');_0x415e6f['enableCommand']('blockQuote',(_0x4e739b,_0x2588f5={})=>{const _0x33526f=this['editor']['model']['document']['selection'],_0x13a12f=_0x2588f5&&void 0x0!==_0x2588f5['forceValue']?_0x2588f5['forceValue']:!_0x119c6f['value'];let _0x5a08d4=[];if(_0x13a12f){const _0x2e107d=Array['from'](_0x33526f['getSelectedBlocks']())['filter'](_0x4907ed=>oo(_0x4907ed)||function(_0x192f6f,_0x51120d){const _0x25c114=_0x51120d['checkChild'](_0x192f6f['parent'],'blockQuote'),_0x340ed5=_0x51120d['checkChild'](['$root','blockQuote'],_0x192f6f);return _0x25c114&&_0x340ed5;}(_0x4907ed,this['editor']['model']['schema']));_0x5a08d4=to(_0x2e107d,_0x34c48e['model']);}else{const _0x290bf2=Array['from'](_0x33526f['getSelectedBlocks']())['filter'](_0x41dd14=>oo(_0x41dd14));_0x5a08d4=to(_0x290bf2,_0x34c48e['model']);}_0x34c48e['model']['change'](()=>{for(const _0x324ec7 of _0x5a08d4)_0x415e6f['markBlockFormat'](_0x324ec7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x13a12f}]});});}),_0x415e6f['descriptionFactory']['registerDescriptionCallback'](_0x3c3feb=>{const {data:_0xf1d9ef}=_0x3c3feb;if(_0xf1d9ef&&'blockQuote'==_0xf1d9ef['commandName']){const _0x5ee60e=o(_0x3fadd4,'ELEMENT_BLOCK_QUOTE');return _0xf1d9ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fadd4,'*Set\x20format:*\x20%0',_0x5ee60e)}:{'type':'format','content':o(_0x3fadd4,'*Remove\x20format:*\x20%0',_0x5ee60e)};}});}}function oo(_0x516031){return'blockQuote'==_0x516031['parent']['name'];}class G extends _0x116a29{['afterInit'](){const _0x3a467c=this['editor'],_0xe69d8b=_0x3a467c['locale'],_0x418335=_0x3a467c['plugins']['get']('TrackChangesEditing');_0x3a467c['plugins']['has']('BookmarkEditing')&&(_0x418335['enableCommand']('insertBookmark'),_0x418335['enableDefaultAttributesIntegration']('updateBookmark'),_0x418335['descriptionFactory']['registerDescriptionCallback'](_0x11e23a=>{if('insertion'!=_0x11e23a['type']&&'deletion'!=_0x11e23a['type']&&'attribute'!=_0x11e23a['type'])return;const _0x5b30db=_0x11e23a['getContainedElement']();if(null==_0x5b30db)return;if(!_0x5b30db['is']('element','bookmark'))return;const _0x41712c=_0x5b30db['getAttribute']('bookmarkId');if('insertion'==_0x11e23a['type'])return{'type':'insertion','content':o(_0xe69d8b,'*Insert:*\x20%0','\x22'+_0x41712c+'\x22\x20'+o(_0xe69d8b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x11e23a['type'])return{'type':'deletion','content':o(_0xe69d8b,'*Remove:*\x20%0','\x22'+_0x41712c+'\x22\x20'+o(_0xe69d8b,'ELEMENT_BOOKMARK'))};const {data:_0x1d9647}=_0x11e23a;if(!_0x1d9647||'bookmarkId'!=_0x1d9647['key'])return;return{'type':'format','content':o(_0xe69d8b,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d9647['newValue']+'\x22')};}));}}class L extends _0x116a29{['afterInit'](){const _0x36cd35=this['editor'];_0x36cd35['plugins']['has']('CaseChange')&&(_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36cd35['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x116a29{['afterInit'](){const _0x343a23=this['editor'];_0x343a23['commands']['get']('ckbox')&&_0x343a23['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x116a29{['afterInit'](){const _0x3f1720=this['editor'];if(!_0x3f1720['plugins']['has']('CodeBlock'))return;const _0x106860=_0x3f1720['plugins']['get']('TrackChangesEditing'),_0x159ad7=_0x3f1720['locale'],_0x3b81a1=_0x3f1720['config']['get']('codeBlock')['languages'],_0x45a4b4=_0x3f1720['commands']['get']('codeBlock');_0x106860['enableCommand']('indentCodeBlock'),_0x106860['enableCommand']('outdentCodeBlock'),_0x106860['enableCommand']('codeBlock',(_0x48f011,_0x2846f9={})=>{const _0x3cffd3=_0x3f1720['model'],_0x4a077d=_0x3f1720['model']['document']['selection'],_0x13ec3f=_0x2846f9&&void 0x0!==_0x2846f9['forceValue']?_0x2846f9['forceValue']:!_0x45a4b4['value'];let _0x3092a7;_0x2846f9['language']||(_0x2846f9['language']=_0x3b81a1[0x0]['language']),_0x3092a7=_0x13ec3f?Array['from'](_0x4a077d['getSelectedBlocks']())['filter'](_0x4dd676=>co(_0x4dd676)||function(_0x658aef,_0x7b1d3){if(_0x658aef['is']('rootElement')||_0x7b1d3['isLimit'](_0x658aef))return!0x1;return _0x7b1d3['checkChild'](_0x658aef['parent'],'codeBlock');}(_0x4dd676,_0x3cffd3['schema'])):Array['from'](_0x4a077d['getSelectedBlocks']())['filter'](_0x1a49c8=>co(_0x1a49c8));const _0x3b31d0=to(_0x3092a7,_0x3cffd3);_0x3cffd3['change'](()=>{for(const _0x176ca9 of _0x3b31d0)_0x106860['markBlockFormat'](_0x176ca9,{'commandName':'codeBlock','commandParams':[{..._0x2846f9,'forceValue':_0x13ec3f}],'formatGroupId':'blockName'});});}),(_0x106860['descriptionFactory']['registerElementLabel']('codeBlock',_0x1fa7ff=>o(_0x159ad7,'ELEMENT_CODE_BLOCK',_0x1fa7ff)),_0x106860['descriptionFactory']['registerDescriptionCallback'](_0x18ccb5=>{if('formatBlock'!=_0x18ccb5['type'])return;const _0x12ebb8=_0x159ad7['t'],{data:_0x44fe49}=_0x18ccb5;if(!_0x44fe49||'codeBlock'!=_0x44fe49['commandName'])return;const _0x50a9d1=_0x44fe49['commandParams'][0x0]['language'],_0x1c4490=_0x12ebb8(_0x3b81a1['find'](_0x4ee340=>_0x4ee340['language']===_0x50a9d1)['label'])['toLowerCase']();return _0x44fe49['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x159ad7,'*Set\x20format:*\x20%0',o(_0x159ad7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c4490+')')}:{'type':'format','content':o(_0x159ad7,'*Remove\x20format:*\x20%0',o(_0x159ad7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x82fee0){return'codeBlock'==_0x82fee0['name'];}class z extends _0x116a29{['afterInit'](){const _0x8c7cfd=this['editor'];if(!_0x8c7cfd['plugins']['has']('CommentsEditing'))return;_0x8c7cfd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x116a29{static get['requires'](){return[_0x5dc36c];}['init'](){const _0x151ab5=this['editor'],_0x230ab9=_0x151ab5['plugins']['get']('TrackChangesEditing');_0x230ab9['enableCommand']('delete');const _0x2930f1=_0x151ab5['commands']['get']('deleteForward');_0x230ab9['enableCommand']('deleteForward',(_0x2d9729,_0x138210={})=>{const _0x4bcd2e=_0x151ab5['model']['createSelection'](_0x151ab5['model']['document']['selection']);_0x4bcd2e['isCollapsed']&&_0x151ab5['model']['modifySelection'](_0x4bcd2e,{'direction':'forward','unit':_0x138210['unit']});const _0x5106b6=_0x4bcd2e['getFirstRange'](),_0x48906d=_0x2d8975['fromRange'](_0x5106b6);let _0x4db381;_0x2d9729(_0x138210),_0x4db381='$graveyard'==_0x48906d['root']['rootName']?_0x151ab5['model']['createRange'](_0x5106b6['start']):_0x151ab5['model']['createRange'](_0x48906d['start'],_0x48906d['end']),_0x48906d['detach'](),_0x151ab5['model']['enqueueChange'](_0x2930f1['buffer']['batch'],_0x2c6d6f=>{_0x2930f1['buffer']['lock'](),_0x2c6d6f['setSelection'](_0x2c6d6f['createRange'](_0x4db381['end'])),_0x2930f1['buffer']['unlock']();});});}}class W extends _0x116a29{['afterInit'](){const _0x2dee03=this['editor'];if(!_0x2dee03['plugins']['has']('ListEditing'))return;const _0x1490df=_0x2dee03['locale'],_0x270120=_0x2dee03['plugins']['get']('TrackChangesEditing'),_0xdf7434=_0x2dee03['plugins']['has']('TodoListEditing'),_0x34f874=!!_0x2dee03['config']['get']('list.multiBlock');function _0x1cb325(_0x35e401){return{'type':'format','content':''+o(_0x1490df,'*Set\x20format:*\x20%0',_0x35e401)};}function _0x5c7665(_0x245f80){return{'type':'format','content':''+o(_0x1490df,'*Remove\x20format:*\x20%0',_0x245f80)};}_0x270120['enableDefaultAttributesIntegration']('numberedList'),_0x270120['enableDefaultAttributesIntegration']('bulletedList'),_0x270120['enableDefaultAttributesIntegration']('customNumberedList'),_0x270120['enableDefaultAttributesIntegration']('customBulletedList'),_0x270120['enableDefaultAttributesIntegration']('indentList'),_0x270120['enableDefaultAttributesIntegration']('outdentList'),_0x270120['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x270120['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x34f874&&(_0x270120['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x270120['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdf7434&&(_0x270120['enableDefaultAttributesIntegration']('todoList'),_0x270120['enableDefaultAttributesIntegration']('checkTodoList'),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x3eb04=>{const {data:_0x16b860}=_0x3eb04;if(_0x16b860&&'todoListChecked'==_0x16b860['key'])return{'type':'format','content':_0x16b860['newValue']?o(_0x1490df,'*Check\x20item*'):o(_0x1490df,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a684e=>{if(_0x2a684e['batch']['isUndo'])return!0x1;let _0x118382=!0x1;const _0x2b5fa4=_0x270120['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22465e=>'todoListChecked'===_0x270120['_getAttributeKey'](_0x22465e));for(const _0x7b59b7 of _0x2b5fa4){'todo'!=_0x7b59b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x270120['_findSuggestions'](_0x7b59b7['getFirstRange'](),'attribute')['find'](_0x16b240=>'listType'===_0x270120['_getAttributeKey'](_0x16b240['suggestion']))||(_0x2a684e['removeMarker'](_0x7b59b7['getFirstMarker']()),_0x118382=!0x0));}return _0x118382;})),_0x270120['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1490df,'FORMAT_INDENT'));const _0xc1b522={'type':'format','content':''};_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x48102a=>{const {data:_0xb3a01c}=_0x48102a;if(!_0xb3a01c||'listType'!=_0xb3a01c['key'])return;let _0x3a33ea=_0x48102a['head'];for(;_0x3a33ea;){if(_0x3a33ea['data']&&(('listStyle'==_0x3a33ea['data']['key']||'listMarkerStyle'==_0x3a33ea['data']['key'])&&(_0x3a33ea['data']['newValue']&&'default'!=_0x3a33ea['data']['newValue']||'default'!=_0x3a33ea['data']['oldValue']&&!_0xb3a01c['newValue'])||!_0x34f874&&_0x3a33ea['data']['key']==m))return _0xc1b522;_0x3a33ea=_0x3a33ea['next'];}if(null==_0xb3a01c['newValue'])switch(_0xb3a01c['oldValue']){case'bulleted':return _0x5c7665(o(_0x1490df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c7665(o(_0x1490df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c7665(o(_0x1490df,'ELEMENT_TODO_LIST'));}switch(_0xb3a01c['newValue']){case'bulleted':return _0x1cb325(o(_0x1490df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cb325(o(_0x1490df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cb325(o(_0x1490df,'ELEMENT_TODO_LIST'));}}),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0x50d23d=>{const {data:_0x494c4d}=_0x50d23d;if(_0x494c4d&&'listIndent'==_0x494c4d['key'])return null==_0x494c4d['newValue']||null==_0x494c4d['oldValue']&&0x0==_0x494c4d['newValue']?_0xc1b522:void 0x0;}),_0x270120['descriptionFactory']['registerDescriptionCallback'](_0xa99b44=>{if('attribute'!=_0xa99b44['type'])return;const {data:_0x1c5aab}=_0xa99b44;if(!_0x1c5aab||'listItemId'!=_0x1c5aab['key'])return;const _0x547e27=Te(_0xa99b44);return'newValue'==_0x547e27?{'type':'format','content':o(_0x1490df,'*Merge:*\x20list\x20item')}:'oldValue'==_0x547e27?{'type':'format','content':o(_0x1490df,'*Split:*\x20list\x20item')}:_0xc1b522;}),_0x2dee03['model']['document']['registerPostFixer'](_0x337056=>this['listItemIdFixer'](_0x337056)),_0x2dee03['model']['document']['registerPostFixer'](_0x304f75=>this['noTrackChangesFixer'](_0x304f75)),_0x2dee03['model']['document']['on']('change:data',(_0x23615f,_0x21fbef)=>{if(_0x21fbef['isUndo']||!_0x21fbef['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x261da9){if(_0x261da9['batch']['isUndo']||!_0x261da9['batch']['isLocal'])return!0x1;let _0x12671d=!0x1;const _0x33301c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe1ec7c=>_0xe1ec7c['data']&&'listItemId'==_0xe1ec7c['data']['key'])['filter'](_0x368b04=>_0x368b04['data']['newValue']&&_0x368b04['data']['oldValue']);for(const _0x1aaf5c of _0x33301c)Te(_0x1aaf5c)||(_0x261da9['removeMarker'](_0x1aaf5c['getFirstMarker']()),_0x12671d=!0x0);return _0x12671d;}['noTrackChangesFixer'](_0x42c190){if(_0x42c190['batch']['isUndo']||!_0x42c190['batch']['isLocal'])return!0x1;const _0x5d67a7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5d67a7['trackChangesCommand']['value'])return!0x1;let _0x42033d=!0x1;const _0x481c26=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45ef7e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5ac152=>'attribute'==_0x5ac152['type'])['filter'](_0x5dda42=>_0x481c26['includes'](_0x5dda42['attributeKey']));if(0x0==_0x45ef7e['length'])return _0x42033d;for(const _0x3ddda7 of _0x45ef7e){const _0x3f653a=_0x5d67a7['_findSuggestions'](_0x3ddda7['range'],'attribute')['filter'](_0x182d34=>!_0x182d34['meta']['isNextTo'])['map'](_0xae8506=>_0xae8506['suggestion'])['filter'](_0xdae80d=>{const _0x507bf7=_0x5d67a7['_getAttributeKey'](_0xdae80d);return _0x481c26['includes'](_0x507bf7);});if(_0x3f653a['length']){for(const _0x40be68 of _0x3f653a)_0x42c190['removeMarker'](_0x40be68['getFirstMarker']());_0x42033d=!0x0;}}return _0x42033d;}['assureChains'](){const _0x32bcdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f538=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe305ce;const _0x285198=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4397=>{if(_0x1b4397['data']['oldRange']||!_0x1b4397['data']['newRange'])return null;if(!_0x1b4397['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb94d68}=_0x32bcdd['_splitMarkerName'](_0x1b4397['name']);if(!_0x32bcdd['hasSuggestion'](_0xb94d68))return null;const _0x25c370=_0x32bcdd['getSuggestion'](_0xb94d68);return _0x51f538['includes'](_0x25c370['data']['key']);})['map'](_0x44342f=>{const {id:_0x191c5d}=_0x32bcdd['_splitMarkerName'](_0x44342f['name']),_0x253c4=_0x32bcdd['getSuggestion'](_0x191c5d);return _0xe305ce=_0x253c4['attributes']['groupId'],_0x253c4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x285198['size'])return;const _0x977390=_0x32bcdd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x193f81=>'attribute'==_0x193f81['type']&&_0x193f81['data']&&_0x51f538['includes'](_0x193f81['data']['key'])&&_0x193f81['attributes']['groupId']!=_0xe305ce)['map'](_0x3a987e=>({'listItem':_0x3a987e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3a987e['attributes']['groupId']})),_0x3d847f=new Set();for(const {groupId:_0x5dc08c,listItem:_0x360e05}of _0x977390)_0x285198['has'](_0x360e05)&&_0x3d847f['add'](_0x5dc08c);for(const _0x248440 of _0x32bcdd['getSuggestions']())_0x3d847f['has'](_0x248440['attributes']['groupId'])&&_0x248440['setAttribute']('groupId',_0xe305ce);}['_supportLegacySuggestions'](){const _0x37b7e4=this['editor'],_0x253509=_0x37b7e4['locale'],_0x3b67cd=_0x37b7e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b67cd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ff66e,_0xe3633d){const _0x43fa77=[];for(let _0x5e97d2 of _0x2ff66e)_0x5e97d2['start']['nodeAfter']===_0x5e97d2['end']['parent']&&(_0x5e97d2=_0x37b7e4['model']['createRange'](_0x37b7e4['model']['createPositionAt'](_0x5e97d2['start']['nodeAfter'],0x0))),_0x43fa77['push'](_0x5e97d2);_0x37b7e4['model']['change'](_0x5a4a38=>{const _0x74073a=_0x37b7e4['model']['document']['selection'],_0x58e8a9=Array['from'](_0x74073a['getRanges']())['map'](_0x544571=>_0x2d8975['fromRange'](_0x544571));_0x5a4a38['setSelection'](_0x43fa77),_0x37b7e4['commands']['get'](_0xe3633d['commandName'])['refresh'](),_0xe3633d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37b7e4['execute'](_0xe3633d['commandName'],..._0xe3633d['commandParams']),_0x5a4a38['setSelection'](_0x58e8a9);for(const _0x182e13 of _0x58e8a9)_0x182e13['detach']();});}),_0x3b67cd['descriptionFactory']['registerElementLabel'](function(_0xd0a7f3){const _0xc5e8b9=!_0x37b7e4['model']['schema']['isObject'](_0xd0a7f3),_0x5504a3=_0xd0a7f3['previousSibling'],_0xffb16f=_0xd0a7f3['nextSibling'],_0x505b29=_0xd0a7f3['getAttribute']('listItemId'),_0x125e6c=!_0x5504a3||_0x5504a3['getAttribute']('listItemId')!==_0x505b29,_0x200d4b=!_0xffb16f||_0xffb16f['getAttribute']('listItemId')!==_0x505b29;return _0xc5e8b9&&Boolean(_0x505b29)&&_0x125e6c&&_0x200d4b;},_0x23509d=>o(_0x253509,'ELEMENT_LIST_ITEM',_0x23509d));}['_registerLegacyDescription'](){const _0x5540b8=this['editor'],_0x2e7065=_0x5540b8['locale'];function _0x13b3c6(_0x2345e3){const _0x126bd8=_0x5540b8['commands']['get']('bulletedList')['value'],_0x1e0f10=_0x5540b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x2345e3?_0x126bd8:_0x1e0f10;}_0x5540b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e0762){if('formatBlock'!=_0x3e0762['type'])return;const {data:_0x3c8ba4}=_0x3e0762;if(!_0x3c8ba4)return;let _0x2a48d7,_0x1d84c4,_0x55d7b7,_0x1db196;switch(_0x3c8ba4['commandName']){case'bulletedList':_0x55d7b7=_0x3c8ba4['commandParams'][0x0]['forceValue'],_0x1db196=_0x13b3c6(_0x3c8ba4['commandName']),_0x2a48d7=_0x55d7b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1db196&&_0x5540b8['config']['get']('list.multiBlock')||(_0x2a48d7='*Change\x20to:*\x20%0'),_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x55d7b7=_0x3c8ba4['commandParams'][0x0]['forceValue'],_0x1db196=_0x13b3c6(_0x3c8ba4['commandName']),_0x2a48d7=_0x55d7b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1db196&&_0x5540b8['config']['get']('list.multiBlock')||(_0x2a48d7='*Change\x20to:*\x20%0'),_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2a48d7='*Indent:*\x20%0',_0x1d84c4={'type':'format','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2a48d7=function(_0x53711b){const _0x17898d=_0x53711b['getFirstRange']();let _0x9f9a66=_0x17898d['start']['nodeAfter'];for(;_0x9f9a66&&_0x17898d['containsItem'](_0x9f9a66);){if(_0x9f9a66['getAttribute']('listIndent')>0x0)return!0x1;_0x9f9a66=_0x9f9a66['nextSibling'];}return!0x0;}(_0x3e0762)?o(_0x2e7065,'*Format:*\x20remove\x20from\x20%0',o(_0x2e7065,function(_0x555062){return'ELEMENT_'+_0x555062['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e0762))):o(_0x2e7065,'*Outdent:*\x20%0',o(_0x2e7065,'ELEMENT_LIST_ITEM')),_0x1d84c4={'type':'format','content':_0x2a48d7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3c8ba4['multipleBlocks']&&(_0x2a48d7='*Merge:*\x20%0',_0x1d84c4={'type':'deletion','content':o(_0x2e7065,_0x2a48d7,o(_0x2e7065,'ELEMENT_LIST_ITEM'))});}return _0x1d84c4;});}}function Te(_0x2d5f9e){let _0x3023c2=_0x2d5f9e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3023c2;){const _0x14fbec=_0x3023c2['getAttribute']('listItemId');if(!_0x14fbec)return!0x1;if(_0x14fbec==_0x2d5f9e['data']['newValue'])return'newValue';if(_0x14fbec==_0x2d5f9e['data']['oldValue'])return'oldValue';_0x3023c2=_0x3023c2['previousSibling'];}return!0x1;}class H extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4dac93=this['editor']['config']['get']('list.properties'),_0x5b1785=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dac93['styles']&&_0x5b1785['enableDefaultAttributesIntegration']('listStyle'),_0x4dac93['reversed']&&_0x5b1785['enableDefaultAttributesIntegration']('listReversed'),_0x4dac93['startIndex']&&_0x5b1785['enableDefaultAttributesIntegration']('listStart');const _0x38ac2f={'type':'format','content':''};_0x5b1785['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x369da4=this['editor']['locale'];_0x5b1785['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x369da4,'FORMAT_LIST_REVERSED')),_0x5b1785['descriptionFactory']['registerDescriptionCallback'](_0x20da34=>{const {data:_0x5efbea}=_0x20da34;if(_0x5efbea&&'listReversed'==_0x5efbea['key'])return null==_0x5efbea['newValue']||0x0==_0x5efbea['newValue']&&null==_0x5efbea['oldValue']?_0x38ac2f:void 0x0;}),_0x5b1785['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x369da4,'FORMAT_LIST_START')),_0x5b1785['descriptionFactory']['registerDescriptionCallback'](_0x1083a6=>{const {data:_0x4968af}=_0x1083a6;if(_0x4968af&&'listStart'==_0x4968af['key'])return null==_0x4968af['newValue']||0x1==_0x4968af['newValue']&&null==_0x4968af['oldValue']?_0x38ac2f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1767c4=>{if(_0x1767c4['batch']['isUndo'])return!0x1;let _0x174dee=!0x1;const _0x5e610b=_0x5b1785['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x361466=>{const _0x3568ee=_0x5b1785['_getAttributeKey'](_0x361466);return'listStart'==_0x3568ee||'listReversed'==_0x3568ee;});for(const _0x35d1cf of _0x5e610b){const _0x5341df=_0x35d1cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5341df||'customNumbered'==_0x5341df)continue;_0x5b1785['_findSuggestions'](_0x35d1cf['getFirstRange'](),'attribute')['find'](_0x166066=>'listType'==_0x5b1785['_getAttributeKey'](_0x166066['suggestion']))||(_0x1767c4['removeMarker'](_0x35d1cf['getFirstMarker']()),_0x174dee=!0x0);}return _0x174dee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d0958){const _0x2b97d5=this['editor']['locale'],{data:_0x5dac54}=_0x4d0958,_0x14d52a={'type':'format','content':''};if(!_0x5dac54||'listStyle'!=_0x5dac54['key'])return;if(!_0x5dac54['oldValue'])return'default'==_0x5dac54['newValue']?_0x14d52a:{'type':'format','content':''+o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['newValue'])))};if(!_0x5dac54['newValue']){if('default'==_0x5dac54['oldValue'])return _0x14d52a;let _0x1ad5e4=_0x4d0958['head'];for(;_0x1ad5e4;){if(_0x1ad5e4['data']&&'listType'==_0x1ad5e4['data']['key']&&_0x1ad5e4['data']['newValue'])return _0x14d52a;_0x1ad5e4=_0x1ad5e4['next'];}return{'type':'format','content':''+o(_0x2b97d5,'*Remove\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['oldValue'])))};}if('default'!=_0x5dac54['newValue'])return{'type':'format','content':''+o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,this['_getTranslationKeyForListStyle'](_0x5dac54['newValue'])))};let _0x307689=_0x4d0958['head'];for(;_0x307689;){if(_0x307689['data']&&'listType'==_0x307689['data']['key']&&_0x307689['data']['newValue']&&_0x307689['data']['oldValue'])return _0x14d52a;_0x307689=_0x307689['next'];}return{'type':'format','content':o(_0x2b97d5,'*Set\x20format:*\x20%0',o(_0x2b97d5,'ELEMENT_'+_0x4d0958['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x51c4e1=this['editor'],_0x2d295a=_0x51c4e1['locale'];_0x51c4e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2566bd=>{if('formatBlock'!=_0x2566bd['type'])return;const {data:_0x5d7b36}=_0x2566bd;if(!_0x5d7b36)return;let _0x47462d,_0x2e64dd;switch(_0x5d7b36['commandName']){case'listStyle':_0x47462d='*Change\x20to:*\x20%0',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d,o(_0x2d295a,this['_getTranslationKeyForListStyle'](_0x5d7b36['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47462d=_0x5d7b36['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d)};break;case'listStart':_0x47462d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e64dd={'type':'format','content':o(_0x2d295a,_0x47462d,_0x5d7b36['commandParams'][0x0]['startIndex'])};}return _0x2e64dd;});}['_getTranslationKeyForListStyle'](_0x716ae2){return'ELEMENT_'+function(_0x4f44b2){if(ye['includes'](_0x4f44b2))return'bulleted';if(Se['includes'](_0x4f44b2))return'numbered';return null;}(_0x716ae2)['toUpperCase']()+'_LIST_'+_0x716ae2['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x116a29{['afterInit'](){const _0x289f36=this['editor'];_0x289f36['commands']['get']('emoji')&&_0x289f36['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x116a29{static get['requires'](){return[_0x402d32];}['init'](){const _0x4c79c0=this['editor'],_0x2eae3f=_0x4c79c0['plugins']['get']('TrackChangesEditing'),_0x938421=_0x4c79c0['commands']['get']('enter');_0x2eae3f['enableCommand']('enter',()=>{_0x4c79c0['model']['change'](_0x4876ad=>{const _0x50ffe2=_0x4c79c0['model']['document']['selection'],_0x1d9910=_0x50ffe2['getFirstPosition'](),_0x39fe2f=_0x2d8975['fromRange'](_0x50ffe2['getFirstRange']());if(_0x938421['enterBlock'](_0x4876ad)){const _0x140def=_0x4c79c0['model']['createPositionAt'](_0x1d9910['parent']['nextSibling'],0x0),_0x3077f8=_0x4876ad['createRange'](_0x1d9910,_0x140def);_0x2eae3f['markInsertion'](_0x3077f8);}else _0x4876ad['setSelection'](_0x4876ad['createRange'](_0x39fe2f['end']));_0x39fe2f['detach'](),_0x938421['fire']('afterExecute',{'writer':_0x4876ad});});});}}class Y extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x46b30a=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b30a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x46b30a['enableCommand']('findNext'),_0x46b30a['enableCommand']('findPrevious'),_0x46b30a['enableCommand']('replace'),_0x46b30a['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e0132,_0x27a5ab,_0x4154bd={}){const _0x3d2e50=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e0132(_0x2c9315=>{let _0x349673=('string'==typeof _0x27a5ab?_0x3d2e50['findByTextCallback'](_0x27a5ab,_0x4154bd):_0x27a5ab)(_0x2c9315);Array['isArray'](_0x349673)&&(_0x349673={'results':_0x349673,'searchText':'string'==typeof _0x27a5ab?_0x27a5ab:''});const _0x38b0d1=_0x349673['results']['filter'](_0x3a66bd=>!0x1===this['_isInDeletionRange'](_0x3a66bd,_0x2c9315['item']));return{..._0x349673,'results':_0x38b0d1};},_0x4154bd);}['_isInDeletionRange'](_0x43be02,_0xe0e348){const _0x3e556c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe0e348,_0x43be02['start']),this['editor']['model']['createPositionAt'](_0xe0e348,_0x43be02['end']));for(const _0x483ca2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3e556c['getIntersection'](_0x483ca2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x116a29{['afterInit'](){const _0x11349e=this['editor']['locale'],_0x207bb9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe57e46,commandName:_0xe53ee1}of eo)this['editor']['plugins']['has'](_0xe57e46)&&_0x207bb9['enableDefaultAttributesIntegration'](_0xe53ee1);_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11349e,'FORMAT_FONT_SIZE')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11349e,'FORMAT_FONT_FAMILY')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11349e,'FORMAT_FONT_COLOR')),_0x207bb9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11349e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0211=this['editor'],_0x2f37b5=_0x3a0211['locale'];_0x3a0211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30bc3c=>{const _0x5721d7=_0x2f37b5['t'];if('formatInline'!=_0x30bc3c['type'])return;const {data:_0x5e470f}=_0x30bc3c;if(null!=_0x5e470f){if('fontSize'==_0x5e470f['commandName']){const _0x5932b8=_0x5e470f['commandParams'][0x0]['value'];if(_0x5932b8){const _0x52d0ad=_0x5721d7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39e49d=>_0x39e49d['model']==_0x5932b8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20size:*\x20%0',_0x52d0ad)};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e470f['commandName']){const _0x1dbd6b=_0x5e470f['commandParams'][0x0]['value'];return _0x1dbd6b?{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20family:*\x20%0',_0x1dbd6b)}:{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e470f['commandName']){const _0x49c5b1=_0x5e470f['commandParams'][0x0]['value'];if(_0x49c5b1){const _0x22fc88=_0x197994(this['editor']['config']['get']('fontColor.colors'))['find'](_0x54b51a=>_0x54b51a['model']==_0x49c5b1);let _0x23cf13=_0x49c5b1,_0x29f5a5='';return _0x22fc88&&(_0x23cf13=_0x22fc88['label'],_0x29f5a5=_0x5721d7(_0x23cf13)['toLowerCase']()),{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20color:*\x20%0',_0x29f5a5)['trim'](),'color':{'value':_0x49c5b1,'title':_0x29f5a5||_0x23cf13}};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e470f['commandName']){const _0xb25933=_0x5e470f['commandParams'][0x0]['value'];if(_0xb25933){const _0x371d73=_0x197994(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x77ac11=>_0x77ac11['model']==_0xb25933);let _0x329f09=_0xb25933,_0x25302d='';return _0x371d73&&(_0x329f09=_0x371d73['label'],_0x25302d=_0x5721d7(_0x329f09)['toLowerCase']()),{'type':'format','content':o(_0x2f37b5,'*Set\x20font\x20background\x20color:*\x20%0',_0x25302d)['trim'](),'color':{'value':_0xb25933,'title':_0x25302d||_0x329f09}};}return{'type':'format','content':o(_0x2f37b5,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x116a29{['afterInit'](){const {plugins:_0x3fc9cc}=this['editor'];_0x3fc9cc['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3fc9cc['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x50adee,plugins:_0x1c7be4,commands:_0xe39b60}=this['editor'],_0x1e2f67=_0x1c7be4['get']('TrackChangesEditing');_0xe39b60['get']('footnotesStyle')&&_0x1e2f67['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe39b60['get']('footnotesStart')&&_0x1e2f67['enableDefaultAttributesIntegration']('footnotesStart'),_0x1e2f67['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x50adee,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1e2f67['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x50adee,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4d9958=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xc05660,commands:_0x17c3ba}=this['editor'];_0x17c3ba['get']('insertFootnote')&&_0x4d9958['enableCommand']('insertFootnote'),_0x4d9958['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35f06f=>o(_0xc05660,'ELEMENT_FOOTNOTE_REF',_0x35f06f)),_0x4d9958['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x490df9=>o(_0xc05660,'ELEMENT_FOOTNOTE_DEFINITION',_0x490df9)),_0x4d9958['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x139a1b=>o(_0xc05660,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x139a1b));}}class nt extends _0x116a29{['afterInit'](){const _0x2bd345=this['editor'],_0x1ec0b2=_0x2bd345['plugins']['get']('TrackChangesEditing'),_0x3c3dc8=_0x2bd345['commands']['get']('copyFormat'),_0x5ad523=_0x2bd345['commands']['get']('pasteFormat');_0x3c3dc8&&_0x5ad523&&(_0x1ec0b2['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ec0b2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x351168=this['editor'],_0x3531bd=_0x351168['locale'];_0x351168['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe466d7=>{if('formatBlock'!=_0xe466d7['type']&&'formatInline'!=_0xe466d7['type'])return;const {data:_0x5d9163}=_0xe466d7;if(_0x5d9163&&'pasteFormat'===_0x5d9163['commandName']){const _0x280996=[],_0x1d6b74=_0x5d9163['commandParams'][0x0];for(const [_0x46e9bb,_0x2f276a]of Object['entries'](_0x1d6b74))_0x280996['push'](ro(_0x351168,_0x46e9bb,_0x2f276a));return _0x280996['length']?{'type':'format','content':o(_0x3531bd,'*Set\x20format\x20to:*\x20%0',_0x280996['join'](',\x20'))}:{'type':'format','content':o(_0x3531bd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x10ba9b,_0x4e4940,_0x5207aa){const _0x400692=_0x10ba9b['locale']['t'],_0x39d297=_0x4e4940['split'](/(?=[A-Z])/)['join']('\x20'),_0x584ea6=_0x400692(_0x39d297['charAt'](0x0)['toUpperCase']()+_0x39d297['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5207aa)return _0x584ea6;if('fontColor'===_0x4e4940||'fontBackgroundColor'===_0x4e4940){const _0x19d5f3=_0x197994(_0x10ba9b['config']['get']('fontColor.colors'))['find'](_0x4afcc6=>_0x4afcc6['model']==_0x5207aa);return _0x584ea6+'\x20('+(_0x19d5f3?_0x400692(_0x19d5f3['label'])['toLowerCase']():_0x5207aa)+')';}if('fontSize'===_0x4e4940&&isNaN(parseFloat(_0x5207aa))){const _0x4a2654=_0x10ba9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x10ba9b['config']['get']('fontSize.options'))['find'](_0x53e50a=>_0x53e50a['model']==_0x5207aa);return _0x584ea6+'\x20('+(_0x4a2654?_0x400692(_0x4a2654['title'])['toLowerCase']():_0x5207aa)+')';}return _0x584ea6+'\x20('+_0x5207aa+')';}class it extends _0x116a29{['_headingOptions'];['afterInit'](){const _0x3b4150=this['editor'];if(!_0x3b4150['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b4150['config']['get']('heading.options');const _0x3e45e3=_0x3b4150['locale'],_0x59ef76=_0x3b4150['plugins']['get']('TrackChangesEditing');_0x59ef76['enableDefaultAttributesIntegration']('heading');for(const _0x8bbf2d of this['_headingOptions'])'paragraph'!=_0x8bbf2d['model']&&_0x59ef76['descriptionFactory']['registerElementLabel'](_0x8bbf2d['model'],_0x1694f1=>{const _0x1e3a53=this['_getHeadingLevel'](_0x8bbf2d['model']);return null!==_0x1e3a53?_0x51befc(_0x1694f1,_0x1e3a53):_0x1334d9(_0x1694f1,_0x8bbf2d['title']);});function _0x51befc(_0x17f3ba,_0x152d5d){return o(_0x3e45e3,'ELEMENT_HEADING',[_0x17f3ba,_0x152d5d]);}function _0x1334d9(_0x3da405,_0x25e24c){return o(_0x3e45e3,'ELEMENT_HEADING_CUSTOM',[_0x3da405,_0x25e24c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cd6ac=this['editor'],_0x32813d=_0x1cd6ac['locale'];function _0x51906f(_0x453b56,_0x134ddd){return o(_0x32813d,'ELEMENT_HEADING_CUSTOM',[_0x453b56,_0x134ddd]);}_0x1cd6ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bd369=>{if('formatBlock'!=_0x4bd369['type'])return;const {data:_0x592842}=_0x4bd369;if(_0x592842&&'heading'==_0x592842['commandName']){const _0x2d4ec6=_0x592842['commandParams'][0x0]['value'],_0x2b7dae=this['_getHeadingLevel'](_0x2d4ec6);if(null!==_0x2b7dae)return{'type':'format','content':o(_0x32813d,'*Change\x20to:*\x20%0',(_0x1a4a73=0x1,_0x2b735c=_0x2b7dae,o(_0x32813d,'ELEMENT_HEADING',[_0x1a4a73,_0x2b735c])))};const _0x411d44=this['_headingOptions']['find'](_0x47ad12=>_0x47ad12['model']===_0x2d4ec6)['title'];return{'type':'format','content':o(_0x32813d,'*Change\x20to:*\x20%0',_0x51906f(0x1,_0x411d44))};}var _0x1a4a73,_0x2b735c;});}['_getHeadingLevel'](_0x336c89){const _0x15fbb6=_0x336c89['match'](/^heading(\d+)/);if(_0x15fbb6)return _0x15fbb6[0x1];const _0x45fa66=this['_headingOptions']?.['find'](_0x9de5a0=>_0x9de5a0['model']==_0x336c89);if(_0x45fa66&&_0x45fa66['view']){const _0x49e0ed=_0x45fa66['view'],_0x4faf73=(_0x49e0ed['name']??_0x49e0ed)['match'](/^h(\d+)/);if(_0x4faf73)return _0x4faf73[0x1];}return null;}}class et extends _0x116a29{['afterInit'](){const _0x208a0e=this['editor'];if(!_0x208a0e['plugins']['has']('HighlightEditing'))return;const _0x348a93=_0x208a0e['plugins']['get']('TrackChangesEditing'),_0x3376d1=_0x208a0e['locale'];_0x348a93['enableDefaultAttributesIntegration']('highlight'),_0x348a93['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3376d1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e877=this['editor'],_0x45ab53=_0x45e877['locale'];_0x45e877['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5607a7=>{if('formatInline'!=_0x5607a7['type'])return;const {data:_0x1a7169}=_0x5607a7;if(_0x1a7169&&'highlight'==_0x1a7169['commandName']){const _0x41ad4a=_0x45ab53['t'],_0x3a62ff=_0x1a7169['commandParams'][0x0]['value'];if(_0x3a62ff){const _0x2d71f7=_0x45e877['config']['get']('highlight.options')['find'](_0xf9b031=>_0xf9b031['model']==_0x3a62ff),_0x45f2bf=_0x41ad4a(_0x2d71f7['title'])['toLowerCase']();return{'type':'format','content':o(_0x45ab53,'*Set\x20highlight:*\x20%0',_0x45f2bf),'color':{'value':_0x2d71f7['color'],'title':_0x2d71f7['title']}};}return{'type':'format','content':o(_0x45ab53,'*Remove\x20highlight*',o(_0x45ab53,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x116a29{['afterInit'](){const _0x4b0ace=this['editor'];if(!_0x4b0ace['plugins']['has']('HorizontalLineEditing'))return;_0x4b0ace['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf26b77=_0x4b0ace['plugins']['get']('TrackChangesEditing'),_0x30a093=_0x4b0ace['locale'];_0xf26b77['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3fcc92=>o(_0x30a093,'ELEMENT_HORIZONTAL_LINE',_0x3fcc92));}}class ot extends _0x116a29{['afterInit'](){const _0x5399d4=this['editor'];if(!_0x5399d4['plugins']['has']('HtmlEmbed'))return;const _0x2288d1=_0x5399d4['plugins']['get']('TrackChangesEditing'),_0x3becc8=_0x5399d4['locale'];_0x2288d1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1f02af=>o(_0x3becc8,'ELEMENT_HTML_EMBED',_0x1f02af)),_0x2288d1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2288d1['descriptionFactory']['registerDescriptionCallback'](_0x338a24=>{if('attribute'!=_0x338a24['type'])return;const {data:_0x27bd80}=_0x338a24;if(_0x27bd80&&'value'==_0x27bd80['key']&&_0x338a24['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1685bc=o(_0x3becc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3becc8,'*Change\x20%0\x20content*',_0x1685bc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ee3a9=this['editor'],_0x23b3bc=_0x2ee3a9['locale'];_0x2ee3a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3320=>{if('formatBlock'!=_0x3b3320['type'])return;const {data:_0x11eaba}=_0x3b3320;if(_0x11eaba&&'htmlEmbed'==_0x11eaba['commandName']){const _0x1ba308=o(_0x23b3bc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23b3bc,'*Change\x20%0\x20content*',_0x1ba308)};}});}}class rt extends _0x116a29{['afterInit'](){const _0x4c0fa5=this['editor'];if(!_0x4c0fa5['plugins']['has']('ImageEditing'))return;const _0x5c86d6=_0x4c0fa5['plugins']['get']('TrackChangesEditing'),_0x277bd8=_0x4c0fa5['plugins']['get']('ImageUtils'),_0x2de108=_0x4c0fa5['locale'];_0x5c86d6['enableCommand']('insertImage'),_0x5c86d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x363fa7=>o(_0x2de108,'ELEMENT_IMAGE',_0x363fa7)),_0x5c86d6['descriptionFactory']['registerElementLabel']('imageInline',_0x551412=>o(_0x2de108,'ELEMENT_INLINE_IMAGE',_0x551412)),_0x5c86d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2de108,'ELEMENT_CAPTION')),_0x4c0fa5['plugins']['has']('ImageUploadEditing')&&_0x5c86d6['enableCommand']('uploadImage'),_0x4c0fa5['plugins']['has']('ImageBlockEditing')&&_0x4c0fa5['plugins']['has']('ImageInlineEditing')&&(_0x5c86d6['enableCommand']('imageTypeInline',(_0x26b397,_0x28487e)=>{const _0x4765e6=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']);_0x4c0fa5['model']['change'](()=>{_0x5c86d6['markBlockFormat'](_0x4765e6,{'commandName':'imageTypeInline','commandParams':[_0x28487e]},[],'convertBlockImageToInline');});}),_0x5c86d6['enableCommand']('imageTypeBlock',(_0x28667,_0x514164)=>{_0x4c0fa5['model']['change'](_0xc2f2f6=>{let _0x37d2f3=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x32005d=_0xc2f2f6['createRangeOn'](_0x37d2f3);const _0x462c6e=_0x5cd0d0['fromPosition'](_0x32005d['start'],'toPrevious'),_0x21c8ca=_0x5cd0d0['fromPosition'](_0x32005d['end'],'toNext');_0x5c86d6['forceDefaultExecution'](()=>_0x28667(_0x514164)),_0x37d2f3=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x32005d=_0xc2f2f6['createRangeOn'](_0x37d2f3);const _0x26a4a4=_0xc2f2f6['createRange'](_0x462c6e,_0x21c8ca);_0x462c6e['detach'](),_0x21c8ca['detach'](),_0x5c86d6['markBlockFormat'](_0x37d2f3,{'commandName':'imageTypeInline','commandParams':[_0x514164]},[],'convertInlineImageToBlock'),_0x26a4a4['start']['isBefore'](_0x32005d['start'])&&_0x5c86d6['markInsertion'](_0xc2f2f6['createRange'](_0x26a4a4['start'],_0x32005d['start']),'convertInlineImageToBlock'),_0x32005d['end']['isBefore'](_0x26a4a4['end'])&&_0x5c86d6['markInsertion'](_0xc2f2f6['createRange'](_0x32005d['end'],_0x26a4a4['end']),'convertInlineImageToBlock');});}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5c86d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x562451])=>{const _0x46298c=_0x5c86d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c0c0=_0x562451['start'],_0x6ff57b=_0x562451['end'];const _0x1b6962=_0x4c0fa5['model']['schema']['getNearestSelectionRange'](_0x44c0c0,'backward'),_0x36c544=_0x4c0fa5['model']['schema']['getNearestSelectionRange'](_0x6ff57b,'forward');_0x1b6962['isCollapsed']&&(_0x44c0c0=_0x1b6962['start']),_0x36c544['isCollapsed']&&(_0x6ff57b=_0x36c544['end']),_0x46298c([_0x4c0fa5['model']['createRange'](_0x44c0c0,_0x6ff57b)]);}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4fa767),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4fa767)),_0x4c0fa5['plugins']['has']('ImageCaptionEditing')&&(_0x5c86d6['enableCommand']('toggleImageCaption',(_0x23a68c,_0x271dd7)=>{const _0x52cca8=_0x4c0fa5['plugins']['get']('ImageCaptionUtils');let _0x439dd5=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x21949b=_0x52cca8['getCaptionFromImageModelElement'](_0x439dd5);_0x4c0fa5['model']['change'](()=>{if(_0x21949b)return void _0x5c86d6['markDeletion'](_0x4c0fa5['model']['createRangeOn'](_0x21949b));const _0x31f73f=_0x277bd8['isBlockImage'](_0x439dd5);_0x23a68c(_0x271dd7),_0x439dd5=_0x277bd8['getClosestSelectedImageElement'](_0x4c0fa5['model']['document']['selection']),_0x21949b=_0x52cca8['getCaptionFromImageModelElement'](_0x439dd5),_0x5c86d6['markInsertion'](_0x4c0fa5['model']['createRangeOn'](_0x21949b),_0x31f73f?null:'imageCaption');});}),_0x5c86d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4fa767));const _0x530da5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5011c0(_0x3bf801,_0x591aa7){const _0x5c1094=_0x530da5['findIndex'](({type:_0x3cc56c,subType:_0x535577})=>_0x3bf801['type']==_0x3cc56c&&_0x3bf801['subType']==_0x535577),_0x2af9be=_0x530da5['findIndex'](({type:_0x4f2253,subType:_0x1ad83a})=>_0x591aa7['type']==_0x4f2253&&_0x591aa7['subType']==_0x1ad83a);if(_0x5c1094<0x0||_0x2af9be<0x0)return!0x1;const _0xcadb42=_0x3bf801['getFirstRange'](),_0x50bd5a=_0x591aa7['getFirstRange']();if((0x0==_0x5c1094||0x1==_0x5c1094)&&0x2==_0x2af9be&&_0xcadb42['isIntersecting'](_0x50bd5a))return!0x0;if(0x2==_0x5c1094&&0x3==_0x2af9be){const _0x38d715=_0x5c86d6['_findSuggestions'](_0xcadb42,'insertion')['filter'](({suggestion:_0x2e4a42,meta:_0x3605e1})=>_0x3605e1['isOwn']&&'convertInlineImageToBlock'==_0x2e4a42['subType']);if(_0x38d715['length']>0x1&&_0x50bd5a['end']['isEqual'](_0xcadb42['start']))return!0x0;if(0x1==_0x38d715['length']&&(_0xcadb42['start']['isEqual'](_0x50bd5a['end'])||_0xcadb42['end']['isEqual'](_0x50bd5a['start'])))return!0x0;}if(0x3==_0x5c1094&&0x3==_0x2af9be&&_0xcadb42['start']['isBefore'](_0x50bd5a['start'])){const _0x4afdcf=_0xcadb42['end']['nodeAfter'],_0x23c0c2=_0x50bd5a['start']['nodeBefore'];return _0x277bd8['isBlockImage'](_0x4afdcf)&&_0x4afdcf===_0x23c0c2;}return!0x1;}function _0x4fa767(_0x4ad0b7,_0x5ac44f){return _0x5011c0(_0x4ad0b7,_0x5ac44f)?[_0x4ad0b7,_0x5ac44f]:_0x5011c0(_0x5ac44f,_0x4ad0b7)?[_0x5ac44f,_0x4ad0b7]:null;}_0x4c0fa5['plugins']['has']('ImageResize')&&(_0x5c86d6['enableDefaultAttributesIntegration']('resizeImage'),_0x5c86d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2de108,'FORMAT_IMAGE_SIZE'))),_0x4c0fa5['plugins']['has']('ImageTextAlternativeEditing')&&_0x5c86d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c0fa5['plugins']['has']('PictureEditing')&&_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x15bdf1=>{if('attribute'!=_0x15bdf1['type'])return;const {data:_0x1270d5}=_0x15bdf1;return _0x1270d5&&'sources'==_0x1270d5['key']?{'type':'format','content':''}:void 0x0;}),_0x4c0fa5['plugins']['has']('ImageSizeAttributes')&&_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x4f38f2=>{if('attribute'!=_0x4f38f2['type'])return;const {data:_0x18b48e}=_0x4f38f2;return!_0x18b48e||'width'!=_0x18b48e['key']&&'height'!=_0x18b48e['key']?void 0x0:{'type':'format','content':''};}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x530015=>{if(!!_0x530da5['find'](({type:_0xf0d11c,subType:_0x3a4981})=>_0x530015['type']==_0xf0d11c&&_0x530015['subType']==_0x3a4981))return _0x530015['previous']?{}:void 0x0;}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x17a275=>{if('insertion'==_0x17a275['type']||'deletion'==_0x17a275['type']){const _0x4e8eb8=_0x17a275['getContainedElement']();if(_0x4e8eb8&&_0x4e8eb8['is']('element','caption'))return{'type':'insertion'==_0x17a275['type']?'addObject':'removeObject','element':_0x4e8eb8,'quantity':0x1};}}),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x58f134=>'formatBlock'==_0x58f134['type']&&'convertInlineImageToBlock'==_0x58f134['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58f134['type']&&'convertBlockImageToInline'==_0x58f134['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5c86d6['descriptionFactory']['registerDescriptionCallback'](_0x4cae84=>{if('attribute'!=_0x4cae84['type'])return;const {data:_0x200f80}=_0x4cae84;if(!_0x200f80||'alt'!=_0x200f80['key'])return;const _0x425c85=_0x200f80['newValue'];return _0x425c85?{'type':'format','content':o(_0x2de108,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x425c85+'\x22')}:{'type':'format','content':o(_0x2de108,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b053e=this['editor'],_0x4e8664=_0x1b053e['locale'];_0x1b053e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be9ec=>{if('formatBlock'!=_0x4be9ec['type']&&'formatInline'!=_0x4be9ec['type'])return;const {data:_0x4be820}=_0x4be9ec;if(_0x4be820){if('imageTextAlternative'==_0x4be820['commandName']){const _0x5829bb=_0x4be820['commandParams'][0x0]['newValue'];return _0x5829bb?{'type':'format','content':o(_0x4e8664,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5829bb+'\x22')}:{'type':'format','content':o(_0x4e8664,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4be820['commandName']){const _0x216dfa=_0x4be820['commandParams'][0x0]['width'];return _0x216dfa?{'type':'format','content':o(_0x4e8664,'*Set\x20image\x20width:*\x20%0',_0x216dfa)}:{'type':'format','content':o(_0x4e8664,'*Reset\x20image\x20width*')};}}});}}class at extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2f9b94=this['editor']['locale'],_0x2325fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2325fa['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2325fa['descriptionFactory']['registerDescriptionCallback'](_0xa6b003=>{if('attribute'!=_0xa6b003['type'])return;const {data:_0x4f1dce}=_0xa6b003;return _0x4f1dce&&'src'==_0x4f1dce['key']?_0x4f1dce['newValue']&&_0x4f1dce['oldValue']?{'type':'format','content':o(_0x2f9b94,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fde67=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fde67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fde67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fde67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fde67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d889=this['editor'],_0x3483b2=_0x51d889['locale'];_0x51d889['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378be3=>{if('formatBlock'!=_0x378be3['type']&&'formatInline'!=_0x378be3['type'])return;const {data:_0x3b044e}=_0x378be3;if(!_0x3b044e||'replaceImageSource'!=_0x3b044e['commandName'])return;return{'type':'format','content':o(_0x3483b2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x116a29{['afterInit'](){const _0x131656=this['editor'];if(!_0x131656['plugins']['has']('ImageStyleEditing'))return;const _0x386fa6=_0x131656['plugins']['get']('TrackChangesEditing'),_0x527592=_0x131656['plugins']['get']('ImageUtils'),_0x519231={};_0x386fa6['enableCommand']('imageStyle',(_0x40e9f2,_0x1795c2)=>{const _0x4ca259=_0x131656['plugins']['get']('Users')['me'],_0x1ce8cf=_0x131656['commands']['get']('imageStyle');let _0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),_0x59a281=_0x131656['model']['createRangeOn'](_0x55012f),_0x27064b=_0x1ce8cf['value'];if(_0x27064b==_0x1795c2['value'])return;const _0x39e097={'commandName':'imageStyle','commandParams':[_0x1795c2],'formatGroupId':_0x492477()};_0x131656['model']['change'](()=>{if(_0x386fa6['getSuggestions']()['filter'](_0x200c08=>_0x200c08['isInContent']&&_0x4ca259==_0x200c08['author']&&('formatBlock'==_0x200c08['type']||'formatInline'==_0x200c08['type'])&&('imageStylePreApply'==_0x200c08['subType']||'imageStylePostApply'==_0x200c08['subType'])&&_0x200c08['getFirstRange']()['isEqual'](_0x59a281))['forEach'](_0x2dfd75=>_0x386fa6['discardSuggestion'](_0x2dfd75['head'])),_0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),_0x59a281=_0x131656['model']['createRangeOn'](_0x55012f),_0x1ce8cf['refresh'](),_0x131656['commands']['get']('imageTypeInline')['refresh'](),_0x131656['commands']['get']('imageTypeBlock')['refresh'](),_0x27064b=_0x1ce8cf['value'],_0x27064b!=_0x1795c2['value'])return _0x527592['isInlineImage'](_0x55012f)&&_0x1ce8cf['shouldConvertImageType'](_0x1795c2['value'],_0x55012f)?(_0x40e9f2({..._0x1795c2,'setImageSizes':!0x1}),_0x55012f=_0x527592['getClosestSelectedImageElement'](_0x131656['model']['document']['selection']),void _0x386fa6['markBlockFormat'](_0x55012f,{..._0x39e097,'commandReversedParams':[{'value':_0x27064b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x527592['isBlockImage'](_0x55012f)?_0x386fa6['markBlockFormat'](_0x55012f,_0x39e097,[],'imageStylePostApply'):_0x386fa6['markInlineFormat'](_0x59a281,_0x39e097,'imageStylePostApply'));});});for(const _0x53aca6 of _0x131656['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x519231[_0x53aca6['name']]=_0x53aca6['title']['toLowerCase']();_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x14487d])=>{_0x527592['setImageNaturalSizeAttributes'](_0x14487d['getContainedElement']());}),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48a964,_0x471f2c)=>{_0x386fa6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48a964,{'commandName':_0x471f2c['commandName'],'commandParams':_0x471f2c['commandReversedParams']});}),_0x386fa6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x18076c,_0x19a7be){if(_0x192f34(_0x18076c,_0x19a7be))return[_0x18076c,_0x19a7be];if(_0x192f34(_0x19a7be,_0x18076c))return[_0x19a7be,_0x18076c];return null;});const _0x2568cd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x192f34(_0x15d2c8,_0x5713f9){const _0x517407=_0x2568cd['findIndex'](({type:_0x5bfd2c,subType:_0x346959})=>_0x15d2c8['type']==_0x5bfd2c&&_0x15d2c8['subType']==_0x346959),_0x565c92=_0x2568cd['findIndex'](({type:_0x4d71cd,subType:_0x22c73f})=>_0x5713f9['type']==_0x4d71cd&&_0x5713f9['subType']==_0x22c73f);if(_0x517407<0x0||_0x565c92<0x0)return!0x1;const _0x411646=_0x15d2c8['getFirstRange'](),_0x571be8=_0x5713f9['getFirstRange']();if((0x0==_0x517407||0x1==_0x517407)&&0x2==_0x565c92&&_0x411646['isIntersecting'](_0x571be8))return!0x0;if(0x2==_0x517407&&0x3==_0x565c92){const _0x430224=_0x386fa6['_findSuggestions'](_0x411646,'insertion')['filter'](({suggestion:_0x1bbff1,meta:_0x538b04})=>_0x538b04['isOwn']&&'convertInlineImageToBlock'==_0x1bbff1['subType']);if(_0x430224['length']>0x1&&_0x571be8['end']['isEqual'](_0x411646['start']))return!0x0;if(0x1==_0x430224['length']&&(_0x411646['start']['isEqual'](_0x571be8['end'])||_0x411646['end']['isEqual'](_0x571be8['start'])))return!0x0;}if(0x3==_0x517407&&0x3==_0x565c92&&_0x411646['start']['isBefore'](_0x571be8['start'])){const _0x1712d4=_0x411646['end']['nodeAfter'],_0x34fea4=_0x571be8['start']['nodeBefore'];return _0x527592['isBlockImage'](_0x1712d4)&&_0x1712d4===_0x34fea4;}return!0x1;}_0x131656['model']['document']['registerPostFixer'](()=>{let _0x38d67b=!0x1;const _0x354e5a=Array['from'](_0x131656['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x51d2a8,data:_0x3e9fc8}of _0x354e5a){const {group:_0x38b5de,type:_0x29f44d,subType:_0x31063f,id:_0x215e43}=_0x386fa6['_splitMarkerName'](_0x51d2a8);if('suggestion'==_0x38b5de&&_0x386fa6['hasSuggestion'](_0x215e43)){if('formatBlock'==_0x29f44d&&('imageStylePreApply'==_0x31063f||'imageStylePostApply'==_0x31063f)){const _0x35c5e6=_0x386fa6['getSuggestion'](_0x215e43);if(_0x3e9fc8['newRange']){const _0x30b53e=_0x35c5e6['getFirstRange']()['getContainedElement']();if(_0x527592['isBlockImage'](_0x30b53e))continue;_0x386fa6['discardSuggestion'](_0x35c5e6),_0x38d67b=!0x0;}}if('insertion'==_0x29f44d&&'imageCaption'==_0x31063f&&!_0x3e9fc8['newRange']){const _0x1bc21c=_0x386fa6['getSuggestion'](_0x215e43);_0x1bc21c['next']&&_0x1bc21c['next']['isInContent']&&(_0x386fa6['discardSuggestion'](_0x1bc21c['next']),_0x38d67b=!0x0);}}}return _0x38d67b;}),this['_registerLegacyDescription'](_0x519231);}['_registerLegacyDescription'](_0x4fcf74){const _0x1ecfc4=this['editor'],_0x533aa6=_0x1ecfc4['locale'];_0x1ecfc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a83eb=>{if('formatBlock'!=_0x4a83eb['type']&&'formatInline'!=_0x4a83eb['type'])return;const {data:_0x33127a}=_0x4a83eb;if(!_0x33127a||'imageStyle'!=_0x33127a['commandName'])return;const _0x1d3d61=_0x33127a['commandParams'][0x0]['value'];return _0x100377('side'===_0x1d3d61?o(_0x533aa6,'FORMAT_SIDE_IMAGE'):_0x4fcf74[_0x1d3d61]||_0x1d3d61);function _0x100377(_0x5a44f4){return{'type':'format','content':o(_0x533aa6,'*Format:*\x20%0',_0x5a44f4)};}});}}class ut extends _0x116a29{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x79fe47){super(_0x79fe47),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x361755=this['editor'],_0x3c17df=_0x361755['commands']['get']('importWord'),_0x38f537=_0x361755['commands']['get']('trackChanges');_0x3c17df&&(_0x3c17df['on']('execute',(_0x31df41,[,_0x33bb13])=>{this['_trackChangesValueDuringImport']=_0x38f537['value'],_0x33bb13['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c17df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c17df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x38f537['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x361755['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2911a0,_0x250124){const {suggestions:_0x12f5ea}=_0x250124,_0x3a8955=this['editor']['commands']['get']('trackChanges'),_0x15218e=_0x3a8955['value'];this['_trackChangesValueDuringImport']!==_0x15218e&&(_0x3a8955['execute'](),this['_trackChangesExecuted']=!0x0),_0x12f5ea&&_0x12f5ea['forEach'](({id:_0x354be6,type:_0x3a4467,author:_0x38484a,created_at:_0x425230})=>{const _0x148c81={'id':_0x354be6,'type':_0x3a4467,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38484a,'createdAt':_0x425230?new Date(_0x425230):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x148c81);});}}class ft extends _0x116a29{['afterInit'](){const _0x5653fb=this['editor'],_0x495eda=_0x5653fb['plugins']['get']('TrackChangesEditing');if(_0x5653fb['plugins']['has']('IndentEditing')&&(_0x495eda['enableCommand']('indent'),_0x495eda['enableCommand']('outdent')),_0x5653fb['plugins']['has']('IndentBlock')){for(const _0xf5d068 of['indentBlock','outdentBlock'])_0x495eda['enableDefaultAttributesIntegration'](_0xf5d068);}const _0x58e90a=_0x5653fb['locale'];_0x495eda['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x58e90a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fcbde=this['editor'],_0x2f97e1=_0x4fcbde['locale'],_0x4ddd46=_0x4fcbde['plugins']['get']('TrackChangesEditing');_0x4ddd46['descriptionFactory']['registerDescriptionCallback'](_0x2b931d=>{if('formatBlock'!=_0x2b931d['type'])return;const {data:_0x4e0617}=_0x2b931d;if(!_0x4e0617)return;if('indentBlock'!=_0x4e0617['commandName']&&'outdentBlock'!=_0x4e0617['commandName'])return;const _0x2dcbc2=_0x2b931d['getItems']()[0x0],_0x98831e=_0x4ddd46['descriptionFactory']['getItemLabel'](_0x2dcbc2);return'indentBlock'==_0x4e0617['commandName']?{'type':'format','content':o(_0x2f97e1,'*Indent:*\x20%0',_0x98831e)}:'outdentBlock'==_0x4e0617['commandName']?{'type':'format','content':o(_0x2f97e1,'*Outdent:*\x20%0',_0x98831e)}:void 0x0;});}}class ht extends _0x116a29{static get['requires'](){return[_0xfc0fdb];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x116a29{['afterInit'](){const _0xd1d0c6=this['editor'];if(!_0xd1d0c6['plugins']['has']('LinkEditing'))return;const _0x2f5927=_0xd1d0c6['plugins']['get']('TrackChangesEditing'),_0x10644e=_0xd1d0c6['commands']['get']('link');_0x2f5927['enableDefaultAttributesIntegration']('link'),_0x2f5927['enableDefaultAttributesIntegration']('unlink');for(const _0x1cdb21 of _0x10644e['manualDecorators'])_0x2f5927['descriptionFactory']['registerAttributeLabel'](_0x1cdb21['id'],'link\x20('+_0x1cdb21['label']['toLowerCase']()+')');_0x2f5927['descriptionFactory']['registerDescriptionCallback'](_0xa86b70=>{if('attribute'!=_0xa86b70['type'])return;const {data:_0x244217}=_0xa86b70;if(!_0x244217||'linkHref'!=_0x244217['key'])return;const _0x1449de=_0x244217['newValue'],_0x9a54f=_0xd1d0c6['locale'];return{'type':'format','content':null==_0x1449de?o(_0x9a54f,'*Remove\x20link*'):o(_0x9a54f,'*Set\x20link:*\x20%0','\x22'+_0x1449de+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5f57=this['editor'],_0x4d96df=_0x1b5f57['locale'];_0x1b5f57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x140d61=>{if('formatInline'!=_0x140d61['type'])return;const {data:_0x4e32a3}=_0x140d61;if(_0x4e32a3){if('link'==_0x4e32a3['commandName']){const _0x54881b=_0x4e32a3['commandParams'][0x0];return{'type':'format','content':o(_0x4d96df,'*Set\x20link:*\x20%0','\x22'+_0x54881b+'\x22')};}return'unlink'==_0x4e32a3['commandName']?{'type':'format','content':o(_0x4d96df,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x116a29{['afterInit'](){const _0x4146c5=this['editor'],_0x52a14c=_0x4146c5['locale'];if(!_0x4146c5['plugins']['has']('LegacyListEditing'))return;const _0x4932e=_0x4146c5['plugins']['get']('TrackChangesEditing'),_0x5d34ab=_0x4146c5['plugins']['has']('LegacyTodoListEditing');function _0x3aa0fe(_0x56a70f){return()=>{const _0x1b4907=_0x4146c5['model']['document']['selection'],_0x3b5044=_0x4146c5['commands']['get'](_0x56a70f);if(_0x3b5044['value'])return void _0x4146c5['execute']('paragraph',{});const _0x7f22cc=_0x56a70f['slice'](0x0,-0x4),_0x2ffc6f=function(_0x3e0fcf,_0x1280c9,_0x479f9d){let _0xbf937b=Array['from'](_0x3e0fcf)['filter'](_0x39e3e4=>function(_0x500755,_0x36e1fd){return _0x36e1fd['checkChild'](_0x500755['parent'],'listItem')&&!_0x36e1fd['isObject'](_0x500755);}(_0x39e3e4,_0x479f9d));_0xbf937b=_0xbf937b['filter'](_0x41e6e4=>!_0x41e6e4['is']('element','listItem')||_0x41e6e4['getAttribute']('listType')!=_0x1280c9);const _0x40cdd5=new Set();for(const _0x3e1755 of _0xbf937b)_0x3e1755['is']('element','listItem')?_0x40cdd5['add'](Le(_0x3e1755)):_0x40cdd5['add'](_0x3e1755);return Array['from'](_0x40cdd5);}(_0x1b4907['getSelectedBlocks'](),_0x7f22cc,_0x4146c5['model']['schema']);_0x4146c5['model']['change'](()=>{for(const _0x6b0f05 of _0x2ffc6f)_0x4932e['markBlockFormat'](_0x6b0f05,{'commandName':_0x56a70f,'commandParams':[{'forceValue':!_0x3b5044['value']}],'formatGroupId':'blockName'},Ee(_0x6b0f05));});};}function _0x23f566(_0x5085d9){return()=>{const _0x478954=function(_0x584eb5){let _0x48d2b4=Array['from'](_0x584eb5);const _0x30016e=_0x48d2b4['findIndex'](_0x49a5b6=>'listItem'!=_0x49a5b6['name']);return _0x30016e>-0x1&&(_0x48d2b4=_0x48d2b4['slice'](0x0,_0x30016e)),_0x48d2b4;}(_0x4146c5['model']['document']['selection']['getSelectedBlocks']()),_0x47f3fd=_0x4146c5['model']['createRange'](_0x4146c5['model']['createPositionAt'](_0x478954[0x0],'before'),_0x4146c5['model']['createPositionAt'](_0x478954[_0x478954['length']-0x1],'end'));_0x4146c5['model']['change'](()=>{_0x4932e['markBlockFormat'](_0x47f3fd,{'commandName':_0x5085d9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x40d2e2){const _0x29b511=new Set();for(const _0x4124b9 of _0x40d2e2){let _0x4db6d6=_0x4124b9['nextSibling'];for(;_0x4db6d6&&_0x4db6d6['getAttribute']('listIndent')>_0x4124b9['getAttribute']('listIndent');)_0x29b511['add'](_0x4db6d6),_0x4db6d6=_0x4db6d6['nextSibling'];}return Array['from'](_0x29b511);}(_0x478954));});};}_0x4932e['enableCommand']('numberedList',_0x3aa0fe('numberedList')),_0x4932e['enableCommand']('bulletedList',_0x3aa0fe('bulletedList')),_0x5d34ab&&_0x4932e['enableCommand']('todoList',_0x3aa0fe('todoList')),_0x4932e['enableCommand']('indentList',_0x23f566('indentList')),_0x4932e['enableCommand']('outdentList',_0x23f566('outdentList')),_0x5d34ab&&_0x4932e['enableCommand']('checkTodoList',()=>{const _0x5c5615=_0x4146c5['commands']['get']('checkTodoList'),_0x547409=Array['from'](_0x5c5615['_selectedElements']);_0x547409['filter'](_0xe8267c=>_0xe8267c['getAttribute']('todoListChecked')!=_0x5c5615['value']),_0x4146c5['model']['change'](()=>{for(const _0xe78ba4 of _0x547409)_0x4932e['markBlockFormat'](_0xe78ba4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5c5615['value']}]});});}),_0x4932e['descriptionFactory']['registerElementLabel']('listItem',_0x49e4d7=>o(_0x52a14c,'ELEMENT_LIST_ITEM',_0x49e4d7)),_0x4932e['descriptionFactory']['registerDescriptionCallback'](_0x189edb=>{if('formatBlock'!=_0x189edb['type']&&'formatInline'!=_0x189edb['type'])return;const {data:_0x21591c}=_0x189edb;if(_0x21591c){if('numberedList'==_0x21591c['commandName']||'bulletedList'==_0x21591c['commandName']||'todoList'==_0x21591c['commandName'])switch(_0x21591c['commandName']['replace']('List','')){case'bulleted':return _0x379266(o(_0x52a14c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x379266(o(_0x52a14c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x379266(o(_0x52a14c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21591c['commandName'])return{'type':'format','content':o(_0x52a14c,'*Indent:*\x20%0',o(_0x52a14c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21591c['commandName'])return{'type':'format','content':o(_0x52a14c,'*Outdent:*\x20%0',o(_0x52a14c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21591c['commandName'])return _0x21591c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52a14c,'*Check\x20item*')}:{'type':'format','content':o(_0x52a14c,'*Uncheck\x20item*')};}function _0x379266(_0x1cf39c){return{'type':'format','content':o(_0x52a14c,'*Change\x20to:*\x20%0',_0x1cf39c)};}});}}function Le(_0x5c944a){const _0x1e1e56=_0x5c944a['getAttribute']('listIndent');if(0x0==_0x1e1e56)return _0x5c944a;let _0x4e8ce8=_0x5c944a;for(;_0x5c944a['previousSibling']&&_0x5c944a['previousSibling']['is']('element','listItem');){const _0x4fc5c3=_0x5c944a['previousSibling']['getAttribute']('listIndent');if(_0x4fc5c3==_0x1e1e56)_0x4e8ce8=_0x5c944a['previousSibling'];else{if(_0x4fc5c3<_0x1e1e56)break;}_0x5c944a=_0x5c944a['previousSibling'];}return _0x4e8ce8;}function Ee(_0x140b81){const _0x572e7d=[];if(_0x140b81['is']('element','listItem')&&_0x140b81['getAttribute']('listIndent')>0x0){let _0x2b4d99=_0x140b81['nextSibling'];for(;_0x2b4d99&&'listItem'==_0x2b4d99['name']&&_0x2b4d99['getAttribute']('listIndent')==_0x140b81['getAttribute']('listIndent');)_0x572e7d['push'](_0x2b4d99),_0x2b4d99=_0x2b4d99['nextSibling'];}return _0x572e7d;}class mt extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x31f72c=this['editor']['config']['get']('list.properties'),_0x5243be=this['editor']['plugins']['get']('TrackChangesEditing');_0x31f72c['styles']&&_0x5243be['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x31f72c['reversed']&&_0x5243be['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x31f72c['startIndex']&&_0x5243be['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5243be['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x30c853,_0x275098={}){const _0x1c164f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa21f58=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1c164f['markMultiRangeBlockFormat'](_0xa21f58,{'commandName':'listStyle','commandParams':[{'type':_0x275098['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f9f32,_0x2a6ccd={}){const _0x53d271=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa0dbbe=this['_getSuggestionBlocks'](_0x36fefa=>_0x36fefa['is']('element','listItem')&&'numbered'===_0x36fefa['getAttribute']('listType'));if(_0xa0dbbe['length']<0x1)return;const _0x3597b3=_0xa0dbbe['map'](_0x2a2049=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2a2049,'before'),this['editor']['model']['createPositionAt'](_0x2a2049,0x0)));this['editor']['model']['change'](()=>{_0x53d271['markMultiRangeBlockFormat'](_0x3597b3,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a6ccd['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d4441,_0x38fbe7={}){const _0x51b56c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3df14b=this['_getSuggestionBlocks'](_0xbfb628=>_0xbfb628['is']('element','listItem')&&'numbered'===_0xbfb628['getAttribute']('listType'));if(_0x3df14b['length']<0x1)return;const _0x5a1eee=_0x3df14b['map'](_0x48c0d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48c0d5,'before'),this['editor']['model']['createPositionAt'](_0x48c0d5,0x0)));this['editor']['model']['change'](()=>{_0x51b56c['markMultiRangeBlockFormat'](_0x5a1eee,{'commandName':'listStart','commandParams':[{'startIndex':_0x38fbe7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x483b12){if('formatBlock'!=_0x483b12['type']&&'formatInline'!=_0x483b12['type'])return;const _0x483384=this['editor']['locale'],{data:_0x5324ce}=_0x483b12;if(!_0x5324ce)return;let _0x321365,_0xd973db;switch(_0x5324ce['commandName']){case'listStyle':_0x321365='*Change\x20to:*\x20%0',_0xd973db={'type':'format','content':o(_0x483384,_0x321365,o(_0x483384,this['_getTranslationKeyForListStyle'](_0x5324ce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x321365=_0x5324ce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd973db={'type':'format','content':o(_0x483384,_0x321365)};break;case'listStart':_0x321365='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd973db={'type':'format','content':o(_0x483384,_0x321365,_0x5324ce['commandParams'][0x0]['startIndex'])};}return _0xd973db;}['_getSuggestionBlocksForListStyle'](){const _0x3f17dc=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f0061=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2f0061[0x0]?.['is']('element','listItem')&&_0x2f0061['unshift'](..._0x3f17dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2f0061[_0x2f0061['length']-0x1]?.['is']('element','listItem')&&_0x2f0061['push'](..._0x3f17dc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2f0061=[...new Set(_0x2f0061)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2f0061=_0x2f0061['filter'](_0xe82507=>_0xe82507['is']('element','listItem'))),_0x2f0061;}['_getSuggestionBlocks'](_0x2ae38e){const _0x3fba8d=this['editor']['plugins']['get']('LegacyListUtils');let _0x277fd6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2ae38e)['map'](_0x16bec9=>{const _0x48abb7=this['editor']['model']['createPositionAt'](_0x16bec9,0x0);return[..._0x3fba8d['getSiblingNodes'](_0x48abb7,'backward'),..._0x3fba8d['getSiblingNodes'](_0x48abb7,'forward')];})['flat']();return _0x277fd6=[...new Set(_0x277fd6)],_0x277fd6;}['_getTranslationKeyForListStyle'](_0x32a911){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x32a911)||'default')['toUpperCase']()+'_LIST_'+_0x32a911['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x116a29{['afterInit'](){const _0x4d861c=this['editor'];if(!_0x4d861c['plugins']['has']('MediaEmbedEditing'))return;const _0x18b33c=_0x4d861c['plugins']['get']('TrackChangesEditing'),_0x2fed80=_0x4d861c['locale'];_0x18b33c['enableCommand']('mediaEmbed'),_0x18b33c['descriptionFactory']['registerElementLabel']('media',_0x3fcce7=>o(_0x2fed80,'ELEMENT_MEDIA',_0x3fcce7));}}class pt extends _0x116a29{['afterInit'](){const _0x4a7da0=this['editor'];_0x4a7da0['plugins']['has']('MentionEditing')&&_0x4a7da0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x116a29{['afterInit'](){const _0xe2fdca=this['editor'];if(!_0xe2fdca['plugins']['has']('MergeFieldsEditing'))return;const _0x4b10e9=_0xe2fdca['plugins']['get']('TrackChangesEditing'),_0x2ea542=_0xe2fdca['locale'];_0x4b10e9['enableCommand']('insertMergeField'),_0x4b10e9['enableCommand']('insertMergeFieldBlock'),_0x4b10e9['enableCommand']('insertMergeFieldImage'),_0x4b10e9['descriptionFactory']['registerElementLabel']('mergeField',_0x41f10f=>o(_0x2ea542,'ELEMENT_MERGE_FIELD',_0x41f10f)),_0x4b10e9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f40c1=>o(_0x2ea542,'ELEMENT_MERGE_FIELD',_0x4f40c1)),_0x4b10e9['descriptionFactory']['registerDescriptionCallback'](_0x411ffc=>{if('insertion'!=_0x411ffc['type']&&'deletion'!=_0x411ffc['type'])return;const _0x5822e3=_0x411ffc['getContainedElement']();if(null==_0x5822e3)return;const _0x2c20f7=_0xe2fdca['plugins']['get']('MergeFieldsEditing');let _0x39d90a;switch(_0x2c20f7['getMergeFieldType'](_0x5822e3)){case null:return;case'image':{const _0x3ae041=_0x2c20f7['unwrapAffixes'](_0x5822e3['getAttribute']('src'));_0x39d90a=_0x2c20f7['getLabel'](_0x3ae041)||_0x3ae041;break;}default:{const _0x2947e0=_0x5822e3['getAttribute']('id');_0x39d90a=_0x2c20f7['getLabel'](_0x2947e0)||_0x2947e0;break;}}return'insertion'==_0x411ffc['type']?{'type':'insertion','content':o(_0x2ea542,'*Insert:*\x20%0','\x22'+_0x39d90a+'\x22\x20'+o(_0x2ea542,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2ea542,'*Remove:*\x20%0','\x22'+_0x39d90a+'\x22\x20'+o(_0x2ea542,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x116a29{['afterInit'](){const _0x1ccc30=this['editor'],_0x2cf4cd=_0x1ccc30['plugins']['get']('TrackChangesEditing');_0x1ccc30['plugins']['has']('MultiLevelList')&&(_0x2cf4cd['enableDefaultAttributesIntegration']('multiLevelList'),_0x2cf4cd['descriptionFactory']['registerDescriptionCallback'](_0x37ea7b=>this['handleDescriptions'](_0x37ea7b)));}['handleDescriptions'](_0x52a241){const _0x4bcb33=this['editor']['locale'],{data:_0x3895cd}=_0x52a241,_0x3fc84f={'type':'format','content':''};if(_0x3895cd&&'listMarkerStyle'==_0x3895cd['key']){if(!_0x3895cd['oldValue'])return{'type':'format','content':o(_0x4bcb33,'*Set\x20format:*\x20%0',o(_0x4bcb33,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3895cd['newValue']+')'};if(!_0x3895cd['newValue']){let _0xdaab26=_0x52a241['head'];for(;_0xdaab26;){if(_0xdaab26['data']&&'listType'==_0xdaab26['data']['key']&&_0xdaab26['data']['newValue'])return _0x3fc84f;_0xdaab26=_0xdaab26['next'];}return{'type':'format','content':o(_0x4bcb33,'*Remove\x20format:*\x20%0',o(_0x4bcb33,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3895cd['oldValue']+')'};}}}}class bt extends _0x116a29{['afterInit'](){const _0x15c15d=this['editor'];if(!_0x15c15d['plugins']['has']('PageBreakEditing'))return;_0x15c15d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5dc60b=_0x15c15d['plugins']['get']('TrackChangesEditing'),_0x422a5b=_0x15c15d['locale'];_0x5dc60b['descriptionFactory']['registerElementLabel']('pageBreak',_0x46f71a=>o(_0x422a5b,'ELEMENT_PAGE_BREAK',_0x46f71a));}}class yt extends _0x116a29{['afterInit'](){const _0x3982a2=this['editor'];if(!_0x3982a2['plugins']['has']('Paragraph'))return;const _0x588339=_0x3982a2['locale'],_0x2c9b7c=_0x3982a2['plugins']['get']('TrackChangesEditing');_0x2c9b7c['descriptionFactory']['registerElementLabel']('paragraph',_0x10d9ad=>o(_0x588339,'ELEMENT_PARAGRAPH',_0x10d9ad)),_0x2c9b7c['enableDefaultAttributesIntegration']('paragraph'),_0x2c9b7c['enableCommand']('insertParagraph');const _0x1b91e8=_0x2c9b7c['descriptionFactory'];_0x1b91e8['registerDescriptionCallback'](_0x2be63a=>{if('insertion'!==_0x2be63a['type'])return;const {start:_0x21de5c,end:_0xab1288}=_0x2be63a['getFirstRange']();if(!_0x21de5c['isTouching'](_0xab1288)||!_0x21de5c['nodeAfter'])return;const _0x349f5d=_0x3982a2['model']['schema'],_0x3c9174=_0x21de5c['nodeAfter'];return _0x349f5d['isBlock'](_0x3c9174)&&!_0x349f5d['isLimit'](_0x3c9174)&&_0x349f5d['checkChild'](_0x3c9174,'$text')?{'type':'insertion','content':o(_0x588339,'*Insert:*\x20%0',_0x1b91e8['getItemLabel'](_0x3c9174,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e113b=this['editor'],_0x2eeb93=_0x5e113b['locale'];_0x5e113b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ce542=>{if('formatBlock'!=_0x1ce542['type'])return;const {data:_0x1dfed4}=_0x1ce542;return _0x1dfed4&&'paragraph'==_0x1dfed4['commandName']?{'type':'format','content':o(_0x2eeb93,'*Change\x20to:*\x20%0',o(_0x2eeb93,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x116a29{['afterInit'](){const _0x2adbca=this['editor'];_0x2adbca['commands']['get']('replaceSource')&&_0x2adbca['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x116a29{['afterInit'](){const _0x25d9df=this['editor'];if(!_0x25d9df['plugins']['has']('RemoveFormatEditing'))return;_0x25d9df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2229f0=this['editor'];_0x2229f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd2bb=>{if('formatBlock'!=_0x4fd2bb['type']&&'formatInline'!=_0x4fd2bb['type'])return;const {data:_0x170814}=_0x4fd2bb;return _0x170814&&'removeFormat'==_0x170814['commandName']?{'type':'format','content':o(_0x2229f0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x116a29{['afterInit'](){const _0xe327c1=this['editor'];if(!_0xe327c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x262519=_0xe327c1['plugins']['get']('TrackChangesEditing');_0x262519['enableCommand']('goToPreviousRestrictedEditingException'),_0x262519['enableCommand']('goToNextRestrictedEditingException');const _0x464f07=_0xe327c1['plugins']['get']('RestrictedEditingModeEditing');_0x464f07['enableCommand']('trackChanges'),_0x464f07['enableCommand']('acceptSuggestion'),_0x464f07['enableCommand']('discardSuggestion'),_0x464f07['enableCommand']('acceptAllSuggestions'),_0x464f07['enableCommand']('discardAllSuggestions'),_0x464f07['enableCommand']('acceptSelectedSuggestions'),_0x464f07['enableCommand']('discardSelectedSuggestions');}}class At extends _0x116a29{['afterInit'](){const _0x1a0469=this['editor'];if(!_0x1a0469['plugins']['has']('ShiftEnter'))return;const _0x29e684=_0x1a0469['plugins']['get']('TrackChangesEditing');_0x29e684['enableCommand']('shiftEnter'),_0x29e684['descriptionFactory']['registerElementLabel']('softBreak',_0x532fb5=>o(_0x1a0469['locale'],'ELEMENT_LINE_BREAK',_0x532fb5));}}function an(_0x13f0b7,_0x53d15c,_0x124500){const _0x2bf301=[];for(const _0x43d460 of _0x53d15c['getItems']())_0x43d460['hasAttribute'](_0x13f0b7)&&_0x2bf301['push'](_0x124500['createRangeOn'](_0x43d460));return _0x2bf301;}class _t extends _0x116a29{['afterInit'](){const _0x26c122=this['editor'],_0x16a150=_0x26c122['plugins']['get']('TrackChangesEditing');_0x26c122['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16a150['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x35233a=this['editor'],_0x5d0f37=_0x35233a['model'],_0x58ecda=_0x35233a['locale'],_0x2885f4=_0x35233a['plugins']['get']('TrackChangesEditing'),_0xa75329='restrictedEditingException',_0xf7cdf6=_0x35233a['commands']['get'](_0xa75329);_0x2885f4['enableCommand'](_0xa75329,(_0xe53065,_0x2e23cb={})=>{const _0x47ad7a=_0x5d0f37['document']['selection'];if(_0x47ad7a['isCollapsed'])return void _0xe53065(_0x2e23cb);const _0x3b2e34=void 0x0!==_0x2e23cb['forceValue']?_0x2e23cb['forceValue']:!_0xf7cdf6['value'];_0x5d0f37['change'](()=>{const _0x473e1a=Array['from'](_0x47ad7a['getRanges']());for(const _0x7c56e4 of _0x473e1a){const _0x22f9cf=_0x3b2e34?[_0x7c56e4]:an(_0xa75329,_0x7c56e4,_0x5d0f37);for(const _0x22303a of _0x22f9cf)_0x2885f4['markInlineFormat'](_0x22303a,{'commandName':_0xa75329,'commandParams':[{'forceValue':_0x3b2e34}]});}});}),_0x2885f4['descriptionFactory']['registerDescriptionCallback'](_0x5704fc=>{if('formatBlock'!=_0x5704fc['type']&&'formatInline'!=_0x5704fc['type'])return;const {data:_0x3a66e7}=_0x5704fc;return _0x3a66e7&&_0x3a66e7['commandName']==_0xa75329?_0x3a66e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58ecda,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x58ecda,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5c8887=this['editor'],_0x12ba35=_0x5c8887['locale'],_0x249f9d=_0x5c8887['plugins']['get']('TrackChangesEditing'),_0x17d5fa='restrictedEditingExceptionBlock',_0x5ded50=this['editor']['commands']['get'](_0x17d5fa);_0x249f9d['enableCommand'](_0x17d5fa,(_0x2c864e,_0x27faf1={})=>{const _0x37c84b=this['editor']['model']['document']['selection'],_0x1ff5b2=_0x27faf1&&void 0x0!==_0x27faf1['forceValue']?_0x27faf1['forceValue']:!_0x5ded50['value'];let _0x160005=[];if(_0x1ff5b2){const _0x344b5f=Array['from'](_0x37c84b['getSelectedBlocks']())['filter'](_0x84b64d=>function(_0x270982){return!!_0x270982['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x84b64d)||function(_0x44a15b,_0x2cdccd){const _0x5684bc=_0x2cdccd['createContext'](_0x44a15b['parent']);if(!_0x2cdccd['checkChild'](_0x5684bc,'restrictedEditingException'))return!0x1;if(!_0x2cdccd['checkChild'](_0x5684bc['push']('restrictedEditingException'),_0x44a15b))return!0x1;return!0x0;}(_0x84b64d,this['editor']['model']['schema']));_0x160005=to(_0x344b5f,_0x5c8887['model']);}else{const _0x250d46=Array['from'](_0x37c84b['getSelectedBlocks']())['map'](_0x20bf71=>function(_0x1064c1){let _0x3f9579=_0x1064c1;for(;_0x3f9579['parent'];){if('restrictedEditingException'==_0x3f9579['parent']['name'])return _0x3f9579;_0x3f9579=_0x3f9579['parent'];}return null;}(_0x20bf71))['filter'](_0x4cc881=>!!_0x4cc881);_0x160005=to(_0x250d46,_0x5c8887['model']);}_0x5c8887['model']['change'](()=>{for(const _0x4d606e of _0x160005)_0x249f9d['markBlockFormat'](_0x4d606e,{'commandName':_0x17d5fa,'commandParams':[{'forceValue':_0x1ff5b2}]});});}),_0x249f9d['descriptionFactory']['registerDescriptionCallback'](_0x3fe30f=>{const {data:_0x438e66}=_0x3fe30f;if(_0x438e66&&_0x438e66['commandName']==_0x17d5fa)return _0x438e66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12ba35,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x12ba35,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x116a29{['afterInit'](){const _0xa31c58=this['editor'];if(!_0xa31c58['plugins']['has']('Style')||!_0xa31c58['plugins']['has']('DataSchema'))return;const _0x3486a8=_0xa31c58['plugins']['get']('TrackChangesEditing'),_0x490cc6=_0xa31c58['locale'],_0x541f21=_0xa31c58['config']['get']('style')||{},_0x2b5792=_0xa31c58['plugins']['get']('GeneralHtmlSupport'),_0x33b812=_0xa31c58['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa31c58['plugins']['get']('DataSchema'),_0x541f21['definitions']);_0x3486a8['enableDefaultAttributesIntegration']('style');const _0x31c5d3=new Set();for(const _0x14176f of _0x33b812['block']){const _0x4a1fc7=_0x2b5792['getGhsAttributeNameForElement'](_0x14176f['element']);_0x31c5d3['add'](_0x4a1fc7);}const _0x5061ce=new Set();for(const _0xc5a9ee of _0x33b812['inline']){const _0x5f47d9=_0x2b5792['getGhsAttributeNameForElement'](_0xc5a9ee['element']);_0x5061ce['add'](_0x5f47d9);for(const _0x5c08d4 of _0xc5a9ee['ghsAttributes'])_0x5061ce['add'](_0x5c08d4);}for(const _0x2527de of _0x31c5d3)_0x3486a8['descriptionFactory']['registerAttributeLabel'](_0x2527de,o(_0x490cc6,'FORMAT_STYLE'));for(const _0x5aaa39 of _0x5061ce)_0x3486a8['descriptionFactory']['registerAttributeLabel'](_0x5aaa39,o(_0x490cc6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c962=this['editor'],_0x278452=_0x45c962['locale'];_0x45c962['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ac7e9=>{if('formatBlock'!=_0x5ac7e9['type']&&'formatInline'!=_0x5ac7e9['type'])return;const {data:_0xba34fd}=_0x5ac7e9;return _0xba34fd&&'style'===_0xba34fd['commandName']?_0xba34fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x278452,'*Set\x20format:*\x20%0',_0xba34fd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x278452,'*Remove\x20format:*\x20%0',_0xba34fd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x116a29{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x92f99b){super(_0x92f99b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x24b344=this['editor'],_0x1b540b=_0x24b344['model']['document']['selection'];if(!_0x24b344['plugins']['has']('TableEditing'))return;const _0x2e6088=_0x24b344['locale'],_0x2a0bd8=_0x24b344['plugins']['get']('TrackChangesEditing'),_0x431c42=_0x24b344['plugins']['get']('TableUtils');_0x2a0bd8['descriptionFactory']['registerElementLabel']('table',_0x59a03e=>o(_0x2e6088,'ELEMENT_TABLE',_0x59a03e)),this['_setupColumnsRowsFixing'](),_0x2a0bd8['enableCommand']('insertTable'),_0x2a0bd8['enableCommand']('selectTableRow'),_0x2a0bd8['enableCommand']('selectTableColumn');for(const _0x3b60ae of['insertTableRowAbove','insertTableRowBelow']){const _0x5f37bf=_0x24b344['commands']['get'](_0x3b60ae);_0x2a0bd8['enableCommand'](_0x3b60ae,_0x1be3df=>{_0x24b344['model']['change'](_0x4dc274=>{_0x1be3df();const _0x2aca57='above'===_0x5f37bf['order'],_0x5b0800=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x4a55a0=_0x431c42['getRowIndexes'](_0x5b0800),_0x44a242=_0x2aca57?_0x4a55a0['first']-0x1:_0x4a55a0['last']+0x1,_0x190b64=_0x5b0800[0x0]['findAncestor']('table'),_0x23e80d=_0x431c42['createTableWalker'](_0x190b64,{'startRow':_0x44a242,'endRow':_0x44a242}),_0x524d98=Array['from'](_0x23e80d)['map'](_0x38b6df=>_0x4dc274['createRangeOn'](_0x38b6df['cell']));_0x2a0bd8['markMultiRangeInsertion'](_0x524d98,'tableRow');});});}for(const _0x52fd30 of['insertTableColumnLeft','insertTableColumnRight']){const _0x15a81d=_0x24b344['commands']['get'](_0x52fd30);_0x2a0bd8['enableCommand'](_0x52fd30,_0x34af40=>{_0x24b344['model']['change'](_0x38646d=>{_0x34af40();const _0x1c6c2e='left'===_0x15a81d['order'],_0x388212=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x155a97=_0x431c42['getColumnIndexes'](_0x388212),_0x1f1360=_0x1c6c2e?_0x155a97['first']-0x1:_0x155a97['last']+0x1,_0xbf60df=_0x388212[0x0]['findAncestor']('table'),_0xb1f98b=_0x431c42['createTableWalker'](_0xbf60df,{'startRow':0x0,'column':_0x1f1360,'includeAllSlots':!0x1}),_0x1c73d9=Array['from'](_0xb1f98b)['map'](_0x4c8921=>_0x38646d['createRangeOn'](_0x4c8921['cell']));_0x2a0bd8['markMultiRangeInsertion'](_0x1c73d9,'tableColumn');});});}for(const _0x4f3183 of['removeTableRow','removeTableColumn']){const _0x23bc5c=_0x4f3183['substr'](0xb),_0xfc0c33=_0x23bc5c['toLowerCase'](),_0x2e0b6e=_0xfc0c33['substr'](0x0,0x3)+'span',_0x4b8c04='table'+_0x23bc5c,_0x55d4b4='min'+_0x23bc5c,_0x36e482='max'+_0x23bc5c;_0x2a0bd8['enableCommand'](_0x4f3183,()=>{_0x24b344['model']['change'](_0x349f72=>{const _0x956b63=_0x431c42['getSelectionAffectedTableCells'](_0x1b540b),_0x5db4ca=_0x956b63[0x0]['findAncestor']('table');let _0x5a7314;if('removeTableRow'==_0x4f3183){const _0x377e15=_0x431c42['getRowIndexes'](_0x956b63);_0x5a7314={'startRow':_0x377e15['first'],'endRow':_0x377e15['last'],'includeAllSlots':!0x0};}else{const _0x268af2=_0x431c42['getColumnIndexes'](_0x956b63);_0x5a7314={'startColumn':_0x268af2['first'],'endColumn':_0x268af2['last'],'includeAllSlots':!0x0};}const _0xc1fd57=_0x431c42['createTableWalker'](_0x5db4ca,_0x5a7314),_0x4fb5a7=Array['from'](_0xc1fd57)['map'](({cell:_0x5beb95})=>_0x5beb95),_0x290c51=_e(_0x4fb5a7['filter'](_0x35033d=>_0x35033d['hasAttribute'](_0x2e0b6e))),_0x38c3e6=_e(_0x4fb5a7['filter'](_0x46c151=>!_0x46c151['hasAttribute'](_0x2e0b6e)))['map'](_0x48b409=>_0x349f72['createRangeOn'](_0x48b409)),_0x5a64ac=_0x2a0bd8['markMultiRangeDeletion'](_0x38c3e6,_0x4b8c04);if(_0x5a64ac&&('tableRow'==_0x5a64ac['subType']||'tableColumn'==_0x5a64ac['subType'])){const _0x3bed5a=this['_getSuggestionCoords'](_0x5a64ac);for(const _0x2b766e of _0x290c51){const _0x5038f0=_0x349f72['createRangeOn'](_0x2b766e),_0x1b9e5b=_0x431c42['getCellLocation'](_0x2b766e),_0x11b80a=_0x2b766e['getAttribute'](_0x2e0b6e)-0x1,_0x20f453=_0x3bed5a[_0x55d4b4],_0x48410d=_0x3bed5a[_0x36e482];_0x20f453<=_0x1b9e5b[_0xfc0c33]&&_0x1b9e5b[_0xfc0c33]+_0x11b80a<=_0x48410d&&_0x5a64ac['addRange'](_0x5038f0);}}});});}function _0x255c52(_0x29e6c9){const _0x4e5f36=Array['from'](_0x1b540b['getRanges']())['map'](_0x344f73=>_0x2d8975['fromRange'](_0x344f73));_0x24b344['model']['change'](_0x18a59b=>{const _0x515115=_0x18a59b['batch'];_0x29e6c9=_0x29e6c9['filter'](_0x2e5689=>'$graveyard'!=_0x2e5689['root']['rootName']),_0x18a59b['setSelection'](_0x29e6c9),_0x24b344['commands']['get']('removeTableRow')['refresh'](),_0x24b344['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x24b344['model']['enqueueChange'](()=>{_0x24b344['model']['enqueueChange'](_0x515115,_0x348e12=>{const _0x42eb23=_0x4e5f36['filter'](_0x16c3be=>'$graveyard'!=_0x16c3be['root']['rootName']);_0x42eb23['length']>0x0&&_0x348e12['setSelection'](_0x42eb23);for(const _0x34c697 of _0x4e5f36)_0x34c697['detach']();});});});}function _0x34aff7(_0x439d83){_0x24b344['model']['change'](_0x2d4157=>{const _0x167424=Array['from'](_0x1b540b['getRanges']())['map'](_0x556dab=>_0x2d8975['fromRange'](_0x556dab)),_0x26ffc5=[];for(const _0x43dc08 of _0x439d83)for(const _0x7f964c of _0x43dc08['getItems']({'shallow':!0x0}))_0x26ffc5['push'](_0x7f964c);for(const _0x1b9aa0 of _0x26ffc5)'$graveyard'!=_0x1b9aa0['root']['rootName']&&(_0x2d4157['setSelection'](_0x2d4157['createPositionAt'](_0x1b9aa0,0x0)),_0x24b344['commands']['get']('removeTableColumn')['refresh'](),_0x24b344['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3de481=_0x167424['filter'](_0x486d01=>'$graveyard'!=_0x486d01['root']['rootName']);_0x3de481['length']>0x0&&_0x2d4157['setSelection'](_0x3de481);for(const _0x117430 of _0x167424)_0x117430['detach']();});}function _0x3e2d53(_0x2f0005,_0x506e68){return _0x506e68['every'](_0x507bd3=>_0x2f0005['some'](_0xd38e46=>_0xd38e46['end']['isEqual'](_0x507bd3['start'])||_0x507bd3['end']['isEqual'](_0xd38e46['start'])));}function _0x158084(_0x28d7f9,_0x32f8a8){return!_0x28d7f9['some'](_0x57745a=>_0x32f8a8['some'](_0x3b24fb=>_0x57745a['isIntersecting'](_0x3b24fb)))&&_0x28d7f9['some'](_0x41f992=>_0x32f8a8['some'](_0x3ccff4=>_0x41f992['end']['isTouching'](_0x3ccff4['start'])));}_0x2a0bd8['descriptionFactory']['registerDescriptionCallback'](_0x16e466=>{if('insertion'!=_0x16e466['type']&&'deletion'!=_0x16e466['type'])return;const _0x5ee6f8=_0x16e466['getContainedElement']();if(null!=_0x5ee6f8&&_0x5ee6f8['is']('element','table')){if('insertion'==_0x16e466['type']){const _0x449b6b=_0x16e466['getItems']()['filter'](_0x3afc53=>_0x3afc53['is']('$textProxy'))['map'](_0x3b0ac1=>_0x3b0ac1['data']);if(_0x449b6b['length'])return{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x449b6b['join']('\x20')+'\x22'))};}if('deletion'==_0x16e466['type']){const _0x1d81dd=_0x16e466['getItems']()['filter'](_0xc9ab5b=>_0xc9ab5b['is']('$textProxy'))['map'](_0x2dcd3b=>_0x2dcd3b['data']);if(_0x1d81dd['length'])return{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d81dd['join']('\x20')+'\x22'))};}}}),_0x2a0bd8['descriptionFactory']['registerDescriptionCallback'](_0x5eb380=>{if('tableRow'==_0x5eb380['subType']){const _0x25d3d4=_0x5eb380['getItems']()['filter'](_0x282793=>_0x282793['is']('$textProxy'))['map'](_0x2fb3e3=>_0x2fb3e3['data']),_0x302775=this['_getSuggestionCoords'](_0x5eb380),_0x3e6054=_0x302775['maxRow']-_0x302775['minRow']+0x1;if('insertion'==_0x5eb380['type'])return _0x25d3d4['length']?{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e6054,'\x22'+_0x25d3d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW',_0x3e6054))};if('deletion'==_0x5eb380['type'])return _0x25d3d4['length']?{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e6054,'\x22'+_0x25d3d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_ROW',_0x3e6054))};}if('tableColumn'==_0x5eb380['subType']){const _0x346f78=_0x5eb380['getItems']()['filter'](_0x56ebc7=>_0x56ebc7['is']('$textProxy'))['map'](_0x1fc244=>_0x1fc244['data']),_0x19b190=this['_getSuggestionCoords'](_0x5eb380),_0x4bdda3=_0x19b190['maxColumn']-_0x19b190['minColumn']+0x1;if('insertion'==_0x5eb380['type'])return _0x346f78['length']?{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bdda3,'\x22'+_0x346f78['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e6088,'*Insert:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN',_0x4bdda3))};if('deletion'==_0x5eb380['type'])return _0x346f78['length']?{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4bdda3,'\x22'+_0x346f78['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e6088,'*Remove:*\x20%0',o(_0x2e6088,'ELEMENT_TABLE_COLUMN',_0x4bdda3))};}}),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x255c52),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x255c52),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34aff7),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34aff7),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e2d53),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e2d53),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x158084),_0x2a0bd8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x158084);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5dbb08=this['editor'],_0x5f128e=_0x5dbb08['model']['document']['selection'];return(_0x37d9d6,_0x1a923c)=>{_0x5dbb08['model']['change'](_0x41ac6f=>{const {commandName:_0x102d2e,commandParams:_0x576aea}=_0x1a923c;let _0x4b4194=_0x37d9d6[0x0]['end']['nodeBefore'];_0x576aea&&_0x576aea[0x0]&&!0x1===_0x576aea[0x0]['forceValue']&&(_0x4b4194=_0x37d9d6[0x0]['start']['nodeAfter']);const _0x4a4e42=_0x41ac6f['createRangeIn'](_0x4b4194);if('$graveyard'==_0x4a4e42['root']['rootName'])return;const _0x2c37de=Array['from'](_0x5f128e['getRanges']())['map'](_0x1314b4=>_0x2d8975['fromRange'](_0x1314b4));_0x41ac6f['setSelection'](_0x4a4e42),_0x5dbb08['commands']['get'](_0x102d2e)['refresh'](),_0x576aea['push']({'forceDefaultExecution':!0x0}),_0x5dbb08['execute'](_0x102d2e,..._0x576aea);const _0x52268d=_0x2c37de['filter'](_0x3bb35d=>'$graveyard'!=_0x3bb35d['root']['rootName']);_0x52268d['length']>0x0&&_0x41ac6f['setSelection'](_0x52268d);for(const _0x343db1 of _0x2c37de)_0x343db1['detach']();});};}['_getCoordsForCells'](_0x4bd90b){const _0x500d81=this['editor']['plugins']['get']('TableUtils');let _0x2953e1=Number['MAX_SAFE_INTEGER'],_0x5619f0=Number['MIN_SAFE_INTEGER'],_0x5a3408=Number['MAX_SAFE_INTEGER'],_0x31d864=Number['MIN_SAFE_INTEGER'];for(const _0x370ba0 of _0x4bd90b){if('$graveyard'==_0x370ba0['root']['rootName'])continue;const {row:_0x157016,column:_0x3ac328}=_0x500d81['getCellLocation'](_0x370ba0),_0x55870c=_0x370ba0['hasAttribute']('rowspan')?_0x370ba0['getAttribute']('rowspan')-0x1:0x0,_0x472b68=_0x370ba0['hasAttribute']('colspan')?_0x370ba0['getAttribute']('colspan')-0x1:0x0;_0x2953e1=_0x157016<_0x2953e1?_0x157016:_0x2953e1,_0x5619f0=_0x157016+_0x55870c>_0x5619f0?_0x157016+_0x55870c:_0x5619f0,_0x5a3408=_0x3ac328<_0x5a3408?_0x3ac328:_0x5a3408,_0x31d864=_0x3ac328+_0x472b68>_0x31d864?_0x3ac328+_0x472b68:_0x31d864;}return{'minRow':_0x2953e1,'maxRow':_0x5619f0,'minColumn':_0x5a3408,'maxColumn':_0x31d864};}['_setupColumnsRowsFixing'](){const _0x1207fd=this['editor'],_0x1b577f=_0x1207fd['plugins']['get']('TrackChangesEditing'),_0x5c8f23=_0x1207fd['plugins']['get']('TableUtils');_0x1207fd['model']['document']['on']('change:data',()=>{const _0x25de00=Array['from'](_0x1207fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28fa64,data:_0x5e2313}of _0x25de00){const {group:_0x1e7abf,id:_0x421b9e,subType:_0x6cd349}=_0x1b577f['_splitMarkerName'](_0x28fa64);if('suggestion'!=_0x1e7abf)continue;if(null!=_0x5e2313['oldRange'])continue;const _0x2b7f0e=_0x1b577f['getSuggestion'](_0x421b9e);this['_tablePostFixingSubtypes']['includes'](_0x6cd349)&&this['_tableSuggestions']['add'](_0x2b7f0e);}},{'priority':'low'});const _0x452fa3=(_0x347448,_0x9f12f2)=>{let _0x33885d=!0x1;const _0x163c29=_0x9f12f2['createRangeOn'](_0x347448),_0x2e45e1=_0x347448['findAncestor']('table'),_0x158ae9=_0x5c8f23['getCellLocation'](_0x347448);for(const _0x4661be of this['_tableSuggestions']){const _0x50c041=_0x4661be['subType'],_0x254dd6=_0x50c041['startsWith']('tablePaste'),_0x146f2a=_0x50c041['substr'](_0x254dd6?0xa:0x5),_0x36f1a2=_0x146f2a['toLowerCase'](),_0x5899f0=_0x36f1a2['substr'](0x0,0x3)+'span',_0x4713dd='min'+_0x146f2a,_0x4477b0='max'+_0x146f2a;if(!_0x4661be['isInContent'])continue;if(_0x2e45e1!=_0x4661be['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4661be['isIntersectingWithRange'](_0x163c29))continue;const _0x2a30f5=_0x347448['hasAttribute'](_0x5899f0)?_0x347448['getAttribute'](_0x5899f0)-0x1:0x0,_0x1f6e97=this['_getSuggestionCoords'](_0x4661be),_0x16c0a8=_0x1f6e97[_0x4713dd],_0x2dd690=_0x1f6e97[_0x4477b0];_0x16c0a8<=_0x158ae9[_0x36f1a2]&&_0x158ae9[_0x36f1a2]+_0x2a30f5<=_0x2dd690&&(_0x4661be['addRange'](_0x163c29),_0x33885d=!0x0);}return _0x33885d;};_0x1207fd['model']['document']['registerPostFixer'](_0x201324=>{let _0x1606ef=!0x1;for(const _0x3f5de5 of _0x1207fd['model']['document']['differ']['getChanges']())if('insert'==_0x3f5de5['type']){if('tableRow'==_0x3f5de5['name']){for(const _0xc731a2 of _0x3f5de5['position']['nodeAfter']['getChildren']())_0x1606ef=_0x1606ef||_0x452fa3(_0xc731a2,_0x201324);}else'tableCell'==_0x3f5de5['name']&&(_0x1606ef=_0x1606ef||_0x452fa3(_0x3f5de5['position']['nodeAfter'],_0x201324));}return _0x1606ef;});}['_getSuggestionCoords'](_0x3f5a06){return this['_getCoordsForCells'](_0x3f5a06['getRanges']()['map'](_0x33b17a=>_0x33b17a['start']['nodeAfter']));}}function _e(_0x16ff97){return Array['from'](new Set(_0x16ff97)['values']());}class $t extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0x58fce4=this['editor'],_0x58e965=_0x58fce4['model']['document']['selection'],_0x55ce98=_0x58fce4['locale'];if(!_0x58fce4['plugins']['has']('TableEditing'))return;const _0x2570a0=_0x58fce4['plugins']['get']('TrackChangesEditing'),_0x993753=_0x58fce4['plugins']['get']('TableUtils'),_0x4c708a=_0x58fce4['plugins']['get'](Nt);_0x4c708a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2570a0['enableCommand']('mergeTableCells',()=>{const _0x388dfd=_0x993753['getSelectionAffectedTableCells'](_0x58fce4['model']['document']['selection']);_0x58fce4['model']['change'](()=>{_0x2570a0['markMultiRangeBlockFormat'](_0x388dfd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x58fce4['commands']['get']('mergeTableCells')['on']('execute',(_0x11abb7,_0x1848a6)=>{_0x58fce4['commands']['get']('trackChanges')['value']&&(_0x1848a6['length']>0x0&&_0x1848a6[_0x1848a6['length']-0x1]&&_0x1848a6[_0x1848a6['length']-0x1]['forceDefaultExecution']||_0x2570a0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11abb7['stop']());},{'priority':'highest'});for(const _0x12270a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2055f4=_0x58fce4['commands']['get'](_0x12270a);_0x2570a0['enableCommand'](_0x12270a,()=>{const _0x17ec4a=_0x58fce4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dae6f=>_0x2dae6f['is']('element','tableCell')),_0x325cc1=_0x2055f4['value'];_0x58fce4['model']['change'](()=>{_0x2570a0['markMultiRangeBlockFormat']([_0x17ec4a,_0x325cc1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490390 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f14da=_0x58fce4['commands']['get'](_0x490390);_0x2570a0['enableCommand'](_0x490390,()=>{const _0x25c966=_0x993753['getSelectionAffectedTableCells'](_0x58fce4['model']['document']['selection'])[0x0],_0x2ba35f=_0x25c966['findAncestor']('table'),{column:_0x28045e,row:_0x41445c}=_0x993753['getCellLocation'](_0x25c966);let _0x21cadc=[];if('horizontally'==_0x5f14da['direction']){const _0x22e961=_0x993753['createTableWalker'](_0x2ba35f,{'startRow':_0x41445c,'endRow':_0x41445c,'includeAllSlots':!0x0});_0x21cadc=Array['from'](_0x22e961)['map'](_0x35a439=>_0x35a439['cell']);}else{const _0x58c33a=_0x993753['createTableWalker'](_0x2ba35f,{'column':_0x28045e,'includeAllSlots':!0x0});_0x21cadc=Array['from'](_0x58c33a)['map'](_0x5a131c=>_0x5a131c['cell']);}_0x58fce4['model']['change'](_0x52c4aa=>{_0x2570a0['markBlockFormat'](_0x52c4aa['createRangeOn'](_0x25c966),{'commandName':_0x490390,'commandParams':[]},_0x21cadc,_0x490390);});});}_0x2570a0['descriptionFactory']['registerDescriptionCallback'](_0x4f00b6=>{if('formatBlock'!=_0x4f00b6['type']&&'formatInline'!=_0x4f00b6['type'])return;const {data:_0x424cbd}=_0x4f00b6;return _0x424cbd&&'mergeTableCells'==_0x424cbd['commandName']?{'type':'format','content':o(_0x55ce98,'*Merge\x20cells*')}:void 0x0;}),_0x2570a0['descriptionFactory']['registerDescriptionCallback'](_0x110bbc=>{if('formatBlock'!=_0x110bbc['type']&&'formatInline'!=_0x110bbc['type'])return;const {data:_0x5a0ba7}=_0x110bbc;return _0x5a0ba7?'splitTableCellVertically'==_0x5a0ba7['commandName']?{'type':'format','content':o(_0x55ce98,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5a0ba7['commandName']?{'type':'format','content':o(_0x55ce98,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x47d69a=_0x4c708a['_acceptFormatSuggestionCallbackFactory']();for(const _0x18911e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18911e,'accept',_0x47d69a);for(const _0x29555e of['splitTableCellVertically','splitTableCellHorizontally'])_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x29555e,'accept',_0x47d69a);_0x2570a0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13f580=>{_0x58fce4['model']['change'](_0x2718ca=>{const _0x38a3ec=Array['from'](_0x58e965['getRanges']())['map'](_0x10e765=>_0x2d8975['fromRange'](_0x10e765));_0x2718ca['setSelection'](_0x13f580),_0x58fce4['commands']['get']('mergeTableCells')['refresh'](),_0x58fce4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee824=_0x38a3ec['filter'](_0x2d6003=>'$graveyard'!=_0x2d6003['root']['rootName']);_0x4ee824['length']>0x0&&_0x2718ca['setSelection'](_0x4ee824);for(const _0x22a9b1 of _0x38a3ec)_0x22a9b1['detach']();});});for(const _0x249e66 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cb0a1=_0x58fce4['commands']['get'](_0x249e66);_0x5cb0a1['on']('set:isEnabled',(_0x572cdc,_0x58e263,_0x51f190)=>{if(_0x51f190){const _0x52ba7a=_0x58fce4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x546eaf=>_0x546eaf['is']('element','tableCell'));this['_areMergableCells'](_0x5cb0a1['value'],_0x52ba7a)||(_0x572cdc['return']=!0x1,_0x572cdc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4cb017=this['editor']['commands']['get']('mergeTableCells'),_0x15fb2c=this['editor']['plugins']['get']('TableUtils');if(!_0x4cb017['isEnabled'])return!0x1;const _0x1ea352=_0x15fb2c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d02f8 of _0x1ea352)for(const _0x3760db of _0x1ea352)if(_0x2d02f8!=_0x3760db&&!this['_areMergableCells'](_0x2d02f8,_0x3760db))return!0x1;return!0x0;}['_areMergableCells'](_0x4543f3,_0x29be01){const _0x3ba691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a8a5=this['editor']['model']['createRangeOn'](_0x4543f3),_0x46b514=this['editor']['model']['createRangeOn'](_0x29be01),_0x116831=new Set(),_0x79423f=new Set();for(const _0x38e473 of _0x3ba691['getSuggestions']())if(('insertion'==_0x38e473['type']||'deletion'==_0x38e473['type']||'mergeTableCells'==_0x38e473['subType'])&&_0x38e473['isInContent']){for(const _0x4fccc9 of _0x38e473['getRanges']())_0x4fccc9['containsRange'](_0x50a8a5,!0x0)&&_0x116831['add'](_0x38e473['type']+':'+_0x38e473['author']['id']),_0x4fccc9['containsRange'](_0x46b514,!0x0)&&_0x79423f['add'](_0x38e473['type']+':'+_0x38e473['author']['id']);}if(_0x116831['size']!=_0x79423f['size'])return!0x1;for(const _0x5c66cd of _0x116831)if(!_0x79423f['has'](_0x5c66cd))return!0x1;return!0x0;}}class vt extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0x266bf4=this['editor'];if(!_0x266bf4['plugins']['has']('TableEditing'))return;const _0x283b1f=_0x266bf4['locale'],_0x175e6f=_0x266bf4['plugins']['get']('TrackChangesEditing');_0x175e6f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x175e6f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x175e6f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x283b1f,'FORMAT_HEADER_ROW')),_0x175e6f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x283b1f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48f6a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d220=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x48f6a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x23d220),_0x48f6a8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x23d220),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x379644=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23e1d6=this['editor']['plugins']['get']('TableUtils');function _0x4f635d({showActiveMarker:_0x5cd282=!0x0,setDataAttribute:_0x3f88cd=!0x0}={}){return(_0x497722,_0x31a4b8,_0x4fb0ac)=>{const {type:_0x55ba10,id:_0x502c7d}=_0x379644['_splitMarkerName'](_0x31a4b8['markerName']);if(!_0x379644['hasSuggestion'](_0x502c7d))return;const _0x1b26f5=_0x379644['getSuggestion'](_0x502c7d),_0x17a1fb=_0x1b26f5['data'];if('formatBlock'!=_0x1b26f5['type']||!_0x17a1fb||'setTableColumnHeader'!=_0x17a1fb['commandName'])return;if(_0x31a4b8['item'])return void _0x497722['stop']();if(!_0x4fb0ac['consumable']['consume'](_0x31a4b8['markerRange'],_0x497722['name']))return;const _0x484860=_0x31a4b8['markerRange']['start']['nodeAfter'],_0x5e1f87=_0x31a4b8['markerRange']['end']['nodeBefore'],_0x349873=_0x484860['parent']['parent'],{column:_0x3d4a5e}=_0x23e1d6['getCellLocation'](_0x484860),{column:_0xa1bef4}=_0x23e1d6['getCellLocation'](_0x5e1f87);for(let _0x1629e6=_0x3d4a5e;_0x1629e6<=_0xa1bef4;_0x1629e6++){const _0x495c52=_0x23e1d6['createTableWalker'](_0x349873,{'column':_0x1629e6,'includeAllSlots':!0x1});for(const _0x1fd3db of _0x495c52){const _0x56bc98=_0x1fd3db['cell'],_0x11617a=_0x4fb0ac['mapper']['toViewElement'](_0x56bc98);_0x4fb0ac['writer']['addClass']('ck-suggestion-marker-'+_0x55ba10,_0x11617a),_0x3f88cd&&_0x4fb0ac['writer']['setAttribute']('data-suggestion',_0x502c7d,_0x11617a),_0x4fb0ac['mapper']['bindElementToMarker'](_0x11617a,_0x31a4b8['markerName']),_0x5cd282&&(_0x379644['activeMarkers']['includes'](_0x31a4b8['markerName'])?_0x4fb0ac['writer']['addClass']('ck-suggestion-marker--active',_0x11617a):_0x4fb0ac['writer']['removeClass']('ck-suggestion-marker--active',_0x11617a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f635d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34f76c,_0x43c670,_0x8fe78)=>{_0x8fe78['options']['showSuggestionHighlights']&&_0x4f635d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34f76c,_0x43c670,_0x8fe78);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x430a3d,_0x2aceb7,_0x39e051)=>{const {type:_0x41baae,id:_0x233d93}=_0x379644['_splitMarkerName'](_0x2aceb7['markerName']);if(!_0x379644['hasSuggestion'](_0x233d93))return;const _0x32a0ec=_0x379644['getSuggestion'](_0x233d93),_0x17b0a1=_0x32a0ec['data'];if('formatBlock'!=_0x32a0ec['type']||!_0x17b0a1||'setTableColumnHeader'!=_0x17b0a1['commandName'])return;const _0x4e33bd=_0x39e051['mapper']['markerNameToElements'](_0x2aceb7['markerName']);if(_0x4e33bd){for(const _0xe46e30 of _0x4e33bd)_0x39e051['writer']['removeClass']('ck-suggestion-marker-'+_0x41baae,_0xe46e30),_0x39e051['writer']['removeClass']('ck-suggestion-marker--active',_0xe46e30),_0x39e051['writer']['removeAttribute']('data-suggestion',_0xe46e30),_0x39e051['mapper']['unbindElementFromMarkerName'](_0xe46e30,_0x2aceb7['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x284a04=this['editor'],_0x4f2bcc=_0x284a04['locale'];function _0x4dd6ab(_0x22421d){return{'type':'format','content':o(_0x4f2bcc,'*Format:*\x20%0',_0x22421d)};}_0x284a04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57f9e0=>{if('formatBlock'!=_0x57f9e0['type'])return;const {data:_0x8c173e}=_0x57f9e0;if(_0x8c173e){if('setTableRowHeader'==_0x8c173e['commandName']){const _0x35b388=_0x8c173e['commandParams'][0x0]['forceValue'];return _0x4dd6ab(o(_0x4f2bcc,_0x35b388?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x8c173e['commandName']){const _0x408432=_0x8c173e['commandParams'][0x0]['forceValue'];return _0x4dd6ab(o(_0x4f2bcc,_0x408432?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x116a29{['afterInit'](){const _0x175800=this['editor'],_0x9dc2d9=_0x175800['locale'],_0x21abf8=_0x175800['plugins']['get']('TrackChangesEditing');function _0x13c18c(_0x5d03e5){return{'type':'format','content':''+o(_0x9dc2d9,'*Set\x20table\x20type:*\x20%0',_0x5d03e5)};}_0x175800['plugins']['has']('TableLayout')&&(_0x21abf8['enableCommand']('insertTableLayout'),_0x21abf8['enableDefaultAttributesIntegration']('tableType'),_0x21abf8['descriptionFactory']['registerElementLabel'](_0x33a38c=>_0x33a38c['is']('element','table')&&'layout'===_0x33a38c['getAttribute']('tableType'),_0x5aeb65=>o(_0x9dc2d9,'ELEMENT_LAYOUT_TABLE',_0x5aeb65)),_0x21abf8['descriptionFactory']['registerDescriptionCallback'](_0x26c978=>{const {data:_0x3c8e61}=_0x26c978;if(_0x3c8e61&&'tableType'==_0x3c8e61['key'])switch(_0x3c8e61['newValue']){case'layout':return _0x13c18c(o(_0x9dc2d9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x13c18c(o(_0x9dc2d9,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x1417ae=>[_0x1417ae,null]));class Bt extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0xc48cc=this['editor'];if(!_0xc48cc['plugins']['has']('TableClipboard'))return;const _0x3e2079=_0xc48cc['plugins']['get']('TrackChangesEditing'),_0x394a7a=_0xc48cc['plugins']['get']('TableUtils'),_0x1dfc76=_0xc48cc['plugins']['get'](Nt),_0x5d0d4c=_0xc48cc['plugins']['get']('TableClipboard'),_0x1e2404=_0xc48cc['plugins']['get']('TableSelection'),_0x442a24=_0xc48cc['plugins']['get'](_0x4a131b);_0x1dfc76['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xc48cc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xc48cc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d51da=null,_0x3e54aa=!0x1;_0x442a24['on']('contentInsertion',(_0x457bfc,_0xcb8b4d)=>{_0x3e54aa='paste'===_0xcb8b4d['method'];}),_0xc48cc['model']['on']('insertContent',(_0x273046,_0x1c8254)=>{if(!_0x3e54aa&&null===_0x1e2404['getSelectedTableCells']())return;const [_0x524b1a,_0x2b1785]=_0x1c8254,_0x11381b=_0x1c8254[_0x1c8254['length']-0x1];_0x11381b&&_0x11381b['forceDefaultExecution']||_0x3e2079['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c0e14,_0x11c897,_0x33027f,_0x136a5e,_0x1ee058){if(_0x11c897&&!_0x11c897['is']('documentSelection'))return!0x1;const _0x2e1f2f=_0x1ee058['getTableIfOnlyTableInContent'](_0x5c0e14,_0x33027f);if(!_0x2e1f2f||!Oe(_0x2e1f2f,void 0x0,_0x136a5e))return!0x1;const _0x15f92a=_0x136a5e['getSelectionAffectedTableCells'](_0x33027f['document']['selection']);if(!_0x15f92a['length'])return!0x1;const _0x4d4471=_0x15f92a[0x0]['findAncestor']('table'),_0x44d427=_0x136a5e['getRowIndexes'](_0x15f92a),_0x9d3523=_0x136a5e['getColumnIndexes'](_0x15f92a),_0x2a9883={'startRow':_0x44d427['first'],'endRow':_0x44d427['last'],'startColumn':_0x9d3523['first'],'endColumn':_0x9d3523['last']};return 0x1==_0x15f92a['length']&&(_0x2a9883['endRow']+=_0x136a5e['getRows'](_0x2e1f2f)-0x1,_0x2a9883['endColumn']+=_0x136a5e['getColumns'](_0x2e1f2f)-0x1),Oe(_0x4d4471,_0x2a9883,_0x136a5e);}(_0x524b1a,_0x2b1785,_0xc48cc['model'],_0x394a7a,_0x5d0d4c)&&(_0x273046['stop'](),_0x3d51da={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xc48cc['model']['change'](()=>{_0xc48cc['model']['insertContent'](_0x1c8254[0x0],_0x1c8254[0x1],_0x1c8254[0x2],{'forceDefaultExecution':!0x0});const _0x5204db=_0x492477(),{rowInsertionRanges:_0x3ef04c,columnInsertionRanges:_0x4952fc,insertionRanges:_0x456877,deletionRanges:_0xd1a350,cells:_0x5bc3ab}=_0x3d51da;_0x3ef04c['length']&&_0x3e2079['markMultiRangeInsertion'](_0x3ef04c,'tablePasteRow',{'tablePasteChainId':_0x5204db}),_0x4952fc['length']&&_0x3e2079['markMultiRangeInsertion'](_0x4952fc,'tablePasteColumn',{'tablePasteChainId':_0x5204db}),_0x456877['length']&&(_0x3e2079['markMultiRangeInsertion'](_0x456877,'tablePaste',{'tablePasteChainId':_0x5204db,'skipNestingCheck':!0x0}),_0x456877['forEach'](_0xa762e9=>_0xa762e9['detach']?.())),_0xd1a350['length']&&(_0x3e2079['markMultiRangeDeletion'](_0xd1a350,'tablePaste',{'tablePasteChainId':_0x5204db,'skipNestingCheck':!0x0}),_0xd1a350['forEach'](_0x2f9f95=>_0x2f9f95['detach']?.()));const _0x422f0f=_0x3e2079['markMultiRangeBlockFormat'](_0x5bc3ab['map'](({element:_0x434693})=>_0x434693),{'formatGroupId':_0x492477()},[],'tablePasteCell',{'tablePasteChainId':_0x5204db});if(_0x422f0f){const _0xde0a02=_0x422f0f['getMarkers'](),_0x4c1ba4=[];for(const {element:_0x612d9e,attributes:_0x5cc39a}of _0x5bc3ab){if(!_0x5cc39a)continue;const _0x320233=_0xc48cc['model']['createRangeOn'](_0x612d9e),_0x3b4ee4=_0xde0a02['find'](_0x1dd157=>_0x1dd157['getRange']()['isEqual'](_0x320233));_0x3b4ee4&&_0x4c1ba4['push']([_0x3b4ee4['name'],_0x5cc39a]);}_0x4c1ba4['length']&&_0x422f0f['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c1ba4));}_0x3d51da=null;}));},{'priority':_0x144041['high']+0xa}),_0x442a24['on']('contentInsertion',()=>{_0x3e54aa=!0x1;},{'priority':'lowest'}),_0xc48cc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2068dd,_0x1ea7b8)=>{const [_0x49984c,_0xbdef96,,_0xcaa0ad]=_0x1ea7b8;if(!_0x3d51da)return;_0x2068dd['stop']();const _0x3e460b=_0x49984c['cell'],_0x9fe9cf=_0xbdef96,_0x3abe38=Be(_0x3e460b),_0x25dba8=Be(_0x9fe9cf);_0x2068dd['return']=_0x3e460b;let _0x4d482f=null,_0x1864b5=null;if(_0x25dba8||_0x3abe38){if(_0x3abe38&&!_0x25dba8){_0xcaa0ad['remove'](_0x3e460b['getChild'](0x0));for(const _0x43934a of Array['from'](_0x9fe9cf['getChildren']()))_0xcaa0ad['insert'](_0x43934a,_0x3e460b,'end');const _0x15e687=_0x3d51da['rowInsertionIndexes']['includes'](_0x49984c['row']),_0x47e162=_0x3d51da['columnInsertionIndexes']['includes'](_0x49984c['column']);_0x15e687||_0x47e162||(_0x4d482f=_0x2d8975['fromRange'](_0xcaa0ad['createRangeIn'](_0x3e460b)));}else _0x25dba8&&!_0x3abe38&&(_0x1864b5=_0xcaa0ad['createRangeIn'](_0x3e460b));}else{const _0x1ec4ae=_0xcaa0ad['createElement']('tableCellSuggestion'),_0x1f74cd=_0xcaa0ad['createElement']('tableCellSuggestion');_0xcaa0ad['wrap'](_0xcaa0ad['createRangeIn'](_0x3e460b),_0x1f74cd),_0xcaa0ad['insert'](_0x1ec4ae,_0x3e460b,0x0);for(const _0x54a887 of Array['from'](_0x9fe9cf['getChildren']()))_0xcaa0ad['insert'](_0x54a887,_0x1ec4ae,'end');_0x4d482f=_0x2d8975['fromRange'](_0xcaa0ad['createRangeOn'](_0x1ec4ae)),_0x1864b5=_0x2d8975['fromRange'](_0xcaa0ad['createRangeOn'](_0x1f74cd));}const _0x52b56d=Array['from'](_0x9fe9cf['getAttributes']())['filter'](([_0xf10b46])=>Re['includes'](_0xf10b46));_0x3d51da['cells']['push']({'element':_0x3e460b,'attributes':_0x52b56d['length']?Object['fromEntries'](_0x52b56d):null}),_0x4d482f&&_0x3d51da['insertionRanges']['push'](_0x4d482f),_0x1864b5&&_0x3d51da['deletionRanges']['push'](_0x1864b5);},{'priority':'high'}),_0x394a7a['on']('insertColumns',(_0x666cc9,_0x26241d)=>{const [_0x2b089f,_0x52f1c5={}]=_0x26241d;if(!_0x3d51da)return;const _0x4386b1=_0x52f1c5['at']||0x0,_0x192c34=_0x52f1c5['columns']||0x1;_0x3d51da['columnInsertionIndexes']=new Array(_0x192c34)['fill'](_0x4386b1)['map']((_0x2958bb,_0x216e71)=>_0x2958bb+_0x216e71);for(const {cell:_0x53580d}of _0x394a7a['createTableWalker'](_0x2b089f,{'startColumn':_0x4386b1,'endColumn':_0x4386b1+_0x192c34-0x1}))_0x3d51da['columnInsertionRanges']['push'](_0xc48cc['model']['createRangeOn'](_0x53580d));},{'priority':'low'}),_0x394a7a['on']('insertRows',(_0x384012,_0x157ea6)=>{const [_0x5d38cb,_0x35232d={}]=_0x157ea6;if(!_0x3d51da)return;const _0x258d86=_0x35232d['at']||0x0,_0x1db996=_0x35232d['rows']||0x1;_0x3d51da['rowInsertionIndexes']=new Array(_0x1db996)['fill'](_0x258d86)['map']((_0x34acb8,_0x1e9f08)=>_0x34acb8+_0x1e9f08);for(const {cell:_0x3e7564}of _0x394a7a['createTableWalker'](_0x5d38cb,{'startRow':_0x258d86,'endRow':_0x258d86+_0x1db996-0x1}))_0x3d51da['rowInsertionRanges']['push'](_0xc48cc['model']['createRangeOn'](_0x3e7564));},{'priority':'low'}),_0x3e2079['descriptionFactory']['registerDescriptionCallback'](_0x435cfd=>{if(_0x435cfd['subType']&&_0x435cfd['subType']['startsWith']('tablePaste'))return _0x435cfd['previous']?{}:{'type':'insertion','content':o(_0xc48cc['locale'],'*Replace\x20table\x20cells*')};});const _0x490b05=()=>!0x1;for(const _0x2c4f6c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c4f6c,'join',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c4f6c,'join',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c4f6c,'join',_0x490b05);_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x490b05),_0x3e2079['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3cbadc,_0x419fe8,_0x1c8d5b)=>{const _0x3b9e9f=_0x3cbadc['map'](_0x4a35f1=>_0x4a35f1['getContainedElement']())['filter'](_0x558b42=>_0x558b42),_0x180faa=new Map(_0x3b9e9f['map'](_0x4ac21e=>[_0x4ac21e,null]));if(_0x3d51da){for(const {element:_0x28c017,attributes:_0x286b97}of _0x3d51da['cells'])_0x286b97&&_0x180faa['set'](_0x28c017,_0x286b97);}else{if(_0x1c8d5b&&_0x1c8d5b['markerAttributes'])for(const [_0x235b6e,_0x40c09e]of Object['entries'](_0x1c8d5b['markerAttributes'])){const _0x1fe5d4=_0xc48cc['model']['markers']['get'](_0x235b6e),_0x4b68e5=_0x1fe5d4?_0x1fe5d4['getRange']()['getContainedElement']():null;_0x4b68e5&&_0x180faa['set'](_0x4b68e5,_0x40c09e);}}_0xc48cc['model']['change'](_0x4e502e=>{for(const [_0x26c92a,_0x8b3c7f]of _0x180faa)_0x4e502e['setAttributes']({...Ae,..._0x8b3c7f},_0x26c92a);});});const _0x40e7bf=(_0x48f416,_0x4908a9)=>{_0x3e2079['_suggestionFactory']['registerCustomCallback'](_0x48f416,'tablePaste',_0x4908a9,(_0x65bad6,_0x5d891f,_0x3f3ba0)=>{_0xc48cc['model']['change'](_0x17cb1c=>{const _0x377a4c=[];for(const _0x359b7f of _0x65bad6){const _0x2ae09a=_0x359b7f['start']['nodeAfter'];_0x2ae09a['is']('element','tableCellSuggestion')&&_0x377a4c['push'](_0x2ae09a);}_0x3e2079['_suggestionFactory']['getSuggestionCallback'](_0x48f416,null,_0x4908a9)(_0x65bad6,_0x5d891f,_0x3f3ba0);for(const _0x5f435e of _0x377a4c)'$graveyard'!=_0x5f435e['root']['rootName']&&_0x17cb1c['unwrap'](_0x5f435e);});});};_0x40e7bf('insertion','accept'),_0x40e7bf('insertion','discard'),_0x40e7bf('deletion','accept'),_0x40e7bf('deletion','discard'),_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34f360=>{const _0x56c150=_0x34f360['map'](_0x578510=>_0x578510['getContainedElement']()),_0x420717=_0x56c150[0x0]['findAncestor']('table'),{minRow:_0xfb98b,maxRow:_0xa73c89}=_0x1dfc76['_getCoordsForCells'](_0x56c150);_0x394a7a['removeRows'](_0x420717,{'at':_0xfb98b,'rows':_0xa73c89-_0xfb98b+0x1});}),_0x3e2079['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b0eeb=>{const _0x590fb6=_0x4b0eeb['map'](_0x568cf6=>_0x568cf6['getContainedElement']()),_0xb58f32=_0x590fb6[0x0]['findAncestor']('table'),{minColumn:_0x554d00,maxColumn:_0x33dc99}=_0x1dfc76['_getCoordsForCells'](_0x590fb6);_0x394a7a['removeColumns'](_0xb58f32,{'at':_0x554d00,'columns':_0x33dc99-_0x554d00+0x1});});const _0x1f84ee=(_0x2a7a15,_0x3c8be7)=>{if(!_0x3c8be7['subType']||!_0x3c8be7['subType']['startsWith']('tablePaste'))return;const _0x9356e0=_0x3c8be7['attributes']['tablePasteChainId'],_0x1e1f70=_0x3e2079['getSuggestions']()['filter'](_0x419f83=>_0x419f83['isInContent']&&_0x419f83['attributes']&&_0x419f83['attributes']['tablePasteChainId']==_0x9356e0);_0x1e1f70['length']&&_0x3c8be7['getAllAdjacentSuggestions']()['length']!=_0x1e1f70['length']&&_0x1e1f70['reduce']((_0x51bae2,_0x3f639a)=>(_0x51bae2['next']=_0x3f639a,_0x3f639a['previous']=_0x51bae2,_0x3f639a));};function _0x1824ea(_0x359b14,_0x3f27d0=!0x0){const {id:_0x3cdd51,authorId:_0x43d0c8}=_0x3e2079['_splitMarkerName'](_0x359b14['markerName']),_0x562501=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14a755=_0x3e2079['activeMarkers']['includes'](_0x359b14['markerName']);return _0x14a755&&_0x562501['push']('ck-suggestion-marker--active'),{'classes':_0x562501,'attributes':{'data-suggestion':_0x3cdd51,'data-author-id':_0x43d0c8},'priority':_0x14a755&&_0x3f27d0?0xbc2:0xbb8};}_0x3e2079['on']('suggestionLoaded',_0x1f84ee,{'priority':'high'}),_0x3e2079['on']('suggestionUnloaded',_0x1f84ee,{'priority':'high'}),_0xc48cc['model']['document']['registerPostFixer'](()=>{let _0x1812fa=!0x1;const _0x180993=Array['from'](_0xc48cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bf185,data:_0x37bb2a}of _0x180993){const {group:_0x230ed4,type:_0x5eb094,id:_0x10bfca}=_0x3e2079['_splitMarkerName'](_0x5bf185);if('suggestion'!=_0x230ed4||'deletion'!=_0x5eb094||_0x37bb2a['oldRange'])continue;if(!_0x3e2079['hasSuggestion'](_0x10bfca))continue;const _0x6e79d4=_0x3e2079['getSuggestion'](_0x10bfca)['getRanges'](),_0x2250fa=_0xc48cc['plugins']['get']('Users')['me'];for(const _0x480670 of _0x3e2079['getSuggestions']()){if(!_0x480670['isInContent']||_0x480670['author']!=_0x2250fa)continue;if('formatBlock'!=_0x480670['type']||'tablePasteCell'!=_0x480670['subType'])continue;if(_0x480670['getRanges']()['every'](_0x3c01ea=>_0x6e79d4['some'](_0x187eaa=>_0x187eaa['containsRange'](_0x3c01ea,!0x0)))){for(const _0x3ba3f3 of _0x480670['getAllAdjacentSuggestions']())_0x3ba3f3['isInContent']&&(_0x3ba3f3['discard'](),_0x1812fa=!0x0);}}}return _0x1812fa;}),_0xc48cc['model']['document']['registerPostFixer'](_0x3ce70b=>{const _0x453d5b=_0xc48cc['commands']['get']('redo');if(!_0x453d5b||!_0x453d5b['_createdBatches']['has'](_0x3ce70b['batch']))return!0x1;let _0x4369bc=!0x1;const _0x360d60=_0xc48cc['plugins']['get']('Users')['me'],_0x2a93af=_0xc48cc['model']['document']['differ']['getChanges'](),_0x23a532=Array['from'](_0xc48cc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x452b31,data:_0x873303})=>{const {group:_0x500514,subType:_0x13df93,authorId:_0x28bcb0}=_0x3e2079['_splitMarkerName'](_0x452b31);return'suggestion'==_0x500514&&'tablePaste'==_0x13df93&&_0x28bcb0==_0x360d60['id']&&!_0x873303['oldRange'];});for(const _0xb82cef of _0x2a93af){if('insert'!=_0xb82cef['type']||'tableCellSuggestion'!=_0xb82cef['name']||0x1!=_0xb82cef['length'])continue;const _0x379bfe=_0x3ce70b['createRange'](_0xb82cef['position'],_0xb82cef['position']['getShiftedBy'](0x1));if(!_0x23a532['find'](({data:_0x2a39ae})=>_0x2a39ae['newRange']['isEqual'](_0x379bfe))){for(const {name:_0x2d24d4,data:_0x4e2c87}of _0x23a532)if(_0x379bfe['containsRange'](_0x4e2c87['newRange'])){_0x3ce70b['updateMarker'](_0x2d24d4,{'range':_0x379bfe}),_0x4369bc=!0x0;break;}}}return _0x4369bc;}),_0xc48cc['model']['document']['registerPostFixer'](_0x53e651=>{let _0x5324c8=!0x1;const _0x5b3dc8=_0xc48cc['plugins']['get']('Users')['me'],_0x1064a5=_0x3e2079['getSuggestions']()['filter'](_0x469ac3=>_0x469ac3['isInContent']&&_0x469ac3['author']==_0x5b3dc8),_0x32c8af=new Set(),_0x3d3dad=new Set();for(const _0x5ee926 of _0x1064a5)if('tablePaste'==_0x5ee926['subType'])for(const _0x418a84 of _0x5ee926['getMarkers']()){const _0x16b5bd=_0x418a84['getRange']()['getContainedElement']();if(_0x16b5bd){if(_0x16b5bd['is']('element','tableCellSuggestion')&&Be(_0x16b5bd)){_0x5ee926['removeMarker'](_0x418a84['name']),_0x32c8af['add'](_0x16b5bd),_0x5324c8=!0x0;const _0x4c4eea=_0x16b5bd['nextSibling'],_0x356fa4=_0x16b5bd['previousSibling'],_0x386ce6=_0x4c4eea&&_0x4c4eea['is']('element','tableCellSuggestion'),_0x3df142=_0x356fa4&&_0x356fa4['is']('element','tableCellSuggestion');_0x386ce6&&!_0x32c8af['has'](_0x4c4eea)&&_0x3d3dad['add'](_0x4c4eea),_0x3df142&&!_0x32c8af['has'](_0x356fa4)&&_0x3d3dad['add'](_0x356fa4);}else _0x16b5bd['is']('element','paragraph')&&_0x16b5bd['isEmpty']&&(_0x5ee926['removeMarker'](_0x418a84['name']),_0x5324c8=!0x0);}}else{if('tablePasteCell'==_0x5ee926['subType']){if(!_0x5ee926['attributes']||!_0x5ee926['attributes']['tablePasteChainId'])continue;const _0x326589=_0x5ee926['attributes']['markerAttributes'];if(_0x326589&&Object['keys'](_0x326589)['length'])continue;const _0x36842c=_0x5ee926['attributes']['tablePasteChainId'];let _0x58aa07=!0x0,_0x5920ae=!0x0;for(const _0x27dfe8 of _0x1064a5)if(_0x27dfe8['subType']&&_0x27dfe8['subType']['startsWith']('tablePaste')){if(!_0x27dfe8['attributes']['tablePasteChainId']){_0x5920ae=!0x1;break;}if(_0x27dfe8['id']!=_0x5ee926['id']&&_0x27dfe8['attributes']['tablePasteChainId']==_0x36842c){_0x58aa07=!0x1;break;}}_0x5920ae&&_0x58aa07&&(_0x5ee926['removeMarkers'](),_0x5324c8=!0x0);}}for(const _0x2fe101 of _0x32c8af)_0x53e651['remove'](_0x2fe101);for(const _0x52e8fb of _0x3d3dad)_0x53e651['unwrap'](_0x52e8fb);return _0x5324c8;}),_0xc48cc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x277407=>_0x1824ea(_0x277407),'converterPriority':'high'}),_0xc48cc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9a09f3,_0x11df8f)=>_0x11df8f['options']['showSuggestionHighlights']?_0x1824ea(_0x9a09f3,!0x1):null,'converterPriority':'high'});const _0x14e6ab=_0xc48cc['editing']['view'];this['listenTo'](_0x14e6ab['document'],'clipboardOutput',(_0x11771f,_0x11e8e6)=>{const _0x16ddd2=[];for(const _0x10ddb3 of _0x14e6ab['createRangeIn'](_0x11e8e6['content'])['getItems']())_0x10ddb3['is']('element','suggestion-td')&&_0x16ddd2['push'](_0x10ddb3);_0x14e6ab['change'](_0x5eadf1=>{for(const _0x4d10f9 of _0x16ddd2)_0x5eadf1['move'](_0x5eadf1['createRangeIn'](_0x4d10f9),_0x5eadf1['createPositionBefore'](_0x4d10f9)),_0x5eadf1['remove'](_0x4d10f9);});});}}function Be(_0x2ec969){if(_0x2ec969['isEmpty'])return!0x0;const _0x496a1c=_0x2ec969['getChild'](0x0);return _0x496a1c['is']('element','paragraph')&&_0x496a1c['isEmpty'];}function Oe(_0x488aac,_0x95a0d7={},_0x4d4ade){for(const {isAnchor:_0x12a62b,cellHeight:_0x2675c1,cellWidth:_0x2edcec}of _0x4d4ade['createTableWalker'](_0x488aac,{'includeAllSlots':!0x0,..._0x95a0d7}))if(!_0x12a62b||0x1!=_0x2675c1||0x1!=_0x2edcec)return!0x1;return!0x0;}class Ot extends _0x116a29{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x225c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x225c00['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x225c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x225c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x225c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x225c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x225c00['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x521df2,_0x15102c){const _0x5304b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20717a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x124fa6=_0x15102c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a834d=_0x20717a['getColumnGroupElement'](_0x124fa6);let _0x816b57=_0x3a834d?_0x20717a['getTableColumnsWidths'](_0x3a834d):null,_0x5ae4f8=_0x124fa6['getAttribute']('tableWidth')||null;const _0x3b87a7=_0x15102c['tableWidth']||_0x5ae4f8,_0x4cc52a=_0x15102c['columnWidths']||_0x816b57,_0x315d0c=this['editor']['plugins']['get']('Users')['me'];for(const _0x58faca of _0x5304b5['getSuggestions']()){const _0x1dceac=_0x58faca['getContainedElement']();if('resizeTable'===_0x58faca['subType']&&_0x1dceac===_0x124fa6){_0x58faca['author']!==_0x315d0c&&_0x58faca['discard']();const _0xc6cf86=_0x58faca['data']['commandParams'];_0x5ae4f8=_0xc6cf86[0x0]['tableWidth'],_0x816b57=_0xc6cf86[0x0]['columnWidths'];break;}}_0x521df2({'table':_0x124fa6,'tableWidth':_0x3b87a7,'columnWidths':_0x4cc52a}),_0x5304b5['markBlockFormat'](_0x124fa6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ae4f8,'columnWidths':_0x816b57}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56beb6){if('formatBlock'!=_0x56beb6['type']&&'formatInline'!=_0x56beb6['type'])return;const {data:_0x41afae}=_0x56beb6;if(_0x41afae&&'resizeTable'===_0x41afae['formatGroupId']){const _0x359d66='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x359d66)};}}}class xt extends _0x116a29{['afterInit'](){const _0x123dd6=this['editor'];_0x123dd6['plugins']['has']('Template')&&_0x123dd6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x116a29{['afterInit'](){const _0x45617b=this['editor'];if(!_0x45617b['commands']['get']('insertTableOfContents'))return;_0x45617b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x271de7=_0x45617b['plugins']['get']('TrackChangesEditing'),_0xe3b775=_0x45617b['locale'];_0x271de7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x295569=>o(_0xe3b775,'ELEMENT_TABLE_OF_CONTENTS',_0x295569));}}class Rt extends _0x116a29{['afterInit'](){const _0x21ed54=this['editor'];if(!_0x21ed54['plugins']['has']('Title'))return;const _0x460ea0=_0x21ed54['plugins']['get']('TrackChangesEditing');_0x460ea0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x21ed54['locale'],'ELEMENT_TITLE')),_0x21ed54['model']['document']['registerPostFixer'](_0x3c68fd=>{let _0x4f7cb3=!0x1;const _0x426fc0=Array['from'](_0x21ed54['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1095e4,data:_0x3dd4d5}of _0x426fc0){const {group:_0x1d9cad}=_0x460ea0['_splitMarkerName'](_0x1095e4);if('suggestion'!==_0x1d9cad||!_0x3dd4d5['newRange'])continue;const _0xe0502e=_0x3dd4d5['newRange'],_0x5c6d84=_0xe0502e['end']['nodeBefore'];if(!_0x5c6d84||!_0x5c6d84['is']('element','title-content'))continue;if(!_0xe0502e['start']['isTouching'](_0xe0502e['end']))continue;const _0x5c2178=_0x21ed54['model']['schema']['getNearestSelectionRange'](_0xe0502e['end'],'forward');if(_0x5c2178&&_0x5c2178['isCollapsed']){const _0x41e128=_0x3c68fd['createRange'](_0xe0502e['start'],_0x5c2178['start']);_0x41e128['isEqual'](_0xe0502e)||(_0x3c68fd['updateMarker'](_0x1095e4,{'range':_0x41e128}),_0x4f7cb3=!0x0);}_0x4f7cb3||(_0x3c68fd['removeMarker'](_0x1095e4),_0x4f7cb3=!0x0);}return _0x4f7cb3;});}}class Tt extends _0x116a29{['afterInit'](){const _0x1cbac2=this['editor'],_0x11d0c4=_0x1cbac2['plugins']['get']('TrackChangesEditing');_0x1cbac2['plugins']['has']('Uploadcare')&&(_0x11d0c4['enableCommand']('uploadcare'),_0x1cbac2['plugins']['has']('UploadcareImageEdit')&&(_0x11d0c4['enableCommand']('uploadcareImageEdit'),_0x11d0c4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x11d0c4['descriptionFactory']['registerDescriptionCallback'](_0x1b9cf3=>{if('attribute'!=_0x1b9cf3['type'])return;const {data:_0x3c5c2b}=_0x1b9cf3;return _0x3c5c2b&&'uploadcareImageId'==_0x3c5c2b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x116a29{['afterInit'](){const _0x26f593=this['editor'],_0x5468f9=_0x26f593['plugins']['get']('TrackChangesEditing');_0x26f593['plugins']['has']('UndoEditing')&&(_0x5468f9['enableCommand']('undo'),_0x5468f9['enableCommand']('redo'));}}class Ut extends _0x116a29{static get['requires'](){return[Nt];}['afterInit'](){const _0xfab05a=this['editor'];if(!_0xfab05a['plugins']['has']('TableCaptionEditing'))return;_0xfab05a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x116a29{['tableProperties'];['tableCellProperties'];constructor(_0x44b36e){super(_0x44b36e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x44b36e['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 _0x4394cb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51fb38 of this['tableProperties'])_0x4394cb['enableCommand'](_0x51fb38,(_0x1f8b88,_0x36cda2)=>{const _0x5b17dc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51fb38,[_0x5b17dc],this['tableProperties'],'tableProperties',_0x1f8b88,_0x36cda2);});_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4394cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x153a59,_0x559924)=>this['handleDiscardAction'](this['tableProperties'],_0x153a59,_0x559924)),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe28fe6 of this['tableCellProperties'])this['editor']['commands']['get'](_0xe28fe6)&&_0x4394cb['enableCommand'](_0xe28fe6,(_0x29b9a5,_0x42899d)=>{const _0x4557b9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe28fe6,_0x4557b9,this['tableCellProperties'],'tableCellProperties',_0x29b9a5,_0x42899d);});_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4394cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36cd66,_0x2fa959)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36cd66,_0x2fa959)),_0x4394cb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4394cb['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4394cb['descriptionFactory']['registerDescriptionCallback'](_0x55710a=>this['handleSuggestionDescription'](_0x55710a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4ae39f,_0x4df917,_0x5328ee,_0xf69b9d,_0x52dd4d,_0x4b95e4){const _0x189303=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b95e4['batch'],()=>{for(const _0x1fa2fb of _0x4df917){if(this['_getSuggestion'](_0x1fa2fb,_0xf69b9d))_0x52dd4d(_0x4b95e4);else{const _0x190880={};for(const _0x5ad354 of _0x5328ee){const _0x13c8f2=_0x1fa2fb['getAttribute'](_0x5ad354);void 0x0!==_0x13c8f2&&(_0x190880[_0x5ad354]=_0x13c8f2);}_0x52dd4d(_0x4b95e4),_0x189303['markBlockFormat'](_0x1fa2fb,{'commandParams':[_0x190880]},[],_0xf69b9d);}}});}['handleDiscardAction'](_0x53a5a5,_0x29801e,_0x3a00b5){const _0x3373b8=_0x29801e[0x0]['start']['nodeAfter'],_0x15797e=_0x3a00b5['commandParams'][0x0];this['editor']['model']['change'](_0x3a9fd2=>{for(const _0x407c04 of _0x53a5a5)void 0x0!==_0x15797e[_0x407c04]?_0x3a9fd2['setAttribute'](_0x407c04,_0x15797e[_0x407c04],_0x3373b8):_0x3a9fd2['removeAttribute'](_0x407c04,_0x3373b8);});}['handleSuggestionDescription'](_0x51bb78){if(_0x51bb78['data'])switch(_0x51bb78['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'](_0x174313,_0x41a675){const _0x4c9ac3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a88fa of _0x4c9ac3['getSuggestions']({'skipNotAttached':!0x0})){const _0x331017=_0x2a88fa['getContainedElement']();if(_0x2a88fa['subType']===_0x41a675&&_0x331017===_0x174313)return _0x2a88fa;}return null;}['_registerTablePropertiesAttributes'](){const _0x53f62e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10aa1e=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x32a979 of _0x10aa1e){const _0x8402d6=_0x32a979['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x53f62e['descriptionFactory']['registerAttributeLabel'](_0x32a979,o(this['editor']['locale'],'FORMAT_'+_0x8402d6));}}}class Ft extends _0x116a29{['afterInit'](){const _0x19f26d=this['editor'];if(!_0x19f26d['plugins']['has']('LineHeight'))return;const _0x5c4683=_0x19f26d['plugins']['get']('TrackChangesEditing'),_0x3883f9=_0x19f26d['locale'];_0x5c4683['enableDefaultAttributesIntegration']('lineHeight'),_0x5c4683['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3883f9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x116a29{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x5a4c16,_0x33c8e4,_0x30cb5c,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33f82d){super(_0x33f82d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x9582be,_0x2b6811,_0xc6f2d7,_0x95d679)=>{this['_model']['change'](()=>{for(const _0x53cd97 of[..._0x95d679,..._0xc6f2d7])this['_model']['markers']['has'](_0x53cd97)&&_0x33f82d['editing']['reconvertMarker'](_0x53cd97);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x33f82d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x33f82d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33f82d['config']['get']('trackChanges.trackFormatChanges'),_0x33f82d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33f82d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x33f82d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f6958=this['editor'];_0x1f6958['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x37c95d,{writer:_0x356cb3})=>{let _0x52abda='suggestion:'+_0x37c95d['getAttribute']('suggestion-type')+':'+_0x37c95d['getAttribute']('id');return _0x37c95d['getAttribute']('marker-count')&&(_0x52abda+=':'+_0x37c95d['getAttribute']('marker-count')),_0x356cb3['createElement']('$marker',{'data-name':_0x52abda});}}),_0x1f6958['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f6958['model']['document']['registerPostFixer'](_0x1067ca=>{let _0x3afffe=!0x1;const _0x23928d=Array['from'](_0x1f6958['model']['document']['differ']['getChangedMarkers']()),_0x468282=new Set();for(const {name:_0x46b5ff,data:_0x31647c}of _0x23928d){const {group:_0x490265,type:_0x35227b,subType:_0x46a2cb,id:_0x2a5664}=this['_splitMarkerName'](_0x46b5ff);if('suggestion'!==_0x490265)continue;const _0x30a930=_0x46a2cb?'suggestion:'+_0x35227b+':'+_0x46a2cb+':'+_0x2a5664:'suggestion:'+_0x35227b+':'+_0x2a5664,_0x44d489=_0x1f6958['model']['markers']['getMarkersGroup'](_0x30a930),_0x43784=_0x1f6958['model']['markers']['get'](_0x46b5ff),_0x25e943=this['_suggestions']['get'](_0x2a5664);if(null!=_0x31647c['newRange']){'formatInline'==_0x35227b&&(_0x3afffe=_0x3afffe||Wt(_0x31647c['newRange'],_0x46b5ff,_0x1067ca,_0x1f6958['model']['schema']));const _0x511518='attribute'==_0x35227b&&this['_isBlockAttribute'](_0x46a2cb['split']('|')[0x0]),_0x20550f='attribute'==_0x35227b&&this['_isInlineAttribute'](_0x46a2cb['split']('|')[0x0]);if(_0x31647c['newRange']['isCollapsed']||'$graveyard'==_0x31647c['newRange']['root']['rootName']||'formatBlock'==_0x35227b&&!Qt(_0x31647c['newRange'])||_0x511518&&!Qt(_0x31647c['newRange'])||_0x20550f&&Xt(_0x31647c['newRange'])||'deletion'==_0x35227b&&Xt(_0x31647c['newRange'])||_0x43784&&Yt(_0x43784,_0x44d489))_0x1067ca['removeMarker'](_0x46b5ff),_0x3afffe=!0x0;else{if(!_0x25e943||!_0x25e943['isInContent'])continue;if(_0x31647c['newRange']&&_0x31647c['oldRange']&&_0x31647c['newRange']['isEqual'](_0x31647c['oldRange']))continue;_0x468282['add'](_0x25e943);}}}return _0x468282['size']>0x0&&(_0x3afffe=!!this['_joinWithAdjacentSuggestions'](_0x468282)||_0x3afffe),_0x3afffe;}),_0x1f6958['model']['document']['registerPostFixer'](_0x52335b=>{let _0x205243=!0x1;for(const _0x4d4429 of _0x1f6958['model']['document']['differ']['getChanges']())if('insert'==_0x4d4429['type'])for(const _0x1eae66 of this['_suggestions']['values']()){if(_0x1eae66['isMultiRange']||!_0x1eae66['isInContent'])continue;const _0x3e464a='formatBlock'==_0x1eae66['type'],_0x477572=this['_getAttributeKey'](_0x1eae66),_0x148036=_0x477572&&this['_isBlockAttribute'](_0x477572);if(!_0x3e464a&&!_0x148036)continue;const _0x42b31f=_0x1eae66['getFirstRange']();if(_0x42b31f['start']['parent']!=_0x42b31f['end']['parent']&&!_0x42b31f['end']['isAtEnd']){const _0x41e38b=_0x1f6958['model']['createPositionAt'](_0x42b31f['start']['nodeAfter'],'end'),_0x260ee6=_0x1f6958['model']['createRange'](_0x42b31f['start'],_0x41e38b);_0x52335b['updateMarker'](_0x1eae66['getFirstMarker'](),{'range':_0x260ee6}),_0x205243=!0x0;}}return _0x205243;}),_0x1f6958['model']['document']['registerPostFixer'](_0x37c4a4=>this['_processAttributeChanges'](_0x37c4a4)),_0x1f6958['model']['document']['registerPostFixer'](_0xd7c124=>!_0xd7c124['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd7c124)),_0x1f6958['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f6958['model']['document']['on']('change:data',(_0x4468d4,_0x35dd24)=>{if(!_0x35dd24['isLocal']||_0x35dd24['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x180e7f=_0x1f6958['model']['document']['differ']['getChanges']();if(0x0==_0x180e7f['length'])return;const _0x5b9375=[],_0x4a0dba=_0x180e7f['filter'](_0x23b821=>'attribute'==_0x23b821['type']),_0x3d89e2=_0x180e7f['filter'](_0x372866=>'insert'==_0x372866['type']&&'$text'!=_0x372866['name']);for(const _0x1c6a3c of _0x4a0dba)this['_isRegisteredAttribute'](_0x1c6a3c['attributeKey'])&&_0x5b9375['push']({'key':_0x1c6a3c['attributeKey'],'newValue':_0x1c6a3c['attributeNewValue'],'oldValue':_0x1c6a3c['attributeOldValue'],'range':Zt(_0x1c6a3c['range'],_0x1f6958['model'])});for(const _0x13da87 of _0x3d89e2){if('rename'!=_0x13da87['action']&&'refresh'!=_0x13da87['action'])continue;const _0x1edeeb=tn(_0x13da87['position']['nodeAfter'],_0x1f6958['model']),_0x2f46c8=_0x13da87['before'];'rename'==_0x13da87['action']&&_0x5b9375['push']({'key':m,'newValue':_0x13da87['name'],'oldValue':_0x2f46c8['name'],'range':_0x1edeeb});for(const [_0x594416,_0x2756f8]of _0x2f46c8['attributes']){if(!this['_isRegisteredAttribute'](_0x594416))continue;const _0x5d44cd=_0x13da87['attributes']['get'](_0x594416);_0x2756f8!==_0x5d44cd&&_0x5b9375['push']({'key':_0x594416,'newValue':_0x5d44cd,'oldValue':_0x2756f8,'range':_0x1edeeb});}for(const [_0x1882bd,_0xeb8847]of _0x13da87['attributes'])this['_isRegisteredAttribute'](_0x1882bd)&&(_0x2f46c8['attributes']['has'](_0x1882bd)||_0x5b9375['push']({'key':_0x1882bd,'newValue':_0xeb8847,'oldValue':null,'range':_0x1edeeb}));}0x0!=_0x5b9375['length']&&_0x1f6958['model']['enqueueChange'](_0x35dd24,_0x54b6ac=>{const _0x3ad6f0=_0x492477();for(const {range:_0x27152b,key:_0x482815,oldValue:_0x29b87b,newValue:_0x1a3387}of _0x5b9375)this['markAttributeChange'](_0x27152b,_0x482815,_0x29b87b,_0x1a3387,{'groupId':_0x3ad6f0});this['_reduceExistingSuggestions'](_0x54b6ac,_0x5b9375);});},{'priority':'lowest'}),_0x1f6958['model']['markers']['on']('update:suggestion',(_0x4825f2,_0x28bc5c,_0x808970)=>{if(null==_0x808970){const {id:_0x144876}=this['_splitMarkerName'](_0x28bc5c['name']),_0x2e5ad3=this['_suggestions']['get'](_0x144876);_0x2e5ad3&&_0x2e5ad3['addMarkerName'](_0x28bc5c['name']);}}),_0x1f6958['model']['document']['on']('change:data',()=>{const _0x5aebaa=Array['from'](_0x1f6958['model']['document']['differ']['getChangedMarkers']())['filter'](_0x49f086=>'suggestion'===this['_splitMarkerName'](_0x49f086['name'])['group']);if(0x0===_0x5aebaa['length'])return;_0x5aebaa['sort']((_0x382d3d,_0x2142e0)=>{const _0x22ccd9=_0x382d3d['data']['oldRange'],_0x45070d=_0x2142e0['data']['oldRange'];return null===_0x22ccd9&&null===_0x45070d?0x0:null===_0x22ccd9&&null!==_0x45070d?-0x1:null!==_0x22ccd9&&null===_0x45070d?0x1:_0x22ccd9['start']['isBefore'](_0x45070d['start'])?-0x1:0x1;});const _0x41d456=new Set(),_0x4115d5=new Set();for(const {name:_0x3afb7d,data:_0x44fb79}of _0x5aebaa){const {id:_0xb989f7}=this['_splitMarkerName'](_0x3afb7d);if(null===_0x44fb79['oldRange']){const _0x4b060a=this['_handleNewSuggestionMarker'](_0x3afb7d);_0x4115d5['add'](_0x4b060a);}else{const _0x4f1f10=this['_suggestions']['get'](_0xb989f7);null!==_0x44fb79['newRange']||_0x4f1f10['isInContent']?(_0x41d456['add'](_0x4f1f10['head']),_0x4115d5['add'](_0x4f1f10)):this['_removeSuggestion'](_0x4f1f10);}}_0x4115d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4115d5);for(const _0x8de83a of _0x41d456)this['fire']('suggestionChanged',_0x8de83a);}),_0x1f6958['model']['on']('applyOperation',(_0x575b66,_0x297953)=>{const _0x5b41d5=_0x297953[0x0];if(!this['_suggestions']['size'])return;if(!_0x5b41d5['isDocumentOperation'])return;if(_0x5b41d5['batch']['isUndo']||!_0x5b41d5['batch']['isLocal'])return;let _0x598f55,_0x4504fa;switch(_0x5b41d5['type']){case'insert':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['position']),_0x4504fa=_0x598f55['getShiftedBy'](_0x5b41d5['howMany']);break;case'split':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['splitPosition']),_0x4504fa=_0x1f6958['model']['createPositionAt'](_0x5b41d5['moveTargetPosition']);break;case'move':_0x598f55=_0x1f6958['model']['createPositionAt'](_0x5b41d5['targetPosition']),_0x4504fa=_0x598f55['getShiftedBy'](_0x5b41d5['howMany']);break;default:return;}const _0x562c3f=_0x1f6958['model']['createRange'](_0x598f55,_0x4504fa);_0x1f6958['model']['change'](()=>{for(const {suggestion:_0x28e6cc,meta:_0x41061a}of this['_findSuggestions'](_0x562c3f)){if(_0x28e6cc['isMultiRange'])continue;if('formatInline'==_0x28e6cc['type'])continue;const _0x2b2edc=this['_getAttributeKey'](_0x28e6cc);if(_0x2b2edc&&this['_isBlockAttribute'](_0x2b2edc)&&'split'!=_0x5b41d5['type'])continue;const _0x4dca51=_0x28e6cc['data']&&_0x28e6cc['data']['multipleBlocks'];('formatBlock'!=_0x28e6cc['type']||'split'==_0x5b41d5['type']&&!_0x4dca51)&&(_0x41061a['containsRangeInObject']||'insertion'==_0x28e6cc['type']&&_0x41061a['isOwn']||_0x28e6cc['getFirstRange']()['containsRange'](_0x562c3f)&&this['_breakSuggestionMarker'](_0x28e6cc,_0x598f55,_0x4504fa));}});},{'priority':'lowest'}),_0x1f6958['model']['on']('deleteContent',(_0x3ee095,_0x15f1f8)=>{const _0x2577b7=_0x15f1f8[0x0],_0x434bad=_0x15f1f8[0x1];if(_0x434bad&&_0x434bad['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2577b7['isCollapsed'])return;const _0x323c6f=_0x1f6958['model']['schema'],{start:_0x1a06a8,end:_0x291829}=_0x2577b7['getFirstRange'](),_0xb900bf=_0x1a06a8['nodeAfter']&&_0x323c6f['isLimit'](_0x1a06a8['nodeAfter'])?null:_0x323c6f['getNearestSelectionRange'](_0x1a06a8,'forward'),_0x447494=_0x291829['nodeBefore']&&_0x323c6f['isLimit'](_0x291829['nodeBefore'])?null:_0x323c6f['getNearestSelectionRange'](_0x291829,'backward'),_0x59f0bb=_0x1f6958['model']['createRange'](_0xb900bf?_0xb900bf['start']:_0x1a06a8,_0x447494?_0x447494['end']:_0x291829);_0x1f6958['model']['change'](_0x1896fe=>{this['markDeletion'](_0x59f0bb);const _0x1998bb=_0x1f6958['model']['schema']['getNearestSelectionRange'](_0x59f0bb['start']);_0x2577b7['is']('documentSelection')?_0x1896fe['setSelection'](_0x1998bb):_0x2577b7['setTo'](_0x1998bb);}),_0x3ee095['stop']();},{'priority':_0x144041['normal']+0xa}),_0x1f6958['model']['on']('insertContent',(_0x534ea2,_0x2c69e3)=>{const _0xd6725a=_0x2c69e3[_0x2c69e3['length']-0x1];_0xd6725a&&_0xd6725a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f6958['model']['change'](()=>{let _0x396442=_0x1f6958['model']['insertContent'](_0x2c69e3[0x0],_0x2c69e3[0x1],_0x2c69e3[0x2],{'forceDefaultExecution':!0x0});if(!_0x396442)return;_0x534ea2['return']=_0x396442['clone']();const _0x1d66ac=_0x396442['end']['nodeBefore'],_0x2ac317=_0x1f6958['model']['schema'];_0x1d66ac&&_0x2ac317['isBlock'](_0x1d66ac)&&!_0x2ac317['isObject'](_0x1d66ac)&&(_0x396442=_0x1f6958['model']['createRange'](_0x396442['start'],_0x1f6958['model']['createPositionAt'](_0x1d66ac,'end'))),this['markInsertion'](_0x396442);}),_0x534ea2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c607=new v(_0x1f6958,this['_suggestions']);_0x1f6958['commands']['add']('acceptSuggestion',_0x55c607),this['enableCommand']('acceptSuggestion');const _0x4aa9b2=new D(_0x1f6958,this['_suggestions']);_0x1f6958['commands']['add']('discardSuggestion',_0x4aa9b2),this['enableCommand']('discardSuggestion'),_0x1f6958['commands']['add']('acceptAllSuggestions',new B(_0x1f6958,_0x55c607,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f6958['commands']['add']('discardAllSuggestions',new B(_0x1f6958,_0x4aa9b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f6958['commands']['add']('acceptSelectedSuggestions',new O(_0x1f6958,_0x55c607,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f6958['commands']['add']('discardSelectedSuggestions',new O(_0x1f6958,_0x4aa9b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5c4a95=_0x1f6958['plugins']['get']('CommentsRepository');this['listenTo'](_0x5c4a95,'addComment',(_0x3ff5ec,{threadId:_0x42ea62})=>{const _0x30dd85=this['_suggestions']['get'](_0x42ea62);_0x30dd85&&_0x30dd85['commentThread']&&0x1===_0x30dd85['commentThread']['length']&&this['_updateSuggestionData'](_0x42ea62,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5c4a95,'removeComment',(_0x2656cd,{threadId:_0x1be10e})=>{const _0x33270d=this['_suggestions']['get'](_0x1be10e);_0x33270d&&_0x33270d['commentThread']&&!_0x33270d['commentThread']['length']&&this['_updateSuggestionData'](_0x1be10e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x346a8a){const _0x2f5408=_0x111e21([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]),_0x597c93=0x3d8d0df,_0x43c47f=0x3df51b7^_0x597c93,_0x7d26da=window[_0x111e21([0x44,0x61,0x74,0x65])][_0x111e21([0x6e,0x6f,0x77])](),_0x59180d=_0x346a8a[_0x111e21([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2181d6=new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f3b5=>{_0x59180d[_0x111e21([0x6f,0x6e,0x63,0x65])](_0x111e21([0x72,0x65,0x61,0x64,0x79]),_0x40f3b5);}),_0xdada42={[_0x111e21([0x6b,0x74,0x79])]:_0x111e21([0x45,0x43]),[_0x111e21([0x75,0x73,0x65])]:_0x111e21([0x73,0x69,0x67]),[_0x111e21([0x63,0x72,0x76])]:_0x111e21([0x50,0x2d,0x32,0x35,0x36]),[_0x111e21([0x78])]:_0x111e21([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]),[_0x111e21([0x79])]:_0x111e21([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]),[_0x111e21([0x61,0x6c,0x67])]:_0x111e21([0x45,0x53,0x32,0x35,0x36])},_0x1a99b9=_0x59180d[_0x111e21([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x111e21([0x67,0x65,0x74])](_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12ebc2(){let _0x3c15bd,_0x5ee027=null,_0x20679c=null;try{if(_0x1a99b9==_0x111e21([0x47,0x50,0x4c]))return _0x111e21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c15bd=_0x54362f(),!_0x3c15bd)return _0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c15bd[_0x111e21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20679c=_0x2d19b6(_0x3c15bd[_0x111e21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c15bd[_0x111e21([0x6a,0x74,0x69])])),await _0x4a8ddd()?_0x5e625c()?_0x432959()?_0x111e21([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1254e3()?(_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x111e21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ee027=_0x492707(_0x111e21([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54465b()):_0x111e21([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x111e21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x111e21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x432959(){const _0x16f767=[_0x111e21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x111e21([0x74,0x72,0x69,0x61,0x6c])][_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7d26da/0x3e8:0xe10*_0x43c47f;return _0x3c15bd[_0x111e21([0x65,0x78,0x70])]<_0x16f767;}function _0x5e625c(){const _0x4aad9d=_0x3c15bd[_0x111e21([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4aad9d)return!0x1;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x2a])))return!0x0;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x54,0x43])))return!0x0;if(_0x4aad9d[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x52,0x54,0x43]))){if(_0x568133())return!0x0;if(_0x12d26c()||_0x243d70())return!0x0;}return!0x1;}function _0x1254e3(){const _0x37461b=_0x3c15bd[_0x111e21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37461b||0x0==_0x37461b[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5bba15}=new URL(window[_0x111e21([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37461b[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bba15))return!0x0;const _0x3361da=_0x5bba15[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e]));return _0x37461b[_0x111e21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27309a=>_0x27309a[_0x111e21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x111e21([0x2a])))[_0x111e21([0x6d,0x61,0x70])](_0x24fb4e=>_0x24fb4e[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e])))[_0x111e21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e21ab=>_0x1e21ab[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3361da[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x111e21([0x6d,0x61,0x70])](_0x36fde1=>Array(_0x3361da[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36fde1[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x111e21([0x66,0x69,0x6c,0x6c])](_0x36fde1[0x0]===_0x111e21([0x2a])?_0x111e21([0x2a]):'')[_0x111e21([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36fde1))[_0x111e21([0x73,0x6f,0x6d,0x65])](_0x2ea2c4=>_0x3361da[_0x111e21([0x65,0x76,0x65,0x72,0x79])]((_0x27ef5f,_0x58c88d)=>_0x2ea2c4[_0x58c88d]===_0x27ef5f||_0x2ea2c4[_0x58c88d]===_0x111e21([0x2a])));}function _0x54465b(){return _0x5ee027&&_0x20679c?new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f0c6a,_0x3c5714)=>{_0x5ee027[_0x111e21([0x74,0x68,0x65,0x6e])](_0x4f0c6a,_0x3c5714),_0x20679c[_0x111e21([0x74,0x68,0x65,0x6e])](_0x465d53=>{_0x465d53!=_0x111e21([0x56,0x61,0x6c,0x69,0x64])&&_0x4f0c6a(_0x465d53);},_0x3c5714);}):_0x5ee027||_0x20679c||_0x111e21([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d19b6(_0x5bf79f,_0x189d5c){return new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23161f=>{if(_0xa3fe6c())return _0x23161f(_0x111e21([0x56,0x61,0x6c,0x69,0x64]));_0x16a638(),_0x59180d[_0x111e21([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15ee4c=!0x1;const _0xb1ae9e=_0x492477();function _0x17cc18(_0x557550){return!!_0x557550&&(typeof _0x557550===_0x111e21([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x557550===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x557550[_0x111e21([0x74,0x68,0x65,0x6e])]===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x557550[_0x111e21([0x63,0x61,0x74,0x63,0x68])]===_0x111e21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57bfe0(_0x304cfd){_0x4798e2(_0x304cfd)[_0x111e21([0x74,0x68,0x65,0x6e])](_0x2ad263=>{if(!_0x2ad263||_0x2ad263[_0x111e21([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x111e21([0x6f,0x6b]))return _0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39a889(_0x343824(_0xb1ae9e+_0x189d5c))!=_0x2ad263[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x111e21([0x56,0x61,0x6c,0x69,0x64]);})[_0x111e21([0x74,0x68,0x65,0x6e])](_0x12633a=>(_0x2866fb(),_0x12633a),()=>{const _0x3b2e1f=_0x5681f3();return null==_0x3b2e1f?(_0x2866fb(),_0x111e21([0x56,0x61,0x6c,0x69,0x64])):_0x111e21(_0x7d26da-_0x3b2e1f>(0x27d454df^_0x597c93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x111e21([0x74,0x68,0x65,0x6e])](_0x23161f)[_0x111e21([0x63,0x61,0x74,0x63,0x68])](()=>{_0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587cc9=0x3ee3e5f^_0x597c93;function _0x2866fb(){const _0x5d0259=_0x111e21([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a889(_0x343824(_0x5bf79f)),_0x5d7f40=_0x1725af(_0x39a889(window[_0x111e21([0x4d,0x61,0x74,0x68])][_0x111e21([0x63,0x65,0x69,0x6c])](_0x7d26da/_0x587cc9)));window[_0x111e21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x111e21([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d0259,_0x5d7f40);}function _0x5681f3(){const _0x345467=_0x111e21([0x6c,0x6c,0x63,0x74,0x2d])+_0x39a889(_0x343824(_0x5bf79f)),_0x18b17c=window[_0x111e21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x111e21([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345467);return _0x18b17c?window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1725af(_0x18b17c),0x10)*_0x587cc9:null;}function _0x4798e2(_0x578a61){return new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12d72a,_0x537595)=>{_0x578a61[_0x111e21([0x74,0x68,0x65,0x6e])](_0x12d72a,_0x537595),window[_0x111e21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x537595,0x3d9041f^_0x597c93);});}}_0x59180d[_0x111e21([0x6f,0x6e])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4171ef,_0x2d4b1a)=>{if(_0x2d4b1a[0x0]!=_0x5bf79f)return _0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d4b1a[0x1]={..._0x2d4b1a[0x1],[_0x111e21([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb1ae9e};},{[_0x111e21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x111e21([0x68,0x69,0x67,0x68])}),_0x59180d[_0x111e21([0x6f,0x6e])](_0x111e21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x551899=>{_0x17cc18(_0x551899[_0x111e21([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15ee4c=!0x0,_0x57bfe0(_0x551899[_0x111e21([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x111e21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x111e21([0x6c,0x6f,0x77])}),_0x2181d6[_0x111e21([0x74,0x68,0x65,0x6e])](()=>{_0x15ee4c||_0x23161f(_0x111e21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa3fe6c(){return _0x59180d[_0x111e21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x111e21([0x76,0x69,0x65,0x77])][_0x111e21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x111e21([0x61,0x75,0x74,0x6f]);}function _0x16a638(){_0x59180d[_0x111e21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x111e21([0x76,0x69,0x65,0x77])][_0x111e21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x111e21([0x61,0x75,0x74,0x6f]);}}function _0x492707(_0x1c4c02){const _0x4b5a14=[new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a9258=>setTimeout(_0x5a9258,0x3d1ee13^_0x597c93)),_0x2181d6[_0x111e21([0x74,0x68,0x65,0x6e])](()=>new window[(_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5999c9=>{let _0x1ee2d9=0x0;_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x6f,0x6e])](_0x111e21([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x166028,_0x1e7f22)=>{_0x1e7f22[0x0][_0x111e21([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ee2d9++,_0x1ee2d9==(0x3d8d537^_0x597c93)&&(_0x5999c9(),_0x166028[_0x111e21([0x6f,0x66,0x66])]());});}))];return window[_0x111e21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x111e21([0x72,0x61,0x63,0x65])](_0x4b5a14)[_0x111e21([0x74,0x68,0x65,0x6e])](()=>_0x1c4c02);}async function _0x32b5b8(){await _0x2181d6,_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x439a8d,_0x59180d[_0x111e21([0x6d,0x6f,0x64,0x65,0x6c])][_0x111e21([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x439a8d,_0x59180d[_0x111e21([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x111e21([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x568133(){return _0x181976(_0x111e21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29475c(_0x111e21([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x111e21([0x73,0x74,0x61,0x74,0x65])]==_0x111e21([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x12d26c(){return _0x181976(_0x111e21([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 _0x243d70(){return _0x181976(_0x111e21([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x155f9d(_0xc5e44e){const _0x513a1c=_0xefb25a();_0x59180d[_0x513a1c]=_0x111e21([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc5e44e,_0xc5e44e!=_0x111e21([0x56,0x61,0x6c,0x69,0x64])&&_0x32b5b8();}function _0xefb25a(){const _0x410c2a=window[_0x111e21([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x111e21([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x111e21([0x6e,0x6f,0x77])]())[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x111e21([0x2e]),'');let _0x1f65e3=_0x111e21([0x52]);for(let _0x4eefa3=0x0;_0x4eefa3<_0x410c2a[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4eefa3+=0x2){let _0x283fde=window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410c2a[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4eefa3,_0x4eefa3+0x2));_0x283fde>=_0x2f5408[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x283fde-=_0x2f5408[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f65e3+=_0x2f5408[_0x283fde];}return _0x1f65e3;}function _0x54362f(){const _0x4b3f69=_0x1a99b9[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e]));if(0x3!=_0x4b3f69[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x581ea1(_0x4b3f69[0x1]);function _0x581ea1(_0x52455f){const _0x43b813=_0x2d6abd(_0x52455f);return _0x43b813&&_0x2dcb73()?_0x43b813:null;function _0x2dcb73(){const _0x19cc90=_0x43b813[_0x111e21([0x6a,0x74,0x69])],_0x57722e=window[_0x111e21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19cc90[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19cc90[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11a6a1={..._0x43b813,[_0x111e21([0x6a,0x74,0x69])]:_0x19cc90[_0x111e21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19cc90[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11a6a1[_0x111e21([0x76,0x63])],_0x343824(_0x11a6a1)==_0x57722e;}}}async function _0x4a8ddd(){let _0x38d798=!0x0;try{const _0xac666e=_0x1a99b9[_0x111e21([0x73,0x70,0x6c,0x69,0x74])](_0x111e21([0x2e])),[_0x4cda9c,_0x3021d6,_0x5a2520]=_0xac666e;return _0x35302d(_0x4cda9c),await _0x1fd5bc(_0x4cda9c,_0x3021d6,_0x5a2520),_0x38d798;}catch{return!0x1;}function _0x35302d(_0x3466dc){const _0x3be09c=_0x2d6abd(_0x3466dc);_0x3be09c&&_0x3be09c[_0x111e21([0x61,0x6c,0x67])]==_0x111e21([0x45,0x53,0x32,0x35,0x36])||(_0x38d798=!0x1);}async function _0x1fd5bc(_0x49a314,_0x376533,_0x199cf8){const _0x54682c=window[_0x111e21([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x111e21([0x66,0x72,0x6f,0x6d])](_0x205c38(_0x199cf8),_0x357a5f=>_0x357a5f[_0x111e21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16dae3=new window[(_0x111e21([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x111e21([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49a314+_0x111e21([0x2e])+_0x376533),_0x505de8=window[_0x111e21([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x111e21([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x505de8)return;const _0x3a4b45=await _0x505de8[_0x111e21([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x111e21([0x6a,0x77,0x6b]),_0xdada42,{[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x45,0x43,0x44,0x53,0x41]),[_0x111e21([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x111e21([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x505de8[_0x111e21([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x45,0x43,0x44,0x53,0x41]),[_0x111e21([0x68,0x61,0x73,0x68])]:{[_0x111e21([0x6e,0x61,0x6d,0x65])]:_0x111e21([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3a4b45,_0x54682c,_0x16dae3)||(_0x38d798=!0x1);}}function _0x2d6abd(_0x5d1d54){return _0x5d1d54[_0x111e21([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x111e21([0x65,0x79]))?JSON[_0x111e21([0x70,0x61,0x72,0x73,0x65])](_0x205c38(_0x5d1d54)):null;}function _0x205c38(_0x526fe7){return window[_0x111e21([0x61,0x74,0x6f,0x62])](_0x526fe7[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x111e21([0x2b]))[_0x111e21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x111e21([0x2f])));}function _0x343824(_0x33cdd0){let _0x5cf5b2=0x1505;function _0x3ea91a(_0x4a537f){for(let _0x1f279e=0x0;_0x1f279e<_0x4a537f[_0x111e21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f279e++){const _0x357b1d=_0x4a537f[_0x111e21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f279e);_0x5cf5b2=(_0x5cf5b2<<0x5)+_0x5cf5b2+_0x357b1d,_0x5cf5b2&=_0x5cf5b2;}}function _0xc675f0(_0x3e70b4){Array[_0x111e21([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e70b4)?_0x3e70b4[_0x111e21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc675f0):_0x3e70b4&&typeof _0x3e70b4==_0x111e21([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x111e21([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e70b4)[_0x111e21([0x73,0x6f,0x72,0x74])]()[_0x111e21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6376b5,_0x5894d1])=>{_0x3ea91a(_0x6376b5),_0xc675f0(_0x5894d1);}):_0x3ea91a(window[_0x111e21([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e70b4));}return _0xc675f0(_0x33cdd0),_0x5cf5b2>>>0x0;}function _0x39a889(_0x2800cc){return _0x2800cc[_0x111e21([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x111e21([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x111e21([0x30]));}function _0x1725af(_0x37abc6){return _0x37abc6[_0x111e21([0x73,0x70,0x6c,0x69,0x74])]('')[_0x111e21([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x111e21([0x6a,0x6f,0x69,0x6e])]('');}function _0x181976(_0x4036de){return _0x59180d[_0x111e21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x111e21([0x68,0x61,0x73])](_0x4036de);}function _0x29475c(_0x430bf7){return _0x59180d[_0x111e21([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x111e21([0x67,0x65,0x74])](_0x430bf7);}function _0x439a8d(){}function _0x111e21(_0x52f75){return _0x52f75['map'](_0x28f197=>String['fromCharCode'](_0x28f197))['join']('');}_0x155f9d(await _0x12ebc2());}(this);}set['adapter'](_0x703593){if(this['_adapter'])throw new _0x428d7a('track-changes-adapter-already-set',this);this['_adapter']=_0x703593;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5bd3d8=!0x1,toJSON:_0x57e50e=!0x1}={}){const _0x577b14=[];for(const _0x2144e5 of this['_suggestions']['values']())_0x5bd3d8&&!_0x2144e5['isInContent']||_0x577b14['push'](_0x2144e5);return _0x57e50e?_0x577b14['map'](_0xe3b52d=>_0xe3b52d['toJSON']()):_0x577b14;}['getSuggestion'](_0x1ea65b){const _0x45e934=this['_suggestions']['get'](_0x1ea65b);if(!_0x45e934)throw new _0x428d7a('track-changes-suggestion-not-found',this);return _0x45e934;}['hasSuggestion'](_0x2e806f){return this['_suggestions']['has'](_0x2e806f);}['addSuggestionData'](_0x5ea86f){const {authorId:_0x258110,id:_0x128ba3,originalSuggestionId:_0x53075f,attributes:_0xad872a}=_0x5ea86f,[_0x19a618,_0x287f7a]=_0x5ea86f['type']['split'](':'),_0x541549=this['_suggestions']['get'](_0x128ba3)||this['_createSuggestion'](_0x19a618,_0x287f7a,_0x128ba3,_0x258110,_0xad872a,_0x53075f);if(this['_addThreadToSuggestion'](_0x541549),this['_checkSuggestionCorrectness'](_0x541549,_0x19a618,_0x287f7a||null,_0x258110),_0x541549['createdAt']=_0x5ea86f['createdAt'],_0x541549['_isDataLoaded']=!0x0,_0xad872a&&_0xad872a['@external']){const _0xf3896=_0xad872a['@external'],_0x242000=this['_getExternalAuthor'](_0xf3896['authorName']);_0x541549['authoredAt']=_0xf3896['createdAt'],_0x541549['author']=_0x242000,_0x541549['isExternal']=!0x0;}else _0x541549['authoredAt']=_0x5ea86f['createdAt'];switch(_0x5ea86f['data']&&(_0x541549['data']=_0x5ea86f['data']),_0x5ea86f['attributes']&&(_0x541549['attributes']=_0x5ea86f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x541549['_saved']=!0x0),this['_suggestionState']['get'](_0x541549)){case'notReady':this['_suggestionState']['set'](_0x541549,'dataReady');break;case'markerReady':_0x541549['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x541549])),this['_refreshSuggestionsChain'](new Set([_0x541549])),this['_suggestionState']['set'](_0x541549,'ready'),this['fire']('suggestionLoaded',_0x541549)):this['_suggestionState']['set'](_0x541549,'removed');}return _0x541549;}['acceptSuggestion'](_0x3f84a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22ebf2 of _0x3f84a4['getAllAdjacentSuggestions']())_0x22ebf2['accept']();});});}['discardSuggestion'](_0x3c890e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ac416 of _0x3c890e['getAllAdjacentSuggestions']())_0x5ac416['discard']();});});}['enableCommand'](_0x4d4005,_0xb1f440){const _0x25066c=this['editor']['commands']['get'](_0x4d4005);if(!_0x25066c)throw new _0x428d7a('track-changes-command-not-found',this,{'commandName':_0x4d4005});if(this['_enabledCommands']['has'](_0x25066c))throw new _0x428d7a('track-changes-enable-command-twice',this,{'commandName':_0x4d4005});this['_enabledCommands']['add'](_0x25066c),_0xb1f440&&_0x25066c['on']('execute',(_0x5ae521,_0x2d82e2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d82e2['length']>0x0&&_0x2d82e2[_0x2d82e2['length']-0x1]&&_0x2d82e2[_0x2d82e2['length']-0x1]['forceDefaultExecution']?_0x2d82e2['pop']():(_0x5ae521['return']=_0xb1f440((..._0x306776)=>_0x25066c['execute'](..._0x306776,{'forceDefaultExecution':!0x0}),..._0x2d82e2),_0x5ae521['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xe7dd3d){let _0x4e3484,_0x2cdf02;const _0x4051f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4e3484=_0xe7dd3d();}catch(_0x3a6dfe){_0x2cdf02=_0x3a6dfe;}return _0x4051f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cdf02&&_0x428d7a['rethrowUnexpectedError'](_0x2cdf02,this),_0x4e3484;}['markInsertion'](_0x2de658,_0x3cfb44=null,_0xc40dd5={}){if(_0x2de658['isCollapsed'])return null;const _0x3aa28f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc40dd5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x90d064,meta:_0x35533c}of this['_findSuggestions'](_0x2de658,'insertion'))if(_0x35533c['isOwn']){if(!_0x35533c['isNextTo']){if(_0x35533c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x90d064,_0xc40dd5))continue;return _0x90d064;}if(sn(_0x90d064,_0xc40dd5))return _0x90d064;this['_breakSuggestionMarker'](_0x90d064,_0x2de658['start'],_0x2de658['end']);break;}if(_0x3cfb44==_0x90d064['subType']&&sn(_0x90d064,_0xc40dd5)){const _0x3b0d18=_0x90d064['getFirstRange']();return _0x3b0d18['start']['isEqual'](_0x2de658['end'])?this['_setSuggestionRange'](_0x90d064,this['_model']['createRange'](_0x2de658['start'],_0x3b0d18['end'])):this['_setSuggestionRange'](_0x90d064,this['_model']['createRange'](_0x3b0d18['start'],_0x2de658['end'])),_0x90d064;}}const _0x29f630=_0x492477(),_0x52f94d=_0x3aa28f['id'],_0x2055eb=_0x3cfb44?'insertion:'+_0x3cfb44:'insertion',_0x1b70e6=this['_setSuggestionData']({'id':_0x29f630,'type':_0x2055eb,'createdAt':new Date(),'authorId':_0x52f94d,'attributes':_0xc40dd5});return this['_addSuggestionMarker'](_0x2055eb,_0x29f630,_0x52f94d,_0x2de658),_0x1b70e6;}['markMultiRangeInsertion'](_0x4d18da,_0x39a481='multi',_0x3fd7de={}){const _0x485b95=this['editor']['plugins']['get']('Users')['me'],_0x67e256=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x39a481,'join');this['_trackingSessionId']&&(_0x3fd7de['trackingSessionId']=this['_trackingSessionId']);for(const _0x9ad19f of this['getSuggestions']())if(_0x9ad19f['author']['id']==_0x485b95['id']&&'insertion'==_0x9ad19f['type']&&_0x9ad19f['subType']==_0x39a481&&sn(_0x9ad19f,_0x3fd7de)&&(_0x67e256(_0x9ad19f['getRanges'](),_0x4d18da)||_0x67e256(_0x4d18da,_0x9ad19f['getRanges']()))){for(const _0x63135c of _0x4d18da)_0x9ad19f['addRange'](_0x63135c);return _0x9ad19f;}for(const {suggestion:_0x4aa3d7,meta:_0x361b1e}of this['_findSuggestions'](_0x4d18da,'insertion')){if(!_0x361b1e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x361b1e['containsRangeInObject'])continue;if(!sn(_0x4aa3d7,_0x3fd7de))continue;let _0x599a03=!0x0;for(const _0x220286 of _0x4aa3d7['getRanges']())for(const _0xfe1963 of _0x4d18da)if(!_0x220286['containsRange'](_0xfe1963)){_0x599a03=!0x1;break;}if(_0x599a03)return _0x4aa3d7;}const _0xb6ef75=_0x492477(),_0x21b55c=_0x485b95['id'],_0xca16a7='insertion:'+_0x39a481,_0x4b7001=this['_setSuggestionData']({'id':_0xb6ef75,'type':_0xca16a7,'createdAt':new Date(),'authorId':_0x21b55c,'attributes':_0x3fd7de});for(const _0x42d6d2 of _0x4d18da)this['_addSuggestionMarker'](_0xca16a7,_0xb6ef75,_0x21b55c,_0x42d6d2,x['getMultiRangeId']());return _0x4b7001;}['markInlineFormat'](_0x5aba3a,_0x2f85a7,_0x5bfa83=null,_0x2956a3={}){if(_0x5bfa83=_0x5bfa83||Ht(_0x2f85a7),_0x5aba3a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2956a3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c8f4a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bfa83,'accept');return this['forceDefaultExecution'](()=>_0x2c8f4a([_0x5aba3a],_0x2f85a7,_0x2956a3)),null;}const _0x43437e=this['editor']['plugins']['get']('Users')['me'],_0x392744=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x27a83f,meta:_0x4635b2}of this['_findSuggestions'](_0x5aba3a,'insertion'))_0x4635b2['isOwn']&&!_0x4635b2['isInsideObject']&&_0x392744['push'](..._0x27a83f['getRanges']());}const _0x2d61e3=function(_0x206670,_0x55e6f4){const _0x505260=[];for(const _0x3bf53c of _0x55e6f4){const _0x370043=_0x206670['getIntersection'](_0x3bf53c);_0x370043&&_0x505260['push'](_0x370043);}return _0x505260;}(_0x5aba3a,_0x392744),_0x4329aa=function(_0x2159b3,_0x4bb57f){const _0x913f6f=[_0x2159b3];for(const _0x1c55d3 of _0x4bb57f){let _0x589245=0x0;for(;_0x589245<_0x913f6f['length'];){const _0x36e0a0=_0x913f6f[_0x589245]['getDifference'](_0x1c55d3);_0x913f6f['splice'](_0x589245,0x1,..._0x36e0a0),_0x589245+=_0x36e0a0['length'];}}return _0x913f6f;}(_0x5aba3a,_0x392744);_0x2d61e3['length']&&this['_model']['change'](()=>{for(const _0x5193e8 of _0x2d61e3){const _0x55584b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bfa83,'accept');this['forceDefaultExecution'](()=>_0x55584b([_0x5193e8],_0x2f85a7,_0x2956a3));}});for(const _0x3c57f9 of _0x4329aa){let _0x428185=null,_0x5877bd=_0x3c57f9['start'],_0x3dcfea=_0x3c57f9['end'];for(const {suggestion:_0x23ad16,meta:_0x10afbe}of this['_findSuggestions'](_0x3c57f9,'formatInline')){if(!_0x10afbe['isOwn'])continue;if(_0x23ad16['subType']!=_0x5bfa83)continue;if(!sn(_0x23ad16,_0x2956a3))continue;const _0x1d13ec=_0x23ad16['getFirstRange']();if(_0x1d13ec['containsRange'](_0x3c57f9,!0x0))return null;_0x5877bd=_0x5877bd['isBefore'](_0x1d13ec['start'])?_0x5877bd:_0x1d13ec['start'],_0x3dcfea=_0x3dcfea['isAfter'](_0x1d13ec['end'])?_0x3dcfea:_0x1d13ec['end'],_0x428185?_0x1d13ec['start']['isBefore'](_0x428185['getFirstRange']()['start'])?(_0x428185['removeMarkers'](),_0x428185=_0x23ad16):_0x23ad16['removeMarkers']():_0x428185=_0x23ad16;}const _0x3e542f=this['_model']['createRange'](_0x5877bd,_0x3dcfea);if(_0x428185)this['_setSuggestionRange'](_0x428185,_0x3e542f);else{const _0x131bf4=_0x492477(),_0x47dff4=_0x43437e['id'];this['_setSuggestionData']({'id':_0x131bf4,'type':'formatInline:'+_0x5bfa83,'data':_0x2f85a7,'createdAt':new Date(),'authorId':_0x47dff4,'attributes':_0x2956a3}),this['_addSuggestionMarker']('formatInline:'+_0x5bfa83,_0x131bf4,_0x47dff4,_0x3e542f);}}return null;}['markBlockFormat'](_0x2fd86,_0x16c073,_0x5163eb=[],_0x9e8d4a=null,_0x3f1fba={}){_0x16c073['formatGroupId']||(_0x16c073['formatGroupId']=_0x16c073['commandName']),_0x16c073['multipleBlocks']=_0x2fd86['is']('range'),_0x9e8d4a=_0x9e8d4a||Ht(_0x16c073);const _0x5adb01=_0x5163eb['map'](_0x53cfc0=>tn(_0x53cfc0,this['_model'])),_0x203760=_0x2fd86['is']('range')?_0x2fd86:tn(_0x2fd86,this['_model']);if(this['_trackingSessionId']&&(_0x3f1fba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1427e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e8d4a,'accept');return this['forceDefaultExecution'](()=>_0x1427e2([_0x203760],_0x16c073,_0x3f1fba)),null;}_0x5adb01['push'](_0x203760);let _0x3c9eae=!0x0;for(const _0x5b8478 of _0x5adb01)if(!this['_rangeIsInLocalUserInsertion'](_0x5b8478)){_0x3c9eae=!0x1;break;}if(_0x3c9eae&&'always'!==this['_trackFormatChanges']){const _0x5c0699=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9e8d4a,'accept');return this['forceDefaultExecution'](()=>_0x5c0699([_0x203760],_0x16c073,_0x3f1fba)),null;}let _0x5c9cf4=null,_0x160473=_0x203760['start'],_0x3b1778=_0x203760['end'];for(const {suggestion:_0x5f2347,meta:_0x5145c8}of this['_findSuggestions'](_0x203760,'formatBlock')){if(!_0x5145c8['isOwn'])continue;if(_0x5145c8['isNextTo']||_0x5145c8['containsRangeInObject']||_0x5145c8['isInsideObject'])continue;if(_0x5f2347['data']['formatGroupId']!=_0x16c073['formatGroupId'])continue;if(!sn(_0x5f2347,_0x3f1fba))continue;const _0x29b2fd=_0x5f2347['getFirstRange']();if(_0x5f2347['subType']==_0x9e8d4a){if(_0x29b2fd['containsRange'](_0x203760,!0x0))return null;_0x160473=_0x160473['isBefore'](_0x29b2fd['start'])?_0x160473:_0x29b2fd['start'],_0x3b1778=_0x3b1778['isAfter'](_0x29b2fd['end'])?_0x3b1778:_0x29b2fd['end'],_0x5c9cf4?_0x29b2fd['start']['isBefore'](_0x5c9cf4['getFirstRange']()['start'])?(_0x5c9cf4['removeMarkers'](),_0x5c9cf4=_0x5f2347):_0x5f2347['removeMarkers']():_0x5c9cf4=_0x5f2347;}else{const _0x5a9739=_0x203760['getIntersection'](_0x29b2fd);this['_cutOutSuggestionMarker'](_0x5f2347,_0x5a9739);}}const _0x3c7911=this['editor']['plugins']['get']('Users')['me'],_0x11df61=_0x492477(),_0x184323=_0x3c7911['id'];if(_0x5c9cf4)return this['_setSuggestionRange'](_0x5c9cf4,this['_model']['createRange'](_0x160473,_0x3b1778)),_0x5c9cf4;{const _0x369a9e=this['_setSuggestionData']({'id':_0x11df61,'type':'formatBlock:'+_0x9e8d4a,'data':_0x16c073,'createdAt':new Date(),'authorId':_0x184323,'attributes':_0x3f1fba});return this['_addSuggestionMarker']('formatBlock:'+_0x9e8d4a,_0x11df61,_0x184323,this['_model']['createRange'](_0x160473,_0x3b1778)),_0x369a9e;}}['markMultiRangeBlockFormat'](_0x4db4bc,_0x2f0e72,_0x5676f7=[],_0x2aa6b9=null,_0x529f40={}){_0x2f0e72['formatGroupId']||(_0x2f0e72['formatGroupId']=_0x2f0e72['commandName']);const _0x243805=_0x4db4bc[0x0];_0x2f0e72['multipleBlocks']=_0x243805['is']('range'),_0x2aa6b9=_0x2aa6b9||Ht(_0x2f0e72);const _0x2a8b74=_0x5676f7['map'](_0x15e9ae=>tn(_0x15e9ae,this['_model'])),_0x53eb2e=_0x243805['is']('range')?_0x4db4bc:_0x4db4bc['map'](_0x503d5e=>tn(_0x503d5e,this['_model']));if(this['_trackingSessionId']&&(_0x529f40['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x14b91b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'accept');return this['forceDefaultExecution'](()=>_0x14b91b(_0x53eb2e,_0x2f0e72,_0x529f40)),null;}_0x2a8b74['push'](..._0x53eb2e);let _0xe0244f=!0x0;for(const _0x26b34d of _0x2a8b74)if(!this['_rangeIsInLocalUserInsertion'](_0x26b34d)){_0xe0244f=!0x1;break;}if(_0xe0244f&&'always'!==this['_trackFormatChanges']){const _0x17ed67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'accept');return this['forceDefaultExecution'](()=>_0x17ed67(_0x53eb2e,_0x2f0e72,_0x529f40)),null;}const _0x21e89b=this['editor']['plugins']['get']('Users')['me'];for(const _0x131fb2 of this['getSuggestions']()){const _0x788893=_0x131fb2['data'];if(_0x131fb2['author']['id']!=_0x21e89b['id'])continue;if('formatBlock'!=_0x131fb2['type']||_0x788893['formatGroupId']!=_0x2f0e72['formatGroupId'])continue;if(!sn(_0x131fb2,_0x529f40))continue;const _0x289a84=_0x131fb2['subType']==_0x2aa6b9;for(let _0x2dd552=0x0;_0x2dd552<_0x53eb2e['length'];_0x2dd552++){const _0x8736f1=_0x53eb2e[_0x2dd552];for(const _0x296ce1 of _0x131fb2['getMarkers']()){const _0x4a0107=_0x296ce1['getRange']();if(_0x8736f1['isEqual'](_0x4a0107)){_0x289a84?(_0x53eb2e['splice'](_0x2dd552,0x1),_0x2dd552--):_0x131fb2['removeMarker'](_0x296ce1['name']);break;}}}}if(0x0==_0x53eb2e['length'])return null;const _0xcaf333=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa6b9,'join');for(const _0x4bad4e of this['getSuggestions']()){const _0x5cdb89=_0x4bad4e['data'];if(_0x4bad4e['author']['id']==_0x21e89b['id']&&('formatBlock'==_0x4bad4e['type']&&_0x5cdb89['formatGroupId']==_0x2f0e72['formatGroupId']&&_0x4bad4e['subType']==_0x2aa6b9&&sn(_0x4bad4e,_0x529f40)&&(_0xcaf333(_0x4bad4e['getRanges'](),_0x53eb2e)||_0xcaf333(_0x53eb2e,_0x4bad4e['getRanges']())))){for(const _0x45d2ce of _0x53eb2e)_0x4bad4e['addRange'](_0x45d2ce);return _0x4bad4e;}}const _0xa138c6=_0x492477(),_0x1f77eb=_0x21e89b['id'],_0x110d3d='formatBlock:'+_0x2aa6b9,_0x1bb07b=this['_setSuggestionData']({'id':_0xa138c6,'type':_0x110d3d,'data':_0x2f0e72,'createdAt':new Date(),'authorId':_0x1f77eb,'attributes':_0x529f40});for(const _0x4ba9aa of _0x53eb2e)this['_addSuggestionMarker'](_0x110d3d,_0xa138c6,_0x1f77eb,_0x4ba9aa,x['getMultiRangeId']());return _0x1bb07b;}['markDeletion'](_0x425e39,_0x4b164d=null,_0x5a8bfd={}){if(_0x425e39['isCollapsed'])return null;const _0x41296a=this['editor']['plugins']['get']('Users')['me'],_0x2323ba=new _0x2d8975(_0x425e39['start'],_0x425e39['end']);this['_trackingSessionId']&&(_0x5a8bfd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x407f69,meta:_0x42cdc5}of this['_findSuggestions'](_0x2323ba,'insertion'))if(_0x42cdc5['isOwn']&&!_0x42cdc5['isNextTo']){if(_0x407f69['isMultiRange']){const _0x43b2a6=_0x407f69['getRanges']()['filter'](_0x3ffaca=>'$graveyard'!=_0x3ffaca['root']['rootName']);_0x43b2a6['every'](_0x4618da=>_0x2323ba['containsRange'](_0x4618da,!0x0))&&_0x407f69['discard']();if(_0x43b2a6['some'](_0xaa3f07=>_0xaa3f07['containsRange'](_0x2323ba,!0x0))){const _0x5edcb1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b164d,'accept');return this['forceDefaultExecution'](()=>_0x5edcb1([_0x2323ba],null,_0x5a8bfd)),null;}}else{const _0x9fd51f=_0x2323ba['getIntersection'](_0x407f69['getFirstRange']());null!==_0x9fd51f&&_0x407f69['_onDiscard']([_0x9fd51f],null,_0x5a8bfd);}}if(_0x2323ba['detach'](),_0x2323ba['isCollapsed']||'$graveyard'==_0x2323ba['root']['rootName'])return null;let _0x58d121=null,_0x5899dc=_0x2323ba['start'],_0x24c046=_0x2323ba['end'];const _0xa79c0a=this['_findSuggestions'](_0x2323ba,'deletion');for(const {suggestion:_0x48add6,meta:_0x3d7b9d}of _0xa79c0a){const _0x4ca266=this['_model']['createRange'](_0x5899dc,_0x24c046);if(_0x3d7b9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d7b9d['containsRangeInObject']&&!_0x3d7b9d['isInsideObject'])){if(_0x48add6['isMultiRange']){if(!sn(_0x48add6,_0x5a8bfd))continue;let _0x404b82=!0x0;for(const _0x4ee7dd of _0x48add6['getRanges']()){if(_0x4ee7dd['containsRange'](_0x4ca266,!0x0))return _0x48add6;_0x4ca266['containsRange'](_0x4ee7dd)||(_0x404b82=!0x1);}_0x404b82&&_0x48add6['discard']();}else{const _0x22be91=_0x48add6['getFirstRange']();if(_0x22be91['containsRange'](_0x4ca266,!0x0))return _0x48add6;if(!sn(_0x48add6,_0x5a8bfd)){_0x4ca266['containsRange'](_0x22be91)?_0x48add6['removeMarkers']():_0x22be91['containsPosition'](_0x5899dc)?_0x5899dc=_0x22be91['end']:_0x22be91['containsPosition'](_0x24c046)&&(_0x24c046=_0x22be91['start']);continue;}_0x5899dc=_0x5899dc['isBefore'](_0x22be91['start'])?_0x5899dc:_0x22be91['start'],_0x24c046=_0x24c046['isAfter'](_0x22be91['end'])?_0x24c046:_0x22be91['end'],_0x5a8bfd=Object['assign']({},_0x48add6['attributes']),_0x58d121?_0x22be91['start']['isBefore'](_0x58d121['getFirstRange']()['start'])?(_0x58d121['removeMarkers'](),_0x58d121=_0x48add6):_0x48add6['removeMarkers']():_0x58d121=_0x48add6;}}}if(_0x58d121)return this['_setSuggestionRange'](_0x58d121,this['_model']['createRange'](_0x5899dc,_0x24c046)),_0x58d121;{const _0x4c0a75=_0x492477(),_0x2d25d4=this['_model']['createRange'](_0x5899dc,_0x24c046),_0x506748=_0x41296a['id'],_0x1ff1f=_0x4b164d?'deletion:'+_0x4b164d:'deletion',_0xceedbd=this['_setSuggestionData']({'id':_0x4c0a75,'type':_0x1ff1f,'createdAt':new Date(),'authorId':_0x506748,'attributes':_0x5a8bfd});return this['_addSuggestionMarker'](_0x1ff1f,_0x4c0a75,_0x506748,_0x2d25d4),_0xceedbd;}}['markMultiRangeDeletion'](_0x4953de,_0x4028bb='multi',_0x182e45={}){const _0x516868=this['editor']['plugins']['get']('Users')['me'],_0x1cd958=_0x4953de['map'](_0x315ed3=>new _0x2d8975(_0x315ed3['start'],_0x315ed3['end'])),_0x59f5e9=new Set();this['_trackingSessionId']&&(_0x182e45['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18dfb8,meta:_0x3343db}of this['_findSuggestions'](_0x1cd958,'insertion'))_0x3343db['isOwn']&&!_0x3343db['isNextTo']&&_0x59f5e9['add'](_0x18dfb8);for(const _0xd45483 of _0x59f5e9)if(_0xd45483['isMultiRange']){const _0x4e151e=_0xd45483['getRanges']();(!_0xd45483['attributes']||!_0xd45483['attributes']['skipNestingCheck'])&&(_0x4e151e['every'](_0x2256d9=>_0x1cd958['some'](_0x20670e=>_0x20670e['containsRange'](_0x2256d9,!0x0)))&&_0xd45483['discard']());if(_0x1cd958['every'](_0x119d32=>_0x4e151e['some'](_0x403fac=>_0x403fac['containsRange'](_0x119d32,!0x0)))){const _0x5e62ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'accept');return this['forceDefaultExecution'](()=>_0x5e62ab(_0x4953de,null,_0x182e45)),null;}}else{const _0x40e661=_0xd45483['getFirstRange']();_0x1cd958['some'](_0xcdca9a=>_0xcdca9a['containsRange'](_0x40e661,!0x0))&&_0xd45483['discard']();if(_0x1cd958['every'](_0x39d35a=>_0x40e661['containsRange'](_0x39d35a,!0x0))){const _0x4269c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'accept');return this['forceDefaultExecution'](()=>_0x4269c3(_0x1cd958,null,_0x182e45)),null;}}const _0x500d2d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4028bb,'join');let _0x2bd67c=null;for(const _0x4f0597 of this['getSuggestions']())if(_0x4f0597['author']['id']==_0x516868['id']&&_0x4f0597['isInContent']&&'deletion'==_0x4f0597['type']&&_0x4f0597['subType']==_0x4028bb&&sn(_0x4f0597,_0x182e45)&&(_0x500d2d(_0x4f0597['getRanges'](),_0x1cd958)||_0x500d2d(_0x1cd958,_0x4f0597['getRanges']()))){if(_0x2bd67c){if(_0x4f0597['commentThread']&&_0x4f0597['commentThread']['length'])continue;for(const _0x112e86 of _0x4f0597['getRanges']())_0x2bd67c['isIntersectingWithRange'](_0x112e86)||_0x2bd67c['addRange'](_0x112e86);_0x4f0597['removeMarkers']();}else{_0x2bd67c=_0x4f0597;for(const _0x266a97 of _0x1cd958)_0x4f0597['isIntersectingWithRange'](_0x266a97)||_0x4f0597['addRange'](_0x266a97);}}if(_0x2bd67c)return _0x2bd67c;_0x59f5e9['clear']();for(const {suggestion:_0x25d914,meta:_0x4b85c7}of this['_findSuggestions'](_0x1cd958,'deletion'))_0x4b85c7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b85c7['containsRangeInObject']&&!_0x4b85c7['isInsideObject'])&&sn(_0x25d914,_0x182e45)&&_0x59f5e9['add'](_0x25d914);for(const _0x1d6580 of _0x59f5e9){const _0x171055=_0x1d6580['getRanges']();if(!_0x182e45||!_0x182e45['skipNestingCheck']){if(_0x1cd958['every'](_0x1cf13d=>_0x171055['some'](_0x23b19b=>_0x23b19b['containsRange'](_0x1cf13d,!0x0))))return _0x1d6580;}(!_0x1d6580['attributes']||!_0x1d6580['attributes']['skipNestingCheck'])&&(_0x171055['every'](_0x484754=>_0x1cd958['some'](_0x48cc90=>_0x48cc90['containsRange'](_0x484754,!0x0)))&&_0x1d6580['discard']());}const _0x17a2a0=_0x492477(),_0x432c4=_0x516868['id'],_0x329122='deletion:'+_0x4028bb,_0xd05ba5=this['_setSuggestionData']({'id':_0x17a2a0,'type':_0x329122,'createdAt':new Date(),'authorId':_0x432c4,'attributes':_0x182e45});for(const _0x3b3ab6 of _0x1cd958)_0x3b3ab6['detach'](),_0x3b3ab6['isCollapsed']||'$graveyard'==_0x3b3ab6['root']['rootName']||this['_addSuggestionMarker'](_0x329122,_0x17a2a0,_0x432c4,_0x3b3ab6,x['getMultiRangeId']());return _0xd05ba5;}['markAttributeChange'](_0x360ee5,_0x5704c1,_0x120d71,_0xf7d561,_0xe6fae8){if(_0x360ee5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x233a2f=this['editor']['plugins']['get']('Users')['me']['id'],_0x39b3b2=Array['from'](this['_suggestions']['values']())['filter'](_0x3bd6ac=>'attribute'==_0x3bd6ac['type']&&_0x3bd6ac['data']['key']==_0x5704c1&&_0x3bd6ac['isIntersectingWithRange'](_0x360ee5));if(this['_trackingSessionId']&&(_0xe6fae8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x43dae0=this['_findSuggestions'](_0x360ee5,'insertion')['filter'](({meta:_0x25e8f4})=>_0x25e8f4['isOwn']&&!_0x25e8f4['isInsideObject']&&!_0x25e8f4['isNextTo'])['map'](({suggestion:_0x5e364c})=>_0x5e364c);_0x39b3b2['unshift'](..._0x43dae0);}const _0x213f11=new Map([[_0x360ee5,_0x120d71]]);for(const _0x1b9b29 of _0x39b3b2){const _0x499f77='attribute'==_0x1b9b29['type']?_0x1b9b29['data']['oldValue']:void 0x0,_0x4df6d0=_0x1b9b29['getFirstRange'](),_0x31b34c=Array['from'](_0x213f11['keys']())['find'](_0x2b1a21=>_0x2b1a21['isIntersecting'](_0x4df6d0));if(!_0x31b34c)continue;const _0x2bfadf=_0x31b34c['getDifference'](_0x4df6d0);this['_isBlockAttribute'](_0x5704c1)&&'insertion'==_0x1b9b29['type']&&0x0!=_0x2bfadf['length']||(_0x213f11['delete'](_0x31b34c),_0x2bfadf['forEach'](_0x44b39f=>{_0x213f11['set'](_0x44b39f,_0x120d71);}),'insertion'!=_0x1b9b29['type']&&_0x499f77!=_0xf7d561&&_0x213f11['set'](_0x31b34c['getIntersection'](_0x4df6d0),_0x499f77));}const _0x2e716c=[];for(const [_0x5b29c3,_0x7afb82]of _0x213f11){const _0x231bfa=_0x492477(),_0x148de3={'key':_0x5704c1,'oldValue':_0x7afb82,'newValue':_0xf7d561};_0x5704c1['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':_0x5704c1});const _0x4dabc1=('attribute:'+(_0x5704c1+'|'+Ht({'newValue':_0xf7d561})))['substring'](0x0,0x3c),_0x586dc8=this['_setSuggestionData']({'id':_0x231bfa,'type':_0x4dabc1,'data':_0x148de3,'createdAt':new Date(),'authorId':_0x233a2f,'attributes':_0xe6fae8});_0x2e716c['push'](_0x586dc8),this['_addSuggestionMarker'](_0x4dabc1,_0x231bfa,_0x233a2f,_0x5b29c3);}return _0x2e716c;}['enableDefaultAttributesIntegration'](_0xc13415){this['enableCommand'](_0xc13415,(_0xc9f3e0,..._0x536781)=>{this['recordAttributeChanges'](()=>{_0xc9f3e0(..._0x536781);});});}['registerBlockAttribute'](_0x5e6db2){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x5e6db2);}['registerInlineAttribute'](_0x1cdbb9){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1cdbb9);}['startTrackingSession'](_0x1e77d5){return this['_trackingSessionId']=void 0x0!==_0x1e77d5?_0x1e77d5:_0x492477(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2fff36){return'attribute'==_0x2fff36['type']?_0x2fff36['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4ce5a0){if(0x0==_0x4ce5a0['length'])return;const _0xc1ecc9=this['editor'],_0x5349d7=_0xc1ecc9['plugins']['get'](_0x30cb5c),_0x5443b3=[];_0xc1ecc9['model']['change'](_0x605383=>{for(let _0x1bc805=0x0;_0x1bc805<_0x4ce5a0['length'];_0x1bc805++){const _0x4881d2=_0x4ce5a0[_0x1bc805];if(_0x4881d2['baseVersion']=_0xc1ecc9['model']['document']['version'],_0x4881d2['isDocumentOperation']=!0x0,_0x5349d7['isMarkedRemoveOperation'](_0x4881d2)){const _0x1d0e9d=Lt(_0x4881d2['newRange'],_0xc1ecc9['model']);_0x5443b3['unshift'](_0x2d8975['fromRange'](_0x1d0e9d));}else switch(_0x4881d2['type']){case'rename':{const _0x341ff7=_0x4881d2['oldName'],_0x4b8fdf=_0x4881d2['newName'];if(_0x341ff7==_0x4b8fdf)break;_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x8ed8c0='$elementName',_0x18ec0=_0x4881d2['position'],_0x11846b=_0xc1ecc9['model']['createRange'](_0x18ec0,_0xc1ecc9['model']['createPositionAt'](_0x18ec0['nodeAfter'],'end'));this['markAttributeChange'](_0x11846b,_0x8ed8c0,_0x341ff7,_0x4b8fdf,{'groupId':_0x492477()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5c705c=_0x4881d2['oldValue'],_0x8bd464=_0x4881d2['newValue'];if(_0x5c705c==_0x8bd464)break;_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x26934a=_0x4881d2['key'];if(!this['_isRegisteredAttribute'](_0x26934a))break;const _0x3777c0=Lt(_0x4881d2['range'],_0xc1ecc9['model']);this['markAttributeChange'](_0x3777c0,_0x26934a,_0x5c705c,_0x8bd464,{'groupId':_0x492477()});break;}case'insert':{_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);if(_0x4ce5a0[_0x1bc805+0x1]&&'move'==_0x4ce5a0[_0x1bc805+0x1]['type'])break;const _0x3f2a55=_0x4881d2['position'],_0x887ad5=_0x4881d2['howMany'],_0x2c57fb=Lt(_0xc1ecc9['model']['createRange'](_0x3f2a55,_0x3f2a55['getShiftedBy'](_0x887ad5)),_0xc1ecc9['model']);this['markInsertion'](_0x2c57fb);break;}case'split':{_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);const _0x475675=_0x4881d2['splitPosition'],_0x320c8d=_0x4881d2['moveTargetPosition'];this['markInsertion'](_0xc1ecc9['model']['createRange'](_0x475675,_0x320c8d));break;}case'move':case'remove':_0x605383['batch']['addOperation'](_0x4881d2),_0xc1ecc9['model']['applyOperation'](_0x4881d2);}}for(const _0x344aa7 of _0x5443b3)_0x344aa7['detach'](),this['markDeletion'](_0x344aa7);});}['_setSuggestionRange'](_0x5c6521,_0x4a2fb8){const _0x487791=_0x5c6521['getFirstMarker']();this['_model']['change'](_0x4608c8=>{_0x4608c8['updateMarker'](_0x487791,{'range':_0x4a2fb8});});}['_addThreadToSuggestion'](_0x9409c){const _0x1184cd=_0x9409c['id'],_0x527590=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1184cd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x527590,'threadId':_0x1184cd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x387a34=this['_commentsRepository']['getCommentThread'](_0x1184cd);_0x387a34['unbind']('isRemovable'),_0x387a34['isRemovable']=!0x1,_0x9409c['commentThread']=_0x387a34;}['_checkSuggestionCorrectness'](_0x4f81c1,_0x31aeef,_0x48b600,_0x512926){if(_0x4f81c1['type']!=_0x31aeef||_0x4f81c1['subType']!=_0x48b600||_0x4f81c1['creator']['id']!=_0x512926)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x428d7a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4218a4,_0x590bb7){const _0x456025=_0x4218a4['getFirstRange']();if(_0x590bb7['isEqual'](_0x456025))_0x4218a4['removeMarkers']();else{if(_0x456025['containsRange'](_0x590bb7)){const _0x296584=this['_model']['createPositionAt'](_0x590bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x456025['start'],_0x296584));const _0x5b2093=_0x492477(),_0x3311a8=_0x4218a4['creator']['id'],_0x34c4d8=_0x4218a4['type']+':'+_0x4218a4['subType'];this['_setSuggestionData']({'id':_0x5b2093,'type':_0x34c4d8,'createdAt':new Date(),'authorId':_0x3311a8,'data':_0x4218a4['data'],'attributes':_0x4218a4['attributes']});const _0x1486e1=this['_model']['createPositionAt'](_0x590bb7['end']['parent'],'after'),_0x124ac2=this['_model']['createRange'](_0x1486e1,_0x456025['end']);this['_addSuggestionMarker'](_0x34c4d8,_0x5b2093,_0x3311a8,_0x124ac2);}else{if(_0x456025['containsPosition'](_0x590bb7['start'])){const _0x3b3e5d=this['_model']['createPositionAt'](_0x590bb7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x456025['start'],_0x3b3e5d));}else{const _0x24e669=this['_model']['createPositionAt'](_0x590bb7['end']['parent'],'after');this['_setSuggestionRange'](_0x4218a4,this['_model']['createRange'](_0x24e669,_0x456025['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x41671f){for(const {suggestion:_0x28a016,meta:_0x301867}of this['_findSuggestions'](_0x41671f,'insertion')){if(!_0x301867['isOwn'])continue;const _0x507534=_0x28a016['getRanges']();for(const _0xfeaa0a of _0x507534)if(!_0x41671f['getDifference'](_0xfeaa0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x15f631){return this['editor']['plugins']['get']('Users')['getUser'](_0x15f631);}['_getExternalAuthor'](_0x4bc902){const _0x30689e=this['editor']['plugins']['get']('Users'),_0x51b173=_0x1d67e1('external:'+_0x4bc902),_0x361f78=_0x30689e['getUser'](_0x51b173);return _0x361f78||_0x30689e['addUser']({'id':_0x51b173,'name':_0x4bc902});}['_createSuggestion'](_0x54103f,_0x5cdf53,_0x3e2ee1,_0x4003f2,_0x1d6ba8,_0x3ddffb){const _0xf8f3b7=this['_getAuthorFromId'](_0x4003f2);if(!_0xf8f3b7)throw new _0x428d7a('track-changes-user-not-found',this,{'authorId':_0x4003f2,'suggestionId':_0x3e2ee1});const _0x32d376=this['_suggestionFactory']['buildSuggestion'](_0x54103f,_0x5cdf53,_0x3e2ee1,_0xf8f3b7,_0x1d6ba8,_0x1485da=>{this['_updateSuggestionData'](_0x3e2ee1,{'attributes':_0x1485da});const _0x52349c=this['getSuggestion'](_0x3e2ee1);this['_joinWithAdjacentSuggestions'](new Set([_0x52349c])),this['_refreshSuggestionsChain'](new Set([_0x52349c]));},_0x3ddffb);return this['listenTo'](_0x32d376,'accept',()=>{this['_updateSuggestionData'](_0x3e2ee1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x32d376,'discard',()=>{this['_updateSuggestionData'](_0x3e2ee1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e2ee1,_0x32d376),this['_suggestionState']['set'](_0x32d376,'notReady'),_0x32d376;}['_splitMarkerName'](_0x41ac50){return Gt(_0x41ac50);}['_breakSuggestionMarker'](_0xced6f0,_0x393245,_0x407796){const _0x4e76fc=_0xced6f0['getFirstRange'](),_0x47f507=_0x4e76fc['start'],_0x25f96a=_0x4e76fc['end'];this['_setSuggestionRange'](_0xced6f0,this['_model']['createRange'](_0x47f507,_0x393245));const _0x5383e9=_0x492477(),_0x532ab9=_0xced6f0['creator']['id'],_0x2666d7=_0xced6f0['type']+(_0xced6f0['subType']?':'+_0xced6f0['subType']:'');this['_setSuggestionData']({'id':_0x5383e9,'type':_0x2666d7,'createdAt':new Date(),'authorId':_0x532ab9,'originalSuggestionId':_0xced6f0['_originalSuggestionId']||_0xced6f0['id'],'attributes':_0xced6f0['attributes'],'data':_0xced6f0['data']});const _0x2a03bf=this['_getAttributeKey'](_0xced6f0);('formatBlock'==_0xced6f0['type']||_0x2a03bf&&this['_isBlockAttribute'](_0x2a03bf))&&(_0x407796=this['_model']['createPositionBefore'](_0x407796['parent'])),this['_addSuggestionMarker'](_0x2666d7,_0x5383e9,_0x532ab9,this['_model']['createRange'](_0x407796,_0x25f96a));}['_findSuggestions'](_0xb6d732,_0x3500ba=null){const _0x1d4535=[],_0x115b8a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb6d732)||(_0xb6d732=[_0xb6d732]);for(const _0x50524c of this['getSuggestions']()){if(!_0x50524c['isInContent'])continue;if(_0x3500ba&&_0x50524c['type']!=_0x3500ba)continue;let _0x229d01=!0x1;for(const _0x417f54 of _0x50524c['getRanges']()){for(const _0x3120b0 of _0xb6d732){const _0x11df2a=_0x3120b0['start']['isEqual'](_0x417f54['end'])||_0x3120b0['end']['isEqual'](_0x417f54['start']);if(_0x11df2a||_0x3120b0['getIntersection'](_0x417f54)){const _0x147cad=_0x3120b0['containsRange'](_0x417f54)&&zt(this['_model']['schema'],_0x417f54['start'],_0x3120b0),_0x1a3e5f=_0x417f54['containsRange'](_0x3120b0)&&zt(this['_model']['schema'],_0x3120b0['start'],_0x417f54);_0x1d4535['push']({'suggestion':_0x50524c,'meta':{'isOwn':_0x115b8a==_0x50524c['author'],'isNextTo':_0x11df2a,'isInsideObject':_0x147cad,'containsRangeInObject':_0x1a3e5f}}),_0x229d01=!0x0;break;}}if(_0x229d01)break;}}return _0x1d4535;}['_addSuggestionMarker'](_0x1875c1,_0x12e294,_0x41924b,_0x344724,_0x2a3c54){this['_model']['change'](_0x296b92=>{let _0x2d358e='suggestion:'+_0x1875c1+':'+_0x12e294+':'+_0x41924b;_0x2a3c54&&(_0x2d358e=_0x2d358e+':'+_0x2a3c54),_0x296b92['addMarker'](_0x2d358e,{'range':_0x344724,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x8f8a5a){const _0xd2457b=_0x8f8a5a['previous'],_0x41a5c3=_0x8f8a5a['next'];_0x8f8a5a['previous']=null,_0x8f8a5a['next']=null,null!=_0xd2457b&&_0xd2457b['next']==_0x8f8a5a&&(_0xd2457b['next']=_0x41a5c3),null!=_0x41a5c3&&_0x41a5c3['previous']==_0x8f8a5a&&(_0x41a5c3['previous']=_0xd2457b),'ready'==this['_suggestionState']['get'](_0x8f8a5a)&&(this['_suggestionState']['set'](_0x8f8a5a,'removed'),this['fire']('suggestionUnloaded',_0x8f8a5a,_0xd2457b,_0x41a5c3));}['_setSuggestionData'](_0x25c08b){const _0xaec920=_0x25c08b['id'],_0x3921a3=this['addSuggestionData'](_0x25c08b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56c2ca=this['editor']['plugins']['get']('PendingActions'),_0x21b03f=_0x3921a3['hasComments'],_0x6ecca5=_0x3921a3['subType']?_0x3921a3['type']+':'+_0x3921a3['subType']:_0x3921a3['type'],_0x4991f0=this['editor']['locale'],_0x33c56c=_0x56c2ca['add'](o(_0x4991f0,'PENDING_ACTION_SUGGESTION')),_0x4e6820={'id':_0xaec920,'type':_0x6ecca5,'hasComments':_0x21b03f,'data':_0x25c08b['data']||null,'originalSuggestionId':_0x25c08b['originalSuggestionId']||null,'attributes':_0x3921a3['attributes']};this['_adapter']['addSuggestion'](_0x4e6820)['then'](_0x509ff1=>{_0x3921a3['_saved']=!0x0,_0x56c2ca['remove'](_0x33c56c),_0x509ff1&&_0x509ff1['createdAt']&&(this['_suggestions']['get'](_0xaec920)['createdAt']=_0x509ff1['createdAt']);})['catch'](_0x26fc6f=>{throw _0x242bbe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3921a3['discard']();}),_0x3921a3['stopListening'](),this['_suggestions']['delete'](_0x3921a3['id']),this['_suggestionState']['delete'](_0x3921a3),_0x26fc6f;});}return _0x3921a3;}['_isBlockAttribute'](_0x33f681){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x33f681);}['_isInlineAttribute'](_0x51f709){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x51f709);}['_updateSuggestionData'](_0x309049,_0x484aa2){const _0x3f4723=this['editor']['plugins']['get']('PendingActions'),_0x6a7a19=this['getSuggestion'](_0x309049);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x6a7a19['_saved']){const _0x432087=_0x3f4723['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x309049,_0x484aa2)['then'](()=>{_0x3f4723['remove'](_0x432087);});}else _0x6a7a19['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x309049,_0x484aa2);});}}['_getSuggestionData'](_0x5afd84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x428d7a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5afd84);}['_handleNewSuggestionMarker'](_0x5ae6b3){const {id:_0x5a8c85,type:_0x5c98a2,subType:_0x5bfbb5,authorId:_0x20541b}=this['_splitMarkerName'](_0x5ae6b3),_0x17bbc6=this['_suggestions']['get'](_0x5a8c85)||this['_createSuggestion'](_0x5c98a2,_0x5bfbb5,_0x5a8c85,_0x20541b,{});switch(this['_checkSuggestionCorrectness'](_0x17bbc6,_0x5c98a2,_0x5bfbb5,_0x20541b),this['_suggestionState']['get'](_0x17bbc6)){case'notReady':this['_getSuggestionData'](_0x5a8c85)['then'](_0x49a3bd=>{let _0x3bcd2e=Promise['resolve']();_0x49a3bd['hasComments']&&(_0x3bcd2e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a8c85})),_0x3bcd2e['then'](()=>{this['addSuggestionData'](_0x49a3bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x17bbc6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a8c85,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x17bbc6,'ready'),this['fire']('suggestionLoaded',_0x17bbc6);break;case'ready':this['fire']('suggestionChanged',_0x17bbc6);}return _0x17bbc6['addMarkerName'](_0x5ae6b3),_0x17bbc6;}['_refreshSuggestionsChain'](_0x580616){const _0x11146e=Array['from'](_0x580616),_0x5e368d=_0x11146e['filter'](_0x3b10ba=>'attribute'==_0x3b10ba['type']);this['_refreshAttributeSuggestionsChain'](_0x5e368d);const _0x5bffdd=_0x11146e['filter'](_0x1681c3=>!_0x1681c3['isMultiRange']&&'attribute'!=_0x1681c3['type']),_0x524a24=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x135875=>!_0x135875['isMultiRange']&&'attribute'!=_0x135875['type']),_0x4322ff=_0x524a24['filter'](_0x511b70=>!_0x580616['has'](_0x511b70)),_0x365ec6=new Map(_0x524a24['map'](_0x4813a1=>[_0x4813a1,this['_suggestionFactory']['getSuggestionCallback'](_0x4813a1['type'],_0x4813a1['subType'],'chain')])),_0xdcc48d=new Map(_0x524a24['map'](_0x2cf67a=>[_0x2cf67a,_0x2cf67a['getFirstRange']()])),_0x229f44=new Set(),_0x482bfe=new Set();for(let _0x49d40a=0x0;_0x49d40a<_0x5bffdd['length'];_0x49d40a++)_0x3031bb(_0x5bffdd[_0x49d40a],_0x5bffdd,_0x49d40a+0x1);for(let _0x27866f=0x0;_0x27866f<_0x5bffdd['length'];_0x27866f++)_0x3031bb(_0x5bffdd[_0x27866f],_0x4322ff,0x0);const _0x41dbb0=new Set();for(let _0x53936e=0x0;_0x53936e<_0x5bffdd['length'];_0x53936e++){const _0xa7db5b=_0x5bffdd[_0x53936e];!_0x482bfe['has'](_0xa7db5b)&&_0xa7db5b['previous']&&(_0x41dbb0['add'](_0xa7db5b['previous']),_0xa7db5b['previous']['next']===_0xa7db5b&&(_0xa7db5b['previous']['next']=null),_0xa7db5b['previous']=null),!_0x229f44['has'](_0xa7db5b)&&_0xa7db5b['next']&&(_0x41dbb0['add'](_0xa7db5b['next']),_0xa7db5b['next']['previous']===_0xa7db5b&&(_0xa7db5b['next']['previous']=null),_0xa7db5b['next']=null);}function _0x3031bb(_0x5a086e,_0x3073c9,_0x19bce6){for(let _0xc5f43d=_0x19bce6;_0xc5f43d<_0x3073c9['length'];_0xc5f43d++){const _0x248da6=_0x40c606(_0x5a086e,_0x3073c9[_0xc5f43d]);_0x248da6&&(_0x248da6[0x0]['next']=_0x248da6[0x1],_0x248da6[0x1]['previous']=_0x248da6[0x0],_0x229f44['add'](_0x248da6[0x0]),_0x482bfe['add'](_0x248da6[0x1]));}}function _0x40c606(_0x57bf1e,_0x4c5a43){if(_0x57bf1e['author']['id']!==_0x4c5a43['author']['id'])return null;const _0x2ebbb1=_0x365ec6['get'](_0x57bf1e)(_0x57bf1e,_0x4c5a43,_0xdcc48d['get'](_0x57bf1e),_0xdcc48d['get'](_0x4c5a43));if(!_0x2ebbb1)return null;return _0x365ec6['get'](_0x4c5a43)(_0x57bf1e,_0x4c5a43,_0xdcc48d['get'](_0x57bf1e),_0xdcc48d['get'](_0x4c5a43))?_0x2ebbb1[0x1]['commentThread']&&_0x2ebbb1[0x1]['commentThread']['length']?null:_0x2ebbb1:null;}_0x41dbb0['size']&&this['_refreshSuggestionsChain'](_0x41dbb0);}['_refreshAttributeSuggestionsChain'](_0x11c365){if(0x0==_0x11c365['length'])return;const _0x302f64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2af3c6=>'attribute'==_0x2af3c6['type']&&_0x2af3c6['_isDataLoaded']),_0x264855=[],_0x3759d9=new Map();for(const _0x51908a of _0x302f64){const _0x1cf24a=_0x1d67e1(_0x51908a['attributes']);_0x3759d9['has'](_0x1cf24a)||(_0x3759d9['set'](_0x1cf24a,_0x264855['length']),_0x264855['push']([]));const _0x35a33a=_0x3759d9['get'](_0x1cf24a);_0x264855[_0x35a33a]['push'](_0x51908a);}!(function(){_0x264855['sort']((_0x27edf2,_0x5cb5a8)=>{const _0x229881=_0x27edf2[0x0]['createdAt'],_0x215622=_0x5cb5a8[0x0]['createdAt'];return _0x229881==_0x215622?_0x27edf2[0x0]['attributes']['groupId']<_0x5cb5a8[0x0]['attributes']['groupId']?-0x1:0x1:_0x229881<_0x215622?-0x1:0x1;});for(const _0x3ac5cd of _0x264855)_0x3ac5cd['sort']((_0x2c1c6e,_0x45101f)=>_0x2c1c6e['id']<_0x45101f['id']?-0x1:0x1);}());for(let _0xf3bc33=0x0;_0xf3bc33<_0x264855['length'];_0xf3bc33++){if(0x0==_0x264855[_0xf3bc33]['length'])continue;const _0x2c9ad9=[];for(let _0x1b69ba=_0xf3bc33+0x1;_0x1b69ba<_0x264855['length'];_0x1b69ba++)0x0!=_0x264855[_0x1b69ba]['length']&&_0x191b42(_0x264855[_0xf3bc33],_0x264855[_0x1b69ba])&&_0x2c9ad9['push'](_0x1b69ba);for(const _0x9eee93 of _0x2c9ad9)_0x264855[_0xf3bc33]=_0x264855[_0xf3bc33]['concat'](_0x264855[_0x9eee93]),_0x264855[_0x9eee93]=[];}for(const _0x19912c of _0x264855)for(let _0x236853=0x0;_0x236853<_0x19912c['length'];_0x236853++){const _0x3dedb1=_0x19912c[_0x236853+0x1]||null;_0x19912c[_0x236853]['next']!==_0x3dedb1&&(_0x19912c[_0x236853]['next']=_0x3dedb1);}for(const _0x39dae3 of _0x264855)for(let _0x5c68f1=0x0;_0x5c68f1<_0x39dae3['length'];_0x5c68f1++){const _0x127d96=_0x39dae3[_0x5c68f1-0x1]||null;_0x39dae3[_0x5c68f1]['previous']!==_0x127d96&&(_0x39dae3[_0x5c68f1]['previous']=_0x127d96);}function _0x191b42(_0x1d53b2,_0x4e1861){if(_0x1d53b2[0x0]['attributes']['groupId']!==_0x4e1861[0x0]['attributes']['groupId']&&_0x1d53b2[0x0]['author']!==_0x4e1861[0x0]['author'])return!0x1;if(!function(_0x1720a2,_0x46852d){if(!_0x1720a2['hasComments']&&!_0x46852d['hasComments'])return!0x0;if(_0x1720a2['hasComments']&&_0x46852d['hasComments'])return!0x1;if(_0x1720a2['hasComments']&&_0x46852d['createdAt']<_0x1720a2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46852d['hasComments']&&_0x1720a2['createdAt']<_0x46852d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d53b2[0x0],_0x4e1861[0x0]))return!0x1;const _0x49bbce=Pt(_0x1d53b2[0x0]['attributes'],['groupId','trackingSessionId']),_0x4e349d=Pt(_0x4e1861[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3a0690(_0x49bbce,_0x4e349d))return!0x1;if(_0x1d53b2[0x0]['attributes']['groupId']==_0x4e1861[0x0]['attributes']['groupId'])return!0x0;if(_0x1d53b2[0x0]['attributes']['trackingSessionId']!==_0x4e1861[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1d53b2['every'](_0x5e06a0=>_0x4e1861['some'](_0x57a573=>_0x5e06a0['getFirstRange']()['isEqual'](_0x57a573['getFirstRange']())))&&_0x4e1861['every'](_0x474943=>_0x1d53b2['some'](_0x201f9b=>_0x474943['getFirstRange']()['isEqual'](_0x201f9b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22d8ca){const _0x28fc40=Array['from'](_0x22d8ca),_0x21cf68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x190b53=_0x21cf68['filter'](_0x513a7c=>!_0x22d8ca['has'](_0x513a7c)),_0x39ece9=new Map(_0x28fc40['map'](_0x4ffb88=>[_0x4ffb88,this['_suggestionFactory']['getSuggestionCallback'](_0x4ffb88['type'],_0x4ffb88['subType'],'join')])),_0x5b96ba=new Map(_0x21cf68['map'](_0x1d9816=>[_0x1d9816,_0x1d9816['getRanges']()]));for(let _0x1f9579=0x0;_0x1f9579<_0x28fc40['length'];_0x1f9579++){if(_0x111e75(this,_0x28fc40[_0x1f9579],_0x28fc40,_0x1f9579+0x1))return!0x0;}for(let _0x5cc6bc=0x0;_0x5cc6bc<_0x28fc40['length'];_0x5cc6bc++){if(_0x111e75(this,_0x28fc40[_0x5cc6bc],_0x190b53,0x0))return!0x0;}return!0x1;function _0x111e75(_0x11d8dd,_0xb834e6,_0x16a963,_0x2fceaa){for(let _0x47c1d1=_0x2fceaa;_0x47c1d1<_0x16a963['length'];_0x47c1d1++){const _0xda6dcc=_0x16a963[_0x47c1d1];if(_0xda6dcc['type']!==_0xb834e6['type']||_0xda6dcc['author']['id']!==_0xb834e6['author']['id']||_0xda6dcc['subType']!==_0xb834e6['subType'])continue;if(!en(_0xb834e6,_0xda6dcc))continue;if('attribute'==_0xb834e6['type']&&_0xb834e6['data']['oldValue']!=_0xda6dcc['data']['oldValue'])continue;if('attribute'==_0xb834e6['type']&&_0x11d8dd['_isBlockAttribute'](_0xb834e6['data']['key']))continue;if('formatBlock'==_0xb834e6['type']){const _0x51ae00=_0x11d8dd['editor']['model'],_0x5bab6c=_0xb834e6['getContainedElement']();if(_0x5bab6c&&(_0x51ae00['schema']['isObject'](_0x5bab6c)||_0x51ae00['schema']['isLimit'](_0x5bab6c)))continue;}const _0x201c46=_0x39ece9['get'](_0xb834e6),_0x357512=_0x5b96ba['get'](_0xb834e6),_0x3b196d=_0x5b96ba['get'](_0xda6dcc),_0x34e1be=_0xb834e6['commentThread']&&_0xb834e6['commentThread']['length'],_0x4de050=_0xda6dcc['commentThread']&&_0xda6dcc['commentThread']['length'];if(!_0x34e1be&&_0x201c46(_0x3b196d,_0x357512))return _0x11d8dd['_joinSuggestions'](_0xda6dcc,_0xb834e6),_0x5b96ba['delete'](_0xb834e6),!0x0;if(!_0x4de050&&_0x201c46(_0x357512,_0x3b196d))return _0x11d8dd['_joinSuggestions'](_0xb834e6,_0xda6dcc),_0x5b96ba['delete'](_0xda6dcc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x191137,_0x39079b){if(_0x191137['isMultiRange']){for(const _0x412cbf of _0x39079b['getRanges']())_0x191137['addRange'](_0x412cbf);}else{const _0x3f4bdb=_0x39079b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x191137,this['_model']['createRange'](_0x191137['getFirstRange']()['start'],_0x3f4bdb));}_0x39079b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5326fe,_0x546adf,_0x385647){const _0x157684=_0x5326fe['startsWith']('format')||_0x5326fe['startsWith']('attribute')?'FORMATTING':_0x5326fe['toUpperCase']();return o(this['editor']['locale'],_0x546adf+'_'+_0x157684+'_SUGGESTION_ANNOUNCEMENT',_0x385647);}['_initAriaMarkerChangeAnnouncements'](){const _0x9ea04c=this['editor'];if(!_0x9ea04c['ui'])return;const {ariaLiveAnnouncer:_0x74bfa4}=_0x9ea04c['ui'];_0x232abf(this['_model'],({left:_0x23bfed,entered:_0x69b50e})=>{for(const _0x325b72 of _0x23bfed){const {group:_0x31b89b,type:_0x3a854d}=this['_splitMarkerName'](_0x325b72['name']);if('suggestion'===_0x31b89b){_0x74bfa4['announce'](this['_getMarkerAnnouncementText'](_0x3a854d,'LEAVE'));break;}}for(const _0x49ef6c of _0x69b50e){const {group:_0x523517,type:_0x4e9980}=this['_splitMarkerName'](_0x49ef6c['name']);if('suggestion'===_0x523517){_0x74bfa4['announce'](this['_getMarkerAnnouncementText'](_0x4e9980,'ENTER',_0x397604(_0x147b7e)));break;}}});}['_processAttributeChanges'](_0x198cb4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x35ac01=this['editor'],_0x593704=_0x35ac01['model']['document']['differ']['getChanges']();if(0x0==_0x593704['length'])return!0x1;const _0x20c8f1=[],_0x4e5e9c=_0x593704['filter'](_0x5c88b9=>'attribute'==_0x5c88b9['type']),_0x5902e5=_0x593704['filter'](_0x275453=>'insert'==_0x275453['type']&&'$text'!=_0x275453['name']),_0x51c5ba=_0x593704['filter'](_0x3f8bb5=>'remove'==_0x3f8bb5['type']&&'$text'!=_0x3f8bb5['name']);for(const _0x461c6f of _0x4e5e9c)_0x20c8f1['push']({'key':_0x461c6f['attributeKey'],'newValue':_0x461c6f['attributeNewValue'],'oldValue':_0x461c6f['attributeOldValue'],'range':Zt(_0x461c6f['range'],_0x35ac01['model'])});for(const _0x18442c of _0x5902e5){const _0x5cc213=_0x51c5ba['find'](_0x521364=>_0x521364['position']['isEqual'](_0x18442c['position']));_0x5cc213&&_0x20c8f1['push']({'key':m,'newValue':_0x18442c['name'],'oldValue':_0x5cc213['name'],'range':_0x35ac01['model']['createRangeOn'](_0x18442c['position']['nodeAfter'])});}return 0x0!=_0x20c8f1['length']&&this['_reduceExistingSuggestions'](_0x198cb4,_0x20c8f1);}['_processAttributeSuggestions'](_0x24d417){let _0x50538f=!0x1;const _0x469c4b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56e86d=>_0x56e86d['data']['newRange']&&_0x56e86d['name']['startsWith']('suggestion:attribute:'));for(const _0x3621a0 of _0x469c4b){const {subType:_0x57385e,id:_0x51f7b6}=this['_splitMarkerName'](_0x3621a0['name']),_0x1b3274=_0x57385e['split']('|')[0x0];for(const _0x38a42a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x38a42a['id']!=_0x51f7b6&&'attribute'==_0x38a42a['type']&&_0x38a42a['data']&&_0x38a42a['data']['key']==_0x1b3274&&_0x38a42a['getFirstRange']()['isIntersecting'](_0x3621a0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x38a42a,_0x3621a0['data']['newRange'],_0x24d417),_0x50538f=!0x0);}return _0x50538f;}['recordAttributeChanges'](_0xd9d15f){this['_recordAttributeSuggestions']=!0x0,_0xd9d15f();}['_isRegisteredAttribute'](_0x477239){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x477239);}['_reduceExistingSuggestions'](_0x24edc2,_0x2211c4){if(0x0==_0x2211c4['length'])return!0x1;let _0x52c91d=!0x1;for(const _0xdeceff of _0x2211c4){const _0x4f50a8=this['_findSuggestions'](_0xdeceff['range'],'attribute')['filter'](_0x42d9a4=>!_0x42d9a4['meta']['isNextTo'])['map'](_0x4d74b7=>_0x4d74b7['suggestion']),_0x1eb5a2=_0x1d67e1({'newValue':_0xdeceff['newValue']});_0x4f50a8['filter'](_0x17cf07=>{const [_0x1288a5,_0x64c62d]=_0x17cf07['subType']['split']('|');return _0x1288a5==_0xdeceff['key']&&_0x64c62d!=_0x1eb5a2;})['forEach'](_0x41df64=>{this['_reduceSuggestionAttributeRange'](_0x41df64,_0xdeceff['range'],_0x24edc2),_0x52c91d=!0x0;});}return _0x52c91d;}['_reduceSuggestionAttributeRange'](_0x12683c,_0x4dfb12,_0xdb364c){const _0xd01298=_0x12683c['getFirstRange']()['getDifference'](_0x4dfb12);0x0!==_0xd01298['length']?0x1!==_0xd01298['length']?this['_breakSuggestionMarker'](_0x12683c,_0x4dfb12['start'],_0x4dfb12['end']):this['_setSuggestionRange'](_0x12683c,_0xd01298[0x0]):_0xdb364c['removeMarker'](_0x12683c['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ad240){this['_editor']=_0x2ad240,this['_model']=_0x2ad240['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5239ec,_0x279b25,_0x4ec39b,_0x3f1f15,_0x6fedcd,_0x42269b,_0x45a55c){return new x(this['_model'],{'type':_0x5239ec,'subType':_0x279b25,'id':_0x4ec39b,'originalSuggestionId':_0x45a55c,'author':_0x3f1f15,'creator':_0x3f1f15,'attributes':_0x6fedcd,'onAttributesChange':_0x42269b,'onAccept':(..._0x18e951)=>this['getSuggestionCallback'](_0x5239ec,_0x279b25,'accept')(..._0x18e951),'onDiscard':(..._0x29bf68)=>this['getSuggestionCallback'](_0x5239ec,_0x279b25,'discard')(..._0x29bf68)});}['registerCustomCallback'](_0x3aef52,_0x2b8bad,_0x243f59,_0x4b4ae6){const _0x8ab050=_0x3aef52+':'+_0x2b8bad+':'+_0x243f59;this['_customCallbacks']['set'](_0x8ab050,_0x4b4ae6);}['getSuggestionCallback'](_0x19a901,_0x3b6e68,_0x5e1e38){const _0x2ad168=_0x19a901+':'+_0x3b6e68+':'+_0x5e1e38;return this['_customCallbacks']['get'](_0x2ad168)||this['_defaultCallbacks']['get'](_0x19a901+':'+_0x5e1e38);}['_registerDefaultCallbacks'](){const _0x519398=()=>!0x1,_0x5a8bf5=_0x36a82c=>{_0x36a82c['sort']((_0x1bfa38,_0x4d2526)=>_0x1bfa38['start']['isBefore'](_0x4d2526['start'])?0x1:-0x1),this['_model']['change'](_0x5dcbbd=>{for(const _0xd88954 of _0x36a82c){let _0x384eef;_0x384eef=_0xd88954['end']['isAtEnd']&&_0xd88954['end']['parent']==_0xd88954['start']['nodeAfter']?_0x5dcbbd['createSelection'](_0xd88954['start']['nodeAfter'],'on'):_0x5dcbbd['createSelection'](_0xd88954),this['_model']['deleteContent'](_0x384eef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3297a2=(_0x2e1412,_0x50dc8f)=>{_0x50dc8f&&this['_model']['change'](_0x58383d=>{const {commandName:_0xe45ef,commandParams:_0xf06707=[]}=_0x50dc8f,_0xc35417=_0x2e1412['map'](_0x4858e8=>(Kt(_0x4858e8)&&(_0x4858e8=this['_model']['createRange'](_0x4858e8['end'])),_0x4858e8))['filter'](_0x463740=>'$graveyard'!==_0x463740['root']['rootName']);if(_0xc35417['length']<0x1)return;const _0x4e80c8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x16cb41=>_0x2d8975['fromRange'](_0x16cb41));_0x58383d['setSelection'](_0xc35417);for(const _0x8939c5 of this['_editor']['commands']['commands']())_0x8939c5['refresh']();_0xf06707['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xe45ef,..._0xf06707);const _0x11353d=_0x4e80c8['filter'](_0x4d6141=>'$graveyard'!=_0x4d6141['root']['rootName']);_0x11353d['length']>0x0&&_0x58383d['setSelection'](_0x11353d);for(const _0x151a23 of _0x4e80c8)_0x151a23['detach']();});},_0x11099a=(_0x1ac63,_0x2c4536)=>0x1==_0x1ac63['length']&&0x1==_0x2c4536['length']&&_0x1ac63[0x0]['end']['isEqual'](_0x2c4536[0x0]['start']),_0x437530=(_0x97bcc9,_0x210e8f,_0x43e863,_0x133d00)=>nn(_0x97bcc9,_0x210e8f,_0x43e863,_0x133d00)?[_0x97bcc9,_0x210e8f]:nn(_0x210e8f,_0x97bcc9,_0x133d00,_0x43e863)?[_0x210e8f,_0x97bcc9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x519398),this['_defaultCallbacks']['set']('insertion:discard',_0x5a8bf5),this['_defaultCallbacks']['set']('insertion:join',_0x11099a),this['_defaultCallbacks']['set']('insertion:chain',_0x437530),this['_defaultCallbacks']['set']('deletion:accept',_0x5a8bf5),this['_defaultCallbacks']['set']('deletion:discard',_0x519398),this['_defaultCallbacks']['set']('deletion:join',_0x11099a),this['_defaultCallbacks']['set']('deletion:chain',_0x437530),this['_defaultCallbacks']['set']('formatInline:accept',_0x3297a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x519398),this['_defaultCallbacks']['set']('formatInline:join',_0x11099a),this['_defaultCallbacks']['set']('formatInline:chain',_0x519398),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3297a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x519398),this['_defaultCallbacks']['set']('formatBlock:join',_0x11099a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x519398),this['_defaultCallbacks']['set']('attribute:accept',_0x519398),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a1177,_0xefa36b)=>{if(!_0xefa36b)return;const _0x462869=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x82e2d3=>{if(_0xefa36b['key']==m)for(const _0x4d140c of _0x2a1177){const _0x271052=_0x4d140c['start']['nodeAfter'],_0x4499d7=_0xefa36b['oldValue'];_0x82e2d3['rename'](_0x271052,_0x4499d7);}else{if(_0x462869['_isBlockAttribute'](_0xefa36b['key'])){for(const _0x243fe8 of _0x2a1177)void 0x0!==_0xefa36b['oldValue']?_0x82e2d3['setAttribute'](_0xefa36b['key'],_0xefa36b['oldValue'],_0x243fe8['start']['nodeAfter']):_0x82e2d3['removeAttribute'](_0xefa36b['key'],_0x243fe8['start']['nodeAfter']);}else{for(const _0x5504ff of _0x2a1177)_0xefa36b['oldValue']?_0x82e2d3['setAttribute'](_0xefa36b['key'],_0xefa36b['oldValue'],_0x5504ff):_0x82e2d3['removeAttribute'](_0xefa36b['key'],_0x5504ff);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x11099a);}}function zt(_0x442ce7,_0x5cdb12,_0x39f534){for(const _0x5b4d43 of _0x5cdb12['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b4d43['root']==_0x5b4d43)return!0x1;if(!_0x39f534['containsItem'](_0x5b4d43))return!0x1;if(_0x442ce7['isObject'](_0x5b4d43)||_0x442ce7['isLimit'](_0x5b4d43))return!0x0;}return!0x1;}function Kt(_0x232060){return _0x232060['end']['parent']==_0x232060['start']['nodeAfter']&&_0x232060['end']['isAtStart'];}function Wt(_0x4821f8,_0x30ec3f,_0x1fb49c,_0x9234b){const _0x44fb2e=_0x257d3b=>!_0x257d3b['item']['is']('$textProxy')&&!_0x9234b['isObject'](_0x257d3b['item']),_0x16f075=_0x4821f8['start']['getLastMatchingPosition'](_0x44fb2e),_0x1dd2b6=_0x4821f8['end']['getLastMatchingPosition'](_0x44fb2e,{'direction':'backward'});return(!_0x4821f8['start']['isEqual'](_0x16f075)||!_0x4821f8['end']['isEqual'](_0x1dd2b6))&&(_0x16f075['isBefore'](_0x1dd2b6)?_0x1fb49c['updateMarker'](_0x30ec3f,{'range':_0x1fb49c['createRange'](_0x16f075,_0x1dd2b6)}):_0x1fb49c['removeMarker'](_0x30ec3f),!0x0);}function Ht(_0x3ba9e1){return _0x1d67e1(_0x3ba9e1);}function Qt(_0x55b540){const _0x348db3=_0x55b540['start']['nodeAfter'];return _0x348db3&&_0x348db3['is']('element');}function Xt(_0x492f0a){return Kt(_0x492f0a)||function(_0x181031){return _0x181031['start']['parent']==_0x181031['end']['nodeBefore']&&_0x181031['start']['isAtEnd'];}(_0x492f0a);}function Yt(_0x247543,_0x4626e8){try{const _0x4f4eb2=_0x247543['getRange']();for(const _0x85a25f of _0x4626e8)if(_0x247543!==_0x85a25f&&_0x4f4eb2&&_0x4f4eb2['isIntersecting'](_0x85a25f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xfc6f9c,_0xc6844d){return null==_0xfc6f9c['end']['nodeBefore']&&_0xfc6f9c['end']['parent']==_0xfc6f9c['start']['nodeAfter']?tn(_0xfc6f9c['start']['nodeAfter'],_0xc6844d):_0xfc6f9c;}function tn(_0x58f77e,_0x32eedd){const _0x3f7b69=_0x32eedd['schema']['isObject'](_0x58f77e)||_0x32eedd['schema']['isSelectable'](_0x58f77e);return _0x32eedd['createRange'](_0x32eedd['createPositionAt'](_0x58f77e,'before'),_0x3f7b69?_0x32eedd['createPositionAfter'](_0x58f77e):_0x32eedd['createPositionAt'](_0x58f77e,'end'));}function nn(_0x2e10d6,_0x184f2a,_0x34155e,_0x205a99){return!!en(_0x2e10d6,_0x184f2a)&&_0x34155e['end']['isEqual'](_0x205a99['start']);}function en(_0x5122f5,_0x37c2c0){if(!_0x5122f5['_isDataLoaded']||!_0x37c2c0['_isDataLoaded'])return!0x1;const _0x2cb0d6=new Set(Object['keys'](_0x5122f5['attributes'])),_0x35c360=new Set(Object['keys'](_0x37c2c0['attributes']));if(_0x2cb0d6['delete']('groupId'),_0x35c360['delete']('groupId'),0x0==_0x2cb0d6['size']&&0x0==_0x35c360['size'])return!0x0;if(_0x2cb0d6['size']!=_0x35c360['size'])return!0x1;const _0x2b5241={..._0x5122f5['attributes']},_0x244d56={..._0x37c2c0['attributes']};return delete _0x2b5241['groupId'],delete _0x244d56['groupId'],JSON['stringify'](_0x2b5241)==JSON['stringify'](_0x244d56);}function sn(_0x349938,_0x4c8e70){const _0x418ca7=on(_0x349938['attributes']),_0x4dabba=on(_0x4c8e70);if(!_0x349938['_isDataLoaded'])return!0x1;for(const _0x374ee1 of Object['keys'](_0x4dabba))if(!_0x3a0690(_0x418ca7[_0x374ee1],_0x4dabba[_0x374ee1]))return!0x1;return!0x0;}function on(_0x846b77){const _0x49808b=Object['assign']({},_0x846b77);return delete _0x49808b['skipNestingCheck'],delete _0x49808b['tablePasteChainId'],_0x49808b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xdf0621(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x574b52,_0x194c4b,_0x430306,_0x2cdab3){super(),this['model']=_0x194c4b,this['view']=_0x430306,this['commentThreadController']=_0x2cdab3,this['_editor']=_0x574b52,this['_acceptCommand']=_0x574b52['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x574b52['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19d960,_0x4a580f)=>_0x19d960||_0x4a580f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2bcbd2=>_0x2bcbd2&&this['_editor']['model']['canEditAt'](_0x194c4b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x689b49=>_0x689b49&&this['_editor']['model']['canEditAt'](_0x194c4b['getRanges']())),this['_pendingAction']=null,_0x430306['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x430306,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x430306,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x430306,'change:isDirty',()=>{_0x430306['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 _0x2d0a9a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2d0a9a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x45dd94{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x197b18,_0x1214d4,_0x26d5e3,_0xcfd59b){super(_0x197b18),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4101c8(_0x197b18,o(_0x197b18,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1214d4['authoredAt']),this['bind']('authoredAt')['to'](_0x1214d4),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',_0x1214d4,'authoredAt',this,'descriptionParts',(_0x58fc60,_0x4f4000,_0xd30bc9)=>{const _0x59c1fc=_0xd30bc9['map'](_0x497c74=>ls(_0x497c74['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x58fc60-0x1,_0x1214d4['author']['name'],_0x4f4000?_0xcfd59b['formatDateTime'](_0x4f4000):'',new DOMParser()['parseFromString'](_0x59c1fc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x97e7be(),this['focusTracker']=new _0x4ec7ea(),this['keystrokes']=new _0x4da634(),this['focusCycler']=new _0x412906({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x36887b=>_0x36887b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1214d4,this['_localUser']=_0x26d5e3,this['_config']=_0xcfd59b,_0xcfd59b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x10ac8d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x441d91}=this['_config'];this['commentsListView']=new _0x441d91(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',_0x2569c8=>_0x2569c8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x301068,_0x8f2da0)=>_0x301068||!!_0x8f2da0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2800f1}=this['_config'],_0x3f3cc9=new _0x2800f1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b5c7d=_0x3f3cc9['commentInputView'];return _0x3f3cc9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b5c7d,'value',(_0x393688,_0x3ec0f6,_0x3f1ba9)=>!!_0x3f1ba9||_0x393688&&!_0x3ec0f6),_0x4b5c7d['on']('submit',(_0x2766c0,_0x245e89)=>{this['fire']('addComment',_0x245e89),_0x4b5c7d['editor']['setData']('');}),_0x4b5c7d['on']('cancel',()=>this['focus']()),_0x4b5c7d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3f3cc9;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x466a3f,_0x3ed215,_0x145fca,_0x4fec62){super(_0x466a3f,_0x3ed215,_0x145fca,_0x4fec62),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xbcdeb0=>_0xbcdeb0&&_0xbcdeb0[0x0]?_0xbcdeb0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5986e5,_0x5efe6f)=>{let _0x384a74='';for(const _0x494467 of _0x5986e5)_0x384a74+='<p>'+ls(_0x494467['content'],_0x494467['color'])+'</p>';return _0x5efe6f?_0x384a74:_0x28264b(_0x384a74,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4fec62['SuggestionView'](_0x466a3f,_0x3ed215,{'formatDateTime':_0x4fec62['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 _0x5d5537=this['bindTemplate'],_0x578d8b=[this['suggestionView']];return this['commentsListView']&&_0x578d8b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x578d8b['push'](this['commentThreadInputView']),_0x578d8b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d5537['if']('isActive','ck-suggestion-wrapper--active'),_0x5d5537['to']('type',_0x5090ea=>'ck-suggestion-'+_0x5090ea),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':_0x5d5537['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x578d8b};}['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 _0x45dd94{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x44029f,_0x2a9ca2,_0x1c4cd3){super(_0x44029f),this['_model']=_0x2a9ca2,this['_config']=_0x1c4cd3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2a9ca2),this['acceptButton']=this['_createButton'](o(_0x44029f,'Accept\x20suggestion'),_0x14e302,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x44029f,'Discard\x20suggestion'),_0x2ff71d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x26c0e6(_0x44029f,_0x2a9ca2['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x97e7be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ec7ea(),this['keystrokes']=new _0x4da634(),this['focusCycler']=new _0x412906({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xb19d7a=>_0xb19d7a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2a0a21=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2a0a21['innerHTML']=this['description'],this['on']('change:description',(_0x12da99,_0x28abff,_0x50ba8b)=>{_0x2a0a21['innerHTML']=_0x50ba8b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2586a7=this['bindTemplate'],_0x32a6de=[{'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':_0x2586a7['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2586a7['to']('authoredAt',_0x2e8665=>this['_config']['formatDateTime'](_0x2e8665))}]}]},{'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']&&_0x32a6de['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':_0x32a6de}]};}['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'](_0x415c4c,_0x452eb4,_0x164f2d,_0x1a0b48,_0x5d8fde){const _0x124e14=new _0xaf0268(this['locale']);return _0x124e14['set']({'label':_0x415c4c,'icon':_0x452eb4,'tooltip':!0x0,'tooltipPosition':_0x5d8fde}),_0x124e14['extendTemplate']({'attributes':{'class':_0x164f2d}}),_0x124e14['on']('execute',()=>{this['fire'](_0x1a0b48,this['_model']['id']);}),_0x124e14;}['_setupKeyboardNavigation'](){const _0x41eb15=this['element'];this['keystrokes']['listenTo'](_0x41eb15);for(const _0x11313b of this['focusables'])this['focusTracker']['add'](_0x11313b['element']),this['keystrokes']['listenTo'](_0x11313b['element']);this['keystrokes']['set']('enter',(_0x1d6dad,_0x1e4d8c)=>{_0x41eb15===_0x1d6dad['target']&&(this['focusCycler']['focusFirst'](),_0x1e4d8c());}),this['keystrokes']['set']('esc',(_0xaabce5,_0x3dc2ce)=>{_0x41eb15!==_0xaabce5['target']&&(this['focus'](),_0x3dc2ce());});}}class u extends _0x116a29{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5a4c16,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd5d0d4){super(_0xd5d0d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5f473d=this['editor']['config'];_0x5f473d['define']('trackChanges.SuggestionThreadView',fe),_0x5f473d['define']('trackChanges.SuggestionView',we),_0x5f473d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5f473d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x469f89,_0x278eb5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x526f8d,_0xda8331]of this['_handleControllerBuffer']){const _0x186dc4=this['_suggestionToController']['has'](_0x526f8d);_0x186dc4||_0xda8331?_0x186dc4&&_0xda8331&&this['_destroyController'](_0x526f8d):this['_initializeController'](_0x526f8d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x469f89,_0x278eb5);}['init'](){const _0x1b9d54=this['editor'],_0x28a8f6=_0x1b9d54['plugins']['get']('TrackChangesEditing'),_0x3f1148=_0x1b9d54['plugins']['get']('Annotations'),_0x15e9e4=_0x1b9d54['plugins']['get']('EditorAnnotations'),_0x404cff=_0x1b9d54['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x15e9e4['addSourceCollector'](()=>{const _0x5d5a21=[];for(const [_0x7026de,_0x193fac]of Array['from'](this['_suggestionToController'])){const _0x3f7707=_0x7026de['getAllAdjacentSuggestions'](),_0x5ca33f=[];for(const _0x11badc of _0x3f7707){if(!_0x11badc['isInContent'])continue;if(_0x11badc['isMultiRange']){_0x5ca33f['push'](..._0x11badc['getRanges']());continue;}const _0x4670b2=_0x11badc['getFirstRange']();if(_0x5ca33f['length']>0x0){const _0x179416=_0x5ca33f[0x0]['getJoined'](_0x4670b2);if(_0x179416){_0x5ca33f[0x0]=_0x179416;continue;}}_0x5ca33f['push'](_0x4670b2);}_0x5d5a21['push']([_0x193fac['view'],_0x5ca33f]);}return _0x5d5a21;}),this['listenTo'](_0x28a8f6,'suggestionLoaded',(_0x23e5fd,_0x23c7f0)=>{this['listenTo'](_0x23c7f0,'change:previous',(_0x505009,_0x3112b9,_0x2f5546,_0x47fa0d)=>{_0x23c7f0['isInContent']&&(null==_0x2f5546?(this['_updateController'](_0x47fa0d['head']),this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x1)):(this['_updateController'](_0x2f5546['head']),null==_0x47fa0d&&this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x0)));}),null!==_0x23c7f0['previous']?this['_updateController'](_0x23c7f0['head']):this['_handleSuggestionControllerDelayed'](_0x23c7f0,!0x1);}),this['listenTo'](_0x28a8f6,'suggestionUnloaded',(_0x23d42f,_0x3b6b0e,_0x24de34)=>{this['stopListening'](_0x3b6b0e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b6b0e),this['_suggestionToController']['has'](_0x3b6b0e)&&this['_destroyController'](_0x3b6b0e),_0x24de34&&this['_updateController'](_0x24de34['head']);}),this['listenTo'](_0x28a8f6,'suggestionChanged',(_0x23ecfa,_0x429cff)=>{this['_updateController'](_0x429cff);}),this['listenTo'](_0x3f1148,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x404cff,'addComment',(_0x215436,{threadId:_0x22bbd9,isFromAdapter:_0x47356e})=>{if(_0x47356e||!_0x28a8f6['hasSuggestion'](_0x22bbd9))return;const _0x50627a=_0x28a8f6['getSuggestion'](_0x22bbd9);this['_suggestionToController']['get'](_0x50627a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b4a31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x27d34c;for(const _0xe9fb93 in _0x4b4a31){const _0x80d1d4=_0xe9fb93,_0x1079fe=_0x4b4a31[_0x80d1d4];if('trackChangesLicenseKeyValid'==_0x1079fe||'trackChangesLicenseKeyInvalid'==_0x1079fe||'trackChangesLicenseKeyExpired'==_0x1079fe||'trackChangesLicenseKeyDomainLimit'==_0x1079fe||'trackChangesLicenseKeyNotAllowed'==_0x1079fe||'trackChangesLicenseKeyEvaluationLimit'==_0x1079fe||'trackChangesLicenseKeyUsageLimit'==_0x1079fe){delete _0x4b4a31[_0x80d1d4],_0x27d34c=_0x1079fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x27d34c&&_0x4b4a31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x27d34c&&_0x4b4a31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x27d34c&&_0x4b4a31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x27d34c&&_0x4b4a31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x62fddd){const _0x677367=this['_suggestionToController']['get'](_0x62fddd);if(!_0x677367)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x677367['view'])||null;}['getSuggestionForAnnotation'](_0x2d70c0){const _0x510c79=this['_viewToController']['get'](_0x2d70c0['innerView']);return _0x510c79?_0x510c79['model']:null;}['_refreshActiveMarkers'](){const _0x56a701=this['editor']['plugins']['get']('Annotations'),_0x233f8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d99f=Array['from'](_0x56a701['activeAnnotations'],_0x25206b=>_0x25206b['innerView'])['filter'](_0x50b1d8=>this['_viewToController']['has'](_0x50b1d8)),_0x23a105=[];for(const _0x593b84 of _0x16d99f){const _0x393f20=this['_viewToController']['get'](_0x593b84)['model']['getAllAdjacentSuggestions']();_0x23a105['push'](..._0x393f20['reduce']((_0x3c3ca5,_0x292fc2)=>[..._0x3c3ca5,..._0x292fc2['getMarkerNames']()],[]));}_0x233f8b['activeMarkers']=_0x23a105;}['_addUIComponentsToFactory'](){const _0x272a0f=this['editor'],_0x55868c=_0x272a0f['locale'],_0xfd5996=o(_0x55868c,'Track\x20changes'),_0x16e47e=new _0x42d68e([{'type':'switchbutton','model':new _0x1662fa({'withText':!0x0,'isToggleable':!0x0,'label':_0xfd5996,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x272a0f['plugins']['has']('TrackChangesPreview')&&_0x16e47e['addMany']([{'type':'separator'},{'type':'button','model':new _0x1662fa({'withText':!0x0,'label':o(_0x55868c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4f3284 of _0x16e47e)if(ke(_0x4f3284)){const _0x560f02=_0x272a0f['commands']['get'](_0x4f3284['model']['commandName']);_0x4f3284['model']['bind']('isOn','isEnabled')['to'](_0x560f02,'value','isEnabled');}_0x272a0f['ui']['componentFactory']['add']('trackChanges',_0x470ca7=>this['_createToolbarButton'](_0x470ca7,_0x16e47e,_0xfd5996)),_0x272a0f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x35ba45=>this['_createMenuBarMenu'](_0x35ba45,_0x16e47e,_0xfd5996));}['_createToolbarButton'](_0x1420b8,_0x3da361,_0x8320eb){const _0x24622f=_0x483a08(_0x1420b8,_0x3c77a1),_0x3e0a72=this['editor']['commands']['get']('trackChanges');_0x24622f['buttonView']['set']({'tooltip':_0x8320eb,'label':_0x8320eb,'icon':_0x459346}),_0x24622f['buttonView']['bind']('isOn')['to'](_0x3e0a72,'value'),_0x24622f['buttonView']['on']('execute',()=>{_0x3e0a72['execute'](),this['editor']['editing']['view']['focus']();}),_0x186803(_0x24622f,_0x3da361,{'role':'menu'});const _0x17915d=[];for(const _0x36e221 of _0x3da361)ke(_0x36e221)&&_0x17915d['push'](this['editor']['commands']['get'](_0x36e221['model']['commandName']));const _0x4491bb=_0x24622f['buttonView'];return _0x4491bb['actionView']['unbind']('isEnabled'),_0x4491bb['arrowView']['unbind']('isEnabled'),_0x4491bb['actionView']['bind']('isEnabled')['to'](_0x3e0a72,'isEnabled'),_0x4491bb['arrowView']['bind']('isEnabled')['toMany'](_0x17915d,'isEnabled',(..._0x9c58b0)=>_0x9c58b0['some'](_0x2e2e6d=>_0x2e2e6d)),_0x24622f['on']('execute',_0x1f5881=>{this['editor']['execute'](_0x1f5881['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x24622f;}['_createMenuBarMenu'](_0x1f3877,_0x2bff04,_0x149649){const _0x558c97=new _0x114742(_0x1f3877),_0x54a704=this['editor']['commands']['get']('trackChanges');_0x558c97['buttonView']['set']({'label':_0x149649,'icon':_0x459346});const _0x58277c=new _0x31f0a0(_0x1f3877);for(const _0xc779e2 of _0x2bff04){if('separator'==_0xc779e2['type']){_0x58277c['items']['add'](new _0x2d3004(_0x1f3877));continue;}const _0x31a53c=new _0x4647b4(_0x1f3877,_0x558c97),_0x4a2932=new _0x2f308f(_0x1f3877),_0x38fb3f=_0xc779e2['model'];_0x4a2932['bind'](...Object['keys'](_0x38fb3f))['to'](_0x38fb3f),_0x4a2932['delegate']('execute')['to'](_0x558c97),_0x4a2932['on']('execute',()=>{this['editor']['execute'](_0x38fb3f['commandName']),this['editor']['editing']['view']['focus']();}),_0x31a53c['children']['add'](_0x4a2932),_0x58277c['items']['add'](_0x31a53c);}return _0x558c97['bind']('isEnabled')['to'](_0x54a704,'isEnabled'),_0x558c97['panelView']['children']['add'](_0x58277c),_0x558c97;}['_initializeController'](_0x13960a){const _0x1d00a9=this['editor'],_0x4bfa28=_0x1d00a9['config'],_0x2aaf5a=_0x1d00a9['plugins']['get']('Annotations'),_0x32d02f=_0x1d00a9['plugins']['get']('CommentsRepository'),_0x33ec78=_0x1d00a9['plugins']['get']('EditorAnnotations'),_0x4c3275=_0x1d00a9['plugins']['get'](_0x5a4c16)['me'],_0x5d591d=_0x4bfa28['get']('trackChanges')['SuggestionThreadView'],_0x3e5367=_0x4bfa28['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1821f8,CommentThreadInputView:_0x246719}=_0x1d00a9['plugins']['get']('CommentsUI');let _0xdadb69,_0x442798,_0x239198;this['_annotationViews']['has'](_0x13960a['id'])?(_0x442798=this['_annotationViews']['get'](_0x13960a['id']),_0xdadb69=_0x442798['mainView']):(_0xdadb69=new _0x5d591d(_0x1d00a9['locale'],_0x13960a,_0x4c3275,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4bfa28['get']('comments.editorConfig'),'licenseKey':_0x4bfa28['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4bfa28['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bfa28['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bfa28['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5876db(_0x4bfa28['get']('locale'),_0x1d00a9['locale']),'CommentView':_0x4bfa28['get']('comments')['CommentView'],'CommentsListView':_0x1821f8,'CommentThreadInputView':_0x246719,'SuggestionView':_0x3e5367}),_0xdadb69['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d00a9['editing']['view']['focus']();}),_0xdadb69['suggestionView']['discardButton']['on']('execute',()=>{_0x1d00a9['editing']['view']['focus']();}),_0x442798=_0x2aaf5a['createAnnotationView'](this['editor']['locale'],_0xdadb69),_0x442798['bind']('isDirty')['to'](_0xdadb69,'isDirty'),_0x442798['bind']('length')['to'](_0xdadb69),_0x442798['bind']('type')['to'](_0xdadb69,'type',_0x242b4c=>'suggestion-'+_0x242b4c),_0xdadb69['on']('escape',()=>{_0x239198['fire']('escape');}),this['_annotationViews']['set'](_0x13960a['id'],_0x442798));const _0x5dcb14=_0x32d02f['createCommentThreadController'](_0x13960a['commentThread'],_0xdadb69),_0x9af5fc=new pe(_0x1d00a9,_0x13960a,_0xdadb69,_0x5dcb14),_0x8e5ceb=_0x13960a['getAllAdjacentSuggestions']()['filter'](_0x1efc8c=>_0x1efc8c['isInContent']);_0xdadb69['descriptionParts']=_0x1d00a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8e5ceb),this['_suggestionToController']['set'](_0x13960a,_0x9af5fc),this['_viewToController']['set'](_0xdadb69,_0x9af5fc);const _0x17147a=()=>{const _0x3d6e2f=[],_0x3dec78=_0x13960a['getAllAdjacentSuggestions']()['filter'](_0x2e5f3a=>_0x2e5f3a['isInContent']);for(const _0x8ac1a6 of _0x3dec78)_0x3d6e2f['push'](..._0x8ac1a6['getMarkers']());return _0x22e28(_0x1d00a9['editing'],_0x3d6e2f);};_0x239198=_0x2aaf5a['createAnnotation']({'view':_0x442798,'target':_0x17147a,'type':()=>'suggestion-'+_0x9af5fc['view']['type'],'isVisible':!!_0x17147a()}),_0x32d02f['_bindAnnotationToEditors'](_0xdadb69,_0x239198),_0x2aaf5a['add'](_0x239198),_0x33ec78['registerAnnotation'](_0x239198);}['_destroyController'](_0x39ffca){const _0x297887=this['editor']['plugins']['get']('CommentsRepository'),_0xba645=this['editor']['plugins']['get']('Annotations'),_0x44a515=this['_suggestionToController']['get'](_0x39ffca),_0x292859=_0x44a515['view'],_0x3c3437=_0xba645['getByInnerView'](_0x292859);_0x297887['_unbindEditors'](_0x292859),_0x3c3437&&_0xba645['remove'](_0x3c3437),this['_suggestionToController']['delete'](_0x39ffca),this['_viewToController']['delete'](_0x292859),_0x44a515['destroy']();}['_updateController'](_0x26b7e8){if(!_0x26b7e8['isInContent']||!this['_suggestionToController']['has'](_0x26b7e8))return;const _0x59fceb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51e2e2=this['_suggestionToController']['get'](_0x26b7e8),_0x343368=_0x26b7e8['getAllAdjacentSuggestions']();_0x51e2e2['view']['descriptionParts']=_0x59fceb['descriptionFactory']['getDescriptions'](_0x343368);}['destroy'](){for(const _0x9b9470 of this['_suggestionToController']['keys']())this['_destroyController'](_0x9b9470);for(const _0x1ed695 of this['_annotationViews']['values']())_0x1ed695['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xad9e42){return'model'in _0xad9e42;}class Ne extends _0x116a29{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4f984b){this['editor']['plugins']['get'](d)['adapter']=_0x4f984b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2e9b58){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2e9b58);}['getSuggestions']({skipNotAttached:_0x1057c3=!0x1,toJSON:_0x28d288=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1057c3,'toJSON':_0x28d288});}['getSuggestion'](_0x208314){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x208314);}}const p=['Pagination'];class re extends _0x116a29{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5dab80=this['editor'];if(_0x5dab80['config']['define']('trackChangesData.editorCreator',_0x314a7a=>{const _0x5b8a3c=_0x5dab80['model']['document']['getRootNames']()['reduce']((_0x394c3c,_0x318163)=>(_0x394c3c[_0x318163]='',_0x394c3c),{});return _0x5dab80['constructor']['create'](_0x5b8a3c,_0x314a7a);}),'function'!=typeof _0x5dab80['config']['get']('trackChangesData')['editorCreator'])throw new _0x428d7a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x186637){return P(this['editor'],!0x0,_0x186637);}['getDataWithDiscardedSuggestions'](_0x28a8d5){return P(this['editor'],!0x1,_0x28a8d5);}}class Fe extends _0x116a29{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9df5bd){function _0x533f42(_0x352255){return _0x352255['map'](_0x55bbb2=>String['fromCharCode'](_0x55bbb2))['join']('');}super(_0x9df5bd),this['result']='end',_0x9df5bd[_0x533f42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533f42([0x76,0x69,0x65,0x77])][_0x533f42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533f42([0x61,0x75,0x74,0x6f]),_0x9df5bd[_0x533f42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x533f42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533f42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x533f42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x533f42([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(_0x576eec){return void 0x0!==_0x576eec['getRootsAttributes'];}async function P(_0x1b29bb,_0x333e96,_0xb2327a){const _0x2789af=_0x53e095(_0x1b29bb,p);_0x2789af['plugins']['push'](d,Fe),_0x2789af['rootsAttributes']=De(_0x1b29bb)?_0x1b29bb['getRootsAttributes']():void 0x0;const _0x32a9c8=document['createDocumentFragment'](),_0x4e055c=_0x1b29bb['config']['get']('trackChangesData')['editorCreator'],_0x4fd062=await _0x4e055c(_0x2789af,()=>function(_0x1a0c62){const _0x14e6cd=document['createElement']('div');return _0x1a0c62['appendChild'](_0x14e6cd),_0x14e6cd;}(_0x32a9c8));!function(_0x12fc20,_0x1bb103){const _0x535eda=_0x12fc20['model']['document']['getRootNames']()['reduce']((_0x361fe6,_0x1795b4)=>(_0x361fe6[_0x1795b4]=_0x12fc20['data']['get']({'rootName':_0x1795b4}),_0x361fe6),{}),_0x48ed9e=_0x12fc20['plugins']['get']('Users')['users']['map'](_0x13766c=>({'id':_0x13766c['id'],'name':_0x13766c['name']})),_0x21bbb7=_0x12fc20['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10bf50=_0x12fc20['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2680b6=_0x1bb103['plugins']['get']('Users'),_0x35b791=_0x1bb103['plugins']['get']('TrackChangesEditing'),_0x2d0f6c=_0x1bb103['plugins']['get']('CommentsRepository');for(const _0x37680a of _0x2d0f6c['getCommentThreads']())_0x37680a['remove']();for(const _0x1febb5 of _0x48ed9e)_0x2680b6['getUser'](_0x1febb5['id'])||_0x2680b6['addUser'](_0x1febb5);_0x2680b6['me']||_0x2680b6['useAnonymousUser']();for(const _0x3d6b31 of _0x10bf50)_0x2d0f6c['addCommentThread'](_0x3d6b31);for(const _0x5055f1 of _0x21bbb7)_0x35b791['addSuggestionData'](_0x5055f1);_0x1bb103['data']['set'](_0x535eda);}(_0x1b29bb,_0x4fd062),_0x4fd062['execute'](_0x333e96?'acceptAllSuggestions':'discardAllSuggestions');const _0x29713c=De(_0x4fd062)?_0x4fd062['getFullData'](_0xb2327a):_0x4fd062['data']['get'](_0xb2327a);return await _0x4fd062['destroy'](),_0x29713c;}class Me extends _0x45dd94{['options'];constructor(_0x31ffc8,_0x13bba8){super(_0x31ffc8),this['options']=_0x13bba8,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'](_0xbb9f44,_0x3df082){if(!this['element'])return;const _0x28950b=[];for(const [_0x49c238,_0x468302]of _0xbb9f44){const _0x14875f=document['createElement']('div');_0x14875f['setAttribute']('data-ck-root-name',_0x49c238),_0x14875f['className']=_0x468302['classes']+'\x20ck-track-changes-preview__root-container',_0x14875f['innerHTML']=_0x468302['content'],_0x28950b['push'](_0x14875f);}_0x3df082(this['element'],_0x28950b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x25cf1c{constructor(_0xaa9c0b){super(_0xaa9c0b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x26f5d6=this['editor'],_0x18a58a=_0x26f5d6['locale'],_0x5b1daf=_0x26f5d6['plugins']['get']('Dialog');let _0x1399b4;const _0x9437ef=function(_0x3f20f5){const _0x1a2828={};if('editables'in _0x3f20f5['ui']['view']){for(const [_0xc2b7b5,_0x27bd85]of Object['entries'](_0x3f20f5['ui']['view']['editables']))_0x1a2828[_0xc2b7b5]=_0x27bd85['element'];}else _0x1a2828[_0x3f20f5['model']['document']['getRootNames']()[0x0]]=_0x3f20f5['ui']['view']['editable']['element'];return _0x1a2828;}(_0x26f5d6),_0x1a04e3=function(_0x62394b){let _0x41f1a6=0x0;for(const _0x47c6f0 of Object['values'](_0x62394b))_0x41f1a6=Math['max'](_0x41f1a6,_0x47c6f0['getBoundingClientRect']()['width']);let _0xb93c84=0x0;for(const _0x17e3a3 of Object['values'](_0x62394b))_0xb93c84+=_0x17e3a3['getBoundingClientRect']()['height'];const _0x4fb9d8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50786b=Math['min'](_0xb93c84,_0x4fb9d8);return{'width':_0x41f1a6,'height':_0x50786b};}(_0x9437ef);_0x5b1daf['show']({'id':'finalContentPreview','title':o(_0x18a58a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x18a58a,{'dialogRects':_0x1a04e3}),'onHide':()=>{_0x1399b4['detachFromDom']();},'onShow':()=>{_0x26f5d6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1cb73f=>{const _0x1bd664=this['_standarizeRootsData'](_0x1cb73f,_0x26f5d6,_0x9437ef);_0x5b1daf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1bd664,_0x26f5d6['config']['get']('trackChanges.preview.renderFunction'));}),_0x1399b4=new _0xc85bd9(_0x18a58a,[_0x5b1daf['view']]),_0x1399b4['attachToDom'](),_0x1399b4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x26f5d6['once']('destroy',()=>{_0x1399b4['detachFromDom']();});const _0x22998e=_0x5b1daf['view']['headerView']['class'];_0x5b1daf['view']['headerView']['class']=_0x22998e?_0x22998e+'\x20ck-reset_all':'ck-reset_all',_0x5b1daf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5b1daf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe9efdd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x9429c=_0xe9efdd['previewMode'],_0x24512d={};if('$labels'===_0x9429c){for(const _0x11ca5d of _0xe9efdd['getMergeFieldsIds']())_0x24512d[_0x11ca5d]=_0xe9efdd['getLabel'](_0x11ca5d)||_0x11ca5d;}else{const _0x5cbd40='$defaultValues'===_0x9429c?_0xe9efdd['getDefaultValues']():_0xe9efdd['getDataSetValues'](_0x9429c,!0x0);for(const _0x173205 of Object['entries'](_0x5cbd40)){const [_0x2c741e,_0x5deec4]=_0x173205;_0x24512d[_0x2c741e]=null!==_0x5deec4?_0x5deec4:_0xe9efdd['getLabel'](_0x2c741e)||_0x2c741e;}}return{'mergeFieldsData':_0x24512d};}['_standarizeRootsData'](_0x547214,_0x552d84,_0x38122d){let _0x37eb54;if('string'==typeof _0x547214){const _0x484791=_0x552d84['model']['document']['getRootNames']()[0x0];_0x37eb54={[_0x484791]:_0x547214};}else _0x37eb54=_0x547214;const _0x45a513=this['_fixMediaEmbeds'](_0x37eb54,_0x552d84),_0x245128=function(_0x1850d6,_0x2b8d17){for(const [_0x1e10b3,_0x49677e]of _0x1850d6)_0x49677e['classes']=_0x2b8d17[_0x1e10b3]['classList']['value']['replace']('ck-focused','');return _0x1850d6;}(this['_sortRoots'](_0x552d84)['reduce']((_0x21c387,_0x3b1d60)=>(_0x21c387['push']([_0x3b1d60,{'content':_0x45a513[_0x3b1d60],'classes':''}]),_0x21c387),[]),_0x38122d);return _0x245128;}['_fixMediaEmbeds'](_0x5b8a9a,_0x206c99){if(!_0x206c99['plugins']['has']('MediaEmbedEditing'))return _0x5b8a9a;const _0x154f0b=_0x206c99['plugins']['get']('MediaEmbedEditing');for(const [_0xc1a305,_0x1ea8dd]of Object['entries'](_0x5b8a9a)){const _0x752977=document['createElement']('div');_0x752977['innerHTML']=_0x1ea8dd,(_0x752977['querySelectorAll']('figure.media')['forEach'](_0x519fa3=>{const _0x3cad3f=_0x519fa3['querySelector']('oembed');if(_0x3cad3f){const _0x9b304d=_0x3cad3f['getAttribute']('url');if(_0x9b304d){const _0x12bc2f=_0x154f0b['registry']['getMediaViewElement'](new _0x285051(_0x206c99['editing']['view']['document']),_0x9b304d,{'elementName':'','renderForEditingView':!0x0}),_0x1e85f9=document['createElement']('div');_0x1e85f9['classList']['add']('ck-media__wrapper'),_0x12bc2f['render'](_0x1e85f9,_0x206c99['editing']['view']['domConverter']),_0x3cad3f['replaceWith'](_0x1e85f9);}}}),_0x5b8a9a[_0xc1a305]=_0x752977['innerHTML']);}return _0x5b8a9a;}['_sortRoots'](_0x57933f){if(!function(_0x42e143){return void 0x0!==_0x42e143['getRootsAttributes'];}(_0x57933f))return _0x57933f['model']['document']['getRootNames']();const _0x1f1a7e=[],_0x543705=new Map();for(const _0x368887 of _0x57933f['model']['document']['getRootNames']()){const _0x6c217=_0x57933f['editing']['view']['getDomRoot'](_0x368887)['getClientRects']()['item'](0x0);_0x1f1a7e['push'](_0x368887),_0x543705['set'](_0x368887,_0x6c217);}return _0x1f1a7e['sort']((_0x1b4983,_0x2b5e25)=>{const _0x1fea37=_0x543705['get'](_0x1b4983),_0x4de780=_0x543705['get'](_0x2b5e25);return _0x1fea37['y']-_0x4de780['y']||_0x1fea37['x']-_0x4de780['x'];}),_0x1f1a7e;}}class Ue extends _0x116a29{static get['requires'](){return[re,_0x382d28];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15bbb1){super(_0x15bbb1),_0x15bbb1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x15bbb1['config']['define']('trackChanges.preview.renderFunction',(_0x4d622b,_0x364050)=>{for(const _0x397b8e of _0x364050)_0x4d622b['appendChild'](_0x397b8e);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|