@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250219.0 → 0.0.0-nightly-20250220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- 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/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +26 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/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 +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.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/theme/icons/track-changes-accept.svg +11 -0
- package/theme/icons/track-changes-discard.svg +11 -0
- package/theme/icons/track-changes.svg +11 -0
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0xc93ba(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x27193e,_0x5a4f1c){super(),this['id']=_0x5a4f1c['id'],this['type']=_0x5a4f1c['type'],this['subType']=_0x5a4f1c['subType']||null,this['author']=_0x5a4f1c['author'],this['creator']=_0x5a4f1c['creator']||_0x5a4f1c['author'],this['isExternal']=Boolean(_0x5a4f1c['attributes']&&_0x5a4f1c['attributes']['@external']),this['data']=null,this['_model']=_0x27193e,this['_onAccept']=_0x5a4f1c['onAccept'],this['_onDiscard']=_0x5a4f1c['onDiscard'],this['_onAttributesChange']=_0x5a4f1c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5a4f1c['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 _0x181979=this;for(;_0x181979['previous'];)_0x181979=_0x181979['previous'];return _0x181979;}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'](_0x3f68ee){this['_markerNames']['add'](_0x3f68ee);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x572951=>this['_model']['markers']['get'](_0x572951))['filter'](_0x1e9acb=>_0x1e9acb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x59e3bd=>{for(const _0x135445 of this['getMarkers']())_0x59e3bd['removeMarker'](_0x135445);}),this['_markerNames']['clear']();}['removeMarker'](_0x164351){this['_model']['change'](_0x1f1e32=>{_0x1f1e32['removeMarker'](_0x164351);}),this['_markerNames']['delete'](_0x164351);}['addRange'](_0x4cb9dc){const _0x3e7ad4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3e7ad4),this['_model']['change'](_0x3b0972=>{_0x3b0972['addMarker'](_0x3e7ad4,{'range':_0x4cb9dc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x175242){for(const _0x926a6f of this['getRanges']())if(_0x926a6f['isIntersecting'](_0x175242))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2248eb=>_0x2248eb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x100b68,_0x211a5f)=>[..._0x100b68,..._0x211a5f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x36cbf7=this['getRanges']();if(0x1!=_0x36cbf7['length'])return null;const _0x5de36f=_0x36cbf7[0x0],_0x132f6a=_0x5de36f['start']['nodeAfter'],_0x42c26f=_0x5de36f['end']['nodeBefore'];return _0x132f6a instanceof _0x34bc7d?_0x132f6a!=_0x42c26f?null:_0x132f6a: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 _0x164683=[];let _0x53c5d5=this['head'];for(;_0x53c5d5;)_0x164683['push'](_0x53c5d5),_0x53c5d5=_0x53c5d5['next'];return _0x164683;}['setAttribute'](_0x2faf1b,_0x3d1059){const _0x1a65b9=_0x8c5ef4(this['attributes']);_0x47c4c0(_0x1a65b9,_0x2faf1b,_0x3d1059),_0x31e1d9(_0x1a65b9,this['attributes'])||(this['attributes']=_0x1a65b9,this['_onAttributesChange'](_0x1a65b9));}['removeAttribute'](_0x4936ac){const _0x26e7eb=_0x8c5ef4(this['attributes']);_0x4af7ba(_0x26e7eb,_0x4936ac),_0x31e1d9(_0x26e7eb,this['attributes'])||(this['attributes']=_0x26e7eb,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 _0x1c5a5c()['substr'](0x1,0x5);}}function c(_0x20252a,_0x1621a2,_0x1265e1){const _0xfc8b2a=_0x20252a['t'],t=_0x20252a['t'];switch(_0x1621a2){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',_0x1265e1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1265e1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1265e1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1265e1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1265e1);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',_0x1265e1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1265e1);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',_0x1265e1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1265e1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1265e1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1265e1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1265e1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1265e1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1265e1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1265e1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1265e1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1265e1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1265e1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1265e1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1265e1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1265e1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1265e1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1265e1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1265e1);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'},_0x1265e1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1265e1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1265e1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1265e1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1265e1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1265e1);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'},_0x1265e1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1265e1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1265e1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1265e1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1265e1);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'},_0x1265e1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1265e1);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'},_0x1265e1);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'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'},_0x1265e1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1265e1);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'},_0x1265e1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1265e1);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'},_0x1265e1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1265e1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1265e1);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'},_0x1265e1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1265e1);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 _0xfc8b2a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1265e1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xfc8b2a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1265e1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1265e1);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'},_0x1265e1);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'},_0x1265e1);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'},_0x1265e1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1621a2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x413b00,_0x3a3c50){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x413b00,this['_locale']=_0x3a3c50;}['getDescriptions'](_0x1fd4e1){const _0x8f56a6=[],_0xf455ec=new Set(),_0x410bce=new Set();for(let _0x331347=0x0;_0x331347<_0x1fd4e1['length'];_0x331347++){const _0x68418d=_0x1fd4e1[_0x331347];if(!_0x68418d['isInContent'])continue;const _0x274643=this['_handleCustomCallbackDescription'](_0x68418d);if(_0x274643){if(null!=_0x68418d['subType']){if(_0xf455ec['has'](_0x68418d['subType']))continue;_0xf455ec['add'](_0x68418d['subType']);}_0x8f56a6['push'](_0x274643);}else{if('attribute'!=_0x68418d['type'])'insertion'!=_0x68418d['type']&&'deletion'!=_0x68418d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x8f56a6,_0x68418d,_0x1fd4e1[_0x331347+0x1]);else{const _0x185864=_0x68418d['data']['key'];if(_0x410bce['has'](_0x185864))continue;_0x410bce['add'](_0x68418d['data']['key']),_0x185864==u?this['_handleRenameSuggestionDescription'](_0x8f56a6,_0x68418d):this['_handleAttributeSuggestionDescription'](_0x8f56a6,_0x68418d);}}}return this['_resolveDescriptionItems'](_0x8f56a6);}['registerDescriptionCallback'](_0x213c22){this['_customCallbacks']['push'](_0x213c22);}['registerElementLabel'](_0x41ce69,_0xb3c151,_0x1e6016=_0x2705bf['normal']){'function'==typeof _0x41ce69?_0x220d2d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x41ce69,'label':_0xb3c151,'priority':_0x1e6016}):this['_itemLabels']['set'](_0x41ce69,_0xb3c151);}['registerAttributeLabel'](_0x4ef54a,_0x51684e){this['_attributeLabels']['set'](_0x4ef54a,_0x51684e);}['getItemLabel'](_0x261c94,_0x12632c=0x1){let _0x67a876;for(const _0x516ac8 of this['_itemLabelsCallbacks'])if(_0x516ac8['matchingCallback'](_0x261c94)){_0x67a876=_0x516ac8['label'];break;}return _0x67a876||(_0x67a876=this['_itemLabels']['get'](_0x261c94['name'])),_0x67a876?_0x67a876(_0x12632c):0x1!==_0x12632c?_0x12632c+'\x20'+_0x261c94['name']+'s':''+_0x261c94['name'];}['_addDescriptionItems'](_0x38e5ef,_0x1049b4){const _0x4c595c=_0x1049b4['getFirstRange']()['getWalker'](),_0x2b39d4='insertion'==_0x1049b4['type']?'add':'remove';for(const _0x5711d5 of _0x4c595c){const _0x37d529=_0x5711d5['item'],_0x100c3c=_0x38e5ef[_0x38e5ef['length']-0x1];if(_0x37d529['is']('$textProxy'))_0x100c3c&&_0x100c3c['type']['indexOf']('Container')>-0x1&&_0x38e5ef['pop'](),_0x100c3c&&'text'==_0x100c3c['type']?_0x100c3c[_0x2b39d4]+=_0x37d529['data']:_0x38e5ef['push']({'type':'text','add':'add'==_0x2b39d4?_0x37d529['data']:'','remove':'remove'==_0x2b39d4?_0x37d529['data']:''});else{if(this['_schema']['isObject'](_0x37d529)){const _0x3cff3b=_0x37d529;if(_0x100c3c&&_0x100c3c['type']['indexOf']('Container')>-0x1&&_0x38e5ef['pop'](),'elementEnd'==_0x5711d5['type'])continue;_0x100c3c&&_0x100c3c['type']==_0x2b39d4+'Object'&&_0x100c3c['element']['name']==_0x3cff3b['name']?_0x100c3c['quantity']++:_0x38e5ef['push']({'type':_0x2b39d4+'Object','element':_0x3cff3b,'quantity':0x1}),_0x4c595c['skip'](_0x44c4f2=>!('elementEnd'==_0x44c4f2['type']&&_0x44c4f2['item']==_0x37d529));}else{if(this['_schema']['checkChild'](_0x37d529,'$text')||_0x37d529['is']('element','softBreak')){const _0x55d9d9=_0x37d529;if('add'==_0x2b39d4&&'elementStart'==_0x5711d5['type']||'remove'==_0x2b39d4&&'elementEnd'==_0x5711d5['type'])continue;if(_0x100c3c&&-0x1==_0x100c3c['type']['indexOf']('Container')){'text'==_0x100c3c['type']&&(_0x100c3c[_0x2b39d4]+='\x0a');continue;}let _0x275cbe;if(_0x275cbe='add'==_0x2b39d4?_0x55d9d9['nextSibling']&&!this['_schema']['isObject'](_0x55d9d9['nextSibling'])?_0x55d9d9['nextSibling']:null:_0x55d9d9['previousSibling']&&!this['_schema']['isObject'](_0x55d9d9['previousSibling'])?_0x55d9d9['previousSibling']:null,_0x55d9d9['isEmpty']||_0x275cbe&&_0x275cbe['isEmpty']){const _0x17e836=_0x275cbe&&_0x275cbe['isEmpty']?_0x275cbe:_0x55d9d9;_0x100c3c&&_0x100c3c['type']==_0x2b39d4+'EmptyContainer'&&_0x100c3c['element']['name']==_0x17e836['name']?_0x100c3c['quantity']++:_0x38e5ef['push']({'type':_0x2b39d4+'EmptyContainer','element':_0x17e836,'quantity':0x1});}else _0x38e5ef['push']({'type':_0x2b39d4+'Container','element':_0x55d9d9});}}}}}['_resolveDescriptionItems'](_0x216326){const _0x54b602=this['_locale'],_0x462dc9=[],_0x350d9c=[],_0x5bedc9=[];for(const _0x27e459 of _0x216326)switch(_0x27e459['type']){case'text':if(_0x27e459['add']=_0x27e459['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27e459['remove']=_0x27e459['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27e459['add']&&''!=_0x27e459['remove']){_0x462dc9['push']({'type':'replace','content':c(_0x54b602,'REPLACE_TEXT',['\x22'+_0x27e459['remove']+'\x22','\x22'+_0x27e459['add']+'\x22'])});continue;}if(null!=_0x27e459['add']['match'](/^ +$/)){_0x462dc9['push']({'type':'insertion','content':c(_0x54b602,'*Insert:*\x20%0',c(_0x54b602,'ELEMENT_SPACE',_0x27e459['add']['length']))});continue;}if(null!=_0x27e459['remove']['match'](/^ +$/)){_0x462dc9['push']({'type':'deletion','content':c(_0x54b602,'*Remove:*\x20%0',c(_0x54b602,'ELEMENT_SPACE',_0x27e459['remove']['length']))});continue;}if(''!=_0x27e459['add']){_0x462dc9['push']({'type':'insertion','content':c(_0x54b602,'*Insert:*\x20%0','\x22'+_0x27e459['add']+'\x22')});continue;}_0x462dc9['push']({'type':'deletion','content':c(_0x54b602,'*Remove:*\x20%0','\x22'+_0x27e459['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x462dc9['push']({'type':'insertion','content':c(_0x54b602,'*Insert:*\x20%0',this['getItemLabel'](_0x27e459['element'],_0x27e459['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x462dc9['push']({'type':'deletion','content':c(_0x54b602,'*Remove:*\x20%0',this['getItemLabel'](_0x27e459['element'],_0x27e459['quantity']))});continue;case'addContainer':_0x462dc9['push']({'type':'insertion','content':c(_0x54b602,'*Split:*\x20%0',this['getItemLabel'](_0x27e459['element'],_0x27e459['quantity']))});continue;case'removeContainer':_0x462dc9['push']({'type':'deletion','content':c(_0x54b602,'*Merge:*\x20%0',this['getItemLabel'](_0x27e459['element'],_0x27e459['quantity']))});continue;case'addFormat':_0x350d9c['push'](_0x27e459['key']);continue;case'removeFormat':_0x5bedc9['push'](_0x27e459['key']);continue;default:_0x462dc9['push'](_0x27e459);}if(_0x350d9c['length']){const _0x3a9493=_0x350d9c['map'](_0x814557=>this['_attributeLabels']['has'](_0x814557)?this['_attributeLabels']['get'](_0x814557):_0x814557)['join'](',\x20');_0x462dc9['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3a9493)});}if(_0x5bedc9['length']){const _0x148d02=_0x5bedc9['map'](_0x3ec686=>this['_attributeLabels']['has'](_0x3ec686)?this['_attributeLabels']['get'](_0x3ec686):_0x3ec686)['join'](',\x20');_0x462dc9['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x148d02)});}return _0x462dc9;}['_handleCustomCallbackDescription'](_0x442376){for(const _0x3df456 of this['_customCallbacks']){const _0x2127c8=_0x3df456(_0x442376);if(_0x2127c8&&'type'in _0x2127c8)return _0x2127c8;}}['_handleAttributeSuggestionDescription'](_0x120045,_0x3ce668){const _0x560862=_0x3ce668['data'],_0x593bdf=void 0x0===_0x560862['newValue']?'removeFormat':'addFormat';_0x120045['push']({'type':_0x593bdf,'key':_0x560862['key']});}['_handleRenameSuggestionDescription'](_0x5cba95,_0x556f2a){_0x5cba95['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x556f2a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4554be,_0x526dd2,_0x1b6c59){if(this['_addDescriptionItems'](_0x4554be,_0x526dd2),_0x1b6c59&&_0x1b6c59['getFirstRange']()&&!_0x526dd2['getFirstRange']()['end']['isEqual'](_0x1b6c59['getFirstRange']()['start'])){const _0xe3c24e=_0x4554be[_0x4554be['length']-0x1],_0x4ee32b='insertion'==_0x526dd2['type']?'add':'remove';_0xe3c24e&&'text'==_0xe3c24e['type']&&(_0xe3c24e[_0x4ee32b]+='\x0a');}}}class U extends _0x25b00c{['afterInit'](){const _0x3e9f93=this['editor'],_0x33d043=_0x3e9f93['plugins']['get']('TrackChangesEditing');_0x3e9f93['commands']['get']('showAIAssistant')&&_0x33d043['enableCommand']('showAIAssistant');}}class V extends _0x25b00c{['afterInit'](){const _0x567288=this['editor'],_0x316832=_0x567288['locale'];if(!_0x567288['plugins']['has']('AlignmentEditing'))return;const _0x56a5f5=_0x567288['plugins']['get']('TrackChangesEditing');_0x56a5f5['enableDefaultAttributesIntegration']('alignment'),_0x56a5f5['registerBlockAttribute']('alignment'),_0x56a5f5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x316832,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x375624=this['editor'],_0x3b59f0=_0x375624['locale'];_0x375624['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x477e85=>{if('formatBlock'!=_0x477e85['type'])return;const {data:_0x1881d6}=_0x477e85;if(_0x1881d6&&'alignment'==_0x1881d6['commandName']){const _0x35fe25=_0x1881d6['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x3b59f0,'*Format:*\x20%0',function(_0xd9c33){switch(_0xd9c33){case'left':return c(_0x3b59f0,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x3b59f0,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x3b59f0,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x3b59f0,'FORMAT_JUSTIFY_TEXT');}}(_0x35fe25))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x25b00c{['afterInit'](){const _0x33959f=this['editor'],_0x1f2a92=_0x33959f['plugins']['get']('TrackChangesEditing'),_0x17d498=_0x33959f['locale'];for(const _0x1bfb5c of Yt){if(!_0x33959f['plugins']['has'](_0x1bfb5c))continue;const _0xdd2ef=_0x1bfb5c['slice'](0x0,-0x7)['toLowerCase'](),_0x398b30='FORMAT_'+_0xdd2ef['toUpperCase']();_0x1f2a92['enableDefaultAttributesIntegration'](_0xdd2ef),_0x1f2a92['registerInlineAttribute'](_0xdd2ef),_0x1f2a92['descriptionFactory']['registerAttributeLabel'](_0xdd2ef,c(_0x17d498,_0x398b30));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db74a=this['editor'],_0x41b312=_0x1db74a['locale'],_0x2c8212=_0x1db74a['plugins']['get']('TrackChangesEditing');function _0x4a0371(_0x3e3ceb,_0x33f04f){_0x2c8212['descriptionFactory']['registerDescriptionCallback'](_0x5088cc=>{if('formatInline'!=_0x5088cc['type'])return;const {data:_0x50607e}=_0x5088cc;return _0x50607e&&_0x50607e['commandName']===_0x3e3ceb?_0x50607e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41b312,'*Format:*\x20%0',_0x33f04f)}:{'type':'format','content':c(_0x41b312,'*Remove\x20format:*\x20%0',_0x33f04f)}:void 0x0;});}_0x4a0371('bold',c(_0x41b312,'FORMAT_BOLD')),_0x4a0371('italic',c(_0x41b312,'FORMAT_ITALIC')),_0x4a0371('underline',c(_0x41b312,'FORMAT_UNDERLINE')),_0x4a0371('code',c(_0x41b312,'FORMAT_CODE')),_0x4a0371('strikethrough',c(_0x41b312,'FORMAT_STRIKETHROUGH')),_0x4a0371('subscript',c(_0x41b312,'FORMAT_SUBSCRIPT')),_0x4a0371('superscript',c(_0x41b312,'FORMAT_SUPERSCRIPT'));}}class G extends _0x25b00c{['afterInit'](){const _0x2d77e3=this['editor'],_0x335c51=_0x2d77e3['locale'];if(!_0x2d77e3['plugins']['has']('BlockQuoteEditing'))return;const _0x474030=_0x2d77e3['plugins']['get']('TrackChangesEditing'),_0x14038d=this['editor']['commands']['get']('blockQuote');_0x474030['enableCommand']('blockQuote',(_0x28cabd,_0x35a18d={})=>{const _0x56e24a=this['editor']['model']['document']['selection'],_0x5d368a=_0x35a18d&&void 0x0!==_0x35a18d['forceValue']?_0x35a18d['forceValue']:!_0x14038d['value'];let _0x4b8aff=[];if(_0x5d368a){const _0x57c578=Array['from'](_0x56e24a['getSelectedBlocks']())['filter'](_0x3cc566=>to(_0x3cc566)||function(_0x3f1893,_0x4910f3){const _0x2fa28f=_0x4910f3['checkChild'](_0x3f1893['parent'],'blockQuote'),_0xb7bba5=_0x4910f3['checkChild'](['$root','blockQuote'],_0x3f1893);return _0x2fa28f&&_0xb7bba5;}(_0x3cc566,this['editor']['model']['schema']));_0x4b8aff=Zt(_0x57c578,_0x2d77e3['model']);}else{const _0x581b69=Array['from'](_0x56e24a['getSelectedBlocks']())['filter'](_0x2eb5ba=>to(_0x2eb5ba));_0x4b8aff=Zt(_0x581b69,_0x2d77e3['model']);}_0x2d77e3['model']['change'](()=>{for(const _0x561840 of _0x4b8aff)_0x474030['markBlockFormat'](_0x561840,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5d368a}]});});}),_0x474030['descriptionFactory']['registerDescriptionCallback'](_0x55ca2f=>{const {data:_0x27de61}=_0x55ca2f;if(_0x27de61&&'blockQuote'==_0x27de61['commandName']){const _0x3c6397=c(_0x335c51,'ELEMENT_BLOCK_QUOTE');return _0x27de61['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x335c51,'*Set\x20format:*\x20%0',_0x3c6397)}:{'type':'format','content':c(_0x335c51,'*Remove\x20format:*\x20%0',_0x3c6397)};}});}}function to(_0x452514){return'blockQuote'==_0x452514['parent']['name'];}class L extends _0x25b00c{['afterInit'](){const _0x3c8ff6=this['editor'],_0x2953ad=_0x3c8ff6['locale'],_0x29a0ee=_0x3c8ff6['plugins']['get']('TrackChangesEditing');_0x3c8ff6['plugins']['has']('BookmarkEditing')&&(_0x29a0ee['enableCommand']('insertBookmark'),_0x29a0ee['enableDefaultAttributesIntegration']('updateBookmark'),_0x29a0ee['registerBlockAttribute']('bookmarkId'),_0x29a0ee['descriptionFactory']['registerDescriptionCallback'](_0x568792=>{if('insertion'!=_0x568792['type']&&'deletion'!=_0x568792['type']&&'attribute'!=_0x568792['type'])return;const _0x36125d=_0x568792['getContainedElement']();if(null==_0x36125d)return;if(!_0x36125d['is']('element','bookmark'))return;const _0x129b49=_0x36125d['getAttribute']('bookmarkId');if('insertion'==_0x568792['type'])return{'type':'insertion','content':c(_0x2953ad,'*Insert:*\x20%0','\x22'+_0x129b49+'\x22\x20'+c(_0x2953ad,'ELEMENT_BOOKMARK'))};if('deletion'==_0x568792['type'])return{'type':'deletion','content':c(_0x2953ad,'*Remove:*\x20%0','\x22'+_0x129b49+'\x22\x20'+c(_0x2953ad,'ELEMENT_BOOKMARK'))};const {data:_0x42fd44}=_0x568792;if(!_0x42fd44||'bookmarkId'!=_0x42fd44['key'])return;return{'type':'format','content':c(_0x2953ad,'*Set\x20bookmark:*\x20%0','\x22'+_0x42fd44['newValue']+'\x22')};}));}}class J extends _0x25b00c{['afterInit'](){const _0x3359ec=this['editor'];_0x3359ec['plugins']['has']('CaseChange')&&(_0x3359ec['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3359ec['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3359ec['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x25b00c{['afterInit'](){const _0x49dac0=this['editor'];_0x49dac0['commands']['get']('ckbox')&&_0x49dac0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x25b00c{['afterInit'](){const _0x3afc88=this['editor'];if(!_0x3afc88['plugins']['has']('CodeBlock'))return;const _0x301ab7=_0x3afc88['plugins']['get']('TrackChangesEditing'),_0x554604=_0x3afc88['locale'],_0x3dd927=_0x3afc88['config']['get']('codeBlock')['languages'],_0x5f4034=_0x3afc88['commands']['get']('codeBlock');_0x301ab7['enableCommand']('indentCodeBlock'),_0x301ab7['enableCommand']('outdentCodeBlock'),_0x301ab7['enableCommand']('codeBlock',(_0x214aeb,_0x1b161e={})=>{const _0x4cb732=_0x3afc88['model'],_0x517ae9=_0x3afc88['model']['document']['selection'],_0x2c4633=_0x1b161e&&void 0x0!==_0x1b161e['forceValue']?_0x1b161e['forceValue']:!_0x5f4034['value'];let _0x1b1113;_0x1b161e['language']||(_0x1b161e['language']=_0x3dd927[0x0]['language']),_0x1b1113=_0x2c4633?Array['from'](_0x517ae9['getSelectedBlocks']())['filter'](_0x2c9c13=>oo(_0x2c9c13)||function(_0x1ac6f8,_0x278d60){if(_0x1ac6f8['is']('rootElement')||_0x278d60['isLimit'](_0x1ac6f8))return!0x1;return _0x278d60['checkChild'](_0x1ac6f8['parent'],'codeBlock');}(_0x2c9c13,_0x4cb732['schema'])):Array['from'](_0x517ae9['getSelectedBlocks']())['filter'](_0x413285=>oo(_0x413285));const _0x16259b=Zt(_0x1b1113,_0x4cb732);_0x4cb732['change'](()=>{for(const _0xa475db of _0x16259b)_0x301ab7['markBlockFormat'](_0xa475db,{'commandName':'codeBlock','commandParams':[{..._0x1b161e,'forceValue':_0x2c4633}],'formatGroupId':'blockName'});});}),(_0x301ab7['descriptionFactory']['registerElementLabel']('codeBlock',_0x384487=>c(_0x554604,'ELEMENT_CODE_BLOCK',_0x384487)),_0x301ab7['descriptionFactory']['registerDescriptionCallback'](_0x5435b3=>{if('formatBlock'!=_0x5435b3['type'])return;const _0x1a1a11=_0x554604['t'],{data:_0x26f246}=_0x5435b3;if(!_0x26f246||'codeBlock'!=_0x26f246['commandName'])return;const _0x14fb7d=_0x26f246['commandParams'][0x0]['language'],_0x510679=_0x1a1a11(_0x3dd927['find'](_0x15ed11=>_0x15ed11['language']===_0x14fb7d)['label'])['toLowerCase']();return _0x26f246['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x554604,'*Set\x20format:*\x20%0',c(_0x554604,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x510679+')')}:{'type':'format','content':c(_0x554604,'*Remove\x20format:*\x20%0',c(_0x554604,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2144ec){return'codeBlock'==_0x2144ec['name'];}class q extends _0x25b00c{['afterInit'](){const _0x45d73c=this['editor'];if(!_0x45d73c['plugins']['has']('CommentsEditing'))return;_0x45d73c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x481493,_0x12a2f2,_0xd6495a){const _0x38c85d=[];for(const _0x5a6599 of _0x12a2f2['getItems']())_0x5a6599['hasAttribute'](_0x481493)&&_0x38c85d['push'](_0xd6495a['createRangeOn'](_0x5a6599));return _0x38c85d;}function De(_0x464d4d,_0xf115fd,{showActiveMarker:_0x4003fc=!0x0}={}){const _0x25d783=_0x464d4d['plugins']['get']('TrackChangesEditing');return(_0x2adca2,_0x575459,_0x171a7c)=>{if(!_0x171a7c['consumable']['test'](_0x575459['markerRange'],_0x2adca2['name']))return;const _0x12d378=_0x575459['markerRange']['getWalker'](),_0x50f693=_0x575459['markerRange']['start'],_0x57ad8a=_0x464d4d['model']['schema'];let _0x300ed7=null,_0x49ccb4=null,_0x5ecdfe=!0x1,_0x59b38f=!0x1;for(const _0x2aea9b of _0x12d378){const _0x153945=_0x2aea9b['item'];_0x5ecdfe=_0x5ecdfe||_0x57ad8a['isContent'](_0x153945);const _0x133a3e=_0x171a7c['mapper']['toViewElement'](_0x153945);if(_0x133a3e&&_0x133a3e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2aea9b['type']&&(_0x57ad8a['isBlock'](_0x153945)&&!_0x57ad8a['isLimit'](_0x153945)&&(_0x153945['nextSibling']||_0x50f693['isAtEnd']?_0x300ed7&&_0x300ed7['parent']==_0x153945||(_0x300ed7=_0x153945,_0x326ea5(_0x2aea9b['previousPosition']),_0x59b38f=!0x0):_0x49ccb4=_0x49ccb4||_0x2aea9b['previousPosition']));}function _0x326ea5(_0xe771ba){const {authorId:_0xa5924a}=_0x25d783['_splitMarkerName'](_0x575459['markerName']),_0x1e078c=_0x171a7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf115fd,'data-author-id':_0xa5924a}),_0x18ff7d=_0x171a7c['mapper']['toViewPosition'](_0xe771ba);_0x4003fc&&_0x25d783['activeMarkers']['includes'](_0x575459['markerName'])&&_0x171a7c['writer']['addClass']('ck-suggestion-marker--active',_0x1e078c),_0x171a7c['writer']['insert'](_0x18ff7d,_0x1e078c),_0x171a7c['mapper']['bindElementToMarker'](_0x1e078c,_0x575459['markerName']);}_0x5ecdfe||_0x59b38f||!_0x49ccb4||_0x326ea5(_0x49ccb4);};}class z extends _0x25b00c{static get['requires'](){return[_0x186324];}['init'](){const _0x58e0aa=this['editor'],_0x2e4cd7=_0x58e0aa['plugins']['get']('TrackChangesEditing');_0x2e4cd7['enableCommand']('delete');const _0x46b45e=_0x58e0aa['commands']['get']('deleteForward');_0x2e4cd7['enableCommand']('deleteForward',(_0x33daaa,_0x4844be={})=>{const _0x3362f2=_0x58e0aa['model']['createSelection'](_0x58e0aa['model']['document']['selection']);_0x3362f2['isCollapsed']&&_0x58e0aa['model']['modifySelection'](_0x3362f2,{'direction':'forward','unit':_0x4844be['unit']});const _0x4abf04=_0x3362f2['getFirstRange'](),_0x4bc67b=_0x4fb766['fromRange'](_0x4abf04);let _0x4bee74;_0x33daaa(_0x4844be),_0x4bee74='$graveyard'==_0x4bc67b['root']['rootName']?_0x58e0aa['model']['createRange'](_0x4abf04['start']):_0x58e0aa['model']['createRange'](_0x4bc67b['start'],_0x4bc67b['end']),_0x4bc67b['detach'](),_0x58e0aa['model']['enqueueChange'](_0x46b45e['buffer']['batch'],_0x11451a=>{_0x46b45e['buffer']['lock'](),_0x11451a['setSelection'](_0x11451a['createRange'](_0x4bee74['end'])),_0x46b45e['buffer']['unlock']();});}),_0x58e0aa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x58e0aa,'merge'),{'priority':'high'}),_0x58e0aa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x424db6,_0xa60d5,_0x22ba44)=>{_0x22ba44['options']['showSuggestionHighlights']&&De(_0x58e0aa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x424db6,_0xa60d5,_0x22ba44);},{'priority':'high'}),_0x58e0aa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3346d4,_0xfb92e8,_0x583f54)=>{const _0x343f94=_0x583f54['mapper']['markerNameToElements'](_0xfb92e8['markerName']);if(_0x343f94){for(const _0x5a18c5 of _0x343f94)_0x5a18c5['is']('uiElement')&&(_0x583f54['mapper']['unbindElementFromMarkerName'](_0x5a18c5,_0xfb92e8['markerName']),_0x583f54['writer']['remove'](_0x5a18c5));}},{'priority':'high'});}}class W extends _0x25b00c{['afterInit'](){const _0x2461ff=this['editor'];if(!_0x2461ff['plugins']['has']('ListEditing'))return;const _0x178ca8=_0x2461ff['locale'],_0x5a0a48=_0x2461ff['plugins']['get']('TrackChangesEditing'),_0x2e543f=_0x2461ff['plugins']['has']('TodoListEditing'),_0x784c5d=!!_0x2461ff['config']['get']('list.multiBlock');function _0x1842e3(_0x467fc3){return{'type':'format','content':''+c(_0x178ca8,'*Set\x20format:*\x20%0',_0x467fc3)};}function _0xac66f6(_0x406e67){return{'type':'format','content':''+c(_0x178ca8,'*Remove\x20format:*\x20%0',_0x406e67)};}_0x5a0a48['enableDefaultAttributesIntegration']('numberedList'),_0x5a0a48['enableDefaultAttributesIntegration']('bulletedList'),_0x5a0a48['enableDefaultAttributesIntegration']('customNumberedList'),_0x5a0a48['enableDefaultAttributesIntegration']('customBulletedList'),_0x5a0a48['enableDefaultAttributesIntegration']('indentList'),_0x5a0a48['enableDefaultAttributesIntegration']('outdentList'),_0x5a0a48['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a0a48['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5a0a48['registerBlockAttribute']('listItemId'),_0x5a0a48['registerBlockAttribute']('listType'),_0x5a0a48['registerBlockAttribute']('listIndent'),_0x784c5d&&(_0x5a0a48['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a0a48['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e543f&&(_0x5a0a48['enableDefaultAttributesIntegration']('todoList'),_0x5a0a48['enableDefaultAttributesIntegration']('checkTodoList'),_0x5a0a48['registerBlockAttribute']('todoListChecked'),_0x5a0a48['descriptionFactory']['registerDescriptionCallback'](_0x40d2f5=>{const {data:_0x515611}=_0x40d2f5;if(_0x515611&&'todoListChecked'==_0x515611['key'])return{'type':'format','content':_0x515611['newValue']?c(_0x178ca8,'*Check\x20item*'):c(_0x178ca8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c5c2a=>{if(_0x3c5c2a['batch']['isUndo'])return!0x1;let _0x5b4a74=!0x1;const _0x5ca81e=_0x5a0a48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcb0b1=>'todoListChecked'===_0x5a0a48['_getAttributeKey'](_0xcb0b1));for(const _0x22f582 of _0x5ca81e){'todo'!=_0x22f582['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a0a48['_findSuggestions'](_0x22f582['getFirstRange'](),'attribute')['find'](_0x348bc7=>'listType'===_0x5a0a48['_getAttributeKey'](_0x348bc7['suggestion']))||(_0x3c5c2a['removeMarker'](_0x22f582['getFirstMarker']()),_0x5b4a74=!0x0));}return _0x5b4a74;})),_0x5a0a48['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x178ca8,'FORMAT_INDENT'));const _0x3ecbd3={'type':'format','content':''};_0x5a0a48['descriptionFactory']['registerDescriptionCallback'](_0x507102=>{const {data:_0x2775b9}=_0x507102;if(!_0x2775b9||'listType'!=_0x2775b9['key'])return;let _0x540a82=_0x507102['head'];for(;_0x540a82;){if(_0x540a82['data']&&(('listStyle'==_0x540a82['data']['key']||'listMarkerStyle'==_0x540a82['data']['key'])&&(_0x540a82['data']['newValue']&&'default'!=_0x540a82['data']['newValue']||'default'!=_0x540a82['data']['oldValue']&&!_0x2775b9['newValue'])||!_0x784c5d&&_0x540a82['data']['key']==u))return _0x3ecbd3;_0x540a82=_0x540a82['next'];}if(null==_0x2775b9['newValue'])switch(_0x2775b9['oldValue']){case'bulleted':return _0xac66f6(c(_0x178ca8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xac66f6(c(_0x178ca8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xac66f6(c(_0x178ca8,'ELEMENT_TODO_LIST'));}switch(_0x2775b9['newValue']){case'bulleted':return _0x1842e3(c(_0x178ca8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1842e3(c(_0x178ca8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1842e3(c(_0x178ca8,'ELEMENT_TODO_LIST'));}}),_0x5a0a48['descriptionFactory']['registerDescriptionCallback'](_0x239520=>{const {data:_0x25e736}=_0x239520;if(_0x25e736&&'listIndent'==_0x25e736['key'])return null==_0x25e736['newValue']||null==_0x25e736['oldValue']&&0x0==_0x25e736['newValue']?_0x3ecbd3:void 0x0;}),_0x5a0a48['descriptionFactory']['registerDescriptionCallback'](_0x2d9453=>{if('attribute'!=_0x2d9453['type'])return;const {data:_0x1b3403}=_0x2d9453;if(!_0x1b3403||'listItemId'!=_0x1b3403['key'])return;const _0x5860c3=Te(_0x2d9453);return'newValue'==_0x5860c3?{'type':'format','content':c(_0x178ca8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5860c3?{'type':'format','content':c(_0x178ca8,'*Split:*\x20list\x20item')}:_0x3ecbd3;}),_0x2461ff['model']['document']['registerPostFixer'](_0xbb1808=>this['listItemIdFixer'](_0xbb1808)),_0x2461ff['model']['document']['registerPostFixer'](_0x1b92a7=>this['noTrackChangesFixer'](_0x1b92a7)),_0x2461ff['model']['document']['on']('change:data',(_0x3e16f0,_0x2d3ac6)=>{if(_0x2d3ac6['isUndo']||!_0x2d3ac6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x24b25b){if(_0x24b25b['batch']['isUndo']||!_0x24b25b['batch']['isLocal'])return!0x1;let _0x5850bf=!0x1;const _0x42f017=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16b7d6=>_0x16b7d6['data']&&'listItemId'==_0x16b7d6['data']['key'])['filter'](_0x3d6803=>_0x3d6803['data']['newValue']&&_0x3d6803['data']['oldValue']);for(const _0x4eaec3 of _0x42f017)Te(_0x4eaec3)||(_0x24b25b['removeMarker'](_0x4eaec3['getFirstMarker']()),_0x5850bf=!0x0);return _0x5850bf;}['noTrackChangesFixer'](_0x123339){if(_0x123339['batch']['isUndo']||!_0x123339['batch']['isLocal'])return!0x1;const _0x982e04=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x982e04['trackChangesCommand']['value'])return!0x1;let _0xa08955=!0x1;const _0x33820e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x45b644=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3fb5a3=>'attribute'==_0x3fb5a3['type'])['filter'](_0x136883=>_0x33820e['includes'](_0x136883['attributeKey']));if(0x0==_0x45b644['length'])return _0xa08955;for(const _0x34baec of _0x45b644){const _0x48d281=_0x982e04['_findSuggestions'](_0x34baec['range'],'attribute')['filter'](_0x1beb67=>!_0x1beb67['meta']['isNextTo'])['map'](_0x51c3c6=>_0x51c3c6['suggestion'])['filter'](_0x2f28d5=>{const _0x1238b8=_0x982e04['_getAttributeKey'](_0x2f28d5);return _0x33820e['includes'](_0x1238b8);});if(_0x48d281['length']){for(const _0xfc6332 of _0x48d281)_0x123339['removeMarker'](_0xfc6332['getFirstMarker']());_0xa08955=!0x0;}}return _0xa08955;}['assureChains'](){const _0x494ac6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x211b7b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5b3761;const _0x10162b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17a979=>{if(_0x17a979['data']['oldRange']||!_0x17a979['data']['newRange'])return null;if(!_0x17a979['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x415f68}=_0x494ac6['_splitMarkerName'](_0x17a979['name']);if(!_0x494ac6['hasSuggestion'](_0x415f68))return null;const _0x5a189c=_0x494ac6['getSuggestion'](_0x415f68);return _0x211b7b['includes'](_0x5a189c['data']['key']);})['map'](_0x5af52a=>{const {id:_0x121505}=_0x494ac6['_splitMarkerName'](_0x5af52a['name']),_0x3466e9=_0x494ac6['getSuggestion'](_0x121505);return _0x5b3761=_0x3466e9['attributes']['groupId'],_0x3466e9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x10162b['size'])return;const _0x48b24f=_0x494ac6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4303e3=>'attribute'==_0x4303e3['type']&&_0x4303e3['data']&&_0x211b7b['includes'](_0x4303e3['data']['key'])&&_0x4303e3['attributes']['groupId']!=_0x5b3761)['map'](_0x3b709d=>({'listItem':_0x3b709d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3b709d['attributes']['groupId']})),_0x1599b5=new Set();for(const {groupId:_0x1bc36a,listItem:_0x294375}of _0x48b24f)_0x10162b['has'](_0x294375)&&_0x1599b5['add'](_0x1bc36a);for(const _0x3f7200 of _0x494ac6['getSuggestions']())_0x1599b5['has'](_0x3f7200['attributes']['groupId'])&&_0x3f7200['setAttribute']('groupId',_0x5b3761);}['_supportLegacySuggestions'](){const _0x1d79d8=this['editor'],_0x162c1f=_0x1d79d8['locale'],_0x9a1570=_0x1d79d8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x9a1570['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5af917,_0x44dfc5){const _0x148e70=[];for(let _0x1b844c of _0x5af917)_0x1b844c['start']['nodeAfter']===_0x1b844c['end']['parent']&&(_0x1b844c=_0x1d79d8['model']['createRange'](_0x1d79d8['model']['createPositionAt'](_0x1b844c['start']['nodeAfter'],0x0))),_0x148e70['push'](_0x1b844c);_0x1d79d8['model']['change'](_0x2ee529=>{const _0x58c1f0=_0x1d79d8['model']['document']['selection'],_0x2ccd46=Array['from'](_0x58c1f0['getRanges']())['map'](_0x1afd1a=>_0x4fb766['fromRange'](_0x1afd1a));_0x2ee529['setSelection'](_0x148e70),_0x1d79d8['commands']['get'](_0x44dfc5['commandName'])['refresh'](),_0x44dfc5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d79d8['execute'](_0x44dfc5['commandName'],..._0x44dfc5['commandParams']),_0x2ee529['setSelection'](_0x2ccd46);for(const _0x38ea2d of _0x2ccd46)_0x38ea2d['detach']();});}),_0x9a1570['descriptionFactory']['registerElementLabel'](function(_0xec1e2b){const _0x2abd01=!_0x1d79d8['model']['schema']['isObject'](_0xec1e2b),_0x953a2f=_0xec1e2b['previousSibling'],_0xf992ef=_0xec1e2b['nextSibling'],_0x5acb36=_0xec1e2b['getAttribute']('listItemId'),_0x158a04=!_0x953a2f||_0x953a2f['getAttribute']('listItemId')!==_0x5acb36,_0x1d459a=!_0xf992ef||_0xf992ef['getAttribute']('listItemId')!==_0x5acb36;return _0x2abd01&&Boolean(_0x5acb36)&&_0x158a04&&_0x1d459a;},_0x40aa63=>c(_0x162c1f,'ELEMENT_LIST_ITEM',_0x40aa63));}['_registerLegacyDescription'](){const _0x3d21f5=this['editor'],_0x48c896=_0x3d21f5['locale'];function _0x2040ba(_0x549c76){const _0x304189=_0x3d21f5['commands']['get']('bulletedList')['value'],_0x4f268c=_0x3d21f5['commands']['get']('numberedList')['value'];return'numberedList'===_0x549c76?_0x304189:_0x4f268c;}_0x3d21f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x253c74){if('formatBlock'!=_0x253c74['type'])return;const {data:_0x30aae1}=_0x253c74;if(!_0x30aae1)return;let _0x24928f,_0x2d4ac1,_0x2dc2e6,_0x5d1298;switch(_0x30aae1['commandName']){case'bulletedList':_0x2dc2e6=_0x30aae1['commandParams'][0x0]['forceValue'],_0x5d1298=_0x2040ba(_0x30aae1['commandName']),_0x24928f=_0x2dc2e6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d1298&&_0x3d21f5['config']['get']('list.multiBlock')||(_0x24928f='*Change\x20to:*\x20%0'),_0x2d4ac1={'type':'format','content':c(_0x48c896,_0x24928f,c(_0x48c896,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2dc2e6=_0x30aae1['commandParams'][0x0]['forceValue'],_0x5d1298=_0x2040ba(_0x30aae1['commandName']),_0x24928f=_0x2dc2e6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d1298&&_0x3d21f5['config']['get']('list.multiBlock')||(_0x24928f='*Change\x20to:*\x20%0'),_0x2d4ac1={'type':'format','content':c(_0x48c896,_0x24928f,c(_0x48c896,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x24928f='*Indent:*\x20%0',_0x2d4ac1={'type':'format','content':c(_0x48c896,_0x24928f,c(_0x48c896,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x24928f=function(_0x1db2b9){const _0x1b6c46=_0x1db2b9['getFirstRange']();let _0x233b6e=_0x1b6c46['start']['nodeAfter'];for(;_0x233b6e&&_0x1b6c46['containsItem'](_0x233b6e);){if(_0x233b6e['getAttribute']('listIndent')>0x0)return!0x1;_0x233b6e=_0x233b6e['nextSibling'];}return!0x0;}(_0x253c74)?c(_0x48c896,'*Format:*\x20remove\x20from\x20%0',c(_0x48c896,function(_0x45d971){return'ELEMENT_'+_0x45d971['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x253c74))):c(_0x48c896,'*Outdent:*\x20%0',c(_0x48c896,'ELEMENT_LIST_ITEM')),_0x2d4ac1={'type':'format','content':_0x24928f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30aae1['multipleBlocks']&&(_0x24928f='*Merge:*\x20%0',_0x2d4ac1={'type':'deletion','content':c(_0x48c896,_0x24928f,c(_0x48c896,'ELEMENT_LIST_ITEM'))});}return _0x2d4ac1;});}}function Te(_0x485453){let _0x53d46f=_0x485453['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53d46f;){const _0x35a746=_0x53d46f['getAttribute']('listItemId');if(!_0x35a746)return!0x1;if(_0x35a746==_0x485453['data']['newValue'])return'newValue';if(_0x35a746==_0x485453['data']['oldValue'])return'oldValue';_0x53d46f=_0x53d46f['previousSibling'];}return!0x1;}class Se extends _0x25b00c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c9391=this['editor']['config']['get']('list.properties'),_0x11c2dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c9391['styles']&&(_0x11c2dd['enableDefaultAttributesIntegration']('listStyle'),_0x11c2dd['registerBlockAttribute']('listStyle')),_0x5c9391['reversed']&&(_0x11c2dd['enableDefaultAttributesIntegration']('listReversed'),_0x11c2dd['registerBlockAttribute']('listReversed')),_0x5c9391['startIndex']&&(_0x11c2dd['enableDefaultAttributesIntegration']('listStart'),_0x11c2dd['registerBlockAttribute']('listStart'));const _0x47e674={'type':'format','content':''};_0x11c2dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2275e3=this['editor']['locale'];_0x11c2dd['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2275e3,'FORMAT_LIST_REVERSED')),_0x11c2dd['descriptionFactory']['registerDescriptionCallback'](_0x2efb4c=>{const {data:_0x2bc972}=_0x2efb4c;if(_0x2bc972&&'listReversed'==_0x2bc972['key'])return null==_0x2bc972['newValue']||0x0==_0x2bc972['newValue']&&null==_0x2bc972['oldValue']?_0x47e674:void 0x0;}),_0x11c2dd['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2275e3,'FORMAT_LIST_START')),_0x11c2dd['descriptionFactory']['registerDescriptionCallback'](_0x2dc2c9=>{const {data:_0x17cdc4}=_0x2dc2c9;if(_0x17cdc4&&'listStart'==_0x17cdc4['key'])return null==_0x17cdc4['newValue']||0x1==_0x17cdc4['newValue']&&null==_0x17cdc4['oldValue']?_0x47e674:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x39374b=>{if(_0x39374b['batch']['isUndo'])return!0x1;let _0x1290d0=!0x1;const _0x1e407c=_0x11c2dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7424c7=>{const _0xa7a691=_0x11c2dd['_getAttributeKey'](_0x7424c7);return'listStart'==_0xa7a691||'listReversed'==_0xa7a691;});for(const _0x5b7e54 of _0x1e407c){const _0x4c1ff3=_0x5b7e54['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4c1ff3||'customNumbered'==_0x4c1ff3)continue;_0x11c2dd['_findSuggestions'](_0x5b7e54['getFirstRange'](),'attribute')['find'](_0x24213d=>'listType'==_0x11c2dd['_getAttributeKey'](_0x24213d['suggestion']))||(_0x39374b['removeMarker'](_0x5b7e54['getFirstMarker']()),_0x1290d0=!0x0);}return _0x1290d0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x21dcd4){const _0x26cac0=this['editor']['locale'],{data:_0x3a8d04}=_0x21dcd4,_0x3de4d1={'type':'format','content':''};if(!_0x3a8d04||'listStyle'!=_0x3a8d04['key'])return;if(!_0x3a8d04['oldValue'])return'default'==_0x3a8d04['newValue']?_0x3de4d1:{'type':'format','content':''+c(_0x26cac0,'*Set\x20format:*\x20%0',c(_0x26cac0,this['_getTranslationKeyForListStyle'](_0x3a8d04['newValue'])))};if(!_0x3a8d04['newValue']){if('default'==_0x3a8d04['oldValue'])return _0x3de4d1;let _0x4480d7=_0x21dcd4['head'];for(;_0x4480d7;){if(_0x4480d7['data']&&'listType'==_0x4480d7['data']['key']&&_0x4480d7['data']['newValue'])return _0x3de4d1;_0x4480d7=_0x4480d7['next'];}return{'type':'format','content':''+c(_0x26cac0,'*Remove\x20format:*\x20%0',c(_0x26cac0,this['_getTranslationKeyForListStyle'](_0x3a8d04['oldValue'])))};}if('default'!=_0x3a8d04['newValue'])return{'type':'format','content':''+c(_0x26cac0,'*Set\x20format:*\x20%0',c(_0x26cac0,this['_getTranslationKeyForListStyle'](_0x3a8d04['newValue'])))};let _0x1cd2bd=_0x21dcd4['head'];for(;_0x1cd2bd;){if(_0x1cd2bd['data']&&'listType'==_0x1cd2bd['data']['key']&&_0x1cd2bd['data']['newValue']&&_0x1cd2bd['data']['oldValue'])return _0x3de4d1;_0x1cd2bd=_0x1cd2bd['next'];}return{'type':'format','content':c(_0x26cac0,'*Set\x20format:*\x20%0',c(_0x26cac0,'ELEMENT_'+_0x21dcd4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c8346=this['editor'],_0x4e0c79=_0x1c8346['locale'];_0x1c8346['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5903b1=>{if('formatBlock'!=_0x5903b1['type'])return;const {data:_0x53bf0b}=_0x5903b1;if(!_0x53bf0b)return;let _0x132ba1,_0xf60ce9;switch(_0x53bf0b['commandName']){case'listStyle':_0x132ba1='*Change\x20to:*\x20%0',_0xf60ce9={'type':'format','content':c(_0x4e0c79,_0x132ba1,c(_0x4e0c79,this['_getTranslationKeyForListStyle'](_0x53bf0b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x132ba1=_0x53bf0b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf60ce9={'type':'format','content':c(_0x4e0c79,_0x132ba1)};break;case'listStart':_0x132ba1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf60ce9={'type':'format','content':c(_0x4e0c79,_0x132ba1,_0x53bf0b['commandParams'][0x0]['startIndex'])};}return _0xf60ce9;});}['_getTranslationKeyForListStyle'](_0x9da22a){return'ELEMENT_'+function(_0x3b94d7){if(_e['includes'](_0x3b94d7))return'bulleted';if(Re['includes'](_0x3b94d7))return'numbered';return null;}(_0x9da22a)['toUpperCase']()+'_LIST_'+_0x9da22a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x25b00c{['afterInit'](){const _0x27700c=this['editor'];_0x27700c['commands']['get']('emoji')&&_0x27700c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x25b00c{static get['requires'](){return[_0x1b55a2];}['init'](){const _0xb3cdb0=this['editor'],_0xfe5561=_0xb3cdb0['plugins']['get']('TrackChangesEditing'),_0x1a63ee=_0xb3cdb0['commands']['get']('enter');_0xfe5561['enableCommand']('enter',()=>{_0xb3cdb0['model']['change'](_0x31a242=>{const _0x3c9640=_0xb3cdb0['model']['document']['selection'],_0x15c9cb=_0x3c9640['getFirstPosition'](),_0x5addb9=_0x4fb766['fromRange'](_0x3c9640['getFirstRange']());if(_0x1a63ee['enterBlock'](_0x31a242)){const _0x59837a=_0xb3cdb0['model']['createPositionAt'](_0x15c9cb['parent']['nextSibling'],0x0),_0x18d6b6=_0x31a242['createRange'](_0x15c9cb,_0x59837a);_0xfe5561['markInsertion'](_0x18d6b6);}else _0x31a242['setSelection'](_0x31a242['createRange'](_0x5addb9['end']));_0x5addb9['detach'](),_0x1a63ee['fire']('afterExecute',{'writer':_0x31a242});});}),_0xb3cdb0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xb3cdb0,'split'),{'priority':'high'}),_0xb3cdb0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x53379e,_0x34b471,_0x548973)=>{const _0x2664b9=_0x548973['mapper']['markerNameToElements'](_0x34b471['markerName']);if(_0x2664b9){for(const _0x2f5b81 of _0x2664b9)_0x2f5b81['hasClass']('ck-suggestion-marker-split')&&(_0x548973['mapper']['unbindElementFromMarkerName'](_0x2f5b81,_0x34b471['markerName']),_0x548973['writer']['remove'](_0x2f5b81));}},{'priority':'high'}),_0xb3cdb0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bc757,_0x262349,_0x36869c)=>{_0x36869c['options']['showSuggestionHighlights']&&De(_0xb3cdb0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3bc757,_0x262349,_0x36869c);},{'priority':'high'});}}class Z extends _0x25b00c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc371c8=this['editor']['plugins']['get']('TrackChangesEditing');_0xc371c8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc371c8['enableCommand']('findNext'),_0xc371c8['enableCommand']('findPrevious'),_0xc371c8['enableCommand']('replace'),_0xc371c8['enableCommand']('replaceAll');}['handleFindCommand'](_0x5bf453,_0x4e54cb,_0x1ff33d={}){const _0x5393e7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5bf453(_0x263aff=>{let _0x1ee551=('string'==typeof _0x4e54cb?_0x5393e7['findByTextCallback'](_0x4e54cb,_0x1ff33d):_0x4e54cb)(_0x263aff);Array['isArray'](_0x1ee551)&&(_0x1ee551={'results':_0x1ee551,'searchText':'string'==typeof _0x4e54cb?_0x4e54cb:''});const _0x525bc6=_0x1ee551['results']['filter'](_0xa7f7f9=>!0x1===this['_isInDeletionRange'](_0xa7f7f9,_0x263aff['item']));return{..._0x1ee551,'results':_0x525bc6};},_0x1ff33d);}['_isInDeletionRange'](_0xea0813,_0x36015a){const _0x22e8b5=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36015a,_0xea0813['start']),this['editor']['model']['createPositionAt'](_0x36015a,_0xea0813['end']));for(const _0x5b5c10 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22e8b5['getIntersection'](_0x5b5c10['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x25b00c{['afterInit'](){const _0x1c5a90=this['editor']['locale'],_0xf4d323=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x462b41,commandName:_0x1e5169}of eo)this['editor']['plugins']['has'](_0x462b41)&&(_0xf4d323['enableDefaultAttributesIntegration'](_0x1e5169),_0xf4d323['registerInlineAttribute'](_0x1e5169));_0xf4d323['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1c5a90,'FORMAT_FONT_SIZE')),_0xf4d323['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1c5a90,'FORMAT_FONT_FAMILY')),_0xf4d323['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1c5a90,'FORMAT_FONT_COLOR')),_0xf4d323['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1c5a90,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b6167=this['editor'],_0x12fc99=_0x5b6167['locale'];_0x5b6167['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f31ca=>{const _0x2dbeab=_0x12fc99['t'];if('formatInline'!=_0x2f31ca['type'])return;const {data:_0x257469}=_0x2f31ca;if(null!=_0x257469){if('fontSize'==_0x257469['commandName']){const _0x3642b5=_0x257469['commandParams'][0x0]['value'];if(_0x3642b5){const _0x54abef=_0x2dbeab(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x20ff6d=>_0x20ff6d['model']==_0x3642b5)['title'])['toLowerCase']();return{'type':'format','content':c(_0x12fc99,'*Set\x20font\x20size:*\x20%0',_0x54abef)};}return{'type':'format','content':c(_0x12fc99,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x257469['commandName']){const _0x26dce2=_0x257469['commandParams'][0x0]['value'];return _0x26dce2?{'type':'format','content':c(_0x12fc99,'*Set\x20font\x20family:*\x20%0',_0x26dce2)}:{'type':'format','content':c(_0x12fc99,'*Reset\x20font\x20family*')};}if('fontColor'==_0x257469['commandName']){const _0x1fbfb3=_0x257469['commandParams'][0x0]['value'];if(_0x1fbfb3){const _0xcdb4b7=_0x4bb0cb(this['editor']['config']['get']('fontColor.colors'))['find'](_0x42be6f=>_0x42be6f['model']==_0x1fbfb3);let _0x45b0f7=_0x1fbfb3,_0x48e815='';return _0xcdb4b7&&(_0x45b0f7=_0xcdb4b7['label'],_0x48e815=_0x2dbeab(_0x45b0f7)['toLowerCase']()),{'type':'format','content':c(_0x12fc99,'*Set\x20font\x20color:*\x20%0',_0x48e815)['trim'](),'color':{'value':_0x1fbfb3,'title':_0x48e815||_0x45b0f7}};}return{'type':'format','content':c(_0x12fc99,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x257469['commandName']){const _0x148719=_0x257469['commandParams'][0x0]['value'];if(_0x148719){const _0x4a43db=_0x4bb0cb(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10e162=>_0x10e162['model']==_0x148719);let _0x4ab218=_0x148719,_0x87a1ea='';return _0x4a43db&&(_0x4ab218=_0x4a43db['label'],_0x87a1ea=_0x2dbeab(_0x4ab218)['toLowerCase']()),{'type':'format','content':c(_0x12fc99,'*Set\x20font\x20background\x20color:*\x20%0',_0x87a1ea)['trim'](),'color':{'value':_0x148719,'title':_0x87a1ea||_0x4ab218}};}return{'type':'format','content':c(_0x12fc99,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x25b00c{['afterInit'](){const _0x5d73a1=this['editor'],_0x10ee0d=_0x5d73a1['plugins']['get']('TrackChangesEditing'),_0xee59e=_0x5d73a1['commands']['get']('copyFormat'),_0xe967eb=_0x5d73a1['commands']['get']('pasteFormat');_0xee59e&&_0xe967eb&&(_0x10ee0d['enableDefaultAttributesIntegration']('pasteFormat'),_0x10ee0d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3398d2=this['editor'],_0x3ef3a9=_0x3398d2['locale'];_0x3398d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e218=>{if('formatBlock'!=_0x48e218['type']&&'formatInline'!=_0x48e218['type'])return;const {data:_0x2899e6}=_0x48e218;if(_0x2899e6&&'pasteFormat'===_0x2899e6['commandName']){const _0x29993f=[],_0x2a2b06=_0x2899e6['commandParams'][0x0];for(const [_0x5e8cd9,_0x5756e4]of Object['entries'](_0x2a2b06))_0x29993f['push'](ro(_0x3398d2,_0x5e8cd9,_0x5756e4));return _0x29993f['length']?{'type':'format','content':c(_0x3ef3a9,'*Set\x20format\x20to:*\x20%0',_0x29993f['join'](',\x20'))}:{'type':'format','content':c(_0x3ef3a9,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xd1932a,_0x1d839f,_0x218ac1){const _0x5ac03e=_0xd1932a['locale']['t'],_0x2b993b=_0x1d839f['split'](/(?=[A-Z])/)['join']('\x20'),_0x5253ca=_0x5ac03e(_0x2b993b['charAt'](0x0)['toUpperCase']()+_0x2b993b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x218ac1)return _0x5253ca;if('fontColor'===_0x1d839f||'fontBackgroundColor'===_0x1d839f){const _0x12c0b0=_0x4bb0cb(_0xd1932a['config']['get']('fontColor.colors'))['find'](_0x5dbb8d=>_0x5dbb8d['model']==_0x218ac1);return _0x5253ca+'\x20('+(_0x12c0b0?_0x5ac03e(_0x12c0b0['label'])['toLowerCase']():_0x218ac1)+')';}if('fontSize'===_0x1d839f&&isNaN(parseFloat(_0x218ac1))){const _0x326b41=_0xd1932a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd1932a['config']['get']('fontSize.options'))['find'](_0x2bed22=>_0x2bed22['model']==_0x218ac1);return _0x5253ca+'\x20('+(_0x326b41?_0x5ac03e(_0x326b41['title'])['toLowerCase']():_0x218ac1)+')';}return _0x5253ca+'\x20('+_0x218ac1+')';}class nt extends _0x25b00c{['_headingOptions'];['afterInit'](){const _0x53320a=this['editor'];if(!_0x53320a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x53320a['config']['get']('heading.options');const _0x3df135=_0x53320a['locale'],_0x8948d=_0x53320a['plugins']['get']('TrackChangesEditing');_0x8948d['enableDefaultAttributesIntegration']('heading');for(const _0x224d89 of this['_headingOptions'])'paragraph'!=_0x224d89['model']&&_0x8948d['descriptionFactory']['registerElementLabel'](_0x224d89['model'],_0x301269=>{const _0x16f0eb=this['_getHeadingLevel'](_0x224d89['model']);return null!==_0x16f0eb?_0x903dfc(_0x301269,_0x16f0eb):_0x2c4397(_0x301269,_0x224d89['title']);});function _0x903dfc(_0x3a67f3,_0x217f88){return c(_0x3df135,'ELEMENT_HEADING',[_0x3a67f3,_0x217f88]);}function _0x2c4397(_0x5ab690,_0xd5e434){return c(_0x3df135,'ELEMENT_HEADING_CUSTOM',[_0x5ab690,_0xd5e434]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10aff5=this['editor'],_0x374c97=_0x10aff5['locale'];function _0x2424aa(_0x21f0b4,_0x380f77){return c(_0x374c97,'ELEMENT_HEADING_CUSTOM',[_0x21f0b4,_0x380f77]);}_0x10aff5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb208=>{if('formatBlock'!=_0x3bb208['type'])return;const {data:_0x54b8db}=_0x3bb208;if(_0x54b8db&&'heading'==_0x54b8db['commandName']){const _0x25761e=_0x54b8db['commandParams'][0x0]['value'],_0x5b02c9=this['_getHeadingLevel'](_0x25761e);if(null!==_0x5b02c9)return{'type':'format','content':c(_0x374c97,'*Change\x20to:*\x20%0',(_0x1d872d=0x1,_0x5164b4=_0x5b02c9,c(_0x374c97,'ELEMENT_HEADING',[_0x1d872d,_0x5164b4])))};const _0x9c362b=this['_headingOptions']['find'](_0x7eac8d=>_0x7eac8d['model']===_0x25761e)['title'];return{'type':'format','content':c(_0x374c97,'*Change\x20to:*\x20%0',_0x2424aa(0x1,_0x9c362b))};}var _0x1d872d,_0x5164b4;});}['_getHeadingLevel'](_0x30372f){const _0xdd423=_0x30372f['match'](/^heading(\d+)/);if(_0xdd423)return _0xdd423[0x1];const _0x2a1350=this['_headingOptions']?.['find'](_0xc3489c=>_0xc3489c['model']==_0x30372f);if(_0x2a1350&&_0x2a1350['view']){const _0x422ebe=_0x2a1350['view'],_0x57b04b=(_0x422ebe['name']??_0x422ebe)['match'](/^h(\d+)/);if(_0x57b04b)return _0x57b04b[0x1];}return null;}}class it extends _0x25b00c{['afterInit'](){const _0x4b4399=this['editor'];if(!_0x4b4399['plugins']['has']('HighlightEditing'))return;const _0xbb2cfe=_0x4b4399['plugins']['get']('TrackChangesEditing'),_0x5ec23f=_0x4b4399['locale'];_0xbb2cfe['enableDefaultAttributesIntegration']('highlight'),_0xbb2cfe['registerInlineAttribute']('highlight'),_0xbb2cfe['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5ec23f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af854=this['editor'],_0x2b21fc=_0x4af854['locale'];_0x4af854['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a69a4=>{if('formatInline'!=_0x3a69a4['type'])return;const {data:_0x37f282}=_0x3a69a4;if(_0x37f282&&'highlight'==_0x37f282['commandName']){const _0x2668b8=_0x2b21fc['t'],_0x1471e2=_0x37f282['commandParams'][0x0]['value'];if(_0x1471e2){const _0x4d6514=_0x4af854['config']['get']('highlight.options')['find'](_0x3abdaa=>_0x3abdaa['model']==_0x1471e2),_0x1c7674=_0x2668b8(_0x4d6514['title'])['toLowerCase']();return{'type':'format','content':c(_0x2b21fc,'*Set\x20highlight:*\x20%0',_0x1c7674),'color':{'value':_0x4d6514['color'],'title':_0x4d6514['title']}};}return{'type':'format','content':c(_0x2b21fc,'*Remove\x20highlight*',c(_0x2b21fc,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x25b00c{['afterInit'](){const _0xfd1ee7=this['editor'];if(!_0xfd1ee7['plugins']['has']('HorizontalLineEditing'))return;_0xfd1ee7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x53b267=_0xfd1ee7['plugins']['get']('TrackChangesEditing'),_0x198041=_0xfd1ee7['locale'];_0x53b267['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33be85=>c(_0x198041,'ELEMENT_HORIZONTAL_LINE',_0x33be85)),_0xfd1ee7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c3155,{writer:_0x412f68,options:_0x17bb60})=>{if(!_0x17bb60['showSuggestionHighlights'])return null;const _0x25a71b=_0x412f68['createContainerElement']('div'),_0x47bf59=_0x412f68['createEmptyElement']('hr');return _0x412f68['addClass']('ck-horizontal-line',_0x25a71b),_0x412f68['insert'](_0x412f68['createPositionAt'](_0x25a71b,0x0),_0x47bf59),_0x25a71b;},'converterPriority':'high'});}}class ot extends _0x25b00c{['afterInit'](){const _0x5fb36b=this['editor'];if(!_0x5fb36b['plugins']['has']('HtmlEmbed'))return;const _0x2a14b7=_0x5fb36b['plugins']['get']('TrackChangesEditing'),_0x4a9443=_0x5fb36b['locale'];_0x2a14b7['descriptionFactory']['registerElementLabel']('rawHtml',_0x19332a=>c(_0x4a9443,'ELEMENT_HTML_EMBED',_0x19332a)),_0x2a14b7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2a14b7['registerBlockAttribute']('value'),_0x2a14b7['descriptionFactory']['registerDescriptionCallback'](_0x3308d7=>{if('attribute'!=_0x3308d7['type'])return;const {data:_0x4dcfaf}=_0x3308d7;if(_0x4dcfaf&&'value'==_0x4dcfaf['key']&&_0x3308d7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1010b9=c(_0x4a9443,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4a9443,'*Change\x20%0\x20content*',_0x1010b9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445ebe=this['editor'],_0x168f7f=_0x445ebe['locale'];_0x445ebe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4193d1=>{if('formatBlock'!=_0x4193d1['type'])return;const {data:_0x2bb6b0}=_0x4193d1;if(_0x2bb6b0&&'htmlEmbed'==_0x2bb6b0['commandName']){const _0xae799b=c(_0x168f7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x168f7f,'*Change\x20%0\x20content*',_0xae799b)};}});}}class rt extends _0x25b00c{['afterInit'](){const _0x45f41f=this['editor'];if(!_0x45f41f['plugins']['has']('ImageEditing'))return;const _0x37080c=_0x45f41f['plugins']['get']('TrackChangesEditing'),_0x1844ad=_0x45f41f['plugins']['get']('ImageUtils'),_0x995392=_0x45f41f['locale'];_0x37080c['enableCommand']('insertImage'),_0x37080c['descriptionFactory']['registerElementLabel']('imageBlock',_0xe3df9=>c(_0x995392,'ELEMENT_IMAGE',_0xe3df9)),_0x37080c['descriptionFactory']['registerElementLabel']('imageInline',_0x315a9f=>c(_0x995392,'ELEMENT_INLINE_IMAGE',_0x315a9f)),_0x37080c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x995392,'ELEMENT_CAPTION')),_0x45f41f['plugins']['has']('ImageUploadEditing')&&_0x37080c['enableCommand']('uploadImage'),_0x45f41f['plugins']['has']('ImageBlockEditing')&&_0x45f41f['plugins']['has']('ImageInlineEditing')&&(_0x37080c['enableCommand']('imageTypeInline',(_0x19c094,_0x54be3f)=>{const _0x18f2d9=_0x1844ad['getClosestSelectedImageElement'](_0x45f41f['model']['document']['selection']);_0x45f41f['model']['change'](()=>{_0x37080c['markBlockFormat'](_0x18f2d9,{'commandName':'imageTypeInline','commandParams':[_0x54be3f]},[],'convertBlockImageToInline');});}),_0x37080c['enableCommand']('imageTypeBlock',(_0xdbe0e5,_0x1f643c)=>{_0x45f41f['model']['change'](_0x424cb9=>{let _0x4154c2=_0x1844ad['getClosestSelectedImageElement'](_0x45f41f['model']['document']['selection']),_0x53f588=_0x424cb9['createRangeOn'](_0x4154c2);const _0x35fed6=_0x4644a5['fromPosition'](_0x53f588['start'],'toPrevious'),_0x3b2fb9=_0x4644a5['fromPosition'](_0x53f588['end'],'toNext');_0x37080c['forceDefaultExecution'](()=>_0xdbe0e5(_0x1f643c)),_0x4154c2=_0x1844ad['getClosestSelectedImageElement'](_0x45f41f['model']['document']['selection']),_0x53f588=_0x424cb9['createRangeOn'](_0x4154c2);const _0x57b053=_0x424cb9['createRange'](_0x35fed6,_0x3b2fb9);_0x35fed6['detach'](),_0x3b2fb9['detach'](),_0x37080c['markBlockFormat'](_0x4154c2,{'commandName':'imageTypeInline','commandParams':[_0x1f643c]},[],'convertInlineImageToBlock'),_0x57b053['start']['isBefore'](_0x53f588['start'])&&_0x37080c['markInsertion'](_0x424cb9['createRange'](_0x57b053['start'],_0x53f588['start']),'convertInlineImageToBlock'),_0x53f588['end']['isBefore'](_0x57b053['end'])&&_0x37080c['markInsertion'](_0x424cb9['createRange'](_0x53f588['end'],_0x57b053['end']),'convertInlineImageToBlock');});}),_0x37080c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x37080c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x37080c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x37080c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x37080c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x37080c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x504b78])=>{const _0x222595=_0x37080c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1244a4=_0x504b78['start'],_0x52a0e1=_0x504b78['end'];const _0x191cb5=_0x45f41f['model']['schema']['getNearestSelectionRange'](_0x1244a4,'backward'),_0x2a72b3=_0x45f41f['model']['schema']['getNearestSelectionRange'](_0x52a0e1,'forward');_0x191cb5['isCollapsed']&&(_0x1244a4=_0x191cb5['start']),_0x2a72b3['isCollapsed']&&(_0x52a0e1=_0x2a72b3['end']),_0x222595([_0x45f41f['model']['createRange'](_0x1244a4,_0x52a0e1)]);}),_0x37080c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3afbd8),_0x37080c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3afbd8)),_0x45f41f['plugins']['has']('ImageCaptionEditing')&&(_0x37080c['enableCommand']('toggleImageCaption',(_0x4c2410,_0x4b8093)=>{const _0x5e0d94=_0x45f41f['plugins']['get']('ImageCaptionUtils');let _0x369e62=_0x1844ad['getClosestSelectedImageElement'](_0x45f41f['model']['document']['selection']),_0x29ee51=_0x5e0d94['getCaptionFromImageModelElement'](_0x369e62);_0x45f41f['model']['change'](()=>{if(_0x29ee51)return void _0x37080c['markDeletion'](_0x45f41f['model']['createRangeOn'](_0x29ee51));const _0x4e9ee5=_0x1844ad['isBlockImage'](_0x369e62);_0x4c2410(_0x4b8093),_0x369e62=_0x1844ad['getClosestSelectedImageElement'](_0x45f41f['model']['document']['selection']),_0x29ee51=_0x5e0d94['getCaptionFromImageModelElement'](_0x369e62),_0x37080c['markInsertion'](_0x45f41f['model']['createRangeOn'](_0x29ee51),_0x4e9ee5?null:'imageCaption');});}),_0x37080c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3afbd8));const _0x5cbbb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3cc68e(_0x2775a1,_0x4cfd3f){const _0x11fcf5=_0x5cbbb7['findIndex'](({type:_0x77db32,subType:_0x25c2c1})=>_0x2775a1['type']==_0x77db32&&_0x2775a1['subType']==_0x25c2c1),_0x31b7ac=_0x5cbbb7['findIndex'](({type:_0x270c9d,subType:_0xb9b6bc})=>_0x4cfd3f['type']==_0x270c9d&&_0x4cfd3f['subType']==_0xb9b6bc);if(_0x11fcf5<0x0||_0x31b7ac<0x0)return!0x1;const _0xc8dd29=_0x2775a1['getFirstRange'](),_0x5aaae7=_0x4cfd3f['getFirstRange']();if((0x0==_0x11fcf5||0x1==_0x11fcf5)&&0x2==_0x31b7ac&&_0xc8dd29['isIntersecting'](_0x5aaae7))return!0x0;if(0x2==_0x11fcf5&&0x3==_0x31b7ac){const _0x1f5c50=_0x37080c['_findSuggestions'](_0xc8dd29,'insertion')['filter'](({suggestion:_0x30fa28,meta:_0x2bd7f3})=>_0x2bd7f3['isOwn']&&'convertInlineImageToBlock'==_0x30fa28['subType']);if(_0x1f5c50['length']>0x1&&_0x5aaae7['end']['isEqual'](_0xc8dd29['start']))return!0x0;if(0x1==_0x1f5c50['length']&&(_0xc8dd29['start']['isEqual'](_0x5aaae7['end'])||_0xc8dd29['end']['isEqual'](_0x5aaae7['start'])))return!0x0;}if(0x3==_0x11fcf5&&0x3==_0x31b7ac&&_0xc8dd29['start']['isBefore'](_0x5aaae7['start'])){const _0x3481da=_0xc8dd29['end']['nodeAfter'],_0x3bd9b3=_0x5aaae7['start']['nodeBefore'];return _0x1844ad['isBlockImage'](_0x3481da)&&_0x3481da===_0x3bd9b3;}return!0x1;}function _0x3afbd8(_0x37036a,_0x311a84){return _0x3cc68e(_0x37036a,_0x311a84)?[_0x37036a,_0x311a84]:_0x3cc68e(_0x311a84,_0x37036a)?[_0x311a84,_0x37036a]:null;}_0x45f41f['plugins']['has']('ImageResize')&&(_0x37080c['enableDefaultAttributesIntegration']('resizeImage'),_0x37080c['registerBlockAttribute']('resizedWidth'),_0x37080c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x995392,'FORMAT_IMAGE_SIZE'))),_0x45f41f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x37080c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37080c['registerBlockAttribute']('alt')),_0x45f41f['plugins']['has']('PictureEditing')&&(_0x37080c['registerBlockAttribute']('sources'),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x15968d=>{if('attribute'!=_0x15968d['type'])return;const {data:_0x4a53fb}=_0x15968d;return _0x4a53fb&&'sources'==_0x4a53fb['key']?{'type':'format','content':''}:void 0x0;})),_0x45f41f['plugins']['has']('ImageSizeAttributes')&&(_0x37080c['registerBlockAttribute']('width'),_0x37080c['registerBlockAttribute']('height'),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x1928cd=>{if('attribute'!=_0x1928cd['type'])return;const {data:_0x2cfb19}=_0x1928cd;return!_0x2cfb19||'width'!=_0x2cfb19['key']&&'height'!=_0x2cfb19['key']?void 0x0:{'type':'format','content':''};})),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x29bf77=>{if(!!_0x5cbbb7['find'](({type:_0x1b3b8a,subType:_0x3e0a17})=>_0x29bf77['type']==_0x1b3b8a&&_0x29bf77['subType']==_0x3e0a17))return _0x29bf77['previous']?{}:void 0x0;}),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x348500=>{if('insertion'==_0x348500['type']||'deletion'==_0x348500['type']){const _0x16f8ec=_0x348500['getContainedElement']();if(_0x16f8ec&&_0x16f8ec['is']('element','caption'))return{'type':'insertion'==_0x348500['type']?'addObject':'removeObject','element':_0x16f8ec,'quantity':0x1};}}),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x50ca33=>'formatBlock'==_0x50ca33['type']&&'convertInlineImageToBlock'==_0x50ca33['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x50ca33['type']&&'convertBlockImageToInline'==_0x50ca33['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x37080c['descriptionFactory']['registerDescriptionCallback'](_0x2b02ca=>{if('attribute'!=_0x2b02ca['type'])return;const {data:_0x17721d}=_0x2b02ca;if(!_0x17721d||'alt'!=_0x17721d['key'])return;const _0x257f0c=_0x17721d['newValue'];return _0x257f0c?{'type':'format','content':c(_0x995392,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x257f0c+'\x22')}:{'type':'format','content':c(_0x995392,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x396925=this['editor'],_0x57c256=_0x396925['locale'];_0x396925['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x108250=>{if('formatBlock'!=_0x108250['type']&&'formatInline'!=_0x108250['type'])return;const {data:_0x1437c7}=_0x108250;if(_0x1437c7){if('imageTextAlternative'==_0x1437c7['commandName']){const _0x33c989=_0x1437c7['commandParams'][0x0]['newValue'];return _0x33c989?{'type':'format','content':c(_0x57c256,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33c989+'\x22')}:{'type':'format','content':c(_0x57c256,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1437c7['commandName']){const _0x4191b6=_0x1437c7['commandParams'][0x0]['width'];return _0x4191b6?{'type':'format','content':c(_0x57c256,'*Set\x20image\x20width:*\x20%0',_0x4191b6)}:{'type':'format','content':c(_0x57c256,'*Reset\x20image\x20width*')};}}});}}class at extends _0x25b00c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23f541=this['editor']['locale'],_0x2009c7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2009c7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2009c7['registerBlockAttribute']('src'),_0x2009c7['descriptionFactory']['registerDescriptionCallback'](_0x319f18=>{if('attribute'!=_0x319f18['type'])return;const {data:_0x2d5071}=_0x319f18;return _0x2d5071&&'src'==_0x2d5071['key']?_0x2d5071['newValue']&&_0x2d5071['oldValue']?{'type':'format','content':c(_0x23f541,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20a6de=this['editor']['plugins']['get']('TrackChangesEditing');_0x20a6de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20a6de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20a6de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20a6de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a1b32=this['editor'],_0x370af=_0x2a1b32['locale'];_0x2a1b32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323297=>{if('formatBlock'!=_0x323297['type']&&'formatInline'!=_0x323297['type'])return;const {data:_0x3e6700}=_0x323297;if(!_0x3e6700||'replaceImageSource'!=_0x3e6700['commandName'])return;return{'type':'format','content':c(_0x370af,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x25b00c{['afterInit'](){const _0xe418d0=this['editor'];if(!_0xe418d0['plugins']['has']('ImageStyleEditing'))return;const _0x2a434b=_0xe418d0['plugins']['get']('TrackChangesEditing'),_0x2a5cc9=_0xe418d0['plugins']['get']('ImageUtils'),_0x453873={};_0x2a434b['enableCommand']('imageStyle',(_0x56f4f3,_0x5a6a9e)=>{const _0xa3cdc7=_0xe418d0['plugins']['get']('Users')['me'],_0x48f2da=_0xe418d0['commands']['get']('imageStyle');let _0x5bcbd4=_0x2a5cc9['getClosestSelectedImageElement'](_0xe418d0['model']['document']['selection']),_0x26f9bb=_0xe418d0['model']['createRangeOn'](_0x5bcbd4),_0x19ad0a=_0x48f2da['value'];if(_0x19ad0a==_0x5a6a9e['value'])return;const _0x3975c2={'commandName':'imageStyle','commandParams':[_0x5a6a9e],'formatGroupId':_0x1c5a5c()};_0xe418d0['model']['change'](()=>{if(_0x2a434b['getSuggestions']()['filter'](_0x1a6cc9=>_0x1a6cc9['isInContent']&&_0xa3cdc7==_0x1a6cc9['author']&&('formatBlock'==_0x1a6cc9['type']||'formatInline'==_0x1a6cc9['type'])&&('imageStylePreApply'==_0x1a6cc9['subType']||'imageStylePostApply'==_0x1a6cc9['subType'])&&_0x1a6cc9['getFirstRange']()['isEqual'](_0x26f9bb))['forEach'](_0x1d4d78=>_0x2a434b['discardSuggestion'](_0x1d4d78['head'])),_0x5bcbd4=_0x2a5cc9['getClosestSelectedImageElement'](_0xe418d0['model']['document']['selection']),_0x26f9bb=_0xe418d0['model']['createRangeOn'](_0x5bcbd4),_0x48f2da['refresh'](),_0xe418d0['commands']['get']('imageTypeInline')['refresh'](),_0xe418d0['commands']['get']('imageTypeBlock')['refresh'](),_0x19ad0a=_0x48f2da['value'],_0x19ad0a!=_0x5a6a9e['value'])return _0x2a5cc9['isInlineImage'](_0x5bcbd4)&&_0x48f2da['shouldConvertImageType'](_0x5a6a9e['value'],_0x5bcbd4)?(_0x56f4f3({..._0x5a6a9e,'setImageSizes':!0x1}),_0x5bcbd4=_0x2a5cc9['getClosestSelectedImageElement'](_0xe418d0['model']['document']['selection']),void _0x2a434b['markBlockFormat'](_0x5bcbd4,{..._0x3975c2,'commandReversedParams':[{'value':_0x19ad0a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2a5cc9['isBlockImage'](_0x5bcbd4)?_0x2a434b['markBlockFormat'](_0x5bcbd4,_0x3975c2,[],'imageStylePostApply'):_0x2a434b['markInlineFormat'](_0x26f9bb,_0x3975c2,'imageStylePostApply'));});});for(const _0x27d8a3 of _0xe418d0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x453873[_0x27d8a3['name']]=_0x27d8a3['title']['toLowerCase']();_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3d144a])=>{_0x2a5cc9['setImageNaturalSizeAttributes'](_0x3d144a['getContainedElement']());}),_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x7480d8,_0x29daf3)=>{_0x2a434b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x7480d8,{'commandName':_0x29daf3['commandName'],'commandParams':_0x29daf3['commandReversedParams']});}),_0x2a434b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b0909,_0x493aa2){if(_0x4055c2(_0x4b0909,_0x493aa2))return[_0x4b0909,_0x493aa2];if(_0x4055c2(_0x493aa2,_0x4b0909))return[_0x493aa2,_0x4b0909];return null;});const _0x2ffd59=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4055c2(_0x544820,_0x14f051){const _0x36b6f5=_0x2ffd59['findIndex'](({type:_0x2f3fff,subType:_0x59545a})=>_0x544820['type']==_0x2f3fff&&_0x544820['subType']==_0x59545a),_0x50229b=_0x2ffd59['findIndex'](({type:_0x49b173,subType:_0x3f6daa})=>_0x14f051['type']==_0x49b173&&_0x14f051['subType']==_0x3f6daa);if(_0x36b6f5<0x0||_0x50229b<0x0)return!0x1;const _0x278d5c=_0x544820['getFirstRange'](),_0x5764ed=_0x14f051['getFirstRange']();if((0x0==_0x36b6f5||0x1==_0x36b6f5)&&0x2==_0x50229b&&_0x278d5c['isIntersecting'](_0x5764ed))return!0x0;if(0x2==_0x36b6f5&&0x3==_0x50229b){const _0x176fd4=_0x2a434b['_findSuggestions'](_0x278d5c,'insertion')['filter'](({suggestion:_0x469da2,meta:_0x4dcdcb})=>_0x4dcdcb['isOwn']&&'convertInlineImageToBlock'==_0x469da2['subType']);if(_0x176fd4['length']>0x1&&_0x5764ed['end']['isEqual'](_0x278d5c['start']))return!0x0;if(0x1==_0x176fd4['length']&&(_0x278d5c['start']['isEqual'](_0x5764ed['end'])||_0x278d5c['end']['isEqual'](_0x5764ed['start'])))return!0x0;}if(0x3==_0x36b6f5&&0x3==_0x50229b&&_0x278d5c['start']['isBefore'](_0x5764ed['start'])){const _0x33fdf1=_0x278d5c['end']['nodeAfter'],_0x4d09d2=_0x5764ed['start']['nodeBefore'];return _0x2a5cc9['isBlockImage'](_0x33fdf1)&&_0x33fdf1===_0x4d09d2;}return!0x1;}_0xe418d0['model']['document']['registerPostFixer'](()=>{let _0x54a38a=!0x1;const _0x1444b8=Array['from'](_0xe418d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x559635,data:_0x4ac497}of _0x1444b8){const {group:_0x19916f,type:_0x36ce23,subType:_0x2c9941,id:_0x3b200d}=_0x2a434b['_splitMarkerName'](_0x559635);if('suggestion'==_0x19916f&&_0x2a434b['hasSuggestion'](_0x3b200d)){if('formatBlock'==_0x36ce23&&('imageStylePreApply'==_0x2c9941||'imageStylePostApply'==_0x2c9941)){const _0x130c78=_0x2a434b['getSuggestion'](_0x3b200d);if(_0x4ac497['newRange']){const _0x3f7984=_0x130c78['getFirstRange']()['getContainedElement']();if(_0x2a5cc9['isBlockImage'](_0x3f7984))continue;_0x2a434b['discardSuggestion'](_0x130c78),_0x54a38a=!0x0;}}if('insertion'==_0x36ce23&&'imageCaption'==_0x2c9941&&!_0x4ac497['newRange']){const _0x468806=_0x2a434b['getSuggestion'](_0x3b200d);_0x468806['next']&&_0x468806['next']['isInContent']&&(_0x2a434b['discardSuggestion'](_0x468806['next']),_0x54a38a=!0x0);}}}return _0x54a38a;}),this['_registerLegacyDescription'](_0x453873);}['_registerLegacyDescription'](_0x215106){const _0x423674=this['editor'],_0x168684=_0x423674['locale'];_0x423674['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36fabe=>{if('formatBlock'!=_0x36fabe['type']&&'formatInline'!=_0x36fabe['type'])return;const {data:_0x13169d}=_0x36fabe;if(!_0x13169d||'imageStyle'!=_0x13169d['commandName'])return;const _0x1402ba=_0x13169d['commandParams'][0x0]['value'];return _0x2a3f3d('side'===_0x1402ba?c(_0x168684,'FORMAT_SIDE_IMAGE'):_0x215106[_0x1402ba]||_0x1402ba);function _0x2a3f3d(_0x5242da){return{'type':'format','content':c(_0x168684,'*Format:*\x20%0',_0x5242da)};}});}}class ut extends _0x25b00c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x89b5b5){super(_0x89b5b5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x21f960=this['editor'],_0x4556e6=_0x21f960['commands']['get']('importWord'),_0x6dd7f1=_0x21f960['commands']['get']('trackChanges');_0x4556e6&&(_0x4556e6['on']('execute',(_0x14d2a8,[,_0x3d90e8])=>{this['_trackChangesValueDuringImport']=_0x6dd7f1['value'],_0x3d90e8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4556e6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4556e6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x6dd7f1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x21f960['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x464756,_0xfbb3ac){const {suggestions:_0x2fb710}=_0xfbb3ac,_0x57d4bf=this['editor']['commands']['get']('trackChanges'),_0x2dd297=_0x57d4bf['value'];this['_trackChangesValueDuringImport']!==_0x2dd297&&(_0x57d4bf['execute'](),this['_trackChangesExecuted']=!0x0),_0x2fb710&&_0x2fb710['forEach'](({id:_0x1f0e99,type:_0x124120,author:_0x4353f0,created_at:_0x499f22})=>{const _0x2c548d={'id':_0x1f0e99,'type':_0x124120,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4353f0,'createdAt':_0x499f22?new Date(_0x499f22):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c548d);});}}class ft extends _0x25b00c{['afterInit'](){const _0x1b763a=this['editor'],_0x1d2085=_0x1b763a['plugins']['get']('TrackChangesEditing');if(_0x1b763a['plugins']['has']('IndentEditing')&&(_0x1d2085['enableCommand']('indent'),_0x1d2085['enableCommand']('outdent')),_0x1b763a['plugins']['has']('IndentBlock')){for(const _0x2a08d5 of['indentBlock','outdentBlock'])_0x1d2085['enableDefaultAttributesIntegration'](_0x2a08d5);}const _0x394d7c=_0x1b763a['locale'];_0x1d2085['registerBlockAttribute']('blockIndent'),_0x1d2085['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x394d7c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262b5f=this['editor'],_0x20bc09=_0x262b5f['locale'],_0x1581f9=_0x262b5f['plugins']['get']('TrackChangesEditing');_0x1581f9['descriptionFactory']['registerDescriptionCallback'](_0x3f638d=>{if('formatBlock'!=_0x3f638d['type'])return;const {data:_0x41e64a}=_0x3f638d;if(!_0x41e64a)return;if('indentBlock'!=_0x41e64a['commandName']&&'outdentBlock'!=_0x41e64a['commandName'])return;const _0x5aa98e=_0x3f638d['getItems']()[0x0],_0x41b9b4=_0x1581f9['descriptionFactory']['getItemLabel'](_0x5aa98e);return'indentBlock'==_0x41e64a['commandName']?{'type':'format','content':c(_0x20bc09,'*Indent:*\x20%0',_0x41b9b4)}:'outdentBlock'==_0x41e64a['commandName']?{'type':'format','content':c(_0x20bc09,'*Outdent:*\x20%0',_0x41b9b4)}:void 0x0;});}}class ht extends _0x25b00c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x25b00c{['afterInit'](){const _0x45af65=this['editor'];if(!_0x45af65['plugins']['has']('LinkEditing'))return;const _0x30b192=_0x45af65['plugins']['get']('TrackChangesEditing'),_0x287c10=_0x45af65['commands']['get']('link');_0x30b192['enableDefaultAttributesIntegration']('link'),_0x30b192['enableDefaultAttributesIntegration']('unlink'),_0x30b192['registerInlineAttribute']('linkHref');for(const _0x47a9e0 of _0x287c10['manualDecorators'])_0x30b192['registerInlineAttribute'](_0x47a9e0['id']),_0x30b192['descriptionFactory']['registerAttributeLabel'](_0x47a9e0['id'],'link\x20('+_0x47a9e0['label']['toLowerCase']()+')');_0x30b192['descriptionFactory']['registerDescriptionCallback'](_0x5c2498=>{if('attribute'!=_0x5c2498['type'])return;const {data:_0x3b14d4}=_0x5c2498;if(!_0x3b14d4||'linkHref'!=_0x3b14d4['key'])return;const _0x5f2b6e=_0x3b14d4['newValue'],_0x32be42=_0x45af65['locale'];return{'type':'format','content':null==_0x5f2b6e?c(_0x32be42,'*Remove\x20link*'):c(_0x32be42,'*Set\x20link:*\x20%0','\x22'+_0x5f2b6e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24935b=this['editor'],_0x326578=_0x24935b['locale'];_0x24935b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee700=>{if('formatInline'!=_0x3ee700['type'])return;const {data:_0x4bf092}=_0x3ee700;if(_0x4bf092){if('link'==_0x4bf092['commandName']){const _0x441e3e=_0x4bf092['commandParams'][0x0];return{'type':'format','content':c(_0x326578,'*Set\x20link:*\x20%0','\x22'+_0x441e3e+'\x22')};}return'unlink'==_0x4bf092['commandName']?{'type':'format','content':c(_0x326578,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x25b00c{['afterInit'](){const _0x2bf0c7=this['editor'],_0xe2ae87=_0x2bf0c7['locale'];if(!_0x2bf0c7['plugins']['has']('LegacyListEditing'))return;const _0x2581ae=_0x2bf0c7['plugins']['get']('TrackChangesEditing'),_0x1e41ee=_0x2bf0c7['plugins']['has']('LegacyTodoListEditing');function _0x4ba3f3(_0x4e110a){return()=>{const _0x57388f=_0x2bf0c7['model']['document']['selection'],_0x1de72a=_0x2bf0c7['commands']['get'](_0x4e110a);if(_0x1de72a['value'])return void _0x2bf0c7['execute']('paragraph',{});const _0x43f618=_0x4e110a['slice'](0x0,-0x4),_0x7d8dab=function(_0x30efdd,_0x39dcdd,_0x254e85){let _0x547979=Array['from'](_0x30efdd)['filter'](_0x2c8923=>function(_0x51f00e,_0x20a032){return _0x20a032['checkChild'](_0x51f00e['parent'],'listItem')&&!_0x20a032['isObject'](_0x51f00e);}(_0x2c8923,_0x254e85));_0x547979=_0x547979['filter'](_0x422991=>!_0x422991['is']('element','listItem')||_0x422991['getAttribute']('listType')!=_0x39dcdd);const _0x78b957=new Set();for(const _0xbb5f8a of _0x547979)_0xbb5f8a['is']('element','listItem')?_0x78b957['add'](Le(_0xbb5f8a)):_0x78b957['add'](_0xbb5f8a);return Array['from'](_0x78b957);}(_0x57388f['getSelectedBlocks'](),_0x43f618,_0x2bf0c7['model']['schema']);_0x2bf0c7['model']['change'](()=>{for(const _0x3d893d of _0x7d8dab)_0x2581ae['markBlockFormat'](_0x3d893d,{'commandName':_0x4e110a,'commandParams':[{'forceValue':!_0x1de72a['value']}],'formatGroupId':'blockName'},Ee(_0x3d893d));});};}function _0x29f0c0(_0x5ccc52){return()=>{const _0x58c192=function(_0x3cef8f){let _0x2bdce8=Array['from'](_0x3cef8f);const _0x524e4c=_0x2bdce8['findIndex'](_0x4faa4c=>'listItem'!=_0x4faa4c['name']);return _0x524e4c>-0x1&&(_0x2bdce8=_0x2bdce8['slice'](0x0,_0x524e4c)),_0x2bdce8;}(_0x2bf0c7['model']['document']['selection']['getSelectedBlocks']()),_0x5cc65d=_0x2bf0c7['model']['createRange'](_0x2bf0c7['model']['createPositionAt'](_0x58c192[0x0],'before'),_0x2bf0c7['model']['createPositionAt'](_0x58c192[_0x58c192['length']-0x1],'end'));_0x2bf0c7['model']['change'](()=>{_0x2581ae['markBlockFormat'](_0x5cc65d,{'commandName':_0x5ccc52,'commandParams':[],'formatGroupId':'listIndent'},function(_0x547529){const _0x57daa1=new Set();for(const _0x26bf52 of _0x547529){let _0x2de04f=_0x26bf52['nextSibling'];for(;_0x2de04f&&_0x2de04f['getAttribute']('listIndent')>_0x26bf52['getAttribute']('listIndent');)_0x57daa1['add'](_0x2de04f),_0x2de04f=_0x2de04f['nextSibling'];}return Array['from'](_0x57daa1);}(_0x58c192));});};}_0x2581ae['enableCommand']('numberedList',_0x4ba3f3('numberedList')),_0x2581ae['enableCommand']('bulletedList',_0x4ba3f3('bulletedList')),_0x1e41ee&&_0x2581ae['enableCommand']('todoList',_0x4ba3f3('todoList')),_0x2581ae['enableCommand']('indentList',_0x29f0c0('indentList')),_0x2581ae['enableCommand']('outdentList',_0x29f0c0('outdentList')),_0x1e41ee&&_0x2581ae['enableCommand']('checkTodoList',()=>{const _0x36af83=_0x2bf0c7['commands']['get']('checkTodoList'),_0x40776d=Array['from'](_0x36af83['_selectedElements']);_0x40776d['filter'](_0x4d26f8=>_0x4d26f8['getAttribute']('todoListChecked')!=_0x36af83['value']),_0x2bf0c7['model']['change'](()=>{for(const _0x23ec29 of _0x40776d)_0x2581ae['markBlockFormat'](_0x23ec29,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36af83['value']}]});});}),_0x2581ae['descriptionFactory']['registerElementLabel']('listItem',_0x206bb7=>c(_0xe2ae87,'ELEMENT_LIST_ITEM',_0x206bb7)),_0x2581ae['descriptionFactory']['registerDescriptionCallback'](_0x455dc2=>{if('formatBlock'!=_0x455dc2['type']&&'formatInline'!=_0x455dc2['type'])return;const {data:_0x20bd60}=_0x455dc2;if(_0x20bd60){if('numberedList'==_0x20bd60['commandName']||'bulletedList'==_0x20bd60['commandName']||'todoList'==_0x20bd60['commandName'])switch(_0x20bd60['commandName']['replace']('List','')){case'bulleted':return _0x292fef(c(_0xe2ae87,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x292fef(c(_0xe2ae87,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x292fef(c(_0xe2ae87,'ELEMENT_TODO_LIST'));}if('indentList'==_0x20bd60['commandName'])return{'type':'format','content':c(_0xe2ae87,'*Indent:*\x20%0',c(_0xe2ae87,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x20bd60['commandName'])return{'type':'format','content':c(_0xe2ae87,'*Outdent:*\x20%0',c(_0xe2ae87,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x20bd60['commandName'])return _0x20bd60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xe2ae87,'*Check\x20item*')}:{'type':'format','content':c(_0xe2ae87,'*Uncheck\x20item*')};}function _0x292fef(_0x2f60a7){return{'type':'format','content':c(_0xe2ae87,'*Change\x20to:*\x20%0',_0x2f60a7)};}});}}function Le(_0x1bac2a){const _0x1ed6bb=_0x1bac2a['getAttribute']('listIndent');if(0x0==_0x1ed6bb)return _0x1bac2a;let _0x505b4e=_0x1bac2a;for(;_0x1bac2a['previousSibling']&&_0x1bac2a['previousSibling']['is']('element','listItem');){const _0x149568=_0x1bac2a['previousSibling']['getAttribute']('listIndent');if(_0x149568==_0x1ed6bb)_0x505b4e=_0x1bac2a['previousSibling'];else{if(_0x149568<_0x1ed6bb)break;}_0x1bac2a=_0x1bac2a['previousSibling'];}return _0x505b4e;}function Ee(_0x5854e1){const _0x50dce5=[];if(_0x5854e1['is']('element','listItem')&&_0x5854e1['getAttribute']('listIndent')>0x0){let _0x41e4a1=_0x5854e1['nextSibling'];for(;_0x41e4a1&&'listItem'==_0x41e4a1['name']&&_0x41e4a1['getAttribute']('listIndent')==_0x5854e1['getAttribute']('listIndent');)_0x50dce5['push'](_0x41e4a1),_0x41e4a1=_0x41e4a1['nextSibling'];}return _0x50dce5;}class Q extends _0x25b00c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x35cecd=this['editor']['config']['get']('list.properties'),_0x537507=this['editor']['plugins']['get']('TrackChangesEditing');_0x35cecd['styles']&&_0x537507['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x35cecd['reversed']&&_0x537507['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x35cecd['startIndex']&&_0x537507['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x537507['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x31aae4,_0x3b5eb7={}){const _0x5817af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dc600=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5817af['markMultiRangeBlockFormat'](_0x1dc600,{'commandName':'listStyle','commandParams':[{'type':_0x3b5eb7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1719ec,_0x530880={}){const _0x1124bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c170e=this['_getSuggestionBlocks'](_0xecfb44=>_0xecfb44['is']('element','listItem')&&'numbered'===_0xecfb44['getAttribute']('listType'));if(_0x1c170e['length']<0x1)return;const _0x44f8f8=_0x1c170e['map'](_0x3c014b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c014b,'before'),this['editor']['model']['createPositionAt'](_0x3c014b,0x0)));this['editor']['model']['change'](()=>{_0x1124bc['markMultiRangeBlockFormat'](_0x44f8f8,{'commandName':'listReversed','commandParams':[{'reversed':_0x530880['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x490f3d,_0x4a6922={}){const _0x51c579=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21841c=this['_getSuggestionBlocks'](_0x56c392=>_0x56c392['is']('element','listItem')&&'numbered'===_0x56c392['getAttribute']('listType'));if(_0x21841c['length']<0x1)return;const _0x908d8a=_0x21841c['map'](_0x1f1554=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f1554,'before'),this['editor']['model']['createPositionAt'](_0x1f1554,0x0)));this['editor']['model']['change'](()=>{_0x51c579['markMultiRangeBlockFormat'](_0x908d8a,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a6922['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x573dd7){if('formatBlock'!=_0x573dd7['type']&&'formatInline'!=_0x573dd7['type'])return;const _0x31a5e6=this['editor']['locale'],{data:_0x4f624b}=_0x573dd7;if(!_0x4f624b)return;let _0x4b9bfe,_0x523daa;switch(_0x4f624b['commandName']){case'listStyle':_0x4b9bfe='*Change\x20to:*\x20%0',_0x523daa={'type':'format','content':c(_0x31a5e6,_0x4b9bfe,c(_0x31a5e6,this['_getTranslationKeyForListStyle'](_0x4f624b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b9bfe=_0x4f624b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x523daa={'type':'format','content':c(_0x31a5e6,_0x4b9bfe)};break;case'listStart':_0x4b9bfe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x523daa={'type':'format','content':c(_0x31a5e6,_0x4b9bfe,_0x4f624b['commandParams'][0x0]['startIndex'])};}return _0x523daa;}['_getSuggestionBlocksForListStyle'](){const _0x54ffaf=this['editor']['plugins']['get']('LegacyListUtils');let _0x151e76=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x151e76[0x0]?.['is']('element','listItem')&&_0x151e76['unshift'](..._0x54ffaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x151e76[_0x151e76['length']-0x1]?.['is']('element','listItem')&&_0x151e76['push'](..._0x54ffaf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x151e76=[...new Set(_0x151e76)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x151e76=_0x151e76['filter'](_0x3aa568=>_0x3aa568['is']('element','listItem'))),_0x151e76;}['_getSuggestionBlocks'](_0x19ed08){const _0x2d2784=this['editor']['plugins']['get']('LegacyListUtils');let _0x486402=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x19ed08)['map'](_0x1b6c00=>{const _0x352ea1=this['editor']['model']['createPositionAt'](_0x1b6c00,0x0);return[..._0x2d2784['getSiblingNodes'](_0x352ea1,'backward'),..._0x2d2784['getSiblingNodes'](_0x352ea1,'forward')];})['flat']();return _0x486402=[...new Set(_0x486402)],_0x486402;}['_getTranslationKeyForListStyle'](_0x454376){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x454376)||'default')['toUpperCase']()+'_LIST_'+_0x454376['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x25b00c{['afterInit'](){const _0x30564b=this['editor'];if(!_0x30564b['plugins']['has']('MediaEmbedEditing'))return;const _0x39af85=_0x30564b['plugins']['get']('TrackChangesEditing'),_0xbde2fb=_0x30564b['locale'];_0x39af85['enableCommand']('mediaEmbed'),_0x39af85['descriptionFactory']['registerElementLabel']('media',_0x302220=>c(_0xbde2fb,'ELEMENT_MEDIA',_0x302220)),_0x30564b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x347ed4,{writer:_0x2a1523,options:_0x3925a4})=>{if(_0x3925a4['showSuggestionHighlights'])return _0x2a1523['createEmptyElement']('div');},'converterPriority':'high'}),_0x30564b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x409023,_0x585a91,_0x24b4bf)=>{_0x24b4bf['options']['showSuggestionHighlights']&&_0x409023['stop']();},{'priority':'high'});}}class pt extends _0x25b00c{['afterInit'](){const _0x5ac94c=this['editor'];_0x5ac94c['plugins']['has']('MentionEditing')&&_0x5ac94c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x25b00c{['afterInit'](){const _0x32412f=this['editor'];if(!_0x32412f['plugins']['has']('MergeFieldsEditing'))return;const _0x4a7683=_0x32412f['plugins']['get']('TrackChangesEditing'),_0xa5d8cc=_0x32412f['locale'];_0x4a7683['enableCommand']('insertMergeField'),_0x4a7683['enableCommand']('insertMergeFieldBlock'),_0x4a7683['enableCommand']('insertMergeFieldImage'),_0x4a7683['descriptionFactory']['registerElementLabel']('mergeField',_0x812033=>c(_0xa5d8cc,'ELEMENT_MERGE_FIELD',_0x812033)),_0x4a7683['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3e2b43=>c(_0xa5d8cc,'ELEMENT_MERGE_FIELD',_0x3e2b43)),_0x4a7683['descriptionFactory']['registerDescriptionCallback'](_0x25997=>{if('insertion'!=_0x25997['type']&&'deletion'!=_0x25997['type'])return;const _0x4a2a3c=_0x25997['getContainedElement']();if(null==_0x4a2a3c)return;const _0x3e9f78=_0x32412f['plugins']['get']('MergeFieldsEditing');let _0x16ccb6;switch(_0x3e9f78['getMergeFieldType'](_0x4a2a3c)){case null:return;case'image':{const _0x595ec2=_0x3e9f78['unwrapAffixes'](_0x4a2a3c['getAttribute']('src'));_0x16ccb6=_0x3e9f78['getLabel'](_0x595ec2)||_0x595ec2;break;}default:{const _0x49e20e=_0x4a2a3c['getAttribute']('id');_0x16ccb6=_0x3e9f78['getLabel'](_0x49e20e)||_0x49e20e;break;}}return'insertion'==_0x25997['type']?{'type':'insertion','content':c(_0xa5d8cc,'*Insert:*\x20%0','\x22'+_0x16ccb6+'\x22\x20'+c(_0xa5d8cc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xa5d8cc,'*Remove:*\x20%0','\x22'+_0x16ccb6+'\x22\x20'+c(_0xa5d8cc,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x25b00c{['afterInit'](){const _0x2c6459=this['editor'],_0x24287a=_0x2c6459['plugins']['get']('TrackChangesEditing');_0x2c6459['plugins']['has']('MultiLevelList')&&(_0x24287a['enableDefaultAttributesIntegration']('multiLevelList'),_0x24287a['registerBlockAttribute']('listMarkerStyle'),_0x24287a['descriptionFactory']['registerDescriptionCallback'](_0x41c5bc=>this['handleDescriptions'](_0x41c5bc)));}['handleDescriptions'](_0x36e403){const _0x5645f9=this['editor']['locale'],{data:_0x397c16}=_0x36e403,_0x99d922={'type':'format','content':''};if(_0x397c16&&'listMarkerStyle'==_0x397c16['key']){if(!_0x397c16['oldValue'])return{'type':'format','content':c(_0x5645f9,'*Set\x20format:*\x20%0',c(_0x5645f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x397c16['newValue']+')'};if(!_0x397c16['newValue']){let _0x589154=_0x36e403['head'];for(;_0x589154;){if(_0x589154['data']&&'listType'==_0x589154['data']['key']&&_0x589154['data']['newValue'])return _0x99d922;_0x589154=_0x589154['next'];}return{'type':'format','content':c(_0x5645f9,'*Remove\x20format:*\x20%0',c(_0x5645f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x397c16['oldValue']+')'};}}}}class bt extends _0x25b00c{['afterInit'](){const _0x167304=this['editor'];if(!_0x167304['plugins']['has']('PageBreakEditing'))return;_0x167304['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x227f74=_0x167304['plugins']['get']('TrackChangesEditing'),_0xafb87d=_0x167304['locale'];_0x227f74['descriptionFactory']['registerElementLabel']('pageBreak',_0x2f56e9=>c(_0xafb87d,'ELEMENT_PAGE_BREAK',_0x2f56e9));}}class yt extends _0x25b00c{['afterInit'](){const _0x4de1b1=this['editor'];if(!_0x4de1b1['plugins']['has']('Paragraph'))return;const _0x528a4a=_0x4de1b1['locale'],_0x503ac9=_0x4de1b1['plugins']['get']('TrackChangesEditing');_0x503ac9['descriptionFactory']['registerElementLabel']('paragraph',_0xdeca3=>c(_0x528a4a,'ELEMENT_PARAGRAPH',_0xdeca3)),_0x503ac9['enableDefaultAttributesIntegration']('paragraph'),_0x503ac9['enableCommand']('insertParagraph'),_0x4de1b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4de1b1),{'priority':'highest'}),_0x4de1b1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x174b8b,_0x202dbd,_0x4f1ea8)=>{_0x4f1ea8['options']['showSuggestionHighlights']&&nr(_0x4de1b1,{'showActiveMarker':!0x1})(_0x174b8b,_0x202dbd,_0x4f1ea8);},{'priority':'highest'});const _0x568147=_0x503ac9['descriptionFactory'];_0x568147['registerDescriptionCallback'](_0x37a2ed=>{if('insertion'!==_0x37a2ed['type'])return;const {start:_0xdc28eb,end:_0x1072c9}=_0x37a2ed['getFirstRange']();if(!_0xdc28eb['isTouching'](_0x1072c9)||!_0xdc28eb['nodeAfter'])return;const _0x47b842=_0x4de1b1['model']['schema'],_0x47c1f1=_0xdc28eb['nodeAfter'];return _0x47b842['isBlock'](_0x47c1f1)&&!_0x47b842['isLimit'](_0x47c1f1)&&_0x47b842['checkChild'](_0x47c1f1,'$text')?{'type':'insertion','content':c(_0x528a4a,'*Insert:*\x20%0',_0x568147['getItemLabel'](_0x47c1f1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50234c=this['editor'],_0x2d1faa=_0x50234c['locale'];_0x50234c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e124b=>{if('formatBlock'!=_0x1e124b['type'])return;const {data:_0x91454b}=_0x1e124b;return _0x91454b&&'paragraph'==_0x91454b['commandName']?{'type':'format','content':c(_0x2d1faa,'*Change\x20to:*\x20%0',c(_0x2d1faa,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x556b0e,{showActiveMarker:_0x51203e=!0x0}={}){return(_0x1d0fee,_0x3e4bac,_0x2ea4c3)=>{const _0x213e50=_0x556b0e['plugins']['get']('TrackChangesEditing'),_0x2519fd=_0x3e4bac['markerRange']['start'],_0x7605f2=_0x3e4bac['markerRange']['end'],_0x34baab=_0x556b0e['model']['schema'];if(!_0x2519fd['isTouching'](_0x7605f2)||!_0x2519fd['nodeAfter'])return;const _0x445b00=_0x2519fd['nodeAfter'];if(_0x34baab['isBlock'](_0x445b00)&&!_0x34baab['isLimit'](_0x445b00)&&_0x34baab['checkChild'](_0x445b00,'$text')){if(!_0x2ea4c3['consumable']['consume'](_0x3e4bac['markerRange'],_0x1d0fee['name']))return;const {authorId:_0x340e0c}=_0x213e50['_splitMarkerName'](_0x3e4bac['markerName']),_0x3a9353=_0x2ea4c3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x340e0c}),_0x181c8b=_0x2ea4c3['mapper']['toViewPosition'](_0x7605f2);_0x51203e&&_0x213e50['activeMarkers']['includes'](_0x3e4bac['markerName'])&&_0x2ea4c3['writer']['addClass']('ck-suggestion-marker--active',_0x3a9353),_0x2ea4c3['writer']['insert'](_0x181c8b,_0x3a9353),_0x2ea4c3['mapper']['bindElementToMarker'](_0x3a9353,_0x3e4bac['markerName']);}};}class jt extends _0x25b00c{['afterInit'](){const _0x57bb82=this['editor'];_0x57bb82['commands']['get']('replaceSource')&&_0x57bb82['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x25b00c{['afterInit'](){const _0x8a9681=this['editor'];if(!_0x8a9681['plugins']['has']('RemoveFormatEditing'))return;_0x8a9681['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed122=this['editor'];_0x3ed122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf660a0=>{if('formatBlock'!=_0xf660a0['type']&&'formatInline'!=_0xf660a0['type'])return;const {data:_0x5df217}=_0xf660a0;return _0x5df217&&'removeFormat'==_0x5df217['commandName']?{'type':'format','content':c(_0x3ed122['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x25b00c{['afterInit'](){const _0x14c030=this['editor'];if(!_0x14c030['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x597386=_0x14c030['plugins']['get']('TrackChangesEditing');_0x597386['enableCommand']('goToPreviousRestrictedEditingException'),_0x597386['enableCommand']('goToNextRestrictedEditingException');const _0x56782f=_0x14c030['plugins']['get']('RestrictedEditingModeEditing');_0x56782f['enableCommand']('trackChanges'),_0x56782f['enableCommand']('acceptSuggestion'),_0x56782f['enableCommand']('discardSuggestion'),_0x56782f['enableCommand']('acceptAllSuggestions'),_0x56782f['enableCommand']('discardAllSuggestions'),_0x56782f['enableCommand']('acceptSelectedSuggestions'),_0x56782f['enableCommand']('discardSelectedSuggestions');}}class It extends _0x25b00c{static get['requires'](){return[_0x35008a];}['init'](){const _0x458078=this['editor'],_0x4aae75=_0x458078['plugins']['get']('TrackChangesEditing');_0x4aae75['enableCommand']('shiftEnter'),_0x458078['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x458078),{'priority':'high'}),_0x458078['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x458078),{'priority':'high'}),_0x458078['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5555c5,_0x2f80ae,_0x4136b9)=>{_0x4136b9['options']['showSuggestionHighlights']&&je(_0x458078,{'showActiveMarker':!0x1})(_0x5555c5,_0x2f80ae,_0x4136b9);}),_0x4aae75['descriptionFactory']['registerElementLabel']('softBreak',_0x354be7=>c(_0x458078['locale'],'ELEMENT_LINE_BREAK',_0x354be7));}}function je(_0x2064cb,{showActiveMarker:_0x41d229=!0x0}={}){return(_0x40aaf9,_0x1d9b2a,_0x11e89f)=>{const _0x264c18=_0x2064cb['plugins']['get']('TrackChangesEditing');if(!_0x11e89f['consumable']['test'](_0x1d9b2a['markerRange'],_0x40aaf9['name']))return;const _0x31b134=_0x2064cb['model'];for(const _0x199176 of _0x1d9b2a['markerRange']['getItems']()){if(!_0x199176['is']('element','softBreak'))continue;const _0x50fb07='deletion'==_0x1d9b2a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x11e3f3}=_0x264c18['_splitMarkerName'](_0x1d9b2a['markerName']),_0x2870ae=_0x11e89f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50fb07,'data-author-id':_0x11e3f3}),_0x47fa4a=_0x11e89f['mapper']['toViewPosition'](_0x31b134['createPositionBefore'](_0x199176));_0x41d229&&_0x264c18['activeMarkers']['includes'](_0x1d9b2a['markerName'])&&_0x11e89f['writer']['addClass']('ck-suggestion-marker--active',_0x2870ae),_0x11e89f['writer']['insert'](_0x47fa4a,_0x2870ae),_0x11e89f['mapper']['bindElementToMarker'](_0x2870ae,_0x1d9b2a['markerName']);}};}class _t extends _0x25b00c{['afterInit'](){const _0x31cc9c=this['editor'],_0x49c07f=_0x31cc9c['model'],_0x57c79d=_0x31cc9c['locale'];if(!_0x31cc9c['plugins']['has']('StandardEditingModeEditing'))return;const _0x355fc6=_0x31cc9c['plugins']['get']('TrackChangesEditing'),_0x1ac325='restrictedEditingException',_0xc91665=_0x31cc9c['commands']['get'](_0x1ac325);_0x355fc6['enableCommand'](_0x1ac325,(_0x433071,_0xb69872={})=>{const _0x73e04f=_0x49c07f['document']['selection'];if(_0x73e04f['isCollapsed'])return void _0x433071(_0xb69872);const _0x3264eb=void 0x0!==_0xb69872['forceValue']?_0xb69872['forceValue']:!_0xc91665['value'];_0x49c07f['change'](()=>{const _0x102fc2=Array['from'](_0x73e04f['getRanges']());for(const _0x2ed9e1 of _0x102fc2){const _0x2f3fe2=_0x3264eb?[_0x2ed9e1]:io(_0x1ac325,_0x2ed9e1,_0x49c07f);for(const _0x1ed899 of _0x2f3fe2)_0x355fc6['markInlineFormat'](_0x1ed899,{'commandName':_0x1ac325,'commandParams':[{'forceValue':_0x3264eb}]});}});}),_0x355fc6['descriptionFactory']['registerDescriptionCallback'](_0x519c16=>{if('formatBlock'!=_0x519c16['type']&&'formatInline'!=_0x519c16['type'])return;const {data:_0x22e4ec}=_0x519c16;return _0x22e4ec&&_0x22e4ec['commandName']==_0x1ac325?_0x22e4ec['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x57c79d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x57c79d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x25b00c{['afterInit'](){const _0x26a870=this['editor'];if(!_0x26a870['plugins']['has']('Style')||!_0x26a870['plugins']['has']('DataSchema'))return;const _0x43904c=_0x26a870['plugins']['get']('TrackChangesEditing'),_0x3e3fbd=_0x26a870['locale'],_0x265b73=_0x26a870['config']['get']('style')||{},_0x5eb870=_0x26a870['plugins']['get']('GeneralHtmlSupport'),_0x59fc45=_0x26a870['plugins']['get']('StyleUtils')['normalizeConfig'](_0x26a870['plugins']['get']('DataSchema'),_0x265b73['definitions']);_0x43904c['enableDefaultAttributesIntegration']('style');const _0x4f7994=new Set();for(const _0x1880e9 of _0x59fc45['block']){const _0x1befb6=_0x5eb870['getGhsAttributeNameForElement'](_0x1880e9['element']);_0x4f7994['add'](_0x1befb6);}const _0x483eca=new Set();for(const _0x342e8b of _0x59fc45['inline']){const _0x3e2d95=_0x5eb870['getGhsAttributeNameForElement'](_0x342e8b['element']);_0x483eca['add'](_0x3e2d95);for(const _0x2019a0 of _0x342e8b['ghsAttributes'])_0x483eca['add'](_0x2019a0);}for(const _0x2731af of _0x4f7994)_0x43904c['registerBlockAttribute'](_0x2731af),_0x43904c['descriptionFactory']['registerAttributeLabel'](_0x2731af,c(_0x3e3fbd,'FORMAT_STYLE'));for(const _0x344fba of _0x483eca)_0x43904c['registerInlineAttribute'](_0x344fba),_0x43904c['descriptionFactory']['registerAttributeLabel'](_0x344fba,c(_0x3e3fbd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b7fe4=this['editor'],_0x3bcb4e=_0x4b7fe4['locale'];_0x4b7fe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x552028=>{if('formatBlock'!=_0x552028['type']&&'formatInline'!=_0x552028['type'])return;const {data:_0x35b140}=_0x552028;return _0x35b140&&'style'===_0x35b140['commandName']?_0x35b140['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3bcb4e,'*Set\x20format:*\x20%0',_0x35b140['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3bcb4e,'*Remove\x20format:*\x20%0',_0x35b140['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x25b00c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49460e){super(_0x49460e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x39f7d6=this['editor'],_0x3471bb=_0x39f7d6['model']['document']['selection'];if(!_0x39f7d6['plugins']['has']('TableEditing'))return;const _0x5a8d3f=_0x39f7d6['locale'],_0x42a7db=_0x39f7d6['plugins']['get']('TrackChangesEditing'),_0xa37702=_0x39f7d6['plugins']['get']('TableUtils');_0x42a7db['descriptionFactory']['registerElementLabel']('table',_0x548366=>c(_0x5a8d3f,'ELEMENT_TABLE',_0x548366)),this['_setupColumnsRowsFixing'](),_0x42a7db['enableCommand']('insertTable'),_0x42a7db['enableCommand']('selectTableRow'),_0x42a7db['enableCommand']('selectTableColumn');for(const _0x20e343 of['insertTableRowAbove','insertTableRowBelow']){const _0xbe980c=_0x39f7d6['commands']['get'](_0x20e343);_0x42a7db['enableCommand'](_0x20e343,_0x499ea4=>{_0x39f7d6['model']['change'](_0x49942a=>{_0x499ea4();const _0x9cc094='above'===_0xbe980c['order'],_0x2d4a39=_0xa37702['getSelectionAffectedTableCells'](_0x3471bb),_0x53a37b=_0xa37702['getRowIndexes'](_0x2d4a39),_0x284036=_0x9cc094?_0x53a37b['first']-0x1:_0x53a37b['last']+0x1,_0x486fe1=_0x2d4a39[0x0]['findAncestor']('table'),_0x596217=_0xa37702['createTableWalker'](_0x486fe1,{'startRow':_0x284036,'endRow':_0x284036}),_0x3f5319=Array['from'](_0x596217)['map'](_0x3e16d9=>_0x49942a['createRangeOn'](_0x3e16d9['cell']));_0x42a7db['markMultiRangeInsertion'](_0x3f5319,'tableRow');});});}for(const _0x5e03d1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x46b506=_0x39f7d6['commands']['get'](_0x5e03d1);_0x42a7db['enableCommand'](_0x5e03d1,_0x52456f=>{_0x39f7d6['model']['change'](_0x427106=>{_0x52456f();const _0x781607='left'===_0x46b506['order'],_0x2be181=_0xa37702['getSelectionAffectedTableCells'](_0x3471bb),_0x551f91=_0xa37702['getColumnIndexes'](_0x2be181),_0x14f7b6=_0x781607?_0x551f91['first']-0x1:_0x551f91['last']+0x1,_0x12bfb5=_0x2be181[0x0]['findAncestor']('table'),_0x2b4e12=_0xa37702['createTableWalker'](_0x12bfb5,{'startRow':0x0,'column':_0x14f7b6,'includeAllSlots':!0x1}),_0x14fc47=Array['from'](_0x2b4e12)['map'](_0xf9ef70=>_0x427106['createRangeOn'](_0xf9ef70['cell']));_0x42a7db['markMultiRangeInsertion'](_0x14fc47,'tableColumn');});});}for(const _0x430dee of['removeTableRow','removeTableColumn']){const _0x23f44b=_0x430dee['substr'](0xb),_0x1fa158=_0x23f44b['toLowerCase'](),_0x267b6c=_0x1fa158['substr'](0x0,0x3)+'span',_0x43b9b7='table'+_0x23f44b,_0x39ed54='min'+_0x23f44b,_0x1aa0ff='max'+_0x23f44b;_0x42a7db['enableCommand'](_0x430dee,()=>{_0x39f7d6['model']['change'](_0x319a35=>{const _0x500ca0=_0xa37702['getSelectionAffectedTableCells'](_0x3471bb),_0x5ca063=_0x500ca0[0x0]['findAncestor']('table');let _0x123ad8;if('removeTableRow'==_0x430dee){const _0x15e234=_0xa37702['getRowIndexes'](_0x500ca0);_0x123ad8={'startRow':_0x15e234['first'],'endRow':_0x15e234['last'],'includeAllSlots':!0x0};}else{const _0x748fab=_0xa37702['getColumnIndexes'](_0x500ca0);_0x123ad8={'startColumn':_0x748fab['first'],'endColumn':_0x748fab['last'],'includeAllSlots':!0x0};}const _0x35dad9=_0xa37702['createTableWalker'](_0x5ca063,_0x123ad8),_0x4a95e4=Array['from'](_0x35dad9)['map'](({cell:_0x323a12})=>_0x323a12),_0x134773=Ne(_0x4a95e4['filter'](_0x51a1ec=>_0x51a1ec['hasAttribute'](_0x267b6c))),_0x29d03e=Ne(_0x4a95e4['filter'](_0x23f1d5=>!_0x23f1d5['hasAttribute'](_0x267b6c)))['map'](_0x21eb2d=>_0x319a35['createRangeOn'](_0x21eb2d)),_0x389b78=_0x42a7db['markMultiRangeDeletion'](_0x29d03e,_0x43b9b7);if(_0x389b78&&('tableRow'==_0x389b78['subType']||'tableColumn'==_0x389b78['subType'])){const _0x215c90=this['_getSuggestionCoords'](_0x389b78);for(const _0x3a6678 of _0x134773){const _0x646243=_0x319a35['createRangeOn'](_0x3a6678),_0x4397fc=_0xa37702['getCellLocation'](_0x3a6678),_0x38a6b6=_0x3a6678['getAttribute'](_0x267b6c)-0x1,_0x14b828=_0x215c90[_0x39ed54],_0x27e319=_0x215c90[_0x1aa0ff];_0x14b828<=_0x4397fc[_0x1fa158]&&_0x4397fc[_0x1fa158]+_0x38a6b6<=_0x27e319&&_0x389b78['addRange'](_0x646243);}}});});}function _0x39114e(_0x32fadd){const _0x4877d7=Array['from'](_0x3471bb['getRanges']())['map'](_0x32a8db=>_0x4fb766['fromRange'](_0x32a8db));_0x39f7d6['model']['change'](_0x494e1a=>{const _0x17c3eb=_0x494e1a['batch'];_0x32fadd=_0x32fadd['filter'](_0x1cddf3=>'$graveyard'!=_0x1cddf3['root']['rootName']),_0x494e1a['setSelection'](_0x32fadd),_0x39f7d6['commands']['get']('removeTableRow')['refresh'](),_0x39f7d6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x39f7d6['model']['enqueueChange'](()=>{_0x39f7d6['model']['enqueueChange'](_0x17c3eb,_0x42a2c2=>{const _0x3047c8=_0x4877d7['filter'](_0x408ec6=>'$graveyard'!=_0x408ec6['root']['rootName']);_0x3047c8['length']>0x0&&_0x42a2c2['setSelection'](_0x3047c8);for(const _0x5e70e3 of _0x4877d7)_0x5e70e3['detach']();});});});}function _0xac0d39(_0x23b2b5){_0x39f7d6['model']['change'](_0x280a0d=>{const _0x2136f5=Array['from'](_0x3471bb['getRanges']())['map'](_0x35db4b=>_0x4fb766['fromRange'](_0x35db4b)),_0x21f4e3=[];for(const _0x5c3353 of _0x23b2b5)for(const _0x19ad1f of _0x5c3353['getItems']({'shallow':!0x0}))_0x21f4e3['push'](_0x19ad1f);for(const _0x17a358 of _0x21f4e3)'$graveyard'!=_0x17a358['root']['rootName']&&(_0x280a0d['setSelection'](_0x280a0d['createPositionAt'](_0x17a358,0x0)),_0x39f7d6['commands']['get']('removeTableColumn')['refresh'](),_0x39f7d6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59072e=_0x2136f5['filter'](_0x1075a7=>'$graveyard'!=_0x1075a7['root']['rootName']);_0x59072e['length']>0x0&&_0x280a0d['setSelection'](_0x59072e);for(const _0x46143c of _0x2136f5)_0x46143c['detach']();});}function _0x5b40ac(_0xbfe387,_0x2fbbc2){return _0x2fbbc2['every'](_0x2b26d6=>_0xbfe387['some'](_0x4272b0=>_0x4272b0['end']['isEqual'](_0x2b26d6['start'])||_0x2b26d6['end']['isEqual'](_0x4272b0['start'])));}function _0x835ba2(_0x15fee4,_0x5cbb2c){return!_0x15fee4['some'](_0x243e83=>_0x5cbb2c['some'](_0x30a8fa=>_0x243e83['isIntersecting'](_0x30a8fa)))&&_0x15fee4['some'](_0x259988=>_0x5cbb2c['some'](_0x42b61a=>_0x259988['end']['isTouching'](_0x42b61a['start'])));}_0x39f7d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26b8c1,_0x10306b,_0x53ab4c)=>{if(!_0x53ab4c['options']['showSuggestionHighlights'])return;const _0x161722=_0x10306b['item'];if(!_0x161722)return;const _0x202af9=_0x53ab4c['mapper']['toViewElement'](_0x161722);function _0x36e1e1(_0x30da47){return Array['isArray'](_0x30da47)?_0x30da47:[_0x30da47];}_0x202af9&&'tableCell'===_0x161722['name']&&_0xd21e92(_0x202af9,_0x53ab4c['writer'],(_0x79921c,_0x591900,_0x374d6a)=>_0x374d6a['addClass'](_0x36e1e1(_0x591900['classes']),_0x79921c),(_0xd55b38,_0x4600d6,_0x1a8944)=>_0x1a8944['removeClass'](_0x36e1e1(_0x4600d6['classes']),_0xd55b38));},{'priority':'highest'}),_0x42a7db['descriptionFactory']['registerDescriptionCallback'](_0x423029=>{if('insertion'!=_0x423029['type']&&'deletion'!=_0x423029['type'])return;const _0x5c3c5b=_0x423029['getContainedElement']();if(null!=_0x5c3c5b&&_0x5c3c5b['is']('element','table')){if('insertion'==_0x423029['type']){const _0x376f9f=_0x423029['getItems']()['filter'](_0x18c495=>_0x18c495['is']('$textProxy'))['map'](_0x4a84a9=>_0x4a84a9['data']);if(_0x376f9f['length'])return{'type':'insertion','content':c(_0x5a8d3f,'*Insert:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x376f9f['join']('\x20')+'\x22'))};}if('deletion'==_0x423029['type']){const _0x7b5cb3=_0x423029['getItems']()['filter'](_0x379780=>_0x379780['is']('$textProxy'))['map'](_0xf1f172=>_0xf1f172['data']);if(_0x7b5cb3['length'])return{'type':'deletion','content':c(_0x5a8d3f,'*Remove:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x7b5cb3['join']('\x20')+'\x22'))};}}}),_0x42a7db['descriptionFactory']['registerDescriptionCallback'](_0x302f8c=>{if('tableRow'==_0x302f8c['subType']){const _0x102261=_0x302f8c['getItems']()['filter'](_0xe0a6b0=>_0xe0a6b0['is']('$textProxy'))['map'](_0x286696=>_0x286696['data']),_0x31c5e7=this['_getSuggestionCoords'](_0x302f8c),_0x26986e=_0x31c5e7['maxRow']-_0x31c5e7['minRow']+0x1;if('insertion'==_0x302f8c['type'])return _0x102261['length']?{'type':'insertion','content':c(_0x5a8d3f,'*Insert:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26986e,'\x22'+_0x102261['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a8d3f,'*Insert:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_ROW',_0x26986e))};if('deletion'==_0x302f8c['type'])return _0x102261['length']?{'type':'deletion','content':c(_0x5a8d3f,'*Remove:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x26986e,'\x22'+_0x102261['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a8d3f,'*Remove:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_ROW',_0x26986e))};}if('tableColumn'==_0x302f8c['subType']){const _0x225d8e=_0x302f8c['getItems']()['filter'](_0x2d845f=>_0x2d845f['is']('$textProxy'))['map'](_0x41c5d2=>_0x41c5d2['data']),_0x2a1628=this['_getSuggestionCoords'](_0x302f8c),_0x597372=_0x2a1628['maxColumn']-_0x2a1628['minColumn']+0x1;if('insertion'==_0x302f8c['type'])return _0x225d8e['length']?{'type':'insertion','content':c(_0x5a8d3f,'*Insert:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x597372,'\x22'+_0x225d8e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a8d3f,'*Insert:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_COLUMN',_0x597372))};if('deletion'==_0x302f8c['type'])return _0x225d8e['length']?{'type':'deletion','content':c(_0x5a8d3f,'*Remove:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x597372,'\x22'+_0x225d8e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a8d3f,'*Remove:*\x20%0',c(_0x5a8d3f,'ELEMENT_TABLE_COLUMN',_0x597372))};}}),_0x42a7db['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x39114e),_0x42a7db['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x39114e),_0x42a7db['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xac0d39),_0x42a7db['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xac0d39),_0x42a7db['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b40ac),_0x42a7db['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b40ac),_0x42a7db['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x835ba2),_0x42a7db['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x835ba2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1dfa32=this['editor'],_0x361328=_0x1dfa32['model']['document']['selection'];return(_0x2f99af,_0x581aa0)=>{_0x1dfa32['model']['change'](_0xb86433=>{const {commandName:_0xf373ed,commandParams:_0xcc90e0}=_0x581aa0;let _0x131a61=_0x2f99af[0x0]['end']['nodeBefore'];_0xcc90e0&&_0xcc90e0[0x0]&&!0x1===_0xcc90e0[0x0]['forceValue']&&(_0x131a61=_0x2f99af[0x0]['start']['nodeAfter']);const _0x20ee68=_0xb86433['createRangeIn'](_0x131a61);if('$graveyard'==_0x20ee68['root']['rootName'])return;const _0xa3e063=Array['from'](_0x361328['getRanges']())['map'](_0x24df8a=>_0x4fb766['fromRange'](_0x24df8a));_0xb86433['setSelection'](_0x20ee68),_0x1dfa32['commands']['get'](_0xf373ed)['refresh'](),_0xcc90e0['push']({'forceDefaultExecution':!0x0}),_0x1dfa32['execute'](_0xf373ed,..._0xcc90e0);const _0x308515=_0xa3e063['filter'](_0x715cf2=>'$graveyard'!=_0x715cf2['root']['rootName']);_0x308515['length']>0x0&&_0xb86433['setSelection'](_0x308515);for(const _0x12fbc5 of _0xa3e063)_0x12fbc5['detach']();});};}['_getCoordsForCells'](_0x5f0352){const _0x17dfdd=this['editor']['plugins']['get']('TableUtils');let _0x522df2=Number['MAX_SAFE_INTEGER'],_0x5115a5=Number['MIN_SAFE_INTEGER'],_0x120246=Number['MAX_SAFE_INTEGER'],_0x1809e9=Number['MIN_SAFE_INTEGER'];for(const _0x271332 of _0x5f0352){if('$graveyard'==_0x271332['root']['rootName'])continue;const {row:_0x59fc22,column:_0x3f9284}=_0x17dfdd['getCellLocation'](_0x271332),_0x208b97=_0x271332['hasAttribute']('rowspan')?_0x271332['getAttribute']('rowspan')-0x1:0x0,_0x18d845=_0x271332['hasAttribute']('colspan')?_0x271332['getAttribute']('colspan')-0x1:0x0;_0x522df2=_0x59fc22<_0x522df2?_0x59fc22:_0x522df2,_0x5115a5=_0x59fc22+_0x208b97>_0x5115a5?_0x59fc22+_0x208b97:_0x5115a5,_0x120246=_0x3f9284<_0x120246?_0x3f9284:_0x120246,_0x1809e9=_0x3f9284+_0x18d845>_0x1809e9?_0x3f9284+_0x18d845:_0x1809e9;}return{'minRow':_0x522df2,'maxRow':_0x5115a5,'minColumn':_0x120246,'maxColumn':_0x1809e9};}['_setupColumnsRowsFixing'](){const _0x11d1f1=this['editor'],_0x1d757d=_0x11d1f1['plugins']['get']('TrackChangesEditing'),_0x1d09ca=_0x11d1f1['plugins']['get']('TableUtils');_0x11d1f1['model']['document']['on']('change:data',()=>{const _0xe7dec6=Array['from'](_0x11d1f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26b040,data:_0x41ce31}of _0xe7dec6){const {group:_0x173eb4,id:_0xd31bdf,subType:_0x14caa5}=_0x1d757d['_splitMarkerName'](_0x26b040);if('suggestion'!=_0x173eb4)continue;if(null!=_0x41ce31['oldRange'])continue;const _0x219894=_0x1d757d['getSuggestion'](_0xd31bdf);this['_tablePostFixingSubtypes']['includes'](_0x14caa5)&&this['_tableSuggestions']['add'](_0x219894);}},{'priority':'low'});const _0x39abce=(_0x4c34b9,_0x35ca2a)=>{let _0x3eb3af=!0x1;const _0x1124ad=_0x35ca2a['createRangeOn'](_0x4c34b9),_0x587be1=_0x4c34b9['findAncestor']('table'),_0x4cd372=_0x1d09ca['getCellLocation'](_0x4c34b9);for(const _0x21fed4 of this['_tableSuggestions']){const _0x19a3c3=_0x21fed4['subType'],_0x1c0227=_0x19a3c3['startsWith']('tablePaste'),_0x4ab42e=_0x19a3c3['substr'](_0x1c0227?0xa:0x5),_0x1581d6=_0x4ab42e['toLowerCase'](),_0x1f3715=_0x1581d6['substr'](0x0,0x3)+'span',_0xfa4442='min'+_0x4ab42e,_0x4214d6='max'+_0x4ab42e;if(!_0x21fed4['isInContent'])continue;if(_0x587be1!=_0x21fed4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x21fed4['isIntersectingWithRange'](_0x1124ad))continue;const _0x16243d=_0x4c34b9['hasAttribute'](_0x1f3715)?_0x4c34b9['getAttribute'](_0x1f3715)-0x1:0x0,_0x2535da=this['_getSuggestionCoords'](_0x21fed4),_0x2e5bd6=_0x2535da[_0xfa4442],_0x551b1a=_0x2535da[_0x4214d6];_0x2e5bd6<=_0x4cd372[_0x1581d6]&&_0x4cd372[_0x1581d6]+_0x16243d<=_0x551b1a&&(_0x21fed4['addRange'](_0x1124ad),_0x3eb3af=!0x0);}return _0x3eb3af;};_0x11d1f1['model']['document']['registerPostFixer'](_0x2ae058=>{let _0x142057=!0x1;for(const _0x52ebd9 of _0x11d1f1['model']['document']['differ']['getChanges']())if('insert'==_0x52ebd9['type']){if('tableRow'==_0x52ebd9['name']){for(const _0x1589df of _0x52ebd9['position']['nodeAfter']['getChildren']())_0x142057=_0x142057||_0x39abce(_0x1589df,_0x2ae058);}else'tableCell'==_0x52ebd9['name']&&(_0x142057=_0x142057||_0x39abce(_0x52ebd9['position']['nodeAfter'],_0x2ae058));}return _0x142057;});}['_getSuggestionCoords'](_0x3321c7){return this['_getCoordsForCells'](_0x3321c7['getRanges']()['map'](_0x19842a=>_0x19842a['start']['nodeAfter']));}}function Ne(_0x5ec964){return Array['from'](new Set(_0x5ec964)['values']());}class Nt extends _0x25b00c{static get['requires'](){return[Ct];}['afterInit'](){const _0x4bd41e=this['editor'],_0x2d6da6=_0x4bd41e['model']['document']['selection'],_0x492fd9=_0x4bd41e['locale'];if(!_0x4bd41e['plugins']['has']('TableEditing'))return;const _0x4c8d51=_0x4bd41e['plugins']['get']('TrackChangesEditing'),_0x4952cd=_0x4bd41e['plugins']['get']('TableUtils'),_0x2e3e89=_0x4bd41e['plugins']['get'](Ct);_0x2e3e89['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4c8d51['enableCommand']('mergeTableCells',()=>{const _0x4521ae=_0x4952cd['getSelectionAffectedTableCells'](_0x4bd41e['model']['document']['selection']);_0x4bd41e['model']['change'](()=>{_0x4c8d51['markMultiRangeBlockFormat'](_0x4521ae,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4bd41e['commands']['get']('mergeTableCells')['on']('execute',(_0x1a7541,_0x51c674)=>{_0x4bd41e['commands']['get']('trackChanges')['value']&&(_0x51c674['length']>0x0&&_0x51c674[_0x51c674['length']-0x1]&&_0x51c674[_0x51c674['length']-0x1]['forceDefaultExecution']||_0x4c8d51['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a7541['stop']());},{'priority':'highest'});for(const _0x2d7eb5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x24f1c9=_0x4bd41e['commands']['get'](_0x2d7eb5);_0x4c8d51['enableCommand'](_0x2d7eb5,()=>{const _0x37188c=_0x4bd41e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x375819=>_0x375819['is']('element','tableCell')),_0x3acdbb=_0x24f1c9['value'];_0x4bd41e['model']['change'](()=>{_0x4c8d51['markMultiRangeBlockFormat']([_0x37188c,_0x3acdbb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2dd0a6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f3770=_0x4bd41e['commands']['get'](_0x2dd0a6);_0x4c8d51['enableCommand'](_0x2dd0a6,()=>{const _0x5447a6=_0x4952cd['getSelectionAffectedTableCells'](_0x4bd41e['model']['document']['selection'])[0x0],_0x2364f7=_0x5447a6['findAncestor']('table'),{column:_0x28d873,row:_0x4b8bf9}=_0x4952cd['getCellLocation'](_0x5447a6);let _0x371dba=[];if('horizontally'==_0x5f3770['direction']){const _0x2e1db8=_0x4952cd['createTableWalker'](_0x2364f7,{'startRow':_0x4b8bf9,'endRow':_0x4b8bf9,'includeAllSlots':!0x0});_0x371dba=Array['from'](_0x2e1db8)['map'](_0x78aade=>_0x78aade['cell']);}else{const _0x55e100=_0x4952cd['createTableWalker'](_0x2364f7,{'column':_0x28d873,'includeAllSlots':!0x0});_0x371dba=Array['from'](_0x55e100)['map'](_0xba84d=>_0xba84d['cell']);}_0x4bd41e['model']['change'](_0x285458=>{_0x4c8d51['markBlockFormat'](_0x285458['createRangeOn'](_0x5447a6),{'commandName':_0x2dd0a6,'commandParams':[]},_0x371dba,_0x2dd0a6);});});}_0x4c8d51['descriptionFactory']['registerDescriptionCallback'](_0x5bc805=>{if('formatBlock'!=_0x5bc805['type']&&'formatInline'!=_0x5bc805['type'])return;const {data:_0x248bf1}=_0x5bc805;return _0x248bf1&&'mergeTableCells'==_0x248bf1['commandName']?{'type':'format','content':c(_0x492fd9,'*Merge\x20cells*')}:void 0x0;}),_0x4c8d51['descriptionFactory']['registerDescriptionCallback'](_0x5b4f59=>{if('formatBlock'!=_0x5b4f59['type']&&'formatInline'!=_0x5b4f59['type'])return;const {data:_0x171099}=_0x5b4f59;return _0x171099?'splitTableCellVertically'==_0x171099['commandName']?{'type':'format','content':c(_0x492fd9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x171099['commandName']?{'type':'format','content':c(_0x492fd9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x372e60=_0x2e3e89['_acceptFormatSuggestionCallbackFactory']();for(const _0x34605a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4c8d51['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34605a,'accept',_0x372e60);for(const _0x98defa of['splitTableCellVertically','splitTableCellHorizontally'])_0x4c8d51['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x98defa,'accept',_0x372e60);_0x4c8d51['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5344d1=>{_0x4bd41e['model']['change'](_0x4a0acf=>{const _0x5240cc=Array['from'](_0x2d6da6['getRanges']())['map'](_0x5ef412=>_0x4fb766['fromRange'](_0x5ef412));_0x4a0acf['setSelection'](_0x5344d1),_0x4bd41e['commands']['get']('mergeTableCells')['refresh'](),_0x4bd41e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x49b060=_0x5240cc['filter'](_0x32c599=>'$graveyard'!=_0x32c599['root']['rootName']);_0x49b060['length']>0x0&&_0x4a0acf['setSelection'](_0x49b060);for(const _0x1db450 of _0x5240cc)_0x1db450['detach']();});});for(const _0x31b926 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2173c2=_0x4bd41e['commands']['get'](_0x31b926);_0x2173c2['on']('set:isEnabled',(_0x21e9e9,_0x576207,_0x4a4599)=>{if(_0x4a4599){const _0x3e3b7a=_0x4bd41e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x260580=>_0x260580['is']('element','tableCell'));this['_areMergableCells'](_0x2173c2['value'],_0x3e3b7a)||(_0x21e9e9['return']=!0x1,_0x21e9e9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b62b9=this['editor']['commands']['get']('mergeTableCells'),_0x50ccb1=this['editor']['plugins']['get']('TableUtils');if(!_0x3b62b9['isEnabled'])return!0x1;const _0x4a294d=_0x50ccb1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x153164 of _0x4a294d)for(const _0x5d344a of _0x4a294d)if(_0x153164!=_0x5d344a&&!this['_areMergableCells'](_0x153164,_0x5d344a))return!0x1;return!0x0;}['_areMergableCells'](_0x409997,_0x63644b){const _0x5774b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bd3b4=this['editor']['model']['createRangeOn'](_0x409997),_0x1fa218=this['editor']['model']['createRangeOn'](_0x63644b),_0x11512e=new Set(),_0x404236=new Set();for(const _0x5e15ed of _0x5774b['getSuggestions']())if(('insertion'==_0x5e15ed['type']||'deletion'==_0x5e15ed['type']||'mergeTableCells'==_0x5e15ed['subType'])&&_0x5e15ed['isInContent']){for(const _0x1775e2 of _0x5e15ed['getRanges']())_0x1775e2['containsRange'](_0x4bd3b4,!0x0)&&_0x11512e['add'](_0x5e15ed['type']+':'+_0x5e15ed['author']['id']),_0x1775e2['containsRange'](_0x1fa218,!0x0)&&_0x404236['add'](_0x5e15ed['type']+':'+_0x5e15ed['author']['id']);}if(_0x11512e['size']!=_0x404236['size'])return!0x1;for(const _0x4cbacc of _0x11512e)if(!_0x404236['has'](_0x4cbacc))return!0x1;return!0x0;}}class Dt extends _0x25b00c{static get['requires'](){return[Ct];}['afterInit'](){const _0x6ba73=this['editor'];if(!_0x6ba73['plugins']['has']('TableEditing'))return;const _0x40e766=_0x6ba73['locale'],_0x19543a=_0x6ba73['plugins']['get']('TrackChangesEditing');_0x19543a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19543a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19543a['registerBlockAttribute']('headingRows'),_0x19543a['registerBlockAttribute']('headingColumns'),_0x19543a['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x40e766,'FORMAT_HEADER_ROW')),_0x19543a['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x40e766,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x280613=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45075d=this['editor']['plugins']['get']('TableUtils'),_0x19b464=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3d232c({showActiveMarker:_0x30a93c=!0x0,setDataAttribute:_0x486d24=!0x0}={}){return(_0x4d3a24,_0x388bd3,_0xf4c762)=>{const {type:_0x26a727,id:_0x49853f}=_0x280613['_splitMarkerName'](_0x388bd3['markerName']),_0x28f34f=_0x280613['getSuggestion'](_0x49853f),_0x3059fd=_0x28f34f['data'];if('formatBlock'!=_0x28f34f['type']||!_0x3059fd||'setTableColumnHeader'!=_0x3059fd['commandName'])return;if(_0x388bd3['item'])return void _0x4d3a24['stop']();if(!_0xf4c762['consumable']['consume'](_0x388bd3['markerRange'],_0x4d3a24['name']))return;const _0x2b9187=_0x388bd3['markerRange']['start']['nodeAfter'],_0x561928=_0x388bd3['markerRange']['end']['nodeBefore'],_0x1560e0=_0x2b9187['parent']['parent'],{column:_0x28e566}=_0x45075d['getCellLocation'](_0x2b9187),{column:_0x21de1a}=_0x45075d['getCellLocation'](_0x561928);for(let _0x482ac6=_0x28e566;_0x482ac6<=_0x21de1a;_0x482ac6++){const _0x38ddfd=_0x45075d['createTableWalker'](_0x1560e0,{'column':_0x482ac6,'includeAllSlots':!0x1});for(const _0x2871d1 of _0x38ddfd){const _0x5cf65e=_0x2871d1['cell'],_0x51a5f1=_0xf4c762['mapper']['toViewElement'](_0x5cf65e);_0xf4c762['writer']['addClass']('ck-suggestion-marker-'+_0x26a727,_0x51a5f1),_0x486d24&&_0xf4c762['writer']['setAttribute']('data-suggestion',_0x49853f,_0x51a5f1),_0xf4c762['mapper']['bindElementToMarker'](_0x51a5f1,_0x388bd3['markerName']),_0x30a93c&&(_0x280613['activeMarkers']['includes'](_0x388bd3['markerName'])?_0xf4c762['writer']['addClass']('ck-suggestion-marker--active',_0x51a5f1):_0xf4c762['writer']['removeClass']('ck-suggestion-marker--active',_0x51a5f1));}}};}_0x280613['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x19b464),_0x280613['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x19b464),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d232c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd5b468,_0x53b17b,_0x2822c4)=>{_0x2822c4['options']['showSuggestionHighlights']&&_0x3d232c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd5b468,_0x53b17b,_0x2822c4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x392a85,_0x13b1da,_0x320c84)=>{const {type:_0x2d4b1c,id:_0xdfa66}=_0x280613['_splitMarkerName'](_0x13b1da['markerName']),_0x5af24d=_0x280613['getSuggestion'](_0xdfa66),_0x35df94=_0x5af24d['data'];if('formatBlock'!=_0x5af24d['type']||!_0x35df94||'setTableColumnHeader'!=_0x35df94['commandName'])return;const _0xd5f0a1=_0x320c84['mapper']['markerNameToElements'](_0x13b1da['markerName']);if(_0xd5f0a1){for(const _0x8e86f2 of _0xd5f0a1)_0x320c84['writer']['removeClass']('ck-suggestion-marker-'+_0x2d4b1c,_0x8e86f2),_0x320c84['writer']['removeClass']('ck-suggestion-marker--active',_0x8e86f2),_0x320c84['writer']['removeAttribute']('data-suggestion',_0x8e86f2),_0x320c84['mapper']['unbindElementFromMarkerName'](_0x8e86f2,_0x13b1da['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352bb9=this['editor'],_0x32b172=_0x352bb9['locale'];function _0x43b7fd(_0x16d139){return{'type':'format','content':c(_0x32b172,'*Format:*\x20%0',_0x16d139)};}_0x352bb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb997ec=>{if('formatBlock'!=_0xb997ec['type'])return;const {data:_0x3cd890}=_0xb997ec;if(_0x3cd890){if('setTableRowHeader'==_0x3cd890['commandName']){const _0x4c0fba=_0x3cd890['commandParams'][0x0]['forceValue'];return _0x43b7fd(c(_0x32b172,_0x4c0fba?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3cd890['commandName']){const _0x53c6fe=_0x3cd890['commandParams'][0x0]['forceValue'];return _0x43b7fd(c(_0x32b172,_0x53c6fe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x15201e=>[_0x15201e,null]));class Mt extends _0x25b00c{static get['requires'](){return[Ct];}['afterInit'](){const _0x496bb3=this['editor'];if(!_0x496bb3['plugins']['has']('TableClipboard'))return;const _0x421a53=_0x496bb3['plugins']['get']('TrackChangesEditing'),_0x1ae480=_0x496bb3['plugins']['get']('TableUtils'),_0x1d0285=_0x496bb3['plugins']['get'](Ct),_0x2a583e=_0x496bb3['plugins']['get']('TableClipboard');_0x1d0285['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x496bb3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x496bb3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x356a8b=null;_0x496bb3['model']['on']('insertContent',(_0x503374,_0x2deb66)=>{const [_0x366b1a,_0x135015]=_0x2deb66,_0x16bb61=_0x2deb66[_0x2deb66['length']-0x1];_0x16bb61&&_0x16bb61['forceDefaultExecution']||_0x421a53['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5b3b6a,_0x270977,_0xf32591,_0x57790c,_0x3eba16){if(_0x270977&&!_0x270977['is']('documentSelection'))return!0x1;const _0x9b937c=_0x3eba16['getTableIfOnlyTableInContent'](_0x5b3b6a,_0xf32591);if(!_0x9b937c||!Ue(_0x9b937c,void 0x0,_0x57790c))return!0x1;const _0x2c4b31=_0x57790c['getSelectionAffectedTableCells'](_0xf32591['document']['selection']);if(!_0x2c4b31['length'])return!0x1;const _0x3f05fa=_0x2c4b31[0x0]['findAncestor']('table'),_0x33b2c8=_0x57790c['getRowIndexes'](_0x2c4b31),_0x274978=_0x57790c['getColumnIndexes'](_0x2c4b31),_0x149753={'startRow':_0x33b2c8['first'],'endRow':_0x33b2c8['last'],'startColumn':_0x274978['first'],'endColumn':_0x274978['last']};return 0x1==_0x2c4b31['length']&&(_0x149753['endRow']+=_0x57790c['getRows'](_0x9b937c)-0x1,_0x149753['endColumn']+=_0x57790c['getColumns'](_0x9b937c)-0x1),Ue(_0x3f05fa,_0x149753,_0x57790c);}(_0x366b1a,_0x135015,_0x496bb3['model'],_0x1ae480,_0x2a583e)&&(_0x503374['stop'](),_0x356a8b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x496bb3['model']['change'](()=>{_0x496bb3['model']['insertContent'](_0x2deb66[0x0],_0x2deb66[0x1],_0x2deb66[0x2],{'forceDefaultExecution':!0x0});const _0x19eab3=_0x1c5a5c(),{rowInsertionRanges:_0x2e7af3,columnInsertionRanges:_0x538099,insertionRanges:_0x1aac94,deletionRanges:_0x51396f,cells:_0x4444e4}=_0x356a8b;_0x2e7af3['length']&&_0x421a53['markMultiRangeInsertion'](_0x2e7af3,'tablePasteRow',{'tablePasteChainId':_0x19eab3}),_0x538099['length']&&_0x421a53['markMultiRangeInsertion'](_0x538099,'tablePasteColumn',{'tablePasteChainId':_0x19eab3}),_0x1aac94['length']&&(_0x421a53['markMultiRangeInsertion'](_0x1aac94,'tablePaste',{'tablePasteChainId':_0x19eab3,'skipNestingCheck':!0x0}),_0x1aac94['forEach'](_0x848069=>_0x848069['detach']?.())),_0x51396f['length']&&(_0x421a53['markMultiRangeDeletion'](_0x51396f,'tablePaste',{'tablePasteChainId':_0x19eab3,'skipNestingCheck':!0x0}),_0x51396f['forEach'](_0x3f8531=>_0x3f8531['detach']?.()));const _0x2283ab=_0x421a53['markMultiRangeBlockFormat'](_0x4444e4['map'](({element:_0x4a6acb})=>_0x4a6acb),{'formatGroupId':_0x1c5a5c()},[],'tablePasteCell',{'tablePasteChainId':_0x19eab3});if(_0x2283ab){const _0xad062f=_0x2283ab['getMarkers'](),_0x129001=[];for(const {element:_0x4a56b5,attributes:_0x25e866}of _0x4444e4){if(!_0x25e866)continue;const _0x23ece1=_0x496bb3['model']['createRangeOn'](_0x4a56b5),_0x270079=_0xad062f['find'](_0x2dd195=>_0x2dd195['getRange']()['isEqual'](_0x23ece1));_0x270079&&_0x129001['push']([_0x270079['name'],_0x25e866]);}_0x129001['length']&&_0x2283ab['setAttribute']('markerAttributes',Object['fromEntries'](_0x129001));}_0x356a8b=null;}));},{'priority':_0x2705bf['high']+0xa}),_0x496bb3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5ccb20,_0x3dfc0f)=>{const [_0x3b48f6,_0x3827b8,,_0x5ad440]=_0x3dfc0f;if(!_0x356a8b)return;_0x5ccb20['stop']();const _0xd5badf=_0x3b48f6['cell'],_0x3e800d=_0x3827b8,_0x19c635=Oe(_0xd5badf),_0xc75e37=Oe(_0x3e800d);_0x5ccb20['return']=_0xd5badf;let _0x11b82b=null,_0x53aa20=null;if(_0xc75e37||_0x19c635){if(_0x19c635&&!_0xc75e37){_0x5ad440['remove'](_0xd5badf['getChild'](0x0));for(const _0x4f5045 of Array['from'](_0x3e800d['getChildren']()))_0x5ad440['insert'](_0x4f5045,_0xd5badf,'end');const _0x181cd5=_0x356a8b['rowInsertionIndexes']['includes'](_0x3b48f6['row']),_0x59281d=_0x356a8b['columnInsertionIndexes']['includes'](_0x3b48f6['column']);_0x181cd5||_0x59281d||(_0x11b82b=_0x4fb766['fromRange'](_0x5ad440['createRangeIn'](_0xd5badf)));}else _0xc75e37&&!_0x19c635&&(_0x53aa20=_0x5ad440['createRangeIn'](_0xd5badf));}else{const _0x41cc65=_0x5ad440['createElement']('tableCellSuggestion'),_0x565d89=_0x5ad440['createElement']('tableCellSuggestion');_0x5ad440['wrap'](_0x5ad440['createRangeIn'](_0xd5badf),_0x565d89),_0x5ad440['insert'](_0x41cc65,_0xd5badf,0x0);for(const _0x1747dc of Array['from'](_0x3e800d['getChildren']()))_0x5ad440['insert'](_0x1747dc,_0x41cc65,'end');_0x11b82b=_0x4fb766['fromRange'](_0x5ad440['createRangeOn'](_0x41cc65)),_0x53aa20=_0x4fb766['fromRange'](_0x5ad440['createRangeOn'](_0x565d89));}const _0x43256c=Array['from'](_0x3e800d['getAttributes']())['filter'](([_0x28b007])=>Be['includes'](_0x28b007));_0x356a8b['cells']['push']({'element':_0xd5badf,'attributes':_0x43256c['length']?Object['fromEntries'](_0x43256c):null}),_0x11b82b&&_0x356a8b['insertionRanges']['push'](_0x11b82b),_0x53aa20&&_0x356a8b['deletionRanges']['push'](_0x53aa20);},{'priority':'high'}),_0x1ae480['on']('insertColumns',(_0x1fada2,_0x206ef2)=>{const [_0x37fe77,_0x29a3fa={}]=_0x206ef2;if(!_0x356a8b)return;const _0x1d7e77=_0x29a3fa['at']||0x0,_0x5c55ff=_0x29a3fa['columns']||0x1;_0x356a8b['columnInsertionIndexes']=new Array(_0x5c55ff)['fill'](_0x1d7e77)['map']((_0x39aeb4,_0xb023b3)=>_0x39aeb4+_0xb023b3);for(const {cell:_0x22b702}of _0x1ae480['createTableWalker'](_0x37fe77,{'startColumn':_0x1d7e77,'endColumn':_0x1d7e77+_0x5c55ff-0x1}))_0x356a8b['columnInsertionRanges']['push'](_0x496bb3['model']['createRangeOn'](_0x22b702));},{'priority':'low'}),_0x1ae480['on']('insertRows',(_0x5a3fdf,_0x375ced)=>{const [_0x53c076,_0xfc2e08={}]=_0x375ced;if(!_0x356a8b)return;const _0x3b2ff0=_0xfc2e08['at']||0x0,_0x197e21=_0xfc2e08['rows']||0x1;_0x356a8b['rowInsertionIndexes']=new Array(_0x197e21)['fill'](_0x3b2ff0)['map']((_0x515b43,_0x4ad1c9)=>_0x515b43+_0x4ad1c9);for(const {cell:_0x2d19ce}of _0x1ae480['createTableWalker'](_0x53c076,{'startRow':_0x3b2ff0,'endRow':_0x3b2ff0+_0x197e21-0x1}))_0x356a8b['rowInsertionRanges']['push'](_0x496bb3['model']['createRangeOn'](_0x2d19ce));},{'priority':'low'}),_0x421a53['descriptionFactory']['registerDescriptionCallback'](_0x539590=>{if(_0x539590['subType']&&_0x539590['subType']['startsWith']('tablePaste'))return _0x539590['previous']?{}:{'type':'insertion','content':c(_0x496bb3['locale'],'*Replace\x20table\x20cells*')};});const _0x44e972=()=>!0x1;for(const _0x4339e6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x421a53['_suggestionFactory']['registerCustomCallback']('insertion',_0x4339e6,'join',_0x44e972),_0x421a53['_suggestionFactory']['registerCustomCallback']('deletion',_0x4339e6,'join',_0x44e972),_0x421a53['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4339e6,'join',_0x44e972);_0x421a53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x44e972),_0x421a53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36a89a,_0xec8911,_0x4ad105)=>{const _0x92658a=_0x36a89a['map'](_0x2b176e=>_0x2b176e['getContainedElement']())['filter'](_0x935c45=>_0x935c45),_0x17b2ae=new Map(_0x92658a['map'](_0x7188cd=>[_0x7188cd,null]));if(_0x356a8b){for(const {element:_0x4407b2,attributes:_0x25ca4e}of _0x356a8b['cells'])_0x25ca4e&&_0x17b2ae['set'](_0x4407b2,_0x25ca4e);}else{if(_0x4ad105&&_0x4ad105['markerAttributes'])for(const [_0x4aa1ac,_0xdc1a88]of Object['entries'](_0x4ad105['markerAttributes'])){const _0x32fcdd=_0x496bb3['model']['markers']['get'](_0x4aa1ac),_0x6c3d6c=_0x32fcdd?_0x32fcdd['getRange']()['getContainedElement']():null;_0x6c3d6c&&_0x17b2ae['set'](_0x6c3d6c,_0xdc1a88);}}_0x496bb3['model']['change'](_0x48945d=>{for(const [_0x1dfcc6,_0x31a039]of _0x17b2ae)_0x48945d['setAttributes']({...xe,..._0x31a039},_0x1dfcc6);});});const _0x13a3ec=(_0x312e85,_0x451c00)=>{_0x421a53['_suggestionFactory']['registerCustomCallback'](_0x312e85,'tablePaste',_0x451c00,(_0x1d1f6f,_0x10db52,_0xe504c8)=>{_0x496bb3['model']['change'](_0x3c092c=>{const _0x40fdff=[];for(const _0x5d08e8 of _0x1d1f6f){const _0x32721d=_0x5d08e8['start']['nodeAfter'];_0x32721d['is']('element','tableCellSuggestion')&&_0x40fdff['push'](_0x32721d);}_0x421a53['_suggestionFactory']['getSuggestionCallback'](_0x312e85,null,_0x451c00)(_0x1d1f6f,_0x10db52,_0xe504c8);for(const _0xc2dbca of _0x40fdff)'$graveyard'!=_0xc2dbca['root']['rootName']&&_0x3c092c['unwrap'](_0xc2dbca);});});};_0x13a3ec('insertion','accept'),_0x13a3ec('insertion','discard'),_0x13a3ec('deletion','accept'),_0x13a3ec('deletion','discard'),_0x421a53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x12e436=>{const _0xc5c332=_0x12e436['map'](_0x17d7ee=>_0x17d7ee['getContainedElement']()),_0x4a1e2=_0xc5c332[0x0]['findAncestor']('table'),{minRow:_0x44298f,maxRow:_0x5a3152}=_0x1d0285['_getCoordsForCells'](_0xc5c332);_0x1ae480['removeRows'](_0x4a1e2,{'at':_0x44298f,'rows':_0x5a3152-_0x44298f+0x1});}),_0x421a53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5ef25e=>{const _0x322948=_0x5ef25e['map'](_0x113331=>_0x113331['getContainedElement']()),_0x159444=_0x322948[0x0]['findAncestor']('table'),{minColumn:_0x2f418c,maxColumn:_0x37b837}=_0x1d0285['_getCoordsForCells'](_0x322948);_0x1ae480['removeColumns'](_0x159444,{'at':_0x2f418c,'columns':_0x37b837-_0x2f418c+0x1});});const _0x8f2dd0=(_0x57ce30,_0xfdceb1)=>{if(!_0xfdceb1['subType']||!_0xfdceb1['subType']['startsWith']('tablePaste'))return;const _0x165fab=_0xfdceb1['attributes']['tablePasteChainId'],_0x38ae9e=_0x421a53['getSuggestions']()['filter'](_0x2a7101=>_0x2a7101['isInContent']&&_0x2a7101['attributes']&&_0x2a7101['attributes']['tablePasteChainId']==_0x165fab);_0x38ae9e['length']&&_0xfdceb1['getAllAdjacentSuggestions']()['length']!=_0x38ae9e['length']&&_0x38ae9e['reduce']((_0xa063f0,_0x1d2836)=>(_0xa063f0['next']=_0x1d2836,_0x1d2836['previous']=_0xa063f0,_0x1d2836));};function _0xb6d2d7(_0x14147c,_0x5c7f54=!0x0){const {id:_0x4673d0,authorId:_0x41c518}=_0x421a53['_splitMarkerName'](_0x14147c['markerName']),_0x2b5d91=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40d996=_0x421a53['activeMarkers']['includes'](_0x14147c['markerName']);return _0x40d996&&_0x2b5d91['push']('ck-suggestion-marker--active'),{'classes':_0x2b5d91,'attributes':{'data-suggestion':_0x4673d0,'data-author-id':_0x41c518},'priority':_0x40d996&&_0x5c7f54?0xbc2:0xbb8};}_0x421a53['on']('suggestionLoaded',_0x8f2dd0,{'priority':'high'}),_0x421a53['on']('suggestionUnloaded',_0x8f2dd0,{'priority':'high'}),_0x496bb3['model']['document']['registerPostFixer'](()=>{let _0x4b7ccf=!0x1;const _0x20e5bc=Array['from'](_0x496bb3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x133351,data:_0x4b7f8e}of _0x20e5bc){const {group:_0x2470f4,type:_0x8ed99e,id:_0x2c47f0}=_0x421a53['_splitMarkerName'](_0x133351);if('suggestion'!=_0x2470f4||'deletion'!=_0x8ed99e||_0x4b7f8e['oldRange'])continue;if(!_0x421a53['hasSuggestion'](_0x2c47f0))continue;const _0x1853b5=_0x421a53['getSuggestion'](_0x2c47f0)['getRanges'](),_0x391b0b=_0x496bb3['plugins']['get']('Users')['me'];for(const _0x44b383 of _0x421a53['getSuggestions']()){if(!_0x44b383['isInContent']||_0x44b383['author']!=_0x391b0b)continue;if('formatBlock'!=_0x44b383['type']||'tablePasteCell'!=_0x44b383['subType'])continue;if(_0x44b383['getRanges']()['every'](_0x2802a9=>_0x1853b5['some'](_0x3b6982=>_0x3b6982['containsRange'](_0x2802a9,!0x0)))){for(const _0x573464 of _0x44b383['getAllAdjacentSuggestions']())_0x573464['isInContent']&&(_0x573464['discard'](),_0x4b7ccf=!0x0);}}}return _0x4b7ccf;}),_0x496bb3['model']['document']['registerPostFixer'](_0x8dd498=>{const _0x2d9d61=_0x496bb3['commands']['get']('redo');if(!_0x2d9d61||!_0x2d9d61['_createdBatches']['has'](_0x8dd498['batch']))return!0x1;let _0x41bd2f=!0x1;const _0x2b63cc=_0x496bb3['plugins']['get']('Users')['me'],_0xd1eef=_0x496bb3['model']['document']['differ']['getChanges'](),_0x5c952e=Array['from'](_0x496bb3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x37850d,data:_0x49d67e})=>{const {group:_0x16c5a1,subType:_0x4b7275,authorId:_0x1949af}=_0x421a53['_splitMarkerName'](_0x37850d);return'suggestion'==_0x16c5a1&&'tablePaste'==_0x4b7275&&_0x1949af==_0x2b63cc['id']&&!_0x49d67e['oldRange'];});for(const _0x1994cd of _0xd1eef){if('insert'!=_0x1994cd['type']||'tableCellSuggestion'!=_0x1994cd['name']||0x1!=_0x1994cd['length'])continue;const _0xc4d9f4=_0x8dd498['createRange'](_0x1994cd['position'],_0x1994cd['position']['getShiftedBy'](0x1));if(!_0x5c952e['find'](({data:_0x148244})=>_0x148244['newRange']['isEqual'](_0xc4d9f4))){for(const {name:_0xfd027f,data:_0x4b8f6e}of _0x5c952e)if(_0xc4d9f4['containsRange'](_0x4b8f6e['newRange'])){_0x8dd498['updateMarker'](_0xfd027f,{'range':_0xc4d9f4}),_0x41bd2f=!0x0;break;}}}return _0x41bd2f;}),_0x496bb3['model']['document']['registerPostFixer'](_0x2704da=>{let _0x9aed79=!0x1;const _0x3bfc80=_0x496bb3['plugins']['get']('Users')['me'],_0x1d42e0=_0x421a53['getSuggestions']()['filter'](_0x2dd444=>_0x2dd444['isInContent']&&_0x2dd444['author']==_0x3bfc80),_0x532b4b=new Set(),_0x2dcc22=new Set();for(const _0x4282b4 of _0x1d42e0)if('tablePaste'==_0x4282b4['subType'])for(const _0x29d6fe of _0x4282b4['getMarkers']()){const _0x111ac5=_0x29d6fe['getRange']()['getContainedElement']();if(_0x111ac5){if(_0x111ac5['is']('element','tableCellSuggestion')&&Oe(_0x111ac5)){_0x4282b4['removeMarker'](_0x29d6fe['name']),_0x532b4b['add'](_0x111ac5),_0x9aed79=!0x0;const _0x53210a=_0x111ac5['nextSibling'],_0x505ceb=_0x111ac5['previousSibling'],_0x2e2955=_0x53210a&&_0x53210a['is']('element','tableCellSuggestion'),_0x14dab9=_0x505ceb&&_0x505ceb['is']('element','tableCellSuggestion');_0x2e2955&&!_0x532b4b['has'](_0x53210a)&&_0x2dcc22['add'](_0x53210a),_0x14dab9&&!_0x532b4b['has'](_0x505ceb)&&_0x2dcc22['add'](_0x505ceb);}else _0x111ac5['is']('element','paragraph')&&_0x111ac5['isEmpty']&&(_0x4282b4['removeMarker'](_0x29d6fe['name']),_0x9aed79=!0x0);}}else{if('tablePasteCell'==_0x4282b4['subType']){if(!_0x4282b4['attributes']||!_0x4282b4['attributes']['tablePasteChainId'])continue;const _0x5287b8=_0x4282b4['attributes']['markerAttributes'];if(_0x5287b8&&Object['keys'](_0x5287b8)['length'])continue;const _0x5e22b0=_0x4282b4['attributes']['tablePasteChainId'];let _0xd915b5=!0x0,_0x51a5ba=!0x0;for(const _0x4d1b28 of _0x1d42e0)if(_0x4d1b28['subType']&&_0x4d1b28['subType']['startsWith']('tablePaste')){if(!_0x4d1b28['attributes']['tablePasteChainId']){_0x51a5ba=!0x1;break;}if(_0x4d1b28['id']!=_0x4282b4['id']&&_0x4d1b28['attributes']['tablePasteChainId']==_0x5e22b0){_0xd915b5=!0x1;break;}}_0x51a5ba&&_0xd915b5&&(_0x4282b4['removeMarkers'](),_0x9aed79=!0x0);}}for(const _0x497c92 of _0x532b4b)_0x2704da['remove'](_0x497c92);for(const _0x10b76c of _0x2dcc22)_0x2704da['unwrap'](_0x10b76c);return _0x9aed79;}),_0x496bb3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3c5075=>_0xb6d2d7(_0x3c5075),'converterPriority':'high'}),_0x496bb3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1107ba,_0x3411de)=>_0x3411de['options']['showSuggestionHighlights']?_0xb6d2d7(_0x1107ba,!0x1):null,'converterPriority':'high'});const _0x338627=_0x496bb3['editing']['view'];this['listenTo'](_0x338627['document'],'clipboardOutput',(_0xe67dc5,_0x4ba553)=>{const _0x2bbe36=[];for(const _0x57ec13 of _0x338627['createRangeIn'](_0x4ba553['content'])['getItems']())_0x57ec13['is']('element','suggestion-td')&&_0x2bbe36['push'](_0x57ec13);_0x338627['change'](_0x3b2123=>{for(const _0x53c8a7 of _0x2bbe36)_0x3b2123['move'](_0x3b2123['createRangeIn'](_0x53c8a7),_0x3b2123['createPositionBefore'](_0x53c8a7)),_0x3b2123['remove'](_0x53c8a7);});});}}function Oe(_0x4d5bd0){if(_0x4d5bd0['isEmpty'])return!0x0;const _0x451a7b=_0x4d5bd0['getChild'](0x0);return _0x451a7b['is']('element','paragraph')&&_0x451a7b['isEmpty'];}function Ue(_0xa520ff,_0x37a631={},_0x49cb77){for(const {isAnchor:_0xaea0e3,cellHeight:_0x523a9c,cellWidth:_0x56a8a1}of _0x49cb77['createTableWalker'](_0xa520ff,{'includeAllSlots':!0x0,..._0x37a631}))if(!_0xaea0e3||0x1!=_0x523a9c||0x1!=_0x56a8a1)return!0x1;return!0x0;}class $t extends _0x25b00c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xd9efb6=this['editor']['plugins']['get']('TrackChangesEditing');_0xd9efb6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xd9efb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xd9efb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd9efb6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xd9efb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xd9efb6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x139294,_0x3a6ec8){const _0xd49bb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d32b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe6a8d5=_0x3a6ec8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x57fb9d=_0x39d32b['getColumnGroupElement'](_0xe6a8d5);let _0x5e2681=_0x57fb9d?_0x39d32b['getTableColumnsWidths'](_0x57fb9d):null,_0x3b4578=_0xe6a8d5['getAttribute']('tableWidth')||null;const _0x15eee9=_0x3a6ec8['tableWidth']||_0x3b4578,_0x12d41a=_0x3a6ec8['columnWidths']||_0x5e2681,_0xeb1fc7=this['editor']['plugins']['get']('Users')['me'];for(const _0x49d227 of _0xd49bb2['getSuggestions']()){const _0x5c2d62=_0x49d227['getContainedElement']();if('resizeTable'===_0x49d227['subType']&&_0x5c2d62===_0xe6a8d5){_0x49d227['author']!==_0xeb1fc7&&_0x49d227['discard']();const _0x3d529d=_0x49d227['data']['commandParams'];_0x3b4578=_0x3d529d[0x0]['tableWidth'],_0x5e2681=_0x3d529d[0x0]['columnWidths'];break;}}_0x139294({'table':_0xe6a8d5,'tableWidth':_0x15eee9,'columnWidths':_0x12d41a}),_0xd49bb2['markBlockFormat'](_0xe6a8d5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3b4578,'columnWidths':_0x5e2681}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47afa8){if('formatBlock'!=_0x47afa8['type']&&'formatInline'!=_0x47afa8['type'])return;const {data:_0x308a70}=_0x47afa8;if(_0x308a70&&'resizeTable'===_0x308a70['formatGroupId']){const _0x318a7f='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x318a7f)};}}}class Bt extends _0x25b00c{['afterInit'](){const _0x148565=this['editor'];_0x148565['plugins']['has']('Template')&&_0x148565['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x25b00c{['afterInit'](){const _0x140914=this['editor'];if(!_0x140914['commands']['get']('insertTableOfContents'))return;_0x140914['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x22a38e=_0x140914['plugins']['get']('TrackChangesEditing'),_0x4f7b7d=_0x140914['locale'];_0x22a38e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2fa7aa=>c(_0x4f7b7d,'ELEMENT_TABLE_OF_CONTENTS',_0x2fa7aa));}}class Rt extends _0x25b00c{['afterInit'](){const _0x58a6e4=this['editor'];if(!_0x58a6e4['plugins']['has']('Title'))return;const _0x193431=_0x58a6e4['plugins']['get']('TrackChangesEditing');_0x193431['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x58a6e4['locale'],'ELEMENT_TITLE')),_0x58a6e4['model']['document']['registerPostFixer'](_0xb4f6=>{let _0x5beb5e=!0x1;const _0x494bfb=Array['from'](_0x58a6e4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d7477,data:_0x151c4c}of _0x494bfb){const {group:_0x466b22}=_0x193431['_splitMarkerName'](_0x5d7477);if('suggestion'!==_0x466b22||!_0x151c4c['newRange'])continue;const _0x3ee8e4=_0x151c4c['newRange'],_0x5a8ef1=_0x3ee8e4['end']['nodeBefore'];if(!_0x5a8ef1||!_0x5a8ef1['is']('element','title-content'))continue;if(!_0x3ee8e4['start']['isTouching'](_0x3ee8e4['end']))continue;const _0x47cc51=_0x58a6e4['model']['schema']['getNearestSelectionRange'](_0x3ee8e4['end'],'forward');if(_0x47cc51&&_0x47cc51['isCollapsed']){const _0x4de47c=_0xb4f6['createRange'](_0x3ee8e4['start'],_0x47cc51['start']);_0x4de47c['isEqual'](_0x3ee8e4)||(_0xb4f6['updateMarker'](_0x5d7477,{'range':_0x4de47c}),_0x5beb5e=!0x0);}_0x5beb5e||(_0xb4f6['removeMarker'](_0x5d7477),_0x5beb5e=!0x0);}return _0x5beb5e;});}}class xt extends _0x25b00c{['afterInit'](){const _0x2f267d=this['editor'],_0x4c8081=_0x2f267d['plugins']['get']('TrackChangesEditing');_0x2f267d['plugins']['has']('Uploadcare')&&(_0x4c8081['enableCommand']('uploadcare'),_0x2f267d['plugins']['has']('UploadcareImageEdit')&&(_0x4c8081['enableCommand']('uploadcareImageEdit'),_0x4c8081['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4c8081['registerBlockAttribute']('uploadcareImageId'),_0x4c8081['descriptionFactory']['registerDescriptionCallback'](_0x2b99a1=>{if('attribute'!=_0x2b99a1['type'])return;const {data:_0x5007e6}=_0x2b99a1;return _0x5007e6&&'uploadcareImageId'==_0x5007e6['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x25b00c{['afterInit'](){const _0x12e9a0=this['editor'],_0x10e297=_0x12e9a0['plugins']['get']('TrackChangesEditing');_0x12e9a0['plugins']['has']('UndoEditing')&&(_0x10e297['enableCommand']('undo'),_0x10e297['enableCommand']('redo'));}}class Et extends _0x25b00c{static get['requires'](){return[Ct];}['afterInit'](){const _0x347edc=this['editor'];if(!_0x347edc['plugins']['has']('TableCaptionEditing'))return;_0x347edc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x25b00c{['tableProperties'];['tableCellProperties'];constructor(_0xf6e85b){super(_0xf6e85b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x56550f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3314f6 of this['tableProperties'])_0x56550f['enableCommand'](_0x3314f6,(_0x2277dc,_0x11ebdf)=>{const _0xde6ad0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3314f6,[_0xde6ad0],this['tableProperties'],'tableProperties',_0x2277dc,_0x11ebdf);});_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x56550f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5aba7a,_0x2a4ed5)=>this['handleDiscardAction'](this['tableProperties'],_0x5aba7a,_0x2a4ed5)),_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x28337f of this['tableCellProperties'])_0x56550f['enableCommand'](_0x28337f,(_0x28d428,_0x3ce316)=>{const _0x555e6e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x28337f,_0x555e6e,this['tableCellProperties'],'tableCellProperties',_0x28d428,_0x3ce316);});_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x56550f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1078ac,_0x3607ec)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1078ac,_0x3607ec)),_0x56550f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x56550f['descriptionFactory']['registerDescriptionCallback'](_0x4c60d8=>this['handleSuggestionDescription'](_0x4c60d8));}['_handlePropertyChange'](_0x10f4e1,_0x42bc11,_0x22815c,_0x16938d,_0x586e8e,_0xa96ccb){const _0x20facb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xa96ccb['batch'],()=>{for(const _0x30ed45 of _0x42bc11){if(this['_getSuggestion'](_0x30ed45,_0x16938d))_0x586e8e(_0xa96ccb);else{const _0x213323={};for(const _0x39e94b of _0x22815c){const _0x3017a3=_0x30ed45['getAttribute'](_0x39e94b);void 0x0!==_0x3017a3&&(_0x213323[_0x39e94b]=_0x3017a3);}_0x586e8e(_0xa96ccb),_0x20facb['markBlockFormat'](_0x30ed45,{'commandParams':[_0x213323]},[],_0x16938d);}}});}['handleDiscardAction'](_0x5d1b0b,_0x5566d2,_0x495de8){const _0x499316=_0x5566d2[0x0]['start']['nodeAfter'],_0x409e57=_0x495de8['commandParams'][0x0];this['editor']['model']['change'](_0x1b8fea=>{for(const _0x5666cc of _0x5d1b0b)void 0x0!==_0x409e57[_0x5666cc]?_0x1b8fea['setAttribute'](_0x5666cc,_0x409e57[_0x5666cc],_0x499316):_0x1b8fea['removeAttribute'](_0x5666cc,_0x499316);});}['handleSuggestionDescription'](_0x11de7a){if(_0x11de7a['data'])switch(_0x11de7a['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5ca691,_0x37a748){const _0x1351fd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x17dfa3 of _0x1351fd['getSuggestions']({'skipNotAttached':!0x0})){const _0xe33700=_0x17dfa3['getContainedElement']();if(_0x17dfa3['subType']===_0x37a748&&_0xe33700===_0x5ca691)return _0x17dfa3;}return null;}}const u='$elementName';class p extends _0x25b00c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3c7829,_0x3cdc01,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b111f){super(_0x1b111f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x107578,_0x23486d,_0xae99d1,_0xfdd131)=>{this['_model']['change'](()=>{for(const _0x5d41f4 of[..._0xfdd131,..._0xae99d1])this['_model']['markers']['has'](_0x5d41f4)&&_0x1b111f['editing']['reconvertMarker'](_0x5d41f4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1b111f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x1b111f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1b111f['config']['get']('trackChanges.trackFormatChanges'),_0x1b111f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1b111f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1b111f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e67a0=this['editor'],_0xa9f41b=(_0x195910,_0x4af2b4)=>{if('attribute'!=_0x195910)return'ck-suggestion-marker-'+_0x195910;const _0x1cb479=_0x4af2b4['split']('|')[0x0];return this['_isBlockAttribute'](_0x1cb479)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5e67a0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x96a95d=>{const {id:_0xebec54,authorId:_0x582005,type:_0x503605,subType:_0x49ec4d}=this['_splitMarkerName'](_0x96a95d['markerName']),_0x5c1f3c=['ck-suggestion-marker',_0xa9f41b(_0x503605,_0x49ec4d)];let _0x18bf13=0xbb8;return this['activeMarkers']['includes'](_0x96a95d['markerName'])&&(_0x5c1f3c['push']('ck-suggestion-marker--active'),_0x18bf13=0xbc2),'deletion'==_0x503605&&(_0x18bf13+=0x5),{'classes':_0x5c1f3c,'attributes':{'data-suggestion':_0xebec54,'data-author-id':_0x582005},'priority':_0x18bf13};}}),_0x5e67a0['conversion']['for']('dataDowncast')['add'](_0x32199a=>{_0x32199a['on']('addMarker:suggestion',(_0x3cedb9,_0x3f0df4,_0xf47a9f)=>{if(!_0xf47a9f['options']['showSuggestionHighlights'])return;const _0x27b59b=_0x3f0df4['item'];if(!_0x27b59b)return;const _0x2f54aa=_0xf47a9f['mapper']['toViewElement'](_0x27b59b);_0x5e67a0['model']['schema']['isObject'](_0x27b59b)&&_0x2f54aa&&!_0x2f54aa['getCustomProperty']('widget')&&_0x2f54aa['is']('containerElement')&&_0x2a42cf(_0x2f54aa,_0xf47a9f['writer']);},{'priority':'high'});}),_0x5e67a0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x266c5c,_0x3859a7)=>{if(!_0x3859a7['options']['showSuggestionHighlights'])return null;const {type:_0x1d8dd0,subType:_0xb13fc2}=this['_splitMarkerName'](_0x266c5c['markerName']);return{'classes':['ck-suggestion-marker',_0xa9f41b(_0x1d8dd0,_0xb13fc2)],'priority':0xbb8};}});const _0x91a1b9=({showActiveMarkers:_0xaad9e3=!0x0,isAttributeSuggestion:_0x1d1ea3=!0x1}={})=>(_0x5ae433,_0x21b7b1,_0x1afbeb)=>{if(!_0x21b7b1['item'])return;const {id:_0x3dac08,authorId:_0xfc17b7}=this['_splitMarkerName'](_0x21b7b1['markerName']);if(_0x1d1ea3){const _0x3a01c8=this['_suggestions']['get'](_0x3dac08),_0x233f8c=this['_getAttributeKey'](_0x3a01c8);if(!this['_isBlockAttribute'](_0x233f8c))return;}if(_0x21b7b1['item']['is']('selection'))return void _0x1afbeb['consumable']['consume'](_0x21b7b1['item'],_0x5ae433['name']);const _0x5a3d4c=_0x1afbeb['mapper']['toViewElement'](_0x21b7b1['item']);if(_0x21b7b1['item']['is']('element')&&_0x5e67a0['model']['schema']['isBlock'](_0x21b7b1['item'])&&!_0x5a3d4c['getCustomProperty']('addHighlight')){_0x1afbeb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5a3d4c),_0x1afbeb['writer']['setAttribute']('data-suggestion',_0x3dac08,_0x5a3d4c),_0x1afbeb['writer']['setAttribute']('data-author-id',_0xfc17b7,_0x5a3d4c),_0x1afbeb['mapper']['bindElementToMarker'](_0x5a3d4c,_0x21b7b1['markerName']),_0xaad9e3&&(this['activeMarkers']['includes'](_0x21b7b1['markerName'])?_0x1afbeb['writer']['addClass']('ck-suggestion-marker--active',_0x5a3d4c):_0x1afbeb['writer']['removeClass']('ck-suggestion-marker--active',_0x5a3d4c));for(const _0x91c6fa of _0x5e67a0['model']['createRangeIn'](_0x21b7b1['item'])['getItems']())_0x1afbeb['consumable']['consume'](_0x91c6fa,_0x5ae433['name']);_0x1afbeb['consumable']['consume'](_0x21b7b1['item'],_0x5ae433['name']);}};_0x5e67a0['conversion']['for']('dataDowncast')['add'](_0x484091=>{_0x484091['on']('addMarker:suggestion:formatBlock',(_0x355d28,_0x2ddbd4,_0x55c3c8)=>{_0x55c3c8['options']['showSuggestionHighlights']&&_0x91a1b9({'showActiveMarkers':!0x1})(_0x355d28,_0x2ddbd4,_0x55c3c8);},{'priority':'highest'});}),_0x5e67a0['conversion']['for']('dataDowncast')['add'](_0x4cb87b=>{_0x4cb87b['on']('addMarker:suggestion:attribute',(_0xc99651,_0xdae672,_0x436a19)=>{_0x436a19['options']['showSuggestionHighlights']&&_0x91a1b9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xc99651,_0xdae672,_0x436a19);},{'priority':'highest'});}),_0x5e67a0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x340f37,_0x20da31)=>_0x20da31['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x340f37['substr'](0xb)}}),_0x5e67a0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfe9cfa,{writer:_0x4594bd})=>{let _0x1b883e='suggestion:'+_0xfe9cfa['getAttribute']('suggestion-type')+':'+_0xfe9cfa['getAttribute']('id');return _0xfe9cfa['getAttribute']('marker-count')&&(_0x1b883e+=':'+_0xfe9cfa['getAttribute']('marker-count')),_0x4594bd['createElement']('$marker',{'data-name':_0x1b883e});}}),_0x5e67a0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e67a0['conversion']['for']('editingDowncast')['add'](_0x109941=>{_0x109941['on']('addMarker:suggestion:formatBlock',_0x91a1b9(),{'priority':'high'});}),_0x5e67a0['conversion']['for']('editingDowncast')['add'](_0x4b889e=>{_0x4b889e['on']('addMarker:suggestion:attribute',_0x91a1b9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5e67a0['conversion']['for']('editingDowncast')['add'](_0x303fec=>{_0x303fec['on']('removeMarker:suggestion:formatBlock',(_0x3020dc,_0x4c85be,_0x550e2f)=>{const _0x1f65a8=_0x550e2f['mapper']['markerNameToElements'](_0x4c85be['markerName']);if(_0x1f65a8){for(const _0x2dc7e1 of _0x1f65a8)_0x2dc7e1['getCustomProperty']('addHighlight')||(_0x550e2f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2dc7e1),_0x550e2f['writer']['removeAttribute']('data-suggestion',_0x2dc7e1),_0x550e2f['writer']['removeAttribute']('data-author-id',_0x2dc7e1),_0x550e2f['mapper']['unbindElementFromMarkerName'](_0x2dc7e1,_0x4c85be['markerName']));}},{'priority':'high'});}),_0x5e67a0['conversion']['for']('editingDowncast')['add'](_0x2ef880=>{_0x2ef880['on']('removeMarker:suggestion:attribute',(_0x3d7301,_0x4d55e4,_0x4457cf)=>{const _0x321fb4=_0x4457cf['mapper']['markerNameToElements'](_0x4d55e4['markerName']);if(!_0x321fb4)return;const {id:_0x356b37}=this['_splitMarkerName'](_0x4d55e4['markerName']),_0x220946=this['_suggestions']['get'](_0x356b37),_0x966b26=this['_getAttributeKey'](_0x220946);if(this['_isBlockAttribute'](_0x966b26)){for(const _0x4994f8 of _0x321fb4)_0x4994f8['getCustomProperty']('addHighlight')||(_0x4457cf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4994f8),_0x4457cf['writer']['removeAttribute']('data-suggestion',_0x4994f8),_0x4457cf['writer']['removeAttribute']('data-author-id',_0x4994f8),_0x4457cf['mapper']['unbindElementFromMarkerName'](_0x4994f8,_0x4d55e4['markerName']));}},{'priority':'high'});}),_0x5e67a0['model']['document']['registerPostFixer'](_0x11a231=>{let _0x438757=!0x1;const _0x5a3b63=Array['from'](_0x5e67a0['model']['document']['differ']['getChangedMarkers']()),_0xc6a0cc=new Set();for(const {name:_0x4e49a8,data:_0x456dde}of _0x5a3b63){const {group:_0x7648a1,type:_0x1f5bee,subType:_0x48432d,id:_0x50de33}=this['_splitMarkerName'](_0x4e49a8);if('suggestion'!==_0x7648a1)continue;const _0x4cb91a=this['_suggestions']['get'](_0x50de33);if(null!=_0x456dde['newRange']){'formatInline'==_0x1f5bee&&(_0x438757=_0x438757||Lt(_0x456dde['newRange'],_0x4e49a8,_0x11a231,_0x5e67a0['model']['schema']));const _0x55d6aa='attribute'==_0x1f5bee&&this['_isBlockAttribute'](_0x48432d['split']('|')[0x0]);if(_0x456dde['newRange']['isCollapsed']||'$graveyard'==_0x456dde['newRange']['root']['rootName']||'formatBlock'==_0x1f5bee&&!Kt(_0x456dde['newRange'])||_0x55d6aa&&!Kt(_0x456dde['newRange'])||'deletion'==_0x1f5bee&&!(!Gt(_0x4172ae=_0x456dde['newRange'])&&!function(_0x1feaae){return _0x1feaae['start']['parent']==_0x1feaae['end']['nodeBefore']&&_0x1feaae['start']['isAtEnd'];}(_0x4172ae)))_0x11a231['removeMarker'](_0x4e49a8),_0x438757=!0x0;else{if(!_0x4cb91a||!_0x4cb91a['isInContent'])continue;if(_0x456dde['newRange']&&_0x456dde['oldRange']&&_0x456dde['newRange']['isEqual'](_0x456dde['oldRange']))continue;_0xc6a0cc['add'](_0x4cb91a);}}}var _0x4172ae;return _0xc6a0cc['size']>0x0&&(_0x438757=!!this['_joinWithAdjacentSuggestions'](_0xc6a0cc)||_0x438757),_0x438757;}),_0x5e67a0['model']['document']['registerPostFixer'](_0x2d7c03=>{let _0x57e21b=!0x1;for(const _0x2e8d23 of _0x5e67a0['model']['document']['differ']['getChanges']())if('insert'==_0x2e8d23['type'])for(const _0xb0c551 of this['_suggestions']['values']()){if(_0xb0c551['isMultiRange']||!_0xb0c551['isInContent'])continue;const _0x243dbd='formatBlock'==_0xb0c551['type'],_0x2c92cb=this['_getAttributeKey'](_0xb0c551),_0x338380=_0x2c92cb&&this['_isBlockAttribute'](_0x2c92cb);if(!_0x243dbd&&!_0x338380)continue;const _0x42f8ff=_0xb0c551['getFirstRange']();if(_0x42f8ff['start']['parent']!=_0x42f8ff['end']['parent']&&!_0x42f8ff['end']['isAtEnd']){const _0x23263d=_0x5e67a0['model']['createPositionAt'](_0x42f8ff['start']['nodeAfter'],'end'),_0x225cf1=_0x5e67a0['model']['createRange'](_0x42f8ff['start'],_0x23263d);_0x2d7c03['updateMarker'](_0xb0c551['getFirstMarker'](),{'range':_0x225cf1}),_0x57e21b=!0x0;}}return _0x57e21b;}),_0x5e67a0['model']['document']['registerPostFixer'](_0x37ae6b=>this['_processAttributeChanges'](_0x37ae6b)),_0x5e67a0['model']['document']['registerPostFixer'](_0x249b87=>!_0x249b87['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x249b87)),_0x5e67a0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e67a0['model']['document']['on']('change:data',(_0x476acb,_0x5b05bd)=>{if(!_0x5b05bd['isLocal']||_0x5b05bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x49aeb4=_0x5e67a0['model']['document']['differ']['getChanges']();if(0x0==_0x49aeb4['length'])return;const _0x239cb4=[],_0x421ada=_0x49aeb4['filter'](_0x432a23=>'attribute'==_0x432a23['type']),_0x50d683=_0x49aeb4['filter'](_0x34ed4=>'insert'==_0x34ed4['type']&&'$text'!=_0x34ed4['name']);for(const _0x60def0 of _0x421ada)this['_isRegisteredAttribute'](_0x60def0['attributeKey'])&&_0x239cb4['push']({'key':_0x60def0['attributeKey'],'newValue':_0x60def0['attributeNewValue'],'oldValue':_0x60def0['attributeOldValue'],'range':Ht(_0x60def0['range'],_0x5e67a0['model'])});for(const _0x1d2820 of _0x50d683){if('rename'!=_0x1d2820['action']&&'refresh'!=_0x1d2820['action'])continue;const _0x3cfd34=qt(_0x1d2820['position']['nodeAfter'],_0x5e67a0['model']),_0x7cfbd2=_0x1d2820['before'];'rename'==_0x1d2820['action']&&_0x239cb4['push']({'key':u,'newValue':_0x1d2820['name'],'oldValue':_0x7cfbd2['name'],'range':_0x3cfd34});for(const [_0x55bb8a,_0x571eb1]of _0x7cfbd2['attributes']){if(!this['_isRegisteredAttribute'](_0x55bb8a))continue;const _0x4be19e=_0x1d2820['attributes']['get'](_0x55bb8a);_0x571eb1!==_0x4be19e&&_0x239cb4['push']({'key':_0x55bb8a,'newValue':_0x4be19e,'oldValue':_0x571eb1,'range':_0x3cfd34});}for(const [_0x4ca98e,_0xdb91e1]of _0x1d2820['attributes'])this['_isRegisteredAttribute'](_0x4ca98e)&&(_0x7cfbd2['attributes']['has'](_0x4ca98e)||_0x239cb4['push']({'key':_0x4ca98e,'newValue':_0xdb91e1,'oldValue':null,'range':_0x3cfd34}));}0x0!=_0x239cb4['length']&&_0x5e67a0['model']['enqueueChange'](_0x5b05bd,_0x4c6f1c=>{const _0x43ef58=_0x1c5a5c();for(const {range:_0x1b469e,key:_0x42969e,oldValue:_0x1abacb,newValue:_0x52f67a}of _0x239cb4)this['markAttributeChange'](_0x1b469e,_0x42969e,_0x1abacb,_0x52f67a,{'groupId':_0x43ef58});this['_reduceExistingSuggestions'](_0x4c6f1c,_0x239cb4);});},{'priority':'lowest'}),_0x5e67a0['model']['markers']['on']('update:suggestion',(_0x33f101,_0x36be02,_0x13d133)=>{if(null==_0x13d133){const {id:_0x545830}=this['_splitMarkerName'](_0x36be02['name']),_0x2b6ecb=this['_suggestions']['get'](_0x545830);_0x2b6ecb&&_0x2b6ecb['addMarkerName'](_0x36be02['name']);}}),_0x5e67a0['model']['document']['on']('change:data',()=>{const _0x2e3776=Array['from'](_0x5e67a0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x133df2=>'suggestion'===this['_splitMarkerName'](_0x133df2['name'])['group']);if(0x0===_0x2e3776['length'])return;_0x2e3776['sort']((_0x366f12,_0x2111b3)=>{const _0x2aa457=_0x366f12['data']['oldRange'],_0x1984fb=_0x2111b3['data']['oldRange'];return null===_0x2aa457&&null===_0x1984fb?0x0:null===_0x2aa457&&null!==_0x1984fb?-0x1:null!==_0x2aa457&&null===_0x1984fb?0x1:_0x2aa457['start']['isBefore'](_0x1984fb['start'])?-0x1:0x1;});const _0x31d84e=new Set(),_0x37ed71=new Set();for(const {name:_0x2a317d,data:_0xb41b04}of _0x2e3776){const {id:_0x13be63}=this['_splitMarkerName'](_0x2a317d);if(null===_0xb41b04['oldRange']){const _0x581002=this['_handleNewSuggestionMarker'](_0x2a317d);_0x37ed71['add'](_0x581002);}else{const _0x6cbfb7=this['_suggestions']['get'](_0x13be63);null!==_0xb41b04['newRange']||_0x6cbfb7['isInContent']?(_0x31d84e['add'](_0x6cbfb7['head']),_0x37ed71['add'](_0x6cbfb7)):this['_removeSuggestion'](_0x6cbfb7);}}_0x37ed71['size']>0x0&&this['_refreshSuggestionsChain'](_0x37ed71);for(const _0x33e84e of _0x31d84e)this['fire']('suggestionChanged',_0x33e84e);}),_0x5e67a0['model']['on']('applyOperation',(_0x3fcbb0,_0x56143d)=>{const _0x2b0f02=_0x56143d[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b0f02['isDocumentOperation'])return;if(_0x2b0f02['batch']['isUndo']||!_0x2b0f02['batch']['isLocal'])return;let _0x49241c,_0x31b6c5;switch(_0x2b0f02['type']){case'insert':_0x49241c=_0x5e67a0['model']['createPositionAt'](_0x2b0f02['position']),_0x31b6c5=_0x49241c['getShiftedBy'](_0x2b0f02['howMany']);break;case'split':_0x49241c=_0x5e67a0['model']['createPositionAt'](_0x2b0f02['splitPosition']),_0x31b6c5=_0x5e67a0['model']['createPositionAt'](_0x2b0f02['moveTargetPosition']);break;case'move':_0x49241c=_0x5e67a0['model']['createPositionAt'](_0x2b0f02['targetPosition']),_0x31b6c5=_0x49241c['getShiftedBy'](_0x2b0f02['howMany']);break;default:return;}const _0x4b5e5c=_0x5e67a0['model']['createRange'](_0x49241c,_0x31b6c5);_0x5e67a0['model']['change'](()=>{for(const {suggestion:_0x51c3c8,meta:_0x281e98}of this['_findSuggestions'](_0x4b5e5c)){if(_0x51c3c8['isMultiRange'])continue;if('formatInline'==_0x51c3c8['type'])continue;const _0xb3cb=this['_getAttributeKey'](_0x51c3c8);if(_0xb3cb&&this['_isBlockAttribute'](_0xb3cb)&&'split'!=_0x2b0f02['type'])continue;const _0x24153b=_0x51c3c8['data']&&_0x51c3c8['data']['multipleBlocks'];('formatBlock'!=_0x51c3c8['type']||'split'==_0x2b0f02['type']&&!_0x24153b)&&(_0x281e98['containsRangeInObject']||'insertion'==_0x51c3c8['type']&&_0x281e98['isOwn']||_0x51c3c8['getFirstRange']()['containsRange'](_0x4b5e5c)&&this['_breakSuggestionMarker'](_0x51c3c8,_0x49241c,_0x31b6c5));}});},{'priority':'lowest'}),_0x5e67a0['model']['on']('deleteContent',(_0x222778,_0x38f48b)=>{const _0x438384=_0x38f48b[0x0],_0x14c38a=_0x38f48b[0x1];if(_0x14c38a&&_0x14c38a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x438384['isCollapsed'])return;const _0x4ec517=_0x5e67a0['model']['schema'],{start:_0xddb761,end:_0x880462}=_0x438384['getFirstRange'](),_0x6a89c5=_0xddb761['nodeAfter']&&_0x4ec517['isLimit'](_0xddb761['nodeAfter'])?null:_0x4ec517['getNearestSelectionRange'](_0xddb761,'forward'),_0x126a66=_0x880462['nodeBefore']&&_0x4ec517['isLimit'](_0x880462['nodeBefore'])?null:_0x4ec517['getNearestSelectionRange'](_0x880462,'backward'),_0x49e8e7=_0x5e67a0['model']['createRange'](_0x6a89c5?_0x6a89c5['start']:_0xddb761,_0x126a66?_0x126a66['end']:_0x880462);_0x5e67a0['model']['change'](_0x1c9c6e=>{this['markDeletion'](_0x49e8e7);const _0x3e764b=_0x5e67a0['model']['schema']['getNearestSelectionRange'](_0x49e8e7['start']);_0x438384['is']('documentSelection')?_0x1c9c6e['setSelection'](_0x3e764b):_0x438384['setTo'](_0x3e764b);}),_0x222778['stop']();},{'priority':_0x2705bf['normal']+0xa}),_0x5e67a0['model']['on']('insertContent',(_0x4d2c0d,_0x4ef9ac)=>{const _0x40f65f=_0x4ef9ac[_0x4ef9ac['length']-0x1];_0x40f65f&&_0x40f65f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e67a0['model']['change'](()=>{let _0x2414b2=_0x5e67a0['model']['insertContent'](_0x4ef9ac[0x0],_0x4ef9ac[0x1],_0x4ef9ac[0x2],{'forceDefaultExecution':!0x0});if(!_0x2414b2)return;_0x4d2c0d['return']=_0x2414b2['clone']();const _0xa2a184=_0x2414b2['end']['nodeBefore'],_0xef3bb8=_0x5e67a0['model']['schema'];_0xa2a184&&_0xef3bb8['isBlock'](_0xa2a184)&&!_0xef3bb8['isObject'](_0xa2a184)&&(_0x2414b2=_0x5e67a0['model']['createRange'](_0x2414b2['start'],_0x5e67a0['model']['createPositionAt'](_0xa2a184,'end'))),this['markInsertion'](_0x2414b2);}),_0x4d2c0d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d313b=new O(_0x5e67a0,this['_suggestions']);_0x5e67a0['commands']['add']('acceptSuggestion',_0x5d313b),this['enableCommand']('acceptSuggestion');const _0x96ae2d=new R(_0x5e67a0,this['_suggestions']);_0x5e67a0['commands']['add']('discardSuggestion',_0x96ae2d),this['enableCommand']('discardSuggestion'),_0x5e67a0['commands']['add']('acceptAllSuggestions',new x(_0x5e67a0,_0x5d313b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e67a0['commands']['add']('discardAllSuggestions',new x(_0x5e67a0,_0x96ae2d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e67a0['commands']['add']('acceptSelectedSuggestions',new E(_0x5e67a0,_0x5d313b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e67a0['commands']['add']('discardSelectedSuggestions',new E(_0x5e67a0,_0x96ae2d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4e0ed2=_0x5e67a0['plugins']['get']('CommentsRepository');this['listenTo'](_0x4e0ed2,'addComment',(_0x5a33db,{threadId:_0x32147b})=>{const _0x140742=this['_suggestions']['get'](_0x32147b);_0x140742&&_0x140742['commentThread']&&0x1===_0x140742['commentThread']['length']&&this['_updateSuggestionData'](_0x32147b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4e0ed2,'removeComment',(_0x182cc4,{threadId:_0x1d5d25})=>{const _0x17099d=this['_suggestions']['get'](_0x1d5d25);_0x17099d&&_0x17099d['commentThread']&&!_0x17099d['commentThread']['length']&&this['_updateSuggestionData'](_0x1d5d25,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x353b41){const _0x111010=_0x32c72d([0x41,0x77,0x5a,0x66,0x6e,0x62,0x61,0x45,0x52,0x6a,0x43,0x56,0x39,0x63,0x4a,0x42,0x4d,0x69,0x73,0x70,0x51,0x7a,0x78,0x79,0x54,0x55,0x4b,0x30,0x75,0x64,0x53,0x68,0x32,0x31,0x58,0x74,0x59,0x6f,0x6d,0x37,0x38,0x72,0x6b,0x4e,0x50,0x67,0x4f,0x48,0x4c,0x44,0x36,0x71,0x33,0x49,0x47,0x46,0x57,0x6c,0x34,0x35,0x76,0x65]),_0x38f9ac=0x1702464d,_0x192f81=0x170519bd^_0x38f9ac,_0x438345=window[_0x32c72d([0x44,0x61,0x74,0x65])][_0x32c72d([0x6e,0x6f,0x77])](),_0x5682e0=_0x353b41[_0x32c72d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fecd9=new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31c495=>{_0x5682e0[_0x32c72d([0x6f,0x6e,0x63,0x65])](_0x32c72d([0x72,0x65,0x61,0x64,0x79]),_0x31c495);}),_0x4d2c3f={[_0x32c72d([0x6b,0x74,0x79])]:_0x32c72d([0x45,0x43]),[_0x32c72d([0x75,0x73,0x65])]:_0x32c72d([0x73,0x69,0x67]),[_0x32c72d([0x63,0x72,0x76])]:_0x32c72d([0x50,0x2d,0x32,0x35,0x36]),[_0x32c72d([0x78])]:_0x32c72d([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]),[_0x32c72d([0x79])]:_0x32c72d([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]),[_0x32c72d([0x61,0x6c,0x67])]:_0x32c72d([0x45,0x53,0x32,0x35,0x36])},_0x36d43e=_0x5682e0[_0x32c72d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32c72d([0x67,0x65,0x74])](_0x32c72d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ca2a7(){let _0x361c5c,_0x165667=null,_0x2f0cb5=null;try{if(_0x36d43e==_0x32c72d([0x47,0x50,0x4c]))return _0x32c72d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x361c5c=_0x21d1d4(),!_0x361c5c)return _0x32c72d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x361c5c[_0x32c72d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f0cb5=_0x7a328b(_0x361c5c[_0x32c72d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x361c5c[_0x32c72d([0x6a,0x74,0x69])])),await _0x2c112b()?_0x3b6226()?_0x52e10d()?_0x32c72d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34ff37()?(_0x361c5c[_0x32c72d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32c72d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x165667=_0x8fca21(_0x32c72d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x361c5c[_0x32c72d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32c72d([0x74,0x72,0x69,0x61,0x6c])&&(_0x165667=_0x8fca21(_0x32c72d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xe648c()):_0x32c72d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32c72d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32c72d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x26e1b1){return _0x32c72d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x52e10d(){const _0x537afc=[_0x32c72d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32c72d([0x74,0x72,0x69,0x61,0x6c])][_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361c5c[_0x32c72d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x438345/0x3e8:0xe10*_0x192f81;return _0x361c5c[_0x32c72d([0x65,0x78,0x70])]<_0x537afc;}function _0x3b6226(){const _0x2d81f1=_0x361c5c[_0x32c72d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d81f1)return!0x1;if(_0x2d81f1[_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32c72d([0x2a])))return!0x0;if(_0x2d81f1[_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32c72d([0x54,0x43])))return!0x0;if(_0x2d81f1[_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32c72d([0x52,0x54,0x43]))){if(_0x4216a4())return!0x0;if(_0x336140()||_0x4b000a())return!0x0;}return!0x1;}function _0x34ff37(){const _0x5d7ae2=_0x361c5c[_0x32c72d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d7ae2||0x0==_0x5d7ae2[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3b0c00}=new URL(window[_0x32c72d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d7ae2[_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b0c00))return!0x0;const _0x55a341=_0x3b0c00[_0x32c72d([0x73,0x70,0x6c,0x69,0x74])](_0x32c72d([0x2e]));return _0x5d7ae2[_0x32c72d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45cc30=>_0x45cc30[_0x32c72d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32c72d([0x2a])))[_0x32c72d([0x6d,0x61,0x70])](_0x435d38=>_0x435d38[_0x32c72d([0x73,0x70,0x6c,0x69,0x74])](_0x32c72d([0x2e])))[_0x32c72d([0x73,0x6f,0x6d,0x65])](_0x38d858=>_0x55a341[_0x32c72d([0x65,0x76,0x65,0x72,0x79])]((_0x639176,_0x48b9a1)=>_0x38d858[_0x48b9a1]===_0x639176||_0x38d858[_0x48b9a1]===_0x32c72d([0x2a])));}function _0xe648c(){return _0x165667&&_0x2f0cb5?new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d64b5,_0x4d1578)=>{_0x165667[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x3d64b5,_0x4d1578),_0x2f0cb5[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x4e8bf4=>{_0x4e8bf4!=_0x32c72d([0x56,0x61,0x6c,0x69,0x64])&&_0x3d64b5(_0x4e8bf4);},_0x4d1578);}):_0x165667||_0x2f0cb5||_0x32c72d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7a328b(_0x103880,_0x44071c){return new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ef6cf=>{if(_0x6a8a1c())return _0x3ef6cf(_0x32c72d([0x56,0x61,0x6c,0x69,0x64]));_0xb61c5(),_0x5682e0[_0x32c72d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32c72d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34e633=!0x1;const _0x11ecf7=_0x1c5a5c();function _0x594593(_0x6839cc){return!!_0x6839cc&&(typeof _0x6839cc===_0x32c72d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6839cc===_0x32c72d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6839cc[_0x32c72d([0x74,0x68,0x65,0x6e])]===_0x32c72d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6839cc[_0x32c72d([0x63,0x61,0x74,0x63,0x68])]===_0x32c72d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xaf1c51(_0x17a470){_0x3d7b0c(_0x17a470)[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x9614ff=>{if(!_0x9614ff||_0x9614ff[_0x32c72d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32c72d([0x6f,0x6b]))return _0x32c72d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38902e(_0x19142d(_0x11ecf7+_0x44071c))!=_0x9614ff[_0x32c72d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32c72d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32c72d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x5e26f2=>(_0x201810(),_0x5e26f2),()=>{const _0x5bc459=_0x12bbb5();return null==_0x5bc459?(_0x201810(),_0x32c72d([0x56,0x61,0x6c,0x69,0x64])):_0x32c72d(_0x438345-_0x5bc459>(0x330ec24d^_0x38f9ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x3ef6cf)[_0x32c72d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ef6cf(_0x32c72d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b6ffc=0x1734a8cd^_0x38f9ac;function _0x201810(){const _0x57b10c=_0x32c72d([0x6c,0x6c,0x63,0x74,0x2d])+_0x38902e(_0x19142d(_0x103880)),_0x2021f8=_0x2f05fb(_0x38902e(window[_0x32c72d([0x4d,0x61,0x74,0x68])][_0x32c72d([0x63,0x65,0x69,0x6c])](_0x438345/_0x5b6ffc)));window[_0x32c72d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32c72d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57b10c,_0x2021f8);}function _0x12bbb5(){const _0x16c027=_0x32c72d([0x6c,0x6c,0x63,0x74,0x2d])+_0x38902e(_0x19142d(_0x103880)),_0x1fd2a0=window[_0x32c72d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32c72d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16c027);return _0x1fd2a0?window[_0x32c72d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f05fb(_0x1fd2a0),0x10)*_0x5b6ffc:null;}function _0x3d7b0c(_0xa16962){return new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2569ed,_0xd67a25)=>{_0xa16962[_0x32c72d([0x74,0x68,0x65,0x6e])](_0x2569ed,_0xd67a25),window[_0x32c72d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd67a25,0x1703928d^_0x38f9ac);});}}_0x5682e0[_0x32c72d([0x6f,0x6e])](_0x32c72d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e230f,_0x2e4249)=>{if(_0x2e4249[0x0]!=_0x103880)return _0x3ef6cf(_0x32c72d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e4249[0x1]={..._0x2e4249[0x1],[_0x32c72d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x11ecf7};},{[_0x32c72d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32c72d([0x68,0x69,0x67,0x68])}),_0x5682e0[_0x32c72d([0x6f,0x6e])](_0x32c72d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c7859=>{_0x594593(_0x2c7859[_0x32c72d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34e633=!0x0,_0xaf1c51(_0x2c7859[_0x32c72d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32c72d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32c72d([0x6c,0x6f,0x77])}),_0x4fecd9[_0x32c72d([0x74,0x68,0x65,0x6e])](()=>{_0x34e633||_0x3ef6cf(_0x32c72d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6a8a1c(){return _0x5682e0[_0x32c72d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32c72d([0x76,0x69,0x65,0x77])][_0x32c72d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32c72d([0x61,0x75,0x74,0x6f]);}function _0xb61c5(){_0x5682e0[_0x32c72d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32c72d([0x76,0x69,0x65,0x77])][_0x32c72d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32c72d([0x61,0x75,0x74,0x6f]);}}function _0x8fca21(_0x50af81){const _0x18489c=[new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x489618=>setTimeout(_0x489618,0x170b7881^_0x38f9ac)),_0x4fecd9[_0x32c72d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccd85=>{let _0x1854a9=0x0;_0x5682e0[_0x32c72d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32c72d([0x6f,0x6e])](_0x32c72d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x60d6e8,_0x254b22)=>{_0x254b22[0x0][_0x32c72d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1854a9++,_0x1854a9==(0x170247b5^_0x38f9ac)&&(_0x2ccd85(),_0x60d6e8[_0x32c72d([0x6f,0x66,0x66])]());});}))];return window[_0x32c72d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32c72d([0x72,0x61,0x63,0x65])](_0x18489c)[_0x32c72d([0x74,0x68,0x65,0x6e])](()=>_0x50af81);}async function _0x36f5a0(){await _0x4fecd9,_0x5682e0[_0x32c72d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32c72d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27efb5,_0x5682e0[_0x32c72d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32c72d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27efb5,_0x5682e0[_0x32c72d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32c72d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4216a4(){return _0x17ba76(_0x32c72d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5d3e19(_0x32c72d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32c72d([0x73,0x74,0x61,0x74,0x65])]==_0x32c72d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x336140(){return _0x17ba76(_0x32c72d([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 _0x4b000a(){return _0x17ba76(_0x32c72d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2620b4(_0x1a84f4){const _0x1644f2=_0xd9b943();_0x5682e0[_0x1644f2]=_0x32c72d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a84f4,_0x1a84f4!=_0x32c72d([0x56,0x61,0x6c,0x69,0x64])&&_0x36f5a0();}function _0xd9b943(){const _0x5c5adc=window[_0x32c72d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32c72d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32c72d([0x6e,0x6f,0x77])]())[_0x32c72d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32c72d([0x2e]),'');let _0x118661=_0x32c72d([0x41]);for(let _0x225fc5=0x0;_0x225fc5<_0x5c5adc[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x225fc5+=0x2){let _0x4dddfb=window[_0x32c72d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c5adc[_0x32c72d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x225fc5,_0x225fc5+0x2));_0x4dddfb>=_0x111010[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4dddfb-=_0x111010[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x118661+=_0x111010[_0x4dddfb];}return _0x118661;}function _0x21d1d4(){const _0x133dac=_0x36d43e[_0x32c72d([0x73,0x70,0x6c,0x69,0x74])](_0x32c72d([0x2e]));if(0x3!=_0x133dac[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f3152(_0x133dac[0x1]);function _0x1f3152(_0x1dd3ef){const _0x464e5d=_0x1a4bbf(_0x1dd3ef);return _0x464e5d&&_0x4ec66a()?_0x464e5d:null;function _0x4ec66a(){const _0x5271d3=_0x464e5d[_0x32c72d([0x6a,0x74,0x69])],_0x5d6b26=window[_0x32c72d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5271d3[_0x32c72d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5271d3[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x416bdc={..._0x464e5d,[_0x32c72d([0x6a,0x74,0x69])]:_0x5271d3[_0x32c72d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5271d3[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x416bdc[_0x32c72d([0x76,0x63])],_0x19142d(_0x416bdc)==_0x5d6b26;}}}async function _0x2c112b(){let _0x284532=!0x0;try{const _0x2ccd16=_0x36d43e[_0x32c72d([0x73,0x70,0x6c,0x69,0x74])](_0x32c72d([0x2e])),[_0x4f87c4,_0x5cb832,_0x54b987]=_0x2ccd16;return _0x465b89(_0x4f87c4),await _0x56d4b1(_0x4f87c4,_0x5cb832,_0x54b987),_0x284532;}catch(_0xe2bf5){return!0x1;}function _0x465b89(_0x1f0bf2){const _0x194855=_0x1a4bbf(_0x1f0bf2);_0x194855&&_0x194855[_0x32c72d([0x61,0x6c,0x67])]==_0x32c72d([0x45,0x53,0x32,0x35,0x36])||(_0x284532=!0x1);}async function _0x56d4b1(_0x566f51,_0x5ecc21,_0x355dba){const _0x483e06=window[_0x32c72d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32c72d([0x66,0x72,0x6f,0x6d])](_0x4dba43(_0x355dba),_0x3a46c6=>_0x3a46c6[_0x32c72d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x418d0f=new window[(_0x32c72d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32c72d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x566f51+_0x32c72d([0x2e])+_0x5ecc21),_0x30e3be=window[_0x32c72d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32c72d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30e3be)return;const _0x48aa4c=await _0x30e3be[_0x32c72d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32c72d([0x6a,0x77,0x6b]),_0x4d2c3f,{[_0x32c72d([0x6e,0x61,0x6d,0x65])]:_0x32c72d([0x45,0x43,0x44,0x53,0x41]),[_0x32c72d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32c72d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32c72d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30e3be[_0x32c72d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32c72d([0x6e,0x61,0x6d,0x65])]:_0x32c72d([0x45,0x43,0x44,0x53,0x41]),[_0x32c72d([0x68,0x61,0x73,0x68])]:{[_0x32c72d([0x6e,0x61,0x6d,0x65])]:_0x32c72d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48aa4c,_0x483e06,_0x418d0f)||(_0x284532=!0x1);}}function _0x1a4bbf(_0x23c866){return _0x23c866[_0x32c72d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32c72d([0x65,0x79]))?JSON[_0x32c72d([0x70,0x61,0x72,0x73,0x65])](_0x4dba43(_0x23c866)):null;}function _0x4dba43(_0x2fa98a){return window[_0x32c72d([0x61,0x74,0x6f,0x62])](_0x2fa98a[_0x32c72d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32c72d([0x2b]))[_0x32c72d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32c72d([0x2f])));}function _0x19142d(_0x49597a){let _0x47165e=0x1505;function _0x290a6d(_0x244830){for(let _0x442864=0x0;_0x442864<_0x244830[_0x32c72d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x442864++){const _0x1f7396=_0x244830[_0x32c72d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x442864);_0x47165e=(_0x47165e<<0x5)+_0x47165e+_0x1f7396,_0x47165e&=_0x47165e;}}function _0x1ccab2(_0x5274b7){Array[_0x32c72d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5274b7)?_0x5274b7[_0x32c72d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ccab2):_0x5274b7&&typeof _0x5274b7==_0x32c72d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32c72d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5274b7)[_0x32c72d([0x73,0x6f,0x72,0x74])]()[_0x32c72d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f8cd9,_0x233a86])=>{_0x290a6d(_0x3f8cd9),_0x1ccab2(_0x233a86);}):_0x290a6d(window[_0x32c72d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5274b7));}return _0x1ccab2(_0x49597a),_0x47165e>>>0x0;}function _0x38902e(_0x2b8da9){return _0x2b8da9[_0x32c72d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32c72d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32c72d([0x30]));}function _0x2f05fb(_0x1d35d7){return _0x1d35d7[_0x32c72d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32c72d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32c72d([0x6a,0x6f,0x69,0x6e])]('');}function _0x17ba76(_0x1bd684){return _0x5682e0[_0x32c72d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32c72d([0x68,0x61,0x73])](_0x1bd684);}function _0x5d3e19(_0x2c361c){return _0x5682e0[_0x32c72d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32c72d([0x67,0x65,0x74])](_0x2c361c);}function _0x27efb5(){}function _0x32c72d(_0x107ee4){return _0x107ee4['map'](_0x45723f=>String['fromCharCode'](_0x45723f))['join']('');}_0x2620b4(await _0x1ca2a7());}(this);}set['adapter'](_0x38f75d){if(this['_adapter'])throw new _0x15acd3('track-changes-adapter-already-set',this);this['_adapter']=_0x38f75d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4a43b9=!0x1,toJSON:_0x576836=!0x1}={}){const _0x633261=[];for(const _0xdc365a of this['_suggestions']['values']())_0x4a43b9&&!_0xdc365a['isInContent']||_0x633261['push'](_0xdc365a);return _0x576836?_0x633261['map'](_0xe3fc76=>_0xe3fc76['toJSON']()):_0x633261;}['getSuggestion'](_0x2e049d){const _0xf6ac0=this['_suggestions']['get'](_0x2e049d);if(!_0xf6ac0)throw new _0x15acd3('track-changes-suggestion-not-found',this);return _0xf6ac0;}['hasSuggestion'](_0x90f68c){return this['_suggestions']['has'](_0x90f68c);}['addSuggestionData'](_0x1cfe3b){const {authorId:_0x9976b5,id:_0x42a44b,attributes:_0x1d25dc}=_0x1cfe3b,[_0x4182ae,_0x9fd989]=_0x1cfe3b['type']['split'](':'),_0x452c2c=this['_suggestions']['get'](_0x42a44b)||this['_createSuggestion'](_0x4182ae,_0x9fd989,_0x42a44b,_0x9976b5,_0x1d25dc);if(this['_addThreadToSuggestion'](_0x452c2c),this['_checkSuggestionCorrectness'](_0x452c2c,_0x4182ae,_0x9fd989||null,_0x9976b5),_0x452c2c['createdAt']=_0x1cfe3b['createdAt'],_0x452c2c['_isDataLoaded']=!0x0,_0x1d25dc&&_0x1d25dc['@external']){const _0x5d8a01=_0x1d25dc['@external'],_0x5ee034=this['_getExternalAuthor'](_0x5d8a01['authorName']);_0x452c2c['authoredAt']=_0x5d8a01['createdAt'],_0x452c2c['author']=_0x5ee034,_0x452c2c['isExternal']=!0x0;}else _0x452c2c['authoredAt']=_0x1cfe3b['createdAt'];switch(_0x1cfe3b['data']&&(_0x452c2c['data']=_0x1cfe3b['data']),_0x1cfe3b['attributes']&&(_0x452c2c['attributes']=_0x1cfe3b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x452c2c['_saved']=!0x0),this['_suggestionState']['get'](_0x452c2c)){case'notReady':this['_suggestionState']['set'](_0x452c2c,'dataReady');break;case'markerReady':_0x452c2c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x452c2c])),this['_refreshSuggestionsChain'](new Set([_0x452c2c])),this['_suggestionState']['set'](_0x452c2c,'ready'),this['fire']('suggestionLoaded',_0x452c2c)):this['_suggestionState']['set'](_0x452c2c,'removed');}return _0x452c2c;}['acceptSuggestion'](_0x5dec39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2ff876 of _0x5dec39['getAllAdjacentSuggestions']())_0x2ff876['accept']();});});}['discardSuggestion'](_0x59480b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2acee1 of _0x59480b['getAllAdjacentSuggestions']())_0x2acee1['discard']();});});}['enableCommand'](_0x24eb2a,_0xe6483c){const _0x22eb05=this['editor']['commands']['get'](_0x24eb2a);if(!_0x22eb05)throw new _0x15acd3('track-changes-command-not-found',this,{'commandName':_0x24eb2a});if(this['_enabledCommands']['has'](_0x22eb05))throw new _0x15acd3('track-changes-enable-command-twice',this,{'commandName':_0x24eb2a});this['_enabledCommands']['add'](_0x22eb05),_0xe6483c&&_0x22eb05['on']('execute',(_0x4b0443,_0x4d2c90)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d2c90['length']>0x0&&_0x4d2c90[_0x4d2c90['length']-0x1]&&_0x4d2c90[_0x4d2c90['length']-0x1]['forceDefaultExecution']?_0x4d2c90['pop']():(_0x4b0443['return']=_0xe6483c((..._0x13936f)=>_0x22eb05['execute'](..._0x13936f,{'forceDefaultExecution':!0x0}),..._0x4d2c90),_0x4b0443['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13d4b4){let _0x4309b0,_0x2fdb68;const _0x3e6348=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4309b0=_0x13d4b4();}catch(_0x340192){_0x2fdb68=_0x340192;}return _0x3e6348||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2fdb68&&_0x15acd3['rethrowUnexpectedError'](_0x2fdb68,this),_0x4309b0;}['markInsertion'](_0x454f1a,_0x18a5b2=null,_0x555c82={}){if(_0x454f1a['isCollapsed'])return null;const _0xe3df12=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22764a,meta:_0x3bbe6b}of this['_findSuggestions'](_0x454f1a,'insertion'))if(_0x3bbe6b['isOwn']){if(!_0x3bbe6b['isNextTo']){if(_0x3bbe6b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x22764a,_0x555c82))continue;return _0x22764a;}if(Qt(_0x22764a,_0x555c82))return _0x22764a;this['_breakSuggestionMarker'](_0x22764a,_0x454f1a['start'],_0x454f1a['end']);break;}if(_0x18a5b2==_0x22764a['subType']&&Qt(_0x22764a,_0x555c82)){const _0x287312=_0x22764a['getFirstRange']();return _0x287312['start']['isEqual'](_0x454f1a['end'])?this['_setSuggestionRange'](_0x22764a,this['_model']['createRange'](_0x454f1a['start'],_0x287312['end'])):this['_setSuggestionRange'](_0x22764a,this['_model']['createRange'](_0x287312['start'],_0x454f1a['end'])),_0x22764a;}}const _0xc2ee02=_0x1c5a5c(),_0x3899ac=_0xe3df12['id'],_0x1b7f84=_0x18a5b2?'insertion:'+_0x18a5b2:'insertion',_0x503c75=this['_setSuggestionData']({'id':_0xc2ee02,'type':_0x1b7f84,'createdAt':new Date(),'authorId':_0x3899ac,'attributes':_0x555c82});return this['_addSuggestionMarker'](_0x1b7f84,_0xc2ee02,_0x3899ac,_0x454f1a),_0x503c75;}['markMultiRangeInsertion'](_0x332972,_0x529cef='multi',_0x674212={}){const _0x105912=this['editor']['plugins']['get']('Users')['me'],_0x997da2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x529cef,'join');for(const _0x2e3f48 of this['getSuggestions']())if(_0x2e3f48['author']['id']==_0x105912['id']&&'insertion'==_0x2e3f48['type']&&_0x2e3f48['subType']==_0x529cef&&Qt(_0x2e3f48,_0x674212)&&(_0x997da2(_0x2e3f48['getRanges'](),_0x332972)||_0x997da2(_0x332972,_0x2e3f48['getRanges']()))){for(const _0x31d7b5 of _0x332972)_0x2e3f48['addRange'](_0x31d7b5);return _0x2e3f48;}for(const {suggestion:_0x2896c3,meta:_0x3659b4}of this['_findSuggestions'](_0x332972,'insertion')){if(!_0x3659b4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3659b4['containsRangeInObject'])continue;if(!Qt(_0x2896c3,_0x674212))continue;let _0x4ef7f1=!0x0;for(const _0x182513 of _0x2896c3['getRanges']())for(const _0x5e0a2d of _0x332972)if(!_0x182513['containsRange'](_0x5e0a2d)){_0x4ef7f1=!0x1;break;}if(_0x4ef7f1)return _0x2896c3;}const _0x3cac61=_0x1c5a5c(),_0x48719d=_0x105912['id'],_0x43574d='insertion:'+_0x529cef,_0xd1eb3f=this['_setSuggestionData']({'id':_0x3cac61,'type':_0x43574d,'createdAt':new Date(),'authorId':_0x48719d,'attributes':_0x674212});for(const _0x26500a of _0x332972)this['_addSuggestionMarker'](_0x43574d,_0x3cac61,_0x48719d,_0x26500a,o['getMultiRangeId']());return _0xd1eb3f;}['markInlineFormat'](_0x58ae83,_0x4d2157,_0x2a8a7c=null,_0x35b578={}){if(_0x2a8a7c=_0x2a8a7c||Jt(_0x4d2157),_0x58ae83['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x17b76f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a8a7c,'accept');return this['forceDefaultExecution'](()=>_0x17b76f([_0x58ae83],_0x4d2157,_0x35b578)),null;}const _0x47fe9a=this['editor']['plugins']['get']('Users')['me'],_0x233fac=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11f99c,meta:_0x3a4190}of this['_findSuggestions'](_0x58ae83,'insertion'))_0x3a4190['isOwn']&&!_0x3a4190['isInsideObject']&&_0x233fac['push'](..._0x11f99c['getRanges']());}const _0x50e576=function(_0x4d8094,_0x432ed4){const _0x22aa45=[];for(const _0x4007cb of _0x432ed4){const _0x576cf1=_0x4d8094['getIntersection'](_0x4007cb);_0x576cf1&&_0x22aa45['push'](_0x576cf1);}return _0x22aa45;}(_0x58ae83,_0x233fac),_0x39ec40=function(_0x321263,_0x2f8396){const _0x3ada83=[_0x321263];for(const _0x3787b3 of _0x2f8396){let _0x969cd5=0x0;for(;_0x969cd5<_0x3ada83['length'];){const _0x25c35f=_0x3ada83[_0x969cd5]['getDifference'](_0x3787b3);_0x3ada83['splice'](_0x969cd5,0x1,..._0x25c35f),_0x969cd5+=_0x25c35f['length'];}}return _0x3ada83;}(_0x58ae83,_0x233fac);_0x50e576['length']&&this['_model']['change'](()=>{for(const _0x53c852 of _0x50e576){const _0x1180c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a8a7c,'accept');this['forceDefaultExecution'](()=>_0x1180c7([_0x53c852],_0x4d2157,_0x35b578));}});for(const _0x1a52af of _0x39ec40){let _0x3646c8=null,_0x4c586e=_0x1a52af['start'],_0x3bfb52=_0x1a52af['end'];for(const {suggestion:_0x2f0279,meta:_0xd20750}of this['_findSuggestions'](_0x1a52af,'formatInline')){if(!_0xd20750['isOwn'])continue;if(_0x2f0279['subType']!=_0x2a8a7c)continue;if(!Qt(_0x2f0279,_0x35b578))continue;const _0x25aa3c=_0x2f0279['getFirstRange']();if(_0x25aa3c['containsRange'](_0x1a52af,!0x0))return null;_0x4c586e=_0x4c586e['isBefore'](_0x25aa3c['start'])?_0x4c586e:_0x25aa3c['start'],_0x3bfb52=_0x3bfb52['isAfter'](_0x25aa3c['end'])?_0x3bfb52:_0x25aa3c['end'],_0x3646c8?_0x25aa3c['start']['isBefore'](_0x3646c8['getFirstRange']()['start'])?(_0x3646c8['removeMarkers'](),_0x3646c8=_0x2f0279):_0x2f0279['removeMarkers']():_0x3646c8=_0x2f0279;}const _0x1f8cb2=this['_model']['createRange'](_0x4c586e,_0x3bfb52);if(_0x3646c8)this['_setSuggestionRange'](_0x3646c8,_0x1f8cb2);else{const _0x133540=_0x1c5a5c(),_0x41f62e=_0x47fe9a['id'];this['_setSuggestionData']({'id':_0x133540,'type':'formatInline:'+_0x2a8a7c,'data':_0x4d2157,'createdAt':new Date(),'authorId':_0x41f62e,'attributes':_0x35b578}),this['_addSuggestionMarker']('formatInline:'+_0x2a8a7c,_0x133540,_0x41f62e,_0x1f8cb2);}}return null;}['markBlockFormat'](_0x1bb05e,_0x56eded,_0x525286=[],_0x426679=null,_0x2759e3={}){_0x56eded['formatGroupId']||(_0x56eded['formatGroupId']=_0x56eded['commandName']),_0x56eded['multipleBlocks']=_0x1bb05e['is']('range'),_0x426679=_0x426679||Jt(_0x56eded);const _0x1bf1d2=_0x525286['map'](_0x4de5e8=>qt(_0x4de5e8,this['_model'])),_0x2f6fb6=_0x1bb05e['is']('range')?_0x1bb05e:qt(_0x1bb05e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x332cb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x426679,'accept');return this['forceDefaultExecution'](()=>_0x332cb5([_0x2f6fb6],_0x56eded,_0x2759e3)),null;}_0x1bf1d2['push'](_0x2f6fb6);let _0x1d05c4=!0x0;for(const _0x1c4019 of _0x1bf1d2)if(!this['_rangeIsInLocalUserInsertion'](_0x1c4019)){_0x1d05c4=!0x1;break;}if(_0x1d05c4&&'always'!==this['_trackFormatChanges']){const _0x1b228a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x426679,'accept');return this['forceDefaultExecution'](()=>_0x1b228a([_0x2f6fb6],_0x56eded,_0x2759e3)),null;}let _0x372573=null,_0x527d8a=_0x2f6fb6['start'],_0x176d11=_0x2f6fb6['end'];for(const {suggestion:_0x5e98e5,meta:_0x2eda2b}of this['_findSuggestions'](_0x2f6fb6,'formatBlock')){if(!_0x2eda2b['isOwn'])continue;if(_0x2eda2b['isNextTo']||_0x2eda2b['containsRangeInObject']||_0x2eda2b['isInsideObject'])continue;if(_0x5e98e5['data']['formatGroupId']!=_0x56eded['formatGroupId'])continue;if(!Qt(_0x5e98e5,_0x2759e3))continue;const _0x43a297=_0x5e98e5['getFirstRange']();if(_0x5e98e5['subType']==_0x426679){if(_0x43a297['containsRange'](_0x2f6fb6,!0x0))return null;_0x527d8a=_0x527d8a['isBefore'](_0x43a297['start'])?_0x527d8a:_0x43a297['start'],_0x176d11=_0x176d11['isAfter'](_0x43a297['end'])?_0x176d11:_0x43a297['end'],_0x372573?_0x43a297['start']['isBefore'](_0x372573['getFirstRange']()['start'])?(_0x372573['removeMarkers'](),_0x372573=_0x5e98e5):_0x5e98e5['removeMarkers']():_0x372573=_0x5e98e5;}else{const _0x303d2d=_0x2f6fb6['getIntersection'](_0x43a297);this['_cutOutSuggestionMarker'](_0x5e98e5,_0x303d2d);}}const _0x2dcf12=this['editor']['plugins']['get']('Users')['me'],_0x551ef9=_0x1c5a5c(),_0x37166b=_0x2dcf12['id'];if(_0x372573)return this['_setSuggestionRange'](_0x372573,this['_model']['createRange'](_0x527d8a,_0x176d11)),_0x372573;{const _0x43389d=this['_setSuggestionData']({'id':_0x551ef9,'type':'formatBlock:'+_0x426679,'data':_0x56eded,'createdAt':new Date(),'authorId':_0x37166b,'attributes':_0x2759e3});return this['_addSuggestionMarker']('formatBlock:'+_0x426679,_0x551ef9,_0x37166b,this['_model']['createRange'](_0x527d8a,_0x176d11)),_0x43389d;}}['markMultiRangeBlockFormat'](_0x30b2f8,_0x2da63f,_0x411881=[],_0xb73bce=null,_0x4acb2e={}){_0x2da63f['formatGroupId']||(_0x2da63f['formatGroupId']=_0x2da63f['commandName']);const _0x218a20=_0x30b2f8[0x0];_0x2da63f['multipleBlocks']=_0x218a20['is']('range'),_0xb73bce=_0xb73bce||Jt(_0x2da63f);const _0x8a83cd=_0x411881['map'](_0x5ec216=>qt(_0x5ec216,this['_model'])),_0x2750be=_0x218a20['is']('range')?_0x30b2f8:_0x30b2f8['map'](_0x8f6ad0=>qt(_0x8f6ad0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2027bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb73bce,'accept');return this['forceDefaultExecution'](()=>_0x2027bb(_0x2750be,_0x2da63f,_0x4acb2e)),null;}_0x8a83cd['push'](..._0x2750be);let _0x18d905=!0x0;for(const _0x205bef of _0x8a83cd)if(!this['_rangeIsInLocalUserInsertion'](_0x205bef)){_0x18d905=!0x1;break;}if(_0x18d905&&'always'!==this['_trackFormatChanges']){const _0x182686=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb73bce,'accept');return this['forceDefaultExecution'](()=>_0x182686(_0x2750be,_0x2da63f,_0x4acb2e)),null;}const _0x4b8e1b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4077b3 of this['getSuggestions']()){if(_0x4077b3['author']['id']!=_0x4b8e1b['id'])continue;if('formatBlock'!=_0x4077b3['type']||_0x4077b3['data']['formatGroupId']!=_0x2da63f['formatGroupId'])continue;if(!Qt(_0x4077b3,_0x4acb2e))continue;const _0x142d93=_0x4077b3['subType']==_0xb73bce;for(let _0x1a5405=0x0;_0x1a5405<_0x2750be['length'];_0x1a5405++){const _0x4042cf=_0x2750be[_0x1a5405];for(const _0x54029f of _0x4077b3['getMarkers']()){const _0x26f507=_0x54029f['getRange']();if(_0x4042cf['isEqual'](_0x26f507)){_0x142d93?(_0x2750be['splice'](_0x1a5405,0x1),_0x1a5405--):_0x4077b3['removeMarker'](_0x54029f['name']);break;}}}}if(0x0==_0x2750be['length'])return null;const _0x3c8065=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb73bce,'join');for(const _0x2486d8 of this['getSuggestions']())if(_0x2486d8['author']['id']==_0x4b8e1b['id']&&'formatBlock'==_0x2486d8['type']&&_0x2486d8['data']['formatGroupId']==_0x2da63f['formatGroupId']&&_0x2486d8['subType']==_0xb73bce&&Qt(_0x2486d8,_0x4acb2e)&&(_0x3c8065(_0x2486d8['getRanges'](),_0x2750be)||_0x3c8065(_0x2750be,_0x2486d8['getRanges']()))){for(const _0x4b0063 of _0x2750be)_0x2486d8['addRange'](_0x4b0063);return _0x2486d8;}const _0x41b9fc=_0x1c5a5c(),_0x5796d7=_0x4b8e1b['id'],_0x28806b='formatBlock:'+_0xb73bce,_0x52e95e=this['_setSuggestionData']({'id':_0x41b9fc,'type':_0x28806b,'data':_0x2da63f,'createdAt':new Date(),'authorId':_0x5796d7,'attributes':_0x4acb2e});for(const _0x6355c of _0x2750be)this['_addSuggestionMarker'](_0x28806b,_0x41b9fc,_0x5796d7,_0x6355c,o['getMultiRangeId']());return _0x52e95e;}['markDeletion'](_0x54d16f,_0x39bc21=null,_0x388278={}){if(_0x54d16f['isCollapsed'])return null;const _0x15b204=this['editor']['plugins']['get']('Users')['me'],_0x30fa68=new _0x4fb766(_0x54d16f['start'],_0x54d16f['end']);for(const {suggestion:_0x37c1b0,meta:_0x226f55}of this['_findSuggestions'](_0x30fa68,'insertion'))if(_0x226f55['isOwn']&&!_0x226f55['isNextTo']){if(_0x37c1b0['isMultiRange']){const _0x4cd6de=_0x37c1b0['getRanges']()['filter'](_0x473bd1=>'$graveyard'!=_0x473bd1['root']['rootName']);_0x4cd6de['every'](_0x155d9d=>_0x30fa68['containsRange'](_0x155d9d,!0x0))&&_0x37c1b0['discard']();if(_0x4cd6de['some'](_0x3a2079=>_0x3a2079['containsRange'](_0x30fa68,!0x0))){const _0x3b8a7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39bc21,'accept');return this['forceDefaultExecution'](()=>_0x3b8a7e([_0x30fa68],null,_0x388278)),null;}}else{const _0x530d80=_0x30fa68['getIntersection'](_0x37c1b0['getFirstRange']());null!==_0x530d80&&_0x37c1b0['_onDiscard']([_0x530d80],null,_0x388278);}}if(_0x30fa68['detach'](),_0x30fa68['isCollapsed']||'$graveyard'==_0x30fa68['root']['rootName'])return null;let _0x452b86=null,_0x592522=_0x30fa68['start'],_0x501527=_0x30fa68['end'];const _0x35a978=this['_findSuggestions'](_0x30fa68,'deletion');for(const {suggestion:_0x1ebdd5,meta:_0x2ae06e}of _0x35a978){const _0xea765f=this['_model']['createRange'](_0x592522,_0x501527);if(_0x2ae06e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ae06e['containsRangeInObject']&&!_0x2ae06e['isInsideObject'])){if(_0x1ebdd5['isMultiRange']){if(!Qt(_0x1ebdd5,_0x388278))continue;let _0x33edd8=!0x0;for(const _0x4f63f4 of _0x1ebdd5['getRanges']()){if(_0x4f63f4['containsRange'](_0xea765f,!0x0))return _0x1ebdd5;_0xea765f['containsRange'](_0x4f63f4)||(_0x33edd8=!0x1);}_0x33edd8&&_0x1ebdd5['discard']();}else{const _0x19aa29=_0x1ebdd5['getFirstRange']();if(_0x19aa29['containsRange'](_0xea765f,!0x0))return _0x1ebdd5;if(!Qt(_0x1ebdd5,_0x388278)){_0xea765f['containsRange'](_0x19aa29)?_0x1ebdd5['removeMarkers']():_0x19aa29['containsPosition'](_0x592522)?_0x592522=_0x19aa29['end']:_0x19aa29['containsPosition'](_0x501527)&&(_0x501527=_0x19aa29['start']);continue;}_0x592522=_0x592522['isBefore'](_0x19aa29['start'])?_0x592522:_0x19aa29['start'],_0x501527=_0x501527['isAfter'](_0x19aa29['end'])?_0x501527:_0x19aa29['end'],_0x388278=Object['assign']({},_0x1ebdd5['attributes']),_0x452b86?_0x19aa29['start']['isBefore'](_0x452b86['getFirstRange']()['start'])?(_0x452b86['removeMarkers'](),_0x452b86=_0x1ebdd5):_0x1ebdd5['removeMarkers']():_0x452b86=_0x1ebdd5;}}}if(_0x452b86)return this['_setSuggestionRange'](_0x452b86,this['_model']['createRange'](_0x592522,_0x501527)),_0x452b86;{const _0x24249c=_0x1c5a5c(),_0x1f4a38=this['_model']['createRange'](_0x592522,_0x501527),_0x3aecc7=_0x15b204['id'],_0x54bc0d=_0x39bc21?'deletion:'+_0x39bc21:'deletion',_0x56a73c=this['_setSuggestionData']({'id':_0x24249c,'type':_0x54bc0d,'createdAt':new Date(),'authorId':_0x3aecc7,'attributes':_0x388278});return this['_addSuggestionMarker'](_0x54bc0d,_0x24249c,_0x3aecc7,_0x1f4a38),_0x56a73c;}}['markMultiRangeDeletion'](_0x5cc781,_0x2be1a2='multi',_0x525cd8={}){const _0x12d108=this['editor']['plugins']['get']('Users')['me'],_0x29f91a=_0x5cc781['map'](_0x236ab1=>new _0x4fb766(_0x236ab1['start'],_0x236ab1['end'])),_0xb6755d=new Set();for(const {suggestion:_0x190d7a,meta:_0x439ba7}of this['_findSuggestions'](_0x29f91a,'insertion'))_0x439ba7['isOwn']&&!_0x439ba7['isNextTo']&&_0xb6755d['add'](_0x190d7a);for(const _0x31a9ad of _0xb6755d)if(_0x31a9ad['isMultiRange']){const _0x4ab844=_0x31a9ad['getRanges']();(!_0x31a9ad['attributes']||!_0x31a9ad['attributes']['skipNestingCheck'])&&(_0x4ab844['every'](_0x1cafc3=>_0x29f91a['some'](_0x1b450e=>_0x1b450e['containsRange'](_0x1cafc3,!0x0)))&&_0x31a9ad['discard']());if(_0x29f91a['every'](_0x3b83ce=>_0x4ab844['some'](_0xc37a11=>_0xc37a11['containsRange'](_0x3b83ce,!0x0)))){const _0x225282=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2be1a2,'accept');return this['forceDefaultExecution'](()=>_0x225282(_0x5cc781,null,_0x525cd8)),null;}}else{const _0x1ac06a=_0x31a9ad['getFirstRange']();_0x29f91a['some'](_0x2bc1cb=>_0x2bc1cb['containsRange'](_0x1ac06a,!0x0))&&_0x31a9ad['discard']();if(_0x29f91a['every'](_0x43c0a1=>_0x1ac06a['containsRange'](_0x43c0a1,!0x0))){const _0x52e9b7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2be1a2,'accept');return this['forceDefaultExecution'](()=>_0x52e9b7(_0x29f91a,null,_0x525cd8)),null;}}const _0x425519=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2be1a2,'join');let _0x40a40c=null;for(const _0x2cd63b of this['getSuggestions']())if(_0x2cd63b['author']['id']==_0x12d108['id']&&_0x2cd63b['isInContent']&&'deletion'==_0x2cd63b['type']&&_0x2cd63b['subType']==_0x2be1a2&&Qt(_0x2cd63b,_0x525cd8)&&(_0x425519(_0x2cd63b['getRanges'](),_0x29f91a)||_0x425519(_0x29f91a,_0x2cd63b['getRanges']()))){if(_0x40a40c){if(_0x2cd63b['commentThread']&&_0x2cd63b['commentThread']['length'])continue;for(const _0x46f158 of _0x2cd63b['getRanges']())_0x40a40c['isIntersectingWithRange'](_0x46f158)||_0x40a40c['addRange'](_0x46f158);_0x2cd63b['removeMarkers']();}else{_0x40a40c=_0x2cd63b;for(const _0x21d1fe of _0x29f91a)_0x2cd63b['isIntersectingWithRange'](_0x21d1fe)||_0x2cd63b['addRange'](_0x21d1fe);}}if(_0x40a40c)return _0x40a40c;_0xb6755d['clear']();for(const {suggestion:_0x5d4f2d,meta:_0x36eaac}of this['_findSuggestions'](_0x29f91a,'deletion'))_0x36eaac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36eaac['containsRangeInObject']&&!_0x36eaac['isInsideObject'])&&Qt(_0x5d4f2d,_0x525cd8)&&_0xb6755d['add'](_0x5d4f2d);for(const _0x315ebb of _0xb6755d){const _0x4d20e0=_0x315ebb['getRanges']();if(!_0x525cd8||!_0x525cd8['skipNestingCheck']){if(_0x29f91a['every'](_0x586d5d=>_0x4d20e0['some'](_0x2aaeb2=>_0x2aaeb2['containsRange'](_0x586d5d,!0x0))))return _0x315ebb;}(!_0x315ebb['attributes']||!_0x315ebb['attributes']['skipNestingCheck'])&&(_0x4d20e0['every'](_0x25a075=>_0x29f91a['some'](_0xc98921=>_0xc98921['containsRange'](_0x25a075,!0x0)))&&_0x315ebb['discard']());}const _0x322e30=_0x1c5a5c(),_0x256a00=_0x12d108['id'],_0x43e630='deletion:'+_0x2be1a2,_0x3d773a=this['_setSuggestionData']({'id':_0x322e30,'type':_0x43e630,'createdAt':new Date(),'authorId':_0x256a00,'attributes':_0x525cd8});for(const _0x434744 of _0x29f91a)_0x434744['detach'](),_0x434744['isCollapsed']||'$graveyard'==_0x434744['root']['rootName']||this['_addSuggestionMarker'](_0x43e630,_0x322e30,_0x256a00,_0x434744,o['getMultiRangeId']());return _0x3d773a;}['markAttributeChange'](_0x10d54c,_0x5235cd,_0x4820b0,_0x38e44b,_0x10d794){if(_0x10d54c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d97a0=this['editor']['plugins']['get']('Users')['me']['id'],_0x47c41b=Array['from'](this['_suggestions']['values']())['filter'](_0x550393=>'attribute'==_0x550393['type']&&_0x550393['data']['key']==_0x5235cd&&_0x550393['isIntersectingWithRange'](_0x10d54c));if('default'===this['_trackFormatChanges']){const _0x4a09f3=this['_findSuggestions'](_0x10d54c,'insertion')['filter'](({meta:_0x7fc694})=>_0x7fc694['isOwn']&&!_0x7fc694['isInsideObject']&&!_0x7fc694['isNextTo'])['map'](({suggestion:_0x18a883})=>_0x18a883);_0x47c41b['unshift'](..._0x4a09f3);}const _0x29cf2f=new Map([[_0x10d54c,_0x4820b0]]);for(const _0x558be2 of _0x47c41b){const _0x4e34d1='attribute'==_0x558be2['type']?_0x558be2['data']['oldValue']:void 0x0,_0x19e71b=_0x558be2['getFirstRange'](),_0x1dac40=Array['from'](_0x29cf2f['keys']())['find'](_0x58d065=>_0x58d065['isIntersecting'](_0x19e71b));if(!_0x1dac40)continue;const _0x2dea96=_0x1dac40['getDifference'](_0x19e71b);this['_isBlockAttribute'](_0x5235cd)&&'insertion'==_0x558be2['type']&&0x0!=_0x2dea96['length']||(_0x29cf2f['delete'](_0x1dac40),_0x2dea96['forEach'](_0x45d841=>{_0x29cf2f['set'](_0x45d841,_0x4820b0);}),'insertion'!=_0x558be2['type']&&_0x4e34d1!=_0x38e44b&&_0x29cf2f['set'](_0x1dac40['getIntersection'](_0x19e71b),_0x4e34d1));}const _0x26c034=[];for(const [_0xd500a6,_0x2449d1]of _0x29cf2f){const _0x5d7a9a=_0x1c5a5c(),_0x244797={'key':_0x5235cd,'oldValue':_0x2449d1,'newValue':_0x38e44b};_0x5235cd['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':_0x5235cd});const _0x560dc6=('attribute:'+(_0x5235cd+'|'+Jt({'newValue':_0x38e44b})))['substring'](0x0,0x3c),_0x4de7e8=this['_setSuggestionData']({'id':_0x5d7a9a,'type':_0x560dc6,'data':_0x244797,'createdAt':new Date(),'authorId':_0x1d97a0,'attributes':_0x10d794});_0x26c034['push'](_0x4de7e8),this['_addSuggestionMarker'](_0x560dc6,_0x5d7a9a,_0x1d97a0,_0xd500a6);}return _0x26c034;}['enableDefaultAttributesIntegration'](_0xda2094){this['enableCommand'](_0xda2094,(_0x289764,..._0x550a62)=>{this['_recordAttributeChanges'](()=>{_0x289764(..._0x550a62);});});}['registerBlockAttribute'](_0xe96f75){this['_blockAttributeKeys']['add'](_0xe96f75);}['registerInlineAttribute'](_0x2257d8){this['_inlineAttributeKeys']['add'](_0x2257d8);}['_getAttributeKey'](_0x3b9a26){return'attribute'==_0x3b9a26['type']?_0x3b9a26['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x26db1f,_0x42c70c){const _0x5ba7ec=_0x26db1f['getFirstMarker']();this['_model']['change'](_0x36aa02=>{_0x36aa02['updateMarker'](_0x5ba7ec,{'range':_0x42c70c});});}['_addThreadToSuggestion'](_0x326f0f){const _0x4ca47a=_0x326f0f['id'],_0x16c435=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4ca47a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x16c435,'threadId':_0x4ca47a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ef662=this['_commentsRepository']['getCommentThread'](_0x4ca47a);_0x1ef662['unbind']('isRemovable'),_0x1ef662['isRemovable']=!0x1,_0x326f0f['commentThread']=_0x1ef662;}['_checkSuggestionCorrectness'](_0x1a0061,_0x472d83,_0x134db4,_0x5e1662){if(_0x1a0061['type']!=_0x472d83||_0x1a0061['subType']!=_0x134db4||_0x1a0061['creator']['id']!=_0x5e1662)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x15acd3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x189f3a,_0x5baf7e){const _0xf5fe9=_0x189f3a['getFirstRange']();if(_0x5baf7e['isEqual'](_0xf5fe9))_0x189f3a['removeMarkers']();else{if(_0xf5fe9['containsRange'](_0x5baf7e)){const _0x1f9542=this['_model']['createPositionAt'](_0x5baf7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x189f3a,this['_model']['createRange'](_0xf5fe9['start'],_0x1f9542));const _0x4b04c3=_0x1c5a5c(),_0xfab6c4=_0x189f3a['creator']['id'],_0x24e416=_0x189f3a['type']+':'+_0x189f3a['subType'];this['_setSuggestionData']({'id':_0x4b04c3,'type':_0x24e416,'createdAt':new Date(),'authorId':_0xfab6c4,'data':_0x189f3a['data'],'attributes':_0x189f3a['attributes']});const _0x547b0c=this['_model']['createPositionAt'](_0x5baf7e['end']['parent'],'after'),_0x284d9c=this['_model']['createRange'](_0x547b0c,_0xf5fe9['end']);this['_addSuggestionMarker'](_0x24e416,_0x4b04c3,_0xfab6c4,_0x284d9c);}else{if(_0xf5fe9['containsPosition'](_0x5baf7e['start'])){const _0x2fbf5f=this['_model']['createPositionAt'](_0x5baf7e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x189f3a,this['_model']['createRange'](_0xf5fe9['start'],_0x2fbf5f));}else{const _0x46a775=this['_model']['createPositionAt'](_0x5baf7e['end']['parent'],'after');this['_setSuggestionRange'](_0x189f3a,this['_model']['createRange'](_0x46a775,_0xf5fe9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x137e09){for(const {suggestion:_0x5a1ea3,meta:_0x359f83}of this['_findSuggestions'](_0x137e09,'insertion')){if(!_0x359f83['isOwn'])continue;const _0x2ec987=_0x5a1ea3['getRanges']();for(const _0x3dd686 of _0x2ec987)if(!_0x137e09['getDifference'](_0x3dd686)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x394b6d){const _0x389727=this['editor']['plugins']['get']('Users')['getUser'](_0x394b6d);if(!_0x389727)throw new _0x15acd3('track-changes-user-not-found',this);return _0x389727;}['_getExternalAuthor'](_0x57e109){const _0x46168a=this['editor']['plugins']['get']('Users'),_0x30a4b2=_0x25e0b0('external:'+_0x57e109),_0x1e0c5b=_0x46168a['getUser'](_0x30a4b2);return _0x1e0c5b||_0x46168a['addUser']({'id':_0x30a4b2,'name':_0x57e109});}['_createSuggestion'](_0x786fe4,_0x16496,_0x37cc8e,_0x3d8b24,_0x7fdc4c){const _0x1c6c80=this['_getAuthorFromId'](_0x3d8b24),_0x5e8da9=this['_suggestionFactory']['buildSuggestion'](_0x786fe4,_0x16496,_0x37cc8e,_0x1c6c80,_0x7fdc4c,_0x4fcb27=>{this['_updateSuggestionData'](_0x37cc8e,{'attributes':_0x4fcb27});const _0x4852da=this['getSuggestion'](_0x37cc8e);this['_joinWithAdjacentSuggestions'](new Set([_0x4852da])),this['_refreshSuggestionsChain'](new Set([_0x4852da]));});return this['listenTo'](_0x5e8da9,'accept',()=>{this['_updateSuggestionData'](_0x37cc8e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e8da9,'discard',()=>{this['_updateSuggestionData'](_0x37cc8e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x37cc8e,_0x5e8da9),this['_suggestionState']['set'](_0x5e8da9,'notReady'),_0x5e8da9;}['_splitMarkerName'](_0x3047f6){const _0x520521=_0x3047f6['split'](':');return{'group':_0x520521[0x0],'type':_0x520521[0x1],'subType':_0x520521['length']>=0x5?_0x520521[0x2]:null,'id':_0x520521['length']<0x5?_0x520521[0x2]:_0x520521[0x3],'authorId':_0x520521['length']<0x5?_0x520521[0x3]:_0x520521[0x4],'markerCount':0x6==_0x520521['length']?_0x520521[0x5]:null};}['_breakSuggestionMarker'](_0x4b5a15,_0x2b1196,_0x4428eb){const _0x54d8a2=_0x4b5a15['getFirstRange'](),_0x3a2a1d=_0x54d8a2['start'],_0x4b7ed3=_0x54d8a2['end'];this['_setSuggestionRange'](_0x4b5a15,this['_model']['createRange'](_0x3a2a1d,_0x2b1196));const _0x24242a=_0x1c5a5c(),_0x4564eb=_0x4b5a15['creator']['id'],_0x30f5c6=_0x4b5a15['type']+(_0x4b5a15['subType']?':'+_0x4b5a15['subType']:'');this['_setSuggestionData']({'id':_0x24242a,'type':_0x30f5c6,'createdAt':new Date(),'authorId':_0x4564eb,'originalSuggestionId':_0x4b5a15['id'],'attributes':_0x4b5a15['attributes'],'data':_0x4b5a15['data']});const _0x15cf2f=this['_getAttributeKey'](_0x4b5a15);('formatBlock'==_0x4b5a15['type']||_0x15cf2f&&this['_isBlockAttribute'](_0x15cf2f))&&(_0x4428eb=this['_model']['createPositionBefore'](_0x4428eb['parent'])),this['_addSuggestionMarker'](_0x30f5c6,_0x24242a,_0x4564eb,this['_model']['createRange'](_0x4428eb,_0x4b7ed3));}['_findSuggestions'](_0x39cfe1,_0x47ff5f=null){const _0x50e351=[],_0x2c2790=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x39cfe1)||(_0x39cfe1=[_0x39cfe1]);for(const _0x2b8f4e of this['getSuggestions']()){if(!_0x2b8f4e['isInContent'])continue;if(_0x47ff5f&&_0x2b8f4e['type']!=_0x47ff5f)continue;let _0x3d2ded=!0x1;for(const _0x3e7688 of _0x2b8f4e['getRanges']()){for(const _0xfc1b92 of _0x39cfe1){const _0x341f40=_0xfc1b92['start']['isEqual'](_0x3e7688['end'])||_0xfc1b92['end']['isEqual'](_0x3e7688['start']);if(_0x341f40||_0xfc1b92['getIntersection'](_0x3e7688)){const _0x3de384=_0xfc1b92['containsRange'](_0x3e7688)&&Pt(this['_model']['schema'],_0x3e7688['start'],_0xfc1b92),_0x3f5024=_0x3e7688['containsRange'](_0xfc1b92)&&Pt(this['_model']['schema'],_0xfc1b92['start'],_0x3e7688);_0x50e351['push']({'suggestion':_0x2b8f4e,'meta':{'isOwn':_0x2c2790==_0x2b8f4e['author'],'isNextTo':_0x341f40,'isInsideObject':_0x3de384,'containsRangeInObject':_0x3f5024}}),_0x3d2ded=!0x0;break;}}if(_0x3d2ded)break;}}return _0x50e351;}['_addSuggestionMarker'](_0x1c65b2,_0x23ce4f,_0x114120,_0x5eb898,_0x1d4085){this['_model']['change'](_0x169b68=>{let _0x52e883='suggestion:'+_0x1c65b2+':'+_0x23ce4f+':'+_0x114120;_0x1d4085&&(_0x52e883=_0x52e883+':'+_0x1d4085),_0x169b68['addMarker'](_0x52e883,{'range':_0x5eb898,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc735f2){const _0x8b627f=_0xc735f2['previous'],_0x336f57=_0xc735f2['next'];_0xc735f2['previous']=null,_0xc735f2['next']=null,null!=_0x8b627f&&_0x8b627f['next']==_0xc735f2&&(_0x8b627f['next']=_0x336f57),null!=_0x336f57&&_0x336f57['previous']==_0xc735f2&&(_0x336f57['previous']=_0x8b627f),'ready'==this['_suggestionState']['get'](_0xc735f2)&&(this['_suggestionState']['set'](_0xc735f2,'removed'),this['fire']('suggestionUnloaded',_0xc735f2,_0x8b627f,_0x336f57));}['_setSuggestionData'](_0x359368){const _0x464007=_0x359368['id'],_0x592a3a=this['addSuggestionData'](_0x359368);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x221277=this['editor']['plugins']['get']('PendingActions'),_0x4386cc=_0x592a3a['hasComments'],_0x210768=_0x592a3a['subType']?_0x592a3a['type']+':'+_0x592a3a['subType']:_0x592a3a['type'],_0x107c18=this['editor']['locale'],_0x2d0a38=_0x221277['add'](c(_0x107c18,'PENDING_ACTION_SUGGESTION')),_0x3bcdbf={'id':_0x464007,'type':_0x210768,'hasComments':_0x4386cc,'data':_0x359368['data']||null,'originalSuggestionId':_0x359368['originalSuggestionId']||null,'attributes':_0x592a3a['attributes']};this['_adapter']['addSuggestion'](_0x3bcdbf)['then'](_0x3fccbf=>{_0x592a3a['_saved']=!0x0,_0x221277['remove'](_0x2d0a38),_0x3fccbf&&_0x3fccbf['createdAt']&&(this['_suggestions']['get'](_0x464007)['createdAt']=_0x3fccbf['createdAt']);})['catch'](_0x54e069=>{throw _0x51d810('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x592a3a['discard']();}),_0x592a3a['stopListening'](),this['_suggestions']['delete'](_0x592a3a['id']),this['_suggestionState']['delete'](_0x592a3a),_0x54e069;});}return _0x592a3a;}['_isBlockAttribute'](_0x304018){return this['_blockAttributeKeys']['has'](_0x304018);}['_updateSuggestionData'](_0x1820a8,_0x599469){const _0x15af40=this['editor']['plugins']['get']('PendingActions'),_0x1180dc=this['getSuggestion'](_0x1820a8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1180dc['_saved']){const _0x39876a=_0x15af40['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1820a8,_0x599469)['then'](()=>{_0x15af40['remove'](_0x39876a);});}else _0x1180dc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1820a8,_0x599469);});}}['_getSuggestionData'](_0x4a8ce3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x15acd3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a8ce3);}['_handleNewSuggestionMarker'](_0x3bcf80){const {id:_0x32b08d,type:_0x5b820b,subType:_0x38e2d2,authorId:_0x51b164}=this['_splitMarkerName'](_0x3bcf80),_0x35f5fd=this['_suggestions']['get'](_0x32b08d)||this['_createSuggestion'](_0x5b820b,_0x38e2d2,_0x32b08d,_0x51b164,{});switch(this['_checkSuggestionCorrectness'](_0x35f5fd,_0x5b820b,_0x38e2d2,_0x51b164),this['_suggestionState']['get'](_0x35f5fd)){case'notReady':this['_getSuggestionData'](_0x32b08d)['then'](_0x5b918b=>{let _0x14a60=Promise['resolve']();_0x5b918b['hasComments']&&(_0x14a60=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x32b08d})),_0x14a60['then'](()=>{this['addSuggestionData'](_0x5b918b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35f5fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x32b08d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35f5fd,'ready'),this['fire']('suggestionLoaded',_0x35f5fd);break;case'ready':this['fire']('suggestionChanged',_0x35f5fd);}return _0x35f5fd['addMarkerName'](_0x3bcf80),_0x35f5fd;}['_refreshSuggestionsChain'](_0x470023){const _0x1b5819=Array['from'](_0x470023),_0x5be675=_0x1b5819['filter'](_0x391730=>'attribute'==_0x391730['type']);this['_refreshAttributeSuggestionsChain'](_0x5be675);const _0x300eb4=_0x1b5819['filter'](_0xc4577c=>!_0xc4577c['isMultiRange']&&'attribute'!=_0xc4577c['type']),_0x3da0df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac78f=>!_0x3ac78f['isMultiRange']&&'attribute'!=_0x3ac78f['type']),_0x34904b=_0x3da0df['filter'](_0x4d214a=>!_0x470023['has'](_0x4d214a)),_0x277920=new Map(_0x3da0df['map'](_0x226b02=>[_0x226b02,this['_suggestionFactory']['getSuggestionCallback'](_0x226b02['type'],_0x226b02['subType'],'chain')])),_0x116730=new Map(_0x3da0df['map'](_0x26d84a=>[_0x26d84a,_0x26d84a['getFirstRange']()])),_0x2f20d3=new Set(),_0x4da896=new Set();for(let _0x525ab2=0x0;_0x525ab2<_0x300eb4['length'];_0x525ab2++)_0x1be5a8(_0x300eb4[_0x525ab2],_0x300eb4,_0x525ab2+0x1);for(let _0x43cb7e=0x0;_0x43cb7e<_0x300eb4['length'];_0x43cb7e++)_0x1be5a8(_0x300eb4[_0x43cb7e],_0x34904b,0x0);const _0x3c7c54=new Set();for(let _0x4652d9=0x0;_0x4652d9<_0x300eb4['length'];_0x4652d9++){const _0x2c790d=_0x300eb4[_0x4652d9];!_0x4da896['has'](_0x2c790d)&&_0x2c790d['previous']&&(_0x3c7c54['add'](_0x2c790d['previous']),_0x2c790d['previous']['next']===_0x2c790d&&(_0x2c790d['previous']['next']=null),_0x2c790d['previous']=null),!_0x2f20d3['has'](_0x2c790d)&&_0x2c790d['next']&&(_0x3c7c54['add'](_0x2c790d['next']),_0x2c790d['next']['previous']===_0x2c790d&&(_0x2c790d['next']['previous']=null),_0x2c790d['next']=null);}function _0x1be5a8(_0x2e6ff5,_0x839b97,_0x5f5174){for(let _0x379c2b=_0x5f5174;_0x379c2b<_0x839b97['length'];_0x379c2b++){const _0x3b1867=_0x1351e3(_0x2e6ff5,_0x839b97[_0x379c2b]);_0x3b1867&&(_0x3b1867[0x0]['next']=_0x3b1867[0x1],_0x3b1867[0x1]['previous']=_0x3b1867[0x0],_0x2f20d3['add'](_0x3b1867[0x0]),_0x4da896['add'](_0x3b1867[0x1]));}}function _0x1351e3(_0xb98ea4,_0x2764de){if(_0xb98ea4['author']['id']!==_0x2764de['author']['id'])return null;const _0x375d5b=_0x277920['get'](_0xb98ea4)(_0xb98ea4,_0x2764de,_0x116730['get'](_0xb98ea4),_0x116730['get'](_0x2764de));if(!_0x375d5b)return null;return _0x277920['get'](_0x2764de)(_0xb98ea4,_0x2764de,_0x116730['get'](_0xb98ea4),_0x116730['get'](_0x2764de))?_0x375d5b[0x1]['commentThread']&&_0x375d5b[0x1]['commentThread']['length']?null:_0x375d5b:null;}_0x3c7c54['size']&&this['_refreshSuggestionsChain'](_0x3c7c54);}['_refreshAttributeSuggestionsChain'](_0x41a28e){if(0x0==_0x41a28e['length'])return;const _0x9c0a5d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b02d9=>'attribute'==_0x2b02d9['type']&&_0x2b02d9['_isDataLoaded']),_0x1f9268=[],_0x5232bd=new Map();for(const _0x33f695 of _0x9c0a5d){const _0x50934b=_0x25e0b0(_0x33f695['attributes']);_0x5232bd['has'](_0x50934b)||(_0x5232bd['set'](_0x50934b,_0x1f9268['length']),_0x1f9268['push']([]));const _0x5acfa7=_0x5232bd['get'](_0x50934b);_0x1f9268[_0x5acfa7]['push'](_0x33f695);}!(function(){_0x1f9268['sort']((_0x26b678,_0x47a0c8)=>{const _0x487822=_0x26b678[0x0]['createdAt'],_0x48e8b3=_0x47a0c8[0x0]['createdAt'];return _0x487822==_0x48e8b3?_0x26b678[0x0]['attributes']['groupId']<_0x47a0c8[0x0]['attributes']['groupId']?-0x1:0x1:_0x487822<_0x48e8b3?-0x1:0x1;});for(const _0x41fdd1 of _0x1f9268)_0x41fdd1['sort']((_0x385aec,_0x1f8a37)=>_0x385aec['id']<_0x1f8a37['id']?-0x1:0x1);}());for(let _0xc8ff3f=0x0;_0xc8ff3f<_0x1f9268['length'];_0xc8ff3f++){if(0x0==_0x1f9268[_0xc8ff3f]['length'])continue;const _0x575d35=[];for(let _0x5a532c=_0xc8ff3f+0x1;_0x5a532c<_0x1f9268['length'];_0x5a532c++)0x0!=_0x1f9268[_0x5a532c]['length']&&_0x1be345(_0x1f9268[_0xc8ff3f],_0x1f9268[_0x5a532c])&&_0x575d35['push'](_0x5a532c);for(const _0x2de8fd of _0x575d35)_0x1f9268[_0xc8ff3f]=_0x1f9268[_0xc8ff3f]['concat'](_0x1f9268[_0x2de8fd]),_0x1f9268[_0x2de8fd]=[];}for(const _0x204c90 of _0x1f9268)for(let _0x753028=0x0;_0x753028<_0x204c90['length'];_0x753028++){const _0x237aa0=_0x204c90[_0x753028+0x1]||null;_0x204c90[_0x753028]['next']!==_0x237aa0&&(_0x204c90[_0x753028]['next']=_0x237aa0);}for(const _0x484b1f of _0x1f9268)for(let _0x2f1a45=0x0;_0x2f1a45<_0x484b1f['length'];_0x2f1a45++){const _0x3b5acf=_0x484b1f[_0x2f1a45-0x1]||null;_0x484b1f[_0x2f1a45]['previous']!==_0x3b5acf&&(_0x484b1f[_0x2f1a45]['previous']=_0x3b5acf);}function _0x1be345(_0x4828d9,_0x2254f5){if(_0x4828d9[0x0]['attributes']['groupId']!==_0x2254f5[0x0]['attributes']['groupId']&&_0x4828d9[0x0]['author']!==_0x2254f5[0x0]['author'])return!0x1;if(!function(_0x38603f,_0x439f47){if(!_0x38603f['hasComments']&&!_0x439f47['hasComments'])return!0x0;if(_0x38603f['hasComments']&&_0x439f47['hasComments'])return!0x1;if(_0x38603f['hasComments']&&_0x439f47['createdAt']<_0x38603f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x439f47['hasComments']&&_0x38603f['createdAt']<_0x439f47['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4828d9[0x0],_0x2254f5[0x0]))return!0x1;const _0x271682=Vt(_0x4828d9[0x0]['attributes'],'groupId'),_0x12ddb3=Vt(_0x2254f5[0x0]['attributes'],'groupId');if(!_0x31e1d9(_0x271682,_0x12ddb3))return!0x1;return!!_0x4828d9['every'](_0x1c01d0=>_0x2254f5['some'](_0x5e0586=>_0x1c01d0['getFirstRange']()['isEqual'](_0x5e0586['getFirstRange']())))&&_0x2254f5['every'](_0x377c63=>_0x4828d9['some'](_0x6dccf3=>_0x377c63['getFirstRange']()['isEqual'](_0x6dccf3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x165123){const _0x24f0dc=Array['from'](_0x165123),_0x320b1b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x326122=_0x320b1b['filter'](_0x4c94be=>!_0x165123['has'](_0x4c94be)),_0x417df4=new Map(_0x24f0dc['map'](_0x4a0b6c=>[_0x4a0b6c,this['_suggestionFactory']['getSuggestionCallback'](_0x4a0b6c['type'],_0x4a0b6c['subType'],'join')])),_0x316b32=new Map(_0x320b1b['map'](_0x41ba31=>[_0x41ba31,_0x41ba31['getRanges']()]));for(let _0x283c09=0x0;_0x283c09<_0x24f0dc['length'];_0x283c09++){if(_0x27020d(this,_0x24f0dc[_0x283c09],_0x24f0dc,_0x283c09+0x1))return!0x0;}for(let _0x59d796=0x0;_0x59d796<_0x24f0dc['length'];_0x59d796++){if(_0x27020d(this,_0x24f0dc[_0x59d796],_0x326122,0x0))return!0x0;}return!0x1;function _0x27020d(_0xd14337,_0x23e8d8,_0x2c50e7,_0x2b9c33){for(let _0x3bbd92=_0x2b9c33;_0x3bbd92<_0x2c50e7['length'];_0x3bbd92++){const _0x2e1608=_0x2c50e7[_0x3bbd92];if(_0x2e1608['type']!==_0x23e8d8['type']||_0x2e1608['author']['id']!==_0x23e8d8['author']['id']||_0x2e1608['subType']!==_0x23e8d8['subType'])continue;if(!Wt(_0x23e8d8,_0x2e1608))continue;if('attribute'==_0x23e8d8['type']&&_0x23e8d8['data']['oldValue']!=_0x2e1608['data']['oldValue'])continue;if('attribute'==_0x23e8d8['type']&&_0xd14337['_isBlockAttribute'](_0x23e8d8['data']['key']))continue;if('formatBlock'==_0x23e8d8['type']){const _0x21fe81=_0xd14337['editor']['model'],_0x292580=_0x23e8d8['getContainedElement']();if(_0x292580&&(_0x21fe81['schema']['isObject'](_0x292580)||_0x21fe81['schema']['isLimit'](_0x292580)))continue;}const _0x31833c=_0x417df4['get'](_0x23e8d8),_0x318192=_0x316b32['get'](_0x23e8d8),_0x51851a=_0x316b32['get'](_0x2e1608),_0x3ceba6=_0x23e8d8['commentThread']&&_0x23e8d8['commentThread']['length'],_0x1ac89b=_0x2e1608['commentThread']&&_0x2e1608['commentThread']['length'];if(!_0x3ceba6&&_0x31833c(_0x51851a,_0x318192))return _0xd14337['_joinSuggestions'](_0x2e1608,_0x23e8d8),_0x316b32['delete'](_0x23e8d8),!0x0;if(!_0x1ac89b&&_0x31833c(_0x318192,_0x51851a))return _0xd14337['_joinSuggestions'](_0x23e8d8,_0x2e1608),_0x316b32['delete'](_0x2e1608),!0x0;}return!0x1;}}['_joinSuggestions'](_0x17acaf,_0x3c0bb7){if(_0x17acaf['isMultiRange']){for(const _0x13a5c8 of _0x3c0bb7['getRanges']())_0x17acaf['addRange'](_0x13a5c8);}else{const _0x2372d6=_0x3c0bb7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x17acaf,this['_model']['createRange'](_0x17acaf['getFirstRange']()['start'],_0x2372d6));}_0x3c0bb7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29b674,_0x1a93dc,_0x3b2c88){const _0x365732=_0x29b674['startsWith']('format')||_0x29b674['startsWith']('attribute')?'FORMATTING':_0x29b674['toUpperCase']();return c(this['editor']['locale'],_0x1a93dc+'_'+_0x365732+'_SUGGESTION_ANNOUNCEMENT',_0x3b2c88);}['_initAriaMarkerChangeAnnouncements'](){const _0x428b0a=this['editor'];if(!_0x428b0a['ui'])return;const {ariaLiveAnnouncer:_0x75a823}=_0x428b0a['ui'];_0x375834(this['_model'],({left:_0x445f4d,entered:_0x14ab2c})=>{for(const _0x5058ad of _0x445f4d){const {group:_0x41c2af,type:_0x842774}=this['_splitMarkerName'](_0x5058ad['name']);if('suggestion'===_0x41c2af){_0x75a823['announce'](this['_getMarkerAnnouncementText'](_0x842774,'LEAVE'));break;}}for(const _0x4b44ad of _0x14ab2c){const {group:_0x1f6437,type:_0x34f847}=this['_splitMarkerName'](_0x4b44ad['name']);if('suggestion'===_0x1f6437){_0x75a823['announce'](this['_getMarkerAnnouncementText'](_0x34f847,'ENTER',_0x5277fe(_0x3d5765)));break;}}});}['_processAttributeChanges'](_0x33fc5f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x282701=this['editor'],_0x4d0a90=_0x282701['model']['document']['differ']['getChanges']();if(0x0==_0x4d0a90['length'])return!0x1;const _0x12fa6f=[],_0x483791=_0x4d0a90['filter'](_0x1865a6=>'attribute'==_0x1865a6['type']),_0x57e18d=_0x4d0a90['filter'](_0x245948=>'insert'==_0x245948['type']&&'$text'!=_0x245948['name']),_0xc95d10=_0x4d0a90['filter'](_0x385dca=>'remove'==_0x385dca['type']&&'$text'!=_0x385dca['name']);for(const _0x8e85bc of _0x483791)_0x12fa6f['push']({'key':_0x8e85bc['attributeKey'],'newValue':_0x8e85bc['attributeNewValue'],'oldValue':_0x8e85bc['attributeOldValue'],'range':Ht(_0x8e85bc['range'],_0x282701['model'])});for(const _0x144ad8 of _0x57e18d){const _0x1fc0e1=_0xc95d10['find'](_0x20fdaa=>_0x20fdaa['position']['isEqual'](_0x144ad8['position']));_0x1fc0e1&&_0x12fa6f['push']({'key':u,'newValue':_0x144ad8['name'],'oldValue':_0x1fc0e1['name'],'range':_0x282701['model']['createRangeOn'](_0x144ad8['position']['nodeAfter'])});}return 0x0!=_0x12fa6f['length']&&this['_reduceExistingSuggestions'](_0x33fc5f,_0x12fa6f);}['_processAttributeSuggestions'](_0x362397){let _0x8836a4=!0x1;const _0x3cf6c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23e066=>_0x23e066['data']['newRange']&&_0x23e066['name']['startsWith']('suggestion:attribute:'));for(const _0x3b789d of _0x3cf6c2){const {subType:_0x3285e5,id:_0x236a91}=this['_splitMarkerName'](_0x3b789d['name']),_0x44f18c=_0x3285e5['split']('|')[0x0];for(const _0x24732c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24732c['id']!=_0x236a91&&'attribute'==_0x24732c['type']&&_0x24732c['data']&&_0x24732c['data']['key']==_0x44f18c&&_0x24732c['getFirstRange']()['isIntersecting'](_0x3b789d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24732c,_0x3b789d['data']['newRange'],_0x362397),_0x8836a4=!0x0);}return _0x8836a4;}['_recordAttributeChanges'](_0x82aeab){this['_recordAttributeSuggestions']=!0x0,_0x82aeab();}['_isRegisteredAttribute'](_0x3c3e87){const _0x59b948=this['_isBlockAttribute'](_0x3c3e87),_0x4087c5=this['_inlineAttributeKeys']['has'](_0x3c3e87);return _0x59b948||_0x4087c5;}['_reduceExistingSuggestions'](_0xb29dab,_0x142d57){if(0x0==_0x142d57['length'])return!0x1;let _0x2323fe=!0x1;for(const _0x1159b1 of _0x142d57){const _0x2f184f=this['_findSuggestions'](_0x1159b1['range'],'attribute')['filter'](_0xa73735=>!_0xa73735['meta']['isNextTo'])['map'](_0x209f3c=>_0x209f3c['suggestion']),_0x42054f=_0x25e0b0({'newValue':_0x1159b1['newValue']});_0x2f184f['filter'](_0x22ea52=>{const [_0xef3744,_0x39f6b1]=_0x22ea52['subType']['split']('|');return _0xef3744==_0x1159b1['key']&&_0x39f6b1!=_0x42054f;})['forEach'](_0xc9284f=>{this['_reduceSuggestionAttributeRange'](_0xc9284f,_0x1159b1['range'],_0xb29dab),_0x2323fe=!0x0;});}return _0x2323fe;}['_reduceSuggestionAttributeRange'](_0x53829e,_0x362dc1,_0x43f5c6){const _0x1f6868=_0x53829e['getFirstRange']()['getDifference'](_0x362dc1);0x0!==_0x1f6868['length']?0x1!==_0x1f6868['length']?this['_breakSuggestionMarker'](_0x53829e,_0x362dc1['start'],_0x362dc1['end']):this['_setSuggestionRange'](_0x53829e,_0x1f6868[0x0]):_0x43f5c6['removeMarker'](_0x53829e['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x359338){this['_editor']=_0x359338,this['_model']=_0x359338['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1d4d3d,_0x38e004,_0x40724a,_0x3921d4,_0x2440ec,_0x213879){return new o(this['_model'],{'type':_0x1d4d3d,'subType':_0x38e004,'id':_0x40724a,'author':_0x3921d4,'creator':_0x3921d4,'attributes':_0x2440ec,'onAttributesChange':_0x213879,'onAccept':(..._0x508cf1)=>this['getSuggestionCallback'](_0x1d4d3d,_0x38e004,'accept')(..._0x508cf1),'onDiscard':(..._0x13cdcb)=>this['getSuggestionCallback'](_0x1d4d3d,_0x38e004,'discard')(..._0x13cdcb)});}['registerCustomCallback'](_0x185291,_0x36b974,_0x5b6cae,_0x383283){const _0x19e941=_0x185291+':'+_0x36b974+':'+_0x5b6cae;this['_customCallbacks']['set'](_0x19e941,_0x383283);}['getSuggestionCallback'](_0x582e9b,_0x57d912,_0x581537){const _0x4387f6=_0x582e9b+':'+_0x57d912+':'+_0x581537;return this['_customCallbacks']['get'](_0x4387f6)||this['_defaultCallbacks']['get'](_0x582e9b+':'+_0x581537);}['_registerDefaultCallbacks'](){const _0x47ebbc=()=>!0x1,_0x148cb9=_0x741899=>{_0x741899['sort']((_0x1338d5,_0x116ae9)=>_0x1338d5['start']['isBefore'](_0x116ae9['start'])?0x1:-0x1),this['_model']['change'](_0x18615b=>{for(const _0x314ee7 of _0x741899){let _0x505490;_0x505490=_0x314ee7['end']['isAtEnd']&&_0x314ee7['end']['parent']==_0x314ee7['start']['nodeAfter']?_0x18615b['createSelection'](_0x314ee7['start']['nodeAfter'],'on'):_0x18615b['createSelection'](_0x314ee7),this['_model']['deleteContent'](_0x505490,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1b48d9=(_0x182cd0,_0xd7a797)=>{_0xd7a797&&this['_model']['change'](_0x5f4994=>{const {commandName:_0xfbe5f4,commandParams:_0x2a542e=[]}=_0xd7a797,_0x2c43c6=_0x182cd0['map'](_0x537c89=>(Gt(_0x537c89)&&(_0x537c89=this['_model']['createRange'](_0x537c89['end'])),_0x537c89))['filter'](_0x300968=>'$graveyard'!==_0x300968['root']['rootName']);if(_0x2c43c6['length']<0x1)return;const _0x1ad507=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x36485b=>_0x4fb766['fromRange'](_0x36485b));_0x5f4994['setSelection'](_0x2c43c6);for(const _0x23e101 of this['_editor']['commands']['commands']())_0x23e101['refresh']();_0x2a542e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xfbe5f4,..._0x2a542e);const _0x550b1b=_0x1ad507['filter'](_0x4cb65a=>'$graveyard'!=_0x4cb65a['root']['rootName']);_0x550b1b['length']>0x0&&_0x5f4994['setSelection'](_0x550b1b);for(const _0x39da0e of _0x1ad507)_0x39da0e['detach']();});},_0x1e7554=(_0x5666e8,_0x464e21)=>0x1==_0x5666e8['length']&&0x1==_0x464e21['length']&&_0x5666e8[0x0]['end']['isEqual'](_0x464e21[0x0]['start']),_0x796076=(_0x6035da,_0x21dd05,_0xd18d5e,_0x3b3633)=>zt(_0x6035da,_0x21dd05,_0xd18d5e,_0x3b3633)?[_0x6035da,_0x21dd05]:zt(_0x21dd05,_0x6035da,_0x3b3633,_0xd18d5e)?[_0x21dd05,_0x6035da]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47ebbc),this['_defaultCallbacks']['set']('insertion:discard',_0x148cb9),this['_defaultCallbacks']['set']('insertion:join',_0x1e7554),this['_defaultCallbacks']['set']('insertion:chain',_0x796076),this['_defaultCallbacks']['set']('deletion:accept',_0x148cb9),this['_defaultCallbacks']['set']('deletion:discard',_0x47ebbc),this['_defaultCallbacks']['set']('deletion:join',_0x1e7554),this['_defaultCallbacks']['set']('deletion:chain',_0x796076),this['_defaultCallbacks']['set']('formatInline:accept',_0x1b48d9),this['_defaultCallbacks']['set']('formatInline:discard',_0x47ebbc),this['_defaultCallbacks']['set']('formatInline:join',_0x1e7554),this['_defaultCallbacks']['set']('formatInline:chain',_0x47ebbc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1b48d9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47ebbc),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e7554),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47ebbc),this['_defaultCallbacks']['set']('attribute:accept',_0x47ebbc),this['_defaultCallbacks']['set']('attribute:discard',(_0x396464,_0x152a27)=>{if(!_0x152a27)return;const _0x3102f1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x197725=>{if(_0x152a27['key']==u)for(const _0x2037ee of _0x396464){const _0x219582=_0x2037ee['start']['nodeAfter'],_0x1583e8=_0x152a27['oldValue'];_0x197725['rename'](_0x219582,_0x1583e8);}else{if(_0x3102f1['_isBlockAttribute'](_0x152a27['key'])){for(const _0x5eae6c of _0x396464)void 0x0!==_0x152a27['oldValue']?_0x197725['setAttribute'](_0x152a27['key'],_0x152a27['oldValue'],_0x5eae6c['start']['nodeAfter']):_0x197725['removeAttribute'](_0x152a27['key'],_0x5eae6c['start']['nodeAfter']);}else{for(const _0x57f63e of _0x396464)_0x152a27['oldValue']?_0x197725['setAttribute'](_0x152a27['key'],_0x152a27['oldValue'],_0x57f63e):_0x197725['removeAttribute'](_0x152a27['key'],_0x57f63e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e7554);}}function Pt(_0xa76ca4,_0x59022b,_0x27a32c){for(const _0x1b08c8 of _0x59022b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1b08c8['root']==_0x1b08c8)return!0x1;if(!_0x27a32c['containsItem'](_0x1b08c8))return!0x1;if(_0xa76ca4['isObject'](_0x1b08c8)||_0xa76ca4['isLimit'](_0x1b08c8))return!0x0;}return!0x1;}function Gt(_0x2f528b){return _0x2f528b['end']['parent']==_0x2f528b['start']['nodeAfter']&&_0x2f528b['end']['isAtStart'];}function Lt(_0x6b2b07,_0xd03ec6,_0x3f7466,_0x4ed900){const _0x38c119=_0x49d2e2=>!_0x49d2e2['item']['is']('$textProxy')&&!_0x4ed900['isObject'](_0x49d2e2['item']),_0xd368ea=_0x6b2b07['start']['getLastMatchingPosition'](_0x38c119),_0x54fb85=_0x6b2b07['end']['getLastMatchingPosition'](_0x38c119,{'direction':'backward'});return(!_0x6b2b07['start']['isEqual'](_0xd368ea)||!_0x6b2b07['end']['isEqual'](_0x54fb85))&&(_0xd368ea['isBefore'](_0x54fb85)?_0x3f7466['updateMarker'](_0xd03ec6,{'range':_0x3f7466['createRange'](_0xd368ea,_0x54fb85)}):_0x3f7466['removeMarker'](_0xd03ec6),!0x0);}function Jt(_0x24e4f1){return _0x25e0b0(_0x24e4f1);}function Kt(_0x46d61a){const _0x1034c7=_0x46d61a['start']['nodeAfter'];return _0x1034c7&&_0x1034c7['is']('element');}function Ht(_0x4f2f8e,_0x445da7){return null==_0x4f2f8e['end']['nodeBefore']&&_0x4f2f8e['end']['parent']==_0x4f2f8e['start']['nodeAfter']?qt(_0x4f2f8e['start']['nodeAfter'],_0x445da7):_0x4f2f8e;}function qt(_0x232ee1,_0x2c54b2){const _0x48697b=_0x2c54b2['schema']['isObject'](_0x232ee1)||_0x2c54b2['schema']['isSelectable'](_0x232ee1);return _0x2c54b2['createRange'](_0x2c54b2['createPositionAt'](_0x232ee1,'before'),_0x48697b?_0x2c54b2['createPositionAfter'](_0x232ee1):_0x2c54b2['createPositionAt'](_0x232ee1,'end'));}function zt(_0xb7c12c,_0x1d65c9,_0x12eab2,_0x207c01){return!!Wt(_0xb7c12c,_0x1d65c9)&&_0x12eab2['end']['isEqual'](_0x207c01['start']);}function Wt(_0x59e293,_0xafa5d2){if(!_0x59e293['_isDataLoaded']||!_0xafa5d2['_isDataLoaded'])return!0x1;const _0x1556ec=new Set(Object['keys'](_0x59e293['attributes'])),_0x15bc9f=new Set(Object['keys'](_0xafa5d2['attributes']));if(_0x1556ec['delete']('groupId'),_0x15bc9f['delete']('groupId'),0x0==_0x1556ec['size']&&0x0==_0x15bc9f['size'])return!0x0;if(_0x1556ec['size']!=_0x15bc9f['size'])return!0x1;const _0x3e484d={..._0x59e293['attributes']},_0x5205cf={..._0xafa5d2['attributes']};return delete _0x3e484d['groupId'],delete _0x5205cf['groupId'],JSON['stringify'](_0x3e484d)==JSON['stringify'](_0x5205cf);}function Qt(_0x35b116,_0x84ff05){const _0x22c198=Xt(_0x35b116['attributes']),_0x53476b=Xt(_0x84ff05);if(!_0x35b116['_isDataLoaded'])return!0x1;for(const _0x381060 of Object['keys'](_0x53476b))if(!_0x31e1d9(_0x22c198[_0x381060],_0x53476b[_0x381060]))return!0x1;return!0x0;}function Xt(_0xb2b187){const _0x527f0a=Object['assign']({},_0xb2b187);return delete _0x527f0a['skipNestingCheck'],delete _0x527f0a['tablePasteChainId'],_0x527f0a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xc93ba(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2421c3,_0x4a1742,_0x162af9,_0xef88b3){super(),this['model']=_0x4a1742,this['view']=_0x162af9,this['commentThreadController']=_0xef88b3,this['_editor']=_0x2421c3,this['_acceptCommand']=_0x2421c3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2421c3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x323bc7,_0x32708d)=>_0x323bc7||_0x32708d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x392536=>_0x392536&&this['_editor']['model']['canEditAt'](_0x4a1742['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e90e3=>_0x1e90e3&&this['_editor']['model']['canEditAt'](_0x4a1742['getRanges']())),this['_pendingAction']=null,_0x162af9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x162af9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x162af9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x162af9,'change:isDirty',()=>{_0x162af9['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 _0x3b704f=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b704f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x47dc49{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4aebd3,_0xb3be75,_0x2478f6,_0x2d0ea4){super(_0x4aebd3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x24b856(_0x4aebd3,c(_0x4aebd3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb3be75['authoredAt']),this['bind']('authoredAt')['to'](_0xb3be75),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',_0xb3be75,'authoredAt',this,'descriptionParts',(_0x2453f3,_0x3430de,_0x1f27a2)=>{const _0x3c7430=_0x1f27a2['map'](_0x2a1b40=>ls(_0x2a1b40['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2453f3-0x1,_0xb3be75['author']['name'],_0x3430de?_0x2d0ea4['formatDateTime'](_0x3430de):'',new DOMParser()['parseFromString'](_0x3c7430,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e37a9(),this['focusTracker']=new _0x54130a(),this['keystrokes']=new _0x2e1ac4(),this['focusCycler']=new _0x3aee20({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xbaaa0a=>_0xbaaa0a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb3be75,this['_localUser']=_0x2478f6,this['_config']=_0x2d0ea4,_0x2d0ea4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x30e16d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1be052}=this['_config'];this['commentsListView']=new _0x1be052(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',_0x5eeca4=>_0x5eeca4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xcbbe1a,_0x29c7df)=>_0xcbbe1a||!!_0x29c7df);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x342258}=this['_config'],_0x10b960=new _0x342258(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2beca6=_0x10b960['commentInputView'];return _0x10b960['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2beca6,'value',(_0x510ae4,_0x3cf319,_0x5944f0)=>!!_0x5944f0||_0x510ae4&&!_0x3cf319),_0x2beca6['on']('submit',(_0x3c27ed,_0x35f63a)=>{this['fire']('addComment',_0x35f63a),_0x2beca6['editor']['setData']('');}),_0x2beca6['on']('cancel',()=>this['focus']()),_0x2beca6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x10b960;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x21c7fa,_0x33ab7,_0x3838a0,_0x49cc7f){super(_0x21c7fa,_0x33ab7,_0x3838a0,_0x49cc7f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1a8222=>_0x1a8222&&_0x1a8222[0x0]?_0x1a8222[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d494d,_0xa1975d)=>{let _0x41a851='';for(const _0x5c5fe8 of _0x5d494d)_0x41a851+='<p>'+ls(_0x5c5fe8['content'],_0x5c5fe8['color'])+'</p>';return _0xa1975d?_0x41a851:ti(_0x41a851,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x49cc7f['SuggestionView'](_0x21c7fa,_0x33ab7,{'formatDateTime':_0x49cc7f['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 _0x50d14c=this['bindTemplate'],_0x2fa1fd=[this['suggestionView']];return this['commentsListView']&&_0x2fa1fd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2fa1fd['push'](this['commentThreadInputView']),_0x2fa1fd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x50d14c['if']('isActive','ck-suggestion-wrapper--active'),_0x50d14c['to']('type',_0x46e0a4=>'ck-suggestion-'+_0x46e0a4),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':_0x50d14c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2fa1fd};}['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 _0x47dc49{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x11ff83,_0x17e753,_0x18d25c){super(_0x11ff83),this['_model']=_0x17e753,this['_config']=_0x18d25c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17e753),this['acceptButton']=this['_createButton'](c(_0x11ff83,'Accept\x20suggestion'),_0x21ca87,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x11ff83,'Discard\x20suggestion'),_0xf253e4,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf03e19(_0x11ff83,_0x17e753['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e37a9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x54130a(),this['keystrokes']=new _0x2e1ac4(),this['focusCycler']=new _0x3aee20({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19316a=>_0x19316a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x538d4e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x538d4e['innerHTML']=this['description'],this['on']('change:description',(_0x3fe9e7,_0x66120b,_0x34d064)=>{_0x538d4e['innerHTML']=_0x34d064;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2203ad=this['bindTemplate'],_0x3ae30a=[{'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':_0x2203ad['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2203ad['to']('authoredAt',_0x4d66cc=>this['_config']['formatDateTime'](_0x4d66cc))}]}]},{'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']&&_0x3ae30a['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':_0x3ae30a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3e1c16,_0x67b005,_0x524f2a,_0x5a28d5,_0x56d632){const _0x167332=new _0xee9b8f(this['locale']);return _0x167332['set']({'label':_0x3e1c16,'icon':_0x67b005,'tooltip':!0x0,'tooltipPosition':_0x56d632}),_0x167332['extendTemplate']({'attributes':{'class':_0x524f2a}}),_0x167332['on']('execute',()=>{this['fire'](_0x5a28d5,this['_model']['id']);}),_0x167332;}['_setupKeyboardNavigation'](){const _0x12c136=this['element'];this['keystrokes']['listenTo'](_0x12c136);for(const _0x26060a of this['focusables'])this['focusTracker']['add'](_0x26060a['element']),this['keystrokes']['listenTo'](_0x26060a['element']);this['keystrokes']['set']('enter',(_0x51e2f0,_0xa6e792)=>{_0x12c136===_0x51e2f0['target']&&(this['focusCycler']['focusFirst'](),_0xa6e792());}),this['keystrokes']['set']('esc',(_0x529313,_0x54dcd7)=>{_0x12c136!==_0x529313['target']&&(this['focus'](),_0x54dcd7());});}}class d extends _0x25b00c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3c7829,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d2b09){super(_0x5d2b09),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d77c9=this['editor']['config'];_0x4d77c9['define']('trackChanges.SuggestionThreadView',fe),_0x4d77c9['define']('trackChanges.SuggestionView',we),_0x4d77c9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d77c9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4e619e,_0xdf3224){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c2205,_0x14520c]of this['_handleControllerBuffer']){const _0x1e8d41=this['_suggestionToController']['has'](_0x5c2205);_0x1e8d41||_0x14520c?_0x1e8d41&&_0x14520c&&this['_destroyController'](_0x5c2205):this['_initializeController'](_0x5c2205);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4e619e,_0xdf3224);}['init'](){const _0xde9584=this['editor'],_0x58ba84=_0xde9584['plugins']['get']('TrackChangesEditing'),_0x36055f=_0xde9584['plugins']['get']('Annotations'),_0x23393a=_0xde9584['plugins']['get']('EditorAnnotations'),_0x38ff6f=_0xde9584['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x23393a['addSourceCollector'](()=>{const _0x1f770b=[];for(const [_0x339f78,_0x136a51]of Array['from'](this['_suggestionToController'])){const _0x198abd=_0x339f78['getAllAdjacentSuggestions'](),_0x44f888=[];for(const _0x649ae0 of _0x198abd){if(!_0x649ae0['isInContent'])continue;if(_0x649ae0['isMultiRange']){_0x44f888['push'](..._0x649ae0['getRanges']());continue;}const _0x216c59=_0x649ae0['getFirstRange']();if(_0x44f888['length']>0x0){const _0x2b5784=_0x44f888[0x0]['getJoined'](_0x216c59);if(_0x2b5784){_0x44f888[0x0]=_0x2b5784;continue;}}_0x44f888['push'](_0x216c59);}_0x1f770b['push']([_0x136a51['view'],_0x44f888]);}return _0x1f770b;}),this['listenTo'](_0x58ba84,'suggestionLoaded',(_0x51c453,_0x47c2a2)=>{this['listenTo'](_0x47c2a2,'change:previous',(_0x59f7f8,_0x9ddf3d,_0x2eb407,_0x5e59ed)=>{_0x47c2a2['isInContent']&&(null==_0x2eb407?(this['_updateController'](_0x5e59ed['head']),this['_handleSuggestionControllerDelayed'](_0x47c2a2,!0x1)):(this['_updateController'](_0x2eb407['head']),null==_0x5e59ed&&this['_handleSuggestionControllerDelayed'](_0x47c2a2,!0x0)));}),null!==_0x47c2a2['previous']?this['_updateController'](_0x47c2a2['head']):this['_handleSuggestionControllerDelayed'](_0x47c2a2,!0x1);}),this['listenTo'](_0x58ba84,'suggestionUnloaded',(_0x1fbac5,_0x1cf4f6,_0x52bf45)=>{this['stopListening'](_0x1cf4f6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1cf4f6),this['_suggestionToController']['has'](_0x1cf4f6)&&this['_destroyController'](_0x1cf4f6),_0x52bf45&&this['_updateController'](_0x52bf45['head']);}),this['listenTo'](_0x58ba84,'suggestionChanged',(_0x351dd4,_0x51f8f6)=>{this['_updateController'](_0x51f8f6);}),this['listenTo'](_0x36055f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38ff6f,'addComment',(_0x12d09c,{threadId:_0x27cba3,isFromAdapter:_0x3c0051})=>{if(_0x3c0051||!_0x58ba84['hasSuggestion'](_0x27cba3))return;const _0x8c83af=_0x58ba84['getSuggestion'](_0x27cba3);this['_suggestionToController']['get'](_0x8c83af)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b6d73=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x581b37;for(const _0x30b032 in _0x1b6d73){const _0x32b025=_0x30b032,_0x5455e9=_0x1b6d73[_0x32b025];if('trackChangesLicenseKeyValid'==_0x5455e9||'trackChangesLicenseKeyInvalid'==_0x5455e9||'trackChangesLicenseKeyExpired'==_0x5455e9||'trackChangesLicenseKeyDomainLimit'==_0x5455e9||'trackChangesLicenseKeyNotAllowed'==_0x5455e9||'trackChangesLicenseKeyEvaluationLimit'==_0x5455e9||'trackChangesLicenseKeyTrialLimit'==_0x5455e9||'trackChangesLicenseKeyUsageLimit'==_0x5455e9){delete _0x1b6d73[_0x32b025],_0x581b37=_0x5455e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x581b37&&_0x1b6d73['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x581b37&&_0x1b6d73['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x581b37&&_0x1b6d73['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x581b37&&_0x1b6d73['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x581b37&&_0x1b6d73['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x581b37&&_0x1b6d73['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x581b37&&_0x1b6d73['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x17c5ca=this['editor']['plugins']['get']('Annotations'),_0x87b2a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x284dd2=Array['from'](_0x17c5ca['activeAnnotations'],_0x43a458=>_0x43a458['innerView'])['filter'](_0x366e3c=>this['_viewToController']['has'](_0x366e3c)),_0x2ad7d3=[];for(const _0x40a57c of _0x284dd2){const _0x361212=this['_viewToController']['get'](_0x40a57c)['model']['getAllAdjacentSuggestions']();_0x2ad7d3['push'](..._0x361212['reduce']((_0x70364f,_0x4fb246)=>[..._0x70364f,..._0x4fb246['getMarkerNames']()],[]));}_0x87b2a1['activeMarkers']=_0x2ad7d3;}['_addUIComponentsToFactory'](){const _0x14dd1d=this['editor'],_0x58aaf2=_0x14dd1d['locale'],_0x82cf4e=c(_0x58aaf2,'Track\x20changes'),_0x4f8501=new _0x3c5e8f([{'type':'switchbutton','model':new _0x234a10({'withText':!0x0,'isToggleable':!0x0,'label':_0x82cf4e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x234a10({'withText':!0x0,'label':c(_0x58aaf2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x234a10({'withText':!0x0,'label':c(_0x58aaf2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x234a10({'withText':!0x0,'label':c(_0x58aaf2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x234a10({'withText':!0x0,'label':c(_0x58aaf2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x14dd1d['plugins']['has']('TrackChangesPreview')&&_0x4f8501['addMany']([{'type':'separator'},{'type':'button','model':new _0x234a10({'withText':!0x0,'label':c(_0x58aaf2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x46ac7e of _0x4f8501)if(ke(_0x46ac7e)){const _0x4e5501=_0x14dd1d['commands']['get'](_0x46ac7e['model']['commandName']);_0x46ac7e['model']['bind']('isOn','isEnabled')['to'](_0x4e5501,'value','isEnabled');}_0x14dd1d['ui']['componentFactory']['add']('trackChanges',_0x184c9a=>this['_createToolbarButton'](_0x184c9a,_0x4f8501,_0x82cf4e)),_0x14dd1d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x514706=>this['_createMenuBarMenu'](_0x514706,_0x4f8501,_0x82cf4e));}['_createToolbarButton'](_0x52055f,_0x575a75,_0x1518e7){const _0x4cbd77=_0x47be48(_0x52055f,_0x3151fb),_0x5578dc=this['editor']['commands']['get']('trackChanges');_0x4cbd77['buttonView']['set']({'tooltip':_0x1518e7,'label':_0x1518e7,'icon':_0x1b28c5}),_0x4cbd77['buttonView']['bind']('isOn')['to'](_0x5578dc,'value'),_0x4cbd77['buttonView']['on']('execute',()=>{_0x5578dc['execute'](),this['editor']['editing']['view']['focus']();}),_0xcb7314(_0x4cbd77,_0x575a75,{'role':'menu'});const _0x4d3da5=[];for(const _0x5a3498 of _0x575a75)ke(_0x5a3498)&&_0x4d3da5['push'](this['editor']['commands']['get'](_0x5a3498['model']['commandName']));const _0x47b9c0=_0x4cbd77['buttonView'];return _0x47b9c0['actionView']['unbind']('isEnabled'),_0x47b9c0['arrowView']['unbind']('isEnabled'),_0x47b9c0['actionView']['bind']('isEnabled')['to'](_0x5578dc,'isEnabled'),_0x47b9c0['arrowView']['bind']('isEnabled')['toMany'](_0x4d3da5,'isEnabled',(..._0x550ea2)=>_0x550ea2['some'](_0x5d236d=>_0x5d236d)),_0x4cbd77['on']('execute',_0xf88c9d=>{this['editor']['execute'](_0xf88c9d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4cbd77;}['_createMenuBarMenu'](_0x485bf1,_0x369dee,_0x137ea2){const _0x516109=new _0x5726d1(_0x485bf1),_0x26606c=this['editor']['commands']['get']('trackChanges');_0x516109['buttonView']['set']({'label':_0x137ea2,'icon':_0x1b28c5});const _0x1d921e=new _0x11ac78(_0x485bf1);for(const _0x4c6f09 of _0x369dee){if('separator'==_0x4c6f09['type']){_0x1d921e['items']['add'](new _0x1a29a3(_0x485bf1));continue;}const _0x411fa6=new _0x895e75(_0x485bf1,_0x516109),_0x4178f6=new _0x581fac(_0x485bf1),_0xe8c416=_0x4c6f09['model'];_0x4178f6['bind'](...Object['keys'](_0xe8c416))['to'](_0xe8c416),_0x4178f6['delegate']('execute')['to'](_0x516109),_0x4178f6['on']('execute',()=>{this['editor']['execute'](_0xe8c416['commandName']),this['editor']['editing']['view']['focus']();}),_0x411fa6['children']['add'](_0x4178f6),_0x1d921e['items']['add'](_0x411fa6);}return _0x516109['bind']('isEnabled')['to'](_0x26606c,'isEnabled'),_0x516109['panelView']['children']['add'](_0x1d921e),_0x516109;}['_initializeController'](_0x47cae1){const _0xa24134=this['editor'],_0xd57132=_0xa24134['config'],_0x12c447=_0xa24134['plugins']['get']('Annotations'),_0x395cec=_0xa24134['plugins']['get']('CommentsRepository'),_0x3e83be=_0xa24134['plugins']['get']('EditorAnnotations'),_0x1025b7=_0xa24134['plugins']['get'](_0x3c7829)['me'],_0x446e80=_0xd57132['get']('trackChanges')['SuggestionThreadView'],_0x2ae7a6=_0xd57132['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23c0f1,CommentThreadInputView:_0xb8c9a5}=_0xa24134['plugins']['get']('CommentsUI');let _0xd9ef2a,_0x5109f4,_0x7f6211;this['_annotationViews']['has'](_0x47cae1['id'])?(_0x5109f4=this['_annotationViews']['get'](_0x47cae1['id']),_0xd9ef2a=_0x5109f4['mainView']):(_0xd9ef2a=new _0x446e80(_0xa24134['locale'],_0x47cae1,_0x1025b7,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd57132['get']('comments.editorConfig'),'licenseKey':_0xd57132['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd57132['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd57132['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd57132['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x43f53d(_0xd57132['get']('locale')),'CommentView':_0xd57132['get']('comments')['CommentView'],'CommentsListView':_0x23c0f1,'CommentThreadInputView':_0xb8c9a5,'SuggestionView':_0x2ae7a6}),_0xd9ef2a['suggestionView']['acceptButton']['on']('execute',()=>{_0xa24134['editing']['view']['focus']();}),_0xd9ef2a['suggestionView']['discardButton']['on']('execute',()=>{_0xa24134['editing']['view']['focus']();}),_0x5109f4=_0x12c447['createAnnotationView'](this['editor']['locale'],_0xd9ef2a),_0x5109f4['bind']('isDirty')['to'](_0xd9ef2a,'isDirty'),_0x5109f4['bind']('length')['to'](_0xd9ef2a),_0x5109f4['bind']('type')['to'](_0xd9ef2a,'type',_0x35b1fc=>'suggestion-'+_0x35b1fc),_0xd9ef2a['on']('escape',()=>{_0x7f6211['fire']('escape');}),this['_annotationViews']['set'](_0x47cae1['id'],_0x5109f4));const _0x53266a=_0x395cec['createCommentThreadController'](_0x47cae1['commentThread'],_0xd9ef2a),_0x507b81=new pe(_0xa24134,_0x47cae1,_0xd9ef2a,_0x53266a),_0x38be3b=_0x47cae1['getAllAdjacentSuggestions']()['filter'](_0x36a3ea=>_0x36a3ea['isInContent']);_0xd9ef2a['descriptionParts']=_0xa24134['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38be3b),this['_suggestionToController']['set'](_0x47cae1,_0x507b81),this['_viewToController']['set'](_0xd9ef2a,_0x507b81),_0x7f6211=_0x12c447['createAnnotation']({'view':_0x5109f4,'target':()=>{const _0xc2ec63=[],_0x5896bb=_0x47cae1['getAllAdjacentSuggestions']()['filter'](_0x3ae876=>_0x3ae876['isInContent']);for(const _0xe753bf of _0x5896bb)_0xc2ec63['push'](..._0xe753bf['getMarkers']());return _0x23802e(_0xa24134['editing'],_0xc2ec63);},'type':()=>'suggestion-'+_0x507b81['view']['type']}),_0x395cec['_bindAnnotationToEditors'](_0xd9ef2a,_0x7f6211),_0x12c447['add'](_0x7f6211),_0x3e83be['registerAnnotation'](_0x7f6211);}['_destroyController'](_0x1978a2){const _0x38f005=this['editor']['plugins']['get']('CommentsRepository'),_0x30bc38=this['editor']['plugins']['get']('Annotations'),_0x6b6fd4=this['_suggestionToController']['get'](_0x1978a2),_0xc32a32=_0x6b6fd4['view'],_0x45196b=_0x30bc38['getByInnerView'](_0xc32a32);_0x38f005['_unbindEditors'](_0xc32a32),_0x45196b&&_0x30bc38['remove'](_0x45196b),this['_suggestionToController']['delete'](_0x1978a2),this['_viewToController']['delete'](_0xc32a32),_0x6b6fd4['destroy']();}['_updateController'](_0x14e236){if(!_0x14e236['isInContent']||!this['_suggestionToController']['has'](_0x14e236))return;const _0xb6923b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2809b9=this['_suggestionToController']['get'](_0x14e236),_0x4ce128=_0x14e236['getAllAdjacentSuggestions']();_0x2809b9['view']['descriptionParts']=_0xb6923b['descriptionFactory']['getDescriptions'](_0x4ce128);}['destroy'](){for(const _0x11fed8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x11fed8);for(const _0x3f852c of this['_annotationViews']['values']())_0x3f852c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1d9299){return'model'in _0x1d9299;}class k extends _0x25b00c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1a14ad){this['editor']['plugins']['get'](p)['adapter']=_0x1a14ad;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x264a52){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x264a52);}['getSuggestions']({skipNotAttached:_0x25bf6b=!0x1,toJSON:_0x2796a5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x25bf6b,'toJSON':_0x2796a5});}['getSuggestion'](_0x1f13b3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f13b3);}}const w=['Pagination'];class T extends _0x25b00c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x109bc5=this['editor'];if(_0x109bc5['config']['define']('trackChangesData.editorCreator',_0x10c2a3=>{const _0x14c963=_0x109bc5['model']['document']['getRootNames']()['reduce']((_0x3f7923,_0xd1b301)=>(_0x3f7923[_0xd1b301]='',_0x3f7923),{});return _0x109bc5['constructor']['create'](_0x14c963,_0x10c2a3);}),'function'!=typeof _0x109bc5['config']['get']('trackChangesData')['editorCreator'])throw new _0x15acd3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2015f3){return N(this['editor'],!0x0,_0x2015f3);}['getDataWithDiscardedSuggestions'](_0x36348e){return N(this['editor'],!0x1,_0x36348e);}}class D extends _0x25b00c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42837c){function _0x5d8997(_0x1fe84e){return _0x1fe84e['map'](_0x65a69b=>String['fromCharCode'](_0x65a69b))['join']('');}super(_0x42837c),this['result']='end',_0x42837c[_0x5d8997([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d8997([0x76,0x69,0x65,0x77])][_0x5d8997([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d8997([0x61,0x75,0x74,0x6f]),_0x42837c[_0x5d8997([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5d8997([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d8997([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5d8997([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5d8997([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 Fe(_0x42c74a){return void 0x0!==_0x42c74a['getRootsAttributes'];}async function N(_0x476c16,_0x396375,_0x42d83b){const _0x2d5de9=_0x99d9b5(_0x476c16,w);_0x2d5de9['plugins']['push'](p,D),_0x2d5de9['rootsAttributes']=Fe(_0x476c16)?_0x476c16['getRootsAttributes']():void 0x0;const _0x16df6f=document['createDocumentFragment'](),_0x3525cd=_0x476c16['config']['get']('trackChangesData')['editorCreator'],_0x3d72fc=await _0x3525cd(_0x2d5de9,()=>function(_0x51b6c3){const _0x2b956c=document['createElement']('div');return _0x51b6c3['appendChild'](_0x2b956c),_0x2b956c;}(_0x16df6f));!function(_0x4f1c8d,_0x8a1cd8){const _0x18f961=_0x4f1c8d['model']['document']['getRootNames']()['reduce']((_0x5a9d7e,_0x1ab1f7)=>(_0x5a9d7e[_0x1ab1f7]=_0x4f1c8d['data']['get']({'rootName':_0x1ab1f7}),_0x5a9d7e),{}),_0x25926b=_0x4f1c8d['plugins']['get']('Users')['users']['map'](_0x2fb2b0=>({'id':_0x2fb2b0['id'],'name':_0x2fb2b0['name']})),_0x134dbb=_0x4f1c8d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54d2c7=_0x4f1c8d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a228=_0x8a1cd8['plugins']['get']('Users'),_0x467989=_0x8a1cd8['plugins']['get']('TrackChangesEditing'),_0x50474d=_0x8a1cd8['plugins']['get']('CommentsRepository');for(const _0x407fc8 of _0x50474d['getCommentThreads']())_0x407fc8['remove']();for(const _0x53dc4b of _0x25926b)_0x56a228['getUser'](_0x53dc4b['id'])||_0x56a228['addUser'](_0x53dc4b);_0x56a228['me']||_0x56a228['useAnonymousUser']();for(const _0x2f549b of _0x54d2c7)_0x50474d['addCommentThread'](_0x2f549b);for(const _0x17b25e of _0x134dbb)_0x467989['addSuggestionData'](_0x17b25e);_0x8a1cd8['data']['set'](_0x18f961);}(_0x476c16,_0x3d72fc),_0x3d72fc['execute'](_0x396375?'acceptAllSuggestions':'discardAllSuggestions');const _0x327f25=Fe(_0x3d72fc)?_0x3d72fc['getFullData'](_0x42d83b):_0x3d72fc['data']['get'](_0x42d83b);return await _0x3d72fc['destroy'](),_0x327f25;}class Me extends _0x47dc49{['options'];constructor(_0x583b40,_0x5c1e39){super(_0x583b40),this['options']=_0x5c1e39,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'](_0x1543e4,_0x5c4316){if(!this['element'])return;const _0x255623=[];for(const [_0x1d1c36,_0x21ab8a]of _0x1543e4){const _0xa809dc=document['createElement']('div');_0xa809dc['setAttribute']('data-ck-root-name',_0x1d1c36),_0xa809dc['className']=_0x21ab8a['classes']+'\x20ck-track-changes-preview__root-container',_0xa809dc['innerHTML']=_0x21ab8a['content'],_0x255623['push'](_0xa809dc);}_0x5c4316(this['element'],_0x255623),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1ae1b2{constructor(_0x4da07d){super(_0x4da07d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4d8157=this['editor'],_0x5a2f43=_0x4d8157['locale'],_0x2613b4=_0x4d8157['plugins']['get']('Dialog');let _0x25d9d4;const _0x21dd0e=function(_0x4f3279){const _0x510506={};if('editables'in _0x4f3279['ui']['view']){for(const [_0x93ac7f,_0x39fcfe]of Object['entries'](_0x4f3279['ui']['view']['editables']))_0x510506[_0x93ac7f]=_0x39fcfe['element'];}else _0x510506[_0x4f3279['model']['document']['getRootNames']()[0x0]]=_0x4f3279['ui']['view']['editable']['element'];return _0x510506;}(_0x4d8157),_0x3e27c2=function(_0x38f93e){let _0x2c6f19=0x0;for(const _0x41fbce of Object['values'](_0x38f93e))_0x2c6f19=Math['max'](_0x2c6f19,_0x41fbce['getBoundingClientRect']()['width']);let _0x177dc4=0x0;for(const _0x4795b9 of Object['values'](_0x38f93e))_0x177dc4+=_0x4795b9['getBoundingClientRect']()['height'];const _0x5b7434=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2175b5=Math['min'](_0x177dc4,_0x5b7434);return{'width':_0x2c6f19,'height':_0x2175b5};}(_0x21dd0e);_0x2613b4['show']({'id':'finalContentPreview','title':c(_0x5a2f43,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5a2f43,{'dialogRects':_0x3e27c2}),'onHide':()=>{_0x25d9d4['detachFromDom']();},'onShow':()=>{_0x4d8157['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x102f2b=>{const _0x49d6e2=this['_standarizeRootsData'](_0x102f2b,_0x4d8157,_0x21dd0e);_0x2613b4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x49d6e2,_0x4d8157['config']['get']('trackChanges.preview.renderFunction'));}),_0x25d9d4=new _0x39f5aa(_0x5a2f43,[_0x2613b4['view']]),_0x25d9d4['attachToDom'](),_0x25d9d4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4d8157['once']('destroy',()=>{_0x25d9d4['detachFromDom']();});const _0x1d7f38=_0x2613b4['view']['headerView']['class'];_0x2613b4['view']['headerView']['class']=_0x1d7f38?_0x1d7f38+'\x20ck-reset_all':'ck-reset_all',_0x2613b4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2613b4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x6ce697=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x201b8c=_0x6ce697['previewMode'],_0x2407be={};if('$labels'===_0x201b8c){for(const _0x4348d7 of _0x6ce697['getMergeFieldsIds']())_0x2407be[_0x4348d7]=_0x6ce697['getLabel'](_0x4348d7)||_0x4348d7;}else{const _0xda53e7='$defaultValues'===_0x201b8c?_0x6ce697['getDefaultValues']():_0x6ce697['getDataSetValues'](_0x201b8c,!0x0);for(const _0x3d185e of Object['entries'](_0xda53e7)){const [_0xd17b84,_0x5d02b4]=_0x3d185e;_0x2407be[_0xd17b84]=null!==_0x5d02b4?_0x5d02b4:_0x6ce697['getLabel'](_0xd17b84)||_0xd17b84;}}return{'mergeFieldsData':_0x2407be};}['_standarizeRootsData'](_0x3cb93f,_0x3d19e9,_0x1064d0){let _0x52dc5e;if('string'==typeof _0x3cb93f){const _0x376cc3=_0x3d19e9['model']['document']['getRootNames']()[0x0];_0x52dc5e={[_0x376cc3]:_0x3cb93f};}else _0x52dc5e=_0x3cb93f;const _0x13ebe4=this['_fixMediaEmbeds'](_0x52dc5e,_0x3d19e9),_0x58aaea=function(_0x4c2a47,_0x18699b){for(const [_0x27389c,_0x1be33c]of _0x4c2a47)_0x1be33c['classes']=_0x18699b[_0x27389c]['classList']['value']['replace']('ck-focused','');return _0x4c2a47;}(this['_sortRoots'](_0x3d19e9)['reduce']((_0x4b2470,_0x2541eb)=>(_0x4b2470['push']([_0x2541eb,{'content':_0x13ebe4[_0x2541eb],'classes':''}]),_0x4b2470),[]),_0x1064d0);return _0x58aaea;}['_fixMediaEmbeds'](_0xc412ad,_0x55be71){if(!_0x55be71['plugins']['has']('MediaEmbedEditing'))return _0xc412ad;const _0x316809=_0x55be71['plugins']['get']('MediaEmbedEditing');for(const [_0x179035,_0xc4332b]of Object['entries'](_0xc412ad)){const _0x98087c=document['createElement']('div');_0x98087c['innerHTML']=_0xc4332b,(_0x98087c['querySelectorAll']('figure.media')['forEach'](_0x4ccb65=>{const _0x989dfb=_0x4ccb65['querySelector']('oembed');if(_0x989dfb){const _0x8cff89=_0x989dfb['getAttribute']('url');if(_0x8cff89){const _0xc51049=_0x316809['registry']['getMediaViewElement'](new _0x36728a(_0x55be71['editing']['view']['document']),_0x8cff89,{'elementName':'','renderForEditingView':!0x0}),_0x501e04=document['createElement']('div');_0x501e04['classList']['add']('ck-media__wrapper'),_0xc51049['render'](_0x501e04,_0x55be71['editing']['view']['domConverter']),_0x989dfb['replaceWith'](_0x501e04);}}}),_0xc412ad[_0x179035]=_0x98087c['innerHTML']);}return _0xc412ad;}['_sortRoots'](_0x37b0ff){if(!function(_0x378253){return void 0x0!==_0x378253['getRootsAttributes'];}(_0x37b0ff))return _0x37b0ff['model']['document']['getRootNames']();const _0x447b5f=[],_0x1feae4=new Map();for(const _0xa43038 of _0x37b0ff['model']['document']['getRootNames']()){const _0x3938d2=_0x37b0ff['editing']['view']['getDomRoot'](_0xa43038)['getClientRects']()['item'](0x0);_0x447b5f['push'](_0xa43038),_0x1feae4['set'](_0xa43038,_0x3938d2);}return _0x447b5f['sort']((_0x224dc0,_0x4bbb3e)=>{const _0x2644dd=_0x1feae4['get'](_0x224dc0),_0x1e2a9c=_0x1feae4['get'](_0x4bbb3e);return _0x2644dd['y']-_0x1e2a9c['y']||_0x2644dd['x']-_0x1e2a9c['x'];}),_0x447b5f;}}class te extends _0x25b00c{static get['requires'](){return[T,_0x26b31a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47bea){super(_0x47bea),_0x47bea['commands']['add']('previewFinalContent',new re(this['editor'])),_0x47bea['config']['define']('trackChanges.preview.renderFunction',(_0x4fa31e,_0x3c9cbc)=>{for(const _0x26f102 of _0x3c9cbc)_0x4fa31e['appendChild'](_0x26f102);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x59cf86,PendingActions as _0x209f26,icons as _0x251926}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1d05c0,ObservableMixin as _0x4e91c9,uid as _0x1d192f,priorities as _0x4e8da5,insertToPriorityArray as _0xeff63b,logWarning as _0xbf59d0,getEnvKeystrokeText as _0x112b72,FocusTracker as _0x369097,KeystrokeHandler as _0x29547e,Collection as _0x1cb604}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3016f2,View as _0x39ecd2,ViewCollection as _0x202569,FocusCycler as _0x39321a,ViewModel as _0x152a27,createDropdown as _0x14229b,SplitButtonView as _0x58b909,addListToDropdown as _0x16e2b4,MenuBarMenuView as _0xc0a067,MenuBarMenuListView as _0x392310,ListSeparatorView as _0xc9e9e7,MenuBarMenuListItemView as _0x257c8b,MenuBarMenuListItemButtonView as _0x299337,BodyCollection as _0x1b73e6,Dialog as _0x500d09}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x33b2bc,hashObject as _0x3943cc,surroundingMarkersDetector as _0x1942bc,FOCUS_ANNOTATION_KEYSTROKE as _0xfae0ed,AriaDescriptionView as _0x26aa4d,setupThreadKeyboardNavigation as _0x1940c6,trimHtml as _0xb6d856,UserView as _0x14fa86,LateFocusButtonView as _0x2f3605,getDateTimeFormatter as _0x1e64d3,getAllMarkersDomElementsSorted as _0x556b50,sanitizeEditorConfig as _0x3b8356}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3fb7b9,LiveRange as _0x3e3cd3,LivePosition as _0x5f1a3a,DowncastWriter as _0x5d1e32}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xd43f67,toWidget as _0x23f6c4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x310aa7,set as _0x37ce4d,isEqual as _0x37c9c3,unset as _0x45f963,omit as Vt}from'lodash-es';import{Delete as _0x52bf88,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2ca479,ShiftEnter as _0x5f3610}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x80c460,_0x3441bf){super(_0x80c460),this['_enabledCommands']=_0x3441bf,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 _0x41c492 of this['editor']['commands']['commands']())_0x41c492['affectsData']&&!this['_enabledCommands']['has'](_0x41c492)&&_0x41c492['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xa0ebd0 of this['editor']['commands']['commands']())_0xa0ebd0['affectsData']&&!this['_enabledCommands']['has'](_0xa0ebd0)&&_0xa0ebd0['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x254ebb,_0x32ccfc){super(_0x254ebb),this['_suggestions']=_0x32ccfc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x85e01c){const _0x54f115=this['_suggestions']['get'](_0x85e01c);if(!_0x54f115)throw new _0x1d05c0('track-changes-accept-suggestion-not-found',this);const _0x1d693f=_0x54f115['getRanges']();this['editor']['model']['canEditAt'](_0x1d693f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x54f115);}}class R extends Yt{['_suggestions'];constructor(_0x1df2df,_0x4fc226){super(_0x1df2df),this['_suggestions']=_0x4fc226,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4959fa){const _0x563740=this['_suggestions']['get'](_0x4959fa);if(!_0x563740)throw new _0x1d05c0('track-changes-discard-suggestion-not-found',this);const _0x5860d0=_0x563740['getRanges']();this['editor']['model']['canEditAt'](_0x5860d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x563740);}}function cs(_0x307fb2,_0x3a8689){let _0x3e5e54='';return _0x3e5e54+=_0x307fb2['split']('*')['map']((_0x51dc82,_0x3f3471)=>_0x3f3471%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x51dc82)+'</span>':nn(_0x51dc82))['join'](''),_0x3a8689&&(_0x3e5e54+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3a8689['value']+'\x22\x20title=\x22'+_0x3a8689['title']+'\x22></span>'),_0x3e5e54;}function nn(_0x4d2008){const _0xcd5772=document['createElement']('span');return _0xcd5772['innerText']=_0x4d2008,_0xcd5772['innerHTML'];}function Zt(_0x183d7d){return _0x183d7d['sort']((_0x5c5268,_0x5678fa)=>'deletion'==_0x5c5268['type']&&'deletion'!=_0x5678fa['type']?-0x1:'deletion'!=_0x5c5268['type']&&'deletion'==_0x5678fa['type']?0x1:0x0);}function to(_0x85ab4f,_0x8fce6d){let _0x2d3898,_0x13bb1b=0x0;const _0x2e9b79=[],_0x4ea9c1=_0x8fce6d['schema'];for(;_0x13bb1b<_0x85ab4f['length'];){const _0x33131f=_0x85ab4f[_0x13bb1b],_0x47c6a3=_0x85ab4f[_0x13bb1b+0x1];_0x2d3898||(_0x2d3898=_0x8fce6d['createPositionBefore'](_0x33131f)),on(_0x8fce6d,_0x33131f,_0x47c6a3)||(_0x2e9b79['push'](_0x8fce6d['createRange'](_0x2d3898,_0x4ea9c1['isObject'](_0x33131f)?_0x8fce6d['createPositionAfter'](_0x33131f):_0x8fce6d['createPositionAt'](_0x33131f,'end'))),_0x2d3898=null),_0x13bb1b++;}return _0x2e9b79;}function on(_0x52c3cf,_0x305d1f,_0x125564){if(!_0x125564)return!0x1;const _0x38c378=_0x52c3cf['createPositionAfter'](_0x305d1f),_0x59f353=_0x52c3cf['createPositionBefore'](_0x125564);return _0x38c378['isTouching'](_0x59f353);}function ts(_0xce4a9c,_0x1e360b,_0x35e716){for(;_0x35e716['length'];){const _0x10f00c=_0x35e716['splice'](0x0,0x64);_0xce4a9c['change'](()=>{for(const _0x3257d6 of _0x10f00c)_0x3257d6['isInContent']&&_0x1e360b['execute'](_0x3257d6['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x392eb4,_0x4b5164,_0xdcf485){super(_0x392eb4),this['_command']=_0x4b5164,this['_suggestions']=_0xdcf485,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40bdfa=Array['from'](this['_suggestions']['values']())['some'](_0x4acf17=>_0x4acf17['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x40bdfa;}['execute'](){const _0x5df403=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x19be06 of _0x5df403){const _0x3743b5=_0x19be06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3743b5))return;}ts(this['editor']['model'],this['_command'],_0x5df403);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4aac58,_0x3f083a,_0x5c5309){super(_0x4aac58),this['_command']=_0x3f083a,this['_suggestions']=_0x5c5309,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48d7d0=this['editor']['model']['document']['selection'],_0x13d9b7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5db833,_0x1c87c6){const _0xffc0cf=Array['from'](_0x5db833['getRanges']()),_0x11909e=new Set();for(const _0x461c11 of _0x1c87c6)if(_0x461c11['isInContent']){for(const _0x555abc of _0xffc0cf)for(const _0x41d8bf of _0x461c11['getRanges']())(_0x555abc['isIntersecting'](_0x41d8bf)||_0x5db833['isCollapsed']&&!_0x461c11['isMultiRange']&&_0x461c11['next']&&_0x41d8bf['end']['isTouching'](_0x555abc['start']))&&_0x11909e['add'](_0x461c11);}return _0x11909e;}(_0x48d7d0,_0x13d9b7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b4c20=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x19b6b8 of _0x4b4c20){const _0x25ecaf=_0x19b6b8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25ecaf))return;}ts(this['editor']['model'],this['_command'],_0x4b4c20);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e91c9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5ef3c4,_0x31889f){super(),this['id']=_0x31889f['id'],this['type']=_0x31889f['type'],this['subType']=_0x31889f['subType']||null,this['author']=_0x31889f['author'],this['creator']=_0x31889f['creator']||_0x31889f['author'],this['isExternal']=Boolean(_0x31889f['attributes']&&_0x31889f['attributes']['@external']),this['data']=null,this['_model']=_0x5ef3c4,this['_onAccept']=_0x31889f['onAccept'],this['_onDiscard']=_0x31889f['onDiscard'],this['_onAttributesChange']=_0x31889f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x31889f['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 _0x1d3879=this;for(;_0x1d3879['previous'];)_0x1d3879=_0x1d3879['previous'];return _0x1d3879;}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'](_0x3e2de6){this['_markerNames']['add'](_0x3e2de6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1845b2=>this['_model']['markers']['get'](_0x1845b2))['filter'](_0x373ba6=>_0x373ba6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x754cbc=>{for(const _0x5a6862 of this['getMarkers']())_0x754cbc['removeMarker'](_0x5a6862);}),this['_markerNames']['clear']();}['removeMarker'](_0x5233fe){this['_model']['change'](_0x2a7f4d=>{_0x2a7f4d['removeMarker'](_0x5233fe);}),this['_markerNames']['delete'](_0x5233fe);}['addRange'](_0x33d287){const _0x4aea0e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4aea0e),this['_model']['change'](_0x1eb4ab=>{_0x1eb4ab['addMarker'](_0x4aea0e,{'range':_0x33d287,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c37ea){for(const _0x4cbbd4 of this['getRanges']())if(_0x4cbbd4['isIntersecting'](_0x5c37ea))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8ae5b2=>_0x8ae5b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x54ce29,_0x4df283)=>[..._0x54ce29,..._0x4df283['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1de3db=this['getRanges']();if(0x1!=_0x1de3db['length'])return null;const _0x16f82d=_0x1de3db[0x0],_0x4f7180=_0x16f82d['start']['nodeAfter'],_0x4d97c5=_0x16f82d['end']['nodeBefore'];return _0x4f7180 instanceof _0x3fb7b9?_0x4f7180!=_0x4d97c5?null:_0x4f7180: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 _0x270050=[];let _0x17546d=this['head'];for(;_0x17546d;)_0x270050['push'](_0x17546d),_0x17546d=_0x17546d['next'];return _0x270050;}['setAttribute'](_0x2db1e7,_0x5dd404){const _0x3bbd8e=_0x310aa7(this['attributes']);_0x37ce4d(_0x3bbd8e,_0x2db1e7,_0x5dd404),_0x37c9c3(_0x3bbd8e,this['attributes'])||(this['attributes']=_0x3bbd8e,this['_onAttributesChange'](_0x3bbd8e));}['removeAttribute'](_0xb5a34b){const _0x498465=_0x310aa7(this['attributes']);_0x45f963(_0x498465,_0xb5a34b),_0x37c9c3(_0x498465,this['attributes'])||(this['attributes']=_0x498465,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 _0x1d192f()['substr'](0x1,0x5);}}function o(_0x375f81,_0x58f208,_0x5637d5){const _0x30cd1d=_0x375f81['t'],t=_0x375f81['t'];switch(_0x58f208){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',_0x5637d5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5637d5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5637d5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5637d5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5637d5);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',_0x5637d5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5637d5);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',_0x5637d5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5637d5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5637d5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5637d5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5637d5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5637d5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5637d5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5637d5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5637d5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5637d5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5637d5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5637d5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5637d5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5637d5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5637d5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5637d5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5637d5);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'},_0x5637d5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5637d5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5637d5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5637d5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5637d5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5637d5);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'},_0x5637d5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5637d5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5637d5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5637d5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5637d5);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'},_0x5637d5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5637d5);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'},_0x5637d5);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'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'},_0x5637d5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5637d5);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'},_0x5637d5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5637d5);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'},_0x5637d5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5637d5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5637d5);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'},_0x5637d5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5637d5);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 _0x30cd1d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5637d5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x30cd1d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5637d5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5637d5);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'},_0x5637d5);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'},_0x5637d5);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'},_0x5637d5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x58f208;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x310861,_0x37cb6b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x310861,this['_locale']=_0x37cb6b;}['getDescriptions'](_0x2f8d40){const _0x484d9b=[],_0x1bdd38=new Set(),_0x1e4c8e=new Set();for(let _0x424eeb=0x0;_0x424eeb<_0x2f8d40['length'];_0x424eeb++){const _0x28f2f6=_0x2f8d40[_0x424eeb];if(!_0x28f2f6['isInContent'])continue;const _0x4442ab=this['_handleCustomCallbackDescription'](_0x28f2f6);if(_0x4442ab){if(null!=_0x28f2f6['subType']){if(_0x1bdd38['has'](_0x28f2f6['subType']))continue;_0x1bdd38['add'](_0x28f2f6['subType']);}_0x484d9b['push'](_0x4442ab);}else{if('attribute'!=_0x28f2f6['type'])'insertion'!=_0x28f2f6['type']&&'deletion'!=_0x28f2f6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x484d9b,_0x28f2f6,_0x2f8d40[_0x424eeb+0x1]);else{const _0xff7e71=_0x28f2f6['data']['key'];if(_0x1e4c8e['has'](_0xff7e71))continue;_0x1e4c8e['add'](_0x28f2f6['data']['key']),_0xff7e71==m?this['_handleRenameSuggestionDescription'](_0x484d9b,_0x28f2f6):this['_handleAttributeSuggestionDescription'](_0x484d9b,_0x28f2f6);}}}return this['_resolveDescriptionItems'](_0x484d9b);}['registerDescriptionCallback'](_0x2eff49){this['_customCallbacks']['push'](_0x2eff49);}['registerElementLabel'](_0x44ad7d,_0x1a1f4f,_0x3b84a9=_0x4e8da5['normal']){'function'==typeof _0x44ad7d?_0xeff63b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x44ad7d,'label':_0x1a1f4f,'priority':_0x3b84a9}):this['_itemLabels']['set'](_0x44ad7d,_0x1a1f4f);}['registerAttributeLabel'](_0x11d309,_0x40a97e){this['_attributeLabels']['set'](_0x11d309,_0x40a97e);}['getItemLabel'](_0x4d6939,_0x4d1979=0x1){let _0x1a847c;for(const _0x137d1c of this['_itemLabelsCallbacks'])if(_0x137d1c['matchingCallback'](_0x4d6939)){_0x1a847c=_0x137d1c['label'];break;}return _0x1a847c||(_0x1a847c=this['_itemLabels']['get'](_0x4d6939['name'])),_0x1a847c?_0x1a847c(_0x4d1979):0x1!==_0x4d1979?_0x4d1979+'\x20'+_0x4d6939['name']+'s':''+_0x4d6939['name'];}['_addDescriptionItems'](_0x73841b,_0x25a200){const _0x3e8bb7=_0x25a200['getFirstRange']()['getWalker'](),_0x172393='insertion'==_0x25a200['type']?'add':'remove';for(const _0x1170ce of _0x3e8bb7){const _0x446acf=_0x1170ce['item'],_0x2d7452=_0x73841b[_0x73841b['length']-0x1];if(_0x446acf['is']('$textProxy'))_0x2d7452&&_0x2d7452['type']['indexOf']('Container')>-0x1&&_0x73841b['pop'](),_0x2d7452&&'text'==_0x2d7452['type']?_0x2d7452[_0x172393]+=_0x446acf['data']:_0x73841b['push']({'type':'text','add':'add'==_0x172393?_0x446acf['data']:'','remove':'remove'==_0x172393?_0x446acf['data']:''});else{if(this['_schema']['isObject'](_0x446acf)){const _0x2be05=_0x446acf;if(_0x2d7452&&_0x2d7452['type']['indexOf']('Container')>-0x1&&_0x73841b['pop'](),'elementEnd'==_0x1170ce['type'])continue;_0x2d7452&&_0x2d7452['type']==_0x172393+'Object'&&_0x2d7452['element']['name']==_0x2be05['name']?_0x2d7452['quantity']++:_0x73841b['push']({'type':_0x172393+'Object','element':_0x2be05,'quantity':0x1}),_0x3e8bb7['skip'](_0x2e20f7=>!('elementEnd'==_0x2e20f7['type']&&_0x2e20f7['item']==_0x446acf));}else{if(this['_schema']['checkChild'](_0x446acf,'$text')||_0x446acf['is']('element','softBreak')){const _0x50e85e=_0x446acf;if('add'==_0x172393&&'elementStart'==_0x1170ce['type']||'remove'==_0x172393&&'elementEnd'==_0x1170ce['type'])continue;if(_0x2d7452&&-0x1==_0x2d7452['type']['indexOf']('Container')){'text'==_0x2d7452['type']&&(_0x2d7452[_0x172393]+='\x0a');continue;}let _0x32cf5d;if(_0x32cf5d='add'==_0x172393?_0x50e85e['nextSibling']&&!this['_schema']['isObject'](_0x50e85e['nextSibling'])?_0x50e85e['nextSibling']:null:_0x50e85e['previousSibling']&&!this['_schema']['isObject'](_0x50e85e['previousSibling'])?_0x50e85e['previousSibling']:null,_0x50e85e['isEmpty']||_0x32cf5d&&_0x32cf5d['isEmpty']){const _0x62116b=_0x32cf5d&&_0x32cf5d['isEmpty']?_0x32cf5d:_0x50e85e;_0x2d7452&&_0x2d7452['type']==_0x172393+'EmptyContainer'&&_0x2d7452['element']['name']==_0x62116b['name']?_0x2d7452['quantity']++:_0x73841b['push']({'type':_0x172393+'EmptyContainer','element':_0x62116b,'quantity':0x1});}else _0x73841b['push']({'type':_0x172393+'Container','element':_0x50e85e});}}}}}['_resolveDescriptionItems'](_0xe9b867){const _0x3d6836=this['_locale'],_0x456b2b=[],_0x3ac9b1=[],_0x4b762a=[];for(const _0x1278c4 of _0xe9b867)switch(_0x1278c4['type']){case'text':if(_0x1278c4['add']=_0x1278c4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1278c4['remove']=_0x1278c4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1278c4['add']&&''!=_0x1278c4['remove']){_0x456b2b['push']({'type':'replace','content':o(_0x3d6836,'REPLACE_TEXT',['\x22'+_0x1278c4['remove']+'\x22','\x22'+_0x1278c4['add']+'\x22'])});continue;}if(null!=_0x1278c4['add']['match'](/^ +$/)){_0x456b2b['push']({'type':'insertion','content':o(_0x3d6836,'*Insert:*\x20%0',o(_0x3d6836,'ELEMENT_SPACE',_0x1278c4['add']['length']))});continue;}if(null!=_0x1278c4['remove']['match'](/^ +$/)){_0x456b2b['push']({'type':'deletion','content':o(_0x3d6836,'*Remove:*\x20%0',o(_0x3d6836,'ELEMENT_SPACE',_0x1278c4['remove']['length']))});continue;}if(''!=_0x1278c4['add']){_0x456b2b['push']({'type':'insertion','content':o(_0x3d6836,'*Insert:*\x20%0','\x22'+_0x1278c4['add']+'\x22')});continue;}_0x456b2b['push']({'type':'deletion','content':o(_0x3d6836,'*Remove:*\x20%0','\x22'+_0x1278c4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x456b2b['push']({'type':'insertion','content':o(_0x3d6836,'*Insert:*\x20%0',this['getItemLabel'](_0x1278c4['element'],_0x1278c4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x456b2b['push']({'type':'deletion','content':o(_0x3d6836,'*Remove:*\x20%0',this['getItemLabel'](_0x1278c4['element'],_0x1278c4['quantity']))});continue;case'addContainer':_0x456b2b['push']({'type':'insertion','content':o(_0x3d6836,'*Split:*\x20%0',this['getItemLabel'](_0x1278c4['element'],_0x1278c4['quantity']))});continue;case'removeContainer':_0x456b2b['push']({'type':'deletion','content':o(_0x3d6836,'*Merge:*\x20%0',this['getItemLabel'](_0x1278c4['element'],_0x1278c4['quantity']))});continue;case'addFormat':_0x3ac9b1['push'](_0x1278c4['key']);continue;case'removeFormat':_0x4b762a['push'](_0x1278c4['key']);continue;default:_0x456b2b['push'](_0x1278c4);}if(_0x3ac9b1['length']){const _0x5ca447=_0x3ac9b1['map'](_0x3cae5f=>this['_attributeLabels']['has'](_0x3cae5f)?this['_attributeLabels']['get'](_0x3cae5f):_0x3cae5f)['join'](',\x20');_0x456b2b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5ca447)});}if(_0x4b762a['length']){const _0x3a09fb=_0x4b762a['map'](_0x3fc093=>this['_attributeLabels']['has'](_0x3fc093)?this['_attributeLabels']['get'](_0x3fc093):_0x3fc093)['join'](',\x20');_0x456b2b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a09fb)});}return _0x456b2b;}['_handleCustomCallbackDescription'](_0x286004){for(const _0x402af4 of this['_customCallbacks']){const _0x4b87fd=_0x402af4(_0x286004);if(_0x4b87fd&&'type'in _0x4b87fd)return _0x4b87fd;}}['_handleAttributeSuggestionDescription'](_0x58982c,_0x38fa7b){const _0x4cb642=_0x38fa7b['data'],_0x214ba8=void 0x0===_0x4cb642['newValue']?'removeFormat':'addFormat';_0x58982c['push']({'type':_0x214ba8,'key':_0x4cb642['key']});}['_handleRenameSuggestionDescription'](_0x334573,_0x16825c){_0x334573['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x16825c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ba337,_0x5cce39,_0x1f1d8e){if(this['_addDescriptionItems'](_0x3ba337,_0x5cce39),_0x1f1d8e&&_0x1f1d8e['getFirstRange']()&&!_0x5cce39['getFirstRange']()['end']['isEqual'](_0x1f1d8e['getFirstRange']()['start'])){const _0x14e8fe=_0x3ba337[_0x3ba337['length']-0x1],_0x38042f='insertion'==_0x5cce39['type']?'add':'remove';_0x14e8fe&&'text'==_0x14e8fe['type']&&(_0x14e8fe[_0x38042f]+='\x0a');}}}class U extends _0x59cf86{['afterInit'](){const _0x4b7ce6=this['editor'],_0x357d4e=_0x4b7ce6['plugins']['get']('TrackChangesEditing');_0x4b7ce6['commands']['get']('showAIAssistant')&&_0x357d4e['enableCommand']('showAIAssistant');}}class V extends _0x59cf86{['afterInit'](){const _0x5de9f6=this['editor'],_0x172813=_0x5de9f6['locale'];if(!_0x5de9f6['plugins']['has']('AlignmentEditing'))return;const _0x448c48=_0x5de9f6['plugins']['get']('TrackChangesEditing');_0x448c48['enableDefaultAttributesIntegration']('alignment'),_0x448c48['registerBlockAttribute']('alignment'),_0x448c48['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x172813,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b893=this['editor'],_0x3f2cc0=_0x33b893['locale'];_0x33b893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26dc9d=>{if('formatBlock'!=_0x26dc9d['type'])return;const {data:_0x3504f9}=_0x26dc9d;if(_0x3504f9&&'alignment'==_0x3504f9['commandName']){const _0x20fcf4=_0x3504f9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3f2cc0,'*Format:*\x20%0',function(_0x422976){switch(_0x422976){case'left':return o(_0x3f2cc0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3f2cc0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3f2cc0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3f2cc0,'FORMAT_JUSTIFY_TEXT');}}(_0x20fcf4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x59cf86{['afterInit'](){const _0x19d638=this['editor'],_0x1e632c=_0x19d638['plugins']['get']('TrackChangesEditing'),_0x3959b9=_0x19d638['locale'];for(const _0x2e1f42 of ti){if(!_0x19d638['plugins']['has'](_0x2e1f42))continue;const _0x354210=_0x2e1f42['slice'](0x0,-0x7)['toLowerCase'](),_0xd175d5='FORMAT_'+_0x354210['toUpperCase']();_0x1e632c['enableDefaultAttributesIntegration'](_0x354210),_0x1e632c['registerInlineAttribute'](_0x354210),_0x1e632c['descriptionFactory']['registerAttributeLabel'](_0x354210,o(_0x3959b9,_0xd175d5));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x357a76=this['editor'],_0x4b8dee=_0x357a76['locale'],_0x1aac22=_0x357a76['plugins']['get']('TrackChangesEditing');function _0x32727f(_0x1640a2,_0x22e4a9){_0x1aac22['descriptionFactory']['registerDescriptionCallback'](_0x568de5=>{if('formatInline'!=_0x568de5['type'])return;const {data:_0x26d812}=_0x568de5;return _0x26d812&&_0x26d812['commandName']===_0x1640a2?_0x26d812['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b8dee,'*Format:*\x20%0',_0x22e4a9)}:{'type':'format','content':o(_0x4b8dee,'*Remove\x20format:*\x20%0',_0x22e4a9)}:void 0x0;});}_0x32727f('bold',o(_0x4b8dee,'FORMAT_BOLD')),_0x32727f('italic',o(_0x4b8dee,'FORMAT_ITALIC')),_0x32727f('underline',o(_0x4b8dee,'FORMAT_UNDERLINE')),_0x32727f('code',o(_0x4b8dee,'FORMAT_CODE')),_0x32727f('strikethrough',o(_0x4b8dee,'FORMAT_STRIKETHROUGH')),_0x32727f('subscript',o(_0x4b8dee,'FORMAT_SUBSCRIPT')),_0x32727f('superscript',o(_0x4b8dee,'FORMAT_SUPERSCRIPT'));}}class F extends _0x59cf86{['afterInit'](){const _0x4e9758=this['editor'],_0x1824c8=_0x4e9758['locale'];if(!_0x4e9758['plugins']['has']('BlockQuoteEditing'))return;const _0x1e21af=_0x4e9758['plugins']['get']('TrackChangesEditing'),_0x45ba2e=this['editor']['commands']['get']('blockQuote');_0x1e21af['enableCommand']('blockQuote',(_0x22a6d7,_0x406b41={})=>{const _0x3e3a57=this['editor']['model']['document']['selection'],_0x1b1e37=_0x406b41&&void 0x0!==_0x406b41['forceValue']?_0x406b41['forceValue']:!_0x45ba2e['value'];let _0x129bac=[];if(_0x1b1e37){const _0x28e31d=Array['from'](_0x3e3a57['getSelectedBlocks']())['filter'](_0x383d04=>oo(_0x383d04)||function(_0x3d5549,_0x5b6d8f){const _0x47e224=_0x5b6d8f['checkChild'](_0x3d5549['parent'],'blockQuote'),_0x4f3f00=_0x5b6d8f['checkChild'](['$root','blockQuote'],_0x3d5549);return _0x47e224&&_0x4f3f00;}(_0x383d04,this['editor']['model']['schema']));_0x129bac=to(_0x28e31d,_0x4e9758['model']);}else{const _0x10ac4d=Array['from'](_0x3e3a57['getSelectedBlocks']())['filter'](_0x3be3d4=>oo(_0x3be3d4));_0x129bac=to(_0x10ac4d,_0x4e9758['model']);}_0x4e9758['model']['change'](()=>{for(const _0x13c7f2 of _0x129bac)_0x1e21af['markBlockFormat'](_0x13c7f2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1b1e37}]});});}),_0x1e21af['descriptionFactory']['registerDescriptionCallback'](_0x2413a3=>{const {data:_0x472628}=_0x2413a3;if(_0x472628&&'blockQuote'==_0x472628['commandName']){const _0x58be47=o(_0x1824c8,'ELEMENT_BLOCK_QUOTE');return _0x472628['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1824c8,'*Set\x20format:*\x20%0',_0x58be47)}:{'type':'format','content':o(_0x1824c8,'*Remove\x20format:*\x20%0',_0x58be47)};}});}}function oo(_0x1288e9){return'blockQuote'==_0x1288e9['parent']['name'];}class L extends _0x59cf86{['afterInit'](){const _0x2a4934=this['editor'],_0x413ec5=_0x2a4934['locale'],_0xf66714=_0x2a4934['plugins']['get']('TrackChangesEditing');_0x2a4934['plugins']['has']('BookmarkEditing')&&(_0xf66714['enableCommand']('insertBookmark'),_0xf66714['enableDefaultAttributesIntegration']('updateBookmark'),_0xf66714['registerBlockAttribute']('bookmarkId'),_0xf66714['descriptionFactory']['registerDescriptionCallback'](_0x555a47=>{if('insertion'!=_0x555a47['type']&&'deletion'!=_0x555a47['type']&&'attribute'!=_0x555a47['type'])return;const _0x2b7fc6=_0x555a47['getContainedElement']();if(null==_0x2b7fc6)return;if(!_0x2b7fc6['is']('element','bookmark'))return;const _0xbbb76d=_0x2b7fc6['getAttribute']('bookmarkId');if('insertion'==_0x555a47['type'])return{'type':'insertion','content':o(_0x413ec5,'*Insert:*\x20%0','\x22'+_0xbbb76d+'\x22\x20'+o(_0x413ec5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x555a47['type'])return{'type':'deletion','content':o(_0x413ec5,'*Remove:*\x20%0','\x22'+_0xbbb76d+'\x22\x20'+o(_0x413ec5,'ELEMENT_BOOKMARK'))};const {data:_0x50a231}=_0x555a47;if(!_0x50a231||'bookmarkId'!=_0x50a231['key'])return;return{'type':'format','content':o(_0x413ec5,'*Set\x20bookmark:*\x20%0','\x22'+_0x50a231['newValue']+'\x22')};}));}}class J extends _0x59cf86{['afterInit'](){const _0x3679d1=this['editor'];_0x3679d1['plugins']['has']('CaseChange')&&(_0x3679d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3679d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3679d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x59cf86{['afterInit'](){const _0x58db42=this['editor'];_0x58db42['commands']['get']('ckbox')&&_0x58db42['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x59cf86{['afterInit'](){const _0x89d6f4=this['editor'];if(!_0x89d6f4['plugins']['has']('CodeBlock'))return;const _0x3d82da=_0x89d6f4['plugins']['get']('TrackChangesEditing'),_0x1e402e=_0x89d6f4['locale'],_0x11774f=_0x89d6f4['config']['get']('codeBlock')['languages'],_0x512cbd=_0x89d6f4['commands']['get']('codeBlock');_0x3d82da['enableCommand']('indentCodeBlock'),_0x3d82da['enableCommand']('outdentCodeBlock'),_0x3d82da['enableCommand']('codeBlock',(_0x16cb75,_0x56be71={})=>{const _0x543eb1=_0x89d6f4['model'],_0xfb36c5=_0x89d6f4['model']['document']['selection'],_0x12b45d=_0x56be71&&void 0x0!==_0x56be71['forceValue']?_0x56be71['forceValue']:!_0x512cbd['value'];let _0x18fd0e;_0x56be71['language']||(_0x56be71['language']=_0x11774f[0x0]['language']),_0x18fd0e=_0x12b45d?Array['from'](_0xfb36c5['getSelectedBlocks']())['filter'](_0x2c974e=>eo(_0x2c974e)||function(_0x4baf19,_0x36c52e){if(_0x4baf19['is']('rootElement')||_0x36c52e['isLimit'](_0x4baf19))return!0x1;return _0x36c52e['checkChild'](_0x4baf19['parent'],'codeBlock');}(_0x2c974e,_0x543eb1['schema'])):Array['from'](_0xfb36c5['getSelectedBlocks']())['filter'](_0x378714=>eo(_0x378714));const _0x3cb24c=to(_0x18fd0e,_0x543eb1);_0x543eb1['change'](()=>{for(const _0x332c93 of _0x3cb24c)_0x3d82da['markBlockFormat'](_0x332c93,{'commandName':'codeBlock','commandParams':[{..._0x56be71,'forceValue':_0x12b45d}],'formatGroupId':'blockName'});});}),(_0x3d82da['descriptionFactory']['registerElementLabel']('codeBlock',_0x3045d9=>o(_0x1e402e,'ELEMENT_CODE_BLOCK',_0x3045d9)),_0x3d82da['descriptionFactory']['registerDescriptionCallback'](_0x3bf668=>{if('formatBlock'!=_0x3bf668['type'])return;const _0x539271=_0x1e402e['t'],{data:_0x5810cb}=_0x3bf668;if(!_0x5810cb||'codeBlock'!=_0x5810cb['commandName'])return;const _0x28c808=_0x5810cb['commandParams'][0x0]['language'],_0x15e542=_0x539271(_0x11774f['find'](_0x4b1126=>_0x4b1126['language']===_0x28c808)['label'])['toLowerCase']();return _0x5810cb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e402e,'*Set\x20format:*\x20%0',o(_0x1e402e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x15e542+')')}:{'type':'format','content':o(_0x1e402e,'*Remove\x20format:*\x20%0',o(_0x1e402e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4db1fa){return'codeBlock'==_0x4db1fa['name'];}class z extends _0x59cf86{['afterInit'](){const _0x5bedd2=this['editor'];if(!_0x5bedd2['plugins']['has']('CommentsEditing'))return;_0x5bedd2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x400484,_0x15c4ba,_0x258933){const _0x423c47=[];for(const _0x3895c3 of _0x15c4ba['getItems']())_0x3895c3['hasAttribute'](_0x400484)&&_0x423c47['push'](_0x258933['createRangeOn'](_0x3895c3));return _0x423c47;}function De(_0x22799f,_0x193bd3,{showActiveMarker:_0x4af255=!0x0}={}){const _0x420aff=_0x22799f['plugins']['get']('TrackChangesEditing');return(_0x2963c8,_0x3c1310,_0x50843c)=>{if(!_0x50843c['consumable']['test'](_0x3c1310['markerRange'],_0x2963c8['name']))return;const _0x4e2061=_0x3c1310['markerRange']['getWalker'](),_0x374736=_0x3c1310['markerRange']['start'],_0x5dd52f=_0x22799f['model']['schema'];let _0x34b8dc=null,_0x545eee=null,_0x2f5f6d=!0x1,_0x2a1b59=!0x1;for(const _0x453963 of _0x4e2061){const _0x5b1a8a=_0x453963['item'];_0x2f5f6d=_0x2f5f6d||_0x5dd52f['isContent'](_0x5b1a8a);const _0x52ab41=_0x50843c['mapper']['toViewElement'](_0x5b1a8a);if(_0x52ab41&&_0x52ab41['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x453963['type']&&(_0x5dd52f['isBlock'](_0x5b1a8a)&&!_0x5dd52f['isLimit'](_0x5b1a8a)&&(_0x5b1a8a['nextSibling']||_0x374736['isAtEnd']?_0x34b8dc&&_0x34b8dc['parent']==_0x5b1a8a||(_0x34b8dc=_0x5b1a8a,_0x1640db(_0x453963['previousPosition']),_0x2a1b59=!0x0):_0x545eee=_0x545eee||_0x453963['previousPosition']));}function _0x1640db(_0x4c16e1){const {authorId:_0x1912f9}=_0x420aff['_splitMarkerName'](_0x3c1310['markerName']),_0x7395bd=_0x50843c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x193bd3,'data-author-id':_0x1912f9}),_0x1602ad=_0x50843c['mapper']['toViewPosition'](_0x4c16e1);_0x4af255&&_0x420aff['activeMarkers']['includes'](_0x3c1310['markerName'])&&_0x50843c['writer']['addClass']('ck-suggestion-marker--active',_0x7395bd),_0x50843c['writer']['insert'](_0x1602ad,_0x7395bd),_0x50843c['mapper']['bindElementToMarker'](_0x7395bd,_0x3c1310['markerName']);}_0x2f5f6d||_0x2a1b59||!_0x545eee||_0x1640db(_0x545eee);};}class K extends _0x59cf86{static get['requires'](){return[_0x52bf88];}['init'](){const _0x54a057=this['editor'],_0x13ad43=_0x54a057['plugins']['get']('TrackChangesEditing');_0x13ad43['enableCommand']('delete');const _0x42bc92=_0x54a057['commands']['get']('deleteForward');_0x13ad43['enableCommand']('deleteForward',(_0x120921,_0x400697={})=>{const _0x1cad5e=_0x54a057['model']['createSelection'](_0x54a057['model']['document']['selection']);_0x1cad5e['isCollapsed']&&_0x54a057['model']['modifySelection'](_0x1cad5e,{'direction':'forward','unit':_0x400697['unit']});const _0x4822ca=_0x1cad5e['getFirstRange'](),_0x3cbe55=_0x3e3cd3['fromRange'](_0x4822ca);let _0x463bce;_0x120921(_0x400697),_0x463bce='$graveyard'==_0x3cbe55['root']['rootName']?_0x54a057['model']['createRange'](_0x4822ca['start']):_0x54a057['model']['createRange'](_0x3cbe55['start'],_0x3cbe55['end']),_0x3cbe55['detach'](),_0x54a057['model']['enqueueChange'](_0x42bc92['buffer']['batch'],_0x217812=>{_0x42bc92['buffer']['lock'](),_0x217812['setSelection'](_0x217812['createRange'](_0x463bce['end'])),_0x42bc92['buffer']['unlock']();});}),_0x54a057['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x54a057,'merge'),{'priority':'high'}),_0x54a057['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54fa77,_0x5e3958,_0x206ff7)=>{_0x206ff7['options']['showSuggestionHighlights']&&De(_0x54a057,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54fa77,_0x5e3958,_0x206ff7);},{'priority':'high'}),_0x54a057['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f524f,_0x5f0321,_0x4dab41)=>{const _0x120fcc=_0x4dab41['mapper']['markerNameToElements'](_0x5f0321['markerName']);if(_0x120fcc){for(const _0xf049d3 of _0x120fcc)_0xf049d3['is']('uiElement')&&(_0x4dab41['mapper']['unbindElementFromMarkerName'](_0xf049d3,_0x5f0321['markerName']),_0x4dab41['writer']['remove'](_0xf049d3));}},{'priority':'high'});}}class W extends _0x59cf86{['afterInit'](){const _0xc7057=this['editor'];if(!_0xc7057['plugins']['has']('ListEditing'))return;const _0x2d09fd=_0xc7057['locale'],_0x4b0813=_0xc7057['plugins']['get']('TrackChangesEditing'),_0x18e87f=_0xc7057['plugins']['has']('TodoListEditing'),_0x1cb8ae=!!_0xc7057['config']['get']('list.multiBlock');function _0x14a625(_0x3e29c8){return{'type':'format','content':''+o(_0x2d09fd,'*Set\x20format:*\x20%0',_0x3e29c8)};}function _0x2ad7fc(_0x354a07){return{'type':'format','content':''+o(_0x2d09fd,'*Remove\x20format:*\x20%0',_0x354a07)};}_0x4b0813['enableDefaultAttributesIntegration']('numberedList'),_0x4b0813['enableDefaultAttributesIntegration']('bulletedList'),_0x4b0813['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b0813['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b0813['enableDefaultAttributesIntegration']('indentList'),_0x4b0813['enableDefaultAttributesIntegration']('outdentList'),_0x4b0813['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b0813['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b0813['registerBlockAttribute']('listItemId'),_0x4b0813['registerBlockAttribute']('listType'),_0x4b0813['registerBlockAttribute']('listIndent'),_0x1cb8ae&&(_0x4b0813['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b0813['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x18e87f&&(_0x4b0813['enableDefaultAttributesIntegration']('todoList'),_0x4b0813['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b0813['registerBlockAttribute']('todoListChecked'),_0x4b0813['descriptionFactory']['registerDescriptionCallback'](_0x57d1b9=>{const {data:_0x14434b}=_0x57d1b9;if(_0x14434b&&'todoListChecked'==_0x14434b['key'])return{'type':'format','content':_0x14434b['newValue']?o(_0x2d09fd,'*Check\x20item*'):o(_0x2d09fd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x58f359=>{if(_0x58f359['batch']['isUndo'])return!0x1;let _0x9b4e5d=!0x1;const _0x22c8a8=_0x4b0813['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c8588=>'todoListChecked'===_0x4b0813['_getAttributeKey'](_0x2c8588));for(const _0x462eef of _0x22c8a8){'todo'!=_0x462eef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b0813['_findSuggestions'](_0x462eef['getFirstRange'](),'attribute')['find'](_0x1fdccb=>'listType'===_0x4b0813['_getAttributeKey'](_0x1fdccb['suggestion']))||(_0x58f359['removeMarker'](_0x462eef['getFirstMarker']()),_0x9b4e5d=!0x0));}return _0x9b4e5d;})),_0x4b0813['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d09fd,'FORMAT_INDENT'));const _0x2f1c00={'type':'format','content':''};_0x4b0813['descriptionFactory']['registerDescriptionCallback'](_0x5202dd=>{const {data:_0xbe22ef}=_0x5202dd;if(!_0xbe22ef||'listType'!=_0xbe22ef['key'])return;let _0x29636e=_0x5202dd['head'];for(;_0x29636e;){if(_0x29636e['data']&&(('listStyle'==_0x29636e['data']['key']||'listMarkerStyle'==_0x29636e['data']['key'])&&(_0x29636e['data']['newValue']&&'default'!=_0x29636e['data']['newValue']||'default'!=_0x29636e['data']['oldValue']&&!_0xbe22ef['newValue'])||!_0x1cb8ae&&_0x29636e['data']['key']==m))return _0x2f1c00;_0x29636e=_0x29636e['next'];}if(null==_0xbe22ef['newValue'])switch(_0xbe22ef['oldValue']){case'bulleted':return _0x2ad7fc(o(_0x2d09fd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad7fc(o(_0x2d09fd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad7fc(o(_0x2d09fd,'ELEMENT_TODO_LIST'));}switch(_0xbe22ef['newValue']){case'bulleted':return _0x14a625(o(_0x2d09fd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14a625(o(_0x2d09fd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14a625(o(_0x2d09fd,'ELEMENT_TODO_LIST'));}}),_0x4b0813['descriptionFactory']['registerDescriptionCallback'](_0x3250cc=>{const {data:_0x386e45}=_0x3250cc;if(_0x386e45&&'listIndent'==_0x386e45['key'])return null==_0x386e45['newValue']||null==_0x386e45['oldValue']&&0x0==_0x386e45['newValue']?_0x2f1c00:void 0x0;}),_0x4b0813['descriptionFactory']['registerDescriptionCallback'](_0x576b1c=>{if('attribute'!=_0x576b1c['type'])return;const {data:_0x1ddc1d}=_0x576b1c;if(!_0x1ddc1d||'listItemId'!=_0x1ddc1d['key'])return;const _0x3a9488=Te(_0x576b1c);return'newValue'==_0x3a9488?{'type':'format','content':o(_0x2d09fd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3a9488?{'type':'format','content':o(_0x2d09fd,'*Split:*\x20list\x20item')}:_0x2f1c00;}),_0xc7057['model']['document']['registerPostFixer'](_0x59ced6=>this['listItemIdFixer'](_0x59ced6)),_0xc7057['model']['document']['registerPostFixer'](_0x29cf5a=>this['noTrackChangesFixer'](_0x29cf5a)),_0xc7057['model']['document']['on']('change:data',(_0x27b611,_0x26044f)=>{if(_0x26044f['isUndo']||!_0x26044f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ebe3b){if(_0x2ebe3b['batch']['isUndo']||!_0x2ebe3b['batch']['isLocal'])return!0x1;let _0x30084c=!0x1;const _0x132add=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37e0b2=>_0x37e0b2['data']&&'listItemId'==_0x37e0b2['data']['key'])['filter'](_0x3d2b6a=>_0x3d2b6a['data']['newValue']&&_0x3d2b6a['data']['oldValue']);for(const _0x4bbfce of _0x132add)Te(_0x4bbfce)||(_0x2ebe3b['removeMarker'](_0x4bbfce['getFirstMarker']()),_0x30084c=!0x0);return _0x30084c;}['noTrackChangesFixer'](_0x2592b9){if(_0x2592b9['batch']['isUndo']||!_0x2592b9['batch']['isLocal'])return!0x1;const _0x41be96=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x41be96['trackChangesCommand']['value'])return!0x1;let _0xda6d02=!0x1;const _0x4c5705=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x338b9c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1120be=>'attribute'==_0x1120be['type'])['filter'](_0x1ee268=>_0x4c5705['includes'](_0x1ee268['attributeKey']));if(0x0==_0x338b9c['length'])return _0xda6d02;for(const _0x566984 of _0x338b9c){const _0x53bc70=_0x41be96['_findSuggestions'](_0x566984['range'],'attribute')['filter'](_0x5a58fe=>!_0x5a58fe['meta']['isNextTo'])['map'](_0xc5638b=>_0xc5638b['suggestion'])['filter'](_0xed2bea=>{const _0x549094=_0x41be96['_getAttributeKey'](_0xed2bea);return _0x4c5705['includes'](_0x549094);});if(_0x53bc70['length']){for(const _0x103838 of _0x53bc70)_0x2592b9['removeMarker'](_0x103838['getFirstMarker']());_0xda6d02=!0x0;}}return _0xda6d02;}['assureChains'](){const _0x177455=this['editor']['plugins']['get']('TrackChangesEditing'),_0x337cc9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x537922;const _0x4f1a93=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13bcf0=>{if(_0x13bcf0['data']['oldRange']||!_0x13bcf0['data']['newRange'])return null;if(!_0x13bcf0['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x243ac5}=_0x177455['_splitMarkerName'](_0x13bcf0['name']);if(!_0x177455['hasSuggestion'](_0x243ac5))return null;const _0x2cd444=_0x177455['getSuggestion'](_0x243ac5);return _0x337cc9['includes'](_0x2cd444['data']['key']);})['map'](_0xa5b42a=>{const {id:_0x625a5c}=_0x177455['_splitMarkerName'](_0xa5b42a['name']),_0x1671af=_0x177455['getSuggestion'](_0x625a5c);return _0x537922=_0x1671af['attributes']['groupId'],_0x1671af['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f1a93['size'])return;const _0x1b450e=_0x177455['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1496fc=>'attribute'==_0x1496fc['type']&&_0x1496fc['data']&&_0x337cc9['includes'](_0x1496fc['data']['key'])&&_0x1496fc['attributes']['groupId']!=_0x537922)['map'](_0x1a9875=>({'listItem':_0x1a9875['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1a9875['attributes']['groupId']})),_0x154b79=new Set();for(const {groupId:_0x35d05a,listItem:_0x9b6345}of _0x1b450e)_0x4f1a93['has'](_0x9b6345)&&_0x154b79['add'](_0x35d05a);for(const _0x710bf8 of _0x177455['getSuggestions']())_0x154b79['has'](_0x710bf8['attributes']['groupId'])&&_0x710bf8['setAttribute']('groupId',_0x537922);}['_supportLegacySuggestions'](){const _0x31567a=this['editor'],_0xf6ded=_0x31567a['locale'],_0x384d09=_0x31567a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x384d09['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x87ecd6,_0x4b5256){const _0x59a7ba=[];for(let _0x574ae8 of _0x87ecd6)_0x574ae8['start']['nodeAfter']===_0x574ae8['end']['parent']&&(_0x574ae8=_0x31567a['model']['createRange'](_0x31567a['model']['createPositionAt'](_0x574ae8['start']['nodeAfter'],0x0))),_0x59a7ba['push'](_0x574ae8);_0x31567a['model']['change'](_0x3ea3a5=>{const _0x17a40e=_0x31567a['model']['document']['selection'],_0x4f15db=Array['from'](_0x17a40e['getRanges']())['map'](_0x41a2a7=>_0x3e3cd3['fromRange'](_0x41a2a7));_0x3ea3a5['setSelection'](_0x59a7ba),_0x31567a['commands']['get'](_0x4b5256['commandName'])['refresh'](),_0x4b5256['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x31567a['execute'](_0x4b5256['commandName'],..._0x4b5256['commandParams']),_0x3ea3a5['setSelection'](_0x4f15db);for(const _0x44377b of _0x4f15db)_0x44377b['detach']();});}),_0x384d09['descriptionFactory']['registerElementLabel'](function(_0x5dc120){const _0x305059=!_0x31567a['model']['schema']['isObject'](_0x5dc120),_0x2f29f2=_0x5dc120['previousSibling'],_0x592736=_0x5dc120['nextSibling'],_0x190e87=_0x5dc120['getAttribute']('listItemId'),_0x1ff9e8=!_0x2f29f2||_0x2f29f2['getAttribute']('listItemId')!==_0x190e87,_0x6638d7=!_0x592736||_0x592736['getAttribute']('listItemId')!==_0x190e87;return _0x305059&&Boolean(_0x190e87)&&_0x1ff9e8&&_0x6638d7;},_0x15fdac=>o(_0xf6ded,'ELEMENT_LIST_ITEM',_0x15fdac));}['_registerLegacyDescription'](){const _0x4ca39f=this['editor'],_0x4b5ead=_0x4ca39f['locale'];function _0x41a207(_0x9e5a92){const _0x158676=_0x4ca39f['commands']['get']('bulletedList')['value'],_0x3b9f0e=_0x4ca39f['commands']['get']('numberedList')['value'];return'numberedList'===_0x9e5a92?_0x158676:_0x3b9f0e;}_0x4ca39f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a8e68){if('formatBlock'!=_0x4a8e68['type'])return;const {data:_0x370c1d}=_0x4a8e68;if(!_0x370c1d)return;let _0x96e1ec,_0x14e400,_0x601667,_0x2fcaa4;switch(_0x370c1d['commandName']){case'bulletedList':_0x601667=_0x370c1d['commandParams'][0x0]['forceValue'],_0x2fcaa4=_0x41a207(_0x370c1d['commandName']),_0x96e1ec=_0x601667?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fcaa4&&_0x4ca39f['config']['get']('list.multiBlock')||(_0x96e1ec='*Change\x20to:*\x20%0'),_0x14e400={'type':'format','content':o(_0x4b5ead,_0x96e1ec,o(_0x4b5ead,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x601667=_0x370c1d['commandParams'][0x0]['forceValue'],_0x2fcaa4=_0x41a207(_0x370c1d['commandName']),_0x96e1ec=_0x601667?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fcaa4&&_0x4ca39f['config']['get']('list.multiBlock')||(_0x96e1ec='*Change\x20to:*\x20%0'),_0x14e400={'type':'format','content':o(_0x4b5ead,_0x96e1ec,o(_0x4b5ead,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x96e1ec='*Indent:*\x20%0',_0x14e400={'type':'format','content':o(_0x4b5ead,_0x96e1ec,o(_0x4b5ead,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x96e1ec=function(_0x4e5d8f){const _0x33e8ab=_0x4e5d8f['getFirstRange']();let _0x37fb0d=_0x33e8ab['start']['nodeAfter'];for(;_0x37fb0d&&_0x33e8ab['containsItem'](_0x37fb0d);){if(_0x37fb0d['getAttribute']('listIndent')>0x0)return!0x1;_0x37fb0d=_0x37fb0d['nextSibling'];}return!0x0;}(_0x4a8e68)?o(_0x4b5ead,'*Format:*\x20remove\x20from\x20%0',o(_0x4b5ead,function(_0x3f5c02){return'ELEMENT_'+_0x3f5c02['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a8e68))):o(_0x4b5ead,'*Outdent:*\x20%0',o(_0x4b5ead,'ELEMENT_LIST_ITEM')),_0x14e400={'type':'format','content':_0x96e1ec};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x370c1d['multipleBlocks']&&(_0x96e1ec='*Merge:*\x20%0',_0x14e400={'type':'deletion','content':o(_0x4b5ead,_0x96e1ec,o(_0x4b5ead,'ELEMENT_LIST_ITEM'))});}return _0x14e400;});}}function Te(_0x2edce0){let _0x4b8feb=_0x2edce0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b8feb;){const _0x28b7a2=_0x4b8feb['getAttribute']('listItemId');if(!_0x28b7a2)return!0x1;if(_0x28b7a2==_0x2edce0['data']['newValue'])return'newValue';if(_0x28b7a2==_0x2edce0['data']['oldValue'])return'oldValue';_0x4b8feb=_0x4b8feb['previousSibling'];}return!0x1;}class Se extends _0x59cf86{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ab277=this['editor']['config']['get']('list.properties'),_0x18d882=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ab277['styles']&&(_0x18d882['enableDefaultAttributesIntegration']('listStyle'),_0x18d882['registerBlockAttribute']('listStyle')),_0x2ab277['reversed']&&(_0x18d882['enableDefaultAttributesIntegration']('listReversed'),_0x18d882['registerBlockAttribute']('listReversed')),_0x2ab277['startIndex']&&(_0x18d882['enableDefaultAttributesIntegration']('listStart'),_0x18d882['registerBlockAttribute']('listStart'));const _0x2e8eb0={'type':'format','content':''};_0x18d882['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x392d36=this['editor']['locale'];_0x18d882['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x392d36,'FORMAT_LIST_REVERSED')),_0x18d882['descriptionFactory']['registerDescriptionCallback'](_0x1150e2=>{const {data:_0x2bf616}=_0x1150e2;if(_0x2bf616&&'listReversed'==_0x2bf616['key'])return null==_0x2bf616['newValue']||0x0==_0x2bf616['newValue']&&null==_0x2bf616['oldValue']?_0x2e8eb0:void 0x0;}),_0x18d882['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x392d36,'FORMAT_LIST_START')),_0x18d882['descriptionFactory']['registerDescriptionCallback'](_0xe86640=>{const {data:_0xac7d75}=_0xe86640;if(_0xac7d75&&'listStart'==_0xac7d75['key'])return null==_0xac7d75['newValue']||0x1==_0xac7d75['newValue']&&null==_0xac7d75['oldValue']?_0x2e8eb0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x207114=>{if(_0x207114['batch']['isUndo'])return!0x1;let _0x230114=!0x1;const _0x255376=_0x18d882['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d6e5b=>{const _0x4c046b=_0x18d882['_getAttributeKey'](_0x4d6e5b);return'listStart'==_0x4c046b||'listReversed'==_0x4c046b;});for(const _0x5229e2 of _0x255376){const _0x480015=_0x5229e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x480015||'customNumbered'==_0x480015)continue;_0x18d882['_findSuggestions'](_0x5229e2['getFirstRange'](),'attribute')['find'](_0x54104b=>'listType'==_0x18d882['_getAttributeKey'](_0x54104b['suggestion']))||(_0x207114['removeMarker'](_0x5229e2['getFirstMarker']()),_0x230114=!0x0);}return _0x230114;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x31181b){const _0x4fc9a7=this['editor']['locale'],{data:_0x2e8a1e}=_0x31181b,_0x277062={'type':'format','content':''};if(!_0x2e8a1e||'listStyle'!=_0x2e8a1e['key'])return;if(!_0x2e8a1e['oldValue'])return'default'==_0x2e8a1e['newValue']?_0x277062:{'type':'format','content':''+o(_0x4fc9a7,'*Set\x20format:*\x20%0',o(_0x4fc9a7,this['_getTranslationKeyForListStyle'](_0x2e8a1e['newValue'])))};if(!_0x2e8a1e['newValue']){if('default'==_0x2e8a1e['oldValue'])return _0x277062;let _0x3c5855=_0x31181b['head'];for(;_0x3c5855;){if(_0x3c5855['data']&&'listType'==_0x3c5855['data']['key']&&_0x3c5855['data']['newValue'])return _0x277062;_0x3c5855=_0x3c5855['next'];}return{'type':'format','content':''+o(_0x4fc9a7,'*Remove\x20format:*\x20%0',o(_0x4fc9a7,this['_getTranslationKeyForListStyle'](_0x2e8a1e['oldValue'])))};}if('default'!=_0x2e8a1e['newValue'])return{'type':'format','content':''+o(_0x4fc9a7,'*Set\x20format:*\x20%0',o(_0x4fc9a7,this['_getTranslationKeyForListStyle'](_0x2e8a1e['newValue'])))};let _0x5bc31c=_0x31181b['head'];for(;_0x5bc31c;){if(_0x5bc31c['data']&&'listType'==_0x5bc31c['data']['key']&&_0x5bc31c['data']['newValue']&&_0x5bc31c['data']['oldValue'])return _0x277062;_0x5bc31c=_0x5bc31c['next'];}return{'type':'format','content':o(_0x4fc9a7,'*Set\x20format:*\x20%0',o(_0x4fc9a7,'ELEMENT_'+_0x31181b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xf59284=this['editor'],_0x4eca3d=_0xf59284['locale'];_0xf59284['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257cd9=>{if('formatBlock'!=_0x257cd9['type'])return;const {data:_0x521353}=_0x257cd9;if(!_0x521353)return;let _0x3b24e7,_0x1ba2d6;switch(_0x521353['commandName']){case'listStyle':_0x3b24e7='*Change\x20to:*\x20%0',_0x1ba2d6={'type':'format','content':o(_0x4eca3d,_0x3b24e7,o(_0x4eca3d,this['_getTranslationKeyForListStyle'](_0x521353['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b24e7=_0x521353['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ba2d6={'type':'format','content':o(_0x4eca3d,_0x3b24e7)};break;case'listStart':_0x3b24e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ba2d6={'type':'format','content':o(_0x4eca3d,_0x3b24e7,_0x521353['commandParams'][0x0]['startIndex'])};}return _0x1ba2d6;});}['_getTranslationKeyForListStyle'](_0x5ee3ee){return'ELEMENT_'+function(_0x44041e){if(_e['includes'](_0x44041e))return'bulleted';if(Re['includes'](_0x44041e))return'numbered';return null;}(_0x5ee3ee)['toUpperCase']()+'_LIST_'+_0x5ee3ee['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x59cf86{['afterInit'](){const _0x3fe21e=this['editor'];_0x3fe21e['commands']['get']('emoji')&&_0x3fe21e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x59cf86{static get['requires'](){return[_0x2ca479];}['init'](){const _0x23c9a7=this['editor'],_0x5bdd54=_0x23c9a7['plugins']['get']('TrackChangesEditing'),_0x3950fc=_0x23c9a7['commands']['get']('enter');_0x5bdd54['enableCommand']('enter',()=>{_0x23c9a7['model']['change'](_0x2c96da=>{const _0x18da38=_0x23c9a7['model']['document']['selection'],_0x2f06ca=_0x18da38['getFirstPosition'](),_0x5b6fc0=_0x3e3cd3['fromRange'](_0x18da38['getFirstRange']());if(_0x3950fc['enterBlock'](_0x2c96da)){const _0x19caee=_0x23c9a7['model']['createPositionAt'](_0x2f06ca['parent']['nextSibling'],0x0),_0x402bc1=_0x2c96da['createRange'](_0x2f06ca,_0x19caee);_0x5bdd54['markInsertion'](_0x402bc1);}else _0x2c96da['setSelection'](_0x2c96da['createRange'](_0x5b6fc0['end']));_0x5b6fc0['detach'](),_0x3950fc['fire']('afterExecute',{'writer':_0x2c96da});});}),_0x23c9a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x23c9a7,'split'),{'priority':'high'}),_0x23c9a7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x455af6,_0x5c9c81,_0x1cb438)=>{const _0x3597a9=_0x1cb438['mapper']['markerNameToElements'](_0x5c9c81['markerName']);if(_0x3597a9){for(const _0x47b536 of _0x3597a9)_0x47b536['hasClass']('ck-suggestion-marker-split')&&(_0x1cb438['mapper']['unbindElementFromMarkerName'](_0x47b536,_0x5c9c81['markerName']),_0x1cb438['writer']['remove'](_0x47b536));}},{'priority':'high'}),_0x23c9a7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a0772,_0x1472ab,_0x1e3a2b)=>{_0x1e3a2b['options']['showSuggestionHighlights']&&De(_0x23c9a7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2a0772,_0x1472ab,_0x1e3a2b);},{'priority':'high'});}}class Z extends _0x59cf86{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2efcaf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2efcaf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2efcaf['enableCommand']('findNext'),_0x2efcaf['enableCommand']('findPrevious'),_0x2efcaf['enableCommand']('replace'),_0x2efcaf['enableCommand']('replaceAll');}['handleFindCommand'](_0x375f56,_0x4be65e,_0xd7989a={}){const _0x4b0c19=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x375f56(_0x32b05d=>{let _0x242fed=('string'==typeof _0x4be65e?_0x4b0c19['findByTextCallback'](_0x4be65e,_0xd7989a):_0x4be65e)(_0x32b05d);Array['isArray'](_0x242fed)&&(_0x242fed={'results':_0x242fed,'searchText':'string'==typeof _0x4be65e?_0x4be65e:''});const _0x44dfe6=_0x242fed['results']['filter'](_0x477bd2=>!0x1===this['_isInDeletionRange'](_0x477bd2,_0x32b05d['item']));return{..._0x242fed,'results':_0x44dfe6};},_0xd7989a);}['_isInDeletionRange'](_0x3d4de4,_0x40486c){const _0x300f75=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40486c,_0x3d4de4['start']),this['editor']['model']['createPositionAt'](_0x40486c,_0x3d4de4['end']));for(const _0x3f857e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x300f75['getIntersection'](_0x3f857e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x59cf86{['afterInit'](){const _0x4fc4ad=this['editor']['locale'],_0x4876ed=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54f7ae,commandName:_0x11a583}of ro)this['editor']['plugins']['has'](_0x54f7ae)&&(_0x4876ed['enableDefaultAttributesIntegration'](_0x11a583),_0x4876ed['registerInlineAttribute'](_0x11a583));_0x4876ed['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4fc4ad,'FORMAT_FONT_SIZE')),_0x4876ed['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4fc4ad,'FORMAT_FONT_FAMILY')),_0x4876ed['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4fc4ad,'FORMAT_FONT_COLOR')),_0x4876ed['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4fc4ad,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56234c=this['editor'],_0x32199a=_0x56234c['locale'];_0x56234c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xffff07=>{const _0x230e45=_0x32199a['t'];if('formatInline'!=_0xffff07['type'])return;const {data:_0x174307}=_0xffff07;if(null!=_0x174307){if('fontSize'==_0x174307['commandName']){const _0x3aa9fe=_0x174307['commandParams'][0x0]['value'];if(_0x3aa9fe){const _0x8f1d74=_0x230e45(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x11e3c9=>_0x11e3c9['model']==_0x3aa9fe)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32199a,'*Set\x20font\x20size:*\x20%0',_0x8f1d74)};}return{'type':'format','content':o(_0x32199a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x174307['commandName']){const _0x469b40=_0x174307['commandParams'][0x0]['value'];return _0x469b40?{'type':'format','content':o(_0x32199a,'*Set\x20font\x20family:*\x20%0',_0x469b40)}:{'type':'format','content':o(_0x32199a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x174307['commandName']){const _0x2f2177=_0x174307['commandParams'][0x0]['value'];if(_0x2f2177){const _0x50e88f=_0x3016f2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x78b238=>_0x78b238['model']==_0x2f2177);let _0x1fd930=_0x2f2177,_0x17629a='';return _0x50e88f&&(_0x1fd930=_0x50e88f['label'],_0x17629a=_0x230e45(_0x1fd930)['toLowerCase']()),{'type':'format','content':o(_0x32199a,'*Set\x20font\x20color:*\x20%0',_0x17629a)['trim'](),'color':{'value':_0x2f2177,'title':_0x17629a||_0x1fd930}};}return{'type':'format','content':o(_0x32199a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x174307['commandName']){const _0x3078f0=_0x174307['commandParams'][0x0]['value'];if(_0x3078f0){const _0x4fd917=_0x3016f2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1219ca=>_0x1219ca['model']==_0x3078f0);let _0x42f72d=_0x3078f0,_0x4a8ff6='';return _0x4fd917&&(_0x42f72d=_0x4fd917['label'],_0x4a8ff6=_0x230e45(_0x42f72d)['toLowerCase']()),{'type':'format','content':o(_0x32199a,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a8ff6)['trim'](),'color':{'value':_0x3078f0,'title':_0x4a8ff6||_0x42f72d}};}return{'type':'format','content':o(_0x32199a,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x59cf86{['afterInit'](){const _0x559e20=this['editor'],_0x2dbc90=_0x559e20['plugins']['get']('TrackChangesEditing'),_0x111f43=_0x559e20['commands']['get']('copyFormat'),_0x5722bc=_0x559e20['commands']['get']('pasteFormat');_0x111f43&&_0x5722bc&&(_0x2dbc90['enableDefaultAttributesIntegration']('pasteFormat'),_0x2dbc90['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f557b=this['editor'],_0x6d573d=_0x4f557b['locale'];_0x4f557b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d30d=>{if('formatBlock'!=_0x29d30d['type']&&'formatInline'!=_0x29d30d['type'])return;const {data:_0x5ad248}=_0x29d30d;if(_0x5ad248&&'pasteFormat'===_0x5ad248['commandName']){const _0x21794e=[],_0x328d3e=_0x5ad248['commandParams'][0x0];for(const [_0x1c1e98,_0x2b6b28]of Object['entries'](_0x328d3e))_0x21794e['push'](so(_0x4f557b,_0x1c1e98,_0x2b6b28));return _0x21794e['length']?{'type':'format','content':o(_0x6d573d,'*Set\x20format\x20to:*\x20%0',_0x21794e['join'](',\x20'))}:{'type':'format','content':o(_0x6d573d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1f2b37,_0x754a94,_0x4231a6){const _0x4cc14c=_0x1f2b37['locale']['t'],_0x5be62a=_0x754a94['split'](/(?=[A-Z])/)['join']('\x20'),_0x472d82=_0x4cc14c(_0x5be62a['charAt'](0x0)['toUpperCase']()+_0x5be62a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4231a6)return _0x472d82;if('fontColor'===_0x754a94||'fontBackgroundColor'===_0x754a94){const _0x52b5ae=_0x3016f2(_0x1f2b37['config']['get']('fontColor.colors'))['find'](_0x2be99e=>_0x2be99e['model']==_0x4231a6);return _0x472d82+'\x20('+(_0x52b5ae?_0x4cc14c(_0x52b5ae['label'])['toLowerCase']():_0x4231a6)+')';}if('fontSize'===_0x754a94&&isNaN(parseFloat(_0x4231a6))){const _0x4f387b=_0x1f2b37['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f2b37['config']['get']('fontSize.options'))['find'](_0x5ca638=>_0x5ca638['model']==_0x4231a6);return _0x472d82+'\x20('+(_0x4f387b?_0x4cc14c(_0x4f387b['title'])['toLowerCase']():_0x4231a6)+')';}return _0x472d82+'\x20('+_0x4231a6+')';}class it extends _0x59cf86{['_headingOptions'];['afterInit'](){const _0x19501a=this['editor'];if(!_0x19501a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x19501a['config']['get']('heading.options');const _0x22f3f9=_0x19501a['locale'],_0x1837ee=_0x19501a['plugins']['get']('TrackChangesEditing');_0x1837ee['enableDefaultAttributesIntegration']('heading');for(const _0x1533f5 of this['_headingOptions'])'paragraph'!=_0x1533f5['model']&&_0x1837ee['descriptionFactory']['registerElementLabel'](_0x1533f5['model'],_0x228e28=>{const _0x2ce772=this['_getHeadingLevel'](_0x1533f5['model']);return null!==_0x2ce772?_0x2f83f6(_0x228e28,_0x2ce772):_0x872029(_0x228e28,_0x1533f5['title']);});function _0x2f83f6(_0x146002,_0x16c9bf){return o(_0x22f3f9,'ELEMENT_HEADING',[_0x146002,_0x16c9bf]);}function _0x872029(_0x5c7ce5,_0x4067e1){return o(_0x22f3f9,'ELEMENT_HEADING_CUSTOM',[_0x5c7ce5,_0x4067e1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10cd27=this['editor'],_0x37f1f4=_0x10cd27['locale'];function _0x4d7534(_0x713c4c,_0x3d48e4){return o(_0x37f1f4,'ELEMENT_HEADING_CUSTOM',[_0x713c4c,_0x3d48e4]);}_0x10cd27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221bc6=>{if('formatBlock'!=_0x221bc6['type'])return;const {data:_0x3538cc}=_0x221bc6;if(_0x3538cc&&'heading'==_0x3538cc['commandName']){const _0x575c36=_0x3538cc['commandParams'][0x0]['value'],_0x47fd5c=this['_getHeadingLevel'](_0x575c36);if(null!==_0x47fd5c)return{'type':'format','content':o(_0x37f1f4,'*Change\x20to:*\x20%0',(_0x5197ef=0x1,_0x2c0180=_0x47fd5c,o(_0x37f1f4,'ELEMENT_HEADING',[_0x5197ef,_0x2c0180])))};const _0x11d8f9=this['_headingOptions']['find'](_0x59ee6d=>_0x59ee6d['model']===_0x575c36)['title'];return{'type':'format','content':o(_0x37f1f4,'*Change\x20to:*\x20%0',_0x4d7534(0x1,_0x11d8f9))};}var _0x5197ef,_0x2c0180;});}['_getHeadingLevel'](_0x10dc70){const _0x1a646c=_0x10dc70['match'](/^heading(\d+)/);if(_0x1a646c)return _0x1a646c[0x1];const _0x5efa4a=this['_headingOptions']?.['find'](_0x476072=>_0x476072['model']==_0x10dc70);if(_0x5efa4a&&_0x5efa4a['view']){const _0x19394d=_0x5efa4a['view'],_0x2e4273=(_0x19394d['name']??_0x19394d)['match'](/^h(\d+)/);if(_0x2e4273)return _0x2e4273[0x1];}return null;}}class et extends _0x59cf86{['afterInit'](){const _0x2abecb=this['editor'];if(!_0x2abecb['plugins']['has']('HighlightEditing'))return;const _0x52770f=_0x2abecb['plugins']['get']('TrackChangesEditing'),_0x49ceb9=_0x2abecb['locale'];_0x52770f['enableDefaultAttributesIntegration']('highlight'),_0x52770f['registerInlineAttribute']('highlight'),_0x52770f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x49ceb9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16a401=this['editor'],_0x5bb6b1=_0x16a401['locale'];_0x16a401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x600bde=>{if('formatInline'!=_0x600bde['type'])return;const {data:_0x5767d8}=_0x600bde;if(_0x5767d8&&'highlight'==_0x5767d8['commandName']){const _0x91dfe8=_0x5bb6b1['t'],_0x1720c7=_0x5767d8['commandParams'][0x0]['value'];if(_0x1720c7){const _0x4e80bc=_0x16a401['config']['get']('highlight.options')['find'](_0x4efd99=>_0x4efd99['model']==_0x1720c7),_0x1058c9=_0x91dfe8(_0x4e80bc['title'])['toLowerCase']();return{'type':'format','content':o(_0x5bb6b1,'*Set\x20highlight:*\x20%0',_0x1058c9),'color':{'value':_0x4e80bc['color'],'title':_0x4e80bc['title']}};}return{'type':'format','content':o(_0x5bb6b1,'*Remove\x20highlight*',o(_0x5bb6b1,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x59cf86{['afterInit'](){const _0x27b5d3=this['editor'];if(!_0x27b5d3['plugins']['has']('HorizontalLineEditing'))return;_0x27b5d3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x534a5e=_0x27b5d3['plugins']['get']('TrackChangesEditing'),_0xf75437=_0x27b5d3['locale'];_0x534a5e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x521d99=>o(_0xf75437,'ELEMENT_HORIZONTAL_LINE',_0x521d99)),_0x27b5d3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4725a1,{writer:_0x5a8af2,options:_0x2e13b9})=>{if(!_0x2e13b9['showSuggestionHighlights'])return null;const _0x16fd54=_0x5a8af2['createContainerElement']('div'),_0x1ccbbc=_0x5a8af2['createEmptyElement']('hr');return _0x5a8af2['addClass']('ck-horizontal-line',_0x16fd54),_0x5a8af2['insert'](_0x5a8af2['createPositionAt'](_0x16fd54,0x0),_0x1ccbbc),_0x16fd54;},'converterPriority':'high'});}}class ot extends _0x59cf86{['afterInit'](){const _0x1018a8=this['editor'];if(!_0x1018a8['plugins']['has']('HtmlEmbed'))return;const _0x54c800=_0x1018a8['plugins']['get']('TrackChangesEditing'),_0x55e2d5=_0x1018a8['locale'];_0x54c800['descriptionFactory']['registerElementLabel']('rawHtml',_0x3934bf=>o(_0x55e2d5,'ELEMENT_HTML_EMBED',_0x3934bf)),_0x54c800['enableDefaultAttributesIntegration']('htmlEmbed'),_0x54c800['registerBlockAttribute']('value'),_0x54c800['descriptionFactory']['registerDescriptionCallback'](_0x43c631=>{if('attribute'!=_0x43c631['type'])return;const {data:_0x20cf21}=_0x43c631;if(_0x20cf21&&'value'==_0x20cf21['key']&&_0x43c631['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5e10e4=o(_0x55e2d5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x55e2d5,'*Change\x20%0\x20content*',_0x5e10e4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38ab11=this['editor'],_0x1ebfc3=_0x38ab11['locale'];_0x38ab11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe205d2=>{if('formatBlock'!=_0xe205d2['type'])return;const {data:_0x1eff5c}=_0xe205d2;if(_0x1eff5c&&'htmlEmbed'==_0x1eff5c['commandName']){const _0x23ae22=o(_0x1ebfc3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ebfc3,'*Change\x20%0\x20content*',_0x23ae22)};}});}}class rt extends _0x59cf86{['afterInit'](){const _0x28d5ff=this['editor'];if(!_0x28d5ff['plugins']['has']('ImageEditing'))return;const _0x35925a=_0x28d5ff['plugins']['get']('TrackChangesEditing'),_0x2ea2af=_0x28d5ff['plugins']['get']('ImageUtils'),_0x5cb790=_0x28d5ff['locale'];_0x35925a['enableCommand']('insertImage'),_0x35925a['descriptionFactory']['registerElementLabel']('imageBlock',_0x3eb229=>o(_0x5cb790,'ELEMENT_IMAGE',_0x3eb229)),_0x35925a['descriptionFactory']['registerElementLabel']('imageInline',_0x9fd620=>o(_0x5cb790,'ELEMENT_INLINE_IMAGE',_0x9fd620)),_0x35925a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5cb790,'ELEMENT_CAPTION')),_0x28d5ff['plugins']['has']('ImageUploadEditing')&&_0x35925a['enableCommand']('uploadImage'),_0x28d5ff['plugins']['has']('ImageBlockEditing')&&_0x28d5ff['plugins']['has']('ImageInlineEditing')&&(_0x35925a['enableCommand']('imageTypeInline',(_0x44919a,_0x3523bf)=>{const _0x156c62=_0x2ea2af['getClosestSelectedImageElement'](_0x28d5ff['model']['document']['selection']);_0x28d5ff['model']['change'](()=>{_0x35925a['markBlockFormat'](_0x156c62,{'commandName':'imageTypeInline','commandParams':[_0x3523bf]},[],'convertBlockImageToInline');});}),_0x35925a['enableCommand']('imageTypeBlock',(_0x35be28,_0x104144)=>{_0x28d5ff['model']['change'](_0x43afd9=>{let _0x57d737=_0x2ea2af['getClosestSelectedImageElement'](_0x28d5ff['model']['document']['selection']),_0x1f3682=_0x43afd9['createRangeOn'](_0x57d737);const _0x1b477b=_0x5f1a3a['fromPosition'](_0x1f3682['start'],'toPrevious'),_0x315e1b=_0x5f1a3a['fromPosition'](_0x1f3682['end'],'toNext');_0x35925a['forceDefaultExecution'](()=>_0x35be28(_0x104144)),_0x57d737=_0x2ea2af['getClosestSelectedImageElement'](_0x28d5ff['model']['document']['selection']),_0x1f3682=_0x43afd9['createRangeOn'](_0x57d737);const _0x15d585=_0x43afd9['createRange'](_0x1b477b,_0x315e1b);_0x1b477b['detach'](),_0x315e1b['detach'](),_0x35925a['markBlockFormat'](_0x57d737,{'commandName':'imageTypeInline','commandParams':[_0x104144]},[],'convertInlineImageToBlock'),_0x15d585['start']['isBefore'](_0x1f3682['start'])&&_0x35925a['markInsertion'](_0x43afd9['createRange'](_0x15d585['start'],_0x1f3682['start']),'convertInlineImageToBlock'),_0x1f3682['end']['isBefore'](_0x15d585['end'])&&_0x35925a['markInsertion'](_0x43afd9['createRange'](_0x1f3682['end'],_0x15d585['end']),'convertInlineImageToBlock');});}),_0x35925a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35925a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35925a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35925a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35925a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35925a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39860c])=>{const _0xe08832=_0x35925a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x34fc60=_0x39860c['start'],_0x2c3920=_0x39860c['end'];const _0x1c1808=_0x28d5ff['model']['schema']['getNearestSelectionRange'](_0x34fc60,'backward'),_0x1945ab=_0x28d5ff['model']['schema']['getNearestSelectionRange'](_0x2c3920,'forward');_0x1c1808['isCollapsed']&&(_0x34fc60=_0x1c1808['start']),_0x1945ab['isCollapsed']&&(_0x2c3920=_0x1945ab['end']),_0xe08832([_0x28d5ff['model']['createRange'](_0x34fc60,_0x2c3920)]);}),_0x35925a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x42d76f),_0x35925a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x42d76f)),_0x28d5ff['plugins']['has']('ImageCaptionEditing')&&(_0x35925a['enableCommand']('toggleImageCaption',(_0x192442,_0x739bcf)=>{const _0x508fc2=_0x28d5ff['plugins']['get']('ImageCaptionUtils');let _0x3e95a3=_0x2ea2af['getClosestSelectedImageElement'](_0x28d5ff['model']['document']['selection']),_0x370547=_0x508fc2['getCaptionFromImageModelElement'](_0x3e95a3);_0x28d5ff['model']['change'](()=>{if(_0x370547)return void _0x35925a['markDeletion'](_0x28d5ff['model']['createRangeOn'](_0x370547));const _0x340023=_0x2ea2af['isBlockImage'](_0x3e95a3);_0x192442(_0x739bcf),_0x3e95a3=_0x2ea2af['getClosestSelectedImageElement'](_0x28d5ff['model']['document']['selection']),_0x370547=_0x508fc2['getCaptionFromImageModelElement'](_0x3e95a3),_0x35925a['markInsertion'](_0x28d5ff['model']['createRangeOn'](_0x370547),_0x340023?null:'imageCaption');});}),_0x35925a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x42d76f));const _0x45fa83=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24edd4(_0x5d4b58,_0x605479){const _0x2c4635=_0x45fa83['findIndex'](({type:_0x47c429,subType:_0xc8c953})=>_0x5d4b58['type']==_0x47c429&&_0x5d4b58['subType']==_0xc8c953),_0xb7a8=_0x45fa83['findIndex'](({type:_0x29f71e,subType:_0x2523dc})=>_0x605479['type']==_0x29f71e&&_0x605479['subType']==_0x2523dc);if(_0x2c4635<0x0||_0xb7a8<0x0)return!0x1;const _0x3f381f=_0x5d4b58['getFirstRange'](),_0x47ab22=_0x605479['getFirstRange']();if((0x0==_0x2c4635||0x1==_0x2c4635)&&0x2==_0xb7a8&&_0x3f381f['isIntersecting'](_0x47ab22))return!0x0;if(0x2==_0x2c4635&&0x3==_0xb7a8){const _0x3150b8=_0x35925a['_findSuggestions'](_0x3f381f,'insertion')['filter'](({suggestion:_0x3d9a45,meta:_0x5ba826})=>_0x5ba826['isOwn']&&'convertInlineImageToBlock'==_0x3d9a45['subType']);if(_0x3150b8['length']>0x1&&_0x47ab22['end']['isEqual'](_0x3f381f['start']))return!0x0;if(0x1==_0x3150b8['length']&&(_0x3f381f['start']['isEqual'](_0x47ab22['end'])||_0x3f381f['end']['isEqual'](_0x47ab22['start'])))return!0x0;}if(0x3==_0x2c4635&&0x3==_0xb7a8&&_0x3f381f['start']['isBefore'](_0x47ab22['start'])){const _0x48a6a5=_0x3f381f['end']['nodeAfter'],_0x576ee9=_0x47ab22['start']['nodeBefore'];return _0x2ea2af['isBlockImage'](_0x48a6a5)&&_0x48a6a5===_0x576ee9;}return!0x1;}function _0x42d76f(_0x1100e6,_0x59dd7e){return _0x24edd4(_0x1100e6,_0x59dd7e)?[_0x1100e6,_0x59dd7e]:_0x24edd4(_0x59dd7e,_0x1100e6)?[_0x59dd7e,_0x1100e6]:null;}_0x28d5ff['plugins']['has']('ImageResize')&&(_0x35925a['enableDefaultAttributesIntegration']('resizeImage'),_0x35925a['registerBlockAttribute']('resizedWidth'),_0x35925a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5cb790,'FORMAT_IMAGE_SIZE'))),_0x28d5ff['plugins']['has']('ImageTextAlternativeEditing')&&(_0x35925a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x35925a['registerBlockAttribute']('alt')),_0x28d5ff['plugins']['has']('PictureEditing')&&(_0x35925a['registerBlockAttribute']('sources'),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0xb76d17=>{if('attribute'!=_0xb76d17['type'])return;const {data:_0x39a0b9}=_0xb76d17;return _0x39a0b9&&'sources'==_0x39a0b9['key']?{'type':'format','content':''}:void 0x0;})),_0x28d5ff['plugins']['has']('ImageSizeAttributes')&&(_0x35925a['registerBlockAttribute']('width'),_0x35925a['registerBlockAttribute']('height'),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0x11cc50=>{if('attribute'!=_0x11cc50['type'])return;const {data:_0x1dd14a}=_0x11cc50;return!_0x1dd14a||'width'!=_0x1dd14a['key']&&'height'!=_0x1dd14a['key']?void 0x0:{'type':'format','content':''};})),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0x5c81ff=>{if(!!_0x45fa83['find'](({type:_0x108f84,subType:_0x26cf66})=>_0x5c81ff['type']==_0x108f84&&_0x5c81ff['subType']==_0x26cf66))return _0x5c81ff['previous']?{}:void 0x0;}),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0x29c0c1=>{if('insertion'==_0x29c0c1['type']||'deletion'==_0x29c0c1['type']){const _0x5c304=_0x29c0c1['getContainedElement']();if(_0x5c304&&_0x5c304['is']('element','caption'))return{'type':'insertion'==_0x29c0c1['type']?'addObject':'removeObject','element':_0x5c304,'quantity':0x1};}}),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0x2c31bb=>'formatBlock'==_0x2c31bb['type']&&'convertInlineImageToBlock'==_0x2c31bb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2c31bb['type']&&'convertBlockImageToInline'==_0x2c31bb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35925a['descriptionFactory']['registerDescriptionCallback'](_0x3c1d1d=>{if('attribute'!=_0x3c1d1d['type'])return;const {data:_0x13793c}=_0x3c1d1d;if(!_0x13793c||'alt'!=_0x13793c['key'])return;const _0x2585ef=_0x13793c['newValue'];return _0x2585ef?{'type':'format','content':o(_0x5cb790,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2585ef+'\x22')}:{'type':'format','content':o(_0x5cb790,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e4aec=this['editor'],_0xb4c573=_0x5e4aec['locale'];_0x5e4aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23f523=>{if('formatBlock'!=_0x23f523['type']&&'formatInline'!=_0x23f523['type'])return;const {data:_0x2b06fc}=_0x23f523;if(_0x2b06fc){if('imageTextAlternative'==_0x2b06fc['commandName']){const _0xbe9384=_0x2b06fc['commandParams'][0x0]['newValue'];return _0xbe9384?{'type':'format','content':o(_0xb4c573,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xbe9384+'\x22')}:{'type':'format','content':o(_0xb4c573,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b06fc['commandName']){const _0x7dce63=_0x2b06fc['commandParams'][0x0]['width'];return _0x7dce63?{'type':'format','content':o(_0xb4c573,'*Set\x20image\x20width:*\x20%0',_0x7dce63)}:{'type':'format','content':o(_0xb4c573,'*Reset\x20image\x20width*')};}}});}}class at extends _0x59cf86{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x249065=this['editor']['locale'],_0x4d096b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d096b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4d096b['registerBlockAttribute']('src'),_0x4d096b['descriptionFactory']['registerDescriptionCallback'](_0x10acca=>{if('attribute'!=_0x10acca['type'])return;const {data:_0x529bfc}=_0x10acca;return _0x529bfc&&'src'==_0x529bfc['key']?_0x529bfc['newValue']&&_0x529bfc['oldValue']?{'type':'format','content':o(_0x249065,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x16bc93=this['editor']['plugins']['get']('TrackChangesEditing');_0x16bc93['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x16bc93['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x16bc93['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x16bc93['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ae9db=this['editor'],_0x74a471=_0x1ae9db['locale'];_0x1ae9db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ca233=>{if('formatBlock'!=_0x1ca233['type']&&'formatInline'!=_0x1ca233['type'])return;const {data:_0x38f124}=_0x1ca233;if(!_0x38f124||'replaceImageSource'!=_0x38f124['commandName'])return;return{'type':'format','content':o(_0x74a471,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x59cf86{['afterInit'](){const _0x35af6f=this['editor'];if(!_0x35af6f['plugins']['has']('ImageStyleEditing'))return;const _0x5555ef=_0x35af6f['plugins']['get']('TrackChangesEditing'),_0x9ed2bf=_0x35af6f['plugins']['get']('ImageUtils'),_0x644372={};_0x5555ef['enableCommand']('imageStyle',(_0x58d2f3,_0x3c5935)=>{const _0x475167=_0x35af6f['plugins']['get']('Users')['me'],_0x5ef001=_0x35af6f['commands']['get']('imageStyle');let _0xdc1c26=_0x9ed2bf['getClosestSelectedImageElement'](_0x35af6f['model']['document']['selection']),_0x3e0cf2=_0x35af6f['model']['createRangeOn'](_0xdc1c26),_0xb45e40=_0x5ef001['value'];if(_0xb45e40==_0x3c5935['value'])return;const _0xce44ce={'commandName':'imageStyle','commandParams':[_0x3c5935],'formatGroupId':_0x1d192f()};_0x35af6f['model']['change'](()=>{if(_0x5555ef['getSuggestions']()['filter'](_0x39da46=>_0x39da46['isInContent']&&_0x475167==_0x39da46['author']&&('formatBlock'==_0x39da46['type']||'formatInline'==_0x39da46['type'])&&('imageStylePreApply'==_0x39da46['subType']||'imageStylePostApply'==_0x39da46['subType'])&&_0x39da46['getFirstRange']()['isEqual'](_0x3e0cf2))['forEach'](_0x2e6c98=>_0x5555ef['discardSuggestion'](_0x2e6c98['head'])),_0xdc1c26=_0x9ed2bf['getClosestSelectedImageElement'](_0x35af6f['model']['document']['selection']),_0x3e0cf2=_0x35af6f['model']['createRangeOn'](_0xdc1c26),_0x5ef001['refresh'](),_0x35af6f['commands']['get']('imageTypeInline')['refresh'](),_0x35af6f['commands']['get']('imageTypeBlock')['refresh'](),_0xb45e40=_0x5ef001['value'],_0xb45e40!=_0x3c5935['value'])return _0x9ed2bf['isInlineImage'](_0xdc1c26)&&_0x5ef001['shouldConvertImageType'](_0x3c5935['value'],_0xdc1c26)?(_0x58d2f3({..._0x3c5935,'setImageSizes':!0x1}),_0xdc1c26=_0x9ed2bf['getClosestSelectedImageElement'](_0x35af6f['model']['document']['selection']),void _0x5555ef['markBlockFormat'](_0xdc1c26,{..._0xce44ce,'commandReversedParams':[{'value':_0xb45e40||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x9ed2bf['isBlockImage'](_0xdc1c26)?_0x5555ef['markBlockFormat'](_0xdc1c26,_0xce44ce,[],'imageStylePostApply'):_0x5555ef['markInlineFormat'](_0x3e0cf2,_0xce44ce,'imageStylePostApply'));});});for(const _0x59e9e2 of _0x35af6f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x644372[_0x59e9e2['name']]=_0x59e9e2['title']['toLowerCase']();_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x28e2f7])=>{_0x9ed2bf['setImageNaturalSizeAttributes'](_0x28e2f7['getContainedElement']());}),_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x465bec,_0x22aa7a)=>{_0x5555ef['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x465bec,{'commandName':_0x22aa7a['commandName'],'commandParams':_0x22aa7a['commandReversedParams']});}),_0x5555ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e89c5,_0xdc7d9a){if(_0x5c5991(_0x4e89c5,_0xdc7d9a))return[_0x4e89c5,_0xdc7d9a];if(_0x5c5991(_0xdc7d9a,_0x4e89c5))return[_0xdc7d9a,_0x4e89c5];return null;});const _0x17d810=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c5991(_0x4ef32b,_0x24c43c){const _0xd98391=_0x17d810['findIndex'](({type:_0x457fbd,subType:_0xec89a4})=>_0x4ef32b['type']==_0x457fbd&&_0x4ef32b['subType']==_0xec89a4),_0x12d040=_0x17d810['findIndex'](({type:_0x3525e1,subType:_0x3fa3c5})=>_0x24c43c['type']==_0x3525e1&&_0x24c43c['subType']==_0x3fa3c5);if(_0xd98391<0x0||_0x12d040<0x0)return!0x1;const _0x4974a7=_0x4ef32b['getFirstRange'](),_0x2989c9=_0x24c43c['getFirstRange']();if((0x0==_0xd98391||0x1==_0xd98391)&&0x2==_0x12d040&&_0x4974a7['isIntersecting'](_0x2989c9))return!0x0;if(0x2==_0xd98391&&0x3==_0x12d040){const _0x82572d=_0x5555ef['_findSuggestions'](_0x4974a7,'insertion')['filter'](({suggestion:_0x372e8c,meta:_0x4588b4})=>_0x4588b4['isOwn']&&'convertInlineImageToBlock'==_0x372e8c['subType']);if(_0x82572d['length']>0x1&&_0x2989c9['end']['isEqual'](_0x4974a7['start']))return!0x0;if(0x1==_0x82572d['length']&&(_0x4974a7['start']['isEqual'](_0x2989c9['end'])||_0x4974a7['end']['isEqual'](_0x2989c9['start'])))return!0x0;}if(0x3==_0xd98391&&0x3==_0x12d040&&_0x4974a7['start']['isBefore'](_0x2989c9['start'])){const _0x7a9fc1=_0x4974a7['end']['nodeAfter'],_0x6ede62=_0x2989c9['start']['nodeBefore'];return _0x9ed2bf['isBlockImage'](_0x7a9fc1)&&_0x7a9fc1===_0x6ede62;}return!0x1;}_0x35af6f['model']['document']['registerPostFixer'](()=>{let _0x48682f=!0x1;const _0x5ae46e=Array['from'](_0x35af6f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15fbe8,data:_0x4efba3}of _0x5ae46e){const {group:_0x5edd04,type:_0x46a5f7,subType:_0x506b9a,id:_0x549805}=_0x5555ef['_splitMarkerName'](_0x15fbe8);if('suggestion'==_0x5edd04&&_0x5555ef['hasSuggestion'](_0x549805)){if('formatBlock'==_0x46a5f7&&('imageStylePreApply'==_0x506b9a||'imageStylePostApply'==_0x506b9a)){const _0xb53712=_0x5555ef['getSuggestion'](_0x549805);if(_0x4efba3['newRange']){const _0x5be6a7=_0xb53712['getFirstRange']()['getContainedElement']();if(_0x9ed2bf['isBlockImage'](_0x5be6a7))continue;_0x5555ef['discardSuggestion'](_0xb53712),_0x48682f=!0x0;}}if('insertion'==_0x46a5f7&&'imageCaption'==_0x506b9a&&!_0x4efba3['newRange']){const _0x1b1982=_0x5555ef['getSuggestion'](_0x549805);_0x1b1982['next']&&_0x1b1982['next']['isInContent']&&(_0x5555ef['discardSuggestion'](_0x1b1982['next']),_0x48682f=!0x0);}}}return _0x48682f;}),this['_registerLegacyDescription'](_0x644372);}['_registerLegacyDescription'](_0x301135){const _0x80cce0=this['editor'],_0x509304=_0x80cce0['locale'];_0x80cce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb5f7=>{if('formatBlock'!=_0x4cb5f7['type']&&'formatInline'!=_0x4cb5f7['type'])return;const {data:_0xc981ef}=_0x4cb5f7;if(!_0xc981ef||'imageStyle'!=_0xc981ef['commandName'])return;const _0x24ae66=_0xc981ef['commandParams'][0x0]['value'];return _0x3521e2('side'===_0x24ae66?o(_0x509304,'FORMAT_SIDE_IMAGE'):_0x301135[_0x24ae66]||_0x24ae66);function _0x3521e2(_0x5e28ed){return{'type':'format','content':o(_0x509304,'*Format:*\x20%0',_0x5e28ed)};}});}}class ut extends _0x59cf86{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3d8dfe){super(_0x3d8dfe),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x426a0b=this['editor'],_0x3d5b88=_0x426a0b['commands']['get']('importWord'),_0x483a3e=_0x426a0b['commands']['get']('trackChanges');_0x3d5b88&&(_0x3d5b88['on']('execute',(_0x585900,[,_0x2fe89e])=>{this['_trackChangesValueDuringImport']=_0x483a3e['value'],_0x2fe89e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d5b88,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d5b88,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x483a3e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x426a0b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x35dfa8,_0x3b69c2){const {suggestions:_0x3c3cc8}=_0x3b69c2,_0x373d51=this['editor']['commands']['get']('trackChanges'),_0xd0cd6c=_0x373d51['value'];this['_trackChangesValueDuringImport']!==_0xd0cd6c&&(_0x373d51['execute'](),this['_trackChangesExecuted']=!0x0),_0x3c3cc8&&_0x3c3cc8['forEach'](({id:_0x4d6c3d,type:_0x4dd08c,author:_0x431b5b,created_at:_0x135d58})=>{const _0x2acb95={'id':_0x4d6c3d,'type':_0x4dd08c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x431b5b,'createdAt':_0x135d58?new Date(_0x135d58):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2acb95);});}}class ft extends _0x59cf86{['afterInit'](){const _0x1ae459=this['editor'],_0xc1a638=_0x1ae459['plugins']['get']('TrackChangesEditing');if(_0x1ae459['plugins']['has']('IndentEditing')&&(_0xc1a638['enableCommand']('indent'),_0xc1a638['enableCommand']('outdent')),_0x1ae459['plugins']['has']('IndentBlock')){for(const _0x297811 of['indentBlock','outdentBlock'])_0xc1a638['enableDefaultAttributesIntegration'](_0x297811);}const _0x1476c3=_0x1ae459['locale'];_0xc1a638['registerBlockAttribute']('blockIndent'),_0xc1a638['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1476c3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5824b1=this['editor'],_0x581289=_0x5824b1['locale'],_0x14696b=_0x5824b1['plugins']['get']('TrackChangesEditing');_0x14696b['descriptionFactory']['registerDescriptionCallback'](_0x44f048=>{if('formatBlock'!=_0x44f048['type'])return;const {data:_0x389538}=_0x44f048;if(!_0x389538)return;if('indentBlock'!=_0x389538['commandName']&&'outdentBlock'!=_0x389538['commandName'])return;const _0x157d5e=_0x44f048['getItems']()[0x0],_0x5e7d0d=_0x14696b['descriptionFactory']['getItemLabel'](_0x157d5e);return'indentBlock'==_0x389538['commandName']?{'type':'format','content':o(_0x581289,'*Indent:*\x20%0',_0x5e7d0d)}:'outdentBlock'==_0x389538['commandName']?{'type':'format','content':o(_0x581289,'*Outdent:*\x20%0',_0x5e7d0d)}:void 0x0;});}}class ht extends _0x59cf86{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x59cf86{['afterInit'](){const _0x4de500=this['editor'];if(!_0x4de500['plugins']['has']('LinkEditing'))return;const _0xc4d015=_0x4de500['plugins']['get']('TrackChangesEditing'),_0x407648=_0x4de500['commands']['get']('link');_0xc4d015['enableDefaultAttributesIntegration']('link'),_0xc4d015['enableDefaultAttributesIntegration']('unlink'),_0xc4d015['registerInlineAttribute']('linkHref');for(const _0xce77c0 of _0x407648['manualDecorators'])_0xc4d015['registerInlineAttribute'](_0xce77c0['id']),_0xc4d015['descriptionFactory']['registerAttributeLabel'](_0xce77c0['id'],'link\x20('+_0xce77c0['label']['toLowerCase']()+')');_0xc4d015['descriptionFactory']['registerDescriptionCallback'](_0x544a75=>{if('attribute'!=_0x544a75['type'])return;const {data:_0x566d20}=_0x544a75;if(!_0x566d20||'linkHref'!=_0x566d20['key'])return;const _0x4fd17b=_0x566d20['newValue'],_0x4004b8=_0x4de500['locale'];return{'type':'format','content':null==_0x4fd17b?o(_0x4004b8,'*Remove\x20link*'):o(_0x4004b8,'*Set\x20link:*\x20%0','\x22'+_0x4fd17b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36a36b=this['editor'],_0x51bcf9=_0x36a36b['locale'];_0x36a36b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b0ea2=>{if('formatInline'!=_0x1b0ea2['type'])return;const {data:_0x1c7a5c}=_0x1b0ea2;if(_0x1c7a5c){if('link'==_0x1c7a5c['commandName']){const _0x34ed0c=_0x1c7a5c['commandParams'][0x0];return{'type':'format','content':o(_0x51bcf9,'*Set\x20link:*\x20%0','\x22'+_0x34ed0c+'\x22')};}return'unlink'==_0x1c7a5c['commandName']?{'type':'format','content':o(_0x51bcf9,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x59cf86{['afterInit'](){const _0x2dca2f=this['editor'],_0x1d5a48=_0x2dca2f['locale'];if(!_0x2dca2f['plugins']['has']('LegacyListEditing'))return;const _0x440d61=_0x2dca2f['plugins']['get']('TrackChangesEditing'),_0x3028cb=_0x2dca2f['plugins']['has']('LegacyTodoListEditing');function _0x176c43(_0x341f6f){return()=>{const _0x22d858=_0x2dca2f['model']['document']['selection'],_0x455565=_0x2dca2f['commands']['get'](_0x341f6f);if(_0x455565['value'])return void _0x2dca2f['execute']('paragraph',{});const _0x594988=_0x341f6f['slice'](0x0,-0x4),_0x3aec0c=function(_0x4dae19,_0x4e19be,_0x3fa384){let _0x2c3a94=Array['from'](_0x4dae19)['filter'](_0x354734=>function(_0x386ed5,_0x1a6258){return _0x1a6258['checkChild'](_0x386ed5['parent'],'listItem')&&!_0x1a6258['isObject'](_0x386ed5);}(_0x354734,_0x3fa384));_0x2c3a94=_0x2c3a94['filter'](_0x5c6cb1=>!_0x5c6cb1['is']('element','listItem')||_0x5c6cb1['getAttribute']('listType')!=_0x4e19be);const _0xa2afbc=new Set();for(const _0x478561 of _0x2c3a94)_0x478561['is']('element','listItem')?_0xa2afbc['add'](Le(_0x478561)):_0xa2afbc['add'](_0x478561);return Array['from'](_0xa2afbc);}(_0x22d858['getSelectedBlocks'](),_0x594988,_0x2dca2f['model']['schema']);_0x2dca2f['model']['change'](()=>{for(const _0x3b9c51 of _0x3aec0c)_0x440d61['markBlockFormat'](_0x3b9c51,{'commandName':_0x341f6f,'commandParams':[{'forceValue':!_0x455565['value']}],'formatGroupId':'blockName'},Ee(_0x3b9c51));});};}function _0x48bb4d(_0x24361a){return()=>{const _0x442d54=function(_0x3861c1){let _0x381239=Array['from'](_0x3861c1);const _0x1a524d=_0x381239['findIndex'](_0x2e3ea2=>'listItem'!=_0x2e3ea2['name']);return _0x1a524d>-0x1&&(_0x381239=_0x381239['slice'](0x0,_0x1a524d)),_0x381239;}(_0x2dca2f['model']['document']['selection']['getSelectedBlocks']()),_0x5b2aa5=_0x2dca2f['model']['createRange'](_0x2dca2f['model']['createPositionAt'](_0x442d54[0x0],'before'),_0x2dca2f['model']['createPositionAt'](_0x442d54[_0x442d54['length']-0x1],'end'));_0x2dca2f['model']['change'](()=>{_0x440d61['markBlockFormat'](_0x5b2aa5,{'commandName':_0x24361a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x40f1b5){const _0x50d1f1=new Set();for(const _0x585af2 of _0x40f1b5){let _0x38e314=_0x585af2['nextSibling'];for(;_0x38e314&&_0x38e314['getAttribute']('listIndent')>_0x585af2['getAttribute']('listIndent');)_0x50d1f1['add'](_0x38e314),_0x38e314=_0x38e314['nextSibling'];}return Array['from'](_0x50d1f1);}(_0x442d54));});};}_0x440d61['enableCommand']('numberedList',_0x176c43('numberedList')),_0x440d61['enableCommand']('bulletedList',_0x176c43('bulletedList')),_0x3028cb&&_0x440d61['enableCommand']('todoList',_0x176c43('todoList')),_0x440d61['enableCommand']('indentList',_0x48bb4d('indentList')),_0x440d61['enableCommand']('outdentList',_0x48bb4d('outdentList')),_0x3028cb&&_0x440d61['enableCommand']('checkTodoList',()=>{const _0x38681f=_0x2dca2f['commands']['get']('checkTodoList'),_0x123501=Array['from'](_0x38681f['_selectedElements']);_0x123501['filter'](_0x148471=>_0x148471['getAttribute']('todoListChecked')!=_0x38681f['value']),_0x2dca2f['model']['change'](()=>{for(const _0xd52632 of _0x123501)_0x440d61['markBlockFormat'](_0xd52632,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x38681f['value']}]});});}),_0x440d61['descriptionFactory']['registerElementLabel']('listItem',_0x461ef1=>o(_0x1d5a48,'ELEMENT_LIST_ITEM',_0x461ef1)),_0x440d61['descriptionFactory']['registerDescriptionCallback'](_0x169ff4=>{if('formatBlock'!=_0x169ff4['type']&&'formatInline'!=_0x169ff4['type'])return;const {data:_0x5bbd6a}=_0x169ff4;if(_0x5bbd6a){if('numberedList'==_0x5bbd6a['commandName']||'bulletedList'==_0x5bbd6a['commandName']||'todoList'==_0x5bbd6a['commandName'])switch(_0x5bbd6a['commandName']['replace']('List','')){case'bulleted':return _0xe072c4(o(_0x1d5a48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe072c4(o(_0x1d5a48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe072c4(o(_0x1d5a48,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5bbd6a['commandName'])return{'type':'format','content':o(_0x1d5a48,'*Indent:*\x20%0',o(_0x1d5a48,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5bbd6a['commandName'])return{'type':'format','content':o(_0x1d5a48,'*Outdent:*\x20%0',o(_0x1d5a48,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5bbd6a['commandName'])return _0x5bbd6a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d5a48,'*Check\x20item*')}:{'type':'format','content':o(_0x1d5a48,'*Uncheck\x20item*')};}function _0xe072c4(_0x29cfff){return{'type':'format','content':o(_0x1d5a48,'*Change\x20to:*\x20%0',_0x29cfff)};}});}}function Le(_0x398692){const _0x253089=_0x398692['getAttribute']('listIndent');if(0x0==_0x253089)return _0x398692;let _0x242b5b=_0x398692;for(;_0x398692['previousSibling']&&_0x398692['previousSibling']['is']('element','listItem');){const _0x49f3bc=_0x398692['previousSibling']['getAttribute']('listIndent');if(_0x49f3bc==_0x253089)_0x242b5b=_0x398692['previousSibling'];else{if(_0x49f3bc<_0x253089)break;}_0x398692=_0x398692['previousSibling'];}return _0x242b5b;}function Ee(_0x151cbd){const _0x4e8d22=[];if(_0x151cbd['is']('element','listItem')&&_0x151cbd['getAttribute']('listIndent')>0x0){let _0x5e95f2=_0x151cbd['nextSibling'];for(;_0x5e95f2&&'listItem'==_0x5e95f2['name']&&_0x5e95f2['getAttribute']('listIndent')==_0x151cbd['getAttribute']('listIndent');)_0x4e8d22['push'](_0x5e95f2),_0x5e95f2=_0x5e95f2['nextSibling'];}return _0x4e8d22;}class Q extends _0x59cf86{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1b7832=this['editor']['config']['get']('list.properties'),_0x4a9541=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b7832['styles']&&_0x4a9541['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1b7832['reversed']&&_0x4a9541['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1b7832['startIndex']&&_0x4a9541['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a9541['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23ef69,_0x2223c2={}){const _0x4f0408=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bbbf9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f0408['markMultiRangeBlockFormat'](_0x1bbbf9,{'commandName':'listStyle','commandParams':[{'type':_0x2223c2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x556642,_0x13946d={}){const _0x619605=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a7af7=this['_getSuggestionBlocks'](_0x5cb1da=>_0x5cb1da['is']('element','listItem')&&'numbered'===_0x5cb1da['getAttribute']('listType'));if(_0x4a7af7['length']<0x1)return;const _0x10a93b=_0x4a7af7['map'](_0x3bdc54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bdc54,'before'),this['editor']['model']['createPositionAt'](_0x3bdc54,0x0)));this['editor']['model']['change'](()=>{_0x619605['markMultiRangeBlockFormat'](_0x10a93b,{'commandName':'listReversed','commandParams':[{'reversed':_0x13946d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e12a3,_0x3cc799={}){const _0x97ed21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10db62=this['_getSuggestionBlocks'](_0x346c5c=>_0x346c5c['is']('element','listItem')&&'numbered'===_0x346c5c['getAttribute']('listType'));if(_0x10db62['length']<0x1)return;const _0xc53078=_0x10db62['map'](_0x5664b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5664b6,'before'),this['editor']['model']['createPositionAt'](_0x5664b6,0x0)));this['editor']['model']['change'](()=>{_0x97ed21['markMultiRangeBlockFormat'](_0xc53078,{'commandName':'listStart','commandParams':[{'startIndex':_0x3cc799['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d48a3){if('formatBlock'!=_0x5d48a3['type']&&'formatInline'!=_0x5d48a3['type'])return;const _0x4a0691=this['editor']['locale'],{data:_0x1fa564}=_0x5d48a3;if(!_0x1fa564)return;let _0x4e31d7,_0x482744;switch(_0x1fa564['commandName']){case'listStyle':_0x4e31d7='*Change\x20to:*\x20%0',_0x482744={'type':'format','content':o(_0x4a0691,_0x4e31d7,o(_0x4a0691,this['_getTranslationKeyForListStyle'](_0x1fa564['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4e31d7=_0x1fa564['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x482744={'type':'format','content':o(_0x4a0691,_0x4e31d7)};break;case'listStart':_0x4e31d7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x482744={'type':'format','content':o(_0x4a0691,_0x4e31d7,_0x1fa564['commandParams'][0x0]['startIndex'])};}return _0x482744;}['_getSuggestionBlocksForListStyle'](){const _0x1a2150=this['editor']['plugins']['get']('LegacyListUtils');let _0x421da3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x421da3[0x0]?.['is']('element','listItem')&&_0x421da3['unshift'](..._0x1a2150['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x421da3[_0x421da3['length']-0x1]?.['is']('element','listItem')&&_0x421da3['push'](..._0x1a2150['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x421da3=[...new Set(_0x421da3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x421da3=_0x421da3['filter'](_0x1a4138=>_0x1a4138['is']('element','listItem'))),_0x421da3;}['_getSuggestionBlocks'](_0x415a4a){const _0x5ed6e1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d9a8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x415a4a)['map'](_0x30d58c=>{const _0x367a15=this['editor']['model']['createPositionAt'](_0x30d58c,0x0);return[..._0x5ed6e1['getSiblingNodes'](_0x367a15,'backward'),..._0x5ed6e1['getSiblingNodes'](_0x367a15,'forward')];})['flat']();return _0x1d9a8f=[...new Set(_0x1d9a8f)],_0x1d9a8f;}['_getTranslationKeyForListStyle'](_0x477b83){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x477b83)||'default')['toUpperCase']()+'_LIST_'+_0x477b83['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x59cf86{['afterInit'](){const _0x484015=this['editor'];if(!_0x484015['plugins']['has']('MediaEmbedEditing'))return;const _0x11c3f0=_0x484015['plugins']['get']('TrackChangesEditing'),_0x2195cf=_0x484015['locale'];_0x11c3f0['enableCommand']('mediaEmbed'),_0x11c3f0['descriptionFactory']['registerElementLabel']('media',_0x567a9c=>o(_0x2195cf,'ELEMENT_MEDIA',_0x567a9c)),_0x484015['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x205291,{writer:_0x5ac168,options:_0x562c7d})=>{if(_0x562c7d['showSuggestionHighlights'])return _0x5ac168['createEmptyElement']('div');},'converterPriority':'high'}),_0x484015['data']['downcastDispatcher']['on']('attribute:url:media',(_0x206559,_0xb9be88,_0x57a323)=>{_0x57a323['options']['showSuggestionHighlights']&&_0x206559['stop']();},{'priority':'high'});}}class pt extends _0x59cf86{['afterInit'](){const _0x2e6130=this['editor'];_0x2e6130['plugins']['has']('MentionEditing')&&_0x2e6130['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x59cf86{['afterInit'](){const _0x4ee58b=this['editor'];if(!_0x4ee58b['plugins']['has']('MergeFieldsEditing'))return;const _0x551834=_0x4ee58b['plugins']['get']('TrackChangesEditing'),_0x12c519=_0x4ee58b['locale'];_0x551834['enableCommand']('insertMergeField'),_0x551834['enableCommand']('insertMergeFieldBlock'),_0x551834['enableCommand']('insertMergeFieldImage'),_0x551834['descriptionFactory']['registerElementLabel']('mergeField',_0x5cf7f0=>o(_0x12c519,'ELEMENT_MERGE_FIELD',_0x5cf7f0)),_0x551834['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2f9dbe=>o(_0x12c519,'ELEMENT_MERGE_FIELD',_0x2f9dbe)),_0x551834['descriptionFactory']['registerDescriptionCallback'](_0x2bad68=>{if('insertion'!=_0x2bad68['type']&&'deletion'!=_0x2bad68['type'])return;const _0x5b7a40=_0x2bad68['getContainedElement']();if(null==_0x5b7a40)return;const _0x3322f9=_0x4ee58b['plugins']['get']('MergeFieldsEditing');let _0x5c1871;switch(_0x3322f9['getMergeFieldType'](_0x5b7a40)){case null:return;case'image':{const _0x2e0686=_0x3322f9['unwrapAffixes'](_0x5b7a40['getAttribute']('src'));_0x5c1871=_0x3322f9['getLabel'](_0x2e0686)||_0x2e0686;break;}default:{const _0x33e4f7=_0x5b7a40['getAttribute']('id');_0x5c1871=_0x3322f9['getLabel'](_0x33e4f7)||_0x33e4f7;break;}}return'insertion'==_0x2bad68['type']?{'type':'insertion','content':o(_0x12c519,'*Insert:*\x20%0','\x22'+_0x5c1871+'\x22\x20'+o(_0x12c519,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x12c519,'*Remove:*\x20%0','\x22'+_0x5c1871+'\x22\x20'+o(_0x12c519,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x59cf86{['afterInit'](){const _0x132ad1=this['editor'],_0x3c371c=_0x132ad1['plugins']['get']('TrackChangesEditing');_0x132ad1['plugins']['has']('MultiLevelList')&&(_0x3c371c['enableDefaultAttributesIntegration']('multiLevelList'),_0x3c371c['registerBlockAttribute']('listMarkerStyle'),_0x3c371c['descriptionFactory']['registerDescriptionCallback'](_0x11c4ba=>this['handleDescriptions'](_0x11c4ba)));}['handleDescriptions'](_0x37ebeb){const _0x3f4619=this['editor']['locale'],{data:_0x5f3c8d}=_0x37ebeb,_0x50bf42={'type':'format','content':''};if(_0x5f3c8d&&'listMarkerStyle'==_0x5f3c8d['key']){if(!_0x5f3c8d['oldValue'])return{'type':'format','content':o(_0x3f4619,'*Set\x20format:*\x20%0',o(_0x3f4619,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f3c8d['newValue']+')'};if(!_0x5f3c8d['newValue']){let _0x3d5279=_0x37ebeb['head'];for(;_0x3d5279;){if(_0x3d5279['data']&&'listType'==_0x3d5279['data']['key']&&_0x3d5279['data']['newValue'])return _0x50bf42;_0x3d5279=_0x3d5279['next'];}return{'type':'format','content':o(_0x3f4619,'*Remove\x20format:*\x20%0',o(_0x3f4619,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f3c8d['oldValue']+')'};}}}}class bt extends _0x59cf86{['afterInit'](){const _0x559338=this['editor'];if(!_0x559338['plugins']['has']('PageBreakEditing'))return;_0x559338['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a51f2=_0x559338['plugins']['get']('TrackChangesEditing'),_0x21a0d3=_0x559338['locale'];_0x4a51f2['descriptionFactory']['registerElementLabel']('pageBreak',_0x162254=>o(_0x21a0d3,'ELEMENT_PAGE_BREAK',_0x162254));}}class yt extends _0x59cf86{['afterInit'](){const _0x3db249=this['editor'];if(!_0x3db249['plugins']['has']('Paragraph'))return;const _0x178749=_0x3db249['locale'],_0x5f438d=_0x3db249['plugins']['get']('TrackChangesEditing');_0x5f438d['descriptionFactory']['registerElementLabel']('paragraph',_0x515ebb=>o(_0x178749,'ELEMENT_PARAGRAPH',_0x515ebb)),_0x5f438d['enableDefaultAttributesIntegration']('paragraph'),_0x5f438d['enableCommand']('insertParagraph'),_0x3db249['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3db249),{'priority':'highest'}),_0x3db249['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ed467,_0x5517a9,_0x87d3a7)=>{_0x87d3a7['options']['showSuggestionHighlights']&&nr(_0x3db249,{'showActiveMarker':!0x1})(_0x1ed467,_0x5517a9,_0x87d3a7);},{'priority':'highest'});const _0x11b953=_0x5f438d['descriptionFactory'];_0x11b953['registerDescriptionCallback'](_0xdfc3d9=>{if('insertion'!==_0xdfc3d9['type'])return;const {start:_0x59964c,end:_0x55bf7f}=_0xdfc3d9['getFirstRange']();if(!_0x59964c['isTouching'](_0x55bf7f)||!_0x59964c['nodeAfter'])return;const _0x17c173=_0x3db249['model']['schema'],_0x3c0efe=_0x59964c['nodeAfter'];return _0x17c173['isBlock'](_0x3c0efe)&&!_0x17c173['isLimit'](_0x3c0efe)&&_0x17c173['checkChild'](_0x3c0efe,'$text')?{'type':'insertion','content':o(_0x178749,'*Insert:*\x20%0',_0x11b953['getItemLabel'](_0x3c0efe,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x800045=this['editor'],_0x231adf=_0x800045['locale'];_0x800045['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c052e=>{if('formatBlock'!=_0x1c052e['type'])return;const {data:_0x1823b3}=_0x1c052e;return _0x1823b3&&'paragraph'==_0x1823b3['commandName']?{'type':'format','content':o(_0x231adf,'*Change\x20to:*\x20%0',o(_0x231adf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x561e99,{showActiveMarker:_0x41b5c9=!0x0}={}){return(_0x3706da,_0x48cac1,_0x3ebbca)=>{const _0xa909ee=_0x561e99['plugins']['get']('TrackChangesEditing'),_0x587381=_0x48cac1['markerRange']['start'],_0x2e6b79=_0x48cac1['markerRange']['end'],_0x470bad=_0x561e99['model']['schema'];if(!_0x587381['isTouching'](_0x2e6b79)||!_0x587381['nodeAfter'])return;const _0x3e0659=_0x587381['nodeAfter'];if(_0x470bad['isBlock'](_0x3e0659)&&!_0x470bad['isLimit'](_0x3e0659)&&_0x470bad['checkChild'](_0x3e0659,'$text')){if(!_0x3ebbca['consumable']['consume'](_0x48cac1['markerRange'],_0x3706da['name']))return;const {authorId:_0x1b3b5d}=_0xa909ee['_splitMarkerName'](_0x48cac1['markerName']),_0x4f4b3d=_0x3ebbca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b3b5d}),_0x5b6613=_0x3ebbca['mapper']['toViewPosition'](_0x2e6b79);_0x41b5c9&&_0xa909ee['activeMarkers']['includes'](_0x48cac1['markerName'])&&_0x3ebbca['writer']['addClass']('ck-suggestion-marker--active',_0x4f4b3d),_0x3ebbca['writer']['insert'](_0x5b6613,_0x4f4b3d),_0x3ebbca['mapper']['bindElementToMarker'](_0x4f4b3d,_0x48cac1['markerName']);}};}class jt extends _0x59cf86{['afterInit'](){const _0x343183=this['editor'];_0x343183['commands']['get']('replaceSource')&&_0x343183['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x59cf86{['afterInit'](){const _0x9c3a27=this['editor'];if(!_0x9c3a27['plugins']['has']('RemoveFormatEditing'))return;_0x9c3a27['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15fb3c=this['editor'];_0x15fb3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1987a9=>{if('formatBlock'!=_0x1987a9['type']&&'formatInline'!=_0x1987a9['type'])return;const {data:_0x137ee8}=_0x1987a9;return _0x137ee8&&'removeFormat'==_0x137ee8['commandName']?{'type':'format','content':o(_0x15fb3c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x59cf86{['afterInit'](){const _0x2cc108=this['editor'];if(!_0x2cc108['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50af8b=_0x2cc108['plugins']['get']('TrackChangesEditing');_0x50af8b['enableCommand']('goToPreviousRestrictedEditingException'),_0x50af8b['enableCommand']('goToNextRestrictedEditingException');const _0x2870c8=_0x2cc108['plugins']['get']('RestrictedEditingModeEditing');_0x2870c8['enableCommand']('trackChanges'),_0x2870c8['enableCommand']('acceptSuggestion'),_0x2870c8['enableCommand']('discardSuggestion'),_0x2870c8['enableCommand']('acceptAllSuggestions'),_0x2870c8['enableCommand']('discardAllSuggestions'),_0x2870c8['enableCommand']('acceptSelectedSuggestions'),_0x2870c8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x59cf86{static get['requires'](){return[_0x5f3610];}['init'](){const _0x4be079=this['editor'],_0x467b93=_0x4be079['plugins']['get']('TrackChangesEditing');_0x467b93['enableCommand']('shiftEnter'),_0x4be079['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4be079),{'priority':'high'}),_0x4be079['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4be079),{'priority':'high'}),_0x4be079['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a9248,_0x2459a7,_0x5389be)=>{_0x5389be['options']['showSuggestionHighlights']&&je(_0x4be079,{'showActiveMarker':!0x1})(_0x5a9248,_0x2459a7,_0x5389be);}),_0x467b93['descriptionFactory']['registerElementLabel']('softBreak',_0x11570d=>o(_0x4be079['locale'],'ELEMENT_LINE_BREAK',_0x11570d));}}function je(_0x4fa8fe,{showActiveMarker:_0x2308f3=!0x0}={}){return(_0x273f8b,_0x49274a,_0x1c9e85)=>{const _0x883280=_0x4fa8fe['plugins']['get']('TrackChangesEditing');if(!_0x1c9e85['consumable']['test'](_0x49274a['markerRange'],_0x273f8b['name']))return;const _0x3a33dd=_0x4fa8fe['model'];for(const _0x4b7416 of _0x49274a['markerRange']['getItems']()){if(!_0x4b7416['is']('element','softBreak'))continue;const _0x39697f='deletion'==_0x49274a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2bf87f}=_0x883280['_splitMarkerName'](_0x49274a['markerName']),_0x3db478=_0x1c9e85['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39697f,'data-author-id':_0x2bf87f}),_0x391013=_0x1c9e85['mapper']['toViewPosition'](_0x3a33dd['createPositionBefore'](_0x4b7416));_0x2308f3&&_0x883280['activeMarkers']['includes'](_0x49274a['markerName'])&&_0x1c9e85['writer']['addClass']('ck-suggestion-marker--active',_0x3db478),_0x1c9e85['writer']['insert'](_0x391013,_0x3db478),_0x1c9e85['mapper']['bindElementToMarker'](_0x3db478,_0x49274a['markerName']);}};}class vt extends _0x59cf86{['afterInit'](){const _0x43c6b3=this['editor'],_0x59b35c=_0x43c6b3['model'],_0xdf2ec=_0x43c6b3['locale'];if(!_0x43c6b3['plugins']['has']('StandardEditingModeEditing'))return;const _0x5302f7=_0x43c6b3['plugins']['get']('TrackChangesEditing'),_0xe292fb='restrictedEditingException',_0x27f856=_0x43c6b3['commands']['get'](_0xe292fb);_0x5302f7['enableCommand'](_0xe292fb,(_0x47170f,_0x3fc613={})=>{const _0x3cc48b=_0x59b35c['document']['selection'];if(_0x3cc48b['isCollapsed'])return void _0x47170f(_0x3fc613);const _0x9aa612=void 0x0!==_0x3fc613['forceValue']?_0x3fc613['forceValue']:!_0x27f856['value'];_0x59b35c['change'](()=>{const _0x25e55a=Array['from'](_0x3cc48b['getRanges']());for(const _0x494271 of _0x25e55a){const _0x32673c=_0x9aa612?[_0x494271]:io(_0xe292fb,_0x494271,_0x59b35c);for(const _0x37e896 of _0x32673c)_0x5302f7['markInlineFormat'](_0x37e896,{'commandName':_0xe292fb,'commandParams':[{'forceValue':_0x9aa612}]});}});}),_0x5302f7['descriptionFactory']['registerDescriptionCallback'](_0x203133=>{if('formatBlock'!=_0x203133['type']&&'formatInline'!=_0x203133['type'])return;const {data:_0x6bc8c6}=_0x203133;return _0x6bc8c6&&_0x6bc8c6['commandName']==_0xe292fb?_0x6bc8c6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdf2ec,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xdf2ec,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x59cf86{['afterInit'](){const _0x59ed5c=this['editor'];if(!_0x59ed5c['plugins']['has']('Style')||!_0x59ed5c['plugins']['has']('DataSchema'))return;const _0x3a8d5d=_0x59ed5c['plugins']['get']('TrackChangesEditing'),_0x5af6a9=_0x59ed5c['locale'],_0x38dabf=_0x59ed5c['config']['get']('style')||{},_0x170525=_0x59ed5c['plugins']['get']('GeneralHtmlSupport'),_0x26f094=_0x59ed5c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x59ed5c['plugins']['get']('DataSchema'),_0x38dabf['definitions']);_0x3a8d5d['enableDefaultAttributesIntegration']('style');const _0x3d9266=new Set();for(const _0x1c037f of _0x26f094['block']){const _0x3e5371=_0x170525['getGhsAttributeNameForElement'](_0x1c037f['element']);_0x3d9266['add'](_0x3e5371);}const _0x164b7e=new Set();for(const _0x501ebc of _0x26f094['inline']){const _0x4d7ec4=_0x170525['getGhsAttributeNameForElement'](_0x501ebc['element']);_0x164b7e['add'](_0x4d7ec4);for(const _0x31162f of _0x501ebc['ghsAttributes'])_0x164b7e['add'](_0x31162f);}for(const _0x336b1f of _0x3d9266)_0x3a8d5d['registerBlockAttribute'](_0x336b1f),_0x3a8d5d['descriptionFactory']['registerAttributeLabel'](_0x336b1f,o(_0x5af6a9,'FORMAT_STYLE'));for(const _0x6a3972 of _0x164b7e)_0x3a8d5d['registerInlineAttribute'](_0x6a3972),_0x3a8d5d['descriptionFactory']['registerAttributeLabel'](_0x6a3972,o(_0x5af6a9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42f31c=this['editor'],_0xd052ba=_0x42f31c['locale'];_0x42f31c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7b52=>{if('formatBlock'!=_0x5e7b52['type']&&'formatInline'!=_0x5e7b52['type'])return;const {data:_0x577fd6}=_0x5e7b52;return _0x577fd6&&'style'===_0x577fd6['commandName']?_0x577fd6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd052ba,'*Set\x20format:*\x20%0',_0x577fd6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd052ba,'*Remove\x20format:*\x20%0',_0x577fd6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x59cf86{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3e2daf){super(_0x3e2daf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x18adae=this['editor'],_0x3ba1b4=_0x18adae['model']['document']['selection'];if(!_0x18adae['plugins']['has']('TableEditing'))return;const _0xb5581c=_0x18adae['locale'],_0x14340c=_0x18adae['plugins']['get']('TrackChangesEditing'),_0x36ea29=_0x18adae['plugins']['get']('TableUtils');_0x14340c['descriptionFactory']['registerElementLabel']('table',_0x56c395=>o(_0xb5581c,'ELEMENT_TABLE',_0x56c395)),this['_setupColumnsRowsFixing'](),_0x14340c['enableCommand']('insertTable'),_0x14340c['enableCommand']('selectTableRow'),_0x14340c['enableCommand']('selectTableColumn');for(const _0x3e189b of['insertTableRowAbove','insertTableRowBelow']){const _0xbedc6e=_0x18adae['commands']['get'](_0x3e189b);_0x14340c['enableCommand'](_0x3e189b,_0x5effa6=>{_0x18adae['model']['change'](_0x5e0a2f=>{_0x5effa6();const _0x141687='above'===_0xbedc6e['order'],_0x3d3bf0=_0x36ea29['getSelectionAffectedTableCells'](_0x3ba1b4),_0x533cdf=_0x36ea29['getRowIndexes'](_0x3d3bf0),_0x3ef576=_0x141687?_0x533cdf['first']-0x1:_0x533cdf['last']+0x1,_0x4c47cf=_0x3d3bf0[0x0]['findAncestor']('table'),_0x3bc0cf=_0x36ea29['createTableWalker'](_0x4c47cf,{'startRow':_0x3ef576,'endRow':_0x3ef576}),_0x4c21d7=Array['from'](_0x3bc0cf)['map'](_0x512cbe=>_0x5e0a2f['createRangeOn'](_0x512cbe['cell']));_0x14340c['markMultiRangeInsertion'](_0x4c21d7,'tableRow');});});}for(const _0x274b01 of['insertTableColumnLeft','insertTableColumnRight']){const _0xdd796a=_0x18adae['commands']['get'](_0x274b01);_0x14340c['enableCommand'](_0x274b01,_0x3ace2c=>{_0x18adae['model']['change'](_0x4f7b9a=>{_0x3ace2c();const _0x55dffe='left'===_0xdd796a['order'],_0x4bbdf7=_0x36ea29['getSelectionAffectedTableCells'](_0x3ba1b4),_0x2ad483=_0x36ea29['getColumnIndexes'](_0x4bbdf7),_0x4fabf8=_0x55dffe?_0x2ad483['first']-0x1:_0x2ad483['last']+0x1,_0x3c63a0=_0x4bbdf7[0x0]['findAncestor']('table'),_0x24c37a=_0x36ea29['createTableWalker'](_0x3c63a0,{'startRow':0x0,'column':_0x4fabf8,'includeAllSlots':!0x1}),_0x248d95=Array['from'](_0x24c37a)['map'](_0x5233b6=>_0x4f7b9a['createRangeOn'](_0x5233b6['cell']));_0x14340c['markMultiRangeInsertion'](_0x248d95,'tableColumn');});});}for(const _0x3b046e of['removeTableRow','removeTableColumn']){const _0x37e513=_0x3b046e['substr'](0xb),_0x2fbf57=_0x37e513['toLowerCase'](),_0x527242=_0x2fbf57['substr'](0x0,0x3)+'span',_0x7c52d2='table'+_0x37e513,_0x16ae46='min'+_0x37e513,_0x1ae2ec='max'+_0x37e513;_0x14340c['enableCommand'](_0x3b046e,()=>{_0x18adae['model']['change'](_0x5705d4=>{const _0x19d4a0=_0x36ea29['getSelectionAffectedTableCells'](_0x3ba1b4),_0x48aa02=_0x19d4a0[0x0]['findAncestor']('table');let _0x12cb5f;if('removeTableRow'==_0x3b046e){const _0x4a557a=_0x36ea29['getRowIndexes'](_0x19d4a0);_0x12cb5f={'startRow':_0x4a557a['first'],'endRow':_0x4a557a['last'],'includeAllSlots':!0x0};}else{const _0x1f0f67=_0x36ea29['getColumnIndexes'](_0x19d4a0);_0x12cb5f={'startColumn':_0x1f0f67['first'],'endColumn':_0x1f0f67['last'],'includeAllSlots':!0x0};}const _0x171158=_0x36ea29['createTableWalker'](_0x48aa02,_0x12cb5f),_0x57d26c=Array['from'](_0x171158)['map'](({cell:_0x47ec89})=>_0x47ec89),_0x1a76c0=Ne(_0x57d26c['filter'](_0x2e57b3=>_0x2e57b3['hasAttribute'](_0x527242))),_0x49b5a4=Ne(_0x57d26c['filter'](_0x4dad5a=>!_0x4dad5a['hasAttribute'](_0x527242)))['map'](_0x219acb=>_0x5705d4['createRangeOn'](_0x219acb)),_0x39ba80=_0x14340c['markMultiRangeDeletion'](_0x49b5a4,_0x7c52d2);if(_0x39ba80&&('tableRow'==_0x39ba80['subType']||'tableColumn'==_0x39ba80['subType'])){const _0x86729f=this['_getSuggestionCoords'](_0x39ba80);for(const _0x21c29b of _0x1a76c0){const _0x165bfd=_0x5705d4['createRangeOn'](_0x21c29b),_0xfae665=_0x36ea29['getCellLocation'](_0x21c29b),_0x2b75ef=_0x21c29b['getAttribute'](_0x527242)-0x1,_0x3bcd79=_0x86729f[_0x16ae46],_0x53407c=_0x86729f[_0x1ae2ec];_0x3bcd79<=_0xfae665[_0x2fbf57]&&_0xfae665[_0x2fbf57]+_0x2b75ef<=_0x53407c&&_0x39ba80['addRange'](_0x165bfd);}}});});}function _0x4ebb84(_0x43a88e){const _0x8c8f0c=Array['from'](_0x3ba1b4['getRanges']())['map'](_0x18b49f=>_0x3e3cd3['fromRange'](_0x18b49f));_0x18adae['model']['change'](_0x4ec502=>{const _0x3c3f97=_0x4ec502['batch'];_0x43a88e=_0x43a88e['filter'](_0x122f97=>'$graveyard'!=_0x122f97['root']['rootName']),_0x4ec502['setSelection'](_0x43a88e),_0x18adae['commands']['get']('removeTableRow')['refresh'](),_0x18adae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x18adae['model']['enqueueChange'](()=>{_0x18adae['model']['enqueueChange'](_0x3c3f97,_0x4758e4=>{const _0x347601=_0x8c8f0c['filter'](_0x3a1e84=>'$graveyard'!=_0x3a1e84['root']['rootName']);_0x347601['length']>0x0&&_0x4758e4['setSelection'](_0x347601);for(const _0x5036da of _0x8c8f0c)_0x5036da['detach']();});});});}function _0x28de3b(_0x585eef){_0x18adae['model']['change'](_0x1dc3bb=>{const _0x4ccfeb=Array['from'](_0x3ba1b4['getRanges']())['map'](_0x44da7a=>_0x3e3cd3['fromRange'](_0x44da7a)),_0x369d0a=[];for(const _0x26c938 of _0x585eef)for(const _0x189238 of _0x26c938['getItems']({'shallow':!0x0}))_0x369d0a['push'](_0x189238);for(const _0x53b444 of _0x369d0a)'$graveyard'!=_0x53b444['root']['rootName']&&(_0x1dc3bb['setSelection'](_0x1dc3bb['createPositionAt'](_0x53b444,0x0)),_0x18adae['commands']['get']('removeTableColumn')['refresh'](),_0x18adae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b5a2d=_0x4ccfeb['filter'](_0x5be48d=>'$graveyard'!=_0x5be48d['root']['rootName']);_0x4b5a2d['length']>0x0&&_0x1dc3bb['setSelection'](_0x4b5a2d);for(const _0xe8b692 of _0x4ccfeb)_0xe8b692['detach']();});}function _0x397ece(_0x45ae3e,_0x27b33d){return _0x27b33d['every'](_0x45d4de=>_0x45ae3e['some'](_0x53cfe1=>_0x53cfe1['end']['isEqual'](_0x45d4de['start'])||_0x45d4de['end']['isEqual'](_0x53cfe1['start'])));}function _0x3d9a4e(_0x2ada90,_0x2e6b74){return!_0x2ada90['some'](_0x55758b=>_0x2e6b74['some'](_0x293fc8=>_0x55758b['isIntersecting'](_0x293fc8)))&&_0x2ada90['some'](_0x46d424=>_0x2e6b74['some'](_0x5c33cc=>_0x46d424['end']['isTouching'](_0x5c33cc['start'])));}_0x18adae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x409ae1,_0xd99ef8,_0x379a35)=>{if(!_0x379a35['options']['showSuggestionHighlights'])return;const _0x3d291a=_0xd99ef8['item'];if(!_0x3d291a)return;const _0x5a9468=_0x379a35['mapper']['toViewElement'](_0x3d291a);function _0x503bca(_0x2ca73e){return Array['isArray'](_0x2ca73e)?_0x2ca73e:[_0x2ca73e];}_0x5a9468&&'tableCell'===_0x3d291a['name']&&_0xd43f67(_0x5a9468,_0x379a35['writer'],(_0x46cba1,_0xed5722,_0x47c669)=>_0x47c669['addClass'](_0x503bca(_0xed5722['classes']),_0x46cba1),(_0x57e140,_0x533ef9,_0x38e711)=>_0x38e711['removeClass'](_0x503bca(_0x533ef9['classes']),_0x57e140));},{'priority':'highest'}),_0x14340c['descriptionFactory']['registerDescriptionCallback'](_0x50186d=>{if('insertion'!=_0x50186d['type']&&'deletion'!=_0x50186d['type'])return;const _0x1a7c1b=_0x50186d['getContainedElement']();if(null!=_0x1a7c1b&&_0x1a7c1b['is']('element','table')){if('insertion'==_0x50186d['type']){const _0x5c8b80=_0x50186d['getItems']()['filter'](_0x268470=>_0x268470['is']('$textProxy'))['map'](_0x435a1d=>_0x435a1d['data']);if(_0x5c8b80['length'])return{'type':'insertion','content':o(_0xb5581c,'*Insert:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c8b80['join']('\x20')+'\x22'))};}if('deletion'==_0x50186d['type']){const _0x128662=_0x50186d['getItems']()['filter'](_0x7562ec=>_0x7562ec['is']('$textProxy'))['map'](_0xe9911f=>_0xe9911f['data']);if(_0x128662['length'])return{'type':'deletion','content':o(_0xb5581c,'*Remove:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x128662['join']('\x20')+'\x22'))};}}}),_0x14340c['descriptionFactory']['registerDescriptionCallback'](_0xb54459=>{if('tableRow'==_0xb54459['subType']){const _0x3a1411=_0xb54459['getItems']()['filter'](_0x409de5=>_0x409de5['is']('$textProxy'))['map'](_0x211b1b=>_0x211b1b['data']),_0x4de0ab=this['_getSuggestionCoords'](_0xb54459),_0x593227=_0x4de0ab['maxRow']-_0x4de0ab['minRow']+0x1;if('insertion'==_0xb54459['type'])return _0x3a1411['length']?{'type':'insertion','content':o(_0xb5581c,'*Insert:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x593227,'\x22'+_0x3a1411['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb5581c,'*Insert:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_ROW',_0x593227))};if('deletion'==_0xb54459['type'])return _0x3a1411['length']?{'type':'deletion','content':o(_0xb5581c,'*Remove:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x593227,'\x22'+_0x3a1411['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb5581c,'*Remove:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_ROW',_0x593227))};}if('tableColumn'==_0xb54459['subType']){const _0x57a846=_0xb54459['getItems']()['filter'](_0x275484=>_0x275484['is']('$textProxy'))['map'](_0x12c802=>_0x12c802['data']),_0xd87c77=this['_getSuggestionCoords'](_0xb54459),_0xa75b4f=_0xd87c77['maxColumn']-_0xd87c77['minColumn']+0x1;if('insertion'==_0xb54459['type'])return _0x57a846['length']?{'type':'insertion','content':o(_0xb5581c,'*Insert:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa75b4f,'\x22'+_0x57a846['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb5581c,'*Insert:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_COLUMN',_0xa75b4f))};if('deletion'==_0xb54459['type'])return _0x57a846['length']?{'type':'deletion','content':o(_0xb5581c,'*Remove:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xa75b4f,'\x22'+_0x57a846['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb5581c,'*Remove:*\x20%0',o(_0xb5581c,'ELEMENT_TABLE_COLUMN',_0xa75b4f))};}}),_0x14340c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4ebb84),_0x14340c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4ebb84),_0x14340c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x28de3b),_0x14340c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x28de3b),_0x14340c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x397ece),_0x14340c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x397ece),_0x14340c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3d9a4e),_0x14340c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3d9a4e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2cfc6d=this['editor'],_0x121438=_0x2cfc6d['model']['document']['selection'];return(_0x2e8f1e,_0x5de8f5)=>{_0x2cfc6d['model']['change'](_0x354941=>{const {commandName:_0x2977e9,commandParams:_0x4d4329}=_0x5de8f5;let _0x381db1=_0x2e8f1e[0x0]['end']['nodeBefore'];_0x4d4329&&_0x4d4329[0x0]&&!0x1===_0x4d4329[0x0]['forceValue']&&(_0x381db1=_0x2e8f1e[0x0]['start']['nodeAfter']);const _0xfa475e=_0x354941['createRangeIn'](_0x381db1);if('$graveyard'==_0xfa475e['root']['rootName'])return;const _0x5725e7=Array['from'](_0x121438['getRanges']())['map'](_0x2e1c91=>_0x3e3cd3['fromRange'](_0x2e1c91));_0x354941['setSelection'](_0xfa475e),_0x2cfc6d['commands']['get'](_0x2977e9)['refresh'](),_0x4d4329['push']({'forceDefaultExecution':!0x0}),_0x2cfc6d['execute'](_0x2977e9,..._0x4d4329);const _0x560e28=_0x5725e7['filter'](_0x6534c0=>'$graveyard'!=_0x6534c0['root']['rootName']);_0x560e28['length']>0x0&&_0x354941['setSelection'](_0x560e28);for(const _0x3db6d9 of _0x5725e7)_0x3db6d9['detach']();});};}['_getCoordsForCells'](_0x11ef4e){const _0x3b36cf=this['editor']['plugins']['get']('TableUtils');let _0xc5a1bc=Number['MAX_SAFE_INTEGER'],_0x5e383f=Number['MIN_SAFE_INTEGER'],_0xdd51e9=Number['MAX_SAFE_INTEGER'],_0x3e5bb3=Number['MIN_SAFE_INTEGER'];for(const _0x2f2e30 of _0x11ef4e){if('$graveyard'==_0x2f2e30['root']['rootName'])continue;const {row:_0x28a010,column:_0x274709}=_0x3b36cf['getCellLocation'](_0x2f2e30),_0x5bdc53=_0x2f2e30['hasAttribute']('rowspan')?_0x2f2e30['getAttribute']('rowspan')-0x1:0x0,_0x353da2=_0x2f2e30['hasAttribute']('colspan')?_0x2f2e30['getAttribute']('colspan')-0x1:0x0;_0xc5a1bc=_0x28a010<_0xc5a1bc?_0x28a010:_0xc5a1bc,_0x5e383f=_0x28a010+_0x5bdc53>_0x5e383f?_0x28a010+_0x5bdc53:_0x5e383f,_0xdd51e9=_0x274709<_0xdd51e9?_0x274709:_0xdd51e9,_0x3e5bb3=_0x274709+_0x353da2>_0x3e5bb3?_0x274709+_0x353da2:_0x3e5bb3;}return{'minRow':_0xc5a1bc,'maxRow':_0x5e383f,'minColumn':_0xdd51e9,'maxColumn':_0x3e5bb3};}['_setupColumnsRowsFixing'](){const _0x57730a=this['editor'],_0x4dc470=_0x57730a['plugins']['get']('TrackChangesEditing'),_0x3c85c3=_0x57730a['plugins']['get']('TableUtils');_0x57730a['model']['document']['on']('change:data',()=>{const _0x250708=Array['from'](_0x57730a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d11d9,data:_0x206b06}of _0x250708){const {group:_0x57027e,id:_0x131efc,subType:_0x279b41}=_0x4dc470['_splitMarkerName'](_0x4d11d9);if('suggestion'!=_0x57027e)continue;if(null!=_0x206b06['oldRange'])continue;const _0x55378c=_0x4dc470['getSuggestion'](_0x131efc);this['_tablePostFixingSubtypes']['includes'](_0x279b41)&&this['_tableSuggestions']['add'](_0x55378c);}},{'priority':'low'});const _0x3abab7=(_0x19b81a,_0x497ea1)=>{let _0x549378=!0x1;const _0x5c9339=_0x497ea1['createRangeOn'](_0x19b81a),_0x49021d=_0x19b81a['findAncestor']('table'),_0x3ac262=_0x3c85c3['getCellLocation'](_0x19b81a);for(const _0x5c1982 of this['_tableSuggestions']){const _0x36fcd1=_0x5c1982['subType'],_0x25aac2=_0x36fcd1['startsWith']('tablePaste'),_0x162f2e=_0x36fcd1['substr'](_0x25aac2?0xa:0x5),_0x7f189c=_0x162f2e['toLowerCase'](),_0x253695=_0x7f189c['substr'](0x0,0x3)+'span',_0x507421='min'+_0x162f2e,_0x375e17='max'+_0x162f2e;if(!_0x5c1982['isInContent'])continue;if(_0x49021d!=_0x5c1982['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c1982['isIntersectingWithRange'](_0x5c9339))continue;const _0x1de145=_0x19b81a['hasAttribute'](_0x253695)?_0x19b81a['getAttribute'](_0x253695)-0x1:0x0,_0x35dfab=this['_getSuggestionCoords'](_0x5c1982),_0x45c48c=_0x35dfab[_0x507421],_0x301b7e=_0x35dfab[_0x375e17];_0x45c48c<=_0x3ac262[_0x7f189c]&&_0x3ac262[_0x7f189c]+_0x1de145<=_0x301b7e&&(_0x5c1982['addRange'](_0x5c9339),_0x549378=!0x0);}return _0x549378;};_0x57730a['model']['document']['registerPostFixer'](_0x5d8f09=>{let _0x5ac445=!0x1;for(const _0x5ccf8f of _0x57730a['model']['document']['differ']['getChanges']())if('insert'==_0x5ccf8f['type']){if('tableRow'==_0x5ccf8f['name']){for(const _0x54e646 of _0x5ccf8f['position']['nodeAfter']['getChildren']())_0x5ac445=_0x5ac445||_0x3abab7(_0x54e646,_0x5d8f09);}else'tableCell'==_0x5ccf8f['name']&&(_0x5ac445=_0x5ac445||_0x3abab7(_0x5ccf8f['position']['nodeAfter'],_0x5d8f09));}return _0x5ac445;});}['_getSuggestionCoords'](_0x2cbfb9){return this['_getCoordsForCells'](_0x2cbfb9['getRanges']()['map'](_0xa61a82=>_0xa61a82['start']['nodeAfter']));}}function Ne(_0x14304e){return Array['from'](new Set(_0x14304e)['values']());}class Nt extends _0x59cf86{static get['requires'](){return[Ct];}['afterInit'](){const _0x3f77e1=this['editor'],_0x25af5c=_0x3f77e1['model']['document']['selection'],_0x1aa2cb=_0x3f77e1['locale'];if(!_0x3f77e1['plugins']['has']('TableEditing'))return;const _0x3365fd=_0x3f77e1['plugins']['get']('TrackChangesEditing'),_0x5d5132=_0x3f77e1['plugins']['get']('TableUtils'),_0x5f3e50=_0x3f77e1['plugins']['get'](Ct);_0x5f3e50['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3365fd['enableCommand']('mergeTableCells',()=>{const _0x2cedb6=_0x5d5132['getSelectionAffectedTableCells'](_0x3f77e1['model']['document']['selection']);_0x3f77e1['model']['change'](()=>{_0x3365fd['markMultiRangeBlockFormat'](_0x2cedb6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3f77e1['commands']['get']('mergeTableCells')['on']('execute',(_0x51b556,_0x488bc6)=>{_0x3f77e1['commands']['get']('trackChanges')['value']&&(_0x488bc6['length']>0x0&&_0x488bc6[_0x488bc6['length']-0x1]&&_0x488bc6[_0x488bc6['length']-0x1]['forceDefaultExecution']||_0x3365fd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x51b556['stop']());},{'priority':'highest'});for(const _0x594408 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x826fe=_0x3f77e1['commands']['get'](_0x594408);_0x3365fd['enableCommand'](_0x594408,()=>{const _0x17b370=_0x3f77e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x26863b=>_0x26863b['is']('element','tableCell')),_0x190d0c=_0x826fe['value'];_0x3f77e1['model']['change'](()=>{_0x3365fd['markMultiRangeBlockFormat']([_0x17b370,_0x190d0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x23ab82 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x16af6f=_0x3f77e1['commands']['get'](_0x23ab82);_0x3365fd['enableCommand'](_0x23ab82,()=>{const _0x4ee85d=_0x5d5132['getSelectionAffectedTableCells'](_0x3f77e1['model']['document']['selection'])[0x0],_0x3171d4=_0x4ee85d['findAncestor']('table'),{column:_0x32fa6b,row:_0x2413c5}=_0x5d5132['getCellLocation'](_0x4ee85d);let _0x4272b9=[];if('horizontally'==_0x16af6f['direction']){const _0x3d59b3=_0x5d5132['createTableWalker'](_0x3171d4,{'startRow':_0x2413c5,'endRow':_0x2413c5,'includeAllSlots':!0x0});_0x4272b9=Array['from'](_0x3d59b3)['map'](_0xe47867=>_0xe47867['cell']);}else{const _0x2f662c=_0x5d5132['createTableWalker'](_0x3171d4,{'column':_0x32fa6b,'includeAllSlots':!0x0});_0x4272b9=Array['from'](_0x2f662c)['map'](_0x5dada3=>_0x5dada3['cell']);}_0x3f77e1['model']['change'](_0x5e7cba=>{_0x3365fd['markBlockFormat'](_0x5e7cba['createRangeOn'](_0x4ee85d),{'commandName':_0x23ab82,'commandParams':[]},_0x4272b9,_0x23ab82);});});}_0x3365fd['descriptionFactory']['registerDescriptionCallback'](_0x3afba2=>{if('formatBlock'!=_0x3afba2['type']&&'formatInline'!=_0x3afba2['type'])return;const {data:_0x3ae4e2}=_0x3afba2;return _0x3ae4e2&&'mergeTableCells'==_0x3ae4e2['commandName']?{'type':'format','content':o(_0x1aa2cb,'*Merge\x20cells*')}:void 0x0;}),_0x3365fd['descriptionFactory']['registerDescriptionCallback'](_0x539108=>{if('formatBlock'!=_0x539108['type']&&'formatInline'!=_0x539108['type'])return;const {data:_0x3f9bd0}=_0x539108;return _0x3f9bd0?'splitTableCellVertically'==_0x3f9bd0['commandName']?{'type':'format','content':o(_0x1aa2cb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3f9bd0['commandName']?{'type':'format','content':o(_0x1aa2cb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4dd061=_0x5f3e50['_acceptFormatSuggestionCallbackFactory']();for(const _0x4d4f18 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3365fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d4f18,'accept',_0x4dd061);for(const _0x480dfd of['splitTableCellVertically','splitTableCellHorizontally'])_0x3365fd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x480dfd,'accept',_0x4dd061);_0x3365fd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d2cb9=>{_0x3f77e1['model']['change'](_0x475f4c=>{const _0x3fdc29=Array['from'](_0x25af5c['getRanges']())['map'](_0x53f51f=>_0x3e3cd3['fromRange'](_0x53f51f));_0x475f4c['setSelection'](_0x5d2cb9),_0x3f77e1['commands']['get']('mergeTableCells')['refresh'](),_0x3f77e1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x752dd4=_0x3fdc29['filter'](_0x504b81=>'$graveyard'!=_0x504b81['root']['rootName']);_0x752dd4['length']>0x0&&_0x475f4c['setSelection'](_0x752dd4);for(const _0x1aa931 of _0x3fdc29)_0x1aa931['detach']();});});for(const _0x4dc982 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5df14b=_0x3f77e1['commands']['get'](_0x4dc982);_0x5df14b['on']('set:isEnabled',(_0x325b1c,_0xe5f6d7,_0x3c9cf5)=>{if(_0x3c9cf5){const _0x4176e2=_0x3f77e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d72f7=>_0x3d72f7['is']('element','tableCell'));this['_areMergableCells'](_0x5df14b['value'],_0x4176e2)||(_0x325b1c['return']=!0x1,_0x325b1c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x38dc89=this['editor']['commands']['get']('mergeTableCells'),_0x6fcb14=this['editor']['plugins']['get']('TableUtils');if(!_0x38dc89['isEnabled'])return!0x1;const _0x271a98=_0x6fcb14['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x141a99 of _0x271a98)for(const _0x3f574e of _0x271a98)if(_0x141a99!=_0x3f574e&&!this['_areMergableCells'](_0x141a99,_0x3f574e))return!0x1;return!0x0;}['_areMergableCells'](_0x91ea81,_0x4fe50a){const _0x589c03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x591e2c=this['editor']['model']['createRangeOn'](_0x91ea81),_0x57b546=this['editor']['model']['createRangeOn'](_0x4fe50a),_0x5580a4=new Set(),_0x358d8a=new Set();for(const _0x3d72b5 of _0x589c03['getSuggestions']())if(('insertion'==_0x3d72b5['type']||'deletion'==_0x3d72b5['type']||'mergeTableCells'==_0x3d72b5['subType'])&&_0x3d72b5['isInContent']){for(const _0x30bb1c of _0x3d72b5['getRanges']())_0x30bb1c['containsRange'](_0x591e2c,!0x0)&&_0x5580a4['add'](_0x3d72b5['type']+':'+_0x3d72b5['author']['id']),_0x30bb1c['containsRange'](_0x57b546,!0x0)&&_0x358d8a['add'](_0x3d72b5['type']+':'+_0x3d72b5['author']['id']);}if(_0x5580a4['size']!=_0x358d8a['size'])return!0x1;for(const _0x252f52 of _0x5580a4)if(!_0x358d8a['has'](_0x252f52))return!0x1;return!0x0;}}class Dt extends _0x59cf86{static get['requires'](){return[Ct];}['afterInit'](){const _0x25875d=this['editor'];if(!_0x25875d['plugins']['has']('TableEditing'))return;const _0x43a358=_0x25875d['locale'],_0x13ebc4=_0x25875d['plugins']['get']('TrackChangesEditing');_0x13ebc4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x13ebc4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x13ebc4['registerBlockAttribute']('headingRows'),_0x13ebc4['registerBlockAttribute']('headingColumns'),_0x13ebc4['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x43a358,'FORMAT_HEADER_ROW')),_0x13ebc4['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x43a358,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5f083e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f0ca7=this['editor']['plugins']['get']('TableUtils'),_0x2f1dc0=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5c4a82({showActiveMarker:_0x120220=!0x0,setDataAttribute:_0x104248=!0x0}={}){return(_0x48f8c9,_0x262e40,_0x2b11e4)=>{const {type:_0x29b5b2,id:_0x26acd7}=_0x5f083e['_splitMarkerName'](_0x262e40['markerName']),_0x43e303=_0x5f083e['getSuggestion'](_0x26acd7),_0x3cd292=_0x43e303['data'];if('formatBlock'!=_0x43e303['type']||!_0x3cd292||'setTableColumnHeader'!=_0x3cd292['commandName'])return;if(_0x262e40['item'])return void _0x48f8c9['stop']();if(!_0x2b11e4['consumable']['consume'](_0x262e40['markerRange'],_0x48f8c9['name']))return;const _0x597802=_0x262e40['markerRange']['start']['nodeAfter'],_0x2b8126=_0x262e40['markerRange']['end']['nodeBefore'],_0x43ca79=_0x597802['parent']['parent'],{column:_0x42d8e2}=_0x1f0ca7['getCellLocation'](_0x597802),{column:_0x7b85da}=_0x1f0ca7['getCellLocation'](_0x2b8126);for(let _0x12a100=_0x42d8e2;_0x12a100<=_0x7b85da;_0x12a100++){const _0x3465be=_0x1f0ca7['createTableWalker'](_0x43ca79,{'column':_0x12a100,'includeAllSlots':!0x1});for(const _0x1f86d8 of _0x3465be){const _0x4f3544=_0x1f86d8['cell'],_0x4f02e3=_0x2b11e4['mapper']['toViewElement'](_0x4f3544);_0x2b11e4['writer']['addClass']('ck-suggestion-marker-'+_0x29b5b2,_0x4f02e3),_0x104248&&_0x2b11e4['writer']['setAttribute']('data-suggestion',_0x26acd7,_0x4f02e3),_0x2b11e4['mapper']['bindElementToMarker'](_0x4f02e3,_0x262e40['markerName']),_0x120220&&(_0x5f083e['activeMarkers']['includes'](_0x262e40['markerName'])?_0x2b11e4['writer']['addClass']('ck-suggestion-marker--active',_0x4f02e3):_0x2b11e4['writer']['removeClass']('ck-suggestion-marker--active',_0x4f02e3));}}};}_0x5f083e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f1dc0),_0x5f083e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f1dc0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5c4a82(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ff358,_0x573044,_0x44f8fb)=>{_0x44f8fb['options']['showSuggestionHighlights']&&_0x5c4a82({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1ff358,_0x573044,_0x44f8fb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3893e9,_0x1d01ba,_0x2fd5f8)=>{const {type:_0x25d799,id:_0x164a78}=_0x5f083e['_splitMarkerName'](_0x1d01ba['markerName']),_0x5e5f33=_0x5f083e['getSuggestion'](_0x164a78),_0x64e78=_0x5e5f33['data'];if('formatBlock'!=_0x5e5f33['type']||!_0x64e78||'setTableColumnHeader'!=_0x64e78['commandName'])return;const _0x1cf013=_0x2fd5f8['mapper']['markerNameToElements'](_0x1d01ba['markerName']);if(_0x1cf013){for(const _0x162ac7 of _0x1cf013)_0x2fd5f8['writer']['removeClass']('ck-suggestion-marker-'+_0x25d799,_0x162ac7),_0x2fd5f8['writer']['removeClass']('ck-suggestion-marker--active',_0x162ac7),_0x2fd5f8['writer']['removeAttribute']('data-suggestion',_0x162ac7),_0x2fd5f8['mapper']['unbindElementFromMarkerName'](_0x162ac7,_0x1d01ba['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f9f0f=this['editor'],_0x27b2fd=_0x3f9f0f['locale'];function _0x1515d7(_0x2532d0){return{'type':'format','content':o(_0x27b2fd,'*Format:*\x20%0',_0x2532d0)};}_0x3f9f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf5478d=>{if('formatBlock'!=_0xf5478d['type'])return;const {data:_0x56561a}=_0xf5478d;if(_0x56561a){if('setTableRowHeader'==_0x56561a['commandName']){const _0x3f2813=_0x56561a['commandParams'][0x0]['forceValue'];return _0x1515d7(o(_0x27b2fd,_0x3f2813?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x56561a['commandName']){const _0x42abe0=_0x56561a['commandParams'][0x0]['forceValue'];return _0x1515d7(o(_0x27b2fd,_0x42abe0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x47c2dc=>[_0x47c2dc,null]));class Mt extends _0x59cf86{static get['requires'](){return[Ct];}['afterInit'](){const _0x4d55f3=this['editor'];if(!_0x4d55f3['plugins']['has']('TableClipboard'))return;const _0x191eac=_0x4d55f3['plugins']['get']('TrackChangesEditing'),_0x56a6de=_0x4d55f3['plugins']['get']('TableUtils'),_0xb69460=_0x4d55f3['plugins']['get'](Ct),_0x1fcf11=_0x4d55f3['plugins']['get']('TableClipboard');_0xb69460['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d55f3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d55f3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x30a1fc=null;_0x4d55f3['model']['on']('insertContent',(_0x1c26c0,_0x374d02)=>{const [_0x5806ec,_0x1d9f5a]=_0x374d02,_0x36aa1d=_0x374d02[_0x374d02['length']-0x1];_0x36aa1d&&_0x36aa1d['forceDefaultExecution']||_0x191eac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xd615df,_0x5bed38,_0x38c09b,_0x2f79af,_0x4aae2b){if(_0x5bed38&&!_0x5bed38['is']('documentSelection'))return!0x1;const _0x519201=_0x4aae2b['getTableIfOnlyTableInContent'](_0xd615df,_0x38c09b);if(!_0x519201||!Ue(_0x519201,void 0x0,_0x2f79af))return!0x1;const _0x8aeec9=_0x2f79af['getSelectionAffectedTableCells'](_0x38c09b['document']['selection']);if(!_0x8aeec9['length'])return!0x1;const _0x3a56c0=_0x8aeec9[0x0]['findAncestor']('table'),_0x16cf2b=_0x2f79af['getRowIndexes'](_0x8aeec9),_0x3958d1=_0x2f79af['getColumnIndexes'](_0x8aeec9),_0x47a703={'startRow':_0x16cf2b['first'],'endRow':_0x16cf2b['last'],'startColumn':_0x3958d1['first'],'endColumn':_0x3958d1['last']};return 0x1==_0x8aeec9['length']&&(_0x47a703['endRow']+=_0x2f79af['getRows'](_0x519201)-0x1,_0x47a703['endColumn']+=_0x2f79af['getColumns'](_0x519201)-0x1),Ue(_0x3a56c0,_0x47a703,_0x2f79af);}(_0x5806ec,_0x1d9f5a,_0x4d55f3['model'],_0x56a6de,_0x1fcf11)&&(_0x1c26c0['stop'](),_0x30a1fc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d55f3['model']['change'](()=>{_0x4d55f3['model']['insertContent'](_0x374d02[0x0],_0x374d02[0x1],_0x374d02[0x2],{'forceDefaultExecution':!0x0});const _0x4beafd=_0x1d192f(),{rowInsertionRanges:_0x185fe1,columnInsertionRanges:_0x1a885d,insertionRanges:_0x165cf0,deletionRanges:_0x640952,cells:_0x2ce7bc}=_0x30a1fc;_0x185fe1['length']&&_0x191eac['markMultiRangeInsertion'](_0x185fe1,'tablePasteRow',{'tablePasteChainId':_0x4beafd}),_0x1a885d['length']&&_0x191eac['markMultiRangeInsertion'](_0x1a885d,'tablePasteColumn',{'tablePasteChainId':_0x4beafd}),_0x165cf0['length']&&(_0x191eac['markMultiRangeInsertion'](_0x165cf0,'tablePaste',{'tablePasteChainId':_0x4beafd,'skipNestingCheck':!0x0}),_0x165cf0['forEach'](_0x1b1a80=>_0x1b1a80['detach']?.())),_0x640952['length']&&(_0x191eac['markMultiRangeDeletion'](_0x640952,'tablePaste',{'tablePasteChainId':_0x4beafd,'skipNestingCheck':!0x0}),_0x640952['forEach'](_0x4e68ac=>_0x4e68ac['detach']?.()));const _0x27dba6=_0x191eac['markMultiRangeBlockFormat'](_0x2ce7bc['map'](({element:_0x7c3617})=>_0x7c3617),{'formatGroupId':_0x1d192f()},[],'tablePasteCell',{'tablePasteChainId':_0x4beafd});if(_0x27dba6){const _0x11d2b2=_0x27dba6['getMarkers'](),_0x5a7154=[];for(const {element:_0x326661,attributes:_0x43a78a}of _0x2ce7bc){if(!_0x43a78a)continue;const _0x2c34dd=_0x4d55f3['model']['createRangeOn'](_0x326661),_0x5792ab=_0x11d2b2['find'](_0x27f02c=>_0x27f02c['getRange']()['isEqual'](_0x2c34dd));_0x5792ab&&_0x5a7154['push']([_0x5792ab['name'],_0x43a78a]);}_0x5a7154['length']&&_0x27dba6['setAttribute']('markerAttributes',Object['fromEntries'](_0x5a7154));}_0x30a1fc=null;}));},{'priority':_0x4e8da5['high']+0xa}),_0x4d55f3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d77c0,_0x590ff1)=>{const [_0x353c5a,_0x261b7e,,_0x110c87]=_0x590ff1;if(!_0x30a1fc)return;_0x4d77c0['stop']();const _0x238849=_0x353c5a['cell'],_0x551a77=_0x261b7e,_0x1dd281=Oe(_0x238849),_0x57a437=Oe(_0x551a77);_0x4d77c0['return']=_0x238849;let _0x26b4e3=null,_0x4cde17=null;if(_0x57a437||_0x1dd281){if(_0x1dd281&&!_0x57a437){_0x110c87['remove'](_0x238849['getChild'](0x0));for(const _0x22907d of Array['from'](_0x551a77['getChildren']()))_0x110c87['insert'](_0x22907d,_0x238849,'end');const _0x2ee146=_0x30a1fc['rowInsertionIndexes']['includes'](_0x353c5a['row']),_0x13789f=_0x30a1fc['columnInsertionIndexes']['includes'](_0x353c5a['column']);_0x2ee146||_0x13789f||(_0x26b4e3=_0x3e3cd3['fromRange'](_0x110c87['createRangeIn'](_0x238849)));}else _0x57a437&&!_0x1dd281&&(_0x4cde17=_0x110c87['createRangeIn'](_0x238849));}else{const _0x2bfe91=_0x110c87['createElement']('tableCellSuggestion'),_0x304fc6=_0x110c87['createElement']('tableCellSuggestion');_0x110c87['wrap'](_0x110c87['createRangeIn'](_0x238849),_0x304fc6),_0x110c87['insert'](_0x2bfe91,_0x238849,0x0);for(const _0x2cf358 of Array['from'](_0x551a77['getChildren']()))_0x110c87['insert'](_0x2cf358,_0x2bfe91,'end');_0x26b4e3=_0x3e3cd3['fromRange'](_0x110c87['createRangeOn'](_0x2bfe91)),_0x4cde17=_0x3e3cd3['fromRange'](_0x110c87['createRangeOn'](_0x304fc6));}const _0x373b24=Array['from'](_0x551a77['getAttributes']())['filter'](([_0x52815f])=>Be['includes'](_0x52815f));_0x30a1fc['cells']['push']({'element':_0x238849,'attributes':_0x373b24['length']?Object['fromEntries'](_0x373b24):null}),_0x26b4e3&&_0x30a1fc['insertionRanges']['push'](_0x26b4e3),_0x4cde17&&_0x30a1fc['deletionRanges']['push'](_0x4cde17);},{'priority':'high'}),_0x56a6de['on']('insertColumns',(_0x5e4b78,_0x419954)=>{const [_0x3d687c,_0x5280a5={}]=_0x419954;if(!_0x30a1fc)return;const _0x5ef2d0=_0x5280a5['at']||0x0,_0x2bcf2c=_0x5280a5['columns']||0x1;_0x30a1fc['columnInsertionIndexes']=new Array(_0x2bcf2c)['fill'](_0x5ef2d0)['map']((_0x3b73fc,_0x4ece36)=>_0x3b73fc+_0x4ece36);for(const {cell:_0x4d03ca}of _0x56a6de['createTableWalker'](_0x3d687c,{'startColumn':_0x5ef2d0,'endColumn':_0x5ef2d0+_0x2bcf2c-0x1}))_0x30a1fc['columnInsertionRanges']['push'](_0x4d55f3['model']['createRangeOn'](_0x4d03ca));},{'priority':'low'}),_0x56a6de['on']('insertRows',(_0x50ced4,_0x3ef5a0)=>{const [_0x289b97,_0x267baa={}]=_0x3ef5a0;if(!_0x30a1fc)return;const _0x2fd051=_0x267baa['at']||0x0,_0x47f628=_0x267baa['rows']||0x1;_0x30a1fc['rowInsertionIndexes']=new Array(_0x47f628)['fill'](_0x2fd051)['map']((_0x102c15,_0x2d6b35)=>_0x102c15+_0x2d6b35);for(const {cell:_0x4a0128}of _0x56a6de['createTableWalker'](_0x289b97,{'startRow':_0x2fd051,'endRow':_0x2fd051+_0x47f628-0x1}))_0x30a1fc['rowInsertionRanges']['push'](_0x4d55f3['model']['createRangeOn'](_0x4a0128));},{'priority':'low'}),_0x191eac['descriptionFactory']['registerDescriptionCallback'](_0x1b0ede=>{if(_0x1b0ede['subType']&&_0x1b0ede['subType']['startsWith']('tablePaste'))return _0x1b0ede['previous']?{}:{'type':'insertion','content':o(_0x4d55f3['locale'],'*Replace\x20table\x20cells*')};});const _0x4daac8=()=>!0x1;for(const _0x33c5be of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x191eac['_suggestionFactory']['registerCustomCallback']('insertion',_0x33c5be,'join',_0x4daac8),_0x191eac['_suggestionFactory']['registerCustomCallback']('deletion',_0x33c5be,'join',_0x4daac8),_0x191eac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33c5be,'join',_0x4daac8);_0x191eac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4daac8),_0x191eac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49bedc,_0x52689d,_0x1e3ee1)=>{const _0x3d36cd=_0x49bedc['map'](_0x3e7f11=>_0x3e7f11['getContainedElement']())['filter'](_0x59318e=>_0x59318e),_0x33569a=new Map(_0x3d36cd['map'](_0x45d5c5=>[_0x45d5c5,null]));if(_0x30a1fc){for(const {element:_0x39d5af,attributes:_0x11153a}of _0x30a1fc['cells'])_0x11153a&&_0x33569a['set'](_0x39d5af,_0x11153a);}else{if(_0x1e3ee1&&_0x1e3ee1['markerAttributes'])for(const [_0x2af59b,_0x528577]of Object['entries'](_0x1e3ee1['markerAttributes'])){const _0xd02849=_0x4d55f3['model']['markers']['get'](_0x2af59b),_0x2ae6f3=_0xd02849?_0xd02849['getRange']()['getContainedElement']():null;_0x2ae6f3&&_0x33569a['set'](_0x2ae6f3,_0x528577);}}_0x4d55f3['model']['change'](_0x27b93e=>{for(const [_0x278e6a,_0x14dd2c]of _0x33569a)_0x27b93e['setAttributes']({...xe,..._0x14dd2c},_0x278e6a);});});const _0x37db71=(_0x14c99d,_0x2b94b7)=>{_0x191eac['_suggestionFactory']['registerCustomCallback'](_0x14c99d,'tablePaste',_0x2b94b7,(_0x579995,_0xee348,_0x519bb8)=>{_0x4d55f3['model']['change'](_0x181fbb=>{const _0x1c7bbc=[];for(const _0x7ef18e of _0x579995){const _0x21b605=_0x7ef18e['start']['nodeAfter'];_0x21b605['is']('element','tableCellSuggestion')&&_0x1c7bbc['push'](_0x21b605);}_0x191eac['_suggestionFactory']['getSuggestionCallback'](_0x14c99d,null,_0x2b94b7)(_0x579995,_0xee348,_0x519bb8);for(const _0x2aab67 of _0x1c7bbc)'$graveyard'!=_0x2aab67['root']['rootName']&&_0x181fbb['unwrap'](_0x2aab67);});});};_0x37db71('insertion','accept'),_0x37db71('insertion','discard'),_0x37db71('deletion','accept'),_0x37db71('deletion','discard'),_0x191eac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58b968=>{const _0x390aac=_0x58b968['map'](_0x2995b1=>_0x2995b1['getContainedElement']()),_0x43a27b=_0x390aac[0x0]['findAncestor']('table'),{minRow:_0x1ce531,maxRow:_0x20c626}=_0xb69460['_getCoordsForCells'](_0x390aac);_0x56a6de['removeRows'](_0x43a27b,{'at':_0x1ce531,'rows':_0x20c626-_0x1ce531+0x1});}),_0x191eac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26f4dd=>{const _0x263f0d=_0x26f4dd['map'](_0x3e8759=>_0x3e8759['getContainedElement']()),_0x3193af=_0x263f0d[0x0]['findAncestor']('table'),{minColumn:_0x717d58,maxColumn:_0x2be625}=_0xb69460['_getCoordsForCells'](_0x263f0d);_0x56a6de['removeColumns'](_0x3193af,{'at':_0x717d58,'columns':_0x2be625-_0x717d58+0x1});});const _0x1bb6ab=(_0x52c71a,_0x2ec59a)=>{if(!_0x2ec59a['subType']||!_0x2ec59a['subType']['startsWith']('tablePaste'))return;const _0x3cc55b=_0x2ec59a['attributes']['tablePasteChainId'],_0x1b625d=_0x191eac['getSuggestions']()['filter'](_0x2b7c35=>_0x2b7c35['isInContent']&&_0x2b7c35['attributes']&&_0x2b7c35['attributes']['tablePasteChainId']==_0x3cc55b);_0x1b625d['length']&&_0x2ec59a['getAllAdjacentSuggestions']()['length']!=_0x1b625d['length']&&_0x1b625d['reduce']((_0x5b8809,_0x35b4ad)=>(_0x5b8809['next']=_0x35b4ad,_0x35b4ad['previous']=_0x5b8809,_0x35b4ad));};function _0x3e613f(_0xee518d,_0x1e7368=!0x0){const {id:_0x58fa9c,authorId:_0x5662dd}=_0x191eac['_splitMarkerName'](_0xee518d['markerName']),_0x3ef740=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5a6be6=_0x191eac['activeMarkers']['includes'](_0xee518d['markerName']);return _0x5a6be6&&_0x3ef740['push']('ck-suggestion-marker--active'),{'classes':_0x3ef740,'attributes':{'data-suggestion':_0x58fa9c,'data-author-id':_0x5662dd},'priority':_0x5a6be6&&_0x1e7368?0xbc2:0xbb8};}_0x191eac['on']('suggestionLoaded',_0x1bb6ab,{'priority':'high'}),_0x191eac['on']('suggestionUnloaded',_0x1bb6ab,{'priority':'high'}),_0x4d55f3['model']['document']['registerPostFixer'](()=>{let _0x58edc0=!0x1;const _0x2719fb=Array['from'](_0x4d55f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x529026,data:_0x50af28}of _0x2719fb){const {group:_0x2144fe,type:_0x57733d,id:_0x11f6b3}=_0x191eac['_splitMarkerName'](_0x529026);if('suggestion'!=_0x2144fe||'deletion'!=_0x57733d||_0x50af28['oldRange'])continue;if(!_0x191eac['hasSuggestion'](_0x11f6b3))continue;const _0x1a9087=_0x191eac['getSuggestion'](_0x11f6b3)['getRanges'](),_0x103a9d=_0x4d55f3['plugins']['get']('Users')['me'];for(const _0x4c122b of _0x191eac['getSuggestions']()){if(!_0x4c122b['isInContent']||_0x4c122b['author']!=_0x103a9d)continue;if('formatBlock'!=_0x4c122b['type']||'tablePasteCell'!=_0x4c122b['subType'])continue;if(_0x4c122b['getRanges']()['every'](_0x26c865=>_0x1a9087['some'](_0x24d74a=>_0x24d74a['containsRange'](_0x26c865,!0x0)))){for(const _0x139a72 of _0x4c122b['getAllAdjacentSuggestions']())_0x139a72['isInContent']&&(_0x139a72['discard'](),_0x58edc0=!0x0);}}}return _0x58edc0;}),_0x4d55f3['model']['document']['registerPostFixer'](_0x1c40df=>{const _0x2af14c=_0x4d55f3['commands']['get']('redo');if(!_0x2af14c||!_0x2af14c['_createdBatches']['has'](_0x1c40df['batch']))return!0x1;let _0x4ccd17=!0x1;const _0x5a4b78=_0x4d55f3['plugins']['get']('Users')['me'],_0x13ca0a=_0x4d55f3['model']['document']['differ']['getChanges'](),_0x5f1aab=Array['from'](_0x4d55f3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5a2408,data:_0x53ddf7})=>{const {group:_0x26156f,subType:_0x41963d,authorId:_0x446821}=_0x191eac['_splitMarkerName'](_0x5a2408);return'suggestion'==_0x26156f&&'tablePaste'==_0x41963d&&_0x446821==_0x5a4b78['id']&&!_0x53ddf7['oldRange'];});for(const _0x3072cb of _0x13ca0a){if('insert'!=_0x3072cb['type']||'tableCellSuggestion'!=_0x3072cb['name']||0x1!=_0x3072cb['length'])continue;const _0x5f3903=_0x1c40df['createRange'](_0x3072cb['position'],_0x3072cb['position']['getShiftedBy'](0x1));if(!_0x5f1aab['find'](({data:_0x241a58})=>_0x241a58['newRange']['isEqual'](_0x5f3903))){for(const {name:_0x1633d2,data:_0x45b230}of _0x5f1aab)if(_0x5f3903['containsRange'](_0x45b230['newRange'])){_0x1c40df['updateMarker'](_0x1633d2,{'range':_0x5f3903}),_0x4ccd17=!0x0;break;}}}return _0x4ccd17;}),_0x4d55f3['model']['document']['registerPostFixer'](_0x164ca9=>{let _0x304d31=!0x1;const _0x37d305=_0x4d55f3['plugins']['get']('Users')['me'],_0x936a39=_0x191eac['getSuggestions']()['filter'](_0xfac913=>_0xfac913['isInContent']&&_0xfac913['author']==_0x37d305),_0x1bbabe=new Set(),_0x4c0eb6=new Set();for(const _0x377a4f of _0x936a39)if('tablePaste'==_0x377a4f['subType'])for(const _0x129467 of _0x377a4f['getMarkers']()){const _0x5339b9=_0x129467['getRange']()['getContainedElement']();if(_0x5339b9){if(_0x5339b9['is']('element','tableCellSuggestion')&&Oe(_0x5339b9)){_0x377a4f['removeMarker'](_0x129467['name']),_0x1bbabe['add'](_0x5339b9),_0x304d31=!0x0;const _0x110563=_0x5339b9['nextSibling'],_0x200776=_0x5339b9['previousSibling'],_0x4c9003=_0x110563&&_0x110563['is']('element','tableCellSuggestion'),_0x21bf88=_0x200776&&_0x200776['is']('element','tableCellSuggestion');_0x4c9003&&!_0x1bbabe['has'](_0x110563)&&_0x4c0eb6['add'](_0x110563),_0x21bf88&&!_0x1bbabe['has'](_0x200776)&&_0x4c0eb6['add'](_0x200776);}else _0x5339b9['is']('element','paragraph')&&_0x5339b9['isEmpty']&&(_0x377a4f['removeMarker'](_0x129467['name']),_0x304d31=!0x0);}}else{if('tablePasteCell'==_0x377a4f['subType']){if(!_0x377a4f['attributes']||!_0x377a4f['attributes']['tablePasteChainId'])continue;const _0x3cfa3b=_0x377a4f['attributes']['markerAttributes'];if(_0x3cfa3b&&Object['keys'](_0x3cfa3b)['length'])continue;const _0x1a0034=_0x377a4f['attributes']['tablePasteChainId'];let _0x9ae15c=!0x0,_0x494a97=!0x0;for(const _0x2f147e of _0x936a39)if(_0x2f147e['subType']&&_0x2f147e['subType']['startsWith']('tablePaste')){if(!_0x2f147e['attributes']['tablePasteChainId']){_0x494a97=!0x1;break;}if(_0x2f147e['id']!=_0x377a4f['id']&&_0x2f147e['attributes']['tablePasteChainId']==_0x1a0034){_0x9ae15c=!0x1;break;}}_0x494a97&&_0x9ae15c&&(_0x377a4f['removeMarkers'](),_0x304d31=!0x0);}}for(const _0x586e56 of _0x1bbabe)_0x164ca9['remove'](_0x586e56);for(const _0x258ab9 of _0x4c0eb6)_0x164ca9['unwrap'](_0x258ab9);return _0x304d31;}),_0x4d55f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5e828f=>_0x3e613f(_0x5e828f),'converterPriority':'high'}),_0x4d55f3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x428229,_0x31c325)=>_0x31c325['options']['showSuggestionHighlights']?_0x3e613f(_0x428229,!0x1):null,'converterPriority':'high'});const _0x43d80c=_0x4d55f3['editing']['view'];this['listenTo'](_0x43d80c['document'],'clipboardOutput',(_0x5a587c,_0x5e0713)=>{const _0x20ba0a=[];for(const _0x266b88 of _0x43d80c['createRangeIn'](_0x5e0713['content'])['getItems']())_0x266b88['is']('element','suggestion-td')&&_0x20ba0a['push'](_0x266b88);_0x43d80c['change'](_0xcfbbb1=>{for(const _0x1ad856 of _0x20ba0a)_0xcfbbb1['move'](_0xcfbbb1['createRangeIn'](_0x1ad856),_0xcfbbb1['createPositionBefore'](_0x1ad856)),_0xcfbbb1['remove'](_0x1ad856);});});}}function Oe(_0x6b8103){if(_0x6b8103['isEmpty'])return!0x0;const _0x521715=_0x6b8103['getChild'](0x0);return _0x521715['is']('element','paragraph')&&_0x521715['isEmpty'];}function Ue(_0x1760d2,_0x1853d5={},_0x18fab4){for(const {isAnchor:_0x1fa727,cellHeight:_0x49252e,cellWidth:_0x4d445b}of _0x18fab4['createTableWalker'](_0x1760d2,{'includeAllSlots':!0x0,..._0x1853d5}))if(!_0x1fa727||0x1!=_0x49252e||0x1!=_0x4d445b)return!0x1;return!0x0;}class $t extends _0x59cf86{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48cf90=this['editor']['plugins']['get']('TrackChangesEditing');_0x48cf90['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48cf90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48cf90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48cf90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48cf90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48cf90['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x38936c,_0x55bfcf){const _0x376acf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x178074=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e4de8=_0x55bfcf['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d7f4c=_0x178074['getColumnGroupElement'](_0x1e4de8);let _0x157722=_0x3d7f4c?_0x178074['getTableColumnsWidths'](_0x3d7f4c):null,_0x549f74=_0x1e4de8['getAttribute']('tableWidth')||null;const _0x2911f3=_0x55bfcf['tableWidth']||_0x549f74,_0x17be5b=_0x55bfcf['columnWidths']||_0x157722,_0x1c4f4b=this['editor']['plugins']['get']('Users')['me'];for(const _0x171d57 of _0x376acf['getSuggestions']()){const _0x5b7b52=_0x171d57['getContainedElement']();if('resizeTable'===_0x171d57['subType']&&_0x5b7b52===_0x1e4de8){_0x171d57['author']!==_0x1c4f4b&&_0x171d57['discard']();const _0x568dd8=_0x171d57['data']['commandParams'];_0x549f74=_0x568dd8[0x0]['tableWidth'],_0x157722=_0x568dd8[0x0]['columnWidths'];break;}}_0x38936c({'table':_0x1e4de8,'tableWidth':_0x2911f3,'columnWidths':_0x17be5b}),_0x376acf['markBlockFormat'](_0x1e4de8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x549f74,'columnWidths':_0x157722}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xdc0cad){if('formatBlock'!=_0xdc0cad['type']&&'formatInline'!=_0xdc0cad['type'])return;const {data:_0x165836}=_0xdc0cad;if(_0x165836&&'resizeTable'===_0x165836['formatGroupId']){const _0x2405b7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2405b7)};}}}class Bt extends _0x59cf86{['afterInit'](){const _0x55572e=this['editor'];_0x55572e['plugins']['has']('Template')&&_0x55572e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x59cf86{['afterInit'](){const _0x452c60=this['editor'];if(!_0x452c60['commands']['get']('insertTableOfContents'))return;_0x452c60['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a7459=_0x452c60['plugins']['get']('TrackChangesEditing'),_0x1a6067=_0x452c60['locale'];_0x1a7459['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d832c=>o(_0x1a6067,'ELEMENT_TABLE_OF_CONTENTS',_0x5d832c));}}class Rt extends _0x59cf86{['afterInit'](){const _0xf857e=this['editor'];if(!_0xf857e['plugins']['has']('Title'))return;const _0x35dad6=_0xf857e['plugins']['get']('TrackChangesEditing');_0x35dad6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xf857e['locale'],'ELEMENT_TITLE')),_0xf857e['model']['document']['registerPostFixer'](_0x55a603=>{let _0x415538=!0x1;const _0x2ca26c=Array['from'](_0xf857e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18d93c,data:_0x46182a}of _0x2ca26c){const {group:_0x5272d5}=_0x35dad6['_splitMarkerName'](_0x18d93c);if('suggestion'!==_0x5272d5||!_0x46182a['newRange'])continue;const _0x2de990=_0x46182a['newRange'],_0x3676c4=_0x2de990['end']['nodeBefore'];if(!_0x3676c4||!_0x3676c4['is']('element','title-content'))continue;if(!_0x2de990['start']['isTouching'](_0x2de990['end']))continue;const _0x34139c=_0xf857e['model']['schema']['getNearestSelectionRange'](_0x2de990['end'],'forward');if(_0x34139c&&_0x34139c['isCollapsed']){const _0x5e2739=_0x55a603['createRange'](_0x2de990['start'],_0x34139c['start']);_0x5e2739['isEqual'](_0x2de990)||(_0x55a603['updateMarker'](_0x18d93c,{'range':_0x5e2739}),_0x415538=!0x0);}_0x415538||(_0x55a603['removeMarker'](_0x18d93c),_0x415538=!0x0);}return _0x415538;});}}class Tt extends _0x59cf86{['afterInit'](){const _0x27f8c=this['editor'],_0xa8c2d3=_0x27f8c['plugins']['get']('TrackChangesEditing');_0x27f8c['plugins']['has']('Uploadcare')&&(_0xa8c2d3['enableCommand']('uploadcare'),_0x27f8c['plugins']['has']('UploadcareImageEdit')&&(_0xa8c2d3['enableCommand']('uploadcareImageEdit'),_0xa8c2d3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xa8c2d3['registerBlockAttribute']('uploadcareImageId'),_0xa8c2d3['descriptionFactory']['registerDescriptionCallback'](_0x516149=>{if('attribute'!=_0x516149['type'])return;const {data:_0x3e8571}=_0x516149;return _0x3e8571&&'uploadcareImageId'==_0x3e8571['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x59cf86{['afterInit'](){const _0x20d758=this['editor'],_0x53724d=_0x20d758['plugins']['get']('TrackChangesEditing');_0x20d758['plugins']['has']('UndoEditing')&&(_0x53724d['enableCommand']('undo'),_0x53724d['enableCommand']('redo'));}}class Et extends _0x59cf86{static get['requires'](){return[Ct];}['afterInit'](){const _0x46fcb9=this['editor'];if(!_0x46fcb9['plugins']['has']('TableCaptionEditing'))return;_0x46fcb9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x59cf86{['tableProperties'];['tableCellProperties'];constructor(_0x695831){super(_0x695831),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x494983=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x33d8d9 of this['tableProperties'])_0x494983['enableCommand'](_0x33d8d9,(_0x5ac157,_0x2d392f)=>{const _0x4f6fb7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x33d8d9,[_0x4f6fb7],this['tableProperties'],'tableProperties',_0x5ac157,_0x2d392f);});_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x494983['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39a14e,_0x150c05)=>this['handleDiscardAction'](this['tableProperties'],_0x39a14e,_0x150c05)),_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x47a82f of this['tableCellProperties'])_0x494983['enableCommand'](_0x47a82f,(_0xde8dbb,_0x118a05)=>{const _0x3e26f2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x47a82f,_0x3e26f2,this['tableCellProperties'],'tableCellProperties',_0xde8dbb,_0x118a05);});_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x494983['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a09d6,_0x5ada6d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a09d6,_0x5ada6d)),_0x494983['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x494983['descriptionFactory']['registerDescriptionCallback'](_0x4cda66=>this['handleSuggestionDescription'](_0x4cda66));}['_handlePropertyChange'](_0x2e4f70,_0x2a0426,_0x315844,_0xcfd9ed,_0x41e1ad,_0x154a18){const _0x51ae9d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x154a18['batch'],()=>{for(const _0xea9ce8 of _0x2a0426){if(this['_getSuggestion'](_0xea9ce8,_0xcfd9ed))_0x41e1ad(_0x154a18);else{const _0x5ed54c={};for(const _0x5c3f49 of _0x315844){const _0x42fabd=_0xea9ce8['getAttribute'](_0x5c3f49);void 0x0!==_0x42fabd&&(_0x5ed54c[_0x5c3f49]=_0x42fabd);}_0x41e1ad(_0x154a18),_0x51ae9d['markBlockFormat'](_0xea9ce8,{'commandParams':[_0x5ed54c]},[],_0xcfd9ed);}}});}['handleDiscardAction'](_0x17fb02,_0x32f288,_0x51c526){const _0xeb9a37=_0x32f288[0x0]['start']['nodeAfter'],_0x3c22c3=_0x51c526['commandParams'][0x0];this['editor']['model']['change'](_0x149d2d=>{for(const _0x241a5b of _0x17fb02)void 0x0!==_0x3c22c3[_0x241a5b]?_0x149d2d['setAttribute'](_0x241a5b,_0x3c22c3[_0x241a5b],_0xeb9a37):_0x149d2d['removeAttribute'](_0x241a5b,_0xeb9a37);});}['handleSuggestionDescription'](_0x5d9e8e){if(_0x5d9e8e['data'])switch(_0x5d9e8e['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'](_0x3dca8b,_0x2d3208){const _0x459101=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x552ffd of _0x459101['getSuggestions']({'skipNotAttached':!0x0})){const _0x5eb26b=_0x552ffd['getContainedElement']();if(_0x552ffd['subType']===_0x2d3208&&_0x5eb26b===_0x3dca8b)return _0x552ffd;}return null;}}const m='$elementName';class p extends _0x59cf86{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x33b2bc,_0x209f26,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46bb99){super(_0x46bb99),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49c0a8,_0x463b8f,_0x5298ec,_0x54d058)=>{this['_model']['change'](()=>{for(const _0x41e509 of[..._0x54d058,..._0x5298ec])this['_model']['markers']['has'](_0x41e509)&&_0x46bb99['editing']['reconvertMarker'](_0x41e509);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46bb99['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x46bb99['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46bb99['config']['get']('trackChanges.trackFormatChanges'),_0x46bb99['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46bb99['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x46bb99,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xd8e09a=this['editor'],_0x3694e7=(_0x51f8a3,_0x138fb9)=>{if('attribute'!=_0x51f8a3)return'ck-suggestion-marker-'+_0x51f8a3;const _0xece740=_0x138fb9['split']('|')[0x0];return this['_isBlockAttribute'](_0xece740)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xd8e09a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf7316c=>{const {id:_0x52b8f1,authorId:_0x9ef8a0,type:_0x4681d1,subType:_0x2c9620}=this['_splitMarkerName'](_0xf7316c['markerName']),_0x5a4668=['ck-suggestion-marker',_0x3694e7(_0x4681d1,_0x2c9620)];let _0x54e630=0xbb8;return this['activeMarkers']['includes'](_0xf7316c['markerName'])&&(_0x5a4668['push']('ck-suggestion-marker--active'),_0x54e630=0xbc2),'deletion'==_0x4681d1&&(_0x54e630+=0x5),{'classes':_0x5a4668,'attributes':{'data-suggestion':_0x52b8f1,'data-author-id':_0x9ef8a0},'priority':_0x54e630};}}),_0xd8e09a['conversion']['for']('dataDowncast')['add'](_0x4da0b0=>{_0x4da0b0['on']('addMarker:suggestion',(_0x2ec544,_0x3638da,_0x2eb217)=>{if(!_0x2eb217['options']['showSuggestionHighlights'])return;const _0x5365a2=_0x3638da['item'];if(!_0x5365a2)return;const _0x120b0a=_0x2eb217['mapper']['toViewElement'](_0x5365a2);_0xd8e09a['model']['schema']['isObject'](_0x5365a2)&&_0x120b0a&&!_0x120b0a['getCustomProperty']('widget')&&_0x120b0a['is']('containerElement')&&_0x23f6c4(_0x120b0a,_0x2eb217['writer']);},{'priority':'high'});}),_0xd8e09a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x10a5e4,_0x309642)=>{if(!_0x309642['options']['showSuggestionHighlights'])return null;const {type:_0x406675,subType:_0x5cf58b}=this['_splitMarkerName'](_0x10a5e4['markerName']);return{'classes':['ck-suggestion-marker',_0x3694e7(_0x406675,_0x5cf58b)],'priority':0xbb8};}});const _0x34238b=({showActiveMarkers:_0x13478d=!0x0,isAttributeSuggestion:_0x5e848d=!0x1}={})=>(_0x3c2099,_0x15ff3e,_0x32358a)=>{if(!_0x15ff3e['item'])return;const {id:_0x198cdd,authorId:_0x1dd825}=this['_splitMarkerName'](_0x15ff3e['markerName']);if(_0x5e848d){const _0x2e3715=this['_suggestions']['get'](_0x198cdd),_0x1a2406=this['_getAttributeKey'](_0x2e3715);if(!this['_isBlockAttribute'](_0x1a2406))return;}if(_0x15ff3e['item']['is']('selection'))return void _0x32358a['consumable']['consume'](_0x15ff3e['item'],_0x3c2099['name']);const _0x2c732e=_0x32358a['mapper']['toViewElement'](_0x15ff3e['item']);if(_0x15ff3e['item']['is']('element')&&_0xd8e09a['model']['schema']['isBlock'](_0x15ff3e['item'])&&!_0x2c732e['getCustomProperty']('addHighlight')){_0x32358a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c732e),_0x32358a['writer']['setAttribute']('data-suggestion',_0x198cdd,_0x2c732e),_0x32358a['writer']['setAttribute']('data-author-id',_0x1dd825,_0x2c732e),_0x32358a['mapper']['bindElementToMarker'](_0x2c732e,_0x15ff3e['markerName']),_0x13478d&&(this['activeMarkers']['includes'](_0x15ff3e['markerName'])?_0x32358a['writer']['addClass']('ck-suggestion-marker--active',_0x2c732e):_0x32358a['writer']['removeClass']('ck-suggestion-marker--active',_0x2c732e));for(const _0x27589e of _0xd8e09a['model']['createRangeIn'](_0x15ff3e['item'])['getItems']())_0x32358a['consumable']['consume'](_0x27589e,_0x3c2099['name']);_0x32358a['consumable']['consume'](_0x15ff3e['item'],_0x3c2099['name']);}};_0xd8e09a['conversion']['for']('dataDowncast')['add'](_0x1f2000=>{_0x1f2000['on']('addMarker:suggestion:formatBlock',(_0x34f561,_0x250504,_0x51aab6)=>{_0x51aab6['options']['showSuggestionHighlights']&&_0x34238b({'showActiveMarkers':!0x1})(_0x34f561,_0x250504,_0x51aab6);},{'priority':'highest'});}),_0xd8e09a['conversion']['for']('dataDowncast')['add'](_0xf02da8=>{_0xf02da8['on']('addMarker:suggestion:attribute',(_0x316ddd,_0x2f451a,_0x231b22)=>{_0x231b22['options']['showSuggestionHighlights']&&_0x34238b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x316ddd,_0x2f451a,_0x231b22);},{'priority':'highest'});}),_0xd8e09a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d8d44,_0x35fe4e)=>_0x35fe4e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5d8d44['substr'](0xb)}}),_0xd8e09a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f4325,{writer:_0x3f0160})=>{let _0x253b86='suggestion:'+_0x4f4325['getAttribute']('suggestion-type')+':'+_0x4f4325['getAttribute']('id');return _0x4f4325['getAttribute']('marker-count')&&(_0x253b86+=':'+_0x4f4325['getAttribute']('marker-count')),_0x3f0160['createElement']('$marker',{'data-name':_0x253b86});}}),_0xd8e09a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xd8e09a['conversion']['for']('editingDowncast')['add'](_0x33234c=>{_0x33234c['on']('addMarker:suggestion:formatBlock',_0x34238b(),{'priority':'high'});}),_0xd8e09a['conversion']['for']('editingDowncast')['add'](_0x2bc0a8=>{_0x2bc0a8['on']('addMarker:suggestion:attribute',_0x34238b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xd8e09a['conversion']['for']('editingDowncast')['add'](_0x352360=>{_0x352360['on']('removeMarker:suggestion:formatBlock',(_0x2532c7,_0x332b79,_0x344345)=>{const _0x2ee1da=_0x344345['mapper']['markerNameToElements'](_0x332b79['markerName']);if(_0x2ee1da){for(const _0x207922 of _0x2ee1da)_0x207922['getCustomProperty']('addHighlight')||(_0x344345['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x207922),_0x344345['writer']['removeAttribute']('data-suggestion',_0x207922),_0x344345['writer']['removeAttribute']('data-author-id',_0x207922),_0x344345['mapper']['unbindElementFromMarkerName'](_0x207922,_0x332b79['markerName']));}},{'priority':'high'});}),_0xd8e09a['conversion']['for']('editingDowncast')['add'](_0x288fc5=>{_0x288fc5['on']('removeMarker:suggestion:attribute',(_0xd2f9c6,_0x5150da,_0x4e03ff)=>{const _0x280bbd=_0x4e03ff['mapper']['markerNameToElements'](_0x5150da['markerName']);if(!_0x280bbd)return;const {id:_0x52be15}=this['_splitMarkerName'](_0x5150da['markerName']),_0x4d3f4c=this['_suggestions']['get'](_0x52be15),_0x38165c=this['_getAttributeKey'](_0x4d3f4c);if(this['_isBlockAttribute'](_0x38165c)){for(const _0x1baa98 of _0x280bbd)_0x1baa98['getCustomProperty']('addHighlight')||(_0x4e03ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1baa98),_0x4e03ff['writer']['removeAttribute']('data-suggestion',_0x1baa98),_0x4e03ff['writer']['removeAttribute']('data-author-id',_0x1baa98),_0x4e03ff['mapper']['unbindElementFromMarkerName'](_0x1baa98,_0x5150da['markerName']));}},{'priority':'high'});}),_0xd8e09a['model']['document']['registerPostFixer'](_0xc78eb4=>{let _0xd591ac=!0x1;const _0x253c68=Array['from'](_0xd8e09a['model']['document']['differ']['getChangedMarkers']()),_0x3072bb=new Set();for(const {name:_0x1bc5c1,data:_0x50f634}of _0x253c68){const {group:_0x58b62c,type:_0x37818d,subType:_0x3dc448,id:_0x2d41b0}=this['_splitMarkerName'](_0x1bc5c1);if('suggestion'!==_0x58b62c)continue;const _0xfa7d94=this['_suggestions']['get'](_0x2d41b0);if(null!=_0x50f634['newRange']){'formatInline'==_0x37818d&&(_0xd591ac=_0xd591ac||Lt(_0x50f634['newRange'],_0x1bc5c1,_0xc78eb4,_0xd8e09a['model']['schema']));const _0x35ee21='attribute'==_0x37818d&&this['_isBlockAttribute'](_0x3dc448['split']('|')[0x0]);if(_0x50f634['newRange']['isCollapsed']||'$graveyard'==_0x50f634['newRange']['root']['rootName']||'formatBlock'==_0x37818d&&!Ht(_0x50f634['newRange'])||_0x35ee21&&!Ht(_0x50f634['newRange'])||'deletion'==_0x37818d&&!(!Ft(_0x80748f=_0x50f634['newRange'])&&!function(_0xea085e){return _0xea085e['start']['parent']==_0xea085e['end']['nodeBefore']&&_0xea085e['start']['isAtEnd'];}(_0x80748f)))_0xc78eb4['removeMarker'](_0x1bc5c1),_0xd591ac=!0x0;else{if(!_0xfa7d94||!_0xfa7d94['isInContent'])continue;if(_0x50f634['newRange']&&_0x50f634['oldRange']&&_0x50f634['newRange']['isEqual'](_0x50f634['oldRange']))continue;_0x3072bb['add'](_0xfa7d94);}}}var _0x80748f;return _0x3072bb['size']>0x0&&(_0xd591ac=!!this['_joinWithAdjacentSuggestions'](_0x3072bb)||_0xd591ac),_0xd591ac;}),_0xd8e09a['model']['document']['registerPostFixer'](_0x36f25b=>{let _0x591db0=!0x1;for(const _0x2a61e2 of _0xd8e09a['model']['document']['differ']['getChanges']())if('insert'==_0x2a61e2['type'])for(const _0x1fd96b of this['_suggestions']['values']()){if(_0x1fd96b['isMultiRange']||!_0x1fd96b['isInContent'])continue;const _0x145bdb='formatBlock'==_0x1fd96b['type'],_0x222173=this['_getAttributeKey'](_0x1fd96b),_0x5824d6=_0x222173&&this['_isBlockAttribute'](_0x222173);if(!_0x145bdb&&!_0x5824d6)continue;const _0x250854=_0x1fd96b['getFirstRange']();if(_0x250854['start']['parent']!=_0x250854['end']['parent']&&!_0x250854['end']['isAtEnd']){const _0x223254=_0xd8e09a['model']['createPositionAt'](_0x250854['start']['nodeAfter'],'end'),_0xee2b1e=_0xd8e09a['model']['createRange'](_0x250854['start'],_0x223254);_0x36f25b['updateMarker'](_0x1fd96b['getFirstMarker'](),{'range':_0xee2b1e}),_0x591db0=!0x0;}}return _0x591db0;}),_0xd8e09a['model']['document']['registerPostFixer'](_0x487eb5=>this['_processAttributeChanges'](_0x487eb5)),_0xd8e09a['model']['document']['registerPostFixer'](_0x31aee7=>!_0x31aee7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x31aee7)),_0xd8e09a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xd8e09a['model']['document']['on']('change:data',(_0x2c2362,_0x5bf3c5)=>{if(!_0x5bf3c5['isLocal']||_0x5bf3c5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fa050=_0xd8e09a['model']['document']['differ']['getChanges']();if(0x0==_0x3fa050['length'])return;const _0x2b5520=[],_0x3f636a=_0x3fa050['filter'](_0x2dbc8b=>'attribute'==_0x2dbc8b['type']),_0x482ed7=_0x3fa050['filter'](_0x3b71b8=>'insert'==_0x3b71b8['type']&&'$text'!=_0x3b71b8['name']);for(const _0x4c0a60 of _0x3f636a)this['_isRegisteredAttribute'](_0x4c0a60['attributeKey'])&&_0x2b5520['push']({'key':_0x4c0a60['attributeKey'],'newValue':_0x4c0a60['attributeNewValue'],'oldValue':_0x4c0a60['attributeOldValue'],'range':qt(_0x4c0a60['range'],_0xd8e09a['model'])});for(const _0x6a8a73 of _0x482ed7){if('rename'!=_0x6a8a73['action']&&'refresh'!=_0x6a8a73['action'])continue;const _0x411d99=zt(_0x6a8a73['position']['nodeAfter'],_0xd8e09a['model']),_0xb3486d=_0x6a8a73['before'];'rename'==_0x6a8a73['action']&&_0x2b5520['push']({'key':m,'newValue':_0x6a8a73['name'],'oldValue':_0xb3486d['name'],'range':_0x411d99});for(const [_0x3194da,_0x594340]of _0xb3486d['attributes']){if(!this['_isRegisteredAttribute'](_0x3194da))continue;const _0xc0db60=_0x6a8a73['attributes']['get'](_0x3194da);_0x594340!==_0xc0db60&&_0x2b5520['push']({'key':_0x3194da,'newValue':_0xc0db60,'oldValue':_0x594340,'range':_0x411d99});}for(const [_0x1cfc55,_0x4d3e88]of _0x6a8a73['attributes'])this['_isRegisteredAttribute'](_0x1cfc55)&&(_0xb3486d['attributes']['has'](_0x1cfc55)||_0x2b5520['push']({'key':_0x1cfc55,'newValue':_0x4d3e88,'oldValue':null,'range':_0x411d99}));}0x0!=_0x2b5520['length']&&_0xd8e09a['model']['enqueueChange'](_0x5bf3c5,_0x37c151=>{const _0x925663=_0x1d192f();for(const {range:_0x1cbc12,key:_0x124a77,oldValue:_0x2cd160,newValue:_0x3d4caa}of _0x2b5520)this['markAttributeChange'](_0x1cbc12,_0x124a77,_0x2cd160,_0x3d4caa,{'groupId':_0x925663});this['_reduceExistingSuggestions'](_0x37c151,_0x2b5520);});},{'priority':'lowest'}),_0xd8e09a['model']['markers']['on']('update:suggestion',(_0x18ebd9,_0x5a8700,_0x30a1d5)=>{if(null==_0x30a1d5){const {id:_0x226dcf}=this['_splitMarkerName'](_0x5a8700['name']),_0x7666f4=this['_suggestions']['get'](_0x226dcf);_0x7666f4&&_0x7666f4['addMarkerName'](_0x5a8700['name']);}}),_0xd8e09a['model']['document']['on']('change:data',()=>{const _0x6431f0=Array['from'](_0xd8e09a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x24715e=>'suggestion'===this['_splitMarkerName'](_0x24715e['name'])['group']);if(0x0===_0x6431f0['length'])return;_0x6431f0['sort']((_0x685845,_0x559b4c)=>{const _0x4d0761=_0x685845['data']['oldRange'],_0x2fa001=_0x559b4c['data']['oldRange'];return null===_0x4d0761&&null===_0x2fa001?0x0:null===_0x4d0761&&null!==_0x2fa001?-0x1:null!==_0x4d0761&&null===_0x2fa001?0x1:_0x4d0761['start']['isBefore'](_0x2fa001['start'])?-0x1:0x1;});const _0xd7d3ec=new Set(),_0x3948b4=new Set();for(const {name:_0x4a9ebd,data:_0x17701f}of _0x6431f0){const {id:_0x5e1efe}=this['_splitMarkerName'](_0x4a9ebd);if(null===_0x17701f['oldRange']){const _0x20d877=this['_handleNewSuggestionMarker'](_0x4a9ebd);_0x3948b4['add'](_0x20d877);}else{const _0x38c76b=this['_suggestions']['get'](_0x5e1efe);null!==_0x17701f['newRange']||_0x38c76b['isInContent']?(_0xd7d3ec['add'](_0x38c76b['head']),_0x3948b4['add'](_0x38c76b)):this['_removeSuggestion'](_0x38c76b);}}_0x3948b4['size']>0x0&&this['_refreshSuggestionsChain'](_0x3948b4);for(const _0x2087cb of _0xd7d3ec)this['fire']('suggestionChanged',_0x2087cb);}),_0xd8e09a['model']['on']('applyOperation',(_0x4eab92,_0x22fecd)=>{const _0x24b0bb=_0x22fecd[0x0];if(!this['_suggestions']['size'])return;if(!_0x24b0bb['isDocumentOperation'])return;if(_0x24b0bb['batch']['isUndo']||!_0x24b0bb['batch']['isLocal'])return;let _0x588275,_0x352191;switch(_0x24b0bb['type']){case'insert':_0x588275=_0xd8e09a['model']['createPositionAt'](_0x24b0bb['position']),_0x352191=_0x588275['getShiftedBy'](_0x24b0bb['howMany']);break;case'split':_0x588275=_0xd8e09a['model']['createPositionAt'](_0x24b0bb['splitPosition']),_0x352191=_0xd8e09a['model']['createPositionAt'](_0x24b0bb['moveTargetPosition']);break;case'move':_0x588275=_0xd8e09a['model']['createPositionAt'](_0x24b0bb['targetPosition']),_0x352191=_0x588275['getShiftedBy'](_0x24b0bb['howMany']);break;default:return;}const _0x145fd1=_0xd8e09a['model']['createRange'](_0x588275,_0x352191);_0xd8e09a['model']['change'](()=>{for(const {suggestion:_0x44c786,meta:_0x103954}of this['_findSuggestions'](_0x145fd1)){if(_0x44c786['isMultiRange'])continue;if('formatInline'==_0x44c786['type'])continue;const _0x3239d1=this['_getAttributeKey'](_0x44c786);if(_0x3239d1&&this['_isBlockAttribute'](_0x3239d1)&&'split'!=_0x24b0bb['type'])continue;const _0x5265d6=_0x44c786['data']&&_0x44c786['data']['multipleBlocks'];('formatBlock'!=_0x44c786['type']||'split'==_0x24b0bb['type']&&!_0x5265d6)&&(_0x103954['containsRangeInObject']||'insertion'==_0x44c786['type']&&_0x103954['isOwn']||_0x44c786['getFirstRange']()['containsRange'](_0x145fd1)&&this['_breakSuggestionMarker'](_0x44c786,_0x588275,_0x352191));}});},{'priority':'lowest'}),_0xd8e09a['model']['on']('deleteContent',(_0x38066a,_0x2cd82c)=>{const _0x9aa9c7=_0x2cd82c[0x0],_0x383b9b=_0x2cd82c[0x1];if(_0x383b9b&&_0x383b9b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x9aa9c7['isCollapsed'])return;const _0x2d7a9=_0xd8e09a['model']['schema'],{start:_0x120e74,end:_0x1c293f}=_0x9aa9c7['getFirstRange'](),_0x5001e9=_0x120e74['nodeAfter']&&_0x2d7a9['isLimit'](_0x120e74['nodeAfter'])?null:_0x2d7a9['getNearestSelectionRange'](_0x120e74,'forward'),_0x450233=_0x1c293f['nodeBefore']&&_0x2d7a9['isLimit'](_0x1c293f['nodeBefore'])?null:_0x2d7a9['getNearestSelectionRange'](_0x1c293f,'backward'),_0x478a3d=_0xd8e09a['model']['createRange'](_0x5001e9?_0x5001e9['start']:_0x120e74,_0x450233?_0x450233['end']:_0x1c293f);_0xd8e09a['model']['change'](_0x59f24b=>{this['markDeletion'](_0x478a3d);const _0x4436db=_0xd8e09a['model']['schema']['getNearestSelectionRange'](_0x478a3d['start']);_0x9aa9c7['is']('documentSelection')?_0x59f24b['setSelection'](_0x4436db):_0x9aa9c7['setTo'](_0x4436db);}),_0x38066a['stop']();},{'priority':_0x4e8da5['normal']+0xa}),_0xd8e09a['model']['on']('insertContent',(_0x38faab,_0x484a03)=>{const _0x377d7c=_0x484a03[_0x484a03['length']-0x1];_0x377d7c&&_0x377d7c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xd8e09a['model']['change'](()=>{let _0x3d7d79=_0xd8e09a['model']['insertContent'](_0x484a03[0x0],_0x484a03[0x1],_0x484a03[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d7d79)return;_0x38faab['return']=_0x3d7d79['clone']();const _0x3cbc2e=_0x3d7d79['end']['nodeBefore'],_0x1a7067=_0xd8e09a['model']['schema'];_0x3cbc2e&&_0x1a7067['isBlock'](_0x3cbc2e)&&!_0x1a7067['isObject'](_0x3cbc2e)&&(_0x3d7d79=_0xd8e09a['model']['createRange'](_0x3d7d79['start'],_0xd8e09a['model']['createPositionAt'](_0x3cbc2e,'end'))),this['markInsertion'](_0x3d7d79);}),_0x38faab['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c81e9=new O(_0xd8e09a,this['_suggestions']);_0xd8e09a['commands']['add']('acceptSuggestion',_0x5c81e9),this['enableCommand']('acceptSuggestion');const _0x10da8b=new R(_0xd8e09a,this['_suggestions']);_0xd8e09a['commands']['add']('discardSuggestion',_0x10da8b),this['enableCommand']('discardSuggestion'),_0xd8e09a['commands']['add']('acceptAllSuggestions',new x(_0xd8e09a,_0x5c81e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xd8e09a['commands']['add']('discardAllSuggestions',new x(_0xd8e09a,_0x10da8b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xd8e09a['commands']['add']('acceptSelectedSuggestions',new E(_0xd8e09a,_0x5c81e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xd8e09a['commands']['add']('discardSelectedSuggestions',new E(_0xd8e09a,_0x10da8b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4787cd=_0xd8e09a['plugins']['get']('CommentsRepository');this['listenTo'](_0x4787cd,'addComment',(_0x2ba711,{threadId:_0x1cbd49})=>{const _0x32841c=this['_suggestions']['get'](_0x1cbd49);_0x32841c&&_0x32841c['commentThread']&&0x1===_0x32841c['commentThread']['length']&&this['_updateSuggestionData'](_0x1cbd49,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4787cd,'removeComment',(_0x390ec6,{threadId:_0x3cad1a})=>{const _0x195b2f=this['_suggestions']['get'](_0x3cad1a);_0x195b2f&&_0x195b2f['commentThread']&&!_0x195b2f['commentThread']['length']&&this['_updateSuggestionData'](_0x3cad1a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ecc31){const _0x240299=_0x224927([0x4d,0x37,0x43,0x57,0x4b,0x54,0x31,0x52,0x39,0x56,0x4a,0x62,0x4c,0x6f,0x4e,0x36,0x41,0x46,0x7a,0x51,0x6c,0x77,0x64,0x79,0x55,0x42,0x67,0x30,0x70,0x38,0x61,0x6e,0x65,0x50,0x5a,0x6a,0x34,0x35,0x71,0x48,0x74,0x58,0x45,0x32,0x4f,0x78,0x49,0x66,0x6b,0x73,0x75,0x68,0x47,0x63,0x53,0x69,0x72,0x33,0x6d,0x44,0x76,0x59]),_0x2fbb00=0x4cd9dc36,_0x32f47a=0x4cdebc3e^_0x2fbb00,_0x24669a=window[_0x224927([0x44,0x61,0x74,0x65])][_0x224927([0x6e,0x6f,0x77])](),_0x111564=_0x4ecc31[_0x224927([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa14740=new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eb471=>{_0x111564[_0x224927([0x6f,0x6e,0x63,0x65])](_0x224927([0x72,0x65,0x61,0x64,0x79]),_0x1eb471);}),_0x425e15={[_0x224927([0x6b,0x74,0x79])]:_0x224927([0x45,0x43]),[_0x224927([0x75,0x73,0x65])]:_0x224927([0x73,0x69,0x67]),[_0x224927([0x63,0x72,0x76])]:_0x224927([0x50,0x2d,0x32,0x35,0x36]),[_0x224927([0x78])]:_0x224927([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]),[_0x224927([0x79])]:_0x224927([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]),[_0x224927([0x61,0x6c,0x67])]:_0x224927([0x45,0x53,0x32,0x35,0x36])},_0x36f8e3=_0x111564[_0x224927([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x224927([0x67,0x65,0x74])](_0x224927([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b0cbd(){let _0x5a8529,_0x528ca2=null,_0x38e1a3=null;try{if(_0x36f8e3==_0x224927([0x47,0x50,0x4c]))return _0x224927([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a8529=_0xc959f9(),!_0x5a8529)return _0x224927([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a8529[_0x224927([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38e1a3=_0x138888(_0x5a8529[_0x224927([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a8529[_0x224927([0x6a,0x74,0x69])])),await _0x320879()?_0x4cf7ea()?_0x439457()?_0x224927([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bad09()?(_0x5a8529[_0x224927([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x224927([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x528ca2=_0x18574(_0x224927([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a8529[_0x224927([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x224927([0x74,0x72,0x69,0x61,0x6c])&&(_0x528ca2=_0x18574(_0x224927([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x531608()):_0x224927([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x224927([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x224927([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x200b98){return _0x224927([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x439457(){const _0x2bc1c3=[_0x224927([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x224927([0x74,0x72,0x69,0x61,0x6c])][_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8529[_0x224927([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x24669a/0x3e8:0xe10*_0x32f47a;return _0x5a8529[_0x224927([0x65,0x78,0x70])]<_0x2bc1c3;}function _0x4cf7ea(){const _0xa857e7=_0x5a8529[_0x224927([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa857e7)return!0x1;if(_0xa857e7[_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224927([0x2a])))return!0x0;if(_0xa857e7[_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224927([0x54,0x43])))return!0x0;if(_0xa857e7[_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224927([0x52,0x54,0x43]))){if(_0x262d4e())return!0x0;if(_0x21bb29()||_0x22e418())return!0x0;}return!0x1;}function _0x2bad09(){const _0x55414d=_0x5a8529[_0x224927([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x55414d||0x0==_0x55414d[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55100f}=new URL(window[_0x224927([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x55414d[_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55100f))return!0x0;const _0x3b040c=_0x55100f[_0x224927([0x73,0x70,0x6c,0x69,0x74])](_0x224927([0x2e]));return _0x55414d[_0x224927([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e11e5=>_0x5e11e5[_0x224927([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x224927([0x2a])))[_0x224927([0x6d,0x61,0x70])](_0x2b6c14=>_0x2b6c14[_0x224927([0x73,0x70,0x6c,0x69,0x74])](_0x224927([0x2e])))[_0x224927([0x73,0x6f,0x6d,0x65])](_0x253ec3=>_0x3b040c[_0x224927([0x65,0x76,0x65,0x72,0x79])]((_0x298ee5,_0x2830fb)=>_0x253ec3[_0x2830fb]===_0x298ee5||_0x253ec3[_0x2830fb]===_0x224927([0x2a])));}function _0x531608(){return _0x528ca2&&_0x38e1a3?new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e1201,_0x34b124)=>{_0x528ca2[_0x224927([0x74,0x68,0x65,0x6e])](_0x1e1201,_0x34b124),_0x38e1a3[_0x224927([0x74,0x68,0x65,0x6e])](_0x481a22=>{_0x481a22!=_0x224927([0x56,0x61,0x6c,0x69,0x64])&&_0x1e1201(_0x481a22);},_0x34b124);}):_0x528ca2||_0x38e1a3||_0x224927([0x56,0x61,0x6c,0x69,0x64]);}}function _0x138888(_0x28eef5,_0x30500a){return new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a252=>{if(_0x218f18())return _0x36a252(_0x224927([0x56,0x61,0x6c,0x69,0x64]));_0x18d8e9(),_0x111564[_0x224927([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x224927([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x249568=!0x1;const _0x1b49eb=_0x1d192f();function _0x181381(_0x405556){return!!_0x405556&&(typeof _0x405556===_0x224927([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x405556===_0x224927([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x405556[_0x224927([0x74,0x68,0x65,0x6e])]===_0x224927([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x405556[_0x224927([0x63,0x61,0x74,0x63,0x68])]===_0x224927([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2619e1(_0xbc1191){_0x44b68d(_0xbc1191)[_0x224927([0x74,0x68,0x65,0x6e])](_0x23c6c4=>{if(!_0x23c6c4||_0x23c6c4[_0x224927([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x224927([0x6f,0x6b]))return _0x224927([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41530b(_0x5288f8(_0x1b49eb+_0x30500a))!=_0x23c6c4[_0x224927([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x224927([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x224927([0x56,0x61,0x6c,0x69,0x64]);})[_0x224927([0x74,0x68,0x65,0x6e])](_0x3775d6=>(_0x480a3b(),_0x3775d6),()=>{const _0x52c1e3=_0x2202c6();return null==_0x52c1e3?(_0x480a3b(),_0x224927([0x56,0x61,0x6c,0x69,0x64])):_0x224927(_0x24669a-_0x52c1e3>(0x68d55836^_0x2fbb00)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x224927([0x74,0x68,0x65,0x6e])](_0x36a252)[_0x224927([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36a252(_0x224927([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e4bd1=0x4cef32b6^_0x2fbb00;function _0x480a3b(){const _0x31ff7c=_0x224927([0x6c,0x6c,0x63,0x74,0x2d])+_0x41530b(_0x5288f8(_0x28eef5)),_0x38a442=_0x415a22(_0x41530b(window[_0x224927([0x4d,0x61,0x74,0x68])][_0x224927([0x63,0x65,0x69,0x6c])](_0x24669a/_0x2e4bd1)));window[_0x224927([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x224927([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31ff7c,_0x38a442);}function _0x2202c6(){const _0x47372c=_0x224927([0x6c,0x6c,0x63,0x74,0x2d])+_0x41530b(_0x5288f8(_0x28eef5)),_0x75165d=window[_0x224927([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x224927([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47372c);return _0x75165d?window[_0x224927([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x415a22(_0x75165d),0x10)*_0x2e4bd1:null;}function _0x44b68d(_0x406ef7){return new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d499f,_0x26fc2a)=>{_0x406ef7[_0x224927([0x74,0x68,0x65,0x6e])](_0x3d499f,_0x26fc2a),window[_0x224927([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26fc2a,0x4cd808f6^_0x2fbb00);});}}_0x111564[_0x224927([0x6f,0x6e])](_0x224927([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x569191,_0x50874a)=>{if(_0x50874a[0x0]!=_0x28eef5)return _0x36a252(_0x224927([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50874a[0x1]={..._0x50874a[0x1],[_0x224927([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b49eb};},{[_0x224927([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x224927([0x68,0x69,0x67,0x68])}),_0x111564[_0x224927([0x6f,0x6e])](_0x224927([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5a5b90=>{_0x181381(_0x5a5b90[_0x224927([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x249568=!0x0,_0x2619e1(_0x5a5b90[_0x224927([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x224927([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x224927([0x6c,0x6f,0x77])}),_0xa14740[_0x224927([0x74,0x68,0x65,0x6e])](()=>{_0x249568||_0x36a252(_0x224927([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x218f18(){return _0x111564[_0x224927([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x224927([0x76,0x69,0x65,0x77])][_0x224927([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x224927([0x61,0x75,0x74,0x6f]);}function _0x18d8e9(){_0x111564[_0x224927([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x224927([0x76,0x69,0x65,0x77])][_0x224927([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x224927([0x61,0x75,0x74,0x6f]);}}function _0x18574(_0x29513e){const _0xd67036=[new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc41729=>setTimeout(_0xc41729,0x4cd0e2fa^_0x2fbb00)),_0xa14740[_0x224927([0x74,0x68,0x65,0x6e])](()=>new window[(_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x106485=>{let _0x5a9307=0x0;_0x111564[_0x224927([0x6d,0x6f,0x64,0x65,0x6c])][_0x224927([0x6f,0x6e])](_0x224927([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b7e0f,_0x23bdac)=>{_0x23bdac[0x0][_0x224927([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a9307++,_0x5a9307==(0x4cd9ddce^_0x2fbb00)&&(_0x106485(),_0x3b7e0f[_0x224927([0x6f,0x66,0x66])]());});}))];return window[_0x224927([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x224927([0x72,0x61,0x63,0x65])](_0xd67036)[_0x224927([0x74,0x68,0x65,0x6e])](()=>_0x29513e);}async function _0x3cb3e8(){await _0xa14740,_0x111564[_0x224927([0x6d,0x6f,0x64,0x65,0x6c])][_0x224927([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bd03f,_0x111564[_0x224927([0x6d,0x6f,0x64,0x65,0x6c])][_0x224927([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bd03f,_0x111564[_0x224927([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x224927([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x262d4e(){return _0x47e34a(_0x224927([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x347ede(_0x224927([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x224927([0x73,0x74,0x61,0x74,0x65])]==_0x224927([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21bb29(){return _0x47e34a(_0x224927([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 _0x22e418(){return _0x47e34a(_0x224927([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43d684(_0x1a9c61){const _0x44a5fd=_0x1e7cff();_0x111564[_0x44a5fd]=_0x224927([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a9c61,_0x1a9c61!=_0x224927([0x56,0x61,0x6c,0x69,0x64])&&_0x3cb3e8();}function _0x1e7cff(){const _0x374848=window[_0x224927([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x224927([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x224927([0x6e,0x6f,0x77])]())[_0x224927([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x224927([0x2e]),'');let _0x3a463a=_0x224927([0x4d]);for(let _0xb4796c=0x0;_0xb4796c<_0x374848[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb4796c+=0x2){let _0x58c551=window[_0x224927([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x374848[_0x224927([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb4796c,_0xb4796c+0x2));_0x58c551>=_0x240299[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58c551-=_0x240299[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a463a+=_0x240299[_0x58c551];}return _0x3a463a;}function _0xc959f9(){const _0x265861=_0x36f8e3[_0x224927([0x73,0x70,0x6c,0x69,0x74])](_0x224927([0x2e]));if(0x3!=_0x265861[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x88e677(_0x265861[0x1]);function _0x88e677(_0x59d899){const _0xc51d5=_0xf44743(_0x59d899);return _0xc51d5&&_0x3e57a0()?_0xc51d5:null;function _0x3e57a0(){const _0x449ce7=_0xc51d5[_0x224927([0x6a,0x74,0x69])],_0x390985=window[_0x224927([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x449ce7[_0x224927([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x449ce7[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36bdb2={..._0xc51d5,[_0x224927([0x6a,0x74,0x69])]:_0x449ce7[_0x224927([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x449ce7[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36bdb2[_0x224927([0x76,0x63])],_0x5288f8(_0x36bdb2)==_0x390985;}}}async function _0x320879(){let _0x5fd669=!0x0;try{const _0x314b63=_0x36f8e3[_0x224927([0x73,0x70,0x6c,0x69,0x74])](_0x224927([0x2e])),[_0x4b30c0,_0x2c2ff9,_0x4bc498]=_0x314b63;return _0x5b212e(_0x4b30c0),await _0x300390(_0x4b30c0,_0x2c2ff9,_0x4bc498),_0x5fd669;}catch(_0x36b5d4){return!0x1;}function _0x5b212e(_0x21a01f){const _0x1bc4c5=_0xf44743(_0x21a01f);_0x1bc4c5&&_0x1bc4c5[_0x224927([0x61,0x6c,0x67])]==_0x224927([0x45,0x53,0x32,0x35,0x36])||(_0x5fd669=!0x1);}async function _0x300390(_0x3a31b4,_0x419689,_0xe89ca8){const _0x1c285b=window[_0x224927([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x224927([0x66,0x72,0x6f,0x6d])](_0x5c766e(_0xe89ca8),_0x55469a=>_0x55469a[_0x224927([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x44aa37=new window[(_0x224927([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x224927([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a31b4+_0x224927([0x2e])+_0x419689),_0x307739=window[_0x224927([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x224927([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x307739)return;const _0x143114=await _0x307739[_0x224927([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x224927([0x6a,0x77,0x6b]),_0x425e15,{[_0x224927([0x6e,0x61,0x6d,0x65])]:_0x224927([0x45,0x43,0x44,0x53,0x41]),[_0x224927([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x224927([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x224927([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x307739[_0x224927([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x224927([0x6e,0x61,0x6d,0x65])]:_0x224927([0x45,0x43,0x44,0x53,0x41]),[_0x224927([0x68,0x61,0x73,0x68])]:{[_0x224927([0x6e,0x61,0x6d,0x65])]:_0x224927([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x143114,_0x1c285b,_0x44aa37)||(_0x5fd669=!0x1);}}function _0xf44743(_0x1c7fa0){return _0x1c7fa0[_0x224927([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x224927([0x65,0x79]))?JSON[_0x224927([0x70,0x61,0x72,0x73,0x65])](_0x5c766e(_0x1c7fa0)):null;}function _0x5c766e(_0x66f77){return window[_0x224927([0x61,0x74,0x6f,0x62])](_0x66f77[_0x224927([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x224927([0x2b]))[_0x224927([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x224927([0x2f])));}function _0x5288f8(_0x2c8e85){let _0x31f2e0=0x1505;function _0x342e31(_0x222ff0){for(let _0x4a7a9d=0x0;_0x4a7a9d<_0x222ff0[_0x224927([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a7a9d++){const _0x5232e7=_0x222ff0[_0x224927([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4a7a9d);_0x31f2e0=(_0x31f2e0<<0x5)+_0x31f2e0+_0x5232e7,_0x31f2e0&=_0x31f2e0;}}function _0x3adc77(_0x1f5be7){Array[_0x224927([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f5be7)?_0x1f5be7[_0x224927([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3adc77):_0x1f5be7&&typeof _0x1f5be7==_0x224927([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x224927([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f5be7)[_0x224927([0x73,0x6f,0x72,0x74])]()[_0x224927([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bb27d,_0x5c057b])=>{_0x342e31(_0x1bb27d),_0x3adc77(_0x5c057b);}):_0x342e31(window[_0x224927([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f5be7));}return _0x3adc77(_0x2c8e85),_0x31f2e0>>>0x0;}function _0x41530b(_0xb3dc2d){return _0xb3dc2d[_0x224927([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x224927([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x224927([0x30]));}function _0x415a22(_0x3d9ba0){return _0x3d9ba0[_0x224927([0x73,0x70,0x6c,0x69,0x74])]('')[_0x224927([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x224927([0x6a,0x6f,0x69,0x6e])]('');}function _0x47e34a(_0x230f08){return _0x111564[_0x224927([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x224927([0x68,0x61,0x73])](_0x230f08);}function _0x347ede(_0x3abc7d){return _0x111564[_0x224927([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x224927([0x67,0x65,0x74])](_0x3abc7d);}function _0x2bd03f(){}function _0x224927(_0x4a3091){return _0x4a3091['map'](_0x2be7de=>String['fromCharCode'](_0x2be7de))['join']('');}_0x43d684(await _0x5b0cbd());}(this);}set['adapter'](_0x3d0f3a){if(this['_adapter'])throw new _0x1d05c0('track-changes-adapter-already-set',this);this['_adapter']=_0x3d0f3a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5988af=!0x1,toJSON:_0x16e5c6=!0x1}={}){const _0x2a7121=[];for(const _0x30ea91 of this['_suggestions']['values']())_0x5988af&&!_0x30ea91['isInContent']||_0x2a7121['push'](_0x30ea91);return _0x16e5c6?_0x2a7121['map'](_0x5f2091=>_0x5f2091['toJSON']()):_0x2a7121;}['getSuggestion'](_0xa5baf5){const _0xb4101e=this['_suggestions']['get'](_0xa5baf5);if(!_0xb4101e)throw new _0x1d05c0('track-changes-suggestion-not-found',this);return _0xb4101e;}['hasSuggestion'](_0x3c59a2){return this['_suggestions']['has'](_0x3c59a2);}['addSuggestionData'](_0x2c366f){const {authorId:_0x4e70bf,id:_0x5f5102,attributes:_0x2ea1b6}=_0x2c366f,[_0x2c887c,_0x5a1385]=_0x2c366f['type']['split'](':'),_0x112729=this['_suggestions']['get'](_0x5f5102)||this['_createSuggestion'](_0x2c887c,_0x5a1385,_0x5f5102,_0x4e70bf,_0x2ea1b6);if(this['_addThreadToSuggestion'](_0x112729),this['_checkSuggestionCorrectness'](_0x112729,_0x2c887c,_0x5a1385||null,_0x4e70bf),_0x112729['createdAt']=_0x2c366f['createdAt'],_0x112729['_isDataLoaded']=!0x0,_0x2ea1b6&&_0x2ea1b6['@external']){const _0x4f1d91=_0x2ea1b6['@external'],_0x5a3194=this['_getExternalAuthor'](_0x4f1d91['authorName']);_0x112729['authoredAt']=_0x4f1d91['createdAt'],_0x112729['author']=_0x5a3194,_0x112729['isExternal']=!0x0;}else _0x112729['authoredAt']=_0x2c366f['createdAt'];switch(_0x2c366f['data']&&(_0x112729['data']=_0x2c366f['data']),_0x2c366f['attributes']&&(_0x112729['attributes']=_0x2c366f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x112729['_saved']=!0x0),this['_suggestionState']['get'](_0x112729)){case'notReady':this['_suggestionState']['set'](_0x112729,'dataReady');break;case'markerReady':_0x112729['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x112729])),this['_refreshSuggestionsChain'](new Set([_0x112729])),this['_suggestionState']['set'](_0x112729,'ready'),this['fire']('suggestionLoaded',_0x112729)):this['_suggestionState']['set'](_0x112729,'removed');}return _0x112729;}['acceptSuggestion'](_0x5b9983){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x528260 of _0x5b9983['getAllAdjacentSuggestions']())_0x528260['accept']();});});}['discardSuggestion'](_0xc5fad3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x464a5e of _0xc5fad3['getAllAdjacentSuggestions']())_0x464a5e['discard']();});});}['enableCommand'](_0x3b6f69,_0x2f42f5){const _0x4475c7=this['editor']['commands']['get'](_0x3b6f69);if(!_0x4475c7)throw new _0x1d05c0('track-changes-command-not-found',this,{'commandName':_0x3b6f69});if(this['_enabledCommands']['has'](_0x4475c7))throw new _0x1d05c0('track-changes-enable-command-twice',this,{'commandName':_0x3b6f69});this['_enabledCommands']['add'](_0x4475c7),_0x2f42f5&&_0x4475c7['on']('execute',(_0x363c82,_0x19a777)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19a777['length']>0x0&&_0x19a777[_0x19a777['length']-0x1]&&_0x19a777[_0x19a777['length']-0x1]['forceDefaultExecution']?_0x19a777['pop']():(_0x363c82['return']=_0x2f42f5((..._0x30be3a)=>_0x4475c7['execute'](..._0x30be3a,{'forceDefaultExecution':!0x0}),..._0x19a777),_0x363c82['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5436cc){let _0x228e3f,_0x3a009f;const _0x3009a6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x228e3f=_0x5436cc();}catch(_0x10e49b){_0x3a009f=_0x10e49b;}return _0x3009a6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3a009f&&_0x1d05c0['rethrowUnexpectedError'](_0x3a009f,this),_0x228e3f;}['markInsertion'](_0x10915b,_0x5b0cc1=null,_0x37e3a6={}){if(_0x10915b['isCollapsed'])return null;const _0x466f55=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x12b793,meta:_0x2e1cbc}of this['_findSuggestions'](_0x10915b,'insertion'))if(_0x2e1cbc['isOwn']){if(!_0x2e1cbc['isNextTo']){if(_0x2e1cbc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x12b793,_0x37e3a6))continue;return _0x12b793;}if(Qt(_0x12b793,_0x37e3a6))return _0x12b793;this['_breakSuggestionMarker'](_0x12b793,_0x10915b['start'],_0x10915b['end']);break;}if(_0x5b0cc1==_0x12b793['subType']&&Qt(_0x12b793,_0x37e3a6)){const _0x2b28a6=_0x12b793['getFirstRange']();return _0x2b28a6['start']['isEqual'](_0x10915b['end'])?this['_setSuggestionRange'](_0x12b793,this['_model']['createRange'](_0x10915b['start'],_0x2b28a6['end'])):this['_setSuggestionRange'](_0x12b793,this['_model']['createRange'](_0x2b28a6['start'],_0x10915b['end'])),_0x12b793;}}const _0x441a79=_0x1d192f(),_0x887034=_0x466f55['id'],_0x156475=_0x5b0cc1?'insertion:'+_0x5b0cc1:'insertion',_0x558c21=this['_setSuggestionData']({'id':_0x441a79,'type':_0x156475,'createdAt':new Date(),'authorId':_0x887034,'attributes':_0x37e3a6});return this['_addSuggestionMarker'](_0x156475,_0x441a79,_0x887034,_0x10915b),_0x558c21;}['markMultiRangeInsertion'](_0x32d0af,_0x46dcd7='multi',_0x3112a4={}){const _0x4a728d=this['editor']['plugins']['get']('Users')['me'],_0x4f8b65=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x46dcd7,'join');for(const _0x344390 of this['getSuggestions']())if(_0x344390['author']['id']==_0x4a728d['id']&&'insertion'==_0x344390['type']&&_0x344390['subType']==_0x46dcd7&&Qt(_0x344390,_0x3112a4)&&(_0x4f8b65(_0x344390['getRanges'](),_0x32d0af)||_0x4f8b65(_0x32d0af,_0x344390['getRanges']()))){for(const _0x24cd82 of _0x32d0af)_0x344390['addRange'](_0x24cd82);return _0x344390;}for(const {suggestion:_0x136a76,meta:_0x240a9e}of this['_findSuggestions'](_0x32d0af,'insertion')){if(!_0x240a9e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x240a9e['containsRangeInObject'])continue;if(!Qt(_0x136a76,_0x3112a4))continue;let _0x36862d=!0x0;for(const _0x5d3d23 of _0x136a76['getRanges']())for(const _0x3f4f5b of _0x32d0af)if(!_0x5d3d23['containsRange'](_0x3f4f5b)){_0x36862d=!0x1;break;}if(_0x36862d)return _0x136a76;}const _0x39d823=_0x1d192f(),_0x1c335f=_0x4a728d['id'],_0x5c54cf='insertion:'+_0x46dcd7,_0x4826c4=this['_setSuggestionData']({'id':_0x39d823,'type':_0x5c54cf,'createdAt':new Date(),'authorId':_0x1c335f,'attributes':_0x3112a4});for(const _0x4f5064 of _0x32d0af)this['_addSuggestionMarker'](_0x5c54cf,_0x39d823,_0x1c335f,_0x4f5064,u['getMultiRangeId']());return _0x4826c4;}['markInlineFormat'](_0x20d248,_0x27c3c0,_0x339e12=null,_0xded119={}){if(_0x339e12=_0x339e12||Jt(_0x27c3c0),_0x20d248['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x53090c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339e12,'accept');return this['forceDefaultExecution'](()=>_0x53090c([_0x20d248],_0x27c3c0,_0xded119)),null;}const _0xb2f963=this['editor']['plugins']['get']('Users')['me'],_0x336a45=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x596d5b,meta:_0x559fee}of this['_findSuggestions'](_0x20d248,'insertion'))_0x559fee['isOwn']&&!_0x559fee['isInsideObject']&&_0x336a45['push'](..._0x596d5b['getRanges']());}const _0x2688b0=function(_0x2bf951,_0x3940fe){const _0x1107d2=[];for(const _0x850404 of _0x3940fe){const _0x215763=_0x2bf951['getIntersection'](_0x850404);_0x215763&&_0x1107d2['push'](_0x215763);}return _0x1107d2;}(_0x20d248,_0x336a45),_0x182f17=function(_0x483fe4,_0x3c4cb8){const _0x566a0b=[_0x483fe4];for(const _0x53ee1a of _0x3c4cb8){let _0x4cd844=0x0;for(;_0x4cd844<_0x566a0b['length'];){const _0x30ed47=_0x566a0b[_0x4cd844]['getDifference'](_0x53ee1a);_0x566a0b['splice'](_0x4cd844,0x1,..._0x30ed47),_0x4cd844+=_0x30ed47['length'];}}return _0x566a0b;}(_0x20d248,_0x336a45);_0x2688b0['length']&&this['_model']['change'](()=>{for(const _0xa0dc30 of _0x2688b0){const _0x21f673=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x339e12,'accept');this['forceDefaultExecution'](()=>_0x21f673([_0xa0dc30],_0x27c3c0,_0xded119));}});for(const _0x5478ef of _0x182f17){let _0x1eb3c2=null,_0x5b3008=_0x5478ef['start'],_0x3f81d4=_0x5478ef['end'];for(const {suggestion:_0x327583,meta:_0x31a8b4}of this['_findSuggestions'](_0x5478ef,'formatInline')){if(!_0x31a8b4['isOwn'])continue;if(_0x327583['subType']!=_0x339e12)continue;if(!Qt(_0x327583,_0xded119))continue;const _0xa731db=_0x327583['getFirstRange']();if(_0xa731db['containsRange'](_0x5478ef,!0x0))return null;_0x5b3008=_0x5b3008['isBefore'](_0xa731db['start'])?_0x5b3008:_0xa731db['start'],_0x3f81d4=_0x3f81d4['isAfter'](_0xa731db['end'])?_0x3f81d4:_0xa731db['end'],_0x1eb3c2?_0xa731db['start']['isBefore'](_0x1eb3c2['getFirstRange']()['start'])?(_0x1eb3c2['removeMarkers'](),_0x1eb3c2=_0x327583):_0x327583['removeMarkers']():_0x1eb3c2=_0x327583;}const _0x43556d=this['_model']['createRange'](_0x5b3008,_0x3f81d4);if(_0x1eb3c2)this['_setSuggestionRange'](_0x1eb3c2,_0x43556d);else{const _0x526e04=_0x1d192f(),_0x493ade=_0xb2f963['id'];this['_setSuggestionData']({'id':_0x526e04,'type':'formatInline:'+_0x339e12,'data':_0x27c3c0,'createdAt':new Date(),'authorId':_0x493ade,'attributes':_0xded119}),this['_addSuggestionMarker']('formatInline:'+_0x339e12,_0x526e04,_0x493ade,_0x43556d);}}return null;}['markBlockFormat'](_0x2d6f46,_0x3e3ca6,_0x39fafb=[],_0x100995=null,_0x28a623={}){_0x3e3ca6['formatGroupId']||(_0x3e3ca6['formatGroupId']=_0x3e3ca6['commandName']),_0x3e3ca6['multipleBlocks']=_0x2d6f46['is']('range'),_0x100995=_0x100995||Jt(_0x3e3ca6);const _0x6b675e=_0x39fafb['map'](_0x24da29=>zt(_0x24da29,this['_model'])),_0x237399=_0x2d6f46['is']('range')?_0x2d6f46:zt(_0x2d6f46,this['_model']);if('never'===this['_trackFormatChanges']){const _0x13b49f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x100995,'accept');return this['forceDefaultExecution'](()=>_0x13b49f([_0x237399],_0x3e3ca6,_0x28a623)),null;}_0x6b675e['push'](_0x237399);let _0x49382b=!0x0;for(const _0x5198d4 of _0x6b675e)if(!this['_rangeIsInLocalUserInsertion'](_0x5198d4)){_0x49382b=!0x1;break;}if(_0x49382b&&'always'!==this['_trackFormatChanges']){const _0x421452=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x100995,'accept');return this['forceDefaultExecution'](()=>_0x421452([_0x237399],_0x3e3ca6,_0x28a623)),null;}let _0x2c7095=null,_0x3fa907=_0x237399['start'],_0x302510=_0x237399['end'];for(const {suggestion:_0x1f5718,meta:_0x146496}of this['_findSuggestions'](_0x237399,'formatBlock')){if(!_0x146496['isOwn'])continue;if(_0x146496['isNextTo']||_0x146496['containsRangeInObject']||_0x146496['isInsideObject'])continue;if(_0x1f5718['data']['formatGroupId']!=_0x3e3ca6['formatGroupId'])continue;if(!Qt(_0x1f5718,_0x28a623))continue;const _0x3db7f4=_0x1f5718['getFirstRange']();if(_0x1f5718['subType']==_0x100995){if(_0x3db7f4['containsRange'](_0x237399,!0x0))return null;_0x3fa907=_0x3fa907['isBefore'](_0x3db7f4['start'])?_0x3fa907:_0x3db7f4['start'],_0x302510=_0x302510['isAfter'](_0x3db7f4['end'])?_0x302510:_0x3db7f4['end'],_0x2c7095?_0x3db7f4['start']['isBefore'](_0x2c7095['getFirstRange']()['start'])?(_0x2c7095['removeMarkers'](),_0x2c7095=_0x1f5718):_0x1f5718['removeMarkers']():_0x2c7095=_0x1f5718;}else{const _0x2e08bf=_0x237399['getIntersection'](_0x3db7f4);this['_cutOutSuggestionMarker'](_0x1f5718,_0x2e08bf);}}const _0x17f709=this['editor']['plugins']['get']('Users')['me'],_0x5cecaa=_0x1d192f(),_0x5e7914=_0x17f709['id'];if(_0x2c7095)return this['_setSuggestionRange'](_0x2c7095,this['_model']['createRange'](_0x3fa907,_0x302510)),_0x2c7095;{const _0x164602=this['_setSuggestionData']({'id':_0x5cecaa,'type':'formatBlock:'+_0x100995,'data':_0x3e3ca6,'createdAt':new Date(),'authorId':_0x5e7914,'attributes':_0x28a623});return this['_addSuggestionMarker']('formatBlock:'+_0x100995,_0x5cecaa,_0x5e7914,this['_model']['createRange'](_0x3fa907,_0x302510)),_0x164602;}}['markMultiRangeBlockFormat'](_0x50d8b1,_0xccd333,_0x2f05f0=[],_0x287673=null,_0x1116d4={}){_0xccd333['formatGroupId']||(_0xccd333['formatGroupId']=_0xccd333['commandName']);const _0x2859a2=_0x50d8b1[0x0];_0xccd333['multipleBlocks']=_0x2859a2['is']('range'),_0x287673=_0x287673||Jt(_0xccd333);const _0x50bd86=_0x2f05f0['map'](_0x387c47=>zt(_0x387c47,this['_model'])),_0x58bd4d=_0x2859a2['is']('range')?_0x50d8b1:_0x50d8b1['map'](_0x9e268=>zt(_0x9e268,this['_model']));if('never'===this['_trackFormatChanges']){const _0x31a9a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x287673,'accept');return this['forceDefaultExecution'](()=>_0x31a9a9(_0x58bd4d,_0xccd333,_0x1116d4)),null;}_0x50bd86['push'](..._0x58bd4d);let _0x560656=!0x0;for(const _0x2fb838 of _0x50bd86)if(!this['_rangeIsInLocalUserInsertion'](_0x2fb838)){_0x560656=!0x1;break;}if(_0x560656&&'always'!==this['_trackFormatChanges']){const _0xf2dd33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x287673,'accept');return this['forceDefaultExecution'](()=>_0xf2dd33(_0x58bd4d,_0xccd333,_0x1116d4)),null;}const _0x4e8df4=this['editor']['plugins']['get']('Users')['me'];for(const _0x4095c1 of this['getSuggestions']()){if(_0x4095c1['author']['id']!=_0x4e8df4['id'])continue;if('formatBlock'!=_0x4095c1['type']||_0x4095c1['data']['formatGroupId']!=_0xccd333['formatGroupId'])continue;if(!Qt(_0x4095c1,_0x1116d4))continue;const _0x538c89=_0x4095c1['subType']==_0x287673;for(let _0x476175=0x0;_0x476175<_0x58bd4d['length'];_0x476175++){const _0x12f417=_0x58bd4d[_0x476175];for(const _0x547134 of _0x4095c1['getMarkers']()){const _0x517d29=_0x547134['getRange']();if(_0x12f417['isEqual'](_0x517d29)){_0x538c89?(_0x58bd4d['splice'](_0x476175,0x1),_0x476175--):_0x4095c1['removeMarker'](_0x547134['name']);break;}}}}if(0x0==_0x58bd4d['length'])return null;const _0x2e456a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x287673,'join');for(const _0x1aa083 of this['getSuggestions']())if(_0x1aa083['author']['id']==_0x4e8df4['id']&&'formatBlock'==_0x1aa083['type']&&_0x1aa083['data']['formatGroupId']==_0xccd333['formatGroupId']&&_0x1aa083['subType']==_0x287673&&Qt(_0x1aa083,_0x1116d4)&&(_0x2e456a(_0x1aa083['getRanges'](),_0x58bd4d)||_0x2e456a(_0x58bd4d,_0x1aa083['getRanges']()))){for(const _0x57c771 of _0x58bd4d)_0x1aa083['addRange'](_0x57c771);return _0x1aa083;}const _0x54a64a=_0x1d192f(),_0x20aaa8=_0x4e8df4['id'],_0x20b4d8='formatBlock:'+_0x287673,_0x142612=this['_setSuggestionData']({'id':_0x54a64a,'type':_0x20b4d8,'data':_0xccd333,'createdAt':new Date(),'authorId':_0x20aaa8,'attributes':_0x1116d4});for(const _0x58a43f of _0x58bd4d)this['_addSuggestionMarker'](_0x20b4d8,_0x54a64a,_0x20aaa8,_0x58a43f,u['getMultiRangeId']());return _0x142612;}['markDeletion'](_0x225384,_0x282e4b=null,_0xb8e6bf={}){if(_0x225384['isCollapsed'])return null;const _0x37fb16=this['editor']['plugins']['get']('Users')['me'],_0x1ec4fe=new _0x3e3cd3(_0x225384['start'],_0x225384['end']);for(const {suggestion:_0x3f987d,meta:_0x4eec89}of this['_findSuggestions'](_0x1ec4fe,'insertion'))if(_0x4eec89['isOwn']&&!_0x4eec89['isNextTo']){if(_0x3f987d['isMultiRange']){const _0x594442=_0x3f987d['getRanges']()['filter'](_0x3a236e=>'$graveyard'!=_0x3a236e['root']['rootName']);_0x594442['every'](_0x39bde7=>_0x1ec4fe['containsRange'](_0x39bde7,!0x0))&&_0x3f987d['discard']();if(_0x594442['some'](_0x22c877=>_0x22c877['containsRange'](_0x1ec4fe,!0x0))){const _0x6d2ac4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x282e4b,'accept');return this['forceDefaultExecution'](()=>_0x6d2ac4([_0x1ec4fe],null,_0xb8e6bf)),null;}}else{const _0x45043d=_0x1ec4fe['getIntersection'](_0x3f987d['getFirstRange']());null!==_0x45043d&&_0x3f987d['_onDiscard']([_0x45043d],null,_0xb8e6bf);}}if(_0x1ec4fe['detach'](),_0x1ec4fe['isCollapsed']||'$graveyard'==_0x1ec4fe['root']['rootName'])return null;let _0x55007d=null,_0x1b9bda=_0x1ec4fe['start'],_0x11a5fc=_0x1ec4fe['end'];const _0x4d6e0c=this['_findSuggestions'](_0x1ec4fe,'deletion');for(const {suggestion:_0x4bfeae,meta:_0x223a90}of _0x4d6e0c){const _0x19288c=this['_model']['createRange'](_0x1b9bda,_0x11a5fc);if(_0x223a90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x223a90['containsRangeInObject']&&!_0x223a90['isInsideObject'])){if(_0x4bfeae['isMultiRange']){if(!Qt(_0x4bfeae,_0xb8e6bf))continue;let _0x250f28=!0x0;for(const _0x3ca856 of _0x4bfeae['getRanges']()){if(_0x3ca856['containsRange'](_0x19288c,!0x0))return _0x4bfeae;_0x19288c['containsRange'](_0x3ca856)||(_0x250f28=!0x1);}_0x250f28&&_0x4bfeae['discard']();}else{const _0x3c2757=_0x4bfeae['getFirstRange']();if(_0x3c2757['containsRange'](_0x19288c,!0x0))return _0x4bfeae;if(!Qt(_0x4bfeae,_0xb8e6bf)){_0x19288c['containsRange'](_0x3c2757)?_0x4bfeae['removeMarkers']():_0x3c2757['containsPosition'](_0x1b9bda)?_0x1b9bda=_0x3c2757['end']:_0x3c2757['containsPosition'](_0x11a5fc)&&(_0x11a5fc=_0x3c2757['start']);continue;}_0x1b9bda=_0x1b9bda['isBefore'](_0x3c2757['start'])?_0x1b9bda:_0x3c2757['start'],_0x11a5fc=_0x11a5fc['isAfter'](_0x3c2757['end'])?_0x11a5fc:_0x3c2757['end'],_0xb8e6bf=Object['assign']({},_0x4bfeae['attributes']),_0x55007d?_0x3c2757['start']['isBefore'](_0x55007d['getFirstRange']()['start'])?(_0x55007d['removeMarkers'](),_0x55007d=_0x4bfeae):_0x4bfeae['removeMarkers']():_0x55007d=_0x4bfeae;}}}if(_0x55007d)return this['_setSuggestionRange'](_0x55007d,this['_model']['createRange'](_0x1b9bda,_0x11a5fc)),_0x55007d;{const _0x54f838=_0x1d192f(),_0x2165c0=this['_model']['createRange'](_0x1b9bda,_0x11a5fc),_0x2e3bde=_0x37fb16['id'],_0x450010=_0x282e4b?'deletion:'+_0x282e4b:'deletion',_0x276b0a=this['_setSuggestionData']({'id':_0x54f838,'type':_0x450010,'createdAt':new Date(),'authorId':_0x2e3bde,'attributes':_0xb8e6bf});return this['_addSuggestionMarker'](_0x450010,_0x54f838,_0x2e3bde,_0x2165c0),_0x276b0a;}}['markMultiRangeDeletion'](_0x23df1b,_0x433271='multi',_0x2e3beb={}){const _0x52f3b5=this['editor']['plugins']['get']('Users')['me'],_0x58b588=_0x23df1b['map'](_0x24f35d=>new _0x3e3cd3(_0x24f35d['start'],_0x24f35d['end'])),_0x114dbc=new Set();for(const {suggestion:_0x277a79,meta:_0x10e3a8}of this['_findSuggestions'](_0x58b588,'insertion'))_0x10e3a8['isOwn']&&!_0x10e3a8['isNextTo']&&_0x114dbc['add'](_0x277a79);for(const _0x77a01b of _0x114dbc)if(_0x77a01b['isMultiRange']){const _0x253cca=_0x77a01b['getRanges']();(!_0x77a01b['attributes']||!_0x77a01b['attributes']['skipNestingCheck'])&&(_0x253cca['every'](_0x3a43ca=>_0x58b588['some'](_0x526176=>_0x526176['containsRange'](_0x3a43ca,!0x0)))&&_0x77a01b['discard']());if(_0x58b588['every'](_0x33490e=>_0x253cca['some'](_0x49d6f=>_0x49d6f['containsRange'](_0x33490e,!0x0)))){const _0x534200=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x433271,'accept');return this['forceDefaultExecution'](()=>_0x534200(_0x23df1b,null,_0x2e3beb)),null;}}else{const _0xa28582=_0x77a01b['getFirstRange']();_0x58b588['some'](_0xdaef6d=>_0xdaef6d['containsRange'](_0xa28582,!0x0))&&_0x77a01b['discard']();if(_0x58b588['every'](_0x5c177d=>_0xa28582['containsRange'](_0x5c177d,!0x0))){const _0x1ebfe2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x433271,'accept');return this['forceDefaultExecution'](()=>_0x1ebfe2(_0x58b588,null,_0x2e3beb)),null;}}const _0x33979f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x433271,'join');let _0x1cfdd6=null;for(const _0x3e5a4a of this['getSuggestions']())if(_0x3e5a4a['author']['id']==_0x52f3b5['id']&&_0x3e5a4a['isInContent']&&'deletion'==_0x3e5a4a['type']&&_0x3e5a4a['subType']==_0x433271&&Qt(_0x3e5a4a,_0x2e3beb)&&(_0x33979f(_0x3e5a4a['getRanges'](),_0x58b588)||_0x33979f(_0x58b588,_0x3e5a4a['getRanges']()))){if(_0x1cfdd6){if(_0x3e5a4a['commentThread']&&_0x3e5a4a['commentThread']['length'])continue;for(const _0x56726d of _0x3e5a4a['getRanges']())_0x1cfdd6['isIntersectingWithRange'](_0x56726d)||_0x1cfdd6['addRange'](_0x56726d);_0x3e5a4a['removeMarkers']();}else{_0x1cfdd6=_0x3e5a4a;for(const _0x3e4122 of _0x58b588)_0x3e5a4a['isIntersectingWithRange'](_0x3e4122)||_0x3e5a4a['addRange'](_0x3e4122);}}if(_0x1cfdd6)return _0x1cfdd6;_0x114dbc['clear']();for(const {suggestion:_0x721e88,meta:_0x5de45c}of this['_findSuggestions'](_0x58b588,'deletion'))_0x5de45c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5de45c['containsRangeInObject']&&!_0x5de45c['isInsideObject'])&&Qt(_0x721e88,_0x2e3beb)&&_0x114dbc['add'](_0x721e88);for(const _0x2f3a12 of _0x114dbc){const _0x16b175=_0x2f3a12['getRanges']();if(!_0x2e3beb||!_0x2e3beb['skipNestingCheck']){if(_0x58b588['every'](_0x27c07a=>_0x16b175['some'](_0x44efcb=>_0x44efcb['containsRange'](_0x27c07a,!0x0))))return _0x2f3a12;}(!_0x2f3a12['attributes']||!_0x2f3a12['attributes']['skipNestingCheck'])&&(_0x16b175['every'](_0x436974=>_0x58b588['some'](_0xaf386b=>_0xaf386b['containsRange'](_0x436974,!0x0)))&&_0x2f3a12['discard']());}const _0x3de460=_0x1d192f(),_0x184b90=_0x52f3b5['id'],_0x354783='deletion:'+_0x433271,_0x4fc3c3=this['_setSuggestionData']({'id':_0x3de460,'type':_0x354783,'createdAt':new Date(),'authorId':_0x184b90,'attributes':_0x2e3beb});for(const _0x2ce68e of _0x58b588)_0x2ce68e['detach'](),_0x2ce68e['isCollapsed']||'$graveyard'==_0x2ce68e['root']['rootName']||this['_addSuggestionMarker'](_0x354783,_0x3de460,_0x184b90,_0x2ce68e,u['getMultiRangeId']());return _0x4fc3c3;}['markAttributeChange'](_0xc88a7c,_0x49d29f,_0xfb5052,_0xaee93e,_0x2874f1){if(_0xc88a7c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x490fc8=this['editor']['plugins']['get']('Users')['me']['id'],_0x58684e=Array['from'](this['_suggestions']['values']())['filter'](_0xd1ddf7=>'attribute'==_0xd1ddf7['type']&&_0xd1ddf7['data']['key']==_0x49d29f&&_0xd1ddf7['isIntersectingWithRange'](_0xc88a7c));if('default'===this['_trackFormatChanges']){const _0x413595=this['_findSuggestions'](_0xc88a7c,'insertion')['filter'](({meta:_0xf439f3})=>_0xf439f3['isOwn']&&!_0xf439f3['isInsideObject']&&!_0xf439f3['isNextTo'])['map'](({suggestion:_0x5038a0})=>_0x5038a0);_0x58684e['unshift'](..._0x413595);}const _0x118da1=new Map([[_0xc88a7c,_0xfb5052]]);for(const _0x16971a of _0x58684e){const _0x21aa5c='attribute'==_0x16971a['type']?_0x16971a['data']['oldValue']:void 0x0,_0x34768d=_0x16971a['getFirstRange'](),_0x3710fd=Array['from'](_0x118da1['keys']())['find'](_0x928058=>_0x928058['isIntersecting'](_0x34768d));if(!_0x3710fd)continue;const _0x4199bc=_0x3710fd['getDifference'](_0x34768d);this['_isBlockAttribute'](_0x49d29f)&&'insertion'==_0x16971a['type']&&0x0!=_0x4199bc['length']||(_0x118da1['delete'](_0x3710fd),_0x4199bc['forEach'](_0x4876a4=>{_0x118da1['set'](_0x4876a4,_0xfb5052);}),'insertion'!=_0x16971a['type']&&_0x21aa5c!=_0xaee93e&&_0x118da1['set'](_0x3710fd['getIntersection'](_0x34768d),_0x21aa5c));}const _0x1d06e5=[];for(const [_0x390bd3,_0x35daea]of _0x118da1){const _0x28c35d=_0x1d192f(),_0x5e27b8={'key':_0x49d29f,'oldValue':_0x35daea,'newValue':_0xaee93e};_0x49d29f['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':_0x49d29f});const _0x54f149=('attribute:'+(_0x49d29f+'|'+Jt({'newValue':_0xaee93e})))['substring'](0x0,0x3c),_0x59dd59=this['_setSuggestionData']({'id':_0x28c35d,'type':_0x54f149,'data':_0x5e27b8,'createdAt':new Date(),'authorId':_0x490fc8,'attributes':_0x2874f1});_0x1d06e5['push'](_0x59dd59),this['_addSuggestionMarker'](_0x54f149,_0x28c35d,_0x490fc8,_0x390bd3);}return _0x1d06e5;}['enableDefaultAttributesIntegration'](_0x3ac7aa){this['enableCommand'](_0x3ac7aa,(_0x178330,..._0xee8926)=>{this['_recordAttributeChanges'](()=>{_0x178330(..._0xee8926);});});}['registerBlockAttribute'](_0x1deb5d){this['_blockAttributeKeys']['add'](_0x1deb5d);}['registerInlineAttribute'](_0x24dbfa){this['_inlineAttributeKeys']['add'](_0x24dbfa);}['_getAttributeKey'](_0x4e2719){return'attribute'==_0x4e2719['type']?_0x4e2719['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x45415f,_0x4cd28b){const _0xf4ba23=_0x45415f['getFirstMarker']();this['_model']['change'](_0x548b9f=>{_0x548b9f['updateMarker'](_0xf4ba23,{'range':_0x4cd28b});});}['_addThreadToSuggestion'](_0x23e145){const _0x5d0a5f=_0x23e145['id'],_0x29b263=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5d0a5f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x29b263,'threadId':_0x5d0a5f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51fb8e=this['_commentsRepository']['getCommentThread'](_0x5d0a5f);_0x51fb8e['unbind']('isRemovable'),_0x51fb8e['isRemovable']=!0x1,_0x23e145['commentThread']=_0x51fb8e;}['_checkSuggestionCorrectness'](_0x44936b,_0x1b60c0,_0x1e1790,_0x23896f){if(_0x44936b['type']!=_0x1b60c0||_0x44936b['subType']!=_0x1e1790||_0x44936b['creator']['id']!=_0x23896f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d05c0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c4b7a,_0x42bc54){const _0x29d5a2=_0x5c4b7a['getFirstRange']();if(_0x42bc54['isEqual'](_0x29d5a2))_0x5c4b7a['removeMarkers']();else{if(_0x29d5a2['containsRange'](_0x42bc54)){const _0x5da16d=this['_model']['createPositionAt'](_0x42bc54['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c4b7a,this['_model']['createRange'](_0x29d5a2['start'],_0x5da16d));const _0x54cf70=_0x1d192f(),_0x534847=_0x5c4b7a['creator']['id'],_0x4e6e0f=_0x5c4b7a['type']+':'+_0x5c4b7a['subType'];this['_setSuggestionData']({'id':_0x54cf70,'type':_0x4e6e0f,'createdAt':new Date(),'authorId':_0x534847,'data':_0x5c4b7a['data'],'attributes':_0x5c4b7a['attributes']});const _0x2a0dd8=this['_model']['createPositionAt'](_0x42bc54['end']['parent'],'after'),_0x197672=this['_model']['createRange'](_0x2a0dd8,_0x29d5a2['end']);this['_addSuggestionMarker'](_0x4e6e0f,_0x54cf70,_0x534847,_0x197672);}else{if(_0x29d5a2['containsPosition'](_0x42bc54['start'])){const _0x542c42=this['_model']['createPositionAt'](_0x42bc54['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c4b7a,this['_model']['createRange'](_0x29d5a2['start'],_0x542c42));}else{const _0x54acaa=this['_model']['createPositionAt'](_0x42bc54['end']['parent'],'after');this['_setSuggestionRange'](_0x5c4b7a,this['_model']['createRange'](_0x54acaa,_0x29d5a2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1b84cb){for(const {suggestion:_0x4c1009,meta:_0x33e1cd}of this['_findSuggestions'](_0x1b84cb,'insertion')){if(!_0x33e1cd['isOwn'])continue;const _0x1a423e=_0x4c1009['getRanges']();for(const _0x47f6ef of _0x1a423e)if(!_0x1b84cb['getDifference'](_0x47f6ef)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46a9f4){const _0x556bc9=this['editor']['plugins']['get']('Users')['getUser'](_0x46a9f4);if(!_0x556bc9)throw new _0x1d05c0('track-changes-user-not-found',this);return _0x556bc9;}['_getExternalAuthor'](_0x62364d){const _0x3b15c1=this['editor']['plugins']['get']('Users'),_0x47eb0f=_0x3943cc('external:'+_0x62364d),_0x1d0e6d=_0x3b15c1['getUser'](_0x47eb0f);return _0x1d0e6d||_0x3b15c1['addUser']({'id':_0x47eb0f,'name':_0x62364d});}['_createSuggestion'](_0x583d06,_0x21ffe8,_0x2a0515,_0x395f17,_0x1ada8b){const _0x2c3606=this['_getAuthorFromId'](_0x395f17),_0x3004c4=this['_suggestionFactory']['buildSuggestion'](_0x583d06,_0x21ffe8,_0x2a0515,_0x2c3606,_0x1ada8b,_0x4e2201=>{this['_updateSuggestionData'](_0x2a0515,{'attributes':_0x4e2201});const _0x4df2dd=this['getSuggestion'](_0x2a0515);this['_joinWithAdjacentSuggestions'](new Set([_0x4df2dd])),this['_refreshSuggestionsChain'](new Set([_0x4df2dd]));});return this['listenTo'](_0x3004c4,'accept',()=>{this['_updateSuggestionData'](_0x2a0515,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3004c4,'discard',()=>{this['_updateSuggestionData'](_0x2a0515,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a0515,_0x3004c4),this['_suggestionState']['set'](_0x3004c4,'notReady'),_0x3004c4;}['_splitMarkerName'](_0x2cfd2b){const _0x373a45=_0x2cfd2b['split'](':');return{'group':_0x373a45[0x0],'type':_0x373a45[0x1],'subType':_0x373a45['length']>=0x5?_0x373a45[0x2]:null,'id':_0x373a45['length']<0x5?_0x373a45[0x2]:_0x373a45[0x3],'authorId':_0x373a45['length']<0x5?_0x373a45[0x3]:_0x373a45[0x4],'markerCount':0x6==_0x373a45['length']?_0x373a45[0x5]:null};}['_breakSuggestionMarker'](_0x481d3e,_0x54900f,_0x183d9b){const _0x2e262b=_0x481d3e['getFirstRange'](),_0x1bc8c7=_0x2e262b['start'],_0x12f739=_0x2e262b['end'];this['_setSuggestionRange'](_0x481d3e,this['_model']['createRange'](_0x1bc8c7,_0x54900f));const _0xb66e3a=_0x1d192f(),_0x2dd483=_0x481d3e['creator']['id'],_0x42044c=_0x481d3e['type']+(_0x481d3e['subType']?':'+_0x481d3e['subType']:'');this['_setSuggestionData']({'id':_0xb66e3a,'type':_0x42044c,'createdAt':new Date(),'authorId':_0x2dd483,'originalSuggestionId':_0x481d3e['id'],'attributes':_0x481d3e['attributes'],'data':_0x481d3e['data']});const _0x3c8a12=this['_getAttributeKey'](_0x481d3e);('formatBlock'==_0x481d3e['type']||_0x3c8a12&&this['_isBlockAttribute'](_0x3c8a12))&&(_0x183d9b=this['_model']['createPositionBefore'](_0x183d9b['parent'])),this['_addSuggestionMarker'](_0x42044c,_0xb66e3a,_0x2dd483,this['_model']['createRange'](_0x183d9b,_0x12f739));}['_findSuggestions'](_0x1a3c4d,_0x1074c7=null){const _0x239b79=[],_0x5a6400=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1a3c4d)||(_0x1a3c4d=[_0x1a3c4d]);for(const _0x3a0384 of this['getSuggestions']()){if(!_0x3a0384['isInContent'])continue;if(_0x1074c7&&_0x3a0384['type']!=_0x1074c7)continue;let _0x40e080=!0x1;for(const _0x132951 of _0x3a0384['getRanges']()){for(const _0x392117 of _0x1a3c4d){const _0x3f7da0=_0x392117['start']['isEqual'](_0x132951['end'])||_0x392117['end']['isEqual'](_0x132951['start']);if(_0x3f7da0||_0x392117['getIntersection'](_0x132951)){const _0x1001d5=_0x392117['containsRange'](_0x132951)&&Gt(this['_model']['schema'],_0x132951['start'],_0x392117),_0x226d92=_0x132951['containsRange'](_0x392117)&&Gt(this['_model']['schema'],_0x392117['start'],_0x132951);_0x239b79['push']({'suggestion':_0x3a0384,'meta':{'isOwn':_0x5a6400==_0x3a0384['author'],'isNextTo':_0x3f7da0,'isInsideObject':_0x1001d5,'containsRangeInObject':_0x226d92}}),_0x40e080=!0x0;break;}}if(_0x40e080)break;}}return _0x239b79;}['_addSuggestionMarker'](_0x4d3b3a,_0x73f106,_0x2afa29,_0x438fcc,_0x3823c7){this['_model']['change'](_0x3d7424=>{let _0x5ce31c='suggestion:'+_0x4d3b3a+':'+_0x73f106+':'+_0x2afa29;_0x3823c7&&(_0x5ce31c=_0x5ce31c+':'+_0x3823c7),_0x3d7424['addMarker'](_0x5ce31c,{'range':_0x438fcc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x21685a){const _0x181970=_0x21685a['previous'],_0x193874=_0x21685a['next'];_0x21685a['previous']=null,_0x21685a['next']=null,null!=_0x181970&&_0x181970['next']==_0x21685a&&(_0x181970['next']=_0x193874),null!=_0x193874&&_0x193874['previous']==_0x21685a&&(_0x193874['previous']=_0x181970),'ready'==this['_suggestionState']['get'](_0x21685a)&&(this['_suggestionState']['set'](_0x21685a,'removed'),this['fire']('suggestionUnloaded',_0x21685a,_0x181970,_0x193874));}['_setSuggestionData'](_0x24fc9b){const _0x1e0804=_0x24fc9b['id'],_0xfbb3b9=this['addSuggestionData'](_0x24fc9b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43f5f7=this['editor']['plugins']['get']('PendingActions'),_0x435d3e=_0xfbb3b9['hasComments'],_0xd33e05=_0xfbb3b9['subType']?_0xfbb3b9['type']+':'+_0xfbb3b9['subType']:_0xfbb3b9['type'],_0x5e5989=this['editor']['locale'],_0x13a49a=_0x43f5f7['add'](o(_0x5e5989,'PENDING_ACTION_SUGGESTION')),_0x4c8365={'id':_0x1e0804,'type':_0xd33e05,'hasComments':_0x435d3e,'data':_0x24fc9b['data']||null,'originalSuggestionId':_0x24fc9b['originalSuggestionId']||null,'attributes':_0xfbb3b9['attributes']};this['_adapter']['addSuggestion'](_0x4c8365)['then'](_0x4244e3=>{_0xfbb3b9['_saved']=!0x0,_0x43f5f7['remove'](_0x13a49a),_0x4244e3&&_0x4244e3['createdAt']&&(this['_suggestions']['get'](_0x1e0804)['createdAt']=_0x4244e3['createdAt']);})['catch'](_0x9c14e5=>{throw _0xbf59d0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xfbb3b9['discard']();}),_0xfbb3b9['stopListening'](),this['_suggestions']['delete'](_0xfbb3b9['id']),this['_suggestionState']['delete'](_0xfbb3b9),_0x9c14e5;});}return _0xfbb3b9;}['_isBlockAttribute'](_0x38e87f){return this['_blockAttributeKeys']['has'](_0x38e87f);}['_updateSuggestionData'](_0x16d910,_0x55cac9){const _0x12b7d5=this['editor']['plugins']['get']('PendingActions'),_0x339af6=this['getSuggestion'](_0x16d910);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x339af6['_saved']){const _0x15b32a=_0x12b7d5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x16d910,_0x55cac9)['then'](()=>{_0x12b7d5['remove'](_0x15b32a);});}else _0x339af6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x16d910,_0x55cac9);});}}['_getSuggestionData'](_0x4b88f4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d05c0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4b88f4);}['_handleNewSuggestionMarker'](_0x16aba3){const {id:_0xaf120b,type:_0x44cd6,subType:_0xbeec23,authorId:_0x54e869}=this['_splitMarkerName'](_0x16aba3),_0x48c6cf=this['_suggestions']['get'](_0xaf120b)||this['_createSuggestion'](_0x44cd6,_0xbeec23,_0xaf120b,_0x54e869,{});switch(this['_checkSuggestionCorrectness'](_0x48c6cf,_0x44cd6,_0xbeec23,_0x54e869),this['_suggestionState']['get'](_0x48c6cf)){case'notReady':this['_getSuggestionData'](_0xaf120b)['then'](_0x1e4afd=>{let _0x4240f3=Promise['resolve']();_0x1e4afd['hasComments']&&(_0x4240f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xaf120b})),_0x4240f3['then'](()=>{this['addSuggestionData'](_0x1e4afd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x48c6cf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xaf120b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x48c6cf,'ready'),this['fire']('suggestionLoaded',_0x48c6cf);break;case'ready':this['fire']('suggestionChanged',_0x48c6cf);}return _0x48c6cf['addMarkerName'](_0x16aba3),_0x48c6cf;}['_refreshSuggestionsChain'](_0x4a63a5){const _0x2d844e=Array['from'](_0x4a63a5),_0x1738f0=_0x2d844e['filter'](_0x5e3743=>'attribute'==_0x5e3743['type']);this['_refreshAttributeSuggestionsChain'](_0x1738f0);const _0x2cf300=_0x2d844e['filter'](_0x2a46d2=>!_0x2a46d2['isMultiRange']&&'attribute'!=_0x2a46d2['type']),_0xbcde47=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31c512=>!_0x31c512['isMultiRange']&&'attribute'!=_0x31c512['type']),_0x3df7c4=_0xbcde47['filter'](_0x6e54b7=>!_0x4a63a5['has'](_0x6e54b7)),_0x51db29=new Map(_0xbcde47['map'](_0xa260c0=>[_0xa260c0,this['_suggestionFactory']['getSuggestionCallback'](_0xa260c0['type'],_0xa260c0['subType'],'chain')])),_0x385271=new Map(_0xbcde47['map'](_0x3c1ad6=>[_0x3c1ad6,_0x3c1ad6['getFirstRange']()])),_0x307623=new Set(),_0x4f547a=new Set();for(let _0x564b60=0x0;_0x564b60<_0x2cf300['length'];_0x564b60++)_0x3d2f3a(_0x2cf300[_0x564b60],_0x2cf300,_0x564b60+0x1);for(let _0x50c577=0x0;_0x50c577<_0x2cf300['length'];_0x50c577++)_0x3d2f3a(_0x2cf300[_0x50c577],_0x3df7c4,0x0);const _0x1f9325=new Set();for(let _0x4b2bab=0x0;_0x4b2bab<_0x2cf300['length'];_0x4b2bab++){const _0x30fdd9=_0x2cf300[_0x4b2bab];!_0x4f547a['has'](_0x30fdd9)&&_0x30fdd9['previous']&&(_0x1f9325['add'](_0x30fdd9['previous']),_0x30fdd9['previous']['next']===_0x30fdd9&&(_0x30fdd9['previous']['next']=null),_0x30fdd9['previous']=null),!_0x307623['has'](_0x30fdd9)&&_0x30fdd9['next']&&(_0x1f9325['add'](_0x30fdd9['next']),_0x30fdd9['next']['previous']===_0x30fdd9&&(_0x30fdd9['next']['previous']=null),_0x30fdd9['next']=null);}function _0x3d2f3a(_0x4a7db7,_0x41ec47,_0x30e732){for(let _0x5b7070=_0x30e732;_0x5b7070<_0x41ec47['length'];_0x5b7070++){const _0x4e8af8=_0xd009c9(_0x4a7db7,_0x41ec47[_0x5b7070]);_0x4e8af8&&(_0x4e8af8[0x0]['next']=_0x4e8af8[0x1],_0x4e8af8[0x1]['previous']=_0x4e8af8[0x0],_0x307623['add'](_0x4e8af8[0x0]),_0x4f547a['add'](_0x4e8af8[0x1]));}}function _0xd009c9(_0x403abe,_0x2f5ea2){if(_0x403abe['author']['id']!==_0x2f5ea2['author']['id'])return null;const _0x146038=_0x51db29['get'](_0x403abe)(_0x403abe,_0x2f5ea2,_0x385271['get'](_0x403abe),_0x385271['get'](_0x2f5ea2));if(!_0x146038)return null;return _0x51db29['get'](_0x2f5ea2)(_0x403abe,_0x2f5ea2,_0x385271['get'](_0x403abe),_0x385271['get'](_0x2f5ea2))?_0x146038[0x1]['commentThread']&&_0x146038[0x1]['commentThread']['length']?null:_0x146038:null;}_0x1f9325['size']&&this['_refreshSuggestionsChain'](_0x1f9325);}['_refreshAttributeSuggestionsChain'](_0x130351){if(0x0==_0x130351['length'])return;const _0x5224a3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13e9ad=>'attribute'==_0x13e9ad['type']&&_0x13e9ad['_isDataLoaded']),_0x57cb80=[],_0x4db477=new Map();for(const _0x53659e of _0x5224a3){const _0x1d12e6=_0x3943cc(_0x53659e['attributes']);_0x4db477['has'](_0x1d12e6)||(_0x4db477['set'](_0x1d12e6,_0x57cb80['length']),_0x57cb80['push']([]));const _0x1f7d3d=_0x4db477['get'](_0x1d12e6);_0x57cb80[_0x1f7d3d]['push'](_0x53659e);}!(function(){_0x57cb80['sort']((_0x31a844,_0x4e024c)=>{const _0x48361e=_0x31a844[0x0]['createdAt'],_0x2a5335=_0x4e024c[0x0]['createdAt'];return _0x48361e==_0x2a5335?_0x31a844[0x0]['attributes']['groupId']<_0x4e024c[0x0]['attributes']['groupId']?-0x1:0x1:_0x48361e<_0x2a5335?-0x1:0x1;});for(const _0x38205f of _0x57cb80)_0x38205f['sort']((_0x274201,_0x8c0c3e)=>_0x274201['id']<_0x8c0c3e['id']?-0x1:0x1);}());for(let _0x366d4a=0x0;_0x366d4a<_0x57cb80['length'];_0x366d4a++){if(0x0==_0x57cb80[_0x366d4a]['length'])continue;const _0x2e6cc6=[];for(let _0xc653e2=_0x366d4a+0x1;_0xc653e2<_0x57cb80['length'];_0xc653e2++)0x0!=_0x57cb80[_0xc653e2]['length']&&_0x340b90(_0x57cb80[_0x366d4a],_0x57cb80[_0xc653e2])&&_0x2e6cc6['push'](_0xc653e2);for(const _0x37c0f7 of _0x2e6cc6)_0x57cb80[_0x366d4a]=_0x57cb80[_0x366d4a]['concat'](_0x57cb80[_0x37c0f7]),_0x57cb80[_0x37c0f7]=[];}for(const _0x1d7002 of _0x57cb80)for(let _0x2fd915=0x0;_0x2fd915<_0x1d7002['length'];_0x2fd915++){const _0x3ab02b=_0x1d7002[_0x2fd915+0x1]||null;_0x1d7002[_0x2fd915]['next']!==_0x3ab02b&&(_0x1d7002[_0x2fd915]['next']=_0x3ab02b);}for(const _0xde7a77 of _0x57cb80)for(let _0x2e4dec=0x0;_0x2e4dec<_0xde7a77['length'];_0x2e4dec++){const _0x466004=_0xde7a77[_0x2e4dec-0x1]||null;_0xde7a77[_0x2e4dec]['previous']!==_0x466004&&(_0xde7a77[_0x2e4dec]['previous']=_0x466004);}function _0x340b90(_0x281634,_0x366ea6){if(_0x281634[0x0]['attributes']['groupId']!==_0x366ea6[0x0]['attributes']['groupId']&&_0x281634[0x0]['author']!==_0x366ea6[0x0]['author'])return!0x1;if(!function(_0x5a0f32,_0x3611ea){if(!_0x5a0f32['hasComments']&&!_0x3611ea['hasComments'])return!0x0;if(_0x5a0f32['hasComments']&&_0x3611ea['hasComments'])return!0x1;if(_0x5a0f32['hasComments']&&_0x3611ea['createdAt']<_0x5a0f32['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3611ea['hasComments']&&_0x5a0f32['createdAt']<_0x3611ea['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x281634[0x0],_0x366ea6[0x0]))return!0x1;const _0xb99b78=Vt(_0x281634[0x0]['attributes'],'groupId'),_0x434526=Vt(_0x366ea6[0x0]['attributes'],'groupId');if(!_0x37c9c3(_0xb99b78,_0x434526))return!0x1;return!!_0x281634['every'](_0x2b9b02=>_0x366ea6['some'](_0x1e2131=>_0x2b9b02['getFirstRange']()['isEqual'](_0x1e2131['getFirstRange']())))&&_0x366ea6['every'](_0xe168d1=>_0x281634['some'](_0x3e64b1=>_0xe168d1['getFirstRange']()['isEqual'](_0x3e64b1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x249d1e){const _0x226c29=Array['from'](_0x249d1e),_0x559578=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39cae0=_0x559578['filter'](_0x2f133d=>!_0x249d1e['has'](_0x2f133d)),_0xfba9b2=new Map(_0x226c29['map'](_0x572ae1=>[_0x572ae1,this['_suggestionFactory']['getSuggestionCallback'](_0x572ae1['type'],_0x572ae1['subType'],'join')])),_0x109c0b=new Map(_0x559578['map'](_0x230008=>[_0x230008,_0x230008['getRanges']()]));for(let _0x277245=0x0;_0x277245<_0x226c29['length'];_0x277245++){if(_0x53e656(this,_0x226c29[_0x277245],_0x226c29,_0x277245+0x1))return!0x0;}for(let _0x56cc2a=0x0;_0x56cc2a<_0x226c29['length'];_0x56cc2a++){if(_0x53e656(this,_0x226c29[_0x56cc2a],_0x39cae0,0x0))return!0x0;}return!0x1;function _0x53e656(_0x5f4fa5,_0x10df52,_0x1f7f98,_0x25f433){for(let _0x4e261e=_0x25f433;_0x4e261e<_0x1f7f98['length'];_0x4e261e++){const _0x4a144f=_0x1f7f98[_0x4e261e];if(_0x4a144f['type']!==_0x10df52['type']||_0x4a144f['author']['id']!==_0x10df52['author']['id']||_0x4a144f['subType']!==_0x10df52['subType'])continue;if(!Wt(_0x10df52,_0x4a144f))continue;if('attribute'==_0x10df52['type']&&_0x10df52['data']['oldValue']!=_0x4a144f['data']['oldValue'])continue;if('attribute'==_0x10df52['type']&&_0x5f4fa5['_isBlockAttribute'](_0x10df52['data']['key']))continue;if('formatBlock'==_0x10df52['type']){const _0x29f2e4=_0x5f4fa5['editor']['model'],_0x2ba5e6=_0x10df52['getContainedElement']();if(_0x2ba5e6&&(_0x29f2e4['schema']['isObject'](_0x2ba5e6)||_0x29f2e4['schema']['isLimit'](_0x2ba5e6)))continue;}const _0x30b79b=_0xfba9b2['get'](_0x10df52),_0x33b3b9=_0x109c0b['get'](_0x10df52),_0x3ccfd5=_0x109c0b['get'](_0x4a144f),_0x3ebc7e=_0x10df52['commentThread']&&_0x10df52['commentThread']['length'],_0x555ee5=_0x4a144f['commentThread']&&_0x4a144f['commentThread']['length'];if(!_0x3ebc7e&&_0x30b79b(_0x3ccfd5,_0x33b3b9))return _0x5f4fa5['_joinSuggestions'](_0x4a144f,_0x10df52),_0x109c0b['delete'](_0x10df52),!0x0;if(!_0x555ee5&&_0x30b79b(_0x33b3b9,_0x3ccfd5))return _0x5f4fa5['_joinSuggestions'](_0x10df52,_0x4a144f),_0x109c0b['delete'](_0x4a144f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14b31e,_0x497f01){if(_0x14b31e['isMultiRange']){for(const _0xd35711 of _0x497f01['getRanges']())_0x14b31e['addRange'](_0xd35711);}else{const _0x503330=_0x497f01['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14b31e,this['_model']['createRange'](_0x14b31e['getFirstRange']()['start'],_0x503330));}_0x497f01['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4f258b,_0x304d81,_0x553f5a){const _0x3a4cf0=_0x4f258b['startsWith']('format')||_0x4f258b['startsWith']('attribute')?'FORMATTING':_0x4f258b['toUpperCase']();return o(this['editor']['locale'],_0x304d81+'_'+_0x3a4cf0+'_SUGGESTION_ANNOUNCEMENT',_0x553f5a);}['_initAriaMarkerChangeAnnouncements'](){const _0x166bd6=this['editor'];if(!_0x166bd6['ui'])return;const {ariaLiveAnnouncer:_0xc5f1d9}=_0x166bd6['ui'];_0x1942bc(this['_model'],({left:_0x5266db,entered:_0xed9ac8})=>{for(const _0x15d54f of _0x5266db){const {group:_0x214bf9,type:_0xb21dc1}=this['_splitMarkerName'](_0x15d54f['name']);if('suggestion'===_0x214bf9){_0xc5f1d9['announce'](this['_getMarkerAnnouncementText'](_0xb21dc1,'LEAVE'));break;}}for(const _0x52f1d8 of _0xed9ac8){const {group:_0x2abd5d,type:_0x329cd5}=this['_splitMarkerName'](_0x52f1d8['name']);if('suggestion'===_0x2abd5d){_0xc5f1d9['announce'](this['_getMarkerAnnouncementText'](_0x329cd5,'ENTER',_0x112b72(_0xfae0ed)));break;}}});}['_processAttributeChanges'](_0x47e1a8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37baa7=this['editor'],_0xaf0091=_0x37baa7['model']['document']['differ']['getChanges']();if(0x0==_0xaf0091['length'])return!0x1;const _0x39bb9b=[],_0x563c2f=_0xaf0091['filter'](_0x156bd9=>'attribute'==_0x156bd9['type']),_0x4be073=_0xaf0091['filter'](_0x1ce3b2=>'insert'==_0x1ce3b2['type']&&'$text'!=_0x1ce3b2['name']),_0x2f9ed7=_0xaf0091['filter'](_0x5db71a=>'remove'==_0x5db71a['type']&&'$text'!=_0x5db71a['name']);for(const _0x298bbc of _0x563c2f)_0x39bb9b['push']({'key':_0x298bbc['attributeKey'],'newValue':_0x298bbc['attributeNewValue'],'oldValue':_0x298bbc['attributeOldValue'],'range':qt(_0x298bbc['range'],_0x37baa7['model'])});for(const _0x3b1d0b of _0x4be073){const _0x1e805c=_0x2f9ed7['find'](_0x22b8d5=>_0x22b8d5['position']['isEqual'](_0x3b1d0b['position']));_0x1e805c&&_0x39bb9b['push']({'key':m,'newValue':_0x3b1d0b['name'],'oldValue':_0x1e805c['name'],'range':_0x37baa7['model']['createRangeOn'](_0x3b1d0b['position']['nodeAfter'])});}return 0x0!=_0x39bb9b['length']&&this['_reduceExistingSuggestions'](_0x47e1a8,_0x39bb9b);}['_processAttributeSuggestions'](_0x53a23e){let _0x416b0=!0x1;const _0xe159e4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1bb1f8=>_0x1bb1f8['data']['newRange']&&_0x1bb1f8['name']['startsWith']('suggestion:attribute:'));for(const _0x2fb5d7 of _0xe159e4){const {subType:_0x26b1ba,id:_0x597e8d}=this['_splitMarkerName'](_0x2fb5d7['name']),_0x8d97ad=_0x26b1ba['split']('|')[0x0];for(const _0x120836 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x120836['id']!=_0x597e8d&&'attribute'==_0x120836['type']&&_0x120836['data']&&_0x120836['data']['key']==_0x8d97ad&&_0x120836['getFirstRange']()['isIntersecting'](_0x2fb5d7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x120836,_0x2fb5d7['data']['newRange'],_0x53a23e),_0x416b0=!0x0);}return _0x416b0;}['_recordAttributeChanges'](_0x5701aa){this['_recordAttributeSuggestions']=!0x0,_0x5701aa();}['_isRegisteredAttribute'](_0x2eb49d){const _0x112cd1=this['_isBlockAttribute'](_0x2eb49d),_0x409c38=this['_inlineAttributeKeys']['has'](_0x2eb49d);return _0x112cd1||_0x409c38;}['_reduceExistingSuggestions'](_0x1c77ca,_0x526d16){if(0x0==_0x526d16['length'])return!0x1;let _0x4b3f48=!0x1;for(const _0x52c4f4 of _0x526d16){const _0x29be00=this['_findSuggestions'](_0x52c4f4['range'],'attribute')['filter'](_0x52fff0=>!_0x52fff0['meta']['isNextTo'])['map'](_0x29195c=>_0x29195c['suggestion']),_0x43573e=_0x3943cc({'newValue':_0x52c4f4['newValue']});_0x29be00['filter'](_0x16e8d4=>{const [_0x56451a,_0x380b18]=_0x16e8d4['subType']['split']('|');return _0x56451a==_0x52c4f4['key']&&_0x380b18!=_0x43573e;})['forEach'](_0x346a2f=>{this['_reduceSuggestionAttributeRange'](_0x346a2f,_0x52c4f4['range'],_0x1c77ca),_0x4b3f48=!0x0;});}return _0x4b3f48;}['_reduceSuggestionAttributeRange'](_0x9bd289,_0x8d8a85,_0x445453){const _0x52551a=_0x9bd289['getFirstRange']()['getDifference'](_0x8d8a85);0x0!==_0x52551a['length']?0x1!==_0x52551a['length']?this['_breakSuggestionMarker'](_0x9bd289,_0x8d8a85['start'],_0x8d8a85['end']):this['_setSuggestionRange'](_0x9bd289,_0x52551a[0x0]):_0x445453['removeMarker'](_0x9bd289['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3a890a){this['_editor']=_0x3a890a,this['_model']=_0x3a890a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3edcc8,_0x5e5ca4,_0x2307b4,_0x106d68,_0x522dc9,_0x262aa0){return new u(this['_model'],{'type':_0x3edcc8,'subType':_0x5e5ca4,'id':_0x2307b4,'author':_0x106d68,'creator':_0x106d68,'attributes':_0x522dc9,'onAttributesChange':_0x262aa0,'onAccept':(..._0x373bd0)=>this['getSuggestionCallback'](_0x3edcc8,_0x5e5ca4,'accept')(..._0x373bd0),'onDiscard':(..._0x2b75b2)=>this['getSuggestionCallback'](_0x3edcc8,_0x5e5ca4,'discard')(..._0x2b75b2)});}['registerCustomCallback'](_0x233740,_0x435433,_0x4eb33f,_0x2c8519){const _0x36c801=_0x233740+':'+_0x435433+':'+_0x4eb33f;this['_customCallbacks']['set'](_0x36c801,_0x2c8519);}['getSuggestionCallback'](_0x229223,_0x50fc1f,_0x5ce603){const _0x3cedce=_0x229223+':'+_0x50fc1f+':'+_0x5ce603;return this['_customCallbacks']['get'](_0x3cedce)||this['_defaultCallbacks']['get'](_0x229223+':'+_0x5ce603);}['_registerDefaultCallbacks'](){const _0xd81c4c=()=>!0x1,_0x42c554=_0x458874=>{_0x458874['sort']((_0xa2e4ba,_0x104cca)=>_0xa2e4ba['start']['isBefore'](_0x104cca['start'])?0x1:-0x1),this['_model']['change'](_0x576e4d=>{for(const _0x50809d of _0x458874){let _0x108669;_0x108669=_0x50809d['end']['isAtEnd']&&_0x50809d['end']['parent']==_0x50809d['start']['nodeAfter']?_0x576e4d['createSelection'](_0x50809d['start']['nodeAfter'],'on'):_0x576e4d['createSelection'](_0x50809d),this['_model']['deleteContent'](_0x108669,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a7e14=(_0x374dd5,_0x35921f)=>{_0x35921f&&this['_model']['change'](_0x3c08c4=>{const {commandName:_0xa5183a,commandParams:_0x2a466e=[]}=_0x35921f,_0x1fce01=_0x374dd5['map'](_0x515429=>(Ft(_0x515429)&&(_0x515429=this['_model']['createRange'](_0x515429['end'])),_0x515429))['filter'](_0x1f690f=>'$graveyard'!==_0x1f690f['root']['rootName']);if(_0x1fce01['length']<0x1)return;const _0x18b641=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x13800e=>_0x3e3cd3['fromRange'](_0x13800e));_0x3c08c4['setSelection'](_0x1fce01);for(const _0x125885 of this['_editor']['commands']['commands']())_0x125885['refresh']();_0x2a466e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xa5183a,..._0x2a466e);const _0x5ebf86=_0x18b641['filter'](_0x332a66=>'$graveyard'!=_0x332a66['root']['rootName']);_0x5ebf86['length']>0x0&&_0x3c08c4['setSelection'](_0x5ebf86);for(const _0x41bb2d of _0x18b641)_0x41bb2d['detach']();});},_0x12b5bf=(_0x813b35,_0x188c48)=>0x1==_0x813b35['length']&&0x1==_0x188c48['length']&&_0x813b35[0x0]['end']['isEqual'](_0x188c48[0x0]['start']),_0x11759b=(_0x3ce24b,_0xc30ed3,_0x2c5930,_0x345f5c)=>Kt(_0x3ce24b,_0xc30ed3,_0x2c5930,_0x345f5c)?[_0x3ce24b,_0xc30ed3]:Kt(_0xc30ed3,_0x3ce24b,_0x345f5c,_0x2c5930)?[_0xc30ed3,_0x3ce24b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd81c4c),this['_defaultCallbacks']['set']('insertion:discard',_0x42c554),this['_defaultCallbacks']['set']('insertion:join',_0x12b5bf),this['_defaultCallbacks']['set']('insertion:chain',_0x11759b),this['_defaultCallbacks']['set']('deletion:accept',_0x42c554),this['_defaultCallbacks']['set']('deletion:discard',_0xd81c4c),this['_defaultCallbacks']['set']('deletion:join',_0x12b5bf),this['_defaultCallbacks']['set']('deletion:chain',_0x11759b),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a7e14),this['_defaultCallbacks']['set']('formatInline:discard',_0xd81c4c),this['_defaultCallbacks']['set']('formatInline:join',_0x12b5bf),this['_defaultCallbacks']['set']('formatInline:chain',_0xd81c4c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a7e14),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd81c4c),this['_defaultCallbacks']['set']('formatBlock:join',_0x12b5bf),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd81c4c),this['_defaultCallbacks']['set']('attribute:accept',_0xd81c4c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2460cb,_0x1e1420)=>{if(!_0x1e1420)return;const _0x5bf755=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5b5847=>{if(_0x1e1420['key']==m)for(const _0xd1de82 of _0x2460cb){const _0x106c66=_0xd1de82['start']['nodeAfter'],_0x4fa6ad=_0x1e1420['oldValue'];_0x5b5847['rename'](_0x106c66,_0x4fa6ad);}else{if(_0x5bf755['_isBlockAttribute'](_0x1e1420['key'])){for(const _0x5bcaa2 of _0x2460cb)void 0x0!==_0x1e1420['oldValue']?_0x5b5847['setAttribute'](_0x1e1420['key'],_0x1e1420['oldValue'],_0x5bcaa2['start']['nodeAfter']):_0x5b5847['removeAttribute'](_0x1e1420['key'],_0x5bcaa2['start']['nodeAfter']);}else{for(const _0x24af0f of _0x2460cb)_0x1e1420['oldValue']?_0x5b5847['setAttribute'](_0x1e1420['key'],_0x1e1420['oldValue'],_0x24af0f):_0x5b5847['removeAttribute'](_0x1e1420['key'],_0x24af0f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12b5bf);}}function Gt(_0x19e1b7,_0x257df8,_0x4cba22){for(const _0x138998 of _0x257df8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x138998['root']==_0x138998)return!0x1;if(!_0x4cba22['containsItem'](_0x138998))return!0x1;if(_0x19e1b7['isObject'](_0x138998)||_0x19e1b7['isLimit'](_0x138998))return!0x0;}return!0x1;}function Ft(_0xb2de3f){return _0xb2de3f['end']['parent']==_0xb2de3f['start']['nodeAfter']&&_0xb2de3f['end']['isAtStart'];}function Lt(_0x556fd5,_0x1d1b96,_0x56f812,_0x548876){const _0x5048e9=_0x708635=>!_0x708635['item']['is']('$textProxy')&&!_0x548876['isObject'](_0x708635['item']),_0x195bd7=_0x556fd5['start']['getLastMatchingPosition'](_0x5048e9),_0x5ad97a=_0x556fd5['end']['getLastMatchingPosition'](_0x5048e9,{'direction':'backward'});return(!_0x556fd5['start']['isEqual'](_0x195bd7)||!_0x556fd5['end']['isEqual'](_0x5ad97a))&&(_0x195bd7['isBefore'](_0x5ad97a)?_0x56f812['updateMarker'](_0x1d1b96,{'range':_0x56f812['createRange'](_0x195bd7,_0x5ad97a)}):_0x56f812['removeMarker'](_0x1d1b96),!0x0);}function Jt(_0x4cbf1c){return _0x3943cc(_0x4cbf1c);}function Ht(_0xda916d){const _0x4da4f1=_0xda916d['start']['nodeAfter'];return _0x4da4f1&&_0x4da4f1['is']('element');}function qt(_0x39134f,_0x30b81e){return null==_0x39134f['end']['nodeBefore']&&_0x39134f['end']['parent']==_0x39134f['start']['nodeAfter']?zt(_0x39134f['start']['nodeAfter'],_0x30b81e):_0x39134f;}function zt(_0x1677a2,_0x17570b){const _0x28953c=_0x17570b['schema']['isObject'](_0x1677a2)||_0x17570b['schema']['isSelectable'](_0x1677a2);return _0x17570b['createRange'](_0x17570b['createPositionAt'](_0x1677a2,'before'),_0x28953c?_0x17570b['createPositionAfter'](_0x1677a2):_0x17570b['createPositionAt'](_0x1677a2,'end'));}function Kt(_0x3ae858,_0x1a4d57,_0x141a43,_0x4f1f84){return!!Wt(_0x3ae858,_0x1a4d57)&&_0x141a43['end']['isEqual'](_0x4f1f84['start']);}function Wt(_0xf291cc,_0x4fd933){if(!_0xf291cc['_isDataLoaded']||!_0x4fd933['_isDataLoaded'])return!0x1;const _0x35a450=new Set(Object['keys'](_0xf291cc['attributes'])),_0x4546a4=new Set(Object['keys'](_0x4fd933['attributes']));if(_0x35a450['delete']('groupId'),_0x4546a4['delete']('groupId'),0x0==_0x35a450['size']&&0x0==_0x4546a4['size'])return!0x0;if(_0x35a450['size']!=_0x4546a4['size'])return!0x1;const _0x467cba={..._0xf291cc['attributes']},_0x507d43={..._0x4fd933['attributes']};return delete _0x467cba['groupId'],delete _0x507d43['groupId'],JSON['stringify'](_0x467cba)==JSON['stringify'](_0x507d43);}function Qt(_0x159931,_0x444441){const _0x3cc733=Xt(_0x159931['attributes']),_0x1b7ee4=Xt(_0x444441);if(!_0x159931['_isDataLoaded'])return!0x1;for(const _0x44a52f of Object['keys'](_0x1b7ee4))if(!_0x37c9c3(_0x3cc733[_0x44a52f],_0x1b7ee4[_0x44a52f]))return!0x1;return!0x0;}function Xt(_0x1c9e6c){const _0x3053c9=Object['assign']({},_0x1c9e6c);return delete _0x3053c9['skipNestingCheck'],delete _0x3053c9['tablePasteChainId'],_0x3053c9;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4e91c9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x48ca88,_0x74f080,_0x4eb4ff,_0x328caa){super(),this['model']=_0x74f080,this['view']=_0x4eb4ff,this['commentThreadController']=_0x328caa,this['_editor']=_0x48ca88,this['_acceptCommand']=_0x48ca88['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x48ca88['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d1a20,_0x3ab176)=>_0x5d1a20||_0x3ab176),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10752a=>_0x10752a&&this['_editor']['model']['canEditAt'](_0x74f080['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c074a=>_0x5c074a&&this['_editor']['model']['canEditAt'](_0x74f080['getRanges']())),this['_pendingAction']=null,_0x4eb4ff['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4eb4ff,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4eb4ff,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4eb4ff,'change:isDirty',()=>{_0x4eb4ff['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 _0x5cbbf3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5cbbf3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x39ecd2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x395e67,_0x1ef805,_0x442047,_0x35797e){super(_0x395e67),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x26aa4d(_0x395e67,o(_0x395e67,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1ef805['authoredAt']),this['bind']('authoredAt')['to'](_0x1ef805),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',_0x1ef805,'authoredAt',this,'descriptionParts',(_0x197bea,_0x1aac80,_0x38e768)=>{const _0xb1c143=_0x38e768['map'](_0x17d4e1=>cs(_0x17d4e1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x197bea-0x1,_0x1ef805['author']['name'],_0x1aac80?_0x35797e['formatDateTime'](_0x1aac80):'',new DOMParser()['parseFromString'](_0xb1c143,'text/html')['body']['textContent']]);}),this['focusables']=new _0x202569(),this['focusTracker']=new _0x369097(),this['keystrokes']=new _0x29547e(),this['focusCycler']=new _0x39321a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2326d1=>_0x2326d1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1ef805,this['_localUser']=_0x442047,this['_config']=_0x35797e,_0x35797e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1940c6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27c69e}=this['_config'];this['commentsListView']=new _0x27c69e(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',_0x102532=>_0x102532+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x48cba0,_0x5a81b5)=>_0x48cba0||!!_0x5a81b5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1fe6d2}=this['_config'],_0x4fd9c8=new _0x1fe6d2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x34b750=_0x4fd9c8['commentInputView'];return _0x4fd9c8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x34b750,'value',(_0x16a468,_0x319a16,_0x26f72a)=>!!_0x26f72a||_0x16a468&&!_0x319a16),_0x34b750['on']('submit',(_0xbccd98,_0x2859f7)=>{this['fire']('addComment',_0x2859f7),_0x34b750['editor']['setData']('');}),_0x34b750['on']('cancel',()=>this['focus']()),_0x34b750['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4fd9c8;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x3850b5,_0x4b164c,_0x47a3d8,_0x29d127){super(_0x3850b5,_0x4b164c,_0x47a3d8,_0x29d127),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41680c=>_0x41680c&&_0x41680c[0x0]?_0x41680c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1cd49c,_0x4f1972)=>{let _0x93d471='';for(const _0xae222e of _0x1cd49c)_0x93d471+='<p>'+cs(_0xae222e['content'],_0xae222e['color'])+'</p>';return _0x4f1972?_0x93d471:_0xb6d856(_0x93d471,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x29d127['SuggestionView'](_0x3850b5,_0x4b164c,{'formatDateTime':_0x29d127['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 _0x151112=this['bindTemplate'],_0x11b43e=[this['suggestionView']];return this['commentsListView']&&_0x11b43e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x11b43e['push'](this['commentThreadInputView']),_0x11b43e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x151112['if']('isActive','ck-suggestion-wrapper--active'),_0x151112['to']('type',_0x47dba6=>'ck-suggestion-'+_0x47dba6),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':_0x151112['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x11b43e};}['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 fe extends _0x39ecd2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x519414,_0x5a2e9c,_0x2583cb){super(_0x519414),this['_model']=_0x5a2e9c,this['_config']=_0x2583cb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5a2e9c),this['acceptButton']=this['_createButton'](o(_0x519414,'Accept\x20suggestion'),_0x251926['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x519414,'Discard\x20suggestion'),_0x251926['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x14fa86(_0x519414,_0x5a2e9c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x202569([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x369097(),this['keystrokes']=new _0x29547e(),this['focusCycler']=new _0x39321a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e9679=>_0x2e9679['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bd04a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bd04a['innerHTML']=this['description'],this['on']('change:description',(_0x18f609,_0x152e79,_0x41a8c9)=>{_0x4bd04a['innerHTML']=_0x41a8c9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5add8a=this['bindTemplate'],_0x36134e=[{'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':_0x5add8a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5add8a['to']('authoredAt',_0x33591e=>this['_config']['formatDateTime'](_0x33591e))}]}]},{'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']&&_0x36134e['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':_0x36134e}]};}['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'](_0x306164,_0x29ead3,_0x3911c7,_0x29e638,_0x1677a7){const _0x861798=new _0x2f3605(this['locale']);return _0x861798['set']({'label':_0x306164,'icon':_0x29ead3,'tooltip':!0x0,'tooltipPosition':_0x1677a7}),_0x861798['extendTemplate']({'attributes':{'class':_0x3911c7}}),_0x861798['on']('execute',()=>{this['fire'](_0x29e638,this['_model']['id']);}),_0x861798;}['_setupKeyboardNavigation'](){const _0x3c4da6=this['element'];this['keystrokes']['listenTo'](_0x3c4da6);for(const _0x28b66b of this['focusables'])this['focusTracker']['add'](_0x28b66b['element']),this['keystrokes']['listenTo'](_0x28b66b['element']);this['keystrokes']['set']('enter',(_0x37c6b7,_0xacd8c7)=>{_0x3c4da6===_0x37c6b7['target']&&(this['focusCycler']['focusFirst'](),_0xacd8c7());}),this['keystrokes']['set']('esc',(_0x4e896d,_0x4fc7eb)=>{_0x3c4da6!==_0x4e896d['target']&&(this['focus'](),_0x4fc7eb());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x59cf86{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x33b2bc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e9228){super(_0x4e9228),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x488bc9=this['editor']['config'];_0x488bc9['define']('trackChanges.SuggestionThreadView',pe),_0x488bc9['define']('trackChanges.SuggestionView',fe),_0x488bc9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x488bc9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5c6260,_0x2bcfc4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1192e1,_0x1cb159]of this['_handleControllerBuffer']){const _0x3cad8c=this['_suggestionToController']['has'](_0x1192e1);_0x3cad8c||_0x1cb159?_0x3cad8c&&_0x1cb159&&this['_destroyController'](_0x1192e1):this['_initializeController'](_0x1192e1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5c6260,_0x2bcfc4);}['init'](){const _0x49a105=this['editor'],_0x2fc12f=_0x49a105['plugins']['get']('TrackChangesEditing'),_0x60c18c=_0x49a105['plugins']['get']('Annotations'),_0x3926eb=_0x49a105['plugins']['get']('EditorAnnotations'),_0x30eb6b=_0x49a105['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3926eb['addSourceCollector'](()=>{const _0x5a226a=[];for(const [_0x446b06,_0x322e0e]of Array['from'](this['_suggestionToController'])){const _0x4152c2=_0x446b06['getAllAdjacentSuggestions'](),_0x28357c=[];for(const _0xb6589c of _0x4152c2){if(!_0xb6589c['isInContent'])continue;if(_0xb6589c['isMultiRange']){_0x28357c['push'](..._0xb6589c['getRanges']());continue;}const _0x40301c=_0xb6589c['getFirstRange']();if(_0x28357c['length']>0x0){const _0x45ada4=_0x28357c[0x0]['getJoined'](_0x40301c);if(_0x45ada4){_0x28357c[0x0]=_0x45ada4;continue;}}_0x28357c['push'](_0x40301c);}_0x5a226a['push']([_0x322e0e['view'],_0x28357c]);}return _0x5a226a;}),this['listenTo'](_0x2fc12f,'suggestionLoaded',(_0x1bfda4,_0x1d54fa)=>{this['listenTo'](_0x1d54fa,'change:previous',(_0x40ecd3,_0x247bf7,_0x28df6c,_0x139d99)=>{_0x1d54fa['isInContent']&&(null==_0x28df6c?(this['_updateController'](_0x139d99['head']),this['_handleSuggestionControllerDelayed'](_0x1d54fa,!0x1)):(this['_updateController'](_0x28df6c['head']),null==_0x139d99&&this['_handleSuggestionControllerDelayed'](_0x1d54fa,!0x0)));}),null!==_0x1d54fa['previous']?this['_updateController'](_0x1d54fa['head']):this['_handleSuggestionControllerDelayed'](_0x1d54fa,!0x1);}),this['listenTo'](_0x2fc12f,'suggestionUnloaded',(_0xbdd43c,_0x2fa90a,_0x2759dd)=>{this['stopListening'](_0x2fa90a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2fa90a),this['_suggestionToController']['has'](_0x2fa90a)&&this['_destroyController'](_0x2fa90a),_0x2759dd&&this['_updateController'](_0x2759dd['head']);}),this['listenTo'](_0x2fc12f,'suggestionChanged',(_0x52a26f,_0x3c3971)=>{this['_updateController'](_0x3c3971);}),this['listenTo'](_0x60c18c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x30eb6b,'addComment',(_0x25945b,{threadId:_0x5ae7c6,isFromAdapter:_0x109fe4})=>{if(_0x109fe4||!_0x2fc12f['hasSuggestion'](_0x5ae7c6))return;const _0x3798bb=_0x2fc12f['getSuggestion'](_0x5ae7c6);this['_suggestionToController']['get'](_0x3798bb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2bfbc9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f9c56;for(const _0x29c6a4 in _0x2bfbc9){const _0x5a0eaf=_0x29c6a4,_0x124aa3=_0x2bfbc9[_0x5a0eaf];if('trackChangesLicenseKeyValid'==_0x124aa3||'trackChangesLicenseKeyInvalid'==_0x124aa3||'trackChangesLicenseKeyExpired'==_0x124aa3||'trackChangesLicenseKeyDomainLimit'==_0x124aa3||'trackChangesLicenseKeyNotAllowed'==_0x124aa3||'trackChangesLicenseKeyEvaluationLimit'==_0x124aa3||'trackChangesLicenseKeyTrialLimit'==_0x124aa3||'trackChangesLicenseKeyUsageLimit'==_0x124aa3){delete _0x2bfbc9[_0x5a0eaf],_0x1f9c56=_0x124aa3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f9c56&&_0x2bfbc9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x231091=this['editor']['plugins']['get']('Annotations'),_0x4e33e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b8d95=Array['from'](_0x231091['activeAnnotations'],_0x5217f5=>_0x5217f5['innerView'])['filter'](_0x4851d4=>this['_viewToController']['has'](_0x4851d4)),_0x1a67ce=[];for(const _0x2e433b of _0x2b8d95){const _0x3557ce=this['_viewToController']['get'](_0x2e433b)['model']['getAllAdjacentSuggestions']();_0x1a67ce['push'](..._0x3557ce['reduce']((_0x152df9,_0x5744e0)=>[..._0x152df9,..._0x5744e0['getMarkerNames']()],[]));}_0x4e33e7['activeMarkers']=_0x1a67ce;}['_addUIComponentsToFactory'](){const _0xb51ecb=this['editor'],_0x345d4e=_0xb51ecb['locale'],_0x23d15c=o(_0x345d4e,'Track\x20changes'),_0x3dd531=new _0x1cb604([{'type':'switchbutton','model':new _0x152a27({'withText':!0x0,'isToggleable':!0x0,'label':_0x23d15c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x152a27({'withText':!0x0,'label':o(_0x345d4e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x152a27({'withText':!0x0,'label':o(_0x345d4e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x152a27({'withText':!0x0,'label':o(_0x345d4e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x152a27({'withText':!0x0,'label':o(_0x345d4e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb51ecb['plugins']['has']('TrackChangesPreview')&&_0x3dd531['addMany']([{'type':'separator'},{'type':'button','model':new _0x152a27({'withText':!0x0,'label':o(_0x345d4e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1c342e of _0x3dd531)if(ke(_0x1c342e)){const _0x2e3454=_0xb51ecb['commands']['get'](_0x1c342e['model']['commandName']);_0x1c342e['model']['bind']('isOn','isEnabled')['to'](_0x2e3454,'value','isEnabled');}_0xb51ecb['ui']['componentFactory']['add']('trackChanges',_0x5c0a5f=>this['_createToolbarButton'](_0x5c0a5f,_0x3dd531,_0x23d15c)),_0xb51ecb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x297c5c=>this['_createMenuBarMenu'](_0x297c5c,_0x3dd531,_0x23d15c));}['_createToolbarButton'](_0x294c8b,_0x7ab371,_0x44910a){const _0x2b9e3f=_0x14229b(_0x294c8b,_0x58b909),_0x49f2e8=this['editor']['commands']['get']('trackChanges');_0x2b9e3f['buttonView']['set']({'tooltip':_0x44910a,'label':_0x44910a,'icon':we}),_0x2b9e3f['buttonView']['bind']('isOn')['to'](_0x49f2e8,'value'),_0x2b9e3f['buttonView']['on']('execute',()=>{_0x49f2e8['execute'](),this['editor']['editing']['view']['focus']();}),_0x16e2b4(_0x2b9e3f,_0x7ab371,{'role':'menu'});const _0x2c7b6f=[];for(const _0x1bd55a of _0x7ab371)ke(_0x1bd55a)&&_0x2c7b6f['push'](this['editor']['commands']['get'](_0x1bd55a['model']['commandName']));const _0x5cde86=_0x2b9e3f['buttonView'];return _0x5cde86['actionView']['unbind']('isEnabled'),_0x5cde86['arrowView']['unbind']('isEnabled'),_0x5cde86['actionView']['bind']('isEnabled')['to'](_0x49f2e8,'isEnabled'),_0x5cde86['arrowView']['bind']('isEnabled')['toMany'](_0x2c7b6f,'isEnabled',(..._0x1bb656)=>_0x1bb656['some'](_0x8f25a8=>_0x8f25a8)),_0x2b9e3f['on']('execute',_0x77835c=>{this['editor']['execute'](_0x77835c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b9e3f;}['_createMenuBarMenu'](_0x23d8f1,_0x2da255,_0x103c96){const _0xfc191e=new _0xc0a067(_0x23d8f1),_0x3f466f=this['editor']['commands']['get']('trackChanges');_0xfc191e['buttonView']['set']({'label':_0x103c96,'icon':we});const _0x538397=new _0x392310(_0x23d8f1);for(const _0x483e7d of _0x2da255){if('separator'==_0x483e7d['type']){_0x538397['items']['add'](new _0xc9e9e7(_0x23d8f1));continue;}const _0x20e6ae=new _0x257c8b(_0x23d8f1,_0xfc191e),_0x2e4712=new _0x299337(_0x23d8f1),_0xe52efd=_0x483e7d['model'];_0x2e4712['bind'](...Object['keys'](_0xe52efd))['to'](_0xe52efd),_0x2e4712['delegate']('execute')['to'](_0xfc191e),_0x2e4712['on']('execute',()=>{this['editor']['execute'](_0xe52efd['commandName']),this['editor']['editing']['view']['focus']();}),_0x20e6ae['children']['add'](_0x2e4712),_0x538397['items']['add'](_0x20e6ae);}return _0xfc191e['bind']('isEnabled')['to'](_0x3f466f,'isEnabled'),_0xfc191e['panelView']['children']['add'](_0x538397),_0xfc191e;}['_initializeController'](_0x1abb6f){const _0x36b8d7=this['editor'],_0x22c209=_0x36b8d7['config'],_0x16f397=_0x36b8d7['plugins']['get']('Annotations'),_0x2b212f=_0x36b8d7['plugins']['get']('CommentsRepository'),_0x4417bc=_0x36b8d7['plugins']['get']('EditorAnnotations'),_0x4347f4=_0x36b8d7['plugins']['get'](_0x33b2bc)['me'],_0x4b1579=_0x22c209['get']('trackChanges')['SuggestionThreadView'],_0x1e7574=_0x22c209['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3687b3,CommentThreadInputView:_0x5ace5a}=_0x36b8d7['plugins']['get']('CommentsUI');let _0x1ba8a2,_0x34d85b,_0x5a1999;this['_annotationViews']['has'](_0x1abb6f['id'])?(_0x34d85b=this['_annotationViews']['get'](_0x1abb6f['id']),_0x1ba8a2=_0x34d85b['mainView']):(_0x1ba8a2=new _0x4b1579(_0x36b8d7['locale'],_0x1abb6f,_0x4347f4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22c209['get']('comments.editorConfig'),'licenseKey':_0x22c209['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22c209['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22c209['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22c209['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e64d3(_0x22c209['get']('locale')),'CommentView':_0x22c209['get']('comments')['CommentView'],'CommentsListView':_0x3687b3,'CommentThreadInputView':_0x5ace5a,'SuggestionView':_0x1e7574}),_0x1ba8a2['suggestionView']['acceptButton']['on']('execute',()=>{_0x36b8d7['editing']['view']['focus']();}),_0x1ba8a2['suggestionView']['discardButton']['on']('execute',()=>{_0x36b8d7['editing']['view']['focus']();}),_0x34d85b=_0x16f397['createAnnotationView'](this['editor']['locale'],_0x1ba8a2),_0x34d85b['bind']('isDirty')['to'](_0x1ba8a2,'isDirty'),_0x34d85b['bind']('length')['to'](_0x1ba8a2),_0x34d85b['bind']('type')['to'](_0x1ba8a2,'type',_0x31a567=>'suggestion-'+_0x31a567),_0x1ba8a2['on']('escape',()=>{_0x5a1999['fire']('escape');}),this['_annotationViews']['set'](_0x1abb6f['id'],_0x34d85b));const _0x5cad20=_0x2b212f['createCommentThreadController'](_0x1abb6f['commentThread'],_0x1ba8a2),_0x2513d3=new Ce(_0x36b8d7,_0x1abb6f,_0x1ba8a2,_0x5cad20),_0x52ba3c=_0x1abb6f['getAllAdjacentSuggestions']()['filter'](_0x30d973=>_0x30d973['isInContent']);_0x1ba8a2['descriptionParts']=_0x36b8d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x52ba3c),this['_suggestionToController']['set'](_0x1abb6f,_0x2513d3),this['_viewToController']['set'](_0x1ba8a2,_0x2513d3),_0x5a1999=_0x16f397['createAnnotation']({'view':_0x34d85b,'target':()=>{const _0x15d7e6=[],_0x510b23=_0x1abb6f['getAllAdjacentSuggestions']()['filter'](_0x564cd8=>_0x564cd8['isInContent']);for(const _0x12d3bc of _0x510b23)_0x15d7e6['push'](..._0x12d3bc['getMarkers']());return _0x556b50(_0x36b8d7['editing'],_0x15d7e6);},'type':()=>'suggestion-'+_0x2513d3['view']['type']}),_0x2b212f['_bindAnnotationToEditors'](_0x1ba8a2,_0x5a1999),_0x16f397['add'](_0x5a1999),_0x4417bc['registerAnnotation'](_0x5a1999);}['_destroyController'](_0xdc11c1){const _0x233760=this['editor']['plugins']['get']('CommentsRepository'),_0x5bc0a2=this['editor']['plugins']['get']('Annotations'),_0x44099f=this['_suggestionToController']['get'](_0xdc11c1),_0x34e362=_0x44099f['view'],_0x200d2e=_0x5bc0a2['getByInnerView'](_0x34e362);_0x233760['_unbindEditors'](_0x34e362),_0x200d2e&&_0x5bc0a2['remove'](_0x200d2e),this['_suggestionToController']['delete'](_0xdc11c1),this['_viewToController']['delete'](_0x34e362),_0x44099f['destroy']();}['_updateController'](_0x5f4bdc){if(!_0x5f4bdc['isInContent']||!this['_suggestionToController']['has'](_0x5f4bdc))return;const _0x2127ff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x200d6b=this['_suggestionToController']['get'](_0x5f4bdc),_0x1d7cc5=_0x5f4bdc['getAllAdjacentSuggestions']();_0x200d6b['view']['descriptionParts']=_0x2127ff['descriptionFactory']['getDescriptions'](_0x1d7cc5);}['destroy'](){for(const _0x4268c5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4268c5);for(const _0x1e5d47 of this['_annotationViews']['values']())_0x1e5d47['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3fa5b7){return'model'in _0x3fa5b7;}class k extends _0x59cf86{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x200f2f){this['editor']['plugins']['get'](p)['adapter']=_0x200f2f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4fc3fd){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4fc3fd);}['getSuggestions']({skipNotAttached:_0xa9eb81=!0x1,toJSON:_0x499937=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa9eb81,'toJSON':_0x499937});}['getSuggestion'](_0x14219b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x14219b);}}const w=['Pagination'];class T extends _0x59cf86{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x17c541=this['editor'];if(_0x17c541['config']['define']('trackChangesData.editorCreator',_0x3be65d=>{const _0x4cd7bb=_0x17c541['model']['document']['getRootNames']()['reduce']((_0x245272,_0xc1250d)=>(_0x245272[_0xc1250d]='',_0x245272),{});return _0x17c541['constructor']['create'](_0x4cd7bb,_0x3be65d);}),'function'!=typeof _0x17c541['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d05c0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x152561){return N(this['editor'],!0x0,_0x152561);}['getDataWithDiscardedSuggestions'](_0xa726c){return N(this['editor'],!0x1,_0xa726c);}}class D extends _0x59cf86{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50eaf2){function _0x390467(_0x7fc576){return _0x7fc576['map'](_0x4739d2=>String['fromCharCode'](_0x4739d2))['join']('');}super(_0x50eaf2),this['result']='end',_0x50eaf2[_0x390467([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x390467([0x76,0x69,0x65,0x77])][_0x390467([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x390467([0x61,0x75,0x74,0x6f]),_0x50eaf2[_0x390467([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x390467([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x390467([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x390467([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x390467([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 Fe(_0x3b34f2){return void 0x0!==_0x3b34f2['getRootsAttributes'];}async function N(_0x346133,_0x527ef2,_0x5ef947){const _0xe709a0=_0x3b8356(_0x346133,w);_0xe709a0['plugins']['push'](p,D),_0xe709a0['rootsAttributes']=Fe(_0x346133)?_0x346133['getRootsAttributes']():void 0x0;const _0x35fa59=document['createDocumentFragment'](),_0x40a577=_0x346133['config']['get']('trackChangesData')['editorCreator'],_0x3dba70=await _0x40a577(_0xe709a0,()=>function(_0x186682){const _0x17d2b1=document['createElement']('div');return _0x186682['appendChild'](_0x17d2b1),_0x17d2b1;}(_0x35fa59));!function(_0x56a526,_0x1172b4){const _0x37785b=_0x56a526['model']['document']['getRootNames']()['reduce']((_0x39f0f6,_0x52aeb2)=>(_0x39f0f6[_0x52aeb2]=_0x56a526['data']['get']({'rootName':_0x52aeb2}),_0x39f0f6),{}),_0x3ef9b3=_0x56a526['plugins']['get']('Users')['users']['map'](_0x46ba0f=>({'id':_0x46ba0f['id'],'name':_0x46ba0f['name']})),_0x33e38e=_0x56a526['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4840a1=_0x56a526['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45696c=_0x1172b4['plugins']['get']('Users'),_0x29b40f=_0x1172b4['plugins']['get']('TrackChangesEditing'),_0x195be7=_0x1172b4['plugins']['get']('CommentsRepository');for(const _0x4789ff of _0x195be7['getCommentThreads']())_0x4789ff['remove']();for(const _0x102f72 of _0x3ef9b3)_0x45696c['getUser'](_0x102f72['id'])||_0x45696c['addUser'](_0x102f72);_0x45696c['me']||_0x45696c['useAnonymousUser']();for(const _0x3d4294 of _0x4840a1)_0x195be7['addCommentThread'](_0x3d4294);for(const _0x2d1508 of _0x33e38e)_0x29b40f['addSuggestionData'](_0x2d1508);_0x1172b4['data']['set'](_0x37785b);}(_0x346133,_0x3dba70),_0x3dba70['execute'](_0x527ef2?'acceptAllSuggestions':'discardAllSuggestions');const _0x22872b=Fe(_0x3dba70)?_0x3dba70['getFullData'](_0x5ef947):_0x3dba70['data']['get'](_0x5ef947);return await _0x3dba70['destroy'](),_0x22872b;}class Me extends _0x39ecd2{['options'];constructor(_0x2ca348,_0x4b72fb){super(_0x2ca348),this['options']=_0x4b72fb,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'](_0x5969ec,_0x10d3f6){if(!this['element'])return;const _0xe37b96=[];for(const [_0x42f468,_0xd2faf3]of _0x5969ec){const _0x447e03=document['createElement']('div');_0x447e03['setAttribute']('data-ck-root-name',_0x42f468),_0x447e03['className']=_0xd2faf3['classes']+'\x20ck-track-changes-preview__root-container',_0x447e03['innerHTML']=_0xd2faf3['content'],_0xe37b96['push'](_0x447e03);}_0x10d3f6(this['element'],_0xe37b96),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0xd20cfa){super(_0xd20cfa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3f1e8f=this['editor'],_0x774f6a=_0x3f1e8f['locale'],_0xa5367e=_0x3f1e8f['plugins']['get']('Dialog');let _0x164ee8;const _0x1297e3=function(_0x48312c){const _0x493b31={};if('editables'in _0x48312c['ui']['view']){for(const [_0x3b91db,_0x1b7e4e]of Object['entries'](_0x48312c['ui']['view']['editables']))_0x493b31[_0x3b91db]=_0x1b7e4e['element'];}else _0x493b31[_0x48312c['model']['document']['getRootNames']()[0x0]]=_0x48312c['ui']['view']['editable']['element'];return _0x493b31;}(_0x3f1e8f),_0x64dbe=function(_0x23fdfa){let _0x26fca5=0x0;for(const _0x17a918 of Object['values'](_0x23fdfa))_0x26fca5=Math['max'](_0x26fca5,_0x17a918['getBoundingClientRect']()['width']);let _0x40755b=0x0;for(const _0x4a96e8 of Object['values'](_0x23fdfa))_0x40755b+=_0x4a96e8['getBoundingClientRect']()['height'];const _0x5e56b3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x79d069=Math['min'](_0x40755b,_0x5e56b3);return{'width':_0x26fca5,'height':_0x79d069};}(_0x1297e3);_0xa5367e['show']({'id':'finalContentPreview','title':o(_0x774f6a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x774f6a,{'dialogRects':_0x64dbe}),'onHide':()=>{_0x164ee8['detachFromDom']();},'onShow':()=>{_0x3f1e8f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x42b86b=>{const _0x35b414=this['_standarizeRootsData'](_0x42b86b,_0x3f1e8f,_0x1297e3);_0xa5367e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x35b414,_0x3f1e8f['config']['get']('trackChanges.preview.renderFunction'));}),_0x164ee8=new _0x1b73e6(_0x774f6a,[_0xa5367e['view']]),_0x164ee8['attachToDom'](),_0x164ee8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3f1e8f['once']('destroy',()=>{_0x164ee8['detachFromDom']();});const _0x36c579=_0xa5367e['view']['headerView']['class'];_0xa5367e['view']['headerView']['class']=_0x36c579?_0x36c579+'\x20ck-reset_all':'ck-reset_all',_0xa5367e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xa5367e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x89904a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2b6b64=_0x89904a['previewMode'],_0x3866e3={};if('$labels'===_0x2b6b64){for(const _0x104529 of _0x89904a['getMergeFieldsIds']())_0x3866e3[_0x104529]=_0x89904a['getLabel'](_0x104529)||_0x104529;}else{const _0x357f25='$defaultValues'===_0x2b6b64?_0x89904a['getDefaultValues']():_0x89904a['getDataSetValues'](_0x2b6b64,!0x0);for(const _0x55b819 of Object['entries'](_0x357f25)){const [_0x2ba83b,_0x30d41e]=_0x55b819;_0x3866e3[_0x2ba83b]=null!==_0x30d41e?_0x30d41e:_0x89904a['getLabel'](_0x2ba83b)||_0x2ba83b;}}return{'mergeFieldsData':_0x3866e3};}['_standarizeRootsData'](_0xb6d6ef,_0xecb00c,_0x46269f){let _0x1e4636;if('string'==typeof _0xb6d6ef){const _0x262b4d=_0xecb00c['model']['document']['getRootNames']()[0x0];_0x1e4636={[_0x262b4d]:_0xb6d6ef};}else _0x1e4636=_0xb6d6ef;const _0xe09b2b=this['_fixMediaEmbeds'](_0x1e4636,_0xecb00c),_0x3e9daf=function(_0x2f122d,_0x4ebc10){for(const [_0x4048d1,_0x3d5c48]of _0x2f122d)_0x3d5c48['classes']=_0x4ebc10[_0x4048d1]['classList']['value']['replace']('ck-focused','');return _0x2f122d;}(this['_sortRoots'](_0xecb00c)['reduce']((_0x192352,_0x3dae61)=>(_0x192352['push']([_0x3dae61,{'content':_0xe09b2b[_0x3dae61],'classes':''}]),_0x192352),[]),_0x46269f);return _0x3e9daf;}['_fixMediaEmbeds'](_0x43ba9a,_0x1f44ea){if(!_0x1f44ea['plugins']['has']('MediaEmbedEditing'))return _0x43ba9a;const _0x4ba635=_0x1f44ea['plugins']['get']('MediaEmbedEditing');for(const [_0x185b85,_0x2b025e]of Object['entries'](_0x43ba9a)){const _0x5e6aa8=document['createElement']('div');_0x5e6aa8['innerHTML']=_0x2b025e,(_0x5e6aa8['querySelectorAll']('figure.media')['forEach'](_0x4cab9a=>{const _0x425926=_0x4cab9a['querySelector']('oembed');if(_0x425926){const _0x41da7d=_0x425926['getAttribute']('url');if(_0x41da7d){const _0xe87978=_0x4ba635['registry']['getMediaViewElement'](new _0x5d1e32(_0x1f44ea['editing']['view']['document']),_0x41da7d,{'elementName':'','renderForEditingView':!0x0}),_0x14f662=document['createElement']('div');_0x14f662['classList']['add']('ck-media__wrapper'),_0xe87978['render'](_0x14f662,_0x1f44ea['editing']['view']['domConverter']),_0x425926['replaceWith'](_0x14f662);}}}),_0x43ba9a[_0x185b85]=_0x5e6aa8['innerHTML']);}return _0x43ba9a;}['_sortRoots'](_0xdb80a4){if(!function(_0x37290a){return void 0x0!==_0x37290a['getRootsAttributes'];}(_0xdb80a4))return _0xdb80a4['model']['document']['getRootNames']();const _0x208393=[],_0x274817=new Map();for(const _0x5d58da of _0xdb80a4['model']['document']['getRootNames']()){const _0x48b3d6=_0xdb80a4['editing']['view']['getDomRoot'](_0x5d58da)['getClientRects']()['item'](0x0);_0x208393['push'](_0x5d58da),_0x274817['set'](_0x5d58da,_0x48b3d6);}return _0x208393['sort']((_0x5ebc6d,_0x4f9d85)=>{const _0x5cdb51=_0x274817['get'](_0x5ebc6d),_0x2bd3bb=_0x274817['get'](_0x4f9d85);return _0x5cdb51['y']-_0x2bd3bb['y']||_0x5cdb51['x']-_0x2bd3bb['x'];}),_0x208393;}}class te extends _0x59cf86{static get['requires'](){return[T,_0x500d09];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ba065){super(_0x2ba065),_0x2ba065['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2ba065['config']['define']('trackChanges.preview.renderFunction',(_0x2d8cc4,_0x52c168)=>{for(const _0x29c89b of _0x52c168)_0x2d8cc4['appendChild'](_0x29c89b);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|