@ckeditor/ckeditor5-track-changes 46.0.1-alpha.8 → 46.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4d13ba(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x55859a,_0x32371e){super(),this['id']=_0x32371e['id'],this['type']=_0x32371e['type'],this['subType']=_0x32371e['subType']||null,this['author']=_0x32371e['author'],this['creator']=_0x32371e['creator']||_0x32371e['author'],this['isExternal']=Boolean(_0x32371e['attributes']&&_0x32371e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x32371e['originalSuggestionId']||null,this['_model']=_0x55859a,this['_onAccept']=_0x32371e['onAccept'],this['_onDiscard']=_0x32371e['onDiscard'],this['_onAttributesChange']=_0x32371e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32371e['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 _0x133f12=this;for(;_0x133f12['previous'];)_0x133f12=_0x133f12['previous'];return _0x133f12;}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'](_0x5311dc){this['_markerNames']['add'](_0x5311dc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2465eb=>this['_model']['markers']['get'](_0x2465eb))['filter'](_0x4e4804=>_0x4e4804);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bb9e4=>{for(const _0x1a2af5 of this['getMarkers']())_0x4bb9e4['removeMarker'](_0x1a2af5);}),this['_markerNames']['clear']();}['removeMarker'](_0x3dc750){this['_model']['change'](_0x356878=>{_0x356878['removeMarker'](_0x3dc750);}),this['_markerNames']['delete'](_0x3dc750);}['addRange'](_0x506422){const _0x5ea173='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5ea173),this['_model']['change'](_0x31f9a9=>{_0x31f9a9['addMarker'](_0x5ea173,{'range':_0x506422,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24b6b7){for(const _0xbf9723 of this['getRanges']())if(_0xbf9723['isIntersecting'](_0x24b6b7))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x372bdd=>_0x372bdd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ae3c6,_0x5b8431)=>[..._0x1ae3c6,..._0x5b8431['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x47c437=this['getRanges']();if(0x1!=_0x47c437['length'])return null;const _0x45685d=_0x47c437[0x0],_0x37c7b6=_0x45685d['start']['nodeAfter'],_0x3f3d7d=_0x45685d['end']['nodeBefore'];return _0x37c7b6 instanceof _0x489809?_0x37c7b6!=_0x3f3d7d?null:_0x37c7b6: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 _0x471a69=[];let _0x5ed1f9=this['head'];for(;_0x5ed1f9;)_0x471a69['push'](_0x5ed1f9),_0x5ed1f9=_0x5ed1f9['next'];return _0x471a69;}['setAttribute'](_0x45acf6,_0x477577){const _0x38dc09=_0x2e0e29(this['attributes']);_0x49e97d(_0x38dc09,_0x45acf6,_0x477577),_0xe99400(_0x38dc09,this['attributes'])||(this['attributes']=_0x38dc09,this['_onAttributesChange'](_0x38dc09));}['removeAttribute'](_0x40e335){const _0x3c6925=_0x2e0e29(this['attributes']);_0x483638(_0x3c6925,_0x40e335),_0xe99400(_0x3c6925,this['attributes'])||(this['attributes']=_0x3c6925,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 _0x4e9a0b()['substr'](0x1,0x5);}}function o(_0x37668a,_0x560102,_0x5a4d24){const _0x37a8c8=_0x37668a['t'],t=_0x37668a['t'];switch(_0x560102){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',_0x5a4d24);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a4d24);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a4d24);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a4d24);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a4d24);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',_0x5a4d24);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a4d24);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',_0x5a4d24);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a4d24);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a4d24);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a4d24);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a4d24);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a4d24);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a4d24);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a4d24);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a4d24);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a4d24);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a4d24);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a4d24);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a4d24);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a4d24);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a4d24);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a4d24);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a4d24);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5a4d24);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5a4d24);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a4d24);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a4d24);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a4d24);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a4d24);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a4d24);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a4d24);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a4d24);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a4d24);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'},_0x5a4d24);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5a4d24);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a4d24);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a4d24);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'},_0x5a4d24);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a4d24);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 _0x37a8c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a4d24);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37a8c8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a4d24);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a4d24);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'},_0x5a4d24);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'},_0x5a4d24);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'},_0x5a4d24);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x560102;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x951b11,_0x1ea269){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x951b11,this['_locale']=_0x1ea269;}['getDescriptions'](_0x1afdf3){const _0x49ae38=[],_0x226e46=new Set(),_0x114f1f=new Set();for(let _0x4c1640=0x0;_0x4c1640<_0x1afdf3['length'];_0x4c1640++){const _0x322859=_0x1afdf3[_0x4c1640];if(!_0x322859['isInContent'])continue;const _0x5b74dc=this['_handleCustomCallbackDescription'](_0x322859);if(_0x5b74dc){if(null!=_0x322859['subType']){if(_0x226e46['has'](_0x322859['subType']))continue;_0x226e46['add'](_0x322859['subType']);}_0x49ae38['push'](_0x5b74dc);}else{if('attribute'==_0x322859['type']){const _0x32b1aa=_0x322859['data']['key'];if(_0x114f1f['has'](_0x32b1aa))continue;_0x114f1f['add'](_0x322859['data']['key']),_0x32b1aa==m?this['_handleRenameSuggestionDescription'](_0x49ae38,_0x322859):this['_handleAttributeSuggestionDescription'](_0x49ae38,_0x322859);continue;}'insertion'!=_0x322859['type']&&'deletion'!=_0x322859['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49ae38,_0x322859,_0x1afdf3[_0x4c1640+0x1]);}}return this['_resolveDescriptionItems'](_0x49ae38);}['registerDescriptionCallback'](_0x4d6a35){this['_customCallbacks']['push'](_0x4d6a35);}['registerElementLabel'](_0x2e2028,_0x58fb60,_0x5844fa=_0x3efbf3['normal']){'function'==typeof _0x2e2028?_0x54604b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e2028,'label':_0x58fb60,'priority':_0x5844fa}):this['_itemLabels']['set'](_0x2e2028,_0x58fb60);}['registerAttributeLabel'](_0x60aec,_0x1960ce){this['_attributeLabels']['set'](_0x60aec,_0x1960ce);}['getItemLabel'](_0x20cd79,_0x35d1ea=0x1){let _0x2c518e;for(const _0x164eee of this['_itemLabelsCallbacks'])if(_0x164eee['matchingCallback'](_0x20cd79)){_0x2c518e=_0x164eee['label'];break;}return _0x2c518e||(_0x2c518e=this['_itemLabels']['get'](_0x20cd79['name'])),_0x2c518e?_0x2c518e(_0x35d1ea):0x1!==_0x35d1ea?_0x35d1ea+'\x20'+_0x20cd79['name']+'s':''+_0x20cd79['name'];}['_addDescriptionItems'](_0x528cb9,_0x5cdcad){const _0x29955e=_0x5cdcad['getFirstRange']()['getWalker'](),_0x544d58='insertion'==_0x5cdcad['type']?'add':'remove';for(const _0x553e5a of _0x29955e){const _0xf93181=_0x553e5a['item'],_0x4e585f=_0x528cb9[_0x528cb9['length']-0x1];if(_0xf93181['is']('$textProxy'))_0x4e585f&&_0x4e585f['type']['indexOf']('Container')>-0x1&&_0x528cb9['pop'](),_0x4e585f&&'text'==_0x4e585f['type']?_0x4e585f[_0x544d58]+=_0xf93181['data']:_0x528cb9['push']({'type':'text','add':'add'==_0x544d58?_0xf93181['data']:'','remove':'remove'==_0x544d58?_0xf93181['data']:''});else{if(this['_schema']['isObject'](_0xf93181)){const _0x4ffc32=_0xf93181;if(_0x4e585f&&_0x4e585f['type']['indexOf']('Container')>-0x1&&_0x528cb9['pop'](),'elementEnd'==_0x553e5a['type'])continue;_0x4e585f&&_0x4e585f['type']==_0x544d58+'Object'&&_0x4e585f['element']['name']==_0x4ffc32['name']?_0x4e585f['quantity']++:_0x528cb9['push']({'type':_0x544d58+'Object','element':_0x4ffc32,'quantity':0x1}),_0x29955e['skip'](_0x6fb0eb=>!('elementEnd'==_0x6fb0eb['type']&&_0x6fb0eb['item']==_0xf93181));}else{if(this['_schema']['checkChild'](_0xf93181,'$text')||_0xf93181['is']('element','softBreak')){const _0x55a01c=_0xf93181;if('add'==_0x544d58&&'elementStart'==_0x553e5a['type']||'remove'==_0x544d58&&'elementEnd'==_0x553e5a['type'])continue;if(_0x4e585f&&-0x1==_0x4e585f['type']['indexOf']('Container')){'text'==_0x4e585f['type']&&(_0x4e585f[_0x544d58]+='\x0a');continue;}let _0x59cb44;if(_0x59cb44='add'==_0x544d58?_0x55a01c['nextSibling']&&!this['_schema']['isObject'](_0x55a01c['nextSibling'])?_0x55a01c['nextSibling']:null:_0x55a01c['previousSibling']&&!this['_schema']['isObject'](_0x55a01c['previousSibling'])?_0x55a01c['previousSibling']:null,_0x55a01c['isEmpty']||_0x59cb44&&_0x59cb44['isEmpty']){const _0x58c5ca=_0x59cb44&&_0x59cb44['isEmpty']?_0x59cb44:_0x55a01c;_0x4e585f&&_0x4e585f['type']==_0x544d58+'EmptyContainer'&&_0x4e585f['element']['name']==_0x58c5ca['name']?_0x4e585f['quantity']++:_0x528cb9['push']({'type':_0x544d58+'EmptyContainer','element':_0x58c5ca,'quantity':0x1});}else _0x528cb9['push']({'type':_0x544d58+'Container','element':_0x55a01c});}}}}}['_resolveDescriptionItems'](_0x337d32){const _0x33dbed=this['_locale'],_0x3c81d4=[],_0x37bdb6=[],_0x1125de=[];for(const _0x4a7a3d of _0x337d32)switch(_0x4a7a3d['type']){case'text':if(_0x4a7a3d['add']=_0x4a7a3d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a7a3d['remove']=_0x4a7a3d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a7a3d['add']&&''!=_0x4a7a3d['remove']){_0x3c81d4['push']({'type':'replace','content':o(_0x33dbed,'REPLACE_TEXT',['\x22'+_0x4a7a3d['remove']+'\x22','\x22'+_0x4a7a3d['add']+'\x22'])});continue;}if(null!=_0x4a7a3d['add']['match'](/^ +$/)){_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0',o(_0x33dbed,'ELEMENT_SPACE',_0x4a7a3d['add']['length']))});continue;}if(null!=_0x4a7a3d['remove']['match'](/^ +$/)){_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0',o(_0x33dbed,'ELEMENT_SPACE',_0x4a7a3d['remove']['length']))});continue;}if(''!=_0x4a7a3d['add']){_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0','\x22'+_0x4a7a3d['add']+'\x22')});continue;}_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0','\x22'+_0x4a7a3d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Insert:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Remove:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'addContainer':_0x3c81d4['push']({'type':'insertion','content':o(_0x33dbed,'*Split:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'removeContainer':_0x3c81d4['push']({'type':'deletion','content':o(_0x33dbed,'*Merge:*\x20%0',this['getItemLabel'](_0x4a7a3d['element'],_0x4a7a3d['quantity']))});continue;case'addFormat':_0x37bdb6['push'](_0x4a7a3d['key']);continue;case'removeFormat':_0x1125de['push'](_0x4a7a3d['key']);continue;default:_0x3c81d4['push'](_0x4a7a3d);}if(_0x37bdb6['length']){const _0x55b931=_0x37bdb6['map'](_0x2f6a3e=>this['_attributeLabels']['has'](_0x2f6a3e)?this['_attributeLabels']['get'](_0x2f6a3e):_0x2f6a3e)['join'](',\x20');_0x3c81d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x55b931)});}if(_0x1125de['length']){const _0x1faa45=_0x1125de['map'](_0x3d8791=>this['_attributeLabels']['has'](_0x3d8791)?this['_attributeLabels']['get'](_0x3d8791):_0x3d8791)['join'](',\x20');_0x3c81d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1faa45)});}return _0x3c81d4;}['_handleCustomCallbackDescription'](_0x22eefe){for(const _0x2ba8c4 of this['_customCallbacks']){const _0x26e502=_0x2ba8c4(_0x22eefe);if(_0x26e502&&'type'in _0x26e502)return _0x26e502;}}['_handleAttributeSuggestionDescription'](_0x42c622,_0x2b7b14){const _0x1d05fc=_0x2b7b14['data'],_0x3837b2=void 0x0===_0x1d05fc['newValue']?'removeFormat':'addFormat';_0x42c622['push']({'type':_0x3837b2,'key':_0x1d05fc['key']});}['_handleRenameSuggestionDescription'](_0x4c7ff7,_0x2baabb){_0x4c7ff7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2baabb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x364cc8,_0x8a9b5d,_0x21fc51){if(this['_addDescriptionItems'](_0x364cc8,_0x8a9b5d),_0x21fc51&&_0x21fc51['getFirstRange']()&&!_0x8a9b5d['getFirstRange']()['end']['isEqual'](_0x21fc51['getFirstRange']()['start'])){const _0x125925=_0x364cc8[_0x364cc8['length']-0x1],_0x27a85a='insertion'==_0x8a9b5d['type']?'add':'remove';_0x125925&&'text'==_0x125925['type']&&(_0x125925[_0x27a85a]+='\x0a');}}}class O extends _0xa897c8{['afterInit'](){const _0x3006ad=this['editor'],_0x5810c0=_0x3006ad['plugins']['get']('TrackChangesEditing');_0x3006ad['commands']['get']('showAIAssistant')&&_0x5810c0['enableCommand']('showAIAssistant');}}class E extends _0xa897c8{['afterInit'](){const _0x1b81c0=this['editor'],_0x1843c0=_0x1b81c0['locale'];if(!_0x1b81c0['plugins']['has']('AlignmentEditing'))return;const _0x52757f=_0x1b81c0['plugins']['get']('TrackChangesEditing');_0x52757f['enableDefaultAttributesIntegration']('alignment'),_0x52757f['registerBlockAttribute']('alignment'),_0x52757f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1843c0,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec65b=this['editor'],_0x3adfaf=_0x2ec65b['locale'];_0x2ec65b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545119=>{if('formatBlock'!=_0x545119['type'])return;const {data:_0x48ae47}=_0x545119;if(_0x48ae47&&'alignment'==_0x48ae47['commandName']){const _0x593c3f=_0x48ae47['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3adfaf,'*Format:*\x20%0',function(_0x4b9ec2){switch(_0x4b9ec2){case'left':return o(_0x3adfaf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3adfaf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3adfaf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3adfaf,'FORMAT_JUSTIFY_TEXT');}}(_0x593c3f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xa897c8{['afterInit'](){const _0x23c1d5=this['editor'],_0x473932=_0x23c1d5['plugins']['get']('TrackChangesEditing'),_0x2007a9=_0x23c1d5['locale'];for(const _0x165c63 of ti){if(!_0x23c1d5['plugins']['has'](_0x165c63))continue;const _0x25f939=_0x165c63['slice'](0x0,-0x7)['toLowerCase'](),_0x2a99f1='FORMAT_'+_0x25f939['toUpperCase']();_0x473932['enableDefaultAttributesIntegration'](_0x25f939),_0x473932['registerInlineAttribute'](_0x25f939),_0x473932['descriptionFactory']['registerAttributeLabel'](_0x25f939,o(_0x2007a9,_0x2a99f1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47340a=this['editor'],_0x461957=_0x47340a['locale'],_0x41af29=_0x47340a['plugins']['get']('TrackChangesEditing');function _0x5065d2(_0x5a56c0,_0x3a10b3){_0x41af29['descriptionFactory']['registerDescriptionCallback'](_0x5940fb=>{if('formatInline'!=_0x5940fb['type'])return;const {data:_0x2ba988}=_0x5940fb;return _0x2ba988&&_0x2ba988['commandName']===_0x5a56c0?_0x2ba988['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x461957,'*Format:*\x20%0',_0x3a10b3)}:{'type':'format','content':o(_0x461957,'*Remove\x20format:*\x20%0',_0x3a10b3)}:void 0x0;});}_0x5065d2('bold',o(_0x461957,'FORMAT_BOLD')),_0x5065d2('italic',o(_0x461957,'FORMAT_ITALIC')),_0x5065d2('underline',o(_0x461957,'FORMAT_UNDERLINE')),_0x5065d2('code',o(_0x461957,'FORMAT_CODE')),_0x5065d2('strikethrough',o(_0x461957,'FORMAT_STRIKETHROUGH')),_0x5065d2('subscript',o(_0x461957,'FORMAT_SUBSCRIPT')),_0x5065d2('superscript',o(_0x461957,'FORMAT_SUPERSCRIPT'));}}class U extends _0xa897c8{['afterInit'](){const _0x3ebf2a=this['editor'],_0x26af61=_0x3ebf2a['locale'];if(!_0x3ebf2a['plugins']['has']('BlockQuoteEditing'))return;const _0xcbd3c=_0x3ebf2a['plugins']['get']('TrackChangesEditing'),_0x26db0=this['editor']['commands']['get']('blockQuote');_0xcbd3c['enableCommand']('blockQuote',(_0x2e68c0,_0x4b5648={})=>{const _0x4e3be8=this['editor']['model']['document']['selection'],_0x2cb8ea=_0x4b5648&&void 0x0!==_0x4b5648['forceValue']?_0x4b5648['forceValue']:!_0x26db0['value'];let _0x26e302=[];if(_0x2cb8ea){const _0x5a6cc5=Array['from'](_0x4e3be8['getSelectedBlocks']())['filter'](_0x5ef677=>oo(_0x5ef677)||function(_0x4d3b11,_0x237f3a){const _0x1f6eb8=_0x237f3a['checkChild'](_0x4d3b11['parent'],'blockQuote'),_0x25a4bc=_0x237f3a['checkChild'](['$root','blockQuote'],_0x4d3b11);return _0x1f6eb8&&_0x25a4bc;}(_0x5ef677,this['editor']['model']['schema']));_0x26e302=to(_0x5a6cc5,_0x3ebf2a['model']);}else{const _0x12b137=Array['from'](_0x4e3be8['getSelectedBlocks']())['filter'](_0x460ec8=>oo(_0x460ec8));_0x26e302=to(_0x12b137,_0x3ebf2a['model']);}_0x3ebf2a['model']['change'](()=>{for(const _0x22724c of _0x26e302)_0xcbd3c['markBlockFormat'](_0x22724c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cb8ea}]});});}),_0xcbd3c['descriptionFactory']['registerDescriptionCallback'](_0x14b466=>{const {data:_0x4eea17}=_0x14b466;if(_0x4eea17&&'blockQuote'==_0x4eea17['commandName']){const _0x6b32cc=o(_0x26af61,'ELEMENT_BLOCK_QUOTE');return _0x4eea17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26af61,'*Set\x20format:*\x20%0',_0x6b32cc)}:{'type':'format','content':o(_0x26af61,'*Remove\x20format:*\x20%0',_0x6b32cc)};}});}}function oo(_0x1775e5){return'blockQuote'==_0x1775e5['parent']['name'];}class V extends _0xa897c8{['afterInit'](){const _0x1377fe=this['editor'],_0x146cad=_0x1377fe['locale'],_0x3c7293=_0x1377fe['plugins']['get']('TrackChangesEditing');_0x1377fe['plugins']['has']('BookmarkEditing')&&(_0x3c7293['enableCommand']('insertBookmark'),_0x3c7293['enableDefaultAttributesIntegration']('updateBookmark'),_0x3c7293['registerBlockAttribute']('bookmarkId'),_0x3c7293['descriptionFactory']['registerDescriptionCallback'](_0x2123ae=>{if('insertion'!=_0x2123ae['type']&&'deletion'!=_0x2123ae['type']&&'attribute'!=_0x2123ae['type'])return;const _0x5123fe=_0x2123ae['getContainedElement']();if(null==_0x5123fe)return;if(!_0x5123fe['is']('element','bookmark'))return;const _0x286f04=_0x5123fe['getAttribute']('bookmarkId');if('insertion'==_0x2123ae['type'])return{'type':'insertion','content':o(_0x146cad,'*Insert:*\x20%0','\x22'+_0x286f04+'\x22\x20'+o(_0x146cad,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2123ae['type'])return{'type':'deletion','content':o(_0x146cad,'*Remove:*\x20%0','\x22'+_0x286f04+'\x22\x20'+o(_0x146cad,'ELEMENT_BOOKMARK'))};const {data:_0x24e272}=_0x2123ae;if(!_0x24e272||'bookmarkId'!=_0x24e272['key'])return;return{'type':'format','content':o(_0x146cad,'*Set\x20bookmark:*\x20%0','\x22'+_0x24e272['newValue']+'\x22')};}));}}class F extends _0xa897c8{['afterInit'](){const _0x37e3c2=this['editor'];_0x37e3c2['plugins']['has']('CaseChange')&&(_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37e3c2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xa897c8{['afterInit'](){const _0x3d42cd=this['editor'];_0x3d42cd['commands']['get']('ckbox')&&_0x3d42cd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xa897c8{['afterInit'](){const _0x3d5ebb=this['editor'];if(!_0x3d5ebb['plugins']['has']('CodeBlock'))return;const _0x5081f1=_0x3d5ebb['plugins']['get']('TrackChangesEditing'),_0x4e7b93=_0x3d5ebb['locale'],_0x399e4e=_0x3d5ebb['config']['get']('codeBlock')['languages'],_0x4e53f5=_0x3d5ebb['commands']['get']('codeBlock');_0x5081f1['enableCommand']('indentCodeBlock'),_0x5081f1['enableCommand']('outdentCodeBlock'),_0x5081f1['enableCommand']('codeBlock',(_0xa6d8f6,_0x401580={})=>{const _0x225520=_0x3d5ebb['model'],_0x46a2ea=_0x3d5ebb['model']['document']['selection'],_0x2c8c7f=_0x401580&&void 0x0!==_0x401580['forceValue']?_0x401580['forceValue']:!_0x4e53f5['value'];let _0x38b523;_0x401580['language']||(_0x401580['language']=_0x399e4e[0x0]['language']),_0x38b523=_0x2c8c7f?Array['from'](_0x46a2ea['getSelectedBlocks']())['filter'](_0x5d4055=>co(_0x5d4055)||function(_0x103afc,_0x30a87f){if(_0x103afc['is']('rootElement')||_0x30a87f['isLimit'](_0x103afc))return!0x1;return _0x30a87f['checkChild'](_0x103afc['parent'],'codeBlock');}(_0x5d4055,_0x225520['schema'])):Array['from'](_0x46a2ea['getSelectedBlocks']())['filter'](_0x548663=>co(_0x548663));const _0x2e620f=to(_0x38b523,_0x225520);_0x225520['change'](()=>{for(const _0x5a191a of _0x2e620f)_0x5081f1['markBlockFormat'](_0x5a191a,{'commandName':'codeBlock','commandParams':[{..._0x401580,'forceValue':_0x2c8c7f}],'formatGroupId':'blockName'});});}),(_0x5081f1['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a943c=>o(_0x4e7b93,'ELEMENT_CODE_BLOCK',_0x5a943c)),_0x5081f1['descriptionFactory']['registerDescriptionCallback'](_0x86eb8a=>{if('formatBlock'!=_0x86eb8a['type'])return;const _0x35ca3e=_0x4e7b93['t'],{data:_0x4e956b}=_0x86eb8a;if(!_0x4e956b||'codeBlock'!=_0x4e956b['commandName'])return;const _0x3dd699=_0x4e956b['commandParams'][0x0]['language'],_0x5ed273=_0x35ca3e(_0x399e4e['find'](_0x45f9f5=>_0x45f9f5['language']===_0x3dd699)['label'])['toLowerCase']();return _0x4e956b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e7b93,'*Set\x20format:*\x20%0',o(_0x4e7b93,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ed273+')')}:{'type':'format','content':o(_0x4e7b93,'*Remove\x20format:*\x20%0',o(_0x4e7b93,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5cae6f){return'codeBlock'==_0x5cae6f['name'];}class J extends _0xa897c8{['afterInit'](){const _0x189eb3=this['editor'];if(!_0x189eb3['plugins']['has']('CommentsEditing'))return;_0x189eb3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x19502a,_0x4cf579,_0x508668){const _0x2517d4=[];for(const _0xb88b41 of _0x4cf579['getItems']())_0xb88b41['hasAttribute'](_0x19502a)&&_0x2517d4['push'](_0x508668['createRangeOn'](_0xb88b41));return _0x2517d4;}function De(_0x39a2f6,_0x4e3b60,{showActiveMarker:_0x3bbdd9=!0x0}={}){const _0x19a281=_0x39a2f6['plugins']['get']('TrackChangesEditing');return(_0x435576,_0x4ad735,_0x57f953)=>{if(!_0x57f953['consumable']['test'](_0x4ad735['markerRange'],_0x435576['name']))return;const _0x5f48a5=_0x4ad735['markerRange']['getWalker'](),_0x18089a=_0x4ad735['markerRange']['start'],_0xc6b447=_0x39a2f6['model']['schema'];let _0x42f82d=null,_0x40678d=null,_0x1966fa=!0x1,_0x299fbb=!0x1;for(const _0x1aaf0c of _0x5f48a5){const _0x3242b7=_0x1aaf0c['item'];_0x1966fa=_0x1966fa||_0xc6b447['isContent'](_0x3242b7);const _0x69735=_0x57f953['mapper']['toViewElement'](_0x3242b7);if(_0x69735&&_0x69735['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1aaf0c['type']&&(_0xc6b447['isBlock'](_0x3242b7)&&!_0xc6b447['isLimit'](_0x3242b7)&&(_0x3242b7['nextSibling']||_0x18089a['isAtEnd']?_0x42f82d&&_0x42f82d['parent']==_0x3242b7||(_0x42f82d=_0x3242b7,_0x12f7b5(_0x1aaf0c['previousPosition']),_0x299fbb=!0x0):_0x40678d=_0x40678d||_0x1aaf0c['previousPosition']));}function _0x12f7b5(_0x309d8a){const {id:_0x48f4e5,authorId:_0x4686a1}=_0x19a281['_splitMarkerName'](_0x4ad735['markerName']),_0x59eab7=_0x57f953['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e3b60,'data-suggestion':_0x48f4e5,'data-author-id':_0x4686a1}),_0x262843=_0x57f953['mapper']['toViewPosition'](_0x309d8a);_0x3bbdd9&&_0x19a281['activeMarkers']['includes'](_0x4ad735['markerName'])&&_0x57f953['writer']['addClass']('ck-suggestion-marker--active',_0x59eab7),_0x57f953['writer']['insert'](_0x262843,_0x59eab7),_0x57f953['mapper']['bindElementToMarker'](_0x59eab7,_0x4ad735['markerName']);}_0x1966fa||_0x299fbb||!_0x40678d||_0x12f7b5(_0x40678d);};}class K extends _0xa897c8{static get['requires'](){return[_0x5dedc8];}['init'](){const _0x850ec6=this['editor'],_0x24dfdc=_0x850ec6['plugins']['get']('TrackChangesEditing');_0x24dfdc['enableCommand']('delete');const _0x1b1ec9=_0x850ec6['commands']['get']('deleteForward');_0x24dfdc['enableCommand']('deleteForward',(_0x356457,_0x151f53={})=>{const _0x512bae=_0x850ec6['model']['createSelection'](_0x850ec6['model']['document']['selection']);_0x512bae['isCollapsed']&&_0x850ec6['model']['modifySelection'](_0x512bae,{'direction':'forward','unit':_0x151f53['unit']});const _0x4da34a=_0x512bae['getFirstRange'](),_0x202d7d=_0x1437b2['fromRange'](_0x4da34a);let _0x1c9b43;_0x356457(_0x151f53),_0x1c9b43='$graveyard'==_0x202d7d['root']['rootName']?_0x850ec6['model']['createRange'](_0x4da34a['start']):_0x850ec6['model']['createRange'](_0x202d7d['start'],_0x202d7d['end']),_0x202d7d['detach'](),_0x850ec6['model']['enqueueChange'](_0x1b1ec9['buffer']['batch'],_0x2e455a=>{_0x1b1ec9['buffer']['lock'](),_0x2e455a['setSelection'](_0x2e455a['createRange'](_0x1c9b43['end'])),_0x1b1ec9['buffer']['unlock']();});}),_0x850ec6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x850ec6,'merge'),{'priority':'high'}),_0x850ec6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x471ec8,_0x2241a8,_0x1b8ac8)=>{_0x1b8ac8['options']['showSuggestionHighlights']&&De(_0x850ec6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x471ec8,_0x2241a8,_0x1b8ac8);},{'priority':'high'}),_0x850ec6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f3282,_0x38f7dd,_0x44ca24)=>{const _0x45a3b7=_0x44ca24['mapper']['markerNameToElements'](_0x38f7dd['markerName']);if(_0x45a3b7){for(const _0x5e8d73 of _0x45a3b7)_0x5e8d73['is']('uiElement')&&(_0x44ca24['mapper']['unbindElementFromMarkerName'](_0x5e8d73,_0x38f7dd['markerName']),_0x44ca24['writer']['remove'](_0x5e8d73));}},{'priority':'high'});}}class H extends _0xa897c8{['afterInit'](){const _0x2b432e=this['editor'];if(!_0x2b432e['plugins']['has']('ListEditing'))return;const _0x55943c=_0x2b432e['locale'],_0x478c8c=_0x2b432e['plugins']['get']('TrackChangesEditing'),_0x961fe0=_0x2b432e['plugins']['has']('TodoListEditing'),_0x2d43e3=!!_0x2b432e['config']['get']('list.multiBlock');function _0xe862eb(_0x2ef9c6){return{'type':'format','content':''+o(_0x55943c,'*Set\x20format:*\x20%0',_0x2ef9c6)};}function _0x4e263d(_0x1a7ca6){return{'type':'format','content':''+o(_0x55943c,'*Remove\x20format:*\x20%0',_0x1a7ca6)};}_0x478c8c['enableDefaultAttributesIntegration']('numberedList'),_0x478c8c['enableDefaultAttributesIntegration']('bulletedList'),_0x478c8c['enableDefaultAttributesIntegration']('customNumberedList'),_0x478c8c['enableDefaultAttributesIntegration']('customBulletedList'),_0x478c8c['enableDefaultAttributesIntegration']('indentList'),_0x478c8c['enableDefaultAttributesIntegration']('outdentList'),_0x478c8c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x478c8c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x478c8c['registerBlockAttribute']('listItemId'),_0x478c8c['registerBlockAttribute']('listType'),_0x478c8c['registerBlockAttribute']('listIndent'),_0x2d43e3&&(_0x478c8c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x478c8c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x961fe0&&(_0x478c8c['enableDefaultAttributesIntegration']('todoList'),_0x478c8c['enableDefaultAttributesIntegration']('checkTodoList'),_0x478c8c['registerBlockAttribute']('todoListChecked'),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x109a95=>{const {data:_0x156f6f}=_0x109a95;if(_0x156f6f&&'todoListChecked'==_0x156f6f['key'])return{'type':'format','content':_0x156f6f['newValue']?o(_0x55943c,'*Check\x20item*'):o(_0x55943c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1cc7da=>{if(_0x1cc7da['batch']['isUndo'])return!0x1;let _0x3eaf21=!0x1;const _0x43c51d=_0x478c8c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aee47=>'todoListChecked'===_0x478c8c['_getAttributeKey'](_0x5aee47));for(const _0x2931f9 of _0x43c51d){'todo'!=_0x2931f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x478c8c['_findSuggestions'](_0x2931f9['getFirstRange'](),'attribute')['find'](_0x12e138=>'listType'===_0x478c8c['_getAttributeKey'](_0x12e138['suggestion']))||(_0x1cc7da['removeMarker'](_0x2931f9['getFirstMarker']()),_0x3eaf21=!0x0));}return _0x3eaf21;})),_0x478c8c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x55943c,'FORMAT_INDENT'));const _0x1ce256={'type':'format','content':''};_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x1b8c93=>{const {data:_0x68efd5}=_0x1b8c93;if(!_0x68efd5||'listType'!=_0x68efd5['key'])return;let _0x3d50c3=_0x1b8c93['head'];for(;_0x3d50c3;){if(_0x3d50c3['data']&&(('listStyle'==_0x3d50c3['data']['key']||'listMarkerStyle'==_0x3d50c3['data']['key'])&&(_0x3d50c3['data']['newValue']&&'default'!=_0x3d50c3['data']['newValue']||'default'!=_0x3d50c3['data']['oldValue']&&!_0x68efd5['newValue'])||!_0x2d43e3&&_0x3d50c3['data']['key']==m))return _0x1ce256;_0x3d50c3=_0x3d50c3['next'];}if(null==_0x68efd5['newValue'])switch(_0x68efd5['oldValue']){case'bulleted':return _0x4e263d(o(_0x55943c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e263d(o(_0x55943c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e263d(o(_0x55943c,'ELEMENT_TODO_LIST'));}switch(_0x68efd5['newValue']){case'bulleted':return _0xe862eb(o(_0x55943c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe862eb(o(_0x55943c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe862eb(o(_0x55943c,'ELEMENT_TODO_LIST'));}}),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x14dc38=>{const {data:_0x2267ba}=_0x14dc38;if(_0x2267ba&&'listIndent'==_0x2267ba['key'])return null==_0x2267ba['newValue']||null==_0x2267ba['oldValue']&&0x0==_0x2267ba['newValue']?_0x1ce256:void 0x0;}),_0x478c8c['descriptionFactory']['registerDescriptionCallback'](_0x5f3f80=>{if('attribute'!=_0x5f3f80['type'])return;const {data:_0x122844}=_0x5f3f80;if(!_0x122844||'listItemId'!=_0x122844['key'])return;const _0x337759=Te(_0x5f3f80);return'newValue'==_0x337759?{'type':'format','content':o(_0x55943c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x337759?{'type':'format','content':o(_0x55943c,'*Split:*\x20list\x20item')}:_0x1ce256;}),_0x2b432e['model']['document']['registerPostFixer'](_0x322966=>this['listItemIdFixer'](_0x322966)),_0x2b432e['model']['document']['registerPostFixer'](_0x51cb99=>this['noTrackChangesFixer'](_0x51cb99)),_0x2b432e['model']['document']['on']('change:data',(_0x3c8f66,_0x36ec60)=>{if(_0x36ec60['isUndo']||!_0x36ec60['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x326f30){if(_0x326f30['batch']['isUndo']||!_0x326f30['batch']['isLocal'])return!0x1;let _0x3e1316=!0x1;const _0x5f10d7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26a5b3=>_0x26a5b3['data']&&'listItemId'==_0x26a5b3['data']['key'])['filter'](_0x5d968d=>_0x5d968d['data']['newValue']&&_0x5d968d['data']['oldValue']);for(const _0xc3a4ad of _0x5f10d7)Te(_0xc3a4ad)||(_0x326f30['removeMarker'](_0xc3a4ad['getFirstMarker']()),_0x3e1316=!0x0);return _0x3e1316;}['noTrackChangesFixer'](_0x5f184c){if(_0x5f184c['batch']['isUndo']||!_0x5f184c['batch']['isLocal'])return!0x1;const _0x3b02c8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3b02c8['trackChangesCommand']['value'])return!0x1;let _0x2afa83=!0x1;const _0x508db1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x321ddf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5dca8d=>'attribute'==_0x5dca8d['type'])['filter'](_0x47d10e=>_0x508db1['includes'](_0x47d10e['attributeKey']));if(0x0==_0x321ddf['length'])return _0x2afa83;for(const _0x25e4a3 of _0x321ddf){const _0x38d782=_0x3b02c8['_findSuggestions'](_0x25e4a3['range'],'attribute')['filter'](_0x5ab31b=>!_0x5ab31b['meta']['isNextTo'])['map'](_0x2a4e=>_0x2a4e['suggestion'])['filter'](_0x21551a=>{const _0x4de543=_0x3b02c8['_getAttributeKey'](_0x21551a);return _0x508db1['includes'](_0x4de543);});if(_0x38d782['length']){for(const _0x33446a of _0x38d782)_0x5f184c['removeMarker'](_0x33446a['getFirstMarker']());_0x2afa83=!0x0;}}return _0x2afa83;}['assureChains'](){const _0x167d8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f9d0a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xf38806;const _0x399b9d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e0dcb=>{if(_0x3e0dcb['data']['oldRange']||!_0x3e0dcb['data']['newRange'])return null;if(!_0x3e0dcb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x54a6d2}=_0x167d8e['_splitMarkerName'](_0x3e0dcb['name']);if(!_0x167d8e['hasSuggestion'](_0x54a6d2))return null;const _0x5b8241=_0x167d8e['getSuggestion'](_0x54a6d2);return _0x3f9d0a['includes'](_0x5b8241['data']['key']);})['map'](_0x5c0414=>{const {id:_0x5309c8}=_0x167d8e['_splitMarkerName'](_0x5c0414['name']),_0x19651d=_0x167d8e['getSuggestion'](_0x5309c8);return _0xf38806=_0x19651d['attributes']['groupId'],_0x19651d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x399b9d['size'])return;const _0x3dc55b=_0x167d8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5851d5=>'attribute'==_0x5851d5['type']&&_0x5851d5['data']&&_0x3f9d0a['includes'](_0x5851d5['data']['key'])&&_0x5851d5['attributes']['groupId']!=_0xf38806)['map'](_0x44b117=>({'listItem':_0x44b117['getFirstRange']()['start']['nodeAfter'],'groupId':_0x44b117['attributes']['groupId']})),_0x30dd47=new Set();for(const {groupId:_0x3b6cff,listItem:_0x5401fd}of _0x3dc55b)_0x399b9d['has'](_0x5401fd)&&_0x30dd47['add'](_0x3b6cff);for(const _0x160019 of _0x167d8e['getSuggestions']())_0x30dd47['has'](_0x160019['attributes']['groupId'])&&_0x160019['setAttribute']('groupId',_0xf38806);}['_supportLegacySuggestions'](){const _0xbdb079=this['editor'],_0x4a2b46=_0xbdb079['locale'],_0xe60a68=_0xbdb079['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xe60a68['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57c11c,_0x39ccc9){const _0x2ace34=[];for(let _0x59fdeb of _0x57c11c)_0x59fdeb['start']['nodeAfter']===_0x59fdeb['end']['parent']&&(_0x59fdeb=_0xbdb079['model']['createRange'](_0xbdb079['model']['createPositionAt'](_0x59fdeb['start']['nodeAfter'],0x0))),_0x2ace34['push'](_0x59fdeb);_0xbdb079['model']['change'](_0x5163fe=>{const _0x469924=_0xbdb079['model']['document']['selection'],_0x553972=Array['from'](_0x469924['getRanges']())['map'](_0x4a6304=>_0x1437b2['fromRange'](_0x4a6304));_0x5163fe['setSelection'](_0x2ace34),_0xbdb079['commands']['get'](_0x39ccc9['commandName'])['refresh'](),_0x39ccc9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xbdb079['execute'](_0x39ccc9['commandName'],..._0x39ccc9['commandParams']),_0x5163fe['setSelection'](_0x553972);for(const _0x433722 of _0x553972)_0x433722['detach']();});}),_0xe60a68['descriptionFactory']['registerElementLabel'](function(_0x509689){const _0x3128b2=!_0xbdb079['model']['schema']['isObject'](_0x509689),_0x4a1b84=_0x509689['previousSibling'],_0x2d4eb0=_0x509689['nextSibling'],_0x2abad0=_0x509689['getAttribute']('listItemId'),_0x1d65be=!_0x4a1b84||_0x4a1b84['getAttribute']('listItemId')!==_0x2abad0,_0x44f9da=!_0x2d4eb0||_0x2d4eb0['getAttribute']('listItemId')!==_0x2abad0;return _0x3128b2&&Boolean(_0x2abad0)&&_0x1d65be&&_0x44f9da;},_0x4ff37b=>o(_0x4a2b46,'ELEMENT_LIST_ITEM',_0x4ff37b));}['_registerLegacyDescription'](){const _0xb66872=this['editor'],_0x309f61=_0xb66872['locale'];function _0x22123f(_0x39e61f){const _0x261b2e=_0xb66872['commands']['get']('bulletedList')['value'],_0x31fefd=_0xb66872['commands']['get']('numberedList')['value'];return'numberedList'===_0x39e61f?_0x261b2e:_0x31fefd;}_0xb66872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4448b1){if('formatBlock'!=_0x4448b1['type'])return;const {data:_0x5a3ac2}=_0x4448b1;if(!_0x5a3ac2)return;let _0x39335b,_0x3771b2,_0x43119e,_0x3faa0d;switch(_0x5a3ac2['commandName']){case'bulletedList':_0x43119e=_0x5a3ac2['commandParams'][0x0]['forceValue'],_0x3faa0d=_0x22123f(_0x5a3ac2['commandName']),_0x39335b=_0x43119e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3faa0d&&_0xb66872['config']['get']('list.multiBlock')||(_0x39335b='*Change\x20to:*\x20%0'),_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43119e=_0x5a3ac2['commandParams'][0x0]['forceValue'],_0x3faa0d=_0x22123f(_0x5a3ac2['commandName']),_0x39335b=_0x43119e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3faa0d&&_0xb66872['config']['get']('list.multiBlock')||(_0x39335b='*Change\x20to:*\x20%0'),_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x39335b='*Indent:*\x20%0',_0x3771b2={'type':'format','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x39335b=function(_0x497fc5){const _0x1777ac=_0x497fc5['getFirstRange']();let _0x257d4e=_0x1777ac['start']['nodeAfter'];for(;_0x257d4e&&_0x1777ac['containsItem'](_0x257d4e);){if(_0x257d4e['getAttribute']('listIndent')>0x0)return!0x1;_0x257d4e=_0x257d4e['nextSibling'];}return!0x0;}(_0x4448b1)?o(_0x309f61,'*Format:*\x20remove\x20from\x20%0',o(_0x309f61,function(_0x1833e9){return'ELEMENT_'+_0x1833e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4448b1))):o(_0x309f61,'*Outdent:*\x20%0',o(_0x309f61,'ELEMENT_LIST_ITEM')),_0x3771b2={'type':'format','content':_0x39335b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a3ac2['multipleBlocks']&&(_0x39335b='*Merge:*\x20%0',_0x3771b2={'type':'deletion','content':o(_0x309f61,_0x39335b,o(_0x309f61,'ELEMENT_LIST_ITEM'))});}return _0x3771b2;});}}function Te(_0x4a99d9){let _0x1fef41=_0x4a99d9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1fef41;){const _0x1682ab=_0x1fef41['getAttribute']('listItemId');if(!_0x1682ab)return!0x1;if(_0x1682ab==_0x4a99d9['data']['newValue'])return'newValue';if(_0x1682ab==_0x4a99d9['data']['oldValue'])return'oldValue';_0x1fef41=_0x1fef41['previousSibling'];}return!0x1;}class q extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xe65c4c=this['editor']['config']['get']('list.properties'),_0x1de8a0=this['editor']['plugins']['get']('TrackChangesEditing');_0xe65c4c['styles']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listStyle'),_0x1de8a0['registerBlockAttribute']('listStyle')),_0xe65c4c['reversed']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listReversed'),_0x1de8a0['registerBlockAttribute']('listReversed')),_0xe65c4c['startIndex']&&(_0x1de8a0['enableDefaultAttributesIntegration']('listStart'),_0x1de8a0['registerBlockAttribute']('listStart'));const _0x1ccec2={'type':'format','content':''};_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43f394=this['editor']['locale'];_0x1de8a0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43f394,'FORMAT_LIST_REVERSED')),_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](_0x1e761b=>{const {data:_0x685320}=_0x1e761b;if(_0x685320&&'listReversed'==_0x685320['key'])return null==_0x685320['newValue']||0x0==_0x685320['newValue']&&null==_0x685320['oldValue']?_0x1ccec2:void 0x0;}),_0x1de8a0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43f394,'FORMAT_LIST_START')),_0x1de8a0['descriptionFactory']['registerDescriptionCallback'](_0x2cae02=>{const {data:_0x3629ec}=_0x2cae02;if(_0x3629ec&&'listStart'==_0x3629ec['key'])return null==_0x3629ec['newValue']||0x1==_0x3629ec['newValue']&&null==_0x3629ec['oldValue']?_0x1ccec2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x145b7b=>{if(_0x145b7b['batch']['isUndo'])return!0x1;let _0xe86770=!0x1;const _0x55872d=_0x1de8a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bbe5b=>{const _0x5ca11c=_0x1de8a0['_getAttributeKey'](_0x5bbe5b);return'listStart'==_0x5ca11c||'listReversed'==_0x5ca11c;});for(const _0x37c122 of _0x55872d){const _0x1af6f9=_0x37c122['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1af6f9||'customNumbered'==_0x1af6f9)continue;_0x1de8a0['_findSuggestions'](_0x37c122['getFirstRange'](),'attribute')['find'](_0x1876ad=>'listType'==_0x1de8a0['_getAttributeKey'](_0x1876ad['suggestion']))||(_0x145b7b['removeMarker'](_0x37c122['getFirstMarker']()),_0xe86770=!0x0);}return _0xe86770;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5d7517){const _0x4e29c1=this['editor']['locale'],{data:_0x3498f3}=_0x5d7517,_0x438208={'type':'format','content':''};if(!_0x3498f3||'listStyle'!=_0x3498f3['key'])return;if(!_0x3498f3['oldValue'])return'default'==_0x3498f3['newValue']?_0x438208:{'type':'format','content':''+o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['newValue'])))};if(!_0x3498f3['newValue']){if('default'==_0x3498f3['oldValue'])return _0x438208;let _0x3b48fe=_0x5d7517['head'];for(;_0x3b48fe;){if(_0x3b48fe['data']&&'listType'==_0x3b48fe['data']['key']&&_0x3b48fe['data']['newValue'])return _0x438208;_0x3b48fe=_0x3b48fe['next'];}return{'type':'format','content':''+o(_0x4e29c1,'*Remove\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['oldValue'])))};}if('default'!=_0x3498f3['newValue'])return{'type':'format','content':''+o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,this['_getTranslationKeyForListStyle'](_0x3498f3['newValue'])))};let _0x761dd5=_0x5d7517['head'];for(;_0x761dd5;){if(_0x761dd5['data']&&'listType'==_0x761dd5['data']['key']&&_0x761dd5['data']['newValue']&&_0x761dd5['data']['oldValue'])return _0x438208;_0x761dd5=_0x761dd5['next'];}return{'type':'format','content':o(_0x4e29c1,'*Set\x20format:*\x20%0',o(_0x4e29c1,'ELEMENT_'+_0x5d7517['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3c6db1=this['editor'],_0x3a24b9=_0x3c6db1['locale'];_0x3c6db1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f492a=>{if('formatBlock'!=_0x5f492a['type'])return;const {data:_0xc4ccb8}=_0x5f492a;if(!_0xc4ccb8)return;let _0x5880e4,_0x31608b;switch(_0xc4ccb8['commandName']){case'listStyle':_0x5880e4='*Change\x20to:*\x20%0',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4,o(_0x3a24b9,this['_getTranslationKeyForListStyle'](_0xc4ccb8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5880e4=_0xc4ccb8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4)};break;case'listStart':_0x5880e4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31608b={'type':'format','content':o(_0x3a24b9,_0x5880e4,_0xc4ccb8['commandParams'][0x0]['startIndex'])};}return _0x31608b;});}['_getTranslationKeyForListStyle'](_0x5c2036){return'ELEMENT_'+function(_0x1205f7){if(Se['includes'](_0x1205f7))return'bulleted';if(_e['includes'](_0x1205f7))return'numbered';return null;}(_0x5c2036)['toUpperCase']()+'_LIST_'+_0x5c2036['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xa897c8{['afterInit'](){const _0x1980fb=this['editor'];_0x1980fb['commands']['get']('emoji')&&_0x1980fb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xa897c8{static get['requires'](){return[_0x5b8dcc];}['init'](){const _0x5b0c94=this['editor'],_0xb7e7f4=_0x5b0c94['plugins']['get']('TrackChangesEditing'),_0x2141ac=_0x5b0c94['commands']['get']('enter');_0xb7e7f4['enableCommand']('enter',()=>{_0x5b0c94['model']['change'](_0x3a6849=>{const _0x2ad66c=_0x5b0c94['model']['document']['selection'],_0x473f69=_0x2ad66c['getFirstPosition'](),_0x19dcaf=_0x1437b2['fromRange'](_0x2ad66c['getFirstRange']());if(_0x2141ac['enterBlock'](_0x3a6849)){const _0x2eab70=_0x5b0c94['model']['createPositionAt'](_0x473f69['parent']['nextSibling'],0x0),_0x8812db=_0x3a6849['createRange'](_0x473f69,_0x2eab70);_0xb7e7f4['markInsertion'](_0x8812db);}else _0x3a6849['setSelection'](_0x3a6849['createRange'](_0x19dcaf['end']));_0x19dcaf['detach'](),_0x2141ac['fire']('afterExecute',{'writer':_0x3a6849});});}),_0x5b0c94['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5b0c94,'split'),{'priority':'high'}),_0x5b0c94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x938178,_0x302443,_0x249dde)=>{const _0xd5a2a8=_0x249dde['mapper']['markerNameToElements'](_0x302443['markerName']);if(_0xd5a2a8){for(const _0x2ea322 of _0xd5a2a8)_0x2ea322['hasClass']('ck-suggestion-marker-split')&&(_0x249dde['mapper']['unbindElementFromMarkerName'](_0x2ea322,_0x302443['markerName']),_0x249dde['writer']['remove'](_0x2ea322));}},{'priority':'high'}),_0x5b0c94['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d9cd0,_0x4a8b76,_0x242686)=>{_0x242686['options']['showSuggestionHighlights']&&De(_0x5b0c94,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d9cd0,_0x4a8b76,_0x242686);},{'priority':'high'});}}class Q extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36dd03=this['editor']['plugins']['get']('TrackChangesEditing');_0x36dd03['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36dd03['enableCommand']('findNext'),_0x36dd03['enableCommand']('findPrevious'),_0x36dd03['enableCommand']('replace'),_0x36dd03['enableCommand']('replaceAll');}['handleFindCommand'](_0x30ab27,_0x51a3f2,_0x114eb2={}){const _0x2d263a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30ab27(_0x276018=>{let _0x27dd16=('string'==typeof _0x51a3f2?_0x2d263a['findByTextCallback'](_0x51a3f2,_0x114eb2):_0x51a3f2)(_0x276018);Array['isArray'](_0x27dd16)&&(_0x27dd16={'results':_0x27dd16,'searchText':'string'==typeof _0x51a3f2?_0x51a3f2:''});const _0x20b86b=_0x27dd16['results']['filter'](_0x7f3b97=>!0x1===this['_isInDeletionRange'](_0x7f3b97,_0x276018['item']));return{..._0x27dd16,'results':_0x20b86b};},_0x114eb2);}['_isInDeletionRange'](_0x193c43,_0x582757){const _0x1a4728=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x582757,_0x193c43['start']),this['editor']['model']['createPositionAt'](_0x582757,_0x193c43['end']));for(const _0x96ec8b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1a4728['getIntersection'](_0x96ec8b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xa897c8{['afterInit'](){const _0x1e2c7d=this['editor']['locale'],_0x310438=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4b8929,commandName:_0x30a84f}of eo)this['editor']['plugins']['has'](_0x4b8929)&&(_0x310438['enableDefaultAttributesIntegration'](_0x30a84f),_0x310438['registerInlineAttribute'](_0x30a84f));_0x310438['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1e2c7d,'FORMAT_FONT_SIZE')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1e2c7d,'FORMAT_FONT_FAMILY')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1e2c7d,'FORMAT_FONT_COLOR')),_0x310438['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1e2c7d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3559c5=this['editor'],_0x12ba2c=_0x3559c5['locale'];_0x3559c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d3fe=>{const _0x3c1ace=_0x12ba2c['t'];if('formatInline'!=_0x51d3fe['type'])return;const {data:_0x352c11}=_0x51d3fe;if(null!=_0x352c11){if('fontSize'==_0x352c11['commandName']){const _0x51cc51=_0x352c11['commandParams'][0x0]['value'];if(_0x51cc51){const _0x3081d5=_0x3c1ace(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xc97caa=>_0xc97caa['model']==_0x51cc51)['title'])['toLowerCase']();return{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20size:*\x20%0',_0x3081d5)};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x352c11['commandName']){const _0x1e8d36=_0x352c11['commandParams'][0x0]['value'];return _0x1e8d36?{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20family:*\x20%0',_0x1e8d36)}:{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x352c11['commandName']){const _0x2ca9c4=_0x352c11['commandParams'][0x0]['value'];if(_0x2ca9c4){const _0x33e46f=_0x416d79(this['editor']['config']['get']('fontColor.colors'))['find'](_0x47ca92=>_0x47ca92['model']==_0x2ca9c4);let _0x2b0741=_0x2ca9c4,_0x28f314='';return _0x33e46f&&(_0x2b0741=_0x33e46f['label'],_0x28f314=_0x3c1ace(_0x2b0741)['toLowerCase']()),{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20color:*\x20%0',_0x28f314)['trim'](),'color':{'value':_0x2ca9c4,'title':_0x28f314||_0x2b0741}};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x352c11['commandName']){const _0x372e0d=_0x352c11['commandParams'][0x0]['value'];if(_0x372e0d){const _0x35f6ea=_0x416d79(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49cb28=>_0x49cb28['model']==_0x372e0d);let _0xd66541=_0x372e0d,_0x16f661='';return _0x35f6ea&&(_0xd66541=_0x35f6ea['label'],_0x16f661=_0x3c1ace(_0xd66541)['toLowerCase']()),{'type':'format','content':o(_0x12ba2c,'*Set\x20font\x20background\x20color:*\x20%0',_0x16f661)['trim'](),'color':{'value':_0x372e0d,'title':_0x16f661||_0xd66541}};}return{'type':'format','content':o(_0x12ba2c,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xa897c8{['afterInit'](){const _0x44e2fe=this['editor'],_0x422247=_0x44e2fe['plugins']['get']('TrackChangesEditing'),_0x378272=_0x44e2fe['commands']['get']('copyFormat'),_0x2e25ba=_0x44e2fe['commands']['get']('pasteFormat');_0x378272&&_0x2e25ba&&(_0x422247['enableDefaultAttributesIntegration']('pasteFormat'),_0x422247['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4fb8c2=this['editor'],_0x202fe0=_0x4fb8c2['locale'];_0x4fb8c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ee72a=>{if('formatBlock'!=_0x2ee72a['type']&&'formatInline'!=_0x2ee72a['type'])return;const {data:_0x107e5b}=_0x2ee72a;if(_0x107e5b&&'pasteFormat'===_0x107e5b['commandName']){const _0x125961=[],_0x214cc3=_0x107e5b['commandParams'][0x0];for(const [_0x163b0d,_0xe97a3c]of Object['entries'](_0x214cc3))_0x125961['push'](ro(_0x4fb8c2,_0x163b0d,_0xe97a3c));return _0x125961['length']?{'type':'format','content':o(_0x202fe0,'*Set\x20format\x20to:*\x20%0',_0x125961['join'](',\x20'))}:{'type':'format','content':o(_0x202fe0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x9264a0,_0xa3df2d,_0x1d3fdd){const _0x5f3a08=_0x9264a0['locale']['t'],_0x423945=_0xa3df2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x52331d=_0x5f3a08(_0x423945['charAt'](0x0)['toUpperCase']()+_0x423945['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d3fdd)return _0x52331d;if('fontColor'===_0xa3df2d||'fontBackgroundColor'===_0xa3df2d){const _0x49c150=_0x416d79(_0x9264a0['config']['get']('fontColor.colors'))['find'](_0x51b51a=>_0x51b51a['model']==_0x1d3fdd);return _0x52331d+'\x20('+(_0x49c150?_0x5f3a08(_0x49c150['label'])['toLowerCase']():_0x1d3fdd)+')';}if('fontSize'===_0xa3df2d&&isNaN(parseFloat(_0x1d3fdd))){const _0x5ae0e2=_0x9264a0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9264a0['config']['get']('fontSize.options'))['find'](_0x57600f=>_0x57600f['model']==_0x1d3fdd);return _0x52331d+'\x20('+(_0x5ae0e2?_0x5f3a08(_0x5ae0e2['title'])['toLowerCase']():_0x1d3fdd)+')';}return _0x52331d+'\x20('+_0x1d3fdd+')';}class Z extends _0xa897c8{['_headingOptions'];['afterInit'](){const _0x11cc2f=this['editor'];if(!_0x11cc2f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11cc2f['config']['get']('heading.options');const _0x510257=_0x11cc2f['locale'],_0x1219d9=_0x11cc2f['plugins']['get']('TrackChangesEditing');_0x1219d9['enableDefaultAttributesIntegration']('heading');for(const _0x5a6dd1 of this['_headingOptions'])'paragraph'!=_0x5a6dd1['model']&&_0x1219d9['descriptionFactory']['registerElementLabel'](_0x5a6dd1['model'],_0x2fee8b=>{const _0x52085e=this['_getHeadingLevel'](_0x5a6dd1['model']);return null!==_0x52085e?_0x2cc690(_0x2fee8b,_0x52085e):_0x4af41d(_0x2fee8b,_0x5a6dd1['title']);});function _0x2cc690(_0x31ff4c,_0x4f541a){return o(_0x510257,'ELEMENT_HEADING',[_0x31ff4c,_0x4f541a]);}function _0x4af41d(_0x5144a2,_0x597a6c){return o(_0x510257,'ELEMENT_HEADING_CUSTOM',[_0x5144a2,_0x597a6c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e787e=this['editor'],_0x1e1d4e=_0x4e787e['locale'];function _0x618b9c(_0x5d870f,_0x5a5022){return o(_0x1e1d4e,'ELEMENT_HEADING_CUSTOM',[_0x5d870f,_0x5a5022]);}_0x4e787e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb5b1=>{if('formatBlock'!=_0x3eb5b1['type'])return;const {data:_0x27c7c0}=_0x3eb5b1;if(_0x27c7c0&&'heading'==_0x27c7c0['commandName']){const _0x5b1b09=_0x27c7c0['commandParams'][0x0]['value'],_0x5361cf=this['_getHeadingLevel'](_0x5b1b09);if(null!==_0x5361cf)return{'type':'format','content':o(_0x1e1d4e,'*Change\x20to:*\x20%0',(_0x347c26=0x1,_0x380602=_0x5361cf,o(_0x1e1d4e,'ELEMENT_HEADING',[_0x347c26,_0x380602])))};const _0x1c6a5a=this['_headingOptions']['find'](_0x83b5cb=>_0x83b5cb['model']===_0x5b1b09)['title'];return{'type':'format','content':o(_0x1e1d4e,'*Change\x20to:*\x20%0',_0x618b9c(0x1,_0x1c6a5a))};}var _0x347c26,_0x380602;});}['_getHeadingLevel'](_0x366c0d){const _0x48095d=_0x366c0d['match'](/^heading(\d+)/);if(_0x48095d)return _0x48095d[0x1];const _0x500e3f=this['_headingOptions']?.['find'](_0x1265bc=>_0x1265bc['model']==_0x366c0d);if(_0x500e3f&&_0x500e3f['view']){const _0x1cfc87=_0x500e3f['view'],_0x28114b=(_0x1cfc87['name']??_0x1cfc87)['match'](/^h(\d+)/);if(_0x28114b)return _0x28114b[0x1];}return null;}}class tt extends _0xa897c8{['afterInit'](){const _0x1abc26=this['editor'];if(!_0x1abc26['plugins']['has']('HighlightEditing'))return;const _0x37bb62=_0x1abc26['plugins']['get']('TrackChangesEditing'),_0x5771d2=_0x1abc26['locale'];_0x37bb62['enableDefaultAttributesIntegration']('highlight'),_0x37bb62['registerInlineAttribute']('highlight'),_0x37bb62['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5771d2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f4f6c=this['editor'],_0x1c76c7=_0x9f4f6c['locale'];_0x9f4f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd22a5=>{if('formatInline'!=_0xbd22a5['type'])return;const {data:_0xfe945c}=_0xbd22a5;if(_0xfe945c&&'highlight'==_0xfe945c['commandName']){const _0x9c82bf=_0x1c76c7['t'],_0xa82dc7=_0xfe945c['commandParams'][0x0]['value'];if(_0xa82dc7){const _0x19e3bb=_0x9f4f6c['config']['get']('highlight.options')['find'](_0x7b2c16=>_0x7b2c16['model']==_0xa82dc7),_0xd9e631=_0x9c82bf(_0x19e3bb['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c76c7,'*Set\x20highlight:*\x20%0',_0xd9e631),'color':{'value':_0x19e3bb['color'],'title':_0x19e3bb['title']}};}return{'type':'format','content':o(_0x1c76c7,'*Remove\x20highlight*',o(_0x1c76c7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xa897c8{['afterInit'](){const _0x3cc735=this['editor'];if(!_0x3cc735['plugins']['has']('HorizontalLineEditing'))return;_0x3cc735['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ada8a=_0x3cc735['plugins']['get']('TrackChangesEditing'),_0x2142ce=_0x3cc735['locale'];_0x1ada8a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3aee8e=>o(_0x2142ce,'ELEMENT_HORIZONTAL_LINE',_0x3aee8e)),_0x3cc735['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x22816f,{writer:_0x4e3858,options:_0x2fb4a8})=>{if(!_0x2fb4a8['showSuggestionHighlights'])return null;const _0x59a57a=_0x4e3858['createContainerElement']('div'),_0x1adfd9=_0x4e3858['createEmptyElement']('hr');return _0x4e3858['addClass']('ck-horizontal-line',_0x59a57a),_0x4e3858['insert'](_0x4e3858['createPositionAt'](_0x59a57a,0x0),_0x1adfd9),_0x59a57a;},'converterPriority':'high'});}}class nt extends _0xa897c8{['afterInit'](){const _0x5710f6=this['editor'];if(!_0x5710f6['plugins']['has']('HtmlEmbed'))return;const _0x36100b=_0x5710f6['plugins']['get']('TrackChangesEditing'),_0x11ce90=_0x5710f6['locale'];_0x36100b['descriptionFactory']['registerElementLabel']('rawHtml',_0xcb0423=>o(_0x11ce90,'ELEMENT_HTML_EMBED',_0xcb0423)),_0x36100b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x36100b['registerBlockAttribute']('value'),_0x36100b['descriptionFactory']['registerDescriptionCallback'](_0x13f399=>{if('attribute'!=_0x13f399['type'])return;const {data:_0x2eb34a}=_0x13f399;if(_0x2eb34a&&'value'==_0x2eb34a['key']&&_0x13f399['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a9221=o(_0x11ce90,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x11ce90,'*Change\x20%0\x20content*',_0x3a9221)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5032f8=this['editor'],_0xaf9913=_0x5032f8['locale'];_0x5032f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28f85d=>{if('formatBlock'!=_0x28f85d['type'])return;const {data:_0x3c8f6f}=_0x28f85d;if(_0x3c8f6f&&'htmlEmbed'==_0x3c8f6f['commandName']){const _0x166414=o(_0xaf9913,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xaf9913,'*Change\x20%0\x20content*',_0x166414)};}});}}class et extends _0xa897c8{['afterInit'](){const _0x3e9fdd=this['editor'];if(!_0x3e9fdd['plugins']['has']('ImageEditing'))return;const _0x44af72=_0x3e9fdd['plugins']['get']('TrackChangesEditing'),_0x1c1501=_0x3e9fdd['plugins']['get']('ImageUtils'),_0x337b95=_0x3e9fdd['locale'];_0x44af72['enableCommand']('insertImage'),_0x44af72['descriptionFactory']['registerElementLabel']('imageBlock',_0x4da56b=>o(_0x337b95,'ELEMENT_IMAGE',_0x4da56b)),_0x44af72['descriptionFactory']['registerElementLabel']('imageInline',_0x5a9d79=>o(_0x337b95,'ELEMENT_INLINE_IMAGE',_0x5a9d79)),_0x44af72['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x337b95,'ELEMENT_CAPTION')),_0x3e9fdd['plugins']['has']('ImageUploadEditing')&&_0x44af72['enableCommand']('uploadImage'),_0x3e9fdd['plugins']['has']('ImageBlockEditing')&&_0x3e9fdd['plugins']['has']('ImageInlineEditing')&&(_0x44af72['enableCommand']('imageTypeInline',(_0x47a300,_0x2319de)=>{const _0x266a3b=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']);_0x3e9fdd['model']['change'](()=>{_0x44af72['markBlockFormat'](_0x266a3b,{'commandName':'imageTypeInline','commandParams':[_0x2319de]},[],'convertBlockImageToInline');});}),_0x44af72['enableCommand']('imageTypeBlock',(_0x1a5790,_0x397c75)=>{_0x3e9fdd['model']['change'](_0x50e1f1=>{let _0x30c3a3=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x8af2a9=_0x50e1f1['createRangeOn'](_0x30c3a3);const _0x162e86=_0x440ae1['fromPosition'](_0x8af2a9['start'],'toPrevious'),_0x584867=_0x440ae1['fromPosition'](_0x8af2a9['end'],'toNext');_0x44af72['forceDefaultExecution'](()=>_0x1a5790(_0x397c75)),_0x30c3a3=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x8af2a9=_0x50e1f1['createRangeOn'](_0x30c3a3);const _0x5dd755=_0x50e1f1['createRange'](_0x162e86,_0x584867);_0x162e86['detach'](),_0x584867['detach'](),_0x44af72['markBlockFormat'](_0x30c3a3,{'commandName':'imageTypeInline','commandParams':[_0x397c75]},[],'convertInlineImageToBlock'),_0x5dd755['start']['isBefore'](_0x8af2a9['start'])&&_0x44af72['markInsertion'](_0x50e1f1['createRange'](_0x5dd755['start'],_0x8af2a9['start']),'convertInlineImageToBlock'),_0x8af2a9['end']['isBefore'](_0x5dd755['end'])&&_0x44af72['markInsertion'](_0x50e1f1['createRange'](_0x8af2a9['end'],_0x5dd755['end']),'convertInlineImageToBlock');});}),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44af72['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4c764c])=>{const _0xe60ccd=_0x44af72['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c5e98=_0x4c764c['start'],_0x20c450=_0x4c764c['end'];const _0x3ce10f=_0x3e9fdd['model']['schema']['getNearestSelectionRange'](_0x2c5e98,'backward'),_0x3491d7=_0x3e9fdd['model']['schema']['getNearestSelectionRange'](_0x20c450,'forward');_0x3ce10f['isCollapsed']&&(_0x2c5e98=_0x3ce10f['start']),_0x3491d7['isCollapsed']&&(_0x20c450=_0x3491d7['end']),_0xe60ccd([_0x3e9fdd['model']['createRange'](_0x2c5e98,_0x20c450)]);}),_0x44af72['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x62e8b2),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x62e8b2)),_0x3e9fdd['plugins']['has']('ImageCaptionEditing')&&(_0x44af72['enableCommand']('toggleImageCaption',(_0x24f5e8,_0xb564d1)=>{const _0x367606=_0x3e9fdd['plugins']['get']('ImageCaptionUtils');let _0x590cca=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x367ada=_0x367606['getCaptionFromImageModelElement'](_0x590cca);_0x3e9fdd['model']['change'](()=>{if(_0x367ada)return void _0x44af72['markDeletion'](_0x3e9fdd['model']['createRangeOn'](_0x367ada));const _0x946c70=_0x1c1501['isBlockImage'](_0x590cca);_0x24f5e8(_0xb564d1),_0x590cca=_0x1c1501['getClosestSelectedImageElement'](_0x3e9fdd['model']['document']['selection']),_0x367ada=_0x367606['getCaptionFromImageModelElement'](_0x590cca),_0x44af72['markInsertion'](_0x3e9fdd['model']['createRangeOn'](_0x367ada),_0x946c70?null:'imageCaption');});}),_0x44af72['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x62e8b2));const _0xcf7ef2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x90d0d2(_0x2b3668,_0x13cf74){const _0x2f79e1=_0xcf7ef2['findIndex'](({type:_0x45cc86,subType:_0x122abf})=>_0x2b3668['type']==_0x45cc86&&_0x2b3668['subType']==_0x122abf),_0x1145ca=_0xcf7ef2['findIndex'](({type:_0x107b44,subType:_0x15ab6f})=>_0x13cf74['type']==_0x107b44&&_0x13cf74['subType']==_0x15ab6f);if(_0x2f79e1<0x0||_0x1145ca<0x0)return!0x1;const _0x3a7704=_0x2b3668['getFirstRange'](),_0x4575ba=_0x13cf74['getFirstRange']();if((0x0==_0x2f79e1||0x1==_0x2f79e1)&&0x2==_0x1145ca&&_0x3a7704['isIntersecting'](_0x4575ba))return!0x0;if(0x2==_0x2f79e1&&0x3==_0x1145ca){const _0x4e8fbf=_0x44af72['_findSuggestions'](_0x3a7704,'insertion')['filter'](({suggestion:_0x15cc58,meta:_0x2e1ecc})=>_0x2e1ecc['isOwn']&&'convertInlineImageToBlock'==_0x15cc58['subType']);if(_0x4e8fbf['length']>0x1&&_0x4575ba['end']['isEqual'](_0x3a7704['start']))return!0x0;if(0x1==_0x4e8fbf['length']&&(_0x3a7704['start']['isEqual'](_0x4575ba['end'])||_0x3a7704['end']['isEqual'](_0x4575ba['start'])))return!0x0;}if(0x3==_0x2f79e1&&0x3==_0x1145ca&&_0x3a7704['start']['isBefore'](_0x4575ba['start'])){const _0x1a28d4=_0x3a7704['end']['nodeAfter'],_0x44263f=_0x4575ba['start']['nodeBefore'];return _0x1c1501['isBlockImage'](_0x1a28d4)&&_0x1a28d4===_0x44263f;}return!0x1;}function _0x62e8b2(_0x2cd6df,_0x595f2f){return _0x90d0d2(_0x2cd6df,_0x595f2f)?[_0x2cd6df,_0x595f2f]:_0x90d0d2(_0x595f2f,_0x2cd6df)?[_0x595f2f,_0x2cd6df]:null;}_0x3e9fdd['plugins']['has']('ImageResize')&&(_0x44af72['enableDefaultAttributesIntegration']('resizeImage'),_0x44af72['registerBlockAttribute']('resizedWidth'),_0x44af72['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x337b95,'FORMAT_IMAGE_SIZE'))),_0x3e9fdd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x44af72['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x44af72['registerBlockAttribute']('alt')),_0x3e9fdd['plugins']['has']('PictureEditing')&&(_0x44af72['registerBlockAttribute']('sources'),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x571a2f=>{if('attribute'!=_0x571a2f['type'])return;const {data:_0x29b310}=_0x571a2f;return _0x29b310&&'sources'==_0x29b310['key']?{'type':'format','content':''}:void 0x0;})),_0x3e9fdd['plugins']['has']('ImageSizeAttributes')&&(_0x44af72['registerBlockAttribute']('width'),_0x44af72['registerBlockAttribute']('height'),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x1e01b0=>{if('attribute'!=_0x1e01b0['type'])return;const {data:_0x4fcab5}=_0x1e01b0;return!_0x4fcab5||'width'!=_0x4fcab5['key']&&'height'!=_0x4fcab5['key']?void 0x0:{'type':'format','content':''};})),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x491297=>{if(!!_0xcf7ef2['find'](({type:_0x20730b,subType:_0xda6bb4})=>_0x491297['type']==_0x20730b&&_0x491297['subType']==_0xda6bb4))return _0x491297['previous']?{}:void 0x0;}),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x300b0e=>{if('insertion'==_0x300b0e['type']||'deletion'==_0x300b0e['type']){const _0x35d5f6=_0x300b0e['getContainedElement']();if(_0x35d5f6&&_0x35d5f6['is']('element','caption'))return{'type':'insertion'==_0x300b0e['type']?'addObject':'removeObject','element':_0x35d5f6,'quantity':0x1};}}),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x12d884=>'formatBlock'==_0x12d884['type']&&'convertInlineImageToBlock'==_0x12d884['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x12d884['type']&&'convertBlockImageToInline'==_0x12d884['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44af72['descriptionFactory']['registerDescriptionCallback'](_0x517e14=>{if('attribute'!=_0x517e14['type'])return;const {data:_0x823011}=_0x517e14;if(!_0x823011||'alt'!=_0x823011['key'])return;const _0x1bc16e=_0x823011['newValue'];return _0x1bc16e?{'type':'format','content':o(_0x337b95,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bc16e+'\x22')}:{'type':'format','content':o(_0x337b95,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23eb6d=this['editor'],_0x596e30=_0x23eb6d['locale'];_0x23eb6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x109525=>{if('formatBlock'!=_0x109525['type']&&'formatInline'!=_0x109525['type'])return;const {data:_0x241f87}=_0x109525;if(_0x241f87){if('imageTextAlternative'==_0x241f87['commandName']){const _0x5cea61=_0x241f87['commandParams'][0x0]['newValue'];return _0x5cea61?{'type':'format','content':o(_0x596e30,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cea61+'\x22')}:{'type':'format','content':o(_0x596e30,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x241f87['commandName']){const _0x47dc05=_0x241f87['commandParams'][0x0]['width'];return _0x47dc05?{'type':'format','content':o(_0x596e30,'*Set\x20image\x20width:*\x20%0',_0x47dc05)}:{'type':'format','content':o(_0x596e30,'*Reset\x20image\x20width*')};}}});}}class st extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa5972b=this['editor']['locale'],_0x4545fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x4545fe['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4545fe['registerBlockAttribute']('src'),_0x4545fe['descriptionFactory']['registerDescriptionCallback'](_0x4ab0db=>{if('attribute'!=_0x4ab0db['type'])return;const {data:_0x1a4327}=_0x4ab0db;return _0x1a4327&&'src'==_0x1a4327['key']?_0x1a4327['newValue']&&_0x1a4327['oldValue']?{'type':'format','content':o(_0xa5972b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4270e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4270e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4270e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4270e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4270e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3678a3=this['editor'],_0x375dd5=_0x3678a3['locale'];_0x3678a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4b22=>{if('formatBlock'!=_0x4b4b22['type']&&'formatInline'!=_0x4b4b22['type'])return;const {data:_0x4413a7}=_0x4b4b22;if(!_0x4413a7||'replaceImageSource'!=_0x4413a7['commandName'])return;return{'type':'format','content':o(_0x375dd5,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xa897c8{['afterInit'](){const _0x1755e2=this['editor'];if(!_0x1755e2['plugins']['has']('ImageStyleEditing'))return;const _0x3c46ec=_0x1755e2['plugins']['get']('TrackChangesEditing'),_0x200a74=_0x1755e2['plugins']['get']('ImageUtils'),_0x1bd074={};_0x3c46ec['enableCommand']('imageStyle',(_0x2e3cf9,_0x2754d3)=>{const _0x4c6a18=_0x1755e2['plugins']['get']('Users')['me'],_0x2d1a61=_0x1755e2['commands']['get']('imageStyle');let _0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),_0x4781c0=_0x1755e2['model']['createRangeOn'](_0x48c5be),_0x2aebb6=_0x2d1a61['value'];if(_0x2aebb6==_0x2754d3['value'])return;const _0x4da4da={'commandName':'imageStyle','commandParams':[_0x2754d3],'formatGroupId':_0x4e9a0b()};_0x1755e2['model']['change'](()=>{if(_0x3c46ec['getSuggestions']()['filter'](_0x3dfc42=>_0x3dfc42['isInContent']&&_0x4c6a18==_0x3dfc42['author']&&('formatBlock'==_0x3dfc42['type']||'formatInline'==_0x3dfc42['type'])&&('imageStylePreApply'==_0x3dfc42['subType']||'imageStylePostApply'==_0x3dfc42['subType'])&&_0x3dfc42['getFirstRange']()['isEqual'](_0x4781c0))['forEach'](_0x594f5c=>_0x3c46ec['discardSuggestion'](_0x594f5c['head'])),_0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),_0x4781c0=_0x1755e2['model']['createRangeOn'](_0x48c5be),_0x2d1a61['refresh'](),_0x1755e2['commands']['get']('imageTypeInline')['refresh'](),_0x1755e2['commands']['get']('imageTypeBlock')['refresh'](),_0x2aebb6=_0x2d1a61['value'],_0x2aebb6!=_0x2754d3['value'])return _0x200a74['isInlineImage'](_0x48c5be)&&_0x2d1a61['shouldConvertImageType'](_0x2754d3['value'],_0x48c5be)?(_0x2e3cf9({..._0x2754d3,'setImageSizes':!0x1}),_0x48c5be=_0x200a74['getClosestSelectedImageElement'](_0x1755e2['model']['document']['selection']),void _0x3c46ec['markBlockFormat'](_0x48c5be,{..._0x4da4da,'commandReversedParams':[{'value':_0x2aebb6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x200a74['isBlockImage'](_0x48c5be)?_0x3c46ec['markBlockFormat'](_0x48c5be,_0x4da4da,[],'imageStylePostApply'):_0x3c46ec['markInlineFormat'](_0x4781c0,_0x4da4da,'imageStylePostApply'));});});for(const _0x3d5a92 of _0x1755e2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1bd074[_0x3d5a92['name']]=_0x3d5a92['title']['toLowerCase']();_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4bc61a])=>{_0x200a74['setImageNaturalSizeAttributes'](_0x4bc61a['getContainedElement']());}),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x219a80,_0xb257b)=>{_0x3c46ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x219a80,{'commandName':_0xb257b['commandName'],'commandParams':_0xb257b['commandReversedParams']});}),_0x3c46ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53288e,_0x14de19){if(_0x5cebee(_0x53288e,_0x14de19))return[_0x53288e,_0x14de19];if(_0x5cebee(_0x14de19,_0x53288e))return[_0x14de19,_0x53288e];return null;});const _0x21f48a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5cebee(_0x4739c4,_0x5e4ab3){const _0x5c3040=_0x21f48a['findIndex'](({type:_0x23dab7,subType:_0x585210})=>_0x4739c4['type']==_0x23dab7&&_0x4739c4['subType']==_0x585210),_0x75321f=_0x21f48a['findIndex'](({type:_0x1667b6,subType:_0x3a68ad})=>_0x5e4ab3['type']==_0x1667b6&&_0x5e4ab3['subType']==_0x3a68ad);if(_0x5c3040<0x0||_0x75321f<0x0)return!0x1;const _0x3ce92c=_0x4739c4['getFirstRange'](),_0x39bf04=_0x5e4ab3['getFirstRange']();if((0x0==_0x5c3040||0x1==_0x5c3040)&&0x2==_0x75321f&&_0x3ce92c['isIntersecting'](_0x39bf04))return!0x0;if(0x2==_0x5c3040&&0x3==_0x75321f){const _0x4e9b2b=_0x3c46ec['_findSuggestions'](_0x3ce92c,'insertion')['filter'](({suggestion:_0x588c18,meta:_0x5f3b14})=>_0x5f3b14['isOwn']&&'convertInlineImageToBlock'==_0x588c18['subType']);if(_0x4e9b2b['length']>0x1&&_0x39bf04['end']['isEqual'](_0x3ce92c['start']))return!0x0;if(0x1==_0x4e9b2b['length']&&(_0x3ce92c['start']['isEqual'](_0x39bf04['end'])||_0x3ce92c['end']['isEqual'](_0x39bf04['start'])))return!0x0;}if(0x3==_0x5c3040&&0x3==_0x75321f&&_0x3ce92c['start']['isBefore'](_0x39bf04['start'])){const _0x378cff=_0x3ce92c['end']['nodeAfter'],_0x15c9a6=_0x39bf04['start']['nodeBefore'];return _0x200a74['isBlockImage'](_0x378cff)&&_0x378cff===_0x15c9a6;}return!0x1;}_0x1755e2['model']['document']['registerPostFixer'](()=>{let _0x573e17=!0x1;const _0x59f1cc=Array['from'](_0x1755e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a8f1f,data:_0x198536}of _0x59f1cc){const {group:_0x2552d7,type:_0x2f08ca,subType:_0x42a18c,id:_0x20d317}=_0x3c46ec['_splitMarkerName'](_0x2a8f1f);if('suggestion'==_0x2552d7&&_0x3c46ec['hasSuggestion'](_0x20d317)){if('formatBlock'==_0x2f08ca&&('imageStylePreApply'==_0x42a18c||'imageStylePostApply'==_0x42a18c)){const _0x5b8860=_0x3c46ec['getSuggestion'](_0x20d317);if(_0x198536['newRange']){const _0x1b96c6=_0x5b8860['getFirstRange']()['getContainedElement']();if(_0x200a74['isBlockImage'](_0x1b96c6))continue;_0x3c46ec['discardSuggestion'](_0x5b8860),_0x573e17=!0x0;}}if('insertion'==_0x2f08ca&&'imageCaption'==_0x42a18c&&!_0x198536['newRange']){const _0x3d495a=_0x3c46ec['getSuggestion'](_0x20d317);_0x3d495a['next']&&_0x3d495a['next']['isInContent']&&(_0x3c46ec['discardSuggestion'](_0x3d495a['next']),_0x573e17=!0x0);}}}return _0x573e17;}),this['_registerLegacyDescription'](_0x1bd074);}['_registerLegacyDescription'](_0x7feb65){const _0x56d40f=this['editor'],_0x5e3224=_0x56d40f['locale'];_0x56d40f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fbfd6=>{if('formatBlock'!=_0x1fbfd6['type']&&'formatInline'!=_0x1fbfd6['type'])return;const {data:_0x1e228a}=_0x1fbfd6;if(!_0x1e228a||'imageStyle'!=_0x1e228a['commandName'])return;const _0xf28891=_0x1e228a['commandParams'][0x0]['value'];return _0x43a35f('side'===_0xf28891?o(_0x5e3224,'FORMAT_SIDE_IMAGE'):_0x7feb65[_0xf28891]||_0xf28891);function _0x43a35f(_0x13909b){return{'type':'format','content':o(_0x5e3224,'*Format:*\x20%0',_0x13909b)};}});}}class rt extends _0xa897c8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4fb246){super(_0x4fb246),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x349ba3=this['editor'],_0x113952=_0x349ba3['commands']['get']('importWord'),_0x1fa9ca=_0x349ba3['commands']['get']('trackChanges');_0x113952&&(_0x113952['on']('execute',(_0x55179c,[,_0x2de12f])=>{this['_trackChangesValueDuringImport']=_0x1fa9ca['value'],_0x2de12f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x113952,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x113952,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1fa9ca['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x349ba3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xef0aeb,_0x4c1150){const {suggestions:_0xf9c9c}=_0x4c1150,_0x5f3194=this['editor']['commands']['get']('trackChanges'),_0xe77ba0=_0x5f3194['value'];this['_trackChangesValueDuringImport']!==_0xe77ba0&&(_0x5f3194['execute'](),this['_trackChangesExecuted']=!0x0),_0xf9c9c&&_0xf9c9c['forEach'](({id:_0x1703d6,type:_0xe58c27,author:_0x15b0d2,created_at:_0x3a4a6e})=>{const _0x4c70f7={'id':_0x1703d6,'type':_0xe58c27,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15b0d2,'createdAt':_0x3a4a6e?new Date(_0x3a4a6e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c70f7);});}}class at extends _0xa897c8{['afterInit'](){const _0x49a7c2=this['editor'],_0x41b6d6=_0x49a7c2['plugins']['get']('TrackChangesEditing');if(_0x49a7c2['plugins']['has']('IndentEditing')&&(_0x41b6d6['enableCommand']('indent'),_0x41b6d6['enableCommand']('outdent')),_0x49a7c2['plugins']['has']('IndentBlock')){for(const _0x2ce83d of['indentBlock','outdentBlock'])_0x41b6d6['enableDefaultAttributesIntegration'](_0x2ce83d);}const _0x1f4987=_0x49a7c2['locale'];_0x41b6d6['registerBlockAttribute']('blockIndent'),_0x41b6d6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f4987,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f3031=this['editor'],_0x48367d=_0x4f3031['locale'],_0x4b4792=_0x4f3031['plugins']['get']('TrackChangesEditing');_0x4b4792['descriptionFactory']['registerDescriptionCallback'](_0xaca26f=>{if('formatBlock'!=_0xaca26f['type'])return;const {data:_0x1ea1a0}=_0xaca26f;if(!_0x1ea1a0)return;if('indentBlock'!=_0x1ea1a0['commandName']&&'outdentBlock'!=_0x1ea1a0['commandName'])return;const _0x2cef3c=_0xaca26f['getItems']()[0x0],_0xbd8257=_0x4b4792['descriptionFactory']['getItemLabel'](_0x2cef3c);return'indentBlock'==_0x1ea1a0['commandName']?{'type':'format','content':o(_0x48367d,'*Indent:*\x20%0',_0xbd8257)}:'outdentBlock'==_0x1ea1a0['commandName']?{'type':'format','content':o(_0x48367d,'*Outdent:*\x20%0',_0xbd8257)}:void 0x0;});}}class ct extends _0xa897c8{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xa897c8{['afterInit'](){const _0x1daeca=this['editor'];if(!_0x1daeca['plugins']['has']('LinkEditing'))return;const _0x4b032f=_0x1daeca['plugins']['get']('TrackChangesEditing'),_0x46283a=_0x1daeca['commands']['get']('link');_0x4b032f['enableDefaultAttributesIntegration']('link'),_0x4b032f['enableDefaultAttributesIntegration']('unlink'),_0x4b032f['registerInlineAttribute']('linkHref');for(const _0x26a094 of _0x46283a['manualDecorators'])_0x4b032f['registerInlineAttribute'](_0x26a094['id']),_0x4b032f['descriptionFactory']['registerAttributeLabel'](_0x26a094['id'],'link\x20('+_0x26a094['label']['toLowerCase']()+')');_0x4b032f['descriptionFactory']['registerDescriptionCallback'](_0x67d9ef=>{if('attribute'!=_0x67d9ef['type'])return;const {data:_0xbd87ea}=_0x67d9ef;if(!_0xbd87ea||'linkHref'!=_0xbd87ea['key'])return;const _0x284cae=_0xbd87ea['newValue'],_0x4454eb=_0x1daeca['locale'];return{'type':'format','content':null==_0x284cae?o(_0x4454eb,'*Remove\x20link*'):o(_0x4454eb,'*Set\x20link:*\x20%0','\x22'+_0x284cae+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d6da0=this['editor'],_0x5a183f=_0x4d6da0['locale'];_0x4d6da0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1211a2=>{if('formatInline'!=_0x1211a2['type'])return;const {data:_0x4fd4c3}=_0x1211a2;if(_0x4fd4c3){if('link'==_0x4fd4c3['commandName']){const _0xb5e96f=_0x4fd4c3['commandParams'][0x0];return{'type':'format','content':o(_0x5a183f,'*Set\x20link:*\x20%0','\x22'+_0xb5e96f+'\x22')};}return'unlink'==_0x4fd4c3['commandName']?{'type':'format','content':o(_0x5a183f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xa897c8{['afterInit'](){const _0x5155c1=this['editor'],_0x30ea8e=_0x5155c1['locale'];if(!_0x5155c1['plugins']['has']('LegacyListEditing'))return;const _0x1c0c8f=_0x5155c1['plugins']['get']('TrackChangesEditing'),_0x237dbc=_0x5155c1['plugins']['has']('LegacyTodoListEditing');function _0x4f1b77(_0xd3eba9){return()=>{const _0x3e4f85=_0x5155c1['model']['document']['selection'],_0x21e656=_0x5155c1['commands']['get'](_0xd3eba9);if(_0x21e656['value'])return void _0x5155c1['execute']('paragraph',{});const _0x3ddc99=_0xd3eba9['slice'](0x0,-0x4),_0x863b76=function(_0x1cd5ac,_0x3f1418,_0x2525e5){let _0x3fdcfd=Array['from'](_0x1cd5ac)['filter'](_0x1c2ded=>function(_0x100763,_0x4a62a0){return _0x4a62a0['checkChild'](_0x100763['parent'],'listItem')&&!_0x4a62a0['isObject'](_0x100763);}(_0x1c2ded,_0x2525e5));_0x3fdcfd=_0x3fdcfd['filter'](_0x50b1ff=>!_0x50b1ff['is']('element','listItem')||_0x50b1ff['getAttribute']('listType')!=_0x3f1418);const _0x298e03=new Set();for(const _0x2ac438 of _0x3fdcfd)_0x2ac438['is']('element','listItem')?_0x298e03['add'](Le(_0x2ac438)):_0x298e03['add'](_0x2ac438);return Array['from'](_0x298e03);}(_0x3e4f85['getSelectedBlocks'](),_0x3ddc99,_0x5155c1['model']['schema']);_0x5155c1['model']['change'](()=>{for(const _0x4004c7 of _0x863b76)_0x1c0c8f['markBlockFormat'](_0x4004c7,{'commandName':_0xd3eba9,'commandParams':[{'forceValue':!_0x21e656['value']}],'formatGroupId':'blockName'},Ee(_0x4004c7));});};}function _0x5f3010(_0x13e5e1){return()=>{const _0x571b68=function(_0x4782cf){let _0x1efb2d=Array['from'](_0x4782cf);const _0x41b5e9=_0x1efb2d['findIndex'](_0x5e16f0=>'listItem'!=_0x5e16f0['name']);return _0x41b5e9>-0x1&&(_0x1efb2d=_0x1efb2d['slice'](0x0,_0x41b5e9)),_0x1efb2d;}(_0x5155c1['model']['document']['selection']['getSelectedBlocks']()),_0x1527d8=_0x5155c1['model']['createRange'](_0x5155c1['model']['createPositionAt'](_0x571b68[0x0],'before'),_0x5155c1['model']['createPositionAt'](_0x571b68[_0x571b68['length']-0x1],'end'));_0x5155c1['model']['change'](()=>{_0x1c0c8f['markBlockFormat'](_0x1527d8,{'commandName':_0x13e5e1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5e6468){const _0x2435b3=new Set();for(const _0x3f0dc7 of _0x5e6468){let _0x5296a4=_0x3f0dc7['nextSibling'];for(;_0x5296a4&&_0x5296a4['getAttribute']('listIndent')>_0x3f0dc7['getAttribute']('listIndent');)_0x2435b3['add'](_0x5296a4),_0x5296a4=_0x5296a4['nextSibling'];}return Array['from'](_0x2435b3);}(_0x571b68));});};}_0x1c0c8f['enableCommand']('numberedList',_0x4f1b77('numberedList')),_0x1c0c8f['enableCommand']('bulletedList',_0x4f1b77('bulletedList')),_0x237dbc&&_0x1c0c8f['enableCommand']('todoList',_0x4f1b77('todoList')),_0x1c0c8f['enableCommand']('indentList',_0x5f3010('indentList')),_0x1c0c8f['enableCommand']('outdentList',_0x5f3010('outdentList')),_0x237dbc&&_0x1c0c8f['enableCommand']('checkTodoList',()=>{const _0x33c0e9=_0x5155c1['commands']['get']('checkTodoList'),_0x551185=Array['from'](_0x33c0e9['_selectedElements']);_0x551185['filter'](_0x2c1586=>_0x2c1586['getAttribute']('todoListChecked')!=_0x33c0e9['value']),_0x5155c1['model']['change'](()=>{for(const _0x48b207 of _0x551185)_0x1c0c8f['markBlockFormat'](_0x48b207,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x33c0e9['value']}]});});}),_0x1c0c8f['descriptionFactory']['registerElementLabel']('listItem',_0x51b194=>o(_0x30ea8e,'ELEMENT_LIST_ITEM',_0x51b194)),_0x1c0c8f['descriptionFactory']['registerDescriptionCallback'](_0x54e58c=>{if('formatBlock'!=_0x54e58c['type']&&'formatInline'!=_0x54e58c['type'])return;const {data:_0x2ff31c}=_0x54e58c;if(_0x2ff31c){if('numberedList'==_0x2ff31c['commandName']||'bulletedList'==_0x2ff31c['commandName']||'todoList'==_0x2ff31c['commandName'])switch(_0x2ff31c['commandName']['replace']('List','')){case'bulleted':return _0x1c853f(o(_0x30ea8e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c853f(o(_0x30ea8e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c853f(o(_0x30ea8e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ff31c['commandName'])return{'type':'format','content':o(_0x30ea8e,'*Indent:*\x20%0',o(_0x30ea8e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ff31c['commandName'])return{'type':'format','content':o(_0x30ea8e,'*Outdent:*\x20%0',o(_0x30ea8e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ff31c['commandName'])return _0x2ff31c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30ea8e,'*Check\x20item*')}:{'type':'format','content':o(_0x30ea8e,'*Uncheck\x20item*')};}function _0x1c853f(_0x1e902a){return{'type':'format','content':o(_0x30ea8e,'*Change\x20to:*\x20%0',_0x1e902a)};}});}}function Le(_0x46a050){const _0xa1e794=_0x46a050['getAttribute']('listIndent');if(0x0==_0xa1e794)return _0x46a050;let _0x103bc3=_0x46a050;for(;_0x46a050['previousSibling']&&_0x46a050['previousSibling']['is']('element','listItem');){const _0x5b0cd1=_0x46a050['previousSibling']['getAttribute']('listIndent');if(_0x5b0cd1==_0xa1e794)_0x103bc3=_0x46a050['previousSibling'];else{if(_0x5b0cd1<_0xa1e794)break;}_0x46a050=_0x46a050['previousSibling'];}return _0x103bc3;}function Ee(_0x3cbe29){const _0x4e7f3c=[];if(_0x3cbe29['is']('element','listItem')&&_0x3cbe29['getAttribute']('listIndent')>0x0){let _0x25f380=_0x3cbe29['nextSibling'];for(;_0x25f380&&'listItem'==_0x25f380['name']&&_0x25f380['getAttribute']('listIndent')==_0x3cbe29['getAttribute']('listIndent');)_0x4e7f3c['push'](_0x25f380),_0x25f380=_0x25f380['nextSibling'];}return _0x4e7f3c;}class ht extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27a7c8=this['editor']['config']['get']('list.properties'),_0x3b9dd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x27a7c8['styles']&&_0x3b9dd6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27a7c8['reversed']&&_0x3b9dd6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27a7c8['startIndex']&&_0x3b9dd6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3b9dd6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1da725,_0x5a7507={}){const _0x17790f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x183844=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17790f['markMultiRangeBlockFormat'](_0x183844,{'commandName':'listStyle','commandParams':[{'type':_0x5a7507['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x41108a,_0x3b2174={}){const _0xf8b60d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13429b=this['_getSuggestionBlocks'](_0x407128=>_0x407128['is']('element','listItem')&&'numbered'===_0x407128['getAttribute']('listType'));if(_0x13429b['length']<0x1)return;const _0x47576e=_0x13429b['map'](_0x3cbc8a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cbc8a,'before'),this['editor']['model']['createPositionAt'](_0x3cbc8a,0x0)));this['editor']['model']['change'](()=>{_0xf8b60d['markMultiRangeBlockFormat'](_0x47576e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b2174['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5dd47e,_0x368a54={}){const _0x59af8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x474bdd=this['_getSuggestionBlocks'](_0x5205e4=>_0x5205e4['is']('element','listItem')&&'numbered'===_0x5205e4['getAttribute']('listType'));if(_0x474bdd['length']<0x1)return;const _0x2bc6f1=_0x474bdd['map'](_0x1144d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1144d4,'before'),this['editor']['model']['createPositionAt'](_0x1144d4,0x0)));this['editor']['model']['change'](()=>{_0x59af8e['markMultiRangeBlockFormat'](_0x2bc6f1,{'commandName':'listStart','commandParams':[{'startIndex':_0x368a54['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fa055){if('formatBlock'!=_0x2fa055['type']&&'formatInline'!=_0x2fa055['type'])return;const _0x26325a=this['editor']['locale'],{data:_0x5141e8}=_0x2fa055;if(!_0x5141e8)return;let _0x505f6b,_0x1a55a2;switch(_0x5141e8['commandName']){case'listStyle':_0x505f6b='*Change\x20to:*\x20%0',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b,o(_0x26325a,this['_getTranslationKeyForListStyle'](_0x5141e8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x505f6b=_0x5141e8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b)};break;case'listStart':_0x505f6b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a55a2={'type':'format','content':o(_0x26325a,_0x505f6b,_0x5141e8['commandParams'][0x0]['startIndex'])};}return _0x1a55a2;}['_getSuggestionBlocksForListStyle'](){const _0x448547=this['editor']['plugins']['get']('LegacyListUtils');let _0x391fb3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x391fb3[0x0]?.['is']('element','listItem')&&_0x391fb3['unshift'](..._0x448547['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x391fb3[_0x391fb3['length']-0x1]?.['is']('element','listItem')&&_0x391fb3['push'](..._0x448547['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x391fb3=[...new Set(_0x391fb3)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x391fb3=_0x391fb3['filter'](_0x4acc04=>_0x4acc04['is']('element','listItem'))),_0x391fb3;}['_getSuggestionBlocks'](_0x198b3c){const _0x27a492=this['editor']['plugins']['get']('LegacyListUtils');let _0x406bd2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x198b3c)['map'](_0x3feb56=>{const _0x3ca692=this['editor']['model']['createPositionAt'](_0x3feb56,0x0);return[..._0x27a492['getSiblingNodes'](_0x3ca692,'backward'),..._0x27a492['getSiblingNodes'](_0x3ca692,'forward')];})['flat']();return _0x406bd2=[...new Set(_0x406bd2)],_0x406bd2;}['_getTranslationKeyForListStyle'](_0x24f5e9){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24f5e9)||'default')['toUpperCase']()+'_LIST_'+_0x24f5e9['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xa897c8{['afterInit'](){const _0x2908d5=this['editor'];if(!_0x2908d5['plugins']['has']('MediaEmbedEditing'))return;const _0x337ad3=_0x2908d5['plugins']['get']('TrackChangesEditing'),_0x51bd8a=_0x2908d5['locale'];_0x337ad3['enableCommand']('mediaEmbed'),_0x337ad3['descriptionFactory']['registerElementLabel']('media',_0x16c3c5=>o(_0x51bd8a,'ELEMENT_MEDIA',_0x16c3c5)),_0x2908d5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x594cd0,{writer:_0x103173,options:_0x55d74f})=>{if(_0x55d74f['showSuggestionHighlights'])return _0x103173['createEmptyElement']('div');},'converterPriority':'high'}),_0x2908d5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x102c77,_0x2bb4fc,_0x232c34)=>{_0x232c34['options']['showSuggestionHighlights']&&_0x102c77['stop']();},{'priority':'high'});}}class lt extends _0xa897c8{['afterInit'](){const _0x95d2dd=this['editor'];_0x95d2dd['plugins']['has']('MentionEditing')&&_0x95d2dd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xa897c8{['afterInit'](){const _0x1cac16=this['editor'];if(!_0x1cac16['plugins']['has']('MergeFieldsEditing'))return;const _0x4d99f7=_0x1cac16['plugins']['get']('TrackChangesEditing'),_0x4a8e74=_0x1cac16['locale'];_0x4d99f7['enableCommand']('insertMergeField'),_0x4d99f7['enableCommand']('insertMergeFieldBlock'),_0x4d99f7['enableCommand']('insertMergeFieldImage'),_0x4d99f7['descriptionFactory']['registerElementLabel']('mergeField',_0x3881a3=>o(_0x4a8e74,'ELEMENT_MERGE_FIELD',_0x3881a3)),_0x4d99f7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14e1e5=>o(_0x4a8e74,'ELEMENT_MERGE_FIELD',_0x14e1e5)),_0x4d99f7['descriptionFactory']['registerDescriptionCallback'](_0x96b11d=>{if('insertion'!=_0x96b11d['type']&&'deletion'!=_0x96b11d['type'])return;const _0x8e5b51=_0x96b11d['getContainedElement']();if(null==_0x8e5b51)return;const _0x2a9547=_0x1cac16['plugins']['get']('MergeFieldsEditing');let _0x5a0f88;switch(_0x2a9547['getMergeFieldType'](_0x8e5b51)){case null:return;case'image':{const _0xff898f=_0x2a9547['unwrapAffixes'](_0x8e5b51['getAttribute']('src'));_0x5a0f88=_0x2a9547['getLabel'](_0xff898f)||_0xff898f;break;}default:{const _0x581c5b=_0x8e5b51['getAttribute']('id');_0x5a0f88=_0x2a9547['getLabel'](_0x581c5b)||_0x581c5b;break;}}return'insertion'==_0x96b11d['type']?{'type':'insertion','content':o(_0x4a8e74,'*Insert:*\x20%0','\x22'+_0x5a0f88+'\x22\x20'+o(_0x4a8e74,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4a8e74,'*Remove:*\x20%0','\x22'+_0x5a0f88+'\x22\x20'+o(_0x4a8e74,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xa897c8{['afterInit'](){const _0x5d5ee0=this['editor'],_0x1018a2=_0x5d5ee0['plugins']['get']('TrackChangesEditing');_0x5d5ee0['plugins']['has']('MultiLevelList')&&(_0x1018a2['enableDefaultAttributesIntegration']('multiLevelList'),_0x1018a2['registerBlockAttribute']('listMarkerStyle'),_0x1018a2['descriptionFactory']['registerDescriptionCallback'](_0x9c351b=>this['handleDescriptions'](_0x9c351b)));}['handleDescriptions'](_0x43aee2){const _0x513dbe=this['editor']['locale'],{data:_0x5b7c46}=_0x43aee2,_0x2c7394={'type':'format','content':''};if(_0x5b7c46&&'listMarkerStyle'==_0x5b7c46['key']){if(!_0x5b7c46['oldValue'])return{'type':'format','content':o(_0x513dbe,'*Set\x20format:*\x20%0',o(_0x513dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b7c46['newValue']+')'};if(!_0x5b7c46['newValue']){let _0x2a9f0b=_0x43aee2['head'];for(;_0x2a9f0b;){if(_0x2a9f0b['data']&&'listType'==_0x2a9f0b['data']['key']&&_0x2a9f0b['data']['newValue'])return _0x2c7394;_0x2a9f0b=_0x2a9f0b['next'];}return{'type':'format','content':o(_0x513dbe,'*Remove\x20format:*\x20%0',o(_0x513dbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b7c46['oldValue']+')'};}}}}class pt extends _0xa897c8{['afterInit'](){const _0xea2fee=this['editor'];if(!_0xea2fee['plugins']['has']('PageBreakEditing'))return;_0xea2fee['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x54963e=_0xea2fee['plugins']['get']('TrackChangesEditing'),_0x4814c2=_0xea2fee['locale'];_0x54963e['descriptionFactory']['registerElementLabel']('pageBreak',_0x5074bf=>o(_0x4814c2,'ELEMENT_PAGE_BREAK',_0x5074bf));}}class kt extends _0xa897c8{['afterInit'](){const _0x16c604=this['editor'];if(!_0x16c604['plugins']['has']('Paragraph'))return;const _0x1364de=_0x16c604['locale'],_0x40d63a=_0x16c604['plugins']['get']('TrackChangesEditing');_0x40d63a['descriptionFactory']['registerElementLabel']('paragraph',_0x4efb57=>o(_0x1364de,'ELEMENT_PARAGRAPH',_0x4efb57)),_0x40d63a['enableDefaultAttributesIntegration']('paragraph'),_0x40d63a['enableCommand']('insertParagraph'),_0x16c604['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16c604),{'priority':'highest'}),_0x16c604['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43b53b,_0xc8bf4a,_0x382d55)=>{_0x382d55['options']['showSuggestionHighlights']&&nr(_0x16c604,{'showActiveMarker':!0x1})(_0x43b53b,_0xc8bf4a,_0x382d55);},{'priority':'highest'});const _0x3d6e7a=_0x40d63a['descriptionFactory'];_0x3d6e7a['registerDescriptionCallback'](_0x41b631=>{if('insertion'!==_0x41b631['type'])return;const {start:_0x4e5a8c,end:_0x81f526}=_0x41b631['getFirstRange']();if(!_0x4e5a8c['isTouching'](_0x81f526)||!_0x4e5a8c['nodeAfter'])return;const _0x253885=_0x16c604['model']['schema'],_0x29366f=_0x4e5a8c['nodeAfter'];return _0x253885['isBlock'](_0x29366f)&&!_0x253885['isLimit'](_0x29366f)&&_0x253885['checkChild'](_0x29366f,'$text')?{'type':'insertion','content':o(_0x1364de,'*Insert:*\x20%0',_0x3d6e7a['getItemLabel'](_0x29366f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da912=this['editor'],_0xcfd2f0=_0x3da912['locale'];_0x3da912['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4870=>{if('formatBlock'!=_0x2c4870['type'])return;const {data:_0x259ffe}=_0x2c4870;return _0x259ffe&&'paragraph'==_0x259ffe['commandName']?{'type':'format','content':o(_0xcfd2f0,'*Change\x20to:*\x20%0',o(_0xcfd2f0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4e8129,{showActiveMarker:_0x2abcb1=!0x0}={}){return(_0x544ffa,_0x5e40a2,_0xfc716d)=>{const _0x22e923=_0x4e8129['plugins']['get']('TrackChangesEditing'),_0x3ea350=_0x5e40a2['markerRange']['start'],_0x5f2131=_0x5e40a2['markerRange']['end'],_0x26245b=_0x4e8129['model']['schema'];if(!_0x3ea350['isTouching'](_0x5f2131)||!_0x3ea350['nodeAfter'])return;const _0x3abc42=_0x3ea350['nodeAfter'];if(_0x26245b['isBlock'](_0x3abc42)&&!_0x26245b['isLimit'](_0x3abc42)&&_0x26245b['checkChild'](_0x3abc42,'$text')){if(!_0xfc716d['consumable']['consume'](_0x5e40a2['markerRange'],_0x544ffa['name']))return;const {id:_0x391766,authorId:_0x9c9082}=_0x22e923['_splitMarkerName'](_0x5e40a2['markerName']),_0x1d7843=_0xfc716d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x391766,'data-author-id':_0x9c9082}),_0x275869=_0xfc716d['mapper']['toViewPosition'](_0x5f2131);_0x2abcb1&&_0x22e923['activeMarkers']['includes'](_0x5e40a2['markerName'])&&_0xfc716d['writer']['addClass']('ck-suggestion-marker--active',_0x1d7843),_0xfc716d['writer']['insert'](_0x275869,_0x1d7843),_0xfc716d['mapper']['bindElementToMarker'](_0x1d7843,_0x5e40a2['markerName']);}};}class wt extends _0xa897c8{['afterInit'](){const _0x41053a=this['editor'];_0x41053a['commands']['get']('replaceSource')&&_0x41053a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xa897c8{['afterInit'](){const _0x33196f=this['editor'];if(!_0x33196f['plugins']['has']('RemoveFormatEditing'))return;_0x33196f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a25fd=this['editor'];_0x1a25fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d69c8=>{if('formatBlock'!=_0x1d69c8['type']&&'formatInline'!=_0x1d69c8['type'])return;const {data:_0xd51a}=_0x1d69c8;return _0xd51a&&'removeFormat'==_0xd51a['commandName']?{'type':'format','content':o(_0x1a25fd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xa897c8{['afterInit'](){const _0x353171=this['editor'];if(!_0x353171['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x266352=_0x353171['plugins']['get']('TrackChangesEditing');_0x266352['enableCommand']('goToPreviousRestrictedEditingException'),_0x266352['enableCommand']('goToNextRestrictedEditingException');const _0x488978=_0x353171['plugins']['get']('RestrictedEditingModeEditing');_0x488978['enableCommand']('trackChanges'),_0x488978['enableCommand']('acceptSuggestion'),_0x488978['enableCommand']('discardSuggestion'),_0x488978['enableCommand']('acceptAllSuggestions'),_0x488978['enableCommand']('discardAllSuggestions'),_0x488978['enableCommand']('acceptSelectedSuggestions'),_0x488978['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xa897c8{['afterInit'](){const _0x2d3462=this['editor'];if(!_0x2d3462['plugins']['has']('ShiftEnter'))return;const _0x793339=_0x2d3462['plugins']['get']('TrackChangesEditing');_0x793339['enableCommand']('shiftEnter'),_0x2d3462['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2d3462),{'priority':'high'}),_0x2d3462['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2d3462),{'priority':'high'}),_0x2d3462['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x462c86,_0x403a05,_0x2fb425)=>{_0x2fb425['options']['showSuggestionHighlights']&&je(_0x2d3462,{'showActiveMarker':!0x1})(_0x462c86,_0x403a05,_0x2fb425);}),_0x793339['descriptionFactory']['registerElementLabel']('softBreak',_0x357a48=>o(_0x2d3462['locale'],'ELEMENT_LINE_BREAK',_0x357a48));}}function je(_0x282d5c,{showActiveMarker:_0x34761e=!0x0}={}){return(_0x4939f2,_0x295575,_0x1f8cc8)=>{const _0x33e1f6=_0x282d5c['plugins']['get']('TrackChangesEditing');if(!_0x1f8cc8['consumable']['test'](_0x295575['markerRange'],_0x4939f2['name']))return;const _0xe3c6b8=_0x282d5c['model'];for(const _0x20013d of _0x295575['markerRange']['getItems']()){if(!_0x20013d['is']('element','softBreak'))continue;const _0x146686='deletion'==_0x295575['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x442387,authorId:_0x29c324}=_0x33e1f6['_splitMarkerName'](_0x295575['markerName']),_0x55f9be=_0x1f8cc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x146686,'data-suggestion':_0x442387,'data-author-id':_0x29c324}),_0x3fa594=_0x1f8cc8['mapper']['toViewPosition'](_0xe3c6b8['createPositionBefore'](_0x20013d));_0x34761e&&_0x33e1f6['activeMarkers']['includes'](_0x295575['markerName'])&&_0x1f8cc8['writer']['addClass']('ck-suggestion-marker--active',_0x55f9be),_0x1f8cc8['writer']['insert'](_0x3fa594,_0x55f9be),_0x1f8cc8['mapper']['bindElementToMarker'](_0x55f9be,_0x295575['markerName']);}};}class St extends _0xa897c8{['afterInit'](){const _0x524ece=this['editor'],_0x216d7e=_0x524ece['model'],_0x23f5f2=_0x524ece['locale'];if(!_0x524ece['plugins']['has']('StandardEditingModeEditing'))return;const _0x203331=_0x524ece['plugins']['get']('TrackChangesEditing'),_0x102f36='restrictedEditingException',_0x82c575=_0x524ece['commands']['get'](_0x102f36);_0x203331['enableCommand'](_0x102f36,(_0x3bfd30,_0x47f17f={})=>{const _0x251f96=_0x216d7e['document']['selection'];if(_0x251f96['isCollapsed'])return void _0x3bfd30(_0x47f17f);const _0x3ef885=void 0x0!==_0x47f17f['forceValue']?_0x47f17f['forceValue']:!_0x82c575['value'];_0x216d7e['change'](()=>{const _0xcd00e7=Array['from'](_0x251f96['getRanges']());for(const _0x300ddf of _0xcd00e7){const _0x4094d3=_0x3ef885?[_0x300ddf]:io(_0x102f36,_0x300ddf,_0x216d7e);for(const _0x231a25 of _0x4094d3)_0x203331['markInlineFormat'](_0x231a25,{'commandName':_0x102f36,'commandParams':[{'forceValue':_0x3ef885}]});}});}),_0x203331['descriptionFactory']['registerDescriptionCallback'](_0x4bb14b=>{if('formatBlock'!=_0x4bb14b['type']&&'formatInline'!=_0x4bb14b['type'])return;const {data:_0x27531c}=_0x4bb14b;return _0x27531c&&_0x27531c['commandName']==_0x102f36?_0x27531c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23f5f2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x23f5f2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xa897c8{['afterInit'](){const _0xe92d49=this['editor'];if(!_0xe92d49['plugins']['has']('Style')||!_0xe92d49['plugins']['has']('DataSchema'))return;const _0x494aa0=_0xe92d49['plugins']['get']('TrackChangesEditing'),_0x2db55a=_0xe92d49['locale'],_0x229e82=_0xe92d49['config']['get']('style')||{},_0x11d16b=_0xe92d49['plugins']['get']('GeneralHtmlSupport'),_0x22b056=_0xe92d49['plugins']['get']('StyleUtils')['normalizeConfig'](_0xe92d49['plugins']['get']('DataSchema'),_0x229e82['definitions']);_0x494aa0['enableDefaultAttributesIntegration']('style');const _0x5e94c5=new Set();for(const _0x316f20 of _0x22b056['block']){const _0x179a5b=_0x11d16b['getGhsAttributeNameForElement'](_0x316f20['element']);_0x5e94c5['add'](_0x179a5b);}const _0x45736c=new Set();for(const _0x12b1aa of _0x22b056['inline']){const _0x111708=_0x11d16b['getGhsAttributeNameForElement'](_0x12b1aa['element']);_0x45736c['add'](_0x111708);for(const _0x359b13 of _0x12b1aa['ghsAttributes'])_0x45736c['add'](_0x359b13);}for(const _0x5e7201 of _0x5e94c5)_0x494aa0['registerBlockAttribute'](_0x5e7201),_0x494aa0['descriptionFactory']['registerAttributeLabel'](_0x5e7201,o(_0x2db55a,'FORMAT_STYLE'));for(const _0x28a3c9 of _0x45736c)_0x494aa0['registerInlineAttribute'](_0x28a3c9),_0x494aa0['descriptionFactory']['registerAttributeLabel'](_0x28a3c9,o(_0x2db55a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x271612=this['editor'],_0x40143c=_0x271612['locale'];_0x271612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49eccd=>{if('formatBlock'!=_0x49eccd['type']&&'formatInline'!=_0x49eccd['type'])return;const {data:_0x1da3ac}=_0x49eccd;return _0x1da3ac&&'style'===_0x1da3ac['commandName']?_0x1da3ac['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40143c,'*Set\x20format:*\x20%0',_0x1da3ac['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x40143c,'*Remove\x20format:*\x20%0',_0x1da3ac['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xa897c8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40cf05){super(_0x40cf05),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x27ea9a=this['editor'],_0xeb1ab6=_0x27ea9a['model']['document']['selection'];if(!_0x27ea9a['plugins']['has']('TableEditing'))return;const _0x552627=_0x27ea9a['locale'],_0x26df41=_0x27ea9a['plugins']['get']('TrackChangesEditing'),_0x4f201=_0x27ea9a['plugins']['get']('TableUtils');_0x26df41['descriptionFactory']['registerElementLabel']('table',_0x4985c2=>o(_0x552627,'ELEMENT_TABLE',_0x4985c2)),this['_setupColumnsRowsFixing'](),_0x26df41['enableCommand']('insertTable'),_0x26df41['enableCommand']('selectTableRow'),_0x26df41['enableCommand']('selectTableColumn');for(const _0xce36 of['insertTableRowAbove','insertTableRowBelow']){const _0x407663=_0x27ea9a['commands']['get'](_0xce36);_0x26df41['enableCommand'](_0xce36,_0x1abd67=>{_0x27ea9a['model']['change'](_0xd5c478=>{_0x1abd67();const _0x2dd50b='above'===_0x407663['order'],_0x2c8f68=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x4d5630=_0x4f201['getRowIndexes'](_0x2c8f68),_0x808779=_0x2dd50b?_0x4d5630['first']-0x1:_0x4d5630['last']+0x1,_0x1e756b=_0x2c8f68[0x0]['findAncestor']('table'),_0x1c460c=_0x4f201['createTableWalker'](_0x1e756b,{'startRow':_0x808779,'endRow':_0x808779}),_0x10b519=Array['from'](_0x1c460c)['map'](_0x3c7944=>_0xd5c478['createRangeOn'](_0x3c7944['cell']));_0x26df41['markMultiRangeInsertion'](_0x10b519,'tableRow');});});}for(const _0x2b12fd of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c79dc=_0x27ea9a['commands']['get'](_0x2b12fd);_0x26df41['enableCommand'](_0x2b12fd,_0x5a157e=>{_0x27ea9a['model']['change'](_0x4ccc5b=>{_0x5a157e();const _0x74617='left'===_0x4c79dc['order'],_0x13370a=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x423b94=_0x4f201['getColumnIndexes'](_0x13370a),_0x16b0ba=_0x74617?_0x423b94['first']-0x1:_0x423b94['last']+0x1,_0x48d42a=_0x13370a[0x0]['findAncestor']('table'),_0x5439b4=_0x4f201['createTableWalker'](_0x48d42a,{'startRow':0x0,'column':_0x16b0ba,'includeAllSlots':!0x1}),_0x186fe4=Array['from'](_0x5439b4)['map'](_0x2185bd=>_0x4ccc5b['createRangeOn'](_0x2185bd['cell']));_0x26df41['markMultiRangeInsertion'](_0x186fe4,'tableColumn');});});}for(const _0x45a049 of['removeTableRow','removeTableColumn']){const _0x360d0b=_0x45a049['substr'](0xb),_0x82e5f9=_0x360d0b['toLowerCase'](),_0x4a1b0c=_0x82e5f9['substr'](0x0,0x3)+'span',_0x680e3='table'+_0x360d0b,_0x325504='min'+_0x360d0b,_0x531916='max'+_0x360d0b;_0x26df41['enableCommand'](_0x45a049,()=>{_0x27ea9a['model']['change'](_0x5c56b1=>{const _0x3b41a4=_0x4f201['getSelectionAffectedTableCells'](_0xeb1ab6),_0x14c53a=_0x3b41a4[0x0]['findAncestor']('table');let _0xb717af;if('removeTableRow'==_0x45a049){const _0x3bc669=_0x4f201['getRowIndexes'](_0x3b41a4);_0xb717af={'startRow':_0x3bc669['first'],'endRow':_0x3bc669['last'],'includeAllSlots':!0x0};}else{const _0xd45f13=_0x4f201['getColumnIndexes'](_0x3b41a4);_0xb717af={'startColumn':_0xd45f13['first'],'endColumn':_0xd45f13['last'],'includeAllSlots':!0x0};}const _0x104379=_0x4f201['createTableWalker'](_0x14c53a,_0xb717af),_0x2562bf=Array['from'](_0x104379)['map'](({cell:_0x4f2f49})=>_0x4f2f49),_0x7087c8=Ne(_0x2562bf['filter'](_0x3393ca=>_0x3393ca['hasAttribute'](_0x4a1b0c))),_0x28f223=Ne(_0x2562bf['filter'](_0x2d5412=>!_0x2d5412['hasAttribute'](_0x4a1b0c)))['map'](_0x5744e4=>_0x5c56b1['createRangeOn'](_0x5744e4)),_0x462fcd=_0x26df41['markMultiRangeDeletion'](_0x28f223,_0x680e3);if(_0x462fcd&&('tableRow'==_0x462fcd['subType']||'tableColumn'==_0x462fcd['subType'])){const _0x482ebc=this['_getSuggestionCoords'](_0x462fcd);for(const _0x5c2c86 of _0x7087c8){const _0x284898=_0x5c56b1['createRangeOn'](_0x5c2c86),_0xc7f080=_0x4f201['getCellLocation'](_0x5c2c86),_0x57e3da=_0x5c2c86['getAttribute'](_0x4a1b0c)-0x1,_0x314342=_0x482ebc[_0x325504],_0x2ca1ab=_0x482ebc[_0x531916];_0x314342<=_0xc7f080[_0x82e5f9]&&_0xc7f080[_0x82e5f9]+_0x57e3da<=_0x2ca1ab&&_0x462fcd['addRange'](_0x284898);}}});});}function _0x37a0b3(_0x2a37a3){const _0x32059d=Array['from'](_0xeb1ab6['getRanges']())['map'](_0x24612d=>_0x1437b2['fromRange'](_0x24612d));_0x27ea9a['model']['change'](_0x20adbd=>{const _0x38b072=_0x20adbd['batch'];_0x2a37a3=_0x2a37a3['filter'](_0xf18682=>'$graveyard'!=_0xf18682['root']['rootName']),_0x20adbd['setSelection'](_0x2a37a3),_0x27ea9a['commands']['get']('removeTableRow')['refresh'](),_0x27ea9a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x27ea9a['model']['enqueueChange'](()=>{_0x27ea9a['model']['enqueueChange'](_0x38b072,_0x4a70cf=>{const _0x4b346e=_0x32059d['filter'](_0x28d943=>'$graveyard'!=_0x28d943['root']['rootName']);_0x4b346e['length']>0x0&&_0x4a70cf['setSelection'](_0x4b346e);for(const _0x35fe0a of _0x32059d)_0x35fe0a['detach']();});});});}function _0x1f2944(_0x31cc10){_0x27ea9a['model']['change'](_0x48eb6a=>{const _0x312633=Array['from'](_0xeb1ab6['getRanges']())['map'](_0x540d53=>_0x1437b2['fromRange'](_0x540d53)),_0x6099f7=[];for(const _0x4647dd of _0x31cc10)for(const _0x48b2b4 of _0x4647dd['getItems']({'shallow':!0x0}))_0x6099f7['push'](_0x48b2b4);for(const _0x355f50 of _0x6099f7)'$graveyard'!=_0x355f50['root']['rootName']&&(_0x48eb6a['setSelection'](_0x48eb6a['createPositionAt'](_0x355f50,0x0)),_0x27ea9a['commands']['get']('removeTableColumn')['refresh'](),_0x27ea9a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x484f3d=_0x312633['filter'](_0x1759e9=>'$graveyard'!=_0x1759e9['root']['rootName']);_0x484f3d['length']>0x0&&_0x48eb6a['setSelection'](_0x484f3d);for(const _0x1f0a40 of _0x312633)_0x1f0a40['detach']();});}function _0x15e183(_0x5f4009,_0x16577e){return _0x16577e['every'](_0x150537=>_0x5f4009['some'](_0x5b351d=>_0x5b351d['end']['isEqual'](_0x150537['start'])||_0x150537['end']['isEqual'](_0x5b351d['start'])));}function _0x5d669b(_0x5b0945,_0x3be216){return!_0x5b0945['some'](_0x4afaed=>_0x3be216['some'](_0x2b46b4=>_0x4afaed['isIntersecting'](_0x2b46b4)))&&_0x5b0945['some'](_0x4408ed=>_0x3be216['some'](_0x6ca322=>_0x4408ed['end']['isTouching'](_0x6ca322['start'])));}_0x27ea9a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x456485,_0xb9bf51,_0x1d4f39)=>{if(!_0x1d4f39['options']['showSuggestionHighlights'])return;const _0x322265=_0xb9bf51['item'];if(!_0x322265||!_0x322265['is']('element','tableCell'))return;const _0x463f8d=_0x1d4f39['mapper']['toViewElement'](_0x322265);if(_0x463f8d){const {id:_0x4a17c9,authorId:_0x400e15}=_0x26df41['_splitMarkerName'](_0xb9bf51['markerName']);_0x214e22(_0x463f8d,_0x1d4f39['writer'],(_0x2c1df8,_0x973e0b,_0x2d831e)=>{_0x2d831e['addClass'](_0x35a6eb(_0x973e0b['classes']),_0x2c1df8),_0x2d831e['setAttribute']('data-suggestion-id',_0x4a17c9,_0x2c1df8),_0x2d831e['setAttribute']('data-author-id',_0x400e15,_0x2c1df8);},(_0x42ba7e,_0x676e35,_0x2f61a2)=>{_0x2f61a2['removeClass'](_0x35a6eb(_0x676e35['classes']),_0x42ba7e),_0x2f61a2['removeAttribute']('data-suggestion-id',_0x42ba7e),_0x2f61a2['removeAttribute']('data-author-id',_0x42ba7e);});}},{'priority':'highest'}),_0x26df41['descriptionFactory']['registerDescriptionCallback'](_0x579eea=>{if('insertion'!=_0x579eea['type']&&'deletion'!=_0x579eea['type'])return;const _0x35de55=_0x579eea['getContainedElement']();if(null!=_0x35de55&&_0x35de55['is']('element','table')){if('insertion'==_0x579eea['type']){const _0x10887a=_0x579eea['getItems']()['filter'](_0x25f398=>_0x25f398['is']('$textProxy'))['map'](_0x166ee7=>_0x166ee7['data']);if(_0x10887a['length'])return{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10887a['join']('\x20')+'\x22'))};}if('deletion'==_0x579eea['type']){const _0x388229=_0x579eea['getItems']()['filter'](_0x193728=>_0x193728['is']('$textProxy'))['map'](_0x1d9cf1=>_0x1d9cf1['data']);if(_0x388229['length'])return{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x388229['join']('\x20')+'\x22'))};}}}),_0x26df41['descriptionFactory']['registerDescriptionCallback'](_0x160d3f=>{if('tableRow'==_0x160d3f['subType']){const _0x3ed355=_0x160d3f['getItems']()['filter'](_0x2965cf=>_0x2965cf['is']('$textProxy'))['map'](_0x4faea5=>_0x4faea5['data']),_0x4b538f=this['_getSuggestionCoords'](_0x160d3f),_0xbaf3f2=_0x4b538f['maxRow']-_0x4b538f['minRow']+0x1;if('insertion'==_0x160d3f['type'])return _0x3ed355['length']?{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbaf3f2,'\x22'+_0x3ed355['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW',_0xbaf3f2))};if('deletion'==_0x160d3f['type'])return _0x3ed355['length']?{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbaf3f2,'\x22'+_0x3ed355['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_ROW',_0xbaf3f2))};}if('tableColumn'==_0x160d3f['subType']){const _0x5cd12a=_0x160d3f['getItems']()['filter'](_0x284c2a=>_0x284c2a['is']('$textProxy'))['map'](_0x2b6eb9=>_0x2b6eb9['data']),_0x4a6f12=this['_getSuggestionCoords'](_0x160d3f),_0x223f4a=_0x4a6f12['maxColumn']-_0x4a6f12['minColumn']+0x1;if('insertion'==_0x160d3f['type'])return _0x5cd12a['length']?{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x223f4a,'\x22'+_0x5cd12a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x552627,'*Insert:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN',_0x223f4a))};if('deletion'==_0x160d3f['type'])return _0x5cd12a['length']?{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x223f4a,'\x22'+_0x5cd12a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x552627,'*Remove:*\x20%0',o(_0x552627,'ELEMENT_TABLE_COLUMN',_0x223f4a))};}}),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x37a0b3),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x37a0b3),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f2944),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f2944),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x15e183),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x15e183),_0x26df41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d669b),_0x26df41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d669b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33ba36=this['editor'],_0x42e6b1=_0x33ba36['model']['document']['selection'];return(_0x1dd7f3,_0x3af73e)=>{_0x33ba36['model']['change'](_0x168dd9=>{const {commandName:_0x3e7aaa,commandParams:_0x47f600}=_0x3af73e;let _0x218d5c=_0x1dd7f3[0x0]['end']['nodeBefore'];_0x47f600&&_0x47f600[0x0]&&!0x1===_0x47f600[0x0]['forceValue']&&(_0x218d5c=_0x1dd7f3[0x0]['start']['nodeAfter']);const _0x31ea59=_0x168dd9['createRangeIn'](_0x218d5c);if('$graveyard'==_0x31ea59['root']['rootName'])return;const _0x5ec4a5=Array['from'](_0x42e6b1['getRanges']())['map'](_0x2a2134=>_0x1437b2['fromRange'](_0x2a2134));_0x168dd9['setSelection'](_0x31ea59),_0x33ba36['commands']['get'](_0x3e7aaa)['refresh'](),_0x47f600['push']({'forceDefaultExecution':!0x0}),_0x33ba36['execute'](_0x3e7aaa,..._0x47f600);const _0xbc458e=_0x5ec4a5['filter'](_0x4f2b02=>'$graveyard'!=_0x4f2b02['root']['rootName']);_0xbc458e['length']>0x0&&_0x168dd9['setSelection'](_0xbc458e);for(const _0x54dd7e of _0x5ec4a5)_0x54dd7e['detach']();});};}['_getCoordsForCells'](_0x3ad0b9){const _0x428722=this['editor']['plugins']['get']('TableUtils');let _0x2d0ea7=Number['MAX_SAFE_INTEGER'],_0x572842=Number['MIN_SAFE_INTEGER'],_0x5ac8e8=Number['MAX_SAFE_INTEGER'],_0x12ce23=Number['MIN_SAFE_INTEGER'];for(const _0x240234 of _0x3ad0b9){if('$graveyard'==_0x240234['root']['rootName'])continue;const {row:_0x1d817a,column:_0x3c90c5}=_0x428722['getCellLocation'](_0x240234),_0x42ed0a=_0x240234['hasAttribute']('rowspan')?_0x240234['getAttribute']('rowspan')-0x1:0x0,_0x480e10=_0x240234['hasAttribute']('colspan')?_0x240234['getAttribute']('colspan')-0x1:0x0;_0x2d0ea7=_0x1d817a<_0x2d0ea7?_0x1d817a:_0x2d0ea7,_0x572842=_0x1d817a+_0x42ed0a>_0x572842?_0x1d817a+_0x42ed0a:_0x572842,_0x5ac8e8=_0x3c90c5<_0x5ac8e8?_0x3c90c5:_0x5ac8e8,_0x12ce23=_0x3c90c5+_0x480e10>_0x12ce23?_0x3c90c5+_0x480e10:_0x12ce23;}return{'minRow':_0x2d0ea7,'maxRow':_0x572842,'minColumn':_0x5ac8e8,'maxColumn':_0x12ce23};}['_setupColumnsRowsFixing'](){const _0x456d92=this['editor'],_0xb80dec=_0x456d92['plugins']['get']('TrackChangesEditing'),_0x44749a=_0x456d92['plugins']['get']('TableUtils');_0x456d92['model']['document']['on']('change:data',()=>{const _0x227f60=Array['from'](_0x456d92['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25146d,data:_0x496bed}of _0x227f60){const {group:_0xb46d4e,id:_0x2c5b52,subType:_0x466939}=_0xb80dec['_splitMarkerName'](_0x25146d);if('suggestion'!=_0xb46d4e)continue;if(null!=_0x496bed['oldRange'])continue;const _0x27876a=_0xb80dec['getSuggestion'](_0x2c5b52);this['_tablePostFixingSubtypes']['includes'](_0x466939)&&this['_tableSuggestions']['add'](_0x27876a);}},{'priority':'low'});const _0x3e9819=(_0x1c346b,_0xe21059)=>{let _0x594f33=!0x1;const _0xe4e36=_0xe21059['createRangeOn'](_0x1c346b),_0x1f6ce3=_0x1c346b['findAncestor']('table'),_0x3bfb6d=_0x44749a['getCellLocation'](_0x1c346b);for(const _0xe4b107 of this['_tableSuggestions']){const _0xe8a7ad=_0xe4b107['subType'],_0x5e20c0=_0xe8a7ad['startsWith']('tablePaste'),_0x41693f=_0xe8a7ad['substr'](_0x5e20c0?0xa:0x5),_0x14f8a9=_0x41693f['toLowerCase'](),_0x1a76d5=_0x14f8a9['substr'](0x0,0x3)+'span',_0x3b730f='min'+_0x41693f,_0x2ef720='max'+_0x41693f;if(!_0xe4b107['isInContent'])continue;if(_0x1f6ce3!=_0xe4b107['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xe4b107['isIntersectingWithRange'](_0xe4e36))continue;const _0x53179a=_0x1c346b['hasAttribute'](_0x1a76d5)?_0x1c346b['getAttribute'](_0x1a76d5)-0x1:0x0,_0x5d071e=this['_getSuggestionCoords'](_0xe4b107),_0x3f7ede=_0x5d071e[_0x3b730f],_0x49dbc4=_0x5d071e[_0x2ef720];_0x3f7ede<=_0x3bfb6d[_0x14f8a9]&&_0x3bfb6d[_0x14f8a9]+_0x53179a<=_0x49dbc4&&(_0xe4b107['addRange'](_0xe4e36),_0x594f33=!0x0);}return _0x594f33;};_0x456d92['model']['document']['registerPostFixer'](_0x1c0f7f=>{let _0x3e2882=!0x1;for(const _0x3a9ed7 of _0x456d92['model']['document']['differ']['getChanges']())if('insert'==_0x3a9ed7['type']){if('tableRow'==_0x3a9ed7['name']){for(const _0x3123fa of _0x3a9ed7['position']['nodeAfter']['getChildren']())_0x3e2882=_0x3e2882||_0x3e9819(_0x3123fa,_0x1c0f7f);}else'tableCell'==_0x3a9ed7['name']&&(_0x3e2882=_0x3e2882||_0x3e9819(_0x3a9ed7['position']['nodeAfter'],_0x1c0f7f));}return _0x3e2882;});}['_getSuggestionCoords'](_0x5fe099){return this['_getCoordsForCells'](_0x5fe099['getRanges']()['map'](_0x21f4ac=>_0x21f4ac['start']['nodeAfter']));}}function Ne(_0x44e304){return Array['from'](new Set(_0x44e304)['values']());}class _t extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xa6d689=this['editor'],_0x5db651=_0xa6d689['model']['document']['selection'],_0x540231=_0xa6d689['locale'];if(!_0xa6d689['plugins']['has']('TableEditing'))return;const _0x11bcf1=_0xa6d689['plugins']['get']('TrackChangesEditing'),_0x2c4310=_0xa6d689['plugins']['get']('TableUtils'),_0x5c158b=_0xa6d689['plugins']['get'](At);_0x5c158b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x11bcf1['enableCommand']('mergeTableCells',()=>{const _0x3c1995=_0x2c4310['getSelectionAffectedTableCells'](_0xa6d689['model']['document']['selection']);_0xa6d689['model']['change'](()=>{_0x11bcf1['markMultiRangeBlockFormat'](_0x3c1995,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xa6d689['commands']['get']('mergeTableCells')['on']('execute',(_0x16e708,_0x10400c)=>{_0xa6d689['commands']['get']('trackChanges')['value']&&(_0x10400c['length']>0x0&&_0x10400c[_0x10400c['length']-0x1]&&_0x10400c[_0x10400c['length']-0x1]['forceDefaultExecution']||_0x11bcf1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16e708['stop']());},{'priority':'highest'});for(const _0x423d88 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x87ca02=_0xa6d689['commands']['get'](_0x423d88);_0x11bcf1['enableCommand'](_0x423d88,()=>{const _0x99054d=_0xa6d689['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dc7bd=>_0x4dc7bd['is']('element','tableCell')),_0x2d70d8=_0x87ca02['value'];_0xa6d689['model']['change'](()=>{_0x11bcf1['markMultiRangeBlockFormat']([_0x99054d,_0x2d70d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x350669 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2fa4d4=_0xa6d689['commands']['get'](_0x350669);_0x11bcf1['enableCommand'](_0x350669,()=>{const _0x1168c3=_0x2c4310['getSelectionAffectedTableCells'](_0xa6d689['model']['document']['selection'])[0x0],_0x3120fc=_0x1168c3['findAncestor']('table'),{column:_0xc666cc,row:_0x464022}=_0x2c4310['getCellLocation'](_0x1168c3);let _0x395911=[];if('horizontally'==_0x2fa4d4['direction']){const _0x313216=_0x2c4310['createTableWalker'](_0x3120fc,{'startRow':_0x464022,'endRow':_0x464022,'includeAllSlots':!0x0});_0x395911=Array['from'](_0x313216)['map'](_0x298bdd=>_0x298bdd['cell']);}else{const _0x16993b=_0x2c4310['createTableWalker'](_0x3120fc,{'column':_0xc666cc,'includeAllSlots':!0x0});_0x395911=Array['from'](_0x16993b)['map'](_0x53e7e2=>_0x53e7e2['cell']);}_0xa6d689['model']['change'](_0x85357d=>{_0x11bcf1['markBlockFormat'](_0x85357d['createRangeOn'](_0x1168c3),{'commandName':_0x350669,'commandParams':[]},_0x395911,_0x350669);});});}_0x11bcf1['descriptionFactory']['registerDescriptionCallback'](_0x225fd9=>{if('formatBlock'!=_0x225fd9['type']&&'formatInline'!=_0x225fd9['type'])return;const {data:_0x5a2513}=_0x225fd9;return _0x5a2513&&'mergeTableCells'==_0x5a2513['commandName']?{'type':'format','content':o(_0x540231,'*Merge\x20cells*')}:void 0x0;}),_0x11bcf1['descriptionFactory']['registerDescriptionCallback'](_0x9da5ba=>{if('formatBlock'!=_0x9da5ba['type']&&'formatInline'!=_0x9da5ba['type'])return;const {data:_0xb400d5}=_0x9da5ba;return _0xb400d5?'splitTableCellVertically'==_0xb400d5['commandName']?{'type':'format','content':o(_0x540231,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb400d5['commandName']?{'type':'format','content':o(_0x540231,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a5a67=_0x5c158b['_acceptFormatSuggestionCallbackFactory']();for(const _0x2685d6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2685d6,'accept',_0x5a5a67);for(const _0x5ee912 of['splitTableCellVertically','splitTableCellHorizontally'])_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ee912,'accept',_0x5a5a67);_0x11bcf1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x129358=>{_0xa6d689['model']['change'](_0x3fa394=>{const _0x562c24=Array['from'](_0x5db651['getRanges']())['map'](_0x5f123c=>_0x1437b2['fromRange'](_0x5f123c));_0x3fa394['setSelection'](_0x129358),_0xa6d689['commands']['get']('mergeTableCells')['refresh'](),_0xa6d689['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c17bb=_0x562c24['filter'](_0x35024e=>'$graveyard'!=_0x35024e['root']['rootName']);_0x1c17bb['length']>0x0&&_0x3fa394['setSelection'](_0x1c17bb);for(const _0xa4e444 of _0x562c24)_0xa4e444['detach']();});});for(const _0x451e06 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e189a=_0xa6d689['commands']['get'](_0x451e06);_0x5e189a['on']('set:isEnabled',(_0xe01cf1,_0x191bb4,_0x1ee12e)=>{if(_0x1ee12e){const _0x18a4b9=_0xa6d689['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x41cf22=>_0x41cf22['is']('element','tableCell'));this['_areMergableCells'](_0x5e189a['value'],_0x18a4b9)||(_0xe01cf1['return']=!0x1,_0xe01cf1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5aacbe=this['editor']['commands']['get']('mergeTableCells'),_0x823646=this['editor']['plugins']['get']('TableUtils');if(!_0x5aacbe['isEnabled'])return!0x1;const _0x4065f7=_0x823646['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5600e2 of _0x4065f7)for(const _0x335f50 of _0x4065f7)if(_0x5600e2!=_0x335f50&&!this['_areMergableCells'](_0x5600e2,_0x335f50))return!0x1;return!0x0;}['_areMergableCells'](_0x59faaf,_0x5a011a){const _0x22db87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49aa05=this['editor']['model']['createRangeOn'](_0x59faaf),_0xb8d9cf=this['editor']['model']['createRangeOn'](_0x5a011a),_0x318b07=new Set(),_0x113825=new Set();for(const _0x5ba230 of _0x22db87['getSuggestions']())if(('insertion'==_0x5ba230['type']||'deletion'==_0x5ba230['type']||'mergeTableCells'==_0x5ba230['subType'])&&_0x5ba230['isInContent']){for(const _0x286bd6 of _0x5ba230['getRanges']())_0x286bd6['containsRange'](_0x49aa05,!0x0)&&_0x318b07['add'](_0x5ba230['type']+':'+_0x5ba230['author']['id']),_0x286bd6['containsRange'](_0xb8d9cf,!0x0)&&_0x113825['add'](_0x5ba230['type']+':'+_0x5ba230['author']['id']);}if(_0x318b07['size']!=_0x113825['size'])return!0x1;for(const _0x9bcc9 of _0x318b07)if(!_0x113825['has'](_0x9bcc9))return!0x1;return!0x0;}}class Ct extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xe25fe4=this['editor'];if(!_0xe25fe4['plugins']['has']('TableEditing'))return;const _0x51642c=_0xe25fe4['locale'],_0x33668=_0xe25fe4['plugins']['get']('TrackChangesEditing');_0x33668['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33668['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33668['registerBlockAttribute']('headingRows'),_0x33668['registerBlockAttribute']('headingColumns'),_0x33668['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x51642c,'FORMAT_HEADER_ROW')),_0x33668['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x51642c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x158f1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b96f=this['editor']['plugins']['get']('TableUtils'),_0x8a0468=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x51dc8c({showActiveMarker:_0x2be5bb=!0x0,setDataAttribute:_0x6f4b72=!0x0}={}){return(_0x57b57a,_0x36a996,_0x1d97c7)=>{const {type:_0x4cc48e,id:_0xedea0b}=_0x158f1f['_splitMarkerName'](_0x36a996['markerName']),_0x2f8db0=_0x158f1f['getSuggestion'](_0xedea0b),_0x499b72=_0x2f8db0['data'];if('formatBlock'!=_0x2f8db0['type']||!_0x499b72||'setTableColumnHeader'!=_0x499b72['commandName'])return;if(_0x36a996['item'])return void _0x57b57a['stop']();if(!_0x1d97c7['consumable']['consume'](_0x36a996['markerRange'],_0x57b57a['name']))return;const _0x24ac3e=_0x36a996['markerRange']['start']['nodeAfter'],_0x52833d=_0x36a996['markerRange']['end']['nodeBefore'],_0xde0bbf=_0x24ac3e['parent']['parent'],{column:_0x3a4afe}=_0x41b96f['getCellLocation'](_0x24ac3e),{column:_0xe69908}=_0x41b96f['getCellLocation'](_0x52833d);for(let _0x46cc89=_0x3a4afe;_0x46cc89<=_0xe69908;_0x46cc89++){const _0x533dab=_0x41b96f['createTableWalker'](_0xde0bbf,{'column':_0x46cc89,'includeAllSlots':!0x1});for(const _0x3ce211 of _0x533dab){const _0x52b1fe=_0x3ce211['cell'],_0x1f619b=_0x1d97c7['mapper']['toViewElement'](_0x52b1fe);_0x1d97c7['writer']['addClass']('ck-suggestion-marker-'+_0x4cc48e,_0x1f619b),_0x6f4b72&&_0x1d97c7['writer']['setAttribute']('data-suggestion',_0xedea0b,_0x1f619b),_0x1d97c7['mapper']['bindElementToMarker'](_0x1f619b,_0x36a996['markerName']),_0x2be5bb&&(_0x158f1f['activeMarkers']['includes'](_0x36a996['markerName'])?_0x1d97c7['writer']['addClass']('ck-suggestion-marker--active',_0x1f619b):_0x1d97c7['writer']['removeClass']('ck-suggestion-marker--active',_0x1f619b));}}};}_0x158f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8a0468),_0x158f1f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8a0468),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51dc8c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11b1b6,_0xc9cb85,_0x148714)=>{_0x148714['options']['showSuggestionHighlights']&&_0x51dc8c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11b1b6,_0xc9cb85,_0x148714);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c23da,_0x51be04,_0x13bdc4)=>{const {type:_0x4244d1,id:_0x4a9735}=_0x158f1f['_splitMarkerName'](_0x51be04['markerName']),_0x3483a7=_0x158f1f['getSuggestion'](_0x4a9735),_0x20d367=_0x3483a7['data'];if('formatBlock'!=_0x3483a7['type']||!_0x20d367||'setTableColumnHeader'!=_0x20d367['commandName'])return;const _0x3c152f=_0x13bdc4['mapper']['markerNameToElements'](_0x51be04['markerName']);if(_0x3c152f){for(const _0x30157b of _0x3c152f)_0x13bdc4['writer']['removeClass']('ck-suggestion-marker-'+_0x4244d1,_0x30157b),_0x13bdc4['writer']['removeClass']('ck-suggestion-marker--active',_0x30157b),_0x13bdc4['writer']['removeAttribute']('data-suggestion',_0x30157b),_0x13bdc4['mapper']['unbindElementFromMarkerName'](_0x30157b,_0x51be04['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2251bc=this['editor'],_0x42a8a9=_0x2251bc['locale'];function _0x21578a(_0x1198f5){return{'type':'format','content':o(_0x42a8a9,'*Format:*\x20%0',_0x1198f5)};}_0x2251bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44993a=>{if('formatBlock'!=_0x44993a['type'])return;const {data:_0x26ebf3}=_0x44993a;if(_0x26ebf3){if('setTableRowHeader'==_0x26ebf3['commandName']){const _0x34dd57=_0x26ebf3['commandParams'][0x0]['forceValue'];return _0x21578a(o(_0x42a8a9,_0x34dd57?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x26ebf3['commandName']){const _0x5d8add=_0x26ebf3['commandParams'][0x0]['forceValue'];return _0x21578a(o(_0x42a8a9,_0x5d8add?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xa897c8{['afterInit'](){const _0x285526=this['editor'],_0x5e35e3=_0x285526['locale'],_0x114fa5=_0x285526['plugins']['get']('TrackChangesEditing');function _0x499e8e(_0x4a5c13){return{'type':'format','content':''+o(_0x5e35e3,'*Set\x20table\x20type:*\x20%0',_0x4a5c13)};}_0x285526['plugins']['has']('TableLayout')&&(_0x114fa5['enableCommand']('insertTableLayout'),_0x114fa5['enableDefaultAttributesIntegration']('tableType'),_0x114fa5['registerBlockAttribute']('tableType'),_0x114fa5['descriptionFactory']['registerElementLabel'](_0x35f201=>_0x35f201['is']('element','table')&&'layout'===_0x35f201['getAttribute']('tableType'),_0x2d2cce=>o(_0x5e35e3,'ELEMENT_LAYOUT_TABLE',_0x2d2cce)),_0x114fa5['descriptionFactory']['registerDescriptionCallback'](_0x5e3aad=>{const {data:_0x1f7660}=_0x5e3aad;if(_0x1f7660&&'tableType'==_0x1f7660['key'])switch(_0x1f7660['newValue']){case'layout':return _0x499e8e(o(_0x5e35e3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x499e8e(o(_0x5e35e3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x5034b6=>[_0x5034b6,null]));class Nt extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0xf89766=this['editor'];if(!_0xf89766['plugins']['has']('TableClipboard'))return;const _0x3fbff3=_0xf89766['plugins']['get']('TrackChangesEditing'),_0x500074=_0xf89766['plugins']['get']('TableUtils'),_0x382a39=_0xf89766['plugins']['get'](At),_0x30cd3b=_0xf89766['plugins']['get']('TableClipboard'),_0x1ee1f9=_0xf89766['plugins']['get']('TableSelection'),_0x29fbc7=_0xf89766['plugins']['get'](_0x2e6b2c);_0x382a39['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf89766['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf89766['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d75d9=null,_0x1209e0=!0x1;_0x29fbc7['on']('contentInsertion',(_0x2e696b,_0x13cc93)=>{_0x1209e0='paste'===_0x13cc93['method'];}),_0xf89766['model']['on']('insertContent',(_0x4cbded,_0x2e9594)=>{if(!_0x1209e0&&null===_0x1ee1f9['getSelectedTableCells']())return;const [_0x10edb6,_0x27d875]=_0x2e9594,_0x3bd6ab=_0x2e9594[_0x2e9594['length']-0x1];_0x3bd6ab&&_0x3bd6ab['forceDefaultExecution']||_0x3fbff3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x243660,_0x39418b,_0x38111c,_0x3c4aec,_0x5aadbd){if(_0x39418b&&!_0x39418b['is']('documentSelection'))return!0x1;const _0x9b3008=_0x5aadbd['getTableIfOnlyTableInContent'](_0x243660,_0x38111c);if(!_0x9b3008||!Ue(_0x9b3008,void 0x0,_0x3c4aec))return!0x1;const _0x56cec3=_0x3c4aec['getSelectionAffectedTableCells'](_0x38111c['document']['selection']);if(!_0x56cec3['length'])return!0x1;const _0xde3975=_0x56cec3[0x0]['findAncestor']('table'),_0x5609c7=_0x3c4aec['getRowIndexes'](_0x56cec3),_0x136081=_0x3c4aec['getColumnIndexes'](_0x56cec3),_0x125eb2={'startRow':_0x5609c7['first'],'endRow':_0x5609c7['last'],'startColumn':_0x136081['first'],'endColumn':_0x136081['last']};return 0x1==_0x56cec3['length']&&(_0x125eb2['endRow']+=_0x3c4aec['getRows'](_0x9b3008)-0x1,_0x125eb2['endColumn']+=_0x3c4aec['getColumns'](_0x9b3008)-0x1),Ue(_0xde3975,_0x125eb2,_0x3c4aec);}(_0x10edb6,_0x27d875,_0xf89766['model'],_0x500074,_0x30cd3b)&&(_0x4cbded['stop'](),_0x3d75d9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf89766['model']['change'](()=>{_0xf89766['model']['insertContent'](_0x2e9594[0x0],_0x2e9594[0x1],_0x2e9594[0x2],{'forceDefaultExecution':!0x0});const _0x4f1026=_0x4e9a0b(),{rowInsertionRanges:_0x53d57b,columnInsertionRanges:_0x2a6e96,insertionRanges:_0x3376a3,deletionRanges:_0x1ccecc,cells:_0x2687ee}=_0x3d75d9;_0x53d57b['length']&&_0x3fbff3['markMultiRangeInsertion'](_0x53d57b,'tablePasteRow',{'tablePasteChainId':_0x4f1026}),_0x2a6e96['length']&&_0x3fbff3['markMultiRangeInsertion'](_0x2a6e96,'tablePasteColumn',{'tablePasteChainId':_0x4f1026}),_0x3376a3['length']&&(_0x3fbff3['markMultiRangeInsertion'](_0x3376a3,'tablePaste',{'tablePasteChainId':_0x4f1026,'skipNestingCheck':!0x0}),_0x3376a3['forEach'](_0x580fef=>_0x580fef['detach']?.())),_0x1ccecc['length']&&(_0x3fbff3['markMultiRangeDeletion'](_0x1ccecc,'tablePaste',{'tablePasteChainId':_0x4f1026,'skipNestingCheck':!0x0}),_0x1ccecc['forEach'](_0x284f66=>_0x284f66['detach']?.()));const _0x4d9494=_0x3fbff3['markMultiRangeBlockFormat'](_0x2687ee['map'](({element:_0x2abe61})=>_0x2abe61),{'formatGroupId':_0x4e9a0b()},[],'tablePasteCell',{'tablePasteChainId':_0x4f1026});if(_0x4d9494){const _0x3d169e=_0x4d9494['getMarkers'](),_0x117d97=[];for(const {element:_0xae216d,attributes:_0x23317b}of _0x2687ee){if(!_0x23317b)continue;const _0x3eddd6=_0xf89766['model']['createRangeOn'](_0xae216d),_0x26f84a=_0x3d169e['find'](_0x3edb70=>_0x3edb70['getRange']()['isEqual'](_0x3eddd6));_0x26f84a&&_0x117d97['push']([_0x26f84a['name'],_0x23317b]);}_0x117d97['length']&&_0x4d9494['setAttribute']('markerAttributes',Object['fromEntries'](_0x117d97));}_0x3d75d9=null;}));},{'priority':_0x3efbf3['high']+0xa}),_0x29fbc7['on']('contentInsertion',()=>{_0x1209e0=!0x1;},{'priority':'lowest'}),_0xf89766['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11a3e5,_0xbda10d)=>{const [_0x148e13,_0x475048,,_0xfd5699]=_0xbda10d;if(!_0x3d75d9)return;_0x11a3e5['stop']();const _0x2babe0=_0x148e13['cell'],_0x14c7e1=_0x475048,_0xa13176=Oe(_0x2babe0),_0x40572d=Oe(_0x14c7e1);_0x11a3e5['return']=_0x2babe0;let _0x521f69=null,_0x381572=null;if(_0x40572d||_0xa13176){if(_0xa13176&&!_0x40572d){_0xfd5699['remove'](_0x2babe0['getChild'](0x0));for(const _0xced4 of Array['from'](_0x14c7e1['getChildren']()))_0xfd5699['insert'](_0xced4,_0x2babe0,'end');const _0x1094ce=_0x3d75d9['rowInsertionIndexes']['includes'](_0x148e13['row']),_0x2e66bb=_0x3d75d9['columnInsertionIndexes']['includes'](_0x148e13['column']);_0x1094ce||_0x2e66bb||(_0x521f69=_0x1437b2['fromRange'](_0xfd5699['createRangeIn'](_0x2babe0)));}else _0x40572d&&!_0xa13176&&(_0x381572=_0xfd5699['createRangeIn'](_0x2babe0));}else{const _0x437966=_0xfd5699['createElement']('tableCellSuggestion'),_0x5b0d82=_0xfd5699['createElement']('tableCellSuggestion');_0xfd5699['wrap'](_0xfd5699['createRangeIn'](_0x2babe0),_0x5b0d82),_0xfd5699['insert'](_0x437966,_0x2babe0,0x0);for(const _0x41a6b8 of Array['from'](_0x14c7e1['getChildren']()))_0xfd5699['insert'](_0x41a6b8,_0x437966,'end');_0x521f69=_0x1437b2['fromRange'](_0xfd5699['createRangeOn'](_0x437966)),_0x381572=_0x1437b2['fromRange'](_0xfd5699['createRangeOn'](_0x5b0d82));}const _0x3d23d0=Array['from'](_0x14c7e1['getAttributes']())['filter'](([_0x9f6d5c])=>Be['includes'](_0x9f6d5c));_0x3d75d9['cells']['push']({'element':_0x2babe0,'attributes':_0x3d23d0['length']?Object['fromEntries'](_0x3d23d0):null}),_0x521f69&&_0x3d75d9['insertionRanges']['push'](_0x521f69),_0x381572&&_0x3d75d9['deletionRanges']['push'](_0x381572);},{'priority':'high'}),_0x500074['on']('insertColumns',(_0x1ee996,_0x229b76)=>{const [_0x54c83f,_0x1c83c9={}]=_0x229b76;if(!_0x3d75d9)return;const _0x23603a=_0x1c83c9['at']||0x0,_0x3bb112=_0x1c83c9['columns']||0x1;_0x3d75d9['columnInsertionIndexes']=new Array(_0x3bb112)['fill'](_0x23603a)['map']((_0x23d9e7,_0x4056ce)=>_0x23d9e7+_0x4056ce);for(const {cell:_0x21290e}of _0x500074['createTableWalker'](_0x54c83f,{'startColumn':_0x23603a,'endColumn':_0x23603a+_0x3bb112-0x1}))_0x3d75d9['columnInsertionRanges']['push'](_0xf89766['model']['createRangeOn'](_0x21290e));},{'priority':'low'}),_0x500074['on']('insertRows',(_0x527d67,_0x6e871d)=>{const [_0x27da1a,_0x5840f4={}]=_0x6e871d;if(!_0x3d75d9)return;const _0x4bca14=_0x5840f4['at']||0x0,_0x561c3d=_0x5840f4['rows']||0x1;_0x3d75d9['rowInsertionIndexes']=new Array(_0x561c3d)['fill'](_0x4bca14)['map']((_0x3cc13b,_0x437d40)=>_0x3cc13b+_0x437d40);for(const {cell:_0x345861}of _0x500074['createTableWalker'](_0x27da1a,{'startRow':_0x4bca14,'endRow':_0x4bca14+_0x561c3d-0x1}))_0x3d75d9['rowInsertionRanges']['push'](_0xf89766['model']['createRangeOn'](_0x345861));},{'priority':'low'}),_0x3fbff3['descriptionFactory']['registerDescriptionCallback'](_0x3793a5=>{if(_0x3793a5['subType']&&_0x3793a5['subType']['startsWith']('tablePaste'))return _0x3793a5['previous']?{}:{'type':'insertion','content':o(_0xf89766['locale'],'*Replace\x20table\x20cells*')};});const _0x21cc32=()=>!0x1;for(const _0x456b3f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion',_0x456b3f,'join',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('deletion',_0x456b3f,'join',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x456b3f,'join',_0x21cc32);_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x21cc32),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x34ddb3,_0x3443d7,_0x21949)=>{const _0x2b98cf=_0x34ddb3['map'](_0x18eac4=>_0x18eac4['getContainedElement']())['filter'](_0x39188e=>_0x39188e),_0x34e278=new Map(_0x2b98cf['map'](_0x176801=>[_0x176801,null]));if(_0x3d75d9){for(const {element:_0x5a8961,attributes:_0xbf6b22}of _0x3d75d9['cells'])_0xbf6b22&&_0x34e278['set'](_0x5a8961,_0xbf6b22);}else{if(_0x21949&&_0x21949['markerAttributes'])for(const [_0x401f22,_0x197884]of Object['entries'](_0x21949['markerAttributes'])){const _0x25f6b5=_0xf89766['model']['markers']['get'](_0x401f22),_0xbf2237=_0x25f6b5?_0x25f6b5['getRange']()['getContainedElement']():null;_0xbf2237&&_0x34e278['set'](_0xbf2237,_0x197884);}}_0xf89766['model']['change'](_0x3fb730=>{for(const [_0x423bc9,_0x2c6680]of _0x34e278)_0x3fb730['setAttributes']({...xe,..._0x2c6680},_0x423bc9);});});const _0xc07bf4=(_0x1dff96,_0x593c68)=>{_0x3fbff3['_suggestionFactory']['registerCustomCallback'](_0x1dff96,'tablePaste',_0x593c68,(_0x511173,_0x994d37,_0x30d8e3)=>{_0xf89766['model']['change'](_0x2e315a=>{const _0x5745ab=[];for(const _0x5af225 of _0x511173){const _0xd91b50=_0x5af225['start']['nodeAfter'];_0xd91b50['is']('element','tableCellSuggestion')&&_0x5745ab['push'](_0xd91b50);}_0x3fbff3['_suggestionFactory']['getSuggestionCallback'](_0x1dff96,null,_0x593c68)(_0x511173,_0x994d37,_0x30d8e3);for(const _0x5e474c of _0x5745ab)'$graveyard'!=_0x5e474c['root']['rootName']&&_0x2e315a['unwrap'](_0x5e474c);});});};_0xc07bf4('insertion','accept'),_0xc07bf4('insertion','discard'),_0xc07bf4('deletion','accept'),_0xc07bf4('deletion','discard'),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3f721b=>{const _0x47f26b=_0x3f721b['map'](_0x35fdc3=>_0x35fdc3['getContainedElement']()),_0xaf8704=_0x47f26b[0x0]['findAncestor']('table'),{minRow:_0x58d127,maxRow:_0x52f3d4}=_0x382a39['_getCoordsForCells'](_0x47f26b);_0x500074['removeRows'](_0xaf8704,{'at':_0x58d127,'rows':_0x52f3d4-_0x58d127+0x1});}),_0x3fbff3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59a150=>{const _0x53a5e4=_0x59a150['map'](_0x28c1ac=>_0x28c1ac['getContainedElement']()),_0x47d837=_0x53a5e4[0x0]['findAncestor']('table'),{minColumn:_0x4aaae3,maxColumn:_0x265873}=_0x382a39['_getCoordsForCells'](_0x53a5e4);_0x500074['removeColumns'](_0x47d837,{'at':_0x4aaae3,'columns':_0x265873-_0x4aaae3+0x1});});const _0x2affe5=(_0x291048,_0x8d17fe)=>{if(!_0x8d17fe['subType']||!_0x8d17fe['subType']['startsWith']('tablePaste'))return;const _0x39b4b8=_0x8d17fe['attributes']['tablePasteChainId'],_0x2ec754=_0x3fbff3['getSuggestions']()['filter'](_0x3715ef=>_0x3715ef['isInContent']&&_0x3715ef['attributes']&&_0x3715ef['attributes']['tablePasteChainId']==_0x39b4b8);_0x2ec754['length']&&_0x8d17fe['getAllAdjacentSuggestions']()['length']!=_0x2ec754['length']&&_0x2ec754['reduce']((_0x47257f,_0x2d0b3b)=>(_0x47257f['next']=_0x2d0b3b,_0x2d0b3b['previous']=_0x47257f,_0x2d0b3b));};function _0x36520d(_0x39129d,_0x41237c=!0x0){const {id:_0x1e6cac,authorId:_0x1fd3fe}=_0x3fbff3['_splitMarkerName'](_0x39129d['markerName']),_0x7642ca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3974d5=_0x3fbff3['activeMarkers']['includes'](_0x39129d['markerName']);return _0x3974d5&&_0x7642ca['push']('ck-suggestion-marker--active'),{'classes':_0x7642ca,'attributes':{'data-suggestion':_0x1e6cac,'data-author-id':_0x1fd3fe},'priority':_0x3974d5&&_0x41237c?0xbc2:0xbb8};}_0x3fbff3['on']('suggestionLoaded',_0x2affe5,{'priority':'high'}),_0x3fbff3['on']('suggestionUnloaded',_0x2affe5,{'priority':'high'}),_0xf89766['model']['document']['registerPostFixer'](()=>{let _0x3e26ad=!0x1;const _0x4d3186=Array['from'](_0xf89766['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x362d28,data:_0x10dedf}of _0x4d3186){const {group:_0x4dde6e,type:_0x144fbf,id:_0x295f84}=_0x3fbff3['_splitMarkerName'](_0x362d28);if('suggestion'!=_0x4dde6e||'deletion'!=_0x144fbf||_0x10dedf['oldRange'])continue;if(!_0x3fbff3['hasSuggestion'](_0x295f84))continue;const _0x4c7c9f=_0x3fbff3['getSuggestion'](_0x295f84)['getRanges'](),_0x2f73f2=_0xf89766['plugins']['get']('Users')['me'];for(const _0x2200b9 of _0x3fbff3['getSuggestions']()){if(!_0x2200b9['isInContent']||_0x2200b9['author']!=_0x2f73f2)continue;if('formatBlock'!=_0x2200b9['type']||'tablePasteCell'!=_0x2200b9['subType'])continue;if(_0x2200b9['getRanges']()['every'](_0x498aeb=>_0x4c7c9f['some'](_0x4eaf1f=>_0x4eaf1f['containsRange'](_0x498aeb,!0x0)))){for(const _0x35232a of _0x2200b9['getAllAdjacentSuggestions']())_0x35232a['isInContent']&&(_0x35232a['discard'](),_0x3e26ad=!0x0);}}}return _0x3e26ad;}),_0xf89766['model']['document']['registerPostFixer'](_0x2e2ed3=>{const _0x4173df=_0xf89766['commands']['get']('redo');if(!_0x4173df||!_0x4173df['_createdBatches']['has'](_0x2e2ed3['batch']))return!0x1;let _0x30c768=!0x1;const _0x45e0cf=_0xf89766['plugins']['get']('Users')['me'],_0x40b6d4=_0xf89766['model']['document']['differ']['getChanges'](),_0x12dacf=Array['from'](_0xf89766['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32d25e,data:_0x304008})=>{const {group:_0xada155,subType:_0x1b5f93,authorId:_0x4e4675}=_0x3fbff3['_splitMarkerName'](_0x32d25e);return'suggestion'==_0xada155&&'tablePaste'==_0x1b5f93&&_0x4e4675==_0x45e0cf['id']&&!_0x304008['oldRange'];});for(const _0x505e01 of _0x40b6d4){if('insert'!=_0x505e01['type']||'tableCellSuggestion'!=_0x505e01['name']||0x1!=_0x505e01['length'])continue;const _0x352f6d=_0x2e2ed3['createRange'](_0x505e01['position'],_0x505e01['position']['getShiftedBy'](0x1));if(!_0x12dacf['find'](({data:_0x1776ad})=>_0x1776ad['newRange']['isEqual'](_0x352f6d))){for(const {name:_0x2127bc,data:_0x4f8302}of _0x12dacf)if(_0x352f6d['containsRange'](_0x4f8302['newRange'])){_0x2e2ed3['updateMarker'](_0x2127bc,{'range':_0x352f6d}),_0x30c768=!0x0;break;}}}return _0x30c768;}),_0xf89766['model']['document']['registerPostFixer'](_0x427060=>{let _0x84fb6d=!0x1;const _0x23a05f=_0xf89766['plugins']['get']('Users')['me'],_0x5ecb5a=_0x3fbff3['getSuggestions']()['filter'](_0x3758e9=>_0x3758e9['isInContent']&&_0x3758e9['author']==_0x23a05f),_0x4eae1d=new Set(),_0xdc292d=new Set();for(const _0x4ef63f of _0x5ecb5a)if('tablePaste'==_0x4ef63f['subType'])for(const _0x52366d of _0x4ef63f['getMarkers']()){const _0x1e7a8a=_0x52366d['getRange']()['getContainedElement']();if(_0x1e7a8a){if(_0x1e7a8a['is']('element','tableCellSuggestion')&&Oe(_0x1e7a8a)){_0x4ef63f['removeMarker'](_0x52366d['name']),_0x4eae1d['add'](_0x1e7a8a),_0x84fb6d=!0x0;const _0x22f727=_0x1e7a8a['nextSibling'],_0x1b5b54=_0x1e7a8a['previousSibling'],_0x3e7191=_0x22f727&&_0x22f727['is']('element','tableCellSuggestion'),_0x5c362b=_0x1b5b54&&_0x1b5b54['is']('element','tableCellSuggestion');_0x3e7191&&!_0x4eae1d['has'](_0x22f727)&&_0xdc292d['add'](_0x22f727),_0x5c362b&&!_0x4eae1d['has'](_0x1b5b54)&&_0xdc292d['add'](_0x1b5b54);}else _0x1e7a8a['is']('element','paragraph')&&_0x1e7a8a['isEmpty']&&(_0x4ef63f['removeMarker'](_0x52366d['name']),_0x84fb6d=!0x0);}}else{if('tablePasteCell'==_0x4ef63f['subType']){if(!_0x4ef63f['attributes']||!_0x4ef63f['attributes']['tablePasteChainId'])continue;const _0x48c45b=_0x4ef63f['attributes']['markerAttributes'];if(_0x48c45b&&Object['keys'](_0x48c45b)['length'])continue;const _0x5535a2=_0x4ef63f['attributes']['tablePasteChainId'];let _0x23a790=!0x0,_0x4f9edc=!0x0;for(const _0x346773 of _0x5ecb5a)if(_0x346773['subType']&&_0x346773['subType']['startsWith']('tablePaste')){if(!_0x346773['attributes']['tablePasteChainId']){_0x4f9edc=!0x1;break;}if(_0x346773['id']!=_0x4ef63f['id']&&_0x346773['attributes']['tablePasteChainId']==_0x5535a2){_0x23a790=!0x1;break;}}_0x4f9edc&&_0x23a790&&(_0x4ef63f['removeMarkers'](),_0x84fb6d=!0x0);}}for(const _0x26dfb5 of _0x4eae1d)_0x427060['remove'](_0x26dfb5);for(const _0x287ab1 of _0xdc292d)_0x427060['unwrap'](_0x287ab1);return _0x84fb6d;}),_0xf89766['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x494b0e=>_0x36520d(_0x494b0e),'converterPriority':'high'}),_0xf89766['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a7842,_0x3c1574)=>_0x3c1574['options']['showSuggestionHighlights']?_0x36520d(_0x2a7842,!0x1):null,'converterPriority':'high'});const _0x4bb4e2=_0xf89766['editing']['view'];this['listenTo'](_0x4bb4e2['document'],'clipboardOutput',(_0x3d0080,_0x2c266f)=>{const _0x1d5ac4=[];for(const _0x19271b of _0x4bb4e2['createRangeIn'](_0x2c266f['content'])['getItems']())_0x19271b['is']('element','suggestion-td')&&_0x1d5ac4['push'](_0x19271b);_0x4bb4e2['change'](_0x1fcae0=>{for(const _0x1348de of _0x1d5ac4)_0x1fcae0['move'](_0x1fcae0['createRangeIn'](_0x1348de),_0x1fcae0['createPositionBefore'](_0x1348de)),_0x1fcae0['remove'](_0x1348de);});});}}function Oe(_0x9bc1c6){if(_0x9bc1c6['isEmpty'])return!0x0;const _0xb0622d=_0x9bc1c6['getChild'](0x0);return _0xb0622d['is']('element','paragraph')&&_0xb0622d['isEmpty'];}function Ue(_0x1a4daf,_0x2111a1={},_0xb9cf0a){for(const {isAnchor:_0x26a576,cellHeight:_0x113aca,cellWidth:_0x4e4f75}of _0xb9cf0a['createTableWalker'](_0x1a4daf,{'includeAllSlots':!0x0,..._0x2111a1}))if(!_0x26a576||0x1!=_0x113aca||0x1!=_0x4e4f75)return!0x1;return!0x0;}class Dt extends _0xa897c8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x372535=this['editor']['plugins']['get']('TrackChangesEditing');_0x372535['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x372535['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x372535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372535['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x372535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x372535['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3e0f26,_0x5f5c11){const _0x33a582=this['editor']['plugins']['get']('TrackChangesEditing'),_0x71e20f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36f920=_0x5f5c11['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x42a688=_0x71e20f['getColumnGroupElement'](_0x36f920);let _0x3b2e41=_0x42a688?_0x71e20f['getTableColumnsWidths'](_0x42a688):null,_0xa8619e=_0x36f920['getAttribute']('tableWidth')||null;const _0x5e1edb=_0x5f5c11['tableWidth']||_0xa8619e,_0x4f381e=_0x5f5c11['columnWidths']||_0x3b2e41,_0x1714ba=this['editor']['plugins']['get']('Users')['me'];for(const _0x3be8cc of _0x33a582['getSuggestions']()){const _0x2393b0=_0x3be8cc['getContainedElement']();if('resizeTable'===_0x3be8cc['subType']&&_0x2393b0===_0x36f920){_0x3be8cc['author']!==_0x1714ba&&_0x3be8cc['discard']();const _0xa442ff=_0x3be8cc['data']['commandParams'];_0xa8619e=_0xa442ff[0x0]['tableWidth'],_0x3b2e41=_0xa442ff[0x0]['columnWidths'];break;}}_0x3e0f26({'table':_0x36f920,'tableWidth':_0x5e1edb,'columnWidths':_0x4f381e}),_0x33a582['markBlockFormat'](_0x36f920,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa8619e,'columnWidths':_0x3b2e41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3dad3b){if('formatBlock'!=_0x3dad3b['type']&&'formatInline'!=_0x3dad3b['type'])return;const {data:_0x3d2d4e}=_0x3dad3b;if(_0x3d2d4e&&'resizeTable'===_0x3d2d4e['formatGroupId']){const _0xc60eb6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc60eb6)};}}}class $t extends _0xa897c8{['afterInit'](){const _0x496174=this['editor'];_0x496174['plugins']['has']('Template')&&_0x496174['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xa897c8{['afterInit'](){const _0x167bdc=this['editor'];if(!_0x167bdc['commands']['get']('insertTableOfContents'))return;_0x167bdc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x471f32=_0x167bdc['plugins']['get']('TrackChangesEditing'),_0x231faf=_0x167bdc['locale'];_0x471f32['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d0cb7=>o(_0x231faf,'ELEMENT_TABLE_OF_CONTENTS',_0x4d0cb7));}}class Bt extends _0xa897c8{['afterInit'](){const _0x216b3c=this['editor'];if(!_0x216b3c['plugins']['has']('Title'))return;const _0x22de8e=_0x216b3c['plugins']['get']('TrackChangesEditing');_0x22de8e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x216b3c['locale'],'ELEMENT_TITLE')),_0x216b3c['model']['document']['registerPostFixer'](_0x36d793=>{let _0x10799b=!0x1;const _0x56339c=Array['from'](_0x216b3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x424029,data:_0x551c79}of _0x56339c){const {group:_0x4fac94}=_0x22de8e['_splitMarkerName'](_0x424029);if('suggestion'!==_0x4fac94||!_0x551c79['newRange'])continue;const _0x55eb78=_0x551c79['newRange'],_0x2e897e=_0x55eb78['end']['nodeBefore'];if(!_0x2e897e||!_0x2e897e['is']('element','title-content'))continue;if(!_0x55eb78['start']['isTouching'](_0x55eb78['end']))continue;const _0x24ff03=_0x216b3c['model']['schema']['getNearestSelectionRange'](_0x55eb78['end'],'forward');if(_0x24ff03&&_0x24ff03['isCollapsed']){const _0x3143f5=_0x36d793['createRange'](_0x55eb78['start'],_0x24ff03['start']);_0x3143f5['isEqual'](_0x55eb78)||(_0x36d793['updateMarker'](_0x424029,{'range':_0x3143f5}),_0x10799b=!0x0);}_0x10799b||(_0x36d793['removeMarker'](_0x424029),_0x10799b=!0x0);}return _0x10799b;});}}class Tt extends _0xa897c8{['afterInit'](){const _0x41cf91=this['editor'],_0x5ac84b=_0x41cf91['plugins']['get']('TrackChangesEditing');_0x41cf91['plugins']['has']('Uploadcare')&&(_0x5ac84b['enableCommand']('uploadcare'),_0x41cf91['plugins']['has']('UploadcareImageEdit')&&(_0x5ac84b['enableCommand']('uploadcareImageEdit'),_0x5ac84b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5ac84b['registerBlockAttribute']('uploadcareImageId'),_0x5ac84b['descriptionFactory']['registerDescriptionCallback'](_0x3e7307=>{if('attribute'!=_0x3e7307['type'])return;const {data:_0x2baa32}=_0x3e7307;return _0x2baa32&&'uploadcareImageId'==_0x2baa32['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xa897c8{['afterInit'](){const _0x24b060=this['editor'],_0xf1a9fb=_0x24b060['plugins']['get']('TrackChangesEditing');_0x24b060['plugins']['has']('UndoEditing')&&(_0xf1a9fb['enableCommand']('undo'),_0xf1a9fb['enableCommand']('redo'));}}class Ot extends _0xa897c8{static get['requires'](){return[At];}['afterInit'](){const _0x16d2df=this['editor'];if(!_0x16d2df['plugins']['has']('TableCaptionEditing'))return;_0x16d2df['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xa897c8{['tableProperties'];['tableCellProperties'];constructor(_0x3f6546){super(_0x3f6546),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 _0x35346d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5e510e of this['tableProperties'])_0x35346d['enableCommand'](_0x5e510e,(_0x129190,_0x58745b)=>{const _0x3ae70f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5e510e,[_0x3ae70f],this['tableProperties'],'tableProperties',_0x129190,_0x58745b);});_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x35346d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5ea527,_0x119761)=>this['handleDiscardAction'](this['tableProperties'],_0x5ea527,_0x119761)),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2edb1a of this['tableCellProperties'])_0x35346d['enableCommand'](_0x2edb1a,(_0x319b57,_0x4eeaf3)=>{const _0x5bcc4d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2edb1a,_0x5bcc4d,this['tableCellProperties'],'tableCellProperties',_0x319b57,_0x4eeaf3);});_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x35346d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x367dc7,_0x1f22d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x367dc7,_0x1f22d5)),_0x35346d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x35346d['descriptionFactory']['registerDescriptionCallback'](_0x3b9c82=>this['handleSuggestionDescription'](_0x3b9c82)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x414710,_0x1f9e2d,_0x469a2b,_0x425119,_0x362df8,_0x3898a4){const _0x44eea2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3898a4['batch'],()=>{for(const _0x4f8be1 of _0x1f9e2d){if(this['_getSuggestion'](_0x4f8be1,_0x425119))_0x362df8(_0x3898a4);else{const _0x35cc28={};for(const _0x32112b of _0x469a2b){const _0x281e51=_0x4f8be1['getAttribute'](_0x32112b);void 0x0!==_0x281e51&&(_0x35cc28[_0x32112b]=_0x281e51);}_0x362df8(_0x3898a4),_0x44eea2['markBlockFormat'](_0x4f8be1,{'commandParams':[_0x35cc28]},[],_0x425119);}}});}['handleDiscardAction'](_0x4a3c2f,_0xf3882e,_0x79582b){const _0x1e1815=_0xf3882e[0x0]['start']['nodeAfter'],_0x2215a8=_0x79582b['commandParams'][0x0];this['editor']['model']['change'](_0x3a29cd=>{for(const _0x14c1c2 of _0x4a3c2f)void 0x0!==_0x2215a8[_0x14c1c2]?_0x3a29cd['setAttribute'](_0x14c1c2,_0x2215a8[_0x14c1c2],_0x1e1815):_0x3a29cd['removeAttribute'](_0x14c1c2,_0x1e1815);});}['handleSuggestionDescription'](_0x40b678){if(_0x40b678['data'])switch(_0x40b678['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'](_0x196cf3,_0x4e0868){const _0xaa4483=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ada89 of _0xaa4483['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f6bef=_0x5ada89['getContainedElement']();if(_0x5ada89['subType']===_0x4e0868&&_0x3f6bef===_0x196cf3)return _0x5ada89;}return null;}['_registerTablePropertiesAttributes'](){const _0x4e245e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eeedc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x444e3e of _0x3eeedc){const _0x24e35d=_0x444e3e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4e245e['registerBlockAttribute'](_0x444e3e),_0x4e245e['descriptionFactory']['registerAttributeLabel'](_0x444e3e,o(this['editor']['locale'],'FORMAT_'+_0x24e35d));}}}class Rt extends _0xa897c8{['afterInit'](){const _0x2c83b4=this['editor'];if(!_0x2c83b4['plugins']['has']('LineHeight'))return;const _0x5c84ad=_0x2c83b4['plugins']['get']('TrackChangesEditing'),_0x4c8d31=_0x2c83b4['locale'];_0x5c84ad['enableDefaultAttributesIntegration']('lineHeight'),_0x5c84ad['registerBlockAttribute']('lineHeight'),_0x5c84ad['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4c8d31,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xa897c8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x5e8d65,_0x117ef9,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c0d07){super(_0x4c0d07),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49d00d,_0x3cd5ca,_0x2f3efe,_0x11e676)=>{this['_model']['change'](()=>{for(const _0x307b6a of[..._0x11e676,..._0x2f3efe])this['_model']['markers']['has'](_0x307b6a)&&_0x4c0d07['editing']['reconvertMarker'](_0x307b6a);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4c0d07['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(),_0x4c0d07['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4c0d07['config']['get']('trackChanges.trackFormatChanges'),_0x4c0d07['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4c0d07['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4c0d07,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d5c44=this['editor'],_0x652ef1=(_0x591e29,_0x38b3de)=>{if('attribute'!=_0x591e29)return'ck-suggestion-marker-'+_0x591e29;const _0x50b0ec=_0x38b3de['split']('|')[0x0];return this['_isBlockAttribute'](_0x50b0ec)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d5c44['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xdb4fe9=>{const {id:_0x423c46,authorId:_0x22e9c0,type:_0x518bbe,subType:_0x27cf90}=this['_splitMarkerName'](_0xdb4fe9['markerName']),_0x140c8a=['ck-suggestion-marker',_0x652ef1(_0x518bbe,_0x27cf90)];let _0x1b1bc5=0xbb8;return this['activeMarkers']['includes'](_0xdb4fe9['markerName'])&&(_0x140c8a['push']('ck-suggestion-marker--active'),_0x1b1bc5=0xbc2),'deletion'==_0x518bbe&&(_0x1b1bc5+=0x5),{'classes':_0x140c8a,'attributes':{'data-suggestion':_0x423c46,'data-author-id':_0x22e9c0},'priority':_0x1b1bc5};}}),_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x5ae73a=>{_0x5ae73a['on']('addMarker:suggestion',(_0x282c99,_0x33afb9,_0xf7fcf7)=>{if(!_0xf7fcf7['options']['showSuggestionHighlights'])return;const _0x260b71=_0x33afb9['item'];if(!_0x260b71)return;const _0x490e1c=_0xf7fcf7['mapper']['toViewElement'](_0x260b71);_0x1d5c44['model']['schema']['isObject'](_0x260b71)&&_0x490e1c&&!_0x490e1c['getCustomProperty']('widget')&&_0x490e1c['is']('containerElement')&&_0x284265(_0x490e1c,_0xf7fcf7['writer']);},{'priority':'high'});}),_0x1d5c44['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d498f,_0x4c08fb)=>{if(!_0x4c08fb['options']['showSuggestionHighlights'])return null;const {id:_0x2d3106,authorId:_0x2058cd,type:_0x57316f,subType:_0x58a86c}=this['_splitMarkerName'](_0x4d498f['markerName']);return{'classes':['ck-suggestion-marker',_0x652ef1(_0x57316f,_0x58a86c)],'priority':0xbb8,'attributes':{'data-suggestion':_0x2d3106,'data-author-id':_0x2058cd}};}});const _0x3c1d94=({showActiveMarkers:_0x3e57b6=!0x0,isAttributeSuggestion:_0x160c7d=!0x1}={})=>(_0x1a3919,_0x292067,_0x119fc6)=>{if(!_0x292067['item'])return;const {id:_0x307d69,authorId:_0x4cdd08}=this['_splitMarkerName'](_0x292067['markerName']);if(_0x160c7d){const _0x5d4fc5=this['_suggestions']['get'](_0x307d69),_0x1d1cf4=this['_getAttributeKey'](_0x5d4fc5);if(!this['_isBlockAttribute'](_0x1d1cf4))return;}if(_0x292067['item']['is']('selection'))return void _0x119fc6['consumable']['consume'](_0x292067['item'],_0x1a3919['name']);const _0x5be1d5=_0x119fc6['mapper']['toViewElement'](_0x292067['item']);if(_0x292067['item']['is']('element')&&_0x1d5c44['model']['schema']['isBlock'](_0x292067['item'])&&!_0x5be1d5['getCustomProperty']('addHighlight')){_0x119fc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5be1d5),_0x119fc6['writer']['setAttribute']('data-suggestion',_0x307d69,_0x5be1d5),_0x119fc6['writer']['setAttribute']('data-author-id',_0x4cdd08,_0x5be1d5),_0x119fc6['mapper']['bindElementToMarker'](_0x5be1d5,_0x292067['markerName']),_0x3e57b6&&(this['activeMarkers']['includes'](_0x292067['markerName'])?_0x119fc6['writer']['addClass']('ck-suggestion-marker--active',_0x5be1d5):_0x119fc6['writer']['removeClass']('ck-suggestion-marker--active',_0x5be1d5));for(const _0x1f3ed0 of _0x1d5c44['model']['createRangeIn'](_0x292067['item'])['getItems']())_0x119fc6['consumable']['consume'](_0x1f3ed0,_0x1a3919['name']);_0x119fc6['consumable']['consume'](_0x292067['item'],_0x1a3919['name']);}};_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x343938=>{_0x343938['on']('addMarker:suggestion:formatBlock',(_0x2cd750,_0x368cbe,_0x2d7c0a)=>{_0x2d7c0a['options']['showSuggestionHighlights']&&_0x3c1d94({'showActiveMarkers':!0x1})(_0x2cd750,_0x368cbe,_0x2d7c0a);},{'priority':'highest'});}),_0x1d5c44['conversion']['for']('dataDowncast')['add'](_0x1b4c30=>{_0x1b4c30['on']('addMarker:suggestion:attribute',(_0x27e4b3,_0x295ec0,_0x1256be)=>{_0x1256be['options']['showSuggestionHighlights']&&_0x3c1d94({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27e4b3,_0x295ec0,_0x1256be);},{'priority':'highest'});}),_0x1d5c44['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27fa2d,_0x1b3f02)=>{if(_0x1b3f02['options']['showSuggestionHighlights']){const {id:_0x4cfc7c,authorId:_0x3d9b27}=this['_splitMarkerName'](_0x27fa2d);return _0x27fa2d['includes'](':split')||_0x27fa2d['includes'](':merge')?{'group':'suggestion','name':_0x27fa2d['substr'](0xb),'attributes':{'data-suggestion':_0x4cfc7c,'data-author-id':_0x3d9b27}}:null;}return{'group':'suggestion','name':_0x27fa2d['substr'](0xb)};}}),_0x1d5c44['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xcd776a,{writer:_0x151bd0})=>{let _0x1f34ef='suggestion:'+_0xcd776a['getAttribute']('suggestion-type')+':'+_0xcd776a['getAttribute']('id');return _0xcd776a['getAttribute']('marker-count')&&(_0x1f34ef+=':'+_0xcd776a['getAttribute']('marker-count')),_0x151bd0['createElement']('$marker',{'data-name':_0x1f34ef});}}),_0x1d5c44['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x385b5b=>{_0x385b5b['on']('addMarker:suggestion:formatBlock',_0x3c1d94(),{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x1be9e6=>{_0x1be9e6['on']('addMarker:suggestion:attribute',_0x3c1d94({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x569e11=>{_0x569e11['on']('removeMarker:suggestion:formatBlock',(_0x24c3de,_0x1276eb,_0x52c85e)=>{const _0x17e1dd=_0x52c85e['mapper']['markerNameToElements'](_0x1276eb['markerName']);if(_0x17e1dd){for(const _0x26f02d of _0x17e1dd)_0x26f02d['getCustomProperty']('addHighlight')||(_0x52c85e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x26f02d),_0x52c85e['writer']['removeAttribute']('data-suggestion',_0x26f02d),_0x52c85e['writer']['removeAttribute']('data-author-id',_0x26f02d),_0x52c85e['mapper']['unbindElementFromMarkerName'](_0x26f02d,_0x1276eb['markerName']));}},{'priority':'high'});}),_0x1d5c44['conversion']['for']('editingDowncast')['add'](_0x209081=>{_0x209081['on']('removeMarker:suggestion:attribute',(_0x3ce17e,_0x4c6af6,_0x2f5a99)=>{const _0x5ba750=_0x2f5a99['mapper']['markerNameToElements'](_0x4c6af6['markerName']);if(!_0x5ba750)return;const {id:_0x30564c}=this['_splitMarkerName'](_0x4c6af6['markerName']),_0x3d96c3=this['_suggestions']['get'](_0x30564c),_0x381e09=this['_getAttributeKey'](_0x3d96c3);if(this['_isBlockAttribute'](_0x381e09)){for(const _0x5df1b5 of _0x5ba750)_0x5df1b5['getCustomProperty']('addHighlight')||(_0x2f5a99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5df1b5),_0x2f5a99['writer']['removeAttribute']('data-suggestion',_0x5df1b5),_0x2f5a99['writer']['removeAttribute']('data-author-id',_0x5df1b5),_0x2f5a99['mapper']['unbindElementFromMarkerName'](_0x5df1b5,_0x4c6af6['markerName']));}},{'priority':'high'});}),_0x1d5c44['model']['document']['registerPostFixer'](_0x5a2b91=>{let _0x5698e9=!0x1;const _0x4569bc=Array['from'](_0x1d5c44['model']['document']['differ']['getChangedMarkers']()),_0x33f715=new Set();for(const {name:_0xff13ab,data:_0x1e8e9a}of _0x4569bc){const {group:_0x29dfd3,type:_0x53da26,subType:_0x3f1037,id:_0x53d130}=this['_splitMarkerName'](_0xff13ab);if('suggestion'!==_0x29dfd3)continue;const _0x49cc78=_0x3f1037?'suggestion:'+_0x53da26+':'+_0x3f1037+':'+_0x53d130:'suggestion:'+_0x53da26+':'+_0x53d130,_0x258ec7=_0x1d5c44['model']['markers']['getMarkersGroup'](_0x49cc78),_0x33a95e=_0x1d5c44['model']['markers']['get'](_0xff13ab),_0x58c81e=this['_suggestions']['get'](_0x53d130);if(null!=_0x1e8e9a['newRange']){'formatInline'==_0x53da26&&(_0x5698e9=_0x5698e9||Gt(_0x1e8e9a['newRange'],_0xff13ab,_0x5a2b91,_0x1d5c44['model']['schema']));const _0x11d2c5='attribute'==_0x53da26&&this['_isBlockAttribute'](_0x3f1037['split']('|')[0x0]),_0x6f1abd='attribute'==_0x53da26&&this['_isInlineAttribute'](_0x3f1037['split']('|')[0x0]);if(_0x1e8e9a['newRange']['isCollapsed']||'$graveyard'==_0x1e8e9a['newRange']['root']['rootName']||'formatBlock'==_0x53da26&&!Jt(_0x1e8e9a['newRange'])||_0x11d2c5&&!Jt(_0x1e8e9a['newRange'])||_0x6f1abd&&Kt(_0x1e8e9a['newRange'])||'deletion'==_0x53da26&&Kt(_0x1e8e9a['newRange'])||_0x33a95e&&Ht(_0x33a95e,_0x258ec7))_0x5a2b91['removeMarker'](_0xff13ab),_0x5698e9=!0x0;else{if(!_0x58c81e||!_0x58c81e['isInContent'])continue;if(_0x1e8e9a['newRange']&&_0x1e8e9a['oldRange']&&_0x1e8e9a['newRange']['isEqual'](_0x1e8e9a['oldRange']))continue;_0x33f715['add'](_0x58c81e);}}}return _0x33f715['size']>0x0&&(_0x5698e9=!!this['_joinWithAdjacentSuggestions'](_0x33f715)||_0x5698e9),_0x5698e9;}),_0x1d5c44['model']['document']['registerPostFixer'](_0xa57f1e=>{let _0x4d09f1=!0x1;for(const _0x5d71f9 of _0x1d5c44['model']['document']['differ']['getChanges']())if('insert'==_0x5d71f9['type'])for(const _0x34e9a4 of this['_suggestions']['values']()){if(_0x34e9a4['isMultiRange']||!_0x34e9a4['isInContent'])continue;const _0x340429='formatBlock'==_0x34e9a4['type'],_0x34be20=this['_getAttributeKey'](_0x34e9a4),_0x2be3d9=_0x34be20&&this['_isBlockAttribute'](_0x34be20);if(!_0x340429&&!_0x2be3d9)continue;const _0x394c6a=_0x34e9a4['getFirstRange']();if(_0x394c6a['start']['parent']!=_0x394c6a['end']['parent']&&!_0x394c6a['end']['isAtEnd']){const _0xf3340f=_0x1d5c44['model']['createPositionAt'](_0x394c6a['start']['nodeAfter'],'end'),_0x4b5210=_0x1d5c44['model']['createRange'](_0x394c6a['start'],_0xf3340f);_0xa57f1e['updateMarker'](_0x34e9a4['getFirstMarker'](),{'range':_0x4b5210}),_0x4d09f1=!0x0;}}return _0x4d09f1;}),_0x1d5c44['model']['document']['registerPostFixer'](_0x56a355=>this['_processAttributeChanges'](_0x56a355)),_0x1d5c44['model']['document']['registerPostFixer'](_0x32f717=>!_0x32f717['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x32f717)),_0x1d5c44['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d5c44['model']['document']['on']('change:data',(_0x53bcdf,_0xfc660a)=>{if(!_0xfc660a['isLocal']||_0xfc660a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x907864=_0x1d5c44['model']['document']['differ']['getChanges']();if(0x0==_0x907864['length'])return;const _0x2888a7=[],_0x163ff7=_0x907864['filter'](_0x55645c=>'attribute'==_0x55645c['type']),_0x1619c5=_0x907864['filter'](_0x2904a2=>'insert'==_0x2904a2['type']&&'$text'!=_0x2904a2['name']);for(const _0x429e3c of _0x163ff7)this['_isRegisteredAttribute'](_0x429e3c['attributeKey'])&&_0x2888a7['push']({'key':_0x429e3c['attributeKey'],'newValue':_0x429e3c['attributeNewValue'],'oldValue':_0x429e3c['attributeOldValue'],'range':qt(_0x429e3c['range'],_0x1d5c44['model'])});for(const _0x437c65 of _0x1619c5){if('rename'!=_0x437c65['action']&&'refresh'!=_0x437c65['action'])continue;const _0x220964=zt(_0x437c65['position']['nodeAfter'],_0x1d5c44['model']),_0x5cda6d=_0x437c65['before'];'rename'==_0x437c65['action']&&_0x2888a7['push']({'key':m,'newValue':_0x437c65['name'],'oldValue':_0x5cda6d['name'],'range':_0x220964});for(const [_0x50976e,_0x5410a7]of _0x5cda6d['attributes']){if(!this['_isRegisteredAttribute'](_0x50976e))continue;const _0x368ac9=_0x437c65['attributes']['get'](_0x50976e);_0x5410a7!==_0x368ac9&&_0x2888a7['push']({'key':_0x50976e,'newValue':_0x368ac9,'oldValue':_0x5410a7,'range':_0x220964});}for(const [_0x57842d,_0x1cad6d]of _0x437c65['attributes'])this['_isRegisteredAttribute'](_0x57842d)&&(_0x5cda6d['attributes']['has'](_0x57842d)||_0x2888a7['push']({'key':_0x57842d,'newValue':_0x1cad6d,'oldValue':null,'range':_0x220964}));}0x0!=_0x2888a7['length']&&_0x1d5c44['model']['enqueueChange'](_0xfc660a,_0x5da34c=>{const _0x1e8c26=_0x4e9a0b();for(const {range:_0x3cd7ad,key:_0x465735,oldValue:_0x23c939,newValue:_0x246661}of _0x2888a7)this['markAttributeChange'](_0x3cd7ad,_0x465735,_0x23c939,_0x246661,{'groupId':_0x1e8c26});this['_reduceExistingSuggestions'](_0x5da34c,_0x2888a7);});},{'priority':'lowest'}),_0x1d5c44['model']['markers']['on']('update:suggestion',(_0x21b684,_0x7cbbec,_0x34fbc5)=>{if(null==_0x34fbc5){const {id:_0x43ca4f}=this['_splitMarkerName'](_0x7cbbec['name']),_0x1ba36e=this['_suggestions']['get'](_0x43ca4f);_0x1ba36e&&_0x1ba36e['addMarkerName'](_0x7cbbec['name']);}}),_0x1d5c44['model']['document']['on']('change:data',()=>{const _0x538713=Array['from'](_0x1d5c44['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e408f=>'suggestion'===this['_splitMarkerName'](_0x1e408f['name'])['group']);if(0x0===_0x538713['length'])return;_0x538713['sort']((_0x5022c8,_0x5eb186)=>{const _0x411c86=_0x5022c8['data']['oldRange'],_0x2d1e99=_0x5eb186['data']['oldRange'];return null===_0x411c86&&null===_0x2d1e99?0x0:null===_0x411c86&&null!==_0x2d1e99?-0x1:null!==_0x411c86&&null===_0x2d1e99?0x1:_0x411c86['start']['isBefore'](_0x2d1e99['start'])?-0x1:0x1;});const _0x837f92=new Set(),_0x43e252=new Set();for(const {name:_0x5933c2,data:_0x23c86c}of _0x538713){const {id:_0x4243f5}=this['_splitMarkerName'](_0x5933c2);if(null===_0x23c86c['oldRange']){const _0x149f4f=this['_handleNewSuggestionMarker'](_0x5933c2);_0x43e252['add'](_0x149f4f);}else{const _0x4092af=this['_suggestions']['get'](_0x4243f5);null!==_0x23c86c['newRange']||_0x4092af['isInContent']?(_0x837f92['add'](_0x4092af['head']),_0x43e252['add'](_0x4092af)):this['_removeSuggestion'](_0x4092af);}}_0x43e252['size']>0x0&&this['_refreshSuggestionsChain'](_0x43e252);for(const _0x3c8aec of _0x837f92)this['fire']('suggestionChanged',_0x3c8aec);}),_0x1d5c44['model']['on']('applyOperation',(_0x35484b,_0x5ef9fc)=>{const _0x54bd0d=_0x5ef9fc[0x0];if(!this['_suggestions']['size'])return;if(!_0x54bd0d['isDocumentOperation'])return;if(_0x54bd0d['batch']['isUndo']||!_0x54bd0d['batch']['isLocal'])return;let _0x3943f8,_0x510252;switch(_0x54bd0d['type']){case'insert':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['position']),_0x510252=_0x3943f8['getShiftedBy'](_0x54bd0d['howMany']);break;case'split':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['splitPosition']),_0x510252=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['moveTargetPosition']);break;case'move':_0x3943f8=_0x1d5c44['model']['createPositionAt'](_0x54bd0d['targetPosition']),_0x510252=_0x3943f8['getShiftedBy'](_0x54bd0d['howMany']);break;default:return;}const _0x1507cb=_0x1d5c44['model']['createRange'](_0x3943f8,_0x510252);_0x1d5c44['model']['change'](()=>{for(const {suggestion:_0xa378d3,meta:_0x3c66cb}of this['_findSuggestions'](_0x1507cb)){if(_0xa378d3['isMultiRange'])continue;if('formatInline'==_0xa378d3['type'])continue;const _0x1bdbdc=this['_getAttributeKey'](_0xa378d3);if(_0x1bdbdc&&this['_isBlockAttribute'](_0x1bdbdc)&&'split'!=_0x54bd0d['type'])continue;const _0x5d5018=_0xa378d3['data']&&_0xa378d3['data']['multipleBlocks'];('formatBlock'!=_0xa378d3['type']||'split'==_0x54bd0d['type']&&!_0x5d5018)&&(_0x3c66cb['containsRangeInObject']||'insertion'==_0xa378d3['type']&&_0x3c66cb['isOwn']||_0xa378d3['getFirstRange']()['containsRange'](_0x1507cb)&&this['_breakSuggestionMarker'](_0xa378d3,_0x3943f8,_0x510252));}});},{'priority':'lowest'}),_0x1d5c44['model']['on']('deleteContent',(_0x562038,_0x50e65a)=>{const _0x257d38=_0x50e65a[0x0],_0x177efe=_0x50e65a[0x1];if(_0x177efe&&_0x177efe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x257d38['isCollapsed'])return;const _0x22e635=_0x1d5c44['model']['schema'],{start:_0x413a7e,end:_0xf9dca3}=_0x257d38['getFirstRange'](),_0x26b10e=_0x413a7e['nodeAfter']&&_0x22e635['isLimit'](_0x413a7e['nodeAfter'])?null:_0x22e635['getNearestSelectionRange'](_0x413a7e,'forward'),_0x81ccd6=_0xf9dca3['nodeBefore']&&_0x22e635['isLimit'](_0xf9dca3['nodeBefore'])?null:_0x22e635['getNearestSelectionRange'](_0xf9dca3,'backward'),_0x133664=_0x1d5c44['model']['createRange'](_0x26b10e?_0x26b10e['start']:_0x413a7e,_0x81ccd6?_0x81ccd6['end']:_0xf9dca3);_0x1d5c44['model']['change'](_0x26720c=>{this['markDeletion'](_0x133664);const _0x5e97f5=_0x1d5c44['model']['schema']['getNearestSelectionRange'](_0x133664['start']);_0x257d38['is']('documentSelection')?_0x26720c['setSelection'](_0x5e97f5):_0x257d38['setTo'](_0x5e97f5);}),_0x562038['stop']();},{'priority':_0x3efbf3['normal']+0xa}),_0x1d5c44['model']['on']('insertContent',(_0x5589e1,_0x2b3d1d)=>{const _0x1d8ee1=_0x2b3d1d[_0x2b3d1d['length']-0x1];_0x1d8ee1&&_0x1d8ee1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d5c44['model']['change'](()=>{let _0x3e756c=_0x1d5c44['model']['insertContent'](_0x2b3d1d[0x0],_0x2b3d1d[0x1],_0x2b3d1d[0x2],{'forceDefaultExecution':!0x0});if(!_0x3e756c)return;_0x5589e1['return']=_0x3e756c['clone']();const _0x4ce579=_0x3e756c['end']['nodeBefore'],_0x360e24=_0x1d5c44['model']['schema'];_0x4ce579&&_0x360e24['isBlock'](_0x4ce579)&&!_0x360e24['isObject'](_0x4ce579)&&(_0x3e756c=_0x1d5c44['model']['createRange'](_0x3e756c['start'],_0x1d5c44['model']['createPositionAt'](_0x4ce579,'end'))),this['markInsertion'](_0x3e756c);}),_0x5589e1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5defa3=new D(_0x1d5c44,this['_suggestions']);_0x1d5c44['commands']['add']('acceptSuggestion',_0x5defa3),this['enableCommand']('acceptSuggestion');const _0x3c3de7=new $(_0x1d5c44,this['_suggestions']);_0x1d5c44['commands']['add']('discardSuggestion',_0x3c3de7),this['enableCommand']('discardSuggestion'),_0x1d5c44['commands']['add']('acceptAllSuggestions',new M(_0x1d5c44,_0x5defa3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d5c44['commands']['add']('discardAllSuggestions',new M(_0x1d5c44,_0x3c3de7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d5c44['commands']['add']('acceptSelectedSuggestions',new B(_0x1d5c44,_0x5defa3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d5c44['commands']['add']('discardSelectedSuggestions',new B(_0x1d5c44,_0x3c3de7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x41bf12=_0x1d5c44['plugins']['get']('CommentsRepository');this['listenTo'](_0x41bf12,'addComment',(_0x11e481,{threadId:_0x27ad81})=>{const _0x212f98=this['_suggestions']['get'](_0x27ad81);_0x212f98&&_0x212f98['commentThread']&&0x1===_0x212f98['commentThread']['length']&&this['_updateSuggestionData'](_0x27ad81,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x41bf12,'removeComment',(_0x86e45,{threadId:_0x4fba51})=>{const _0x5e21bc=this['_suggestions']['get'](_0x4fba51);_0x5e21bc&&_0x5e21bc['commentThread']&&!_0x5e21bc['commentThread']['length']&&this['_updateSuggestionData'](_0x4fba51,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x63bb2d){const _0x112e6f=_0xf2ed7c([0x38,0x53,0x59,0x34,0x56,0x37,0x33,0x44,0x77,0x6e,0x71,0x6a,0x74,0x51,0x50,0x35,0x64,0x73,0x39,0x68,0x58,0x48,0x31,0x63,0x66,0x62,0x43,0x57,0x69,0x55,0x36,0x41,0x52,0x45,0x46,0x65,0x6b,0x76,0x4e,0x61,0x6c,0x6d,0x4b,0x6f,0x4a,0x42,0x5a,0x4d,0x32,0x30,0x78,0x7a,0x54,0x72,0x4c,0x67,0x79,0x75,0x4f,0x47,0x49,0x70]),_0x1e84bd=0x2b26dd59,_0x4e13ab=0x2b21b2e9^_0x1e84bd,_0x279bc9=window[_0xf2ed7c([0x44,0x61,0x74,0x65])][_0xf2ed7c([0x6e,0x6f,0x77])](),_0x1899e4=_0x63bb2d[_0xf2ed7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b28f1=new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2536f5=>{_0x1899e4[_0xf2ed7c([0x6f,0x6e,0x63,0x65])](_0xf2ed7c([0x72,0x65,0x61,0x64,0x79]),_0x2536f5);}),_0x52c173={[_0xf2ed7c([0x6b,0x74,0x79])]:_0xf2ed7c([0x45,0x43]),[_0xf2ed7c([0x75,0x73,0x65])]:_0xf2ed7c([0x73,0x69,0x67]),[_0xf2ed7c([0x63,0x72,0x76])]:_0xf2ed7c([0x50,0x2d,0x32,0x35,0x36]),[_0xf2ed7c([0x78])]:_0xf2ed7c([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]),[_0xf2ed7c([0x79])]:_0xf2ed7c([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]),[_0xf2ed7c([0x61,0x6c,0x67])]:_0xf2ed7c([0x45,0x53,0x32,0x35,0x36])},_0xfb52ea=_0x1899e4[_0xf2ed7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf2ed7c([0x67,0x65,0x74])](_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x448aaf(){let _0x34c4c5,_0x44dd4a=null,_0x46af49=null;try{if(_0xfb52ea==_0xf2ed7c([0x47,0x50,0x4c]))return _0xf2ed7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34c4c5=_0x5c9ba7(),!_0x34c4c5)return _0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34c4c5[_0xf2ed7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x46af49=_0x16d155(_0x34c4c5[_0xf2ed7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34c4c5[_0xf2ed7c([0x6a,0x74,0x69])])),await _0x2ec776()?_0x5d8ceb()?_0x5c3d13()?_0xf2ed7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3f63f3()?(_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf2ed7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44dd4a=_0x270cd9(_0xf2ed7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf2ed7c([0x74,0x72,0x69,0x61,0x6c])&&(_0x44dd4a=_0x270cd9(_0xf2ed7c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x443d34()):_0xf2ed7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf2ed7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf2ed7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c3d13(){const _0x5c4b5d=[_0xf2ed7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf2ed7c([0x74,0x72,0x69,0x61,0x6c])][_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x279bc9/0x3e8:0xe10*_0x4e13ab;return _0x34c4c5[_0xf2ed7c([0x65,0x78,0x70])]<_0x5c4b5d;}function _0x5d8ceb(){const _0xfcab03=_0x34c4c5[_0xf2ed7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xfcab03)return!0x1;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x2a])))return!0x0;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x54,0x43])))return!0x0;if(_0xfcab03[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x52,0x54,0x43]))){if(_0xe35654())return!0x0;if(_0x11b6ec()||_0x4764c8())return!0x0;}return!0x1;}function _0x3f63f3(){const _0x57b6ea=_0x34c4c5[_0xf2ed7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57b6ea||0x0==_0x57b6ea[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31596a}=new URL(window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57b6ea[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31596a))return!0x0;const _0x455a10=_0x31596a[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e]));return _0x57b6ea[_0xf2ed7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52a825=>_0x52a825[_0xf2ed7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2ed7c([0x2a])))[_0xf2ed7c([0x6d,0x61,0x70])](_0x15edb7=>_0x15edb7[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e])))[_0xf2ed7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x393bea=>_0x393bea[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x455a10[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf2ed7c([0x6d,0x61,0x70])](_0x19188c=>Array(_0x455a10[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19188c[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf2ed7c([0x66,0x69,0x6c,0x6c])](_0x19188c[0x0]===_0xf2ed7c([0x2a])?_0xf2ed7c([0x2a]):'')[_0xf2ed7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19188c))[_0xf2ed7c([0x73,0x6f,0x6d,0x65])](_0x55fd09=>_0x455a10[_0xf2ed7c([0x65,0x76,0x65,0x72,0x79])]((_0x5f2d54,_0x5f2450)=>_0x55fd09[_0x5f2450]===_0x5f2d54||_0x55fd09[_0x5f2450]===_0xf2ed7c([0x2a])));}function _0x443d34(){return _0x44dd4a&&_0x46af49?new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c9112,_0x91cd27)=>{_0x44dd4a[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x2c9112,_0x91cd27),_0x46af49[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x1ab6ad=>{_0x1ab6ad!=_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])&&_0x2c9112(_0x1ab6ad);},_0x91cd27);}):_0x44dd4a||_0x46af49||_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16d155(_0x11115f,_0x1dfce6){return new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11748f=>{if(_0x47076e())return _0x11748f(_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]));_0x1f9c68(),_0x1899e4[_0xf2ed7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19502b=!0x1;const _0x4b0a50=_0x4e9a0b();function _0x82d439(_0x38eaa4){return!!_0x38eaa4&&(typeof _0x38eaa4===_0xf2ed7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38eaa4===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38eaa4[_0xf2ed7c([0x74,0x68,0x65,0x6e])]===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38eaa4[_0xf2ed7c([0x63,0x61,0x74,0x63,0x68])]===_0xf2ed7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24e0d5(_0x9977bc){_0x7bcaef(_0x9977bc)[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0xd706d9=>{if(!_0xd706d9||_0xd706d9[_0xf2ed7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf2ed7c([0x6f,0x6b]))return _0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57e9cd(_0x29d8dc(_0x4b0a50+_0x1dfce6))!=_0xd706d9[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64]);})[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x248254=>(_0x34cd57(),_0x248254),()=>{const _0x86b97c=_0x327493();return null==_0x86b97c?(_0x34cd57(),_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])):_0xf2ed7c(_0x279bc9-_0x86b97c>(0xf2a5959^_0x1e84bd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x11748f)[_0xf2ed7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x436dec=0x2b1033d9^_0x1e84bd;function _0x34cd57(){const _0x2db8b2=_0xf2ed7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x57e9cd(_0x29d8dc(_0x11115f)),_0x30d2ad=_0x5c8d43(_0x57e9cd(window[_0xf2ed7c([0x4d,0x61,0x74,0x68])][_0xf2ed7c([0x63,0x65,0x69,0x6c])](_0x279bc9/_0x436dec)));window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf2ed7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2db8b2,_0x30d2ad);}function _0x327493(){const _0x4139a2=_0xf2ed7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x57e9cd(_0x29d8dc(_0x11115f)),_0x43d31c=window[_0xf2ed7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf2ed7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4139a2);return _0x43d31c?window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c8d43(_0x43d31c),0x10)*_0x436dec:null;}function _0x7bcaef(_0x23a537){return new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f9b15,_0x2f29ea)=>{_0x23a537[_0xf2ed7c([0x74,0x68,0x65,0x6e])](_0x1f9b15,_0x2f29ea),window[_0xf2ed7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f29ea,0x2b270999^_0x1e84bd);});}}_0x1899e4[_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40835b,_0x988b2)=>{if(_0x988b2[0x0]!=_0x11115f)return _0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x988b2[0x1]={..._0x988b2[0x1],[_0xf2ed7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b0a50};},{[_0xf2ed7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf2ed7c([0x68,0x69,0x67,0x68])}),_0x1899e4[_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x446561=>{_0x82d439(_0x446561[_0xf2ed7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19502b=!0x0,_0x24e0d5(_0x446561[_0xf2ed7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf2ed7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf2ed7c([0x6c,0x6f,0x77])}),_0x3b28f1[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>{_0x19502b||_0x11748f(_0xf2ed7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47076e(){return _0x1899e4[_0xf2ed7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf2ed7c([0x76,0x69,0x65,0x77])][_0xf2ed7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf2ed7c([0x61,0x75,0x74,0x6f]);}function _0x1f9c68(){_0x1899e4[_0xf2ed7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf2ed7c([0x76,0x69,0x65,0x77])][_0xf2ed7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf2ed7c([0x61,0x75,0x74,0x6f]);}}function _0x270cd9(_0x458104){const _0x3fa912=[new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a2416=>setTimeout(_0x5a2416,0x2b2fe395^_0x1e84bd)),_0x3b28f1[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473eee=>{let _0x1590d2=0x0;_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x6f,0x6e])](_0xf2ed7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50fccd,_0x43a12f)=>{_0x43a12f[0x0][_0xf2ed7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1590d2++,_0x1590d2==(0x2b26dca1^_0x1e84bd)&&(_0x473eee(),_0x50fccd[_0xf2ed7c([0x6f,0x66,0x66])]());});}))];return window[_0xf2ed7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf2ed7c([0x72,0x61,0x63,0x65])](_0x3fa912)[_0xf2ed7c([0x74,0x68,0x65,0x6e])](()=>_0x458104);}async function _0x4f8e69(){await _0x3b28f1,_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x486f40,_0x1899e4[_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c])][_0xf2ed7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x486f40,_0x1899e4[_0xf2ed7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf2ed7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe35654(){return _0x398049(_0xf2ed7c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5237ff(_0xf2ed7c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xf2ed7c([0x73,0x74,0x61,0x74,0x65])]==_0xf2ed7c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x11b6ec(){return _0x398049(_0xf2ed7c([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 _0x4764c8(){return _0x398049(_0xf2ed7c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4618fa(_0x380f42){const _0x3ba0f2=_0x1e8379();_0x1899e4[_0x3ba0f2]=_0xf2ed7c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x380f42,_0x380f42!=_0xf2ed7c([0x56,0x61,0x6c,0x69,0x64])&&_0x4f8e69();}function _0x1e8379(){const _0x4f1c43=window[_0xf2ed7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf2ed7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf2ed7c([0x6e,0x6f,0x77])]())[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf2ed7c([0x2e]),'');let _0x1599bd=_0xf2ed7c([0x53]);for(let _0x56e2b4=0x0;_0x56e2b4<_0x4f1c43[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e2b4+=0x2){let _0x3ad140=window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f1c43[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e2b4,_0x56e2b4+0x2));_0x3ad140>=_0x112e6f[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ad140-=_0x112e6f[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1599bd+=_0x112e6f[_0x3ad140];}return _0x1599bd;}function _0x5c9ba7(){const _0x1b34e3=_0xfb52ea[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e]));if(0x3!=_0x1b34e3[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ac0d1(_0x1b34e3[0x1]);function _0x5ac0d1(_0x156e2b){const _0x253199=_0x5abd74(_0x156e2b);return _0x253199&&_0x321904()?_0x253199:null;function _0x321904(){const _0xe48fa4=_0x253199[_0xf2ed7c([0x6a,0x74,0x69])],_0x537c21=window[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe48fa4[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe48fa4[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34adf6={..._0x253199,[_0xf2ed7c([0x6a,0x74,0x69])]:_0xe48fa4[_0xf2ed7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe48fa4[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34adf6[_0xf2ed7c([0x76,0x63])],_0x29d8dc(_0x34adf6)==_0x537c21;}}}async function _0x2ec776(){let _0x1cb2c0=!0x0;try{const _0x552634=_0xfb52ea[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])](_0xf2ed7c([0x2e])),[_0x2c17d2,_0x3c9a91,_0x14cbcf]=_0x552634;return _0x75668a(_0x2c17d2),await _0x18c796(_0x2c17d2,_0x3c9a91,_0x14cbcf),_0x1cb2c0;}catch{return!0x1;}function _0x75668a(_0x12fce6){const _0x1aa852=_0x5abd74(_0x12fce6);_0x1aa852&&_0x1aa852[_0xf2ed7c([0x61,0x6c,0x67])]==_0xf2ed7c([0x45,0x53,0x32,0x35,0x36])||(_0x1cb2c0=!0x1);}async function _0x18c796(_0x18362c,_0x3b794e,_0x434119){const _0x22b64c=window[_0xf2ed7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf2ed7c([0x66,0x72,0x6f,0x6d])](_0x51802f(_0x434119),_0x8c76c9=>_0x8c76c9[_0xf2ed7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34cf80=new window[(_0xf2ed7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf2ed7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18362c+_0xf2ed7c([0x2e])+_0x3b794e),_0x42a994=window[_0xf2ed7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf2ed7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42a994)return;const _0x5111fc=await _0x42a994[_0xf2ed7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf2ed7c([0x6a,0x77,0x6b]),_0x52c173,{[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x45,0x43,0x44,0x53,0x41]),[_0xf2ed7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf2ed7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42a994[_0xf2ed7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x45,0x43,0x44,0x53,0x41]),[_0xf2ed7c([0x68,0x61,0x73,0x68])]:{[_0xf2ed7c([0x6e,0x61,0x6d,0x65])]:_0xf2ed7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5111fc,_0x22b64c,_0x34cf80)||(_0x1cb2c0=!0x1);}}function _0x5abd74(_0x21c3fb){return _0x21c3fb[_0xf2ed7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf2ed7c([0x65,0x79]))?JSON[_0xf2ed7c([0x70,0x61,0x72,0x73,0x65])](_0x51802f(_0x21c3fb)):null;}function _0x51802f(_0x28cde2){return window[_0xf2ed7c([0x61,0x74,0x6f,0x62])](_0x28cde2[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf2ed7c([0x2b]))[_0xf2ed7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf2ed7c([0x2f])));}function _0x29d8dc(_0x37205b){let _0x33583=0x1505;function _0x119123(_0x1a04e3){for(let _0x5dcd77=0x0;_0x5dcd77<_0x1a04e3[_0xf2ed7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcd77++){const _0x1b8fbd=_0x1a04e3[_0xf2ed7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcd77);_0x33583=(_0x33583<<0x5)+_0x33583+_0x1b8fbd,_0x33583&=_0x33583;}}function _0x2da154(_0x1d1238){Array[_0xf2ed7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d1238)?_0x1d1238[_0xf2ed7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2da154):_0x1d1238&&typeof _0x1d1238==_0xf2ed7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf2ed7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d1238)[_0xf2ed7c([0x73,0x6f,0x72,0x74])]()[_0xf2ed7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2933c4,_0x1e10f3])=>{_0x119123(_0x2933c4),_0x2da154(_0x1e10f3);}):_0x119123(window[_0xf2ed7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d1238));}return _0x2da154(_0x37205b),_0x33583>>>0x0;}function _0x57e9cd(_0x85b302){return _0x85b302[_0xf2ed7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf2ed7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf2ed7c([0x30]));}function _0x5c8d43(_0x4a5b1a){return _0x4a5b1a[_0xf2ed7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf2ed7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf2ed7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x398049(_0x1dc9aa){return _0x1899e4[_0xf2ed7c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf2ed7c([0x68,0x61,0x73])](_0x1dc9aa);}function _0x5237ff(_0x2b3bb3){return _0x1899e4[_0xf2ed7c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xf2ed7c([0x67,0x65,0x74])](_0x2b3bb3);}function _0x486f40(){}function _0xf2ed7c(_0x1319cc){return _0x1319cc['map'](_0x12d6d5=>String['fromCharCode'](_0x12d6d5))['join']('');}_0x4618fa(await _0x448aaf());}(this);}set['adapter'](_0x5d6524){if(this['_adapter'])throw new _0x3e0d43('track-changes-adapter-already-set',this);this['_adapter']=_0x5d6524;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19cda8=!0x1,toJSON:_0x577d3a=!0x1}={}){const _0x4d9482=[];for(const _0x2a1aef of this['_suggestions']['values']())_0x19cda8&&!_0x2a1aef['isInContent']||_0x4d9482['push'](_0x2a1aef);return _0x577d3a?_0x4d9482['map'](_0x2fce87=>_0x2fce87['toJSON']()):_0x4d9482;}['getSuggestion'](_0x3ac8ce){const _0x52815b=this['_suggestions']['get'](_0x3ac8ce);if(!_0x52815b)throw new _0x3e0d43('track-changes-suggestion-not-found',this);return _0x52815b;}['hasSuggestion'](_0x2bb631){return this['_suggestions']['has'](_0x2bb631);}['addSuggestionData'](_0x51ef06){const {authorId:_0x166103,id:_0x446a8b,originalSuggestionId:_0x70b6cd,attributes:_0x3ac514}=_0x51ef06,[_0x4b5b0a,_0xb913b9]=_0x51ef06['type']['split'](':'),_0x571bb3=this['_suggestions']['get'](_0x446a8b)||this['_createSuggestion'](_0x4b5b0a,_0xb913b9,_0x446a8b,_0x166103,_0x3ac514,_0x70b6cd);if(this['_addThreadToSuggestion'](_0x571bb3),this['_checkSuggestionCorrectness'](_0x571bb3,_0x4b5b0a,_0xb913b9||null,_0x166103),_0x571bb3['createdAt']=_0x51ef06['createdAt'],_0x571bb3['_isDataLoaded']=!0x0,_0x3ac514&&_0x3ac514['@external']){const _0x4e00e2=_0x3ac514['@external'],_0x493cd0=this['_getExternalAuthor'](_0x4e00e2['authorName']);_0x571bb3['authoredAt']=_0x4e00e2['createdAt'],_0x571bb3['author']=_0x493cd0,_0x571bb3['isExternal']=!0x0;}else _0x571bb3['authoredAt']=_0x51ef06['createdAt'];switch(_0x51ef06['data']&&(_0x571bb3['data']=_0x51ef06['data']),_0x51ef06['attributes']&&(_0x571bb3['attributes']=_0x51ef06['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x571bb3['_saved']=!0x0),this['_suggestionState']['get'](_0x571bb3)){case'notReady':this['_suggestionState']['set'](_0x571bb3,'dataReady');break;case'markerReady':_0x571bb3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x571bb3])),this['_refreshSuggestionsChain'](new Set([_0x571bb3])),this['_suggestionState']['set'](_0x571bb3,'ready'),this['fire']('suggestionLoaded',_0x571bb3)):this['_suggestionState']['set'](_0x571bb3,'removed');}return _0x571bb3;}['acceptSuggestion'](_0x390cc5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x53cb4a of _0x390cc5['getAllAdjacentSuggestions']())_0x53cb4a['accept']();});});}['discardSuggestion'](_0x5e962a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7b4fda of _0x5e962a['getAllAdjacentSuggestions']())_0x7b4fda['discard']();});});}['enableCommand'](_0x2c29d8,_0x246093){const _0x116376=this['editor']['commands']['get'](_0x2c29d8);if(!_0x116376)throw new _0x3e0d43('track-changes-command-not-found',this,{'commandName':_0x2c29d8});if(this['_enabledCommands']['has'](_0x116376))throw new _0x3e0d43('track-changes-enable-command-twice',this,{'commandName':_0x2c29d8});this['_enabledCommands']['add'](_0x116376),_0x246093&&_0x116376['on']('execute',(_0x17e1c4,_0x2465a0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2465a0['length']>0x0&&_0x2465a0[_0x2465a0['length']-0x1]&&_0x2465a0[_0x2465a0['length']-0x1]['forceDefaultExecution']?_0x2465a0['pop']():(_0x17e1c4['return']=_0x246093((..._0x338919)=>_0x116376['execute'](..._0x338919,{'forceDefaultExecution':!0x0}),..._0x2465a0),_0x17e1c4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xd9dc5d){let _0x78f213,_0x18bdce;const _0x24d64d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x78f213=_0xd9dc5d();}catch(_0x388e4f){_0x18bdce=_0x388e4f;}return _0x24d64d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18bdce&&_0x3e0d43['rethrowUnexpectedError'](_0x18bdce,this),_0x78f213;}['markInsertion'](_0x551b8d,_0xd88a63=null,_0x2cb946={}){if(_0x551b8d['isCollapsed'])return null;const _0x1db481=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2cb946['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6d0b92,meta:_0x3aac43}of this['_findSuggestions'](_0x551b8d,'insertion'))if(_0x3aac43['isOwn']){if(!_0x3aac43['isNextTo']){if(_0x3aac43['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x6d0b92,_0x2cb946))continue;return _0x6d0b92;}if(Xt(_0x6d0b92,_0x2cb946))return _0x6d0b92;this['_breakSuggestionMarker'](_0x6d0b92,_0x551b8d['start'],_0x551b8d['end']);break;}if(_0xd88a63==_0x6d0b92['subType']&&Xt(_0x6d0b92,_0x2cb946)){const _0x3ed898=_0x6d0b92['getFirstRange']();return _0x3ed898['start']['isEqual'](_0x551b8d['end'])?this['_setSuggestionRange'](_0x6d0b92,this['_model']['createRange'](_0x551b8d['start'],_0x3ed898['end'])):this['_setSuggestionRange'](_0x6d0b92,this['_model']['createRange'](_0x3ed898['start'],_0x551b8d['end'])),_0x6d0b92;}}const _0x450f71=_0x4e9a0b(),_0x40c991=_0x1db481['id'],_0x4507f7=_0xd88a63?'insertion:'+_0xd88a63:'insertion',_0x16068f=this['_setSuggestionData']({'id':_0x450f71,'type':_0x4507f7,'createdAt':new Date(),'authorId':_0x40c991,'attributes':_0x2cb946});return this['_addSuggestionMarker'](_0x4507f7,_0x450f71,_0x40c991,_0x551b8d),_0x16068f;}['markMultiRangeInsertion'](_0x412d8e,_0x520ad3='multi',_0x1f45b5={}){const _0x211c09=this['editor']['plugins']['get']('Users')['me'],_0x56f7cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x520ad3,'join');this['_trackingSessionId']&&(_0x1f45b5['trackingSessionId']=this['_trackingSessionId']);for(const _0x5a0489 of this['getSuggestions']())if(_0x5a0489['author']['id']==_0x211c09['id']&&'insertion'==_0x5a0489['type']&&_0x5a0489['subType']==_0x520ad3&&Xt(_0x5a0489,_0x1f45b5)&&(_0x56f7cd(_0x5a0489['getRanges'](),_0x412d8e)||_0x56f7cd(_0x412d8e,_0x5a0489['getRanges']()))){for(const _0x196bc7 of _0x412d8e)_0x5a0489['addRange'](_0x196bc7);return _0x5a0489;}for(const {suggestion:_0x3a0699,meta:_0x4bdaec}of this['_findSuggestions'](_0x412d8e,'insertion')){if(!_0x4bdaec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bdaec['containsRangeInObject'])continue;if(!Xt(_0x3a0699,_0x1f45b5))continue;let _0x197191=!0x0;for(const _0x5432f4 of _0x3a0699['getRanges']())for(const _0x14c54e of _0x412d8e)if(!_0x5432f4['containsRange'](_0x14c54e)){_0x197191=!0x1;break;}if(_0x197191)return _0x3a0699;}const _0x4239a7=_0x4e9a0b(),_0x164a96=_0x211c09['id'],_0x3bfe3a='insertion:'+_0x520ad3,_0xb47cda=this['_setSuggestionData']({'id':_0x4239a7,'type':_0x3bfe3a,'createdAt':new Date(),'authorId':_0x164a96,'attributes':_0x1f45b5});for(const _0x2a8b2c of _0x412d8e)this['_addSuggestionMarker'](_0x3bfe3a,_0x4239a7,_0x164a96,_0x2a8b2c,T['getMultiRangeId']());return _0xb47cda;}['markInlineFormat'](_0x292397,_0x42ed09,_0x56aee3=null,_0x359faa={}){if(_0x56aee3=_0x56aee3||Lt(_0x42ed09),_0x292397['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x359faa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f2f9b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56aee3,'accept');return this['forceDefaultExecution'](()=>_0x1f2f9b([_0x292397],_0x42ed09,_0x359faa)),null;}const _0x2eb792=this['editor']['plugins']['get']('Users')['me'],_0x7cce64=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x98e0f2,meta:_0x3fde05}of this['_findSuggestions'](_0x292397,'insertion'))_0x3fde05['isOwn']&&!_0x3fde05['isInsideObject']&&_0x7cce64['push'](..._0x98e0f2['getRanges']());}const _0x24797c=function(_0x9b0481,_0xcfb86c){const _0x481291=[];for(const _0x12c283 of _0xcfb86c){const _0x261aad=_0x9b0481['getIntersection'](_0x12c283);_0x261aad&&_0x481291['push'](_0x261aad);}return _0x481291;}(_0x292397,_0x7cce64),_0xc8d2cb=function(_0x4a66cd,_0x284a58){const _0x36a735=[_0x4a66cd];for(const _0xca7161 of _0x284a58){let _0x266a65=0x0;for(;_0x266a65<_0x36a735['length'];){const _0x50043e=_0x36a735[_0x266a65]['getDifference'](_0xca7161);_0x36a735['splice'](_0x266a65,0x1,..._0x50043e),_0x266a65+=_0x50043e['length'];}}return _0x36a735;}(_0x292397,_0x7cce64);_0x24797c['length']&&this['_model']['change'](()=>{for(const _0x414b3e of _0x24797c){const _0x1dbd11=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x56aee3,'accept');this['forceDefaultExecution'](()=>_0x1dbd11([_0x414b3e],_0x42ed09,_0x359faa));}});for(const _0x22973b of _0xc8d2cb){let _0x41683e=null,_0x526d5f=_0x22973b['start'],_0x5da305=_0x22973b['end'];for(const {suggestion:_0x3bd113,meta:_0x2d9ae6}of this['_findSuggestions'](_0x22973b,'formatInline')){if(!_0x2d9ae6['isOwn'])continue;if(_0x3bd113['subType']!=_0x56aee3)continue;if(!Xt(_0x3bd113,_0x359faa))continue;const _0x50da21=_0x3bd113['getFirstRange']();if(_0x50da21['containsRange'](_0x22973b,!0x0))return null;_0x526d5f=_0x526d5f['isBefore'](_0x50da21['start'])?_0x526d5f:_0x50da21['start'],_0x5da305=_0x5da305['isAfter'](_0x50da21['end'])?_0x5da305:_0x50da21['end'],_0x41683e?_0x50da21['start']['isBefore'](_0x41683e['getFirstRange']()['start'])?(_0x41683e['removeMarkers'](),_0x41683e=_0x3bd113):_0x3bd113['removeMarkers']():_0x41683e=_0x3bd113;}const _0x515d28=this['_model']['createRange'](_0x526d5f,_0x5da305);if(_0x41683e)this['_setSuggestionRange'](_0x41683e,_0x515d28);else{const _0xb01e40=_0x4e9a0b(),_0x3c04f8=_0x2eb792['id'];this['_setSuggestionData']({'id':_0xb01e40,'type':'formatInline:'+_0x56aee3,'data':_0x42ed09,'createdAt':new Date(),'authorId':_0x3c04f8,'attributes':_0x359faa}),this['_addSuggestionMarker']('formatInline:'+_0x56aee3,_0xb01e40,_0x3c04f8,_0x515d28);}}return null;}['markBlockFormat'](_0x18fded,_0x1755a5,_0x577d83=[],_0x363c7d=null,_0x221633={}){_0x1755a5['formatGroupId']||(_0x1755a5['formatGroupId']=_0x1755a5['commandName']),_0x1755a5['multipleBlocks']=_0x18fded['is']('range'),_0x363c7d=_0x363c7d||Lt(_0x1755a5);const _0x1398e1=_0x577d83['map'](_0x270641=>zt(_0x270641,this['_model'])),_0x415cb3=_0x18fded['is']('range')?_0x18fded:zt(_0x18fded,this['_model']);if(this['_trackingSessionId']&&(_0x221633['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d7f9f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x363c7d,'accept');return this['forceDefaultExecution'](()=>_0x1d7f9f([_0x415cb3],_0x1755a5,_0x221633)),null;}_0x1398e1['push'](_0x415cb3);let _0x58ac86=!0x0;for(const _0x2c7201 of _0x1398e1)if(!this['_rangeIsInLocalUserInsertion'](_0x2c7201)){_0x58ac86=!0x1;break;}if(_0x58ac86&&'always'!==this['_trackFormatChanges']){const _0x4dc510=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x363c7d,'accept');return this['forceDefaultExecution'](()=>_0x4dc510([_0x415cb3],_0x1755a5,_0x221633)),null;}let _0x55dbb2=null,_0x894583=_0x415cb3['start'],_0x33075a=_0x415cb3['end'];for(const {suggestion:_0x223d1c,meta:_0xa7ce94}of this['_findSuggestions'](_0x415cb3,'formatBlock')){if(!_0xa7ce94['isOwn'])continue;if(_0xa7ce94['isNextTo']||_0xa7ce94['containsRangeInObject']||_0xa7ce94['isInsideObject'])continue;if(_0x223d1c['data']['formatGroupId']!=_0x1755a5['formatGroupId'])continue;if(!Xt(_0x223d1c,_0x221633))continue;const _0x344300=_0x223d1c['getFirstRange']();if(_0x223d1c['subType']==_0x363c7d){if(_0x344300['containsRange'](_0x415cb3,!0x0))return null;_0x894583=_0x894583['isBefore'](_0x344300['start'])?_0x894583:_0x344300['start'],_0x33075a=_0x33075a['isAfter'](_0x344300['end'])?_0x33075a:_0x344300['end'],_0x55dbb2?_0x344300['start']['isBefore'](_0x55dbb2['getFirstRange']()['start'])?(_0x55dbb2['removeMarkers'](),_0x55dbb2=_0x223d1c):_0x223d1c['removeMarkers']():_0x55dbb2=_0x223d1c;}else{const _0x4fe8bd=_0x415cb3['getIntersection'](_0x344300);this['_cutOutSuggestionMarker'](_0x223d1c,_0x4fe8bd);}}const _0x15a5ea=this['editor']['plugins']['get']('Users')['me'],_0x3c0332=_0x4e9a0b(),_0x3ad944=_0x15a5ea['id'];if(_0x55dbb2)return this['_setSuggestionRange'](_0x55dbb2,this['_model']['createRange'](_0x894583,_0x33075a)),_0x55dbb2;{const _0x18476e=this['_setSuggestionData']({'id':_0x3c0332,'type':'formatBlock:'+_0x363c7d,'data':_0x1755a5,'createdAt':new Date(),'authorId':_0x3ad944,'attributes':_0x221633});return this['_addSuggestionMarker']('formatBlock:'+_0x363c7d,_0x3c0332,_0x3ad944,this['_model']['createRange'](_0x894583,_0x33075a)),_0x18476e;}}['markMultiRangeBlockFormat'](_0x153e6f,_0x427597,_0x5d350d=[],_0x4b2f0b=null,_0x30acc8={}){_0x427597['formatGroupId']||(_0x427597['formatGroupId']=_0x427597['commandName']);const _0x559191=_0x153e6f[0x0];_0x427597['multipleBlocks']=_0x559191['is']('range'),_0x4b2f0b=_0x4b2f0b||Lt(_0x427597);const _0x1176f5=_0x5d350d['map'](_0x382938=>zt(_0x382938,this['_model'])),_0x565bc1=_0x559191['is']('range')?_0x153e6f:_0x153e6f['map'](_0x340645=>zt(_0x340645,this['_model']));if(this['_trackingSessionId']&&(_0x30acc8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4803b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'accept');return this['forceDefaultExecution'](()=>_0x4803b8(_0x565bc1,_0x427597,_0x30acc8)),null;}_0x1176f5['push'](..._0x565bc1);let _0x3a929e=!0x0;for(const _0x351ca1 of _0x1176f5)if(!this['_rangeIsInLocalUserInsertion'](_0x351ca1)){_0x3a929e=!0x1;break;}if(_0x3a929e&&'always'!==this['_trackFormatChanges']){const _0x3b4aff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'accept');return this['forceDefaultExecution'](()=>_0x3b4aff(_0x565bc1,_0x427597,_0x30acc8)),null;}const _0x3f0cdf=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c38a3 of this['getSuggestions']()){const _0x5ca832=_0x2c38a3['data'];if(_0x2c38a3['author']['id']!=_0x3f0cdf['id'])continue;if('formatBlock'!=_0x2c38a3['type']||_0x5ca832['formatGroupId']!=_0x427597['formatGroupId'])continue;if(!Xt(_0x2c38a3,_0x30acc8))continue;const _0x39e736=_0x2c38a3['subType']==_0x4b2f0b;for(let _0x5c0b26=0x0;_0x5c0b26<_0x565bc1['length'];_0x5c0b26++){const _0x188149=_0x565bc1[_0x5c0b26];for(const _0x159fd0 of _0x2c38a3['getMarkers']()){const _0x531d9f=_0x159fd0['getRange']();if(_0x188149['isEqual'](_0x531d9f)){_0x39e736?(_0x565bc1['splice'](_0x5c0b26,0x1),_0x5c0b26--):_0x2c38a3['removeMarker'](_0x159fd0['name']);break;}}}}if(0x0==_0x565bc1['length'])return null;const _0x31a5aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b2f0b,'join');for(const _0x42f68e of this['getSuggestions']()){const _0x23c07f=_0x42f68e['data'];if(_0x42f68e['author']['id']==_0x3f0cdf['id']&&('formatBlock'==_0x42f68e['type']&&_0x23c07f['formatGroupId']==_0x427597['formatGroupId']&&_0x42f68e['subType']==_0x4b2f0b&&Xt(_0x42f68e,_0x30acc8)&&(_0x31a5aa(_0x42f68e['getRanges'](),_0x565bc1)||_0x31a5aa(_0x565bc1,_0x42f68e['getRanges']())))){for(const _0x5ce179 of _0x565bc1)_0x42f68e['addRange'](_0x5ce179);return _0x42f68e;}}const _0x5acd95=_0x4e9a0b(),_0x30ba78=_0x3f0cdf['id'],_0x1e48b4='formatBlock:'+_0x4b2f0b,_0x37035d=this['_setSuggestionData']({'id':_0x5acd95,'type':_0x1e48b4,'data':_0x427597,'createdAt':new Date(),'authorId':_0x30ba78,'attributes':_0x30acc8});for(const _0x1eb9ce of _0x565bc1)this['_addSuggestionMarker'](_0x1e48b4,_0x5acd95,_0x30ba78,_0x1eb9ce,T['getMultiRangeId']());return _0x37035d;}['markDeletion'](_0x489336,_0x432aea=null,_0x2d9dd2={}){if(_0x489336['isCollapsed'])return null;const _0x556370=this['editor']['plugins']['get']('Users')['me'],_0x4c664b=new _0x1437b2(_0x489336['start'],_0x489336['end']);this['_trackingSessionId']&&(_0x2d9dd2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ba960,meta:_0x22bed4}of this['_findSuggestions'](_0x4c664b,'insertion'))if(_0x22bed4['isOwn']&&!_0x22bed4['isNextTo']){if(_0x5ba960['isMultiRange']){const _0x4d7705=_0x5ba960['getRanges']()['filter'](_0x184372=>'$graveyard'!=_0x184372['root']['rootName']);_0x4d7705['every'](_0x3a4cfb=>_0x4c664b['containsRange'](_0x3a4cfb,!0x0))&&_0x5ba960['discard']();if(_0x4d7705['some'](_0x1f3589=>_0x1f3589['containsRange'](_0x4c664b,!0x0))){const _0xe0c213=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x432aea,'accept');return this['forceDefaultExecution'](()=>_0xe0c213([_0x4c664b],null,_0x2d9dd2)),null;}}else{const _0x182932=_0x4c664b['getIntersection'](_0x5ba960['getFirstRange']());null!==_0x182932&&_0x5ba960['_onDiscard']([_0x182932],null,_0x2d9dd2);}}if(_0x4c664b['detach'](),_0x4c664b['isCollapsed']||'$graveyard'==_0x4c664b['root']['rootName'])return null;let _0xfcff82=null,_0x5615d4=_0x4c664b['start'],_0x4a9ebe=_0x4c664b['end'];const _0x10b0a9=this['_findSuggestions'](_0x4c664b,'deletion');for(const {suggestion:_0x305903,meta:_0x186b15}of _0x10b0a9){const _0x36ff25=this['_model']['createRange'](_0x5615d4,_0x4a9ebe);if(_0x186b15['isOwn']&&(this['_mergeNestedSuggestions']||!_0x186b15['containsRangeInObject']&&!_0x186b15['isInsideObject'])){if(_0x305903['isMultiRange']){if(!Xt(_0x305903,_0x2d9dd2))continue;let _0x21c6a2=!0x0;for(const _0x21301b of _0x305903['getRanges']()){if(_0x21301b['containsRange'](_0x36ff25,!0x0))return _0x305903;_0x36ff25['containsRange'](_0x21301b)||(_0x21c6a2=!0x1);}_0x21c6a2&&_0x305903['discard']();}else{const _0x53c0d6=_0x305903['getFirstRange']();if(_0x53c0d6['containsRange'](_0x36ff25,!0x0))return _0x305903;if(!Xt(_0x305903,_0x2d9dd2)){_0x36ff25['containsRange'](_0x53c0d6)?_0x305903['removeMarkers']():_0x53c0d6['containsPosition'](_0x5615d4)?_0x5615d4=_0x53c0d6['end']:_0x53c0d6['containsPosition'](_0x4a9ebe)&&(_0x4a9ebe=_0x53c0d6['start']);continue;}_0x5615d4=_0x5615d4['isBefore'](_0x53c0d6['start'])?_0x5615d4:_0x53c0d6['start'],_0x4a9ebe=_0x4a9ebe['isAfter'](_0x53c0d6['end'])?_0x4a9ebe:_0x53c0d6['end'],_0x2d9dd2=Object['assign']({},_0x305903['attributes']),_0xfcff82?_0x53c0d6['start']['isBefore'](_0xfcff82['getFirstRange']()['start'])?(_0xfcff82['removeMarkers'](),_0xfcff82=_0x305903):_0x305903['removeMarkers']():_0xfcff82=_0x305903;}}}if(_0xfcff82)return this['_setSuggestionRange'](_0xfcff82,this['_model']['createRange'](_0x5615d4,_0x4a9ebe)),_0xfcff82;{const _0x4c2b41=_0x4e9a0b(),_0xd663d1=this['_model']['createRange'](_0x5615d4,_0x4a9ebe),_0x175ea9=_0x556370['id'],_0x4c2663=_0x432aea?'deletion:'+_0x432aea:'deletion',_0x1022e4=this['_setSuggestionData']({'id':_0x4c2b41,'type':_0x4c2663,'createdAt':new Date(),'authorId':_0x175ea9,'attributes':_0x2d9dd2});return this['_addSuggestionMarker'](_0x4c2663,_0x4c2b41,_0x175ea9,_0xd663d1),_0x1022e4;}}['markMultiRangeDeletion'](_0x5176c9,_0xa5bf3c='multi',_0x45e253={}){const _0x490021=this['editor']['plugins']['get']('Users')['me'],_0x3b9b60=_0x5176c9['map'](_0xf4ca4c=>new _0x1437b2(_0xf4ca4c['start'],_0xf4ca4c['end'])),_0x4dc3dd=new Set();this['_trackingSessionId']&&(_0x45e253['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4ca1b3,meta:_0x3dc455}of this['_findSuggestions'](_0x3b9b60,'insertion'))_0x3dc455['isOwn']&&!_0x3dc455['isNextTo']&&_0x4dc3dd['add'](_0x4ca1b3);for(const _0x3764ca of _0x4dc3dd)if(_0x3764ca['isMultiRange']){const _0x5e0a13=_0x3764ca['getRanges']();(!_0x3764ca['attributes']||!_0x3764ca['attributes']['skipNestingCheck'])&&(_0x5e0a13['every'](_0x3fc46f=>_0x3b9b60['some'](_0x1d2214=>_0x1d2214['containsRange'](_0x3fc46f,!0x0)))&&_0x3764ca['discard']());if(_0x3b9b60['every'](_0x342999=>_0x5e0a13['some'](_0x57e7d0=>_0x57e7d0['containsRange'](_0x342999,!0x0)))){const _0x2bb2a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'accept');return this['forceDefaultExecution'](()=>_0x2bb2a3(_0x5176c9,null,_0x45e253)),null;}}else{const _0x2d6a47=_0x3764ca['getFirstRange']();_0x3b9b60['some'](_0xd688df=>_0xd688df['containsRange'](_0x2d6a47,!0x0))&&_0x3764ca['discard']();if(_0x3b9b60['every'](_0x518852=>_0x2d6a47['containsRange'](_0x518852,!0x0))){const _0x530c1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'accept');return this['forceDefaultExecution'](()=>_0x530c1f(_0x3b9b60,null,_0x45e253)),null;}}const _0x255114=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5bf3c,'join');let _0x405666=null;for(const _0xcf52c9 of this['getSuggestions']())if(_0xcf52c9['author']['id']==_0x490021['id']&&_0xcf52c9['isInContent']&&'deletion'==_0xcf52c9['type']&&_0xcf52c9['subType']==_0xa5bf3c&&Xt(_0xcf52c9,_0x45e253)&&(_0x255114(_0xcf52c9['getRanges'](),_0x3b9b60)||_0x255114(_0x3b9b60,_0xcf52c9['getRanges']()))){if(_0x405666){if(_0xcf52c9['commentThread']&&_0xcf52c9['commentThread']['length'])continue;for(const _0x3a5292 of _0xcf52c9['getRanges']())_0x405666['isIntersectingWithRange'](_0x3a5292)||_0x405666['addRange'](_0x3a5292);_0xcf52c9['removeMarkers']();}else{_0x405666=_0xcf52c9;for(const _0x30cd00 of _0x3b9b60)_0xcf52c9['isIntersectingWithRange'](_0x30cd00)||_0xcf52c9['addRange'](_0x30cd00);}}if(_0x405666)return _0x405666;_0x4dc3dd['clear']();for(const {suggestion:_0x3b4621,meta:_0x5cc5e5}of this['_findSuggestions'](_0x3b9b60,'deletion'))_0x5cc5e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cc5e5['containsRangeInObject']&&!_0x5cc5e5['isInsideObject'])&&Xt(_0x3b4621,_0x45e253)&&_0x4dc3dd['add'](_0x3b4621);for(const _0x5e01de of _0x4dc3dd){const _0x2e080b=_0x5e01de['getRanges']();if(!_0x45e253||!_0x45e253['skipNestingCheck']){if(_0x3b9b60['every'](_0x4ae6ad=>_0x2e080b['some'](_0x427694=>_0x427694['containsRange'](_0x4ae6ad,!0x0))))return _0x5e01de;}(!_0x5e01de['attributes']||!_0x5e01de['attributes']['skipNestingCheck'])&&(_0x2e080b['every'](_0x5b5a47=>_0x3b9b60['some'](_0x3fe2e5=>_0x3fe2e5['containsRange'](_0x5b5a47,!0x0)))&&_0x5e01de['discard']());}const _0x56e8eb=_0x4e9a0b(),_0x5c2f9c=_0x490021['id'],_0x3c7556='deletion:'+_0xa5bf3c,_0x1f0003=this['_setSuggestionData']({'id':_0x56e8eb,'type':_0x3c7556,'createdAt':new Date(),'authorId':_0x5c2f9c,'attributes':_0x45e253});for(const _0x3808cb of _0x3b9b60)_0x3808cb['detach'](),_0x3808cb['isCollapsed']||'$graveyard'==_0x3808cb['root']['rootName']||this['_addSuggestionMarker'](_0x3c7556,_0x56e8eb,_0x5c2f9c,_0x3808cb,T['getMultiRangeId']());return _0x1f0003;}['markAttributeChange'](_0x41e0ee,_0x538093,_0x2607f4,_0x141dfc,_0x3463a7){if(_0x41e0ee['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4d785b=this['editor']['plugins']['get']('Users')['me']['id'],_0x49c59c=Array['from'](this['_suggestions']['values']())['filter'](_0x255ef5=>'attribute'==_0x255ef5['type']&&_0x255ef5['data']['key']==_0x538093&&_0x255ef5['isIntersectingWithRange'](_0x41e0ee));if(this['_trackingSessionId']&&(_0x3463a7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x20b15e=this['_findSuggestions'](_0x41e0ee,'insertion')['filter'](({meta:_0x3c4416})=>_0x3c4416['isOwn']&&!_0x3c4416['isInsideObject']&&!_0x3c4416['isNextTo'])['map'](({suggestion:_0x4381f2})=>_0x4381f2);_0x49c59c['unshift'](..._0x20b15e);}const _0xb72650=new Map([[_0x41e0ee,_0x2607f4]]);for(const _0xe123cc of _0x49c59c){const _0x5afa89='attribute'==_0xe123cc['type']?_0xe123cc['data']['oldValue']:void 0x0,_0x3f141e=_0xe123cc['getFirstRange'](),_0x2bf275=Array['from'](_0xb72650['keys']())['find'](_0x1b918e=>_0x1b918e['isIntersecting'](_0x3f141e));if(!_0x2bf275)continue;const _0x36ceec=_0x2bf275['getDifference'](_0x3f141e);this['_isBlockAttribute'](_0x538093)&&'insertion'==_0xe123cc['type']&&0x0!=_0x36ceec['length']||(_0xb72650['delete'](_0x2bf275),_0x36ceec['forEach'](_0xe60472=>{_0xb72650['set'](_0xe60472,_0x2607f4);}),'insertion'!=_0xe123cc['type']&&_0x5afa89!=_0x141dfc&&_0xb72650['set'](_0x2bf275['getIntersection'](_0x3f141e),_0x5afa89));}const _0x5d65ac=[];for(const [_0x24ed74,_0x16f6da]of _0xb72650){const _0x5b1aac=_0x4e9a0b(),_0x808b07={'key':_0x538093,'oldValue':_0x16f6da,'newValue':_0x141dfc};_0x538093['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':_0x538093});const _0x4675a5=('attribute:'+(_0x538093+'|'+Lt({'newValue':_0x141dfc})))['substring'](0x0,0x3c),_0xf5a94c=this['_setSuggestionData']({'id':_0x5b1aac,'type':_0x4675a5,'data':_0x808b07,'createdAt':new Date(),'authorId':_0x4d785b,'attributes':_0x3463a7});_0x5d65ac['push'](_0xf5a94c),this['_addSuggestionMarker'](_0x4675a5,_0x5b1aac,_0x4d785b,_0x24ed74);}return _0x5d65ac;}['enableDefaultAttributesIntegration'](_0x235840){this['enableCommand'](_0x235840,(_0x474400,..._0x1420e3)=>{this['recordAttributeChanges'](()=>{_0x474400(..._0x1420e3);});});}['registerBlockAttribute'](_0x4cefd6){this['_blockAttributeKeys']['add'](_0x4cefd6);}['registerInlineAttribute'](_0x4c61c3){this['_inlineAttributeKeys']['add'](_0x4c61c3);}['startTrackingSession'](_0x214c2d){return this['_trackingSessionId']=void 0x0!==_0x214c2d?_0x214c2d:_0x4e9a0b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5c761e){return'attribute'==_0x5c761e['type']?_0x5c761e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3b94d7,_0x593ef){const _0x46866=_0x3b94d7['getFirstMarker']();this['_model']['change'](_0x285204=>{_0x285204['updateMarker'](_0x46866,{'range':_0x593ef});});}['_addThreadToSuggestion'](_0x2033f8){const _0x4dd3f4=_0x2033f8['id'],_0x3d2c4a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4dd3f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d2c4a,'threadId':_0x4dd3f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x930248=this['_commentsRepository']['getCommentThread'](_0x4dd3f4);_0x930248['unbind']('isRemovable'),_0x930248['isRemovable']=!0x1,_0x2033f8['commentThread']=_0x930248;}['_checkSuggestionCorrectness'](_0x164583,_0x5a3bdb,_0x3bc652,_0x41c15f){if(_0x164583['type']!=_0x5a3bdb||_0x164583['subType']!=_0x3bc652||_0x164583['creator']['id']!=_0x41c15f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3e0d43('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x312b1d,_0x3a103f){const _0x11a7d7=_0x312b1d['getFirstRange']();if(_0x3a103f['isEqual'](_0x11a7d7))_0x312b1d['removeMarkers']();else{if(_0x11a7d7['containsRange'](_0x3a103f)){const _0x9d7eb9=this['_model']['createPositionAt'](_0x3a103f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x11a7d7['start'],_0x9d7eb9));const _0x4e461f=_0x4e9a0b(),_0x4858b1=_0x312b1d['creator']['id'],_0x32be09=_0x312b1d['type']+':'+_0x312b1d['subType'];this['_setSuggestionData']({'id':_0x4e461f,'type':_0x32be09,'createdAt':new Date(),'authorId':_0x4858b1,'data':_0x312b1d['data'],'attributes':_0x312b1d['attributes']});const _0x227afd=this['_model']['createPositionAt'](_0x3a103f['end']['parent'],'after'),_0x463b22=this['_model']['createRange'](_0x227afd,_0x11a7d7['end']);this['_addSuggestionMarker'](_0x32be09,_0x4e461f,_0x4858b1,_0x463b22);}else{if(_0x11a7d7['containsPosition'](_0x3a103f['start'])){const _0x3ba2ec=this['_model']['createPositionAt'](_0x3a103f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x11a7d7['start'],_0x3ba2ec));}else{const _0x150de9=this['_model']['createPositionAt'](_0x3a103f['end']['parent'],'after');this['_setSuggestionRange'](_0x312b1d,this['_model']['createRange'](_0x150de9,_0x11a7d7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x489f27){for(const {suggestion:_0x3db35e,meta:_0x18ca7e}of this['_findSuggestions'](_0x489f27,'insertion')){if(!_0x18ca7e['isOwn'])continue;const _0xfe17c0=_0x3db35e['getRanges']();for(const _0x593739 of _0xfe17c0)if(!_0x489f27['getDifference'](_0x593739)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29e44f){const _0x4a9655=this['editor']['plugins']['get']('Users')['getUser'](_0x29e44f);if(!_0x4a9655)throw new _0x3e0d43('track-changes-user-not-found',this);return _0x4a9655;}['_getExternalAuthor'](_0x1e2538){const _0x125305=this['editor']['plugins']['get']('Users'),_0xa5a90d=_0x752554('external:'+_0x1e2538),_0x1138b7=_0x125305['getUser'](_0xa5a90d);return _0x1138b7||_0x125305['addUser']({'id':_0xa5a90d,'name':_0x1e2538});}['_createSuggestion'](_0x3bf2da,_0x3e03bc,_0x5877b3,_0xbbd5ef,_0x12bb65,_0x4f412b){const _0x9deea6=this['_getAuthorFromId'](_0xbbd5ef),_0x1d2edb=this['_suggestionFactory']['buildSuggestion'](_0x3bf2da,_0x3e03bc,_0x5877b3,_0x9deea6,_0x12bb65,_0x3ce6cf=>{this['_updateSuggestionData'](_0x5877b3,{'attributes':_0x3ce6cf});const _0x5d01b1=this['getSuggestion'](_0x5877b3);this['_joinWithAdjacentSuggestions'](new Set([_0x5d01b1])),this['_refreshSuggestionsChain'](new Set([_0x5d01b1]));},_0x4f412b);return this['listenTo'](_0x1d2edb,'accept',()=>{this['_updateSuggestionData'](_0x5877b3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d2edb,'discard',()=>{this['_updateSuggestionData'](_0x5877b3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5877b3,_0x1d2edb),this['_suggestionState']['set'](_0x1d2edb,'notReady'),_0x1d2edb;}['_splitMarkerName'](_0x18b02e){const _0x317e43=_0x18b02e['split'](':');return{'group':_0x317e43[0x0],'type':_0x317e43[0x1],'subType':_0x317e43['length']>=0x5?_0x317e43[0x2]:null,'id':_0x317e43['length']<0x5?_0x317e43[0x2]:_0x317e43[0x3],'authorId':_0x317e43['length']<0x5?_0x317e43[0x3]:_0x317e43[0x4],'markerCount':0x6==_0x317e43['length']?_0x317e43[0x5]:null};}['_breakSuggestionMarker'](_0x134297,_0x5b6474,_0x5656ac){const _0x217328=_0x134297['getFirstRange'](),_0x28d7d9=_0x217328['start'],_0x5887b2=_0x217328['end'];this['_setSuggestionRange'](_0x134297,this['_model']['createRange'](_0x28d7d9,_0x5b6474));const _0x3ef51e=_0x4e9a0b(),_0x1a340b=_0x134297['creator']['id'],_0x2abffc=_0x134297['type']+(_0x134297['subType']?':'+_0x134297['subType']:'');this['_setSuggestionData']({'id':_0x3ef51e,'type':_0x2abffc,'createdAt':new Date(),'authorId':_0x1a340b,'originalSuggestionId':_0x134297['_originalSuggestionId']||_0x134297['id'],'attributes':_0x134297['attributes'],'data':_0x134297['data']});const _0x1d479e=this['_getAttributeKey'](_0x134297);('formatBlock'==_0x134297['type']||_0x1d479e&&this['_isBlockAttribute'](_0x1d479e))&&(_0x5656ac=this['_model']['createPositionBefore'](_0x5656ac['parent'])),this['_addSuggestionMarker'](_0x2abffc,_0x3ef51e,_0x1a340b,this['_model']['createRange'](_0x5656ac,_0x5887b2));}['_findSuggestions'](_0x3eb966,_0x4a83bd=null){const _0x16d056=[],_0x1a8bb2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3eb966)||(_0x3eb966=[_0x3eb966]);for(const _0x39e2dc of this['getSuggestions']()){if(!_0x39e2dc['isInContent'])continue;if(_0x4a83bd&&_0x39e2dc['type']!=_0x4a83bd)continue;let _0x5b4e33=!0x1;for(const _0x32e4d6 of _0x39e2dc['getRanges']()){for(const _0x26df0c of _0x3eb966){const _0x2f2396=_0x26df0c['start']['isEqual'](_0x32e4d6['end'])||_0x26df0c['end']['isEqual'](_0x32e4d6['start']);if(_0x2f2396||_0x26df0c['getIntersection'](_0x32e4d6)){const _0x252027=_0x26df0c['containsRange'](_0x32e4d6)&&Ft(this['_model']['schema'],_0x32e4d6['start'],_0x26df0c),_0x409ce3=_0x32e4d6['containsRange'](_0x26df0c)&&Ft(this['_model']['schema'],_0x26df0c['start'],_0x32e4d6);_0x16d056['push']({'suggestion':_0x39e2dc,'meta':{'isOwn':_0x1a8bb2==_0x39e2dc['author'],'isNextTo':_0x2f2396,'isInsideObject':_0x252027,'containsRangeInObject':_0x409ce3}}),_0x5b4e33=!0x0;break;}}if(_0x5b4e33)break;}}return _0x16d056;}['_addSuggestionMarker'](_0x3b1ca5,_0x101339,_0x29f7f7,_0x30fdcd,_0x20d8c9){this['_model']['change'](_0x35ea09=>{let _0x477632='suggestion:'+_0x3b1ca5+':'+_0x101339+':'+_0x29f7f7;_0x20d8c9&&(_0x477632=_0x477632+':'+_0x20d8c9),_0x35ea09['addMarker'](_0x477632,{'range':_0x30fdcd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x21ec35){const _0x49280=_0x21ec35['previous'],_0x917f55=_0x21ec35['next'];_0x21ec35['previous']=null,_0x21ec35['next']=null,null!=_0x49280&&_0x49280['next']==_0x21ec35&&(_0x49280['next']=_0x917f55),null!=_0x917f55&&_0x917f55['previous']==_0x21ec35&&(_0x917f55['previous']=_0x49280),'ready'==this['_suggestionState']['get'](_0x21ec35)&&(this['_suggestionState']['set'](_0x21ec35,'removed'),this['fire']('suggestionUnloaded',_0x21ec35,_0x49280,_0x917f55));}['_setSuggestionData'](_0x448e52){const _0x37bb3a=_0x448e52['id'],_0x100075=this['addSuggestionData'](_0x448e52);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10313c=this['editor']['plugins']['get']('PendingActions'),_0x5c5573=_0x100075['hasComments'],_0x1f34ba=_0x100075['subType']?_0x100075['type']+':'+_0x100075['subType']:_0x100075['type'],_0x35f07e=this['editor']['locale'],_0x1486f0=_0x10313c['add'](o(_0x35f07e,'PENDING_ACTION_SUGGESTION')),_0x1ce27d={'id':_0x37bb3a,'type':_0x1f34ba,'hasComments':_0x5c5573,'data':_0x448e52['data']||null,'originalSuggestionId':_0x448e52['originalSuggestionId']||null,'attributes':_0x100075['attributes']};this['_adapter']['addSuggestion'](_0x1ce27d)['then'](_0x21cd0c=>{_0x100075['_saved']=!0x0,_0x10313c['remove'](_0x1486f0),_0x21cd0c&&_0x21cd0c['createdAt']&&(this['_suggestions']['get'](_0x37bb3a)['createdAt']=_0x21cd0c['createdAt']);})['catch'](_0x80b975=>{throw _0x4cc463('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x100075['discard']();}),_0x100075['stopListening'](),this['_suggestions']['delete'](_0x100075['id']),this['_suggestionState']['delete'](_0x100075),_0x80b975;});}return _0x100075;}['_isBlockAttribute'](_0x778fd0){return this['_blockAttributeKeys']['has'](_0x778fd0);}['_isInlineAttribute'](_0x424e8a){return this['_inlineAttributeKeys']['has'](_0x424e8a);}['_updateSuggestionData'](_0x257b42,_0x58ccd8){const _0x2f1be9=this['editor']['plugins']['get']('PendingActions'),_0x49e5ad=this['getSuggestion'](_0x257b42);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x49e5ad['_saved']){const _0x1067eb=_0x2f1be9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x257b42,_0x58ccd8)['then'](()=>{_0x2f1be9['remove'](_0x1067eb);});}else _0x49e5ad['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x257b42,_0x58ccd8);});}}['_getSuggestionData'](_0x4c3d72){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3e0d43('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c3d72);}['_handleNewSuggestionMarker'](_0x4941f9){const {id:_0x21da90,type:_0x3b9dd5,subType:_0x3c9ed0,authorId:_0x4d872c}=this['_splitMarkerName'](_0x4941f9),_0x28a1a1=this['_suggestions']['get'](_0x21da90)||this['_createSuggestion'](_0x3b9dd5,_0x3c9ed0,_0x21da90,_0x4d872c,{});switch(this['_checkSuggestionCorrectness'](_0x28a1a1,_0x3b9dd5,_0x3c9ed0,_0x4d872c),this['_suggestionState']['get'](_0x28a1a1)){case'notReady':this['_getSuggestionData'](_0x21da90)['then'](_0x2942f2=>{let _0x1d9a7a=Promise['resolve']();_0x2942f2['hasComments']&&(_0x1d9a7a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21da90})),_0x1d9a7a['then'](()=>{this['addSuggestionData'](_0x2942f2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x28a1a1,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21da90,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x28a1a1,'ready'),this['fire']('suggestionLoaded',_0x28a1a1);break;case'ready':this['fire']('suggestionChanged',_0x28a1a1);}return _0x28a1a1['addMarkerName'](_0x4941f9),_0x28a1a1;}['_refreshSuggestionsChain'](_0xa341c9){const _0x2b4964=Array['from'](_0xa341c9),_0x5dc569=_0x2b4964['filter'](_0xe1cb43=>'attribute'==_0xe1cb43['type']);this['_refreshAttributeSuggestionsChain'](_0x5dc569);const _0x496d51=_0x2b4964['filter'](_0x248c8e=>!_0x248c8e['isMultiRange']&&'attribute'!=_0x248c8e['type']),_0x132c64=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54c55b=>!_0x54c55b['isMultiRange']&&'attribute'!=_0x54c55b['type']),_0x143cf8=_0x132c64['filter'](_0x22d9de=>!_0xa341c9['has'](_0x22d9de)),_0x287ac4=new Map(_0x132c64['map'](_0x693a17=>[_0x693a17,this['_suggestionFactory']['getSuggestionCallback'](_0x693a17['type'],_0x693a17['subType'],'chain')])),_0x508ae9=new Map(_0x132c64['map'](_0x4f46d0=>[_0x4f46d0,_0x4f46d0['getFirstRange']()])),_0x13c4b1=new Set(),_0x550f5e=new Set();for(let _0x393b56=0x0;_0x393b56<_0x496d51['length'];_0x393b56++)_0x52a05c(_0x496d51[_0x393b56],_0x496d51,_0x393b56+0x1);for(let _0x1ac265=0x0;_0x1ac265<_0x496d51['length'];_0x1ac265++)_0x52a05c(_0x496d51[_0x1ac265],_0x143cf8,0x0);const _0x1e3eeb=new Set();for(let _0x4619f5=0x0;_0x4619f5<_0x496d51['length'];_0x4619f5++){const _0x1c82a4=_0x496d51[_0x4619f5];!_0x550f5e['has'](_0x1c82a4)&&_0x1c82a4['previous']&&(_0x1e3eeb['add'](_0x1c82a4['previous']),_0x1c82a4['previous']['next']===_0x1c82a4&&(_0x1c82a4['previous']['next']=null),_0x1c82a4['previous']=null),!_0x13c4b1['has'](_0x1c82a4)&&_0x1c82a4['next']&&(_0x1e3eeb['add'](_0x1c82a4['next']),_0x1c82a4['next']['previous']===_0x1c82a4&&(_0x1c82a4['next']['previous']=null),_0x1c82a4['next']=null);}function _0x52a05c(_0x388d22,_0xf00fcc,_0x3689a2){for(let _0x5b01e9=_0x3689a2;_0x5b01e9<_0xf00fcc['length'];_0x5b01e9++){const _0x926d00=_0x2a280c(_0x388d22,_0xf00fcc[_0x5b01e9]);_0x926d00&&(_0x926d00[0x0]['next']=_0x926d00[0x1],_0x926d00[0x1]['previous']=_0x926d00[0x0],_0x13c4b1['add'](_0x926d00[0x0]),_0x550f5e['add'](_0x926d00[0x1]));}}function _0x2a280c(_0x31f5dd,_0x1f1d8a){if(_0x31f5dd['author']['id']!==_0x1f1d8a['author']['id'])return null;const _0x3f0221=_0x287ac4['get'](_0x31f5dd)(_0x31f5dd,_0x1f1d8a,_0x508ae9['get'](_0x31f5dd),_0x508ae9['get'](_0x1f1d8a));if(!_0x3f0221)return null;return _0x287ac4['get'](_0x1f1d8a)(_0x31f5dd,_0x1f1d8a,_0x508ae9['get'](_0x31f5dd),_0x508ae9['get'](_0x1f1d8a))?_0x3f0221[0x1]['commentThread']&&_0x3f0221[0x1]['commentThread']['length']?null:_0x3f0221:null;}_0x1e3eeb['size']&&this['_refreshSuggestionsChain'](_0x1e3eeb);}['_refreshAttributeSuggestionsChain'](_0x1d8231){if(0x0==_0x1d8231['length'])return;const _0x1ed852=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c7fe1=>'attribute'==_0x5c7fe1['type']&&_0x5c7fe1['_isDataLoaded']),_0x24118b=[],_0x2c5a39=new Map();for(const _0x44da03 of _0x1ed852){const _0x363a4a=_0x752554(_0x44da03['attributes']);_0x2c5a39['has'](_0x363a4a)||(_0x2c5a39['set'](_0x363a4a,_0x24118b['length']),_0x24118b['push']([]));const _0x249836=_0x2c5a39['get'](_0x363a4a);_0x24118b[_0x249836]['push'](_0x44da03);}!(function(){_0x24118b['sort']((_0x5d2ed5,_0xbcd609)=>{const _0xe0087a=_0x5d2ed5[0x0]['createdAt'],_0x579a68=_0xbcd609[0x0]['createdAt'];return _0xe0087a==_0x579a68?_0x5d2ed5[0x0]['attributes']['groupId']<_0xbcd609[0x0]['attributes']['groupId']?-0x1:0x1:_0xe0087a<_0x579a68?-0x1:0x1;});for(const _0x1769b7 of _0x24118b)_0x1769b7['sort']((_0x315386,_0x1807e5)=>_0x315386['id']<_0x1807e5['id']?-0x1:0x1);}());for(let _0x20873b=0x0;_0x20873b<_0x24118b['length'];_0x20873b++){if(0x0==_0x24118b[_0x20873b]['length'])continue;const _0x1182c1=[];for(let _0x5eb8f3=_0x20873b+0x1;_0x5eb8f3<_0x24118b['length'];_0x5eb8f3++)0x0!=_0x24118b[_0x5eb8f3]['length']&&_0x58d322(_0x24118b[_0x20873b],_0x24118b[_0x5eb8f3])&&_0x1182c1['push'](_0x5eb8f3);for(const _0x260093 of _0x1182c1)_0x24118b[_0x20873b]=_0x24118b[_0x20873b]['concat'](_0x24118b[_0x260093]),_0x24118b[_0x260093]=[];}for(const _0x483e0c of _0x24118b)for(let _0xccad82=0x0;_0xccad82<_0x483e0c['length'];_0xccad82++){const _0x3011af=_0x483e0c[_0xccad82+0x1]||null;_0x483e0c[_0xccad82]['next']!==_0x3011af&&(_0x483e0c[_0xccad82]['next']=_0x3011af);}for(const _0x2f7c66 of _0x24118b)for(let _0x3b6e67=0x0;_0x3b6e67<_0x2f7c66['length'];_0x3b6e67++){const _0x4aac5d=_0x2f7c66[_0x3b6e67-0x1]||null;_0x2f7c66[_0x3b6e67]['previous']!==_0x4aac5d&&(_0x2f7c66[_0x3b6e67]['previous']=_0x4aac5d);}function _0x58d322(_0x14cfcc,_0x20dc45){if(_0x14cfcc[0x0]['attributes']['groupId']!==_0x20dc45[0x0]['attributes']['groupId']&&_0x14cfcc[0x0]['author']!==_0x20dc45[0x0]['author'])return!0x1;if(!function(_0x4c2185,_0xe7e9f2){if(!_0x4c2185['hasComments']&&!_0xe7e9f2['hasComments'])return!0x0;if(_0x4c2185['hasComments']&&_0xe7e9f2['hasComments'])return!0x1;if(_0x4c2185['hasComments']&&_0xe7e9f2['createdAt']<_0x4c2185['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe7e9f2['hasComments']&&_0x4c2185['createdAt']<_0xe7e9f2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x14cfcc[0x0],_0x20dc45[0x0]))return!0x1;const _0x41271a=Ut(_0x14cfcc[0x0]['attributes'],['groupId','trackingSessionId']),_0x337e53=Ut(_0x20dc45[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe99400(_0x41271a,_0x337e53))return!0x1;if(_0x14cfcc[0x0]['attributes']['groupId']==_0x20dc45[0x0]['attributes']['groupId'])return!0x0;if(_0x14cfcc[0x0]['attributes']['trackingSessionId']!==_0x20dc45[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x14cfcc['every'](_0x5129d9=>_0x20dc45['some'](_0x493c79=>_0x5129d9['getFirstRange']()['isEqual'](_0x493c79['getFirstRange']())))&&_0x20dc45['every'](_0x2c96ce=>_0x14cfcc['some'](_0x1c3a06=>_0x2c96ce['getFirstRange']()['isEqual'](_0x1c3a06['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e6d40){const _0x4e61a4=Array['from'](_0x3e6d40),_0x567bd3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x179ad9=_0x567bd3['filter'](_0x4c3608=>!_0x3e6d40['has'](_0x4c3608)),_0x304341=new Map(_0x4e61a4['map'](_0x5b33c4=>[_0x5b33c4,this['_suggestionFactory']['getSuggestionCallback'](_0x5b33c4['type'],_0x5b33c4['subType'],'join')])),_0x146c8f=new Map(_0x567bd3['map'](_0xe9536=>[_0xe9536,_0xe9536['getRanges']()]));for(let _0x25aa5c=0x0;_0x25aa5c<_0x4e61a4['length'];_0x25aa5c++){if(_0x3fabfa(this,_0x4e61a4[_0x25aa5c],_0x4e61a4,_0x25aa5c+0x1))return!0x0;}for(let _0x467936=0x0;_0x467936<_0x4e61a4['length'];_0x467936++){if(_0x3fabfa(this,_0x4e61a4[_0x467936],_0x179ad9,0x0))return!0x0;}return!0x1;function _0x3fabfa(_0x5a386d,_0x2882ca,_0x3efc00,_0x2ad560){for(let _0x55cf38=_0x2ad560;_0x55cf38<_0x3efc00['length'];_0x55cf38++){const _0x1a28bb=_0x3efc00[_0x55cf38];if(_0x1a28bb['type']!==_0x2882ca['type']||_0x1a28bb['author']['id']!==_0x2882ca['author']['id']||_0x1a28bb['subType']!==_0x2882ca['subType'])continue;if(!Qt(_0x2882ca,_0x1a28bb))continue;if('attribute'==_0x2882ca['type']&&_0x2882ca['data']['oldValue']!=_0x1a28bb['data']['oldValue'])continue;if('attribute'==_0x2882ca['type']&&_0x5a386d['_isBlockAttribute'](_0x2882ca['data']['key']))continue;if('formatBlock'==_0x2882ca['type']){const _0x40ca11=_0x5a386d['editor']['model'],_0x2e1c68=_0x2882ca['getContainedElement']();if(_0x2e1c68&&(_0x40ca11['schema']['isObject'](_0x2e1c68)||_0x40ca11['schema']['isLimit'](_0x2e1c68)))continue;}const _0x464b7b=_0x304341['get'](_0x2882ca),_0x549066=_0x146c8f['get'](_0x2882ca),_0x2256c0=_0x146c8f['get'](_0x1a28bb),_0x1469ce=_0x2882ca['commentThread']&&_0x2882ca['commentThread']['length'],_0x553b1a=_0x1a28bb['commentThread']&&_0x1a28bb['commentThread']['length'];if(!_0x1469ce&&_0x464b7b(_0x2256c0,_0x549066))return _0x5a386d['_joinSuggestions'](_0x1a28bb,_0x2882ca),_0x146c8f['delete'](_0x2882ca),!0x0;if(!_0x553b1a&&_0x464b7b(_0x549066,_0x2256c0))return _0x5a386d['_joinSuggestions'](_0x2882ca,_0x1a28bb),_0x146c8f['delete'](_0x1a28bb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5eb330,_0x10dbd4){if(_0x5eb330['isMultiRange']){for(const _0x3cd7fe of _0x10dbd4['getRanges']())_0x5eb330['addRange'](_0x3cd7fe);}else{const _0x210376=_0x10dbd4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5eb330,this['_model']['createRange'](_0x5eb330['getFirstRange']()['start'],_0x210376));}_0x10dbd4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c82b4,_0x177e55,_0x381e27){const _0x524723=_0x2c82b4['startsWith']('format')||_0x2c82b4['startsWith']('attribute')?'FORMATTING':_0x2c82b4['toUpperCase']();return o(this['editor']['locale'],_0x177e55+'_'+_0x524723+'_SUGGESTION_ANNOUNCEMENT',_0x381e27);}['_initAriaMarkerChangeAnnouncements'](){const _0x5a0e61=this['editor'];if(!_0x5a0e61['ui'])return;const {ariaLiveAnnouncer:_0x3bcf69}=_0x5a0e61['ui'];_0x4bfe6a(this['_model'],({left:_0x1a0446,entered:_0x414af6})=>{for(const _0x12a918 of _0x1a0446){const {group:_0x33ee5d,type:_0x4040ea}=this['_splitMarkerName'](_0x12a918['name']);if('suggestion'===_0x33ee5d){_0x3bcf69['announce'](this['_getMarkerAnnouncementText'](_0x4040ea,'LEAVE'));break;}}for(const _0x4f8a22 of _0x414af6){const {group:_0x4a6c34,type:_0x413e15}=this['_splitMarkerName'](_0x4f8a22['name']);if('suggestion'===_0x4a6c34){_0x3bcf69['announce'](this['_getMarkerAnnouncementText'](_0x413e15,'ENTER',_0x3cf1d4(_0x4085c9)));break;}}});}['_processAttributeChanges'](_0xf6ec71){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d97e5=this['editor'],_0x3b5c12=_0x4d97e5['model']['document']['differ']['getChanges']();if(0x0==_0x3b5c12['length'])return!0x1;const _0x1bdf3a=[],_0x3eace1=_0x3b5c12['filter'](_0x108a66=>'attribute'==_0x108a66['type']),_0x5efd52=_0x3b5c12['filter'](_0x4bf7b5=>'insert'==_0x4bf7b5['type']&&'$text'!=_0x4bf7b5['name']),_0x1cc0b7=_0x3b5c12['filter'](_0x5224d4=>'remove'==_0x5224d4['type']&&'$text'!=_0x5224d4['name']);for(const _0x1d2c6f of _0x3eace1)_0x1bdf3a['push']({'key':_0x1d2c6f['attributeKey'],'newValue':_0x1d2c6f['attributeNewValue'],'oldValue':_0x1d2c6f['attributeOldValue'],'range':qt(_0x1d2c6f['range'],_0x4d97e5['model'])});for(const _0x3e105f of _0x5efd52){const _0x20b251=_0x1cc0b7['find'](_0x1efb80=>_0x1efb80['position']['isEqual'](_0x3e105f['position']));_0x20b251&&_0x1bdf3a['push']({'key':m,'newValue':_0x3e105f['name'],'oldValue':_0x20b251['name'],'range':_0x4d97e5['model']['createRangeOn'](_0x3e105f['position']['nodeAfter'])});}return 0x0!=_0x1bdf3a['length']&&this['_reduceExistingSuggestions'](_0xf6ec71,_0x1bdf3a);}['_processAttributeSuggestions'](_0x211e4f){let _0x360218=!0x1;const _0x2a6b2a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38fcf4=>_0x38fcf4['data']['newRange']&&_0x38fcf4['name']['startsWith']('suggestion:attribute:'));for(const _0x52b8b6 of _0x2a6b2a){const {subType:_0x1b108f,id:_0x4c3cbe}=this['_splitMarkerName'](_0x52b8b6['name']),_0x671227=_0x1b108f['split']('|')[0x0];for(const _0x417174 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x417174['id']!=_0x4c3cbe&&'attribute'==_0x417174['type']&&_0x417174['data']&&_0x417174['data']['key']==_0x671227&&_0x417174['getFirstRange']()['isIntersecting'](_0x52b8b6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x417174,_0x52b8b6['data']['newRange'],_0x211e4f),_0x360218=!0x0);}return _0x360218;}['recordAttributeChanges'](_0x5175dd){this['_recordAttributeSuggestions']=!0x0,_0x5175dd();}['_isRegisteredAttribute'](_0x5d2aad){const _0x42bbd7=this['_isBlockAttribute'](_0x5d2aad),_0xc60578=this['_isInlineAttribute'](_0x5d2aad);return _0x42bbd7||_0xc60578;}['_reduceExistingSuggestions'](_0x17d7b5,_0x17e75b){if(0x0==_0x17e75b['length'])return!0x1;let _0x21883b=!0x1;for(const _0x1a1b6e of _0x17e75b){const _0x4a2c40=this['_findSuggestions'](_0x1a1b6e['range'],'attribute')['filter'](_0x4f25b3=>!_0x4f25b3['meta']['isNextTo'])['map'](_0x4c10db=>_0x4c10db['suggestion']),_0x2b2c48=_0x752554({'newValue':_0x1a1b6e['newValue']});_0x4a2c40['filter'](_0x5eaf0a=>{const [_0xa34e00,_0x4b970f]=_0x5eaf0a['subType']['split']('|');return _0xa34e00==_0x1a1b6e['key']&&_0x4b970f!=_0x2b2c48;})['forEach'](_0x3ce6ee=>{this['_reduceSuggestionAttributeRange'](_0x3ce6ee,_0x1a1b6e['range'],_0x17d7b5),_0x21883b=!0x0;});}return _0x21883b;}['_reduceSuggestionAttributeRange'](_0x3923c8,_0x1eb250,_0x4867ff){const _0xf29ac8=_0x3923c8['getFirstRange']()['getDifference'](_0x1eb250);0x0!==_0xf29ac8['length']?0x1!==_0xf29ac8['length']?this['_breakSuggestionMarker'](_0x3923c8,_0x1eb250['start'],_0x1eb250['end']):this['_setSuggestionRange'](_0x3923c8,_0xf29ac8[0x0]):_0x4867ff['removeMarker'](_0x3923c8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9db2b1){this['_editor']=_0x9db2b1,this['_model']=_0x9db2b1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe177b9,_0x58a760,_0xcc236b,_0x5611db,_0x4fa25d,_0x11f257,_0x271919){return new T(this['_model'],{'type':_0xe177b9,'subType':_0x58a760,'id':_0xcc236b,'originalSuggestionId':_0x271919,'author':_0x5611db,'creator':_0x5611db,'attributes':_0x4fa25d,'onAttributesChange':_0x11f257,'onAccept':(..._0x3488d2)=>this['getSuggestionCallback'](_0xe177b9,_0x58a760,'accept')(..._0x3488d2),'onDiscard':(..._0x527ee0)=>this['getSuggestionCallback'](_0xe177b9,_0x58a760,'discard')(..._0x527ee0)});}['registerCustomCallback'](_0x1b8342,_0xd4a16,_0x555c8d,_0x5e1977){const _0x27ad4a=_0x1b8342+':'+_0xd4a16+':'+_0x555c8d;this['_customCallbacks']['set'](_0x27ad4a,_0x5e1977);}['getSuggestionCallback'](_0x54c87f,_0x11f6e3,_0x443d7a){const _0x3cca5d=_0x54c87f+':'+_0x11f6e3+':'+_0x443d7a;return this['_customCallbacks']['get'](_0x3cca5d)||this['_defaultCallbacks']['get'](_0x54c87f+':'+_0x443d7a);}['_registerDefaultCallbacks'](){const _0x2f4c55=()=>!0x1,_0x188d52=_0x170676=>{_0x170676['sort']((_0x3a86b3,_0x246f9b)=>_0x3a86b3['start']['isBefore'](_0x246f9b['start'])?0x1:-0x1),this['_model']['change'](_0x2a858c=>{for(const _0xe31c55 of _0x170676){let _0x547ca1;_0x547ca1=_0xe31c55['end']['isAtEnd']&&_0xe31c55['end']['parent']==_0xe31c55['start']['nodeAfter']?_0x2a858c['createSelection'](_0xe31c55['start']['nodeAfter'],'on'):_0x2a858c['createSelection'](_0xe31c55),this['_model']['deleteContent'](_0x547ca1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5e3cc6=(_0x412fd1,_0x4062e3)=>{_0x4062e3&&this['_model']['change'](_0x2730ba=>{const {commandName:_0x5c7aea,commandParams:_0x46dae6=[]}=_0x4062e3,_0x47fccd=_0x412fd1['map'](_0x522ff9=>(Pt(_0x522ff9)&&(_0x522ff9=this['_model']['createRange'](_0x522ff9['end'])),_0x522ff9))['filter'](_0x1bfcdd=>'$graveyard'!==_0x1bfcdd['root']['rootName']);if(_0x47fccd['length']<0x1)return;const _0xedbe85=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c5486=>_0x1437b2['fromRange'](_0x5c5486));_0x2730ba['setSelection'](_0x47fccd);for(const _0x9bbf5f of this['_editor']['commands']['commands']())_0x9bbf5f['refresh']();_0x46dae6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c7aea,..._0x46dae6);const _0x14c9bf=_0xedbe85['filter'](_0x1e1a5a=>'$graveyard'!=_0x1e1a5a['root']['rootName']);_0x14c9bf['length']>0x0&&_0x2730ba['setSelection'](_0x14c9bf);for(const _0x221d59 of _0xedbe85)_0x221d59['detach']();});},_0x30cd78=(_0x24f7c8,_0xb9384d)=>0x1==_0x24f7c8['length']&&0x1==_0xb9384d['length']&&_0x24f7c8[0x0]['end']['isEqual'](_0xb9384d[0x0]['start']),_0x362cbc=(_0x2b0d4f,_0x435a81,_0x537529,_0x340529)=>Wt(_0x2b0d4f,_0x435a81,_0x537529,_0x340529)?[_0x2b0d4f,_0x435a81]:Wt(_0x435a81,_0x2b0d4f,_0x340529,_0x537529)?[_0x435a81,_0x2b0d4f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f4c55),this['_defaultCallbacks']['set']('insertion:discard',_0x188d52),this['_defaultCallbacks']['set']('insertion:join',_0x30cd78),this['_defaultCallbacks']['set']('insertion:chain',_0x362cbc),this['_defaultCallbacks']['set']('deletion:accept',_0x188d52),this['_defaultCallbacks']['set']('deletion:discard',_0x2f4c55),this['_defaultCallbacks']['set']('deletion:join',_0x30cd78),this['_defaultCallbacks']['set']('deletion:chain',_0x362cbc),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e3cc6),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f4c55),this['_defaultCallbacks']['set']('formatInline:join',_0x30cd78),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f4c55),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e3cc6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f4c55),this['_defaultCallbacks']['set']('formatBlock:join',_0x30cd78),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f4c55),this['_defaultCallbacks']['set']('attribute:accept',_0x2f4c55),this['_defaultCallbacks']['set']('attribute:discard',(_0x1763be,_0x1b5ea9)=>{if(!_0x1b5ea9)return;const _0x1b1c6e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3920b1=>{if(_0x1b5ea9['key']==m)for(const _0x307fd6 of _0x1763be){const _0x4cac5a=_0x307fd6['start']['nodeAfter'],_0x1d9050=_0x1b5ea9['oldValue'];_0x3920b1['rename'](_0x4cac5a,_0x1d9050);}else{if(_0x1b1c6e['_isBlockAttribute'](_0x1b5ea9['key'])){for(const _0x22495d of _0x1763be)void 0x0!==_0x1b5ea9['oldValue']?_0x3920b1['setAttribute'](_0x1b5ea9['key'],_0x1b5ea9['oldValue'],_0x22495d['start']['nodeAfter']):_0x3920b1['removeAttribute'](_0x1b5ea9['key'],_0x22495d['start']['nodeAfter']);}else{for(const _0x401019 of _0x1763be)_0x1b5ea9['oldValue']?_0x3920b1['setAttribute'](_0x1b5ea9['key'],_0x1b5ea9['oldValue'],_0x401019):_0x3920b1['removeAttribute'](_0x1b5ea9['key'],_0x401019);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x30cd78);}}function Ft(_0x381eae,_0x481ea2,_0x41cd80){for(const _0x45917f of _0x481ea2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45917f['root']==_0x45917f)return!0x1;if(!_0x41cd80['containsItem'](_0x45917f))return!0x1;if(_0x381eae['isObject'](_0x45917f)||_0x381eae['isLimit'](_0x45917f))return!0x0;}return!0x1;}function Pt(_0x58b0fc){return _0x58b0fc['end']['parent']==_0x58b0fc['start']['nodeAfter']&&_0x58b0fc['end']['isAtStart'];}function Gt(_0x505ef9,_0x29b6c6,_0x4ef19a,_0x2a7284){const _0x5bba8c=_0x337017=>!_0x337017['item']['is']('$textProxy')&&!_0x2a7284['isObject'](_0x337017['item']),_0x324d3c=_0x505ef9['start']['getLastMatchingPosition'](_0x5bba8c),_0x3f0f72=_0x505ef9['end']['getLastMatchingPosition'](_0x5bba8c,{'direction':'backward'});return(!_0x505ef9['start']['isEqual'](_0x324d3c)||!_0x505ef9['end']['isEqual'](_0x3f0f72))&&(_0x324d3c['isBefore'](_0x3f0f72)?_0x4ef19a['updateMarker'](_0x29b6c6,{'range':_0x4ef19a['createRange'](_0x324d3c,_0x3f0f72)}):_0x4ef19a['removeMarker'](_0x29b6c6),!0x0);}function Lt(_0xde71e5){return _0x752554(_0xde71e5);}function Jt(_0x11bd20){const _0x4bb8d4=_0x11bd20['start']['nodeAfter'];return _0x4bb8d4&&_0x4bb8d4['is']('element');}function Kt(_0x41c75b){return Pt(_0x41c75b)||function(_0x187f72){return _0x187f72['start']['parent']==_0x187f72['end']['nodeBefore']&&_0x187f72['start']['isAtEnd'];}(_0x41c75b);}function Ht(_0x168634,_0x4ef6ac){try{const _0x83bd1d=_0x168634['getRange']();for(const _0x1d2831 of _0x4ef6ac)if(_0x168634!==_0x1d2831&&_0x83bd1d&&_0x83bd1d['isIntersecting'](_0x1d2831['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2e2014,_0x5d9d34){return null==_0x2e2014['end']['nodeBefore']&&_0x2e2014['end']['parent']==_0x2e2014['start']['nodeAfter']?zt(_0x2e2014['start']['nodeAfter'],_0x5d9d34):_0x2e2014;}function zt(_0x5496d8,_0x4393ee){const _0x59b2df=_0x4393ee['schema']['isObject'](_0x5496d8)||_0x4393ee['schema']['isSelectable'](_0x5496d8);return _0x4393ee['createRange'](_0x4393ee['createPositionAt'](_0x5496d8,'before'),_0x59b2df?_0x4393ee['createPositionAfter'](_0x5496d8):_0x4393ee['createPositionAt'](_0x5496d8,'end'));}function Wt(_0x58bad1,_0xdd1aaa,_0x3818d8,_0x5c249c){return!!Qt(_0x58bad1,_0xdd1aaa)&&_0x3818d8['end']['isEqual'](_0x5c249c['start']);}function Qt(_0x21d750,_0x2c576d){if(!_0x21d750['_isDataLoaded']||!_0x2c576d['_isDataLoaded'])return!0x1;const _0x224686=new Set(Object['keys'](_0x21d750['attributes'])),_0x50e63d=new Set(Object['keys'](_0x2c576d['attributes']));if(_0x224686['delete']('groupId'),_0x50e63d['delete']('groupId'),0x0==_0x224686['size']&&0x0==_0x50e63d['size'])return!0x0;if(_0x224686['size']!=_0x50e63d['size'])return!0x1;const _0x40156e={..._0x21d750['attributes']},_0x470dfd={..._0x2c576d['attributes']};return delete _0x40156e['groupId'],delete _0x470dfd['groupId'],JSON['stringify'](_0x40156e)==JSON['stringify'](_0x470dfd);}function Xt(_0x63af7,_0x1c0b2a){const _0x4111fd=Yt(_0x63af7['attributes']),_0x3d5c67=Yt(_0x1c0b2a);if(!_0x63af7['_isDataLoaded'])return!0x1;for(const _0xafd0bf of Object['keys'](_0x3d5c67))if(!_0xe99400(_0x4111fd[_0xafd0bf],_0x3d5c67[_0xafd0bf]))return!0x1;return!0x0;}function Yt(_0x415082){const _0x458683=Object['assign']({},_0x415082);return delete _0x458683['skipNestingCheck'],delete _0x458683['tablePasteChainId'],_0x458683;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4d13ba(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14afdf,_0xb3a29a,_0x55edf6,_0x2b9384){super(),this['model']=_0xb3a29a,this['view']=_0x55edf6,this['commentThreadController']=_0x2b9384,this['_editor']=_0x14afdf,this['_acceptCommand']=_0x14afdf['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14afdf['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5e16fe,_0x128249)=>_0x5e16fe||_0x128249),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8d43c9=>_0x8d43c9&&this['_editor']['model']['canEditAt'](_0xb3a29a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5be68d=>_0x5be68d&&this['_editor']['model']['canEditAt'](_0xb3a29a['getRanges']())),this['_pendingAction']=null,_0x55edf6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55edf6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55edf6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55edf6,'change:isDirty',()=>{_0x55edf6['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 _0x47be38=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x47be38);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x39a612{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3ca542,_0x3da3b0,_0x2033e0,_0x2937d2){super(_0x3ca542),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b786d(_0x3ca542,o(_0x3ca542,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3da3b0['authoredAt']),this['bind']('authoredAt')['to'](_0x3da3b0),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',_0x3da3b0,'authoredAt',this,'descriptionParts',(_0xbb1a5,_0x4f5b72,_0xc4420b)=>{const _0x4f9c8c=_0xc4420b['map'](_0x7da62f=>ls(_0x7da62f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xbb1a5-0x1,_0x3da3b0['author']['name'],_0x4f5b72?_0x2937d2['formatDateTime'](_0x4f5b72):'',new DOMParser()['parseFromString'](_0x4f9c8c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2011b0(),this['focusTracker']=new _0x5a30d8(),this['keystrokes']=new _0x20a6b1(),this['focusCycler']=new _0x4ebd64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f7339=>_0x1f7339['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3da3b0,this['_localUser']=_0x2033e0,this['_config']=_0x2937d2,_0x2937d2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x186058(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x582dd0}=this['_config'];this['commentsListView']=new _0x582dd0(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',_0x550c48=>_0x550c48+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5c13aa,_0x58e0fb)=>_0x5c13aa||!!_0x58e0fb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31a22b}=this['_config'],_0x27f959=new _0x31a22b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c5a15=_0x27f959['commentInputView'];return _0x27f959['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c5a15,'value',(_0x157fc5,_0x50b9a9,_0x368f26)=>!!_0x368f26||_0x157fc5&&!_0x50b9a9),_0x4c5a15['on']('submit',(_0x41e94c,_0xa9a860)=>{this['fire']('addComment',_0xa9a860),_0x4c5a15['editor']['setData']('');}),_0x4c5a15['on']('cancel',()=>this['focus']()),_0x4c5a15['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27f959;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2378e9,_0x1e3cad,_0x51161b,_0x2f85a7){super(_0x2378e9,_0x1e3cad,_0x51161b,_0x2f85a7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41e6f0=>_0x41e6f0&&_0x41e6f0[0x0]?_0x41e6f0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5cf3d4,_0x1e8734)=>{let _0x3d2264='';for(const _0x5d7244 of _0x5cf3d4)_0x3d2264+='<p>'+ls(_0x5d7244['content'],_0x5d7244['color'])+'</p>';return _0x1e8734?_0x3d2264:_0x323e55(_0x3d2264,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f85a7['SuggestionView'](_0x2378e9,_0x1e3cad,{'formatDateTime':_0x2f85a7['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 _0x161a6d=this['bindTemplate'],_0x5ea512=[this['suggestionView']];return this['commentsListView']&&_0x5ea512['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ea512['push'](this['commentThreadInputView']),_0x5ea512['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x161a6d['if']('isActive','ck-suggestion-wrapper--active'),_0x161a6d['to']('type',_0x3fde9=>'ck-suggestion-'+_0x3fde9),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':_0x161a6d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ea512};}['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 _0x39a612{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x424dec,_0x3ec003,_0x3a58b8){super(_0x424dec),this['_model']=_0x3ec003,this['_config']=_0x3a58b8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ec003),this['acceptButton']=this['_createButton'](o(_0x424dec,'Accept\x20suggestion'),_0x31bf72,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x424dec,'Discard\x20suggestion'),_0x8a2bfe,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2d29b8(_0x424dec,_0x3ec003['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2011b0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a30d8(),this['keystrokes']=new _0x20a6b1(),this['focusCycler']=new _0x4ebd64({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f64e0=>_0x1f64e0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d610c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d610c['innerHTML']=this['description'],this['on']('change:description',(_0xbe459a,_0x1347c1,_0x3c0b65)=>{_0x3d610c['innerHTML']=_0x3c0b65;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2ff2ec=this['bindTemplate'],_0x1dae01=[{'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':_0x2ff2ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ff2ec['to']('authoredAt',_0x16b6c8=>this['_config']['formatDateTime'](_0x16b6c8))}]}]},{'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']&&_0x1dae01['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':_0x1dae01}]};}['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'](_0x49a66c,_0xe8db25,_0x4281c0,_0x5de8e0,_0x15ee1c){const _0x5e114d=new _0x25f339(this['locale']);return _0x5e114d['set']({'label':_0x49a66c,'icon':_0xe8db25,'tooltip':!0x0,'tooltipPosition':_0x15ee1c}),_0x5e114d['extendTemplate']({'attributes':{'class':_0x4281c0}}),_0x5e114d['on']('execute',()=>{this['fire'](_0x5de8e0,this['_model']['id']);}),_0x5e114d;}['_setupKeyboardNavigation'](){const _0x23e9a3=this['element'];this['keystrokes']['listenTo'](_0x23e9a3);for(const _0x4ea629 of this['focusables'])this['focusTracker']['add'](_0x4ea629['element']),this['keystrokes']['listenTo'](_0x4ea629['element']);this['keystrokes']['set']('enter',(_0x3c2536,_0x10df85)=>{_0x23e9a3===_0x3c2536['target']&&(this['focusCycler']['focusFirst'](),_0x10df85());}),this['keystrokes']['set']('esc',(_0x54ffb0,_0x2da20c)=>{_0x23e9a3!==_0x54ffb0['target']&&(this['focus'](),_0x2da20c());});}}class u extends _0xa897c8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x5e8d65,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3be623){super(_0x3be623),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38c0f2=this['editor']['config'];_0x38c0f2['define']('trackChanges.SuggestionThreadView',fe),_0x38c0f2['define']('trackChanges.SuggestionView',we),_0x38c0f2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38c0f2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3f3f9f,_0x4fe140){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e918b,_0x100366]of this['_handleControllerBuffer']){const _0x6b21fb=this['_suggestionToController']['has'](_0x5e918b);_0x6b21fb||_0x100366?_0x6b21fb&&_0x100366&&this['_destroyController'](_0x5e918b):this['_initializeController'](_0x5e918b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3f3f9f,_0x4fe140);}['init'](){const _0x4a0bc5=this['editor'],_0x55e628=_0x4a0bc5['plugins']['get']('TrackChangesEditing'),_0x4e0a7f=_0x4a0bc5['plugins']['get']('Annotations'),_0x63cdc5=_0x4a0bc5['plugins']['get']('EditorAnnotations'),_0x34c229=_0x4a0bc5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x63cdc5['addSourceCollector'](()=>{const _0x81851f=[];for(const [_0xd6c63e,_0x468003]of Array['from'](this['_suggestionToController'])){const _0x24732d=_0xd6c63e['getAllAdjacentSuggestions'](),_0x10e115=[];for(const _0x33c795 of _0x24732d){if(!_0x33c795['isInContent'])continue;if(_0x33c795['isMultiRange']){_0x10e115['push'](..._0x33c795['getRanges']());continue;}const _0x437eb9=_0x33c795['getFirstRange']();if(_0x10e115['length']>0x0){const _0x1cccf0=_0x10e115[0x0]['getJoined'](_0x437eb9);if(_0x1cccf0){_0x10e115[0x0]=_0x1cccf0;continue;}}_0x10e115['push'](_0x437eb9);}_0x81851f['push']([_0x468003['view'],_0x10e115]);}return _0x81851f;}),this['listenTo'](_0x55e628,'suggestionLoaded',(_0x47131a,_0x3a2095)=>{this['listenTo'](_0x3a2095,'change:previous',(_0x22cd80,_0x2fd48c,_0x3763eb,_0x321227)=>{_0x3a2095['isInContent']&&(null==_0x3763eb?(this['_updateController'](_0x321227['head']),this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x1)):(this['_updateController'](_0x3763eb['head']),null==_0x321227&&this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x0)));}),null!==_0x3a2095['previous']?this['_updateController'](_0x3a2095['head']):this['_handleSuggestionControllerDelayed'](_0x3a2095,!0x1);}),this['listenTo'](_0x55e628,'suggestionUnloaded',(_0xd339a6,_0x329045,_0x38de94)=>{this['stopListening'](_0x329045,'change:previous'),this['_handleControllerBuffer']['delete'](_0x329045),this['_suggestionToController']['has'](_0x329045)&&this['_destroyController'](_0x329045),_0x38de94&&this['_updateController'](_0x38de94['head']);}),this['listenTo'](_0x55e628,'suggestionChanged',(_0x5def44,_0x59d4c1)=>{this['_updateController'](_0x59d4c1);}),this['listenTo'](_0x4e0a7f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x34c229,'addComment',(_0x448822,{threadId:_0x31a6ea,isFromAdapter:_0x45e1bb})=>{if(_0x45e1bb||!_0x55e628['hasSuggestion'](_0x31a6ea))return;const _0xd3aa11=_0x55e628['getSuggestion'](_0x31a6ea);this['_suggestionToController']['get'](_0xd3aa11)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x164078=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ede3e;for(const _0x1edf87 in _0x164078){const _0x1adf34=_0x1edf87,_0x215c10=_0x164078[_0x1adf34];if('trackChangesLicenseKeyValid'==_0x215c10||'trackChangesLicenseKeyInvalid'==_0x215c10||'trackChangesLicenseKeyExpired'==_0x215c10||'trackChangesLicenseKeyDomainLimit'==_0x215c10||'trackChangesLicenseKeyNotAllowed'==_0x215c10||'trackChangesLicenseKeyEvaluationLimit'==_0x215c10||'trackChangesLicenseKeyTrialLimit'==_0x215c10||'trackChangesLicenseKeyUsageLimit'==_0x215c10){delete _0x164078[_0x1adf34],_0x2ede3e=_0x215c10,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2ede3e&&_0x164078['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2ede3e&&_0x164078['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2ede3e&&_0x164078['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2ede3e&&_0x164078['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xeda857){const _0x3e58b0=this['_suggestionToController']['get'](_0xeda857);if(!_0x3e58b0)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3e58b0['view'])||null;}['getSuggestionForAnnotation'](_0x422c45){const _0x2692ac=this['_viewToController']['get'](_0x422c45['innerView']);return _0x2692ac?_0x2692ac['model']:null;}['_refreshActiveMarkers'](){const _0x43e3e0=this['editor']['plugins']['get']('Annotations'),_0x3d3b25=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa15b3b=Array['from'](_0x43e3e0['activeAnnotations'],_0x47808a=>_0x47808a['innerView'])['filter'](_0x58866c=>this['_viewToController']['has'](_0x58866c)),_0x170335=[];for(const _0x2e7e42 of _0xa15b3b){const _0x348f6c=this['_viewToController']['get'](_0x2e7e42)['model']['getAllAdjacentSuggestions']();_0x170335['push'](..._0x348f6c['reduce']((_0x37b912,_0x34f1b7)=>[..._0x37b912,..._0x34f1b7['getMarkerNames']()],[]));}_0x3d3b25['activeMarkers']=_0x170335;}['_addUIComponentsToFactory'](){const _0x505eef=this['editor'],_0x32d066=_0x505eef['locale'],_0x3aef3c=o(_0x32d066,'Track\x20changes'),_0x5ec5aa=new _0x31149d([{'type':'switchbutton','model':new _0xb4001c({'withText':!0x0,'isToggleable':!0x0,'label':_0x3aef3c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x505eef['plugins']['has']('TrackChangesPreview')&&_0x5ec5aa['addMany']([{'type':'separator'},{'type':'button','model':new _0xb4001c({'withText':!0x0,'label':o(_0x32d066,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e8388 of _0x5ec5aa)if(ke(_0x4e8388)){const _0x1ec754=_0x505eef['commands']['get'](_0x4e8388['model']['commandName']);_0x4e8388['model']['bind']('isOn','isEnabled')['to'](_0x1ec754,'value','isEnabled');}_0x505eef['ui']['componentFactory']['add']('trackChanges',_0xed2757=>this['_createToolbarButton'](_0xed2757,_0x5ec5aa,_0x3aef3c)),_0x505eef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a1349=>this['_createMenuBarMenu'](_0x4a1349,_0x5ec5aa,_0x3aef3c));}['_createToolbarButton'](_0x48c5ea,_0xfd27ee,_0xf744b0){const _0x5ab191=_0x48dd53(_0x48c5ea,_0x5dd53e),_0x4ddd4c=this['editor']['commands']['get']('trackChanges');_0x5ab191['buttonView']['set']({'tooltip':_0xf744b0,'label':_0xf744b0,'icon':_0x2c27a5}),_0x5ab191['buttonView']['bind']('isOn')['to'](_0x4ddd4c,'value'),_0x5ab191['buttonView']['on']('execute',()=>{_0x4ddd4c['execute'](),this['editor']['editing']['view']['focus']();}),_0x274643(_0x5ab191,_0xfd27ee,{'role':'menu'});const _0xd467a3=[];for(const _0x16ca53 of _0xfd27ee)ke(_0x16ca53)&&_0xd467a3['push'](this['editor']['commands']['get'](_0x16ca53['model']['commandName']));const _0x262711=_0x5ab191['buttonView'];return _0x262711['actionView']['unbind']('isEnabled'),_0x262711['arrowView']['unbind']('isEnabled'),_0x262711['actionView']['bind']('isEnabled')['to'](_0x4ddd4c,'isEnabled'),_0x262711['arrowView']['bind']('isEnabled')['toMany'](_0xd467a3,'isEnabled',(..._0x5c49a4)=>_0x5c49a4['some'](_0x85eab3=>_0x85eab3)),_0x5ab191['on']('execute',_0x1f1bf1=>{this['editor']['execute'](_0x1f1bf1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ab191;}['_createMenuBarMenu'](_0x23839f,_0x22e19d,_0x1ae6f6){const _0x3ef3d2=new _0x113708(_0x23839f),_0x4cce66=this['editor']['commands']['get']('trackChanges');_0x3ef3d2['buttonView']['set']({'label':_0x1ae6f6,'icon':_0x2c27a5});const _0x382745=new _0xbb255d(_0x23839f);for(const _0x333214 of _0x22e19d){if('separator'==_0x333214['type']){_0x382745['items']['add'](new _0x3ff7ce(_0x23839f));continue;}const _0x4a97a0=new _0x1aaec5(_0x23839f,_0x3ef3d2),_0x5d055e=new _0x235789(_0x23839f),_0x491a2a=_0x333214['model'];_0x5d055e['bind'](...Object['keys'](_0x491a2a))['to'](_0x491a2a),_0x5d055e['delegate']('execute')['to'](_0x3ef3d2),_0x5d055e['on']('execute',()=>{this['editor']['execute'](_0x491a2a['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a97a0['children']['add'](_0x5d055e),_0x382745['items']['add'](_0x4a97a0);}return _0x3ef3d2['bind']('isEnabled')['to'](_0x4cce66,'isEnabled'),_0x3ef3d2['panelView']['children']['add'](_0x382745),_0x3ef3d2;}['_initializeController'](_0x13dc4f){const _0x1704f0=this['editor'],_0xd300aa=_0x1704f0['config'],_0x509be6=_0x1704f0['plugins']['get']('Annotations'),_0x59db2e=_0x1704f0['plugins']['get']('CommentsRepository'),_0x29453a=_0x1704f0['plugins']['get']('EditorAnnotations'),_0x2c41ab=_0x1704f0['plugins']['get'](_0x5e8d65)['me'],_0x26ea3a=_0xd300aa['get']('trackChanges')['SuggestionThreadView'],_0x3dcd1a=_0xd300aa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3c3836,CommentThreadInputView:_0x5573f4}=_0x1704f0['plugins']['get']('CommentsUI');let _0x424a2d,_0x4e4ec5,_0x1bb28f;this['_annotationViews']['has'](_0x13dc4f['id'])?(_0x4e4ec5=this['_annotationViews']['get'](_0x13dc4f['id']),_0x424a2d=_0x4e4ec5['mainView']):(_0x424a2d=new _0x26ea3a(_0x1704f0['locale'],_0x13dc4f,_0x2c41ab,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd300aa['get']('comments.editorConfig'),'licenseKey':_0xd300aa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd300aa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd300aa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd300aa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c3cc9(_0xd300aa['get']('locale'),_0x1704f0['locale']),'CommentView':_0xd300aa['get']('comments')['CommentView'],'CommentsListView':_0x3c3836,'CommentThreadInputView':_0x5573f4,'SuggestionView':_0x3dcd1a}),_0x424a2d['suggestionView']['acceptButton']['on']('execute',()=>{_0x1704f0['editing']['view']['focus']();}),_0x424a2d['suggestionView']['discardButton']['on']('execute',()=>{_0x1704f0['editing']['view']['focus']();}),_0x4e4ec5=_0x509be6['createAnnotationView'](this['editor']['locale'],_0x424a2d),_0x4e4ec5['bind']('isDirty')['to'](_0x424a2d,'isDirty'),_0x4e4ec5['bind']('length')['to'](_0x424a2d),_0x4e4ec5['bind']('type')['to'](_0x424a2d,'type',_0x3cf99b=>'suggestion-'+_0x3cf99b),_0x424a2d['on']('escape',()=>{_0x1bb28f['fire']('escape');}),this['_annotationViews']['set'](_0x13dc4f['id'],_0x4e4ec5));const _0x5a1fb6=_0x59db2e['createCommentThreadController'](_0x13dc4f['commentThread'],_0x424a2d),_0x4f48e6=new pe(_0x1704f0,_0x13dc4f,_0x424a2d,_0x5a1fb6),_0x8b8521=_0x13dc4f['getAllAdjacentSuggestions']()['filter'](_0x46fef0=>_0x46fef0['isInContent']);_0x424a2d['descriptionParts']=_0x1704f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x8b8521),this['_suggestionToController']['set'](_0x13dc4f,_0x4f48e6),this['_viewToController']['set'](_0x424a2d,_0x4f48e6);const _0x1e69b4=()=>{const _0x149ef6=[],_0xa555f8=_0x13dc4f['getAllAdjacentSuggestions']()['filter'](_0x35bd1d=>_0x35bd1d['isInContent']);for(const _0x1e9ac4 of _0xa555f8)_0x149ef6['push'](..._0x1e9ac4['getMarkers']());return _0x93afd2(_0x1704f0['editing'],_0x149ef6);};_0x1bb28f=_0x509be6['createAnnotation']({'view':_0x4e4ec5,'target':_0x1e69b4,'type':()=>'suggestion-'+_0x4f48e6['view']['type'],'isVisible':!!_0x1e69b4()}),_0x59db2e['_bindAnnotationToEditors'](_0x424a2d,_0x1bb28f),_0x509be6['add'](_0x1bb28f),_0x29453a['registerAnnotation'](_0x1bb28f);}['_destroyController'](_0x52d760){const _0x2cef0c=this['editor']['plugins']['get']('CommentsRepository'),_0x5cb977=this['editor']['plugins']['get']('Annotations'),_0x27dad3=this['_suggestionToController']['get'](_0x52d760),_0x266099=_0x27dad3['view'],_0xa02720=_0x5cb977['getByInnerView'](_0x266099);_0x2cef0c['_unbindEditors'](_0x266099),_0xa02720&&_0x5cb977['remove'](_0xa02720),this['_suggestionToController']['delete'](_0x52d760),this['_viewToController']['delete'](_0x266099),_0x27dad3['destroy']();}['_updateController'](_0x589aec){if(!_0x589aec['isInContent']||!this['_suggestionToController']['has'](_0x589aec))return;const _0x4d8ad7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x562712=this['_suggestionToController']['get'](_0x589aec),_0x3f9106=_0x589aec['getAllAdjacentSuggestions']();_0x562712['view']['descriptionParts']=_0x4d8ad7['descriptionFactory']['getDescriptions'](_0x3f9106);}['destroy'](){for(const _0x324379 of this['_suggestionToController']['keys']())this['_destroyController'](_0x324379);for(const _0x3dcba0 of this['_annotationViews']['values']())_0x3dcba0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2c079f){return'model'in _0x2c079f;}class Fe extends _0xa897c8{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4b76f4){this['editor']['plugins']['get'](d)['adapter']=_0x4b76f4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x526efc){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x526efc);}['getSuggestions']({skipNotAttached:_0x3bd6f2=!0x1,toJSON:_0x3bd27e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3bd6f2,'toJSON':_0x3bd27e});}['getSuggestion'](_0x1444c1){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1444c1);}}const p=['Pagination'];class re extends _0xa897c8{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x469c6a=this['editor'];if(_0x469c6a['config']['define']('trackChangesData.editorCreator',_0x70fe87=>{const _0x3b9427=_0x469c6a['model']['document']['getRootNames']()['reduce']((_0x2cab60,_0x3b4082)=>(_0x2cab60[_0x3b4082]='',_0x2cab60),{});return _0x469c6a['constructor']['create'](_0x3b9427,_0x70fe87);}),'function'!=typeof _0x469c6a['config']['get']('trackChangesData')['editorCreator'])throw new _0x3e0d43('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47614c){return P(this['editor'],!0x0,_0x47614c);}['getDataWithDiscardedSuggestions'](_0x385ffd){return P(this['editor'],!0x1,_0x385ffd);}}class Ge extends _0xa897c8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d6129){function _0x11b5ee(_0x57e80b){return _0x57e80b['map'](_0x39b7a3=>String['fromCharCode'](_0x39b7a3))['join']('');}super(_0x1d6129),this['result']='end',_0x1d6129[_0x11b5ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11b5ee([0x76,0x69,0x65,0x77])][_0x11b5ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11b5ee([0x61,0x75,0x74,0x6f]),_0x1d6129[_0x11b5ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x11b5ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11b5ee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x11b5ee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x11b5ee([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x5bd872){return void 0x0!==_0x5bd872['getRootsAttributes'];}async function P(_0x2a3e2b,_0x87b164,_0x4b0e3a){const _0x3c91d2=_0xfd403e(_0x2a3e2b,p);_0x3c91d2['plugins']['push'](d,Ge),_0x3c91d2['rootsAttributes']=He(_0x2a3e2b)?_0x2a3e2b['getRootsAttributes']():void 0x0;const _0x15c03d=document['createDocumentFragment'](),_0x49ad2e=_0x2a3e2b['config']['get']('trackChangesData')['editorCreator'],_0x1cb79f=await _0x49ad2e(_0x3c91d2,()=>function(_0x32df24){const _0x455786=document['createElement']('div');return _0x32df24['appendChild'](_0x455786),_0x455786;}(_0x15c03d));!function(_0x48eaa9,_0x179873){const _0x1f15aa=_0x48eaa9['model']['document']['getRootNames']()['reduce']((_0x5d5e91,_0x569f2b)=>(_0x5d5e91[_0x569f2b]=_0x48eaa9['data']['get']({'rootName':_0x569f2b}),_0x5d5e91),{}),_0x2aeb08=_0x48eaa9['plugins']['get']('Users')['users']['map'](_0x515518=>({'id':_0x515518['id'],'name':_0x515518['name']})),_0x359cb9=_0x48eaa9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1cb417=_0x48eaa9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x240281=_0x179873['plugins']['get']('Users'),_0x49f980=_0x179873['plugins']['get']('TrackChangesEditing'),_0x3a25a4=_0x179873['plugins']['get']('CommentsRepository');for(const _0x1a7c60 of _0x3a25a4['getCommentThreads']())_0x1a7c60['remove']();for(const _0x3739e5 of _0x2aeb08)_0x240281['getUser'](_0x3739e5['id'])||_0x240281['addUser'](_0x3739e5);_0x240281['me']||_0x240281['useAnonymousUser']();for(const _0x183a16 of _0x1cb417)_0x3a25a4['addCommentThread'](_0x183a16);for(const _0x4ee068 of _0x359cb9)_0x49f980['addSuggestionData'](_0x4ee068);_0x179873['data']['set'](_0x1f15aa);}(_0x2a3e2b,_0x1cb79f),_0x1cb79f['execute'](_0x87b164?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c09e8=He(_0x1cb79f)?_0x1cb79f['getFullData'](_0x4b0e3a):_0x1cb79f['data']['get'](_0x4b0e3a);return await _0x1cb79f['destroy'](),_0x1c09e8;}class Me extends _0x39a612{['options'];constructor(_0x53c3c3,_0x12aa7e){super(_0x53c3c3),this['options']=_0x12aa7e,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'](_0x5c91aa,_0x19c30b){if(!this['element'])return;const _0xaaa842=[];for(const [_0x4b5ed1,_0x2db907]of _0x5c91aa){const _0x148d7a=document['createElement']('div');_0x148d7a['setAttribute']('data-ck-root-name',_0x4b5ed1),_0x148d7a['className']=_0x2db907['classes']+'\x20ck-track-changes-preview__root-container',_0x148d7a['innerHTML']=_0x2db907['content'],_0xaaa842['push'](_0x148d7a);}_0x19c30b(this['element'],_0xaaa842),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x58b809{constructor(_0x381a6c){super(_0x381a6c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x8ec01e=this['editor'],_0xdbe5fb=_0x8ec01e['locale'],_0x5886d8=_0x8ec01e['plugins']['get']('Dialog');let _0x4b1c90;const _0xafdd84=function(_0x51f006){const _0x3aab07={};if('editables'in _0x51f006['ui']['view']){for(const [_0xc08867,_0x519d7e]of Object['entries'](_0x51f006['ui']['view']['editables']))_0x3aab07[_0xc08867]=_0x519d7e['element'];}else _0x3aab07[_0x51f006['model']['document']['getRootNames']()[0x0]]=_0x51f006['ui']['view']['editable']['element'];return _0x3aab07;}(_0x8ec01e),_0x33525f=function(_0x1dcb15){let _0x371f59=0x0;for(const _0x343552 of Object['values'](_0x1dcb15))_0x371f59=Math['max'](_0x371f59,_0x343552['getBoundingClientRect']()['width']);let _0x227c9e=0x0;for(const _0x2b8212 of Object['values'](_0x1dcb15))_0x227c9e+=_0x2b8212['getBoundingClientRect']()['height'];const _0x3b1d1e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5b4b1f=Math['min'](_0x227c9e,_0x3b1d1e);return{'width':_0x371f59,'height':_0x5b4b1f};}(_0xafdd84);_0x5886d8['show']({'id':'finalContentPreview','title':o(_0xdbe5fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xdbe5fb,{'dialogRects':_0x33525f}),'onHide':()=>{_0x4b1c90['detachFromDom']();},'onShow':()=>{_0x8ec01e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x103fee=>{const _0x4fd027=this['_standarizeRootsData'](_0x103fee,_0x8ec01e,_0xafdd84);_0x5886d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fd027,_0x8ec01e['config']['get']('trackChanges.preview.renderFunction'));}),_0x4b1c90=new _0x181b60(_0xdbe5fb,[_0x5886d8['view']]),_0x4b1c90['attachToDom'](),_0x4b1c90['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x8ec01e['once']('destroy',()=>{_0x4b1c90['detachFromDom']();});const _0x3741d8=_0x5886d8['view']['headerView']['class'];_0x5886d8['view']['headerView']['class']=_0x3741d8?_0x3741d8+'\x20ck-reset_all':'ck-reset_all',_0x5886d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5886d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x23b28a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3c6e7c=_0x23b28a['previewMode'],_0x2225ad={};if('$labels'===_0x3c6e7c){for(const _0x43248b of _0x23b28a['getMergeFieldsIds']())_0x2225ad[_0x43248b]=_0x23b28a['getLabel'](_0x43248b)||_0x43248b;}else{const _0x472988='$defaultValues'===_0x3c6e7c?_0x23b28a['getDefaultValues']():_0x23b28a['getDataSetValues'](_0x3c6e7c,!0x0);for(const _0xaf972f of Object['entries'](_0x472988)){const [_0x4bcb06,_0x21853f]=_0xaf972f;_0x2225ad[_0x4bcb06]=null!==_0x21853f?_0x21853f:_0x23b28a['getLabel'](_0x4bcb06)||_0x4bcb06;}}return{'mergeFieldsData':_0x2225ad};}['_standarizeRootsData'](_0x1ef090,_0x122e9e,_0x366f5c){let _0x56ba67;if('string'==typeof _0x1ef090){const _0x21b81a=_0x122e9e['model']['document']['getRootNames']()[0x0];_0x56ba67={[_0x21b81a]:_0x1ef090};}else _0x56ba67=_0x1ef090;const _0x1ac804=this['_fixMediaEmbeds'](_0x56ba67,_0x122e9e),_0x1d4dea=function(_0xba4cd5,_0x2b5a8e){for(const [_0x18f726,_0x538b15]of _0xba4cd5)_0x538b15['classes']=_0x2b5a8e[_0x18f726]['classList']['value']['replace']('ck-focused','');return _0xba4cd5;}(this['_sortRoots'](_0x122e9e)['reduce']((_0xf59507,_0x47e0bb)=>(_0xf59507['push']([_0x47e0bb,{'content':_0x1ac804[_0x47e0bb],'classes':''}]),_0xf59507),[]),_0x366f5c);return _0x1d4dea;}['_fixMediaEmbeds'](_0x5ea7bb,_0x1fb03b){if(!_0x1fb03b['plugins']['has']('MediaEmbedEditing'))return _0x5ea7bb;const _0x5ba980=_0x1fb03b['plugins']['get']('MediaEmbedEditing');for(const [_0x188f0b,_0x393639]of Object['entries'](_0x5ea7bb)){const _0x2011d4=document['createElement']('div');_0x2011d4['innerHTML']=_0x393639,(_0x2011d4['querySelectorAll']('figure.media')['forEach'](_0x10fef7=>{const _0x14c795=_0x10fef7['querySelector']('oembed');if(_0x14c795){const _0xb9e0f7=_0x14c795['getAttribute']('url');if(_0xb9e0f7){const _0x250acf=_0x5ba980['registry']['getMediaViewElement'](new _0x1cd95d(_0x1fb03b['editing']['view']['document']),_0xb9e0f7,{'elementName':'','renderForEditingView':!0x0}),_0x4d5d8b=document['createElement']('div');_0x4d5d8b['classList']['add']('ck-media__wrapper'),_0x250acf['render'](_0x4d5d8b,_0x1fb03b['editing']['view']['domConverter']),_0x14c795['replaceWith'](_0x4d5d8b);}}}),_0x5ea7bb[_0x188f0b]=_0x2011d4['innerHTML']);}return _0x5ea7bb;}['_sortRoots'](_0x52a52e){if(!function(_0x2ef78a){return void 0x0!==_0x2ef78a['getRootsAttributes'];}(_0x52a52e))return _0x52a52e['model']['document']['getRootNames']();const _0x3011e6=[],_0x3f1708=new Map();for(const _0x768f8a of _0x52a52e['model']['document']['getRootNames']()){const _0x5a16f7=_0x52a52e['editing']['view']['getDomRoot'](_0x768f8a)['getClientRects']()['item'](0x0);_0x3011e6['push'](_0x768f8a),_0x3f1708['set'](_0x768f8a,_0x5a16f7);}return _0x3011e6['sort']((_0x35a6d6,_0x48f226)=>{const _0x27b28d=_0x3f1708['get'](_0x35a6d6),_0x48906e=_0x3f1708['get'](_0x48f226);return _0x27b28d['y']-_0x48906e['y']||_0x27b28d['x']-_0x48906e['x'];}),_0x3011e6;}}class $e extends _0xa897c8{static get['requires'](){return[re,_0x1b1881];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f1d74){super(_0x4f1d74),_0x4f1d74['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4f1d74['config']['define']('trackChanges.preview.renderFunction',(_0x397710,_0x32e3b2)=>{for(const _0x20344d of _0x32e3b2)_0x397710['appendChild'](_0x20344d);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x1366e1,Plugin as _0xfd4522,PendingActions as _0x19387b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5d208c,ObservableMixin as _0x4ffc3b,uid as _0x110ca2,priorities as _0x533dca,insertToPriorityArray as _0x32f2d5,toArray as _0xd850df,logWarning as _0x113fed,getEnvKeystrokeText as _0x338685,FocusTracker as _0x2bcccf,KeystrokeHandler as _0x59df8b,Collection as _0x49a3a5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a5080,IconCancel as _0x503c9a,IconTrackChanges as _0x549e4c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x986404,View as _0x237d07,ViewCollection as _0x1dcd16,FocusCycler as _0x4bc59e,UIModel as _0x51ccc6,createDropdown as _0x1a7bc1,SplitButtonView as _0x2b4076,addListToDropdown as _0x57c9fb,MenuBarMenuView as _0x2025e3,MenuBarMenuListView as _0x39e983,ListSeparatorView as _0x20cbf3,MenuBarMenuListItemView as _0x4d7d8a,MenuBarMenuListItemButtonView as _0x351920,BodyCollection as _0x3f81a3,Dialog as _0x5914c5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x41af33,hashObject as _0x51422e,surroundingMarkersDetector as _0x4126be,FOCUS_ANNOTATION_KEYSTROKE as _0x37cb22,AriaDescriptionView as _0x496d48,setupThreadKeyboardNavigation as _0x2e09af,trimHtml as _0x2d6735,UserView as _0x4a5b3a,LateFocusButtonView as _0x5b4b3e,getDateTimeFormatter as _0x204812,getAllMarkersDomElementsSorted as _0x49b990,sanitizeEditorConfig as _0x518498}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5deae5,ModelLiveRange as _0x217d71,ModelLivePosition as _0xa59888,ViewDowncastWriter as _0x21e70c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x352865,toWidget as _0x20ea6f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xd3c28b,set as _0x5b6213,isEqual as _0x3f9778,unset as _0x21df6e,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2796f0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x501db2}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3dd587}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1366e1{['_enabledCommands'];constructor(_0x452759,_0x490a22){super(_0x452759),this['_enabledCommands']=_0x490a22,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 _0x5a9d76 of this['editor']['commands']['commands']())_0x5a9d76['affectsData']&&!this['_enabledCommands']['has'](_0x5a9d76)&&_0x5a9d76['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x158714 of this['editor']['commands']['commands']())_0x158714['affectsData']&&!this['_enabledCommands']['has'](_0x158714)&&_0x158714['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1366e1{['_suggestions'];constructor(_0x7ed028,_0x242b4f){super(_0x7ed028),this['_suggestions']=_0x242b4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x56d2be){const _0xe0dc02=this['_suggestions']['get'](_0x56d2be);if(!_0xe0dc02)throw new _0x5d208c('track-changes-accept-suggestion-not-found',this);const _0x1db600=_0xe0dc02['getRanges']();this['editor']['model']['canEditAt'](_0x1db600)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe0dc02);}}class $ extends _0x1366e1{['_suggestions'];constructor(_0x2e3a9c,_0x34580e){super(_0x2e3a9c),this['_suggestions']=_0x34580e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x14f416){const _0x2d127e=this['_suggestions']['get'](_0x14f416);if(!_0x2d127e)throw new _0x5d208c('track-changes-discard-suggestion-not-found',this);const _0x5016e1=_0x2d127e['getRanges']();this['editor']['model']['canEditAt'](_0x5016e1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d127e);}}function ls(_0x44d55b,_0x4ad05e){let _0x409195='';return _0x409195+=_0x44d55b['split']('*')['map']((_0x541a91,_0x1c1d25)=>_0x1c1d25%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x541a91)+'</span>':Zt(_0x541a91))['join'](''),_0x4ad05e&&(_0x409195+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4ad05e['value']+'\x22\x20title=\x22'+_0x4ad05e['title']+'\x22></span>'),_0x409195;}function Zt(_0x4cf6a){const _0xacc1be=document['createElement']('span');return _0xacc1be['innerText']=_0x4cf6a,_0xacc1be['innerHTML'];}function ts(_0x401153){return _0x401153['sort']((_0x5eb179,_0x136c1f)=>'attribute'===_0x5eb179['type']&&'attribute'!==_0x136c1f['type']?-0x1:'attribute'!==_0x5eb179['type']&&'attribute'===_0x136c1f['type']?0x1:'deletion'==_0x5eb179['type']&&'deletion'!=_0x136c1f['type']?-0x1:'deletion'!=_0x5eb179['type']&&'deletion'==_0x136c1f['type']?0x1:0x0);}function to(_0x29267b,_0x114f9d){let _0x512788,_0x2555d9=0x0;const _0x537105=[],_0x6c8f1f=_0x114f9d['schema'];for(;_0x2555d9<_0x29267b['length'];){const _0xa3cb21=_0x29267b[_0x2555d9],_0xd4adf1=_0x29267b[_0x2555d9+0x1];_0x512788||(_0x512788=_0x114f9d['createPositionBefore'](_0xa3cb21)),tn(_0x114f9d,_0xa3cb21,_0xd4adf1)||(_0x537105['push'](_0x114f9d['createRange'](_0x512788,_0x6c8f1f['isObject'](_0xa3cb21)?_0x114f9d['createPositionAfter'](_0xa3cb21):_0x114f9d['createPositionAt'](_0xa3cb21,'end'))),_0x512788=null),_0x2555d9++;}return _0x537105;}function tn(_0x4aaf83,_0x271613,_0x413a5a){if(!_0x413a5a)return!0x1;const _0x3bff91=_0x4aaf83['createPositionAfter'](_0x271613),_0x26f562=_0x4aaf83['createPositionBefore'](_0x413a5a);return _0x3bff91['isTouching'](_0x26f562);}function rs(_0x1be519,_0x22ffd2,_0x473402){for(;_0x473402['length'];){const _0x3feb5a=_0x473402['splice'](0x0,0x64);_0x1be519['change'](()=>{for(const _0xf2155 of _0x3feb5a)_0xf2155['isInContent']&&_0x22ffd2['execute'](_0xf2155['id']);});}}class M extends _0x1366e1{['_command'];['_suggestions'];constructor(_0x158280,_0x58b475,_0x34ff2d){super(_0x158280),this['_command']=_0x58b475,this['_suggestions']=_0x34ff2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3cb978=Array['from'](this['_suggestions']['values']())['some'](_0x3e239d=>_0x3e239d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3cb978;}['execute'](){const _0x4af59e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x358389 of _0x4af59e){const _0x5ca2d9=_0x358389['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ca2d9))return;}rs(this['editor']['model'],this['_command'],_0x4af59e);}}class B extends _0x1366e1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x557388,_0x206851,_0x359051){super(_0x557388),this['_command']=_0x206851,this['_suggestions']=_0x359051,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfcbfe4=this['editor']['model']['document']['selection'],_0x4c7d9d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x43e013,_0x457ade){const _0x684cfd=Array['from'](_0x43e013['getRanges']()),_0x17a7e2=new Set();for(const _0x160c11 of _0x457ade)if(_0x160c11['isInContent']){for(const _0x3e0d27 of _0x684cfd)for(const _0x53cea7 of _0x160c11['getRanges']())(_0x3e0d27['isIntersecting'](_0x53cea7)||_0x43e013['isCollapsed']&&!_0x160c11['isMultiRange']&&_0x160c11['next']&&_0x53cea7['end']['isTouching'](_0x3e0d27['start']))&&_0x17a7e2['add'](_0x160c11);}return _0x17a7e2;}(_0xfcbfe4,_0x4c7d9d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3e929d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1d6486 of _0x3e929d){const _0x2ce09a=_0x1d6486['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ce09a))return;}rs(this['editor']['model'],this['_command'],_0x3e929d);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ffc3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a0bb6,_0x85b230){super(),this['id']=_0x85b230['id'],this['type']=_0x85b230['type'],this['subType']=_0x85b230['subType']||null,this['author']=_0x85b230['author'],this['creator']=_0x85b230['creator']||_0x85b230['author'],this['isExternal']=Boolean(_0x85b230['attributes']&&_0x85b230['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x85b230['originalSuggestionId']||null,this['_model']=_0x3a0bb6,this['_onAccept']=_0x85b230['onAccept'],this['_onDiscard']=_0x85b230['onDiscard'],this['_onAttributesChange']=_0x85b230['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85b230['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 _0x18dea5=this;for(;_0x18dea5['previous'];)_0x18dea5=_0x18dea5['previous'];return _0x18dea5;}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'](_0x14da3e){this['_markerNames']['add'](_0x14da3e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2ae201=>this['_model']['markers']['get'](_0x2ae201))['filter'](_0x29a7f9=>_0x29a7f9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb379c=>{for(const _0x36533d of this['getMarkers']())_0xb379c['removeMarker'](_0x36533d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2cbbe3){this['_model']['change'](_0x4c0411=>{_0x4c0411['removeMarker'](_0x2cbbe3);}),this['_markerNames']['delete'](_0x2cbbe3);}['addRange'](_0x3e887a){const _0x1f0d08='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1f0d08),this['_model']['change'](_0x9b645a=>{_0x9b645a['addMarker'](_0x1f0d08,{'range':_0x3e887a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x519250){for(const _0x526259 of this['getRanges']())if(_0x526259['isIntersecting'](_0x519250))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e8bed=>_0x4e8bed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x317b12,_0x5318d5)=>[..._0x317b12,..._0x5318d5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e3669=this['getRanges']();if(0x1!=_0x2e3669['length'])return null;const _0x10038b=_0x2e3669[0x0],_0x286043=_0x10038b['start']['nodeAfter'],_0x5b8c6b=_0x10038b['end']['nodeBefore'];return _0x286043 instanceof _0x5deae5?_0x286043!=_0x5b8c6b?null:_0x286043: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 _0x257a37=[];let _0x44cf80=this['head'];for(;_0x44cf80;)_0x257a37['push'](_0x44cf80),_0x44cf80=_0x44cf80['next'];return _0x257a37;}['setAttribute'](_0x1cd08f,_0x362a97){const _0x1ed974=_0xd3c28b(this['attributes']);_0x5b6213(_0x1ed974,_0x1cd08f,_0x362a97),_0x3f9778(_0x1ed974,this['attributes'])||(this['attributes']=_0x1ed974,this['_onAttributesChange'](_0x1ed974));}['removeAttribute'](_0x35fb1b){const _0x21477b=_0xd3c28b(this['attributes']);_0x21df6e(_0x21477b,_0x35fb1b),_0x3f9778(_0x21477b,this['attributes'])||(this['attributes']=_0x21477b,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 _0x110ca2()['substr'](0x1,0x5);}}function o(_0x4cafdf,_0x1e766c,_0x5f171b){const _0x5417a0=_0x4cafdf['t'],t=_0x4cafdf['t'];switch(_0x1e766c){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',_0x5f171b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5f171b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5f171b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5f171b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5f171b);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',_0x5f171b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5f171b);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',_0x5f171b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5f171b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5f171b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5f171b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5f171b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5f171b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5f171b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5f171b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5f171b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5f171b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5f171b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5f171b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5f171b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5f171b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5f171b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5f171b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5f171b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5f171b);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'},_0x5f171b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5f171b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5f171b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5f171b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5f171b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5f171b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5f171b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5f171b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5f171b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5f171b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5f171b);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'},_0x5f171b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5f171b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5f171b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5f171b);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'},_0x5f171b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5f171b);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 _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5f171b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5417a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5f171b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);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'},_0x5f171b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1e766c;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x59dede,_0x4dbdb5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x59dede,this['_locale']=_0x4dbdb5;}['getDescriptions'](_0x1c65e1){const _0x1cf7c3=[],_0x8fc0aa=new Set(),_0x52b958=new Set();for(let _0x1efd5a=0x0;_0x1efd5a<_0x1c65e1['length'];_0x1efd5a++){const _0x590a51=_0x1c65e1[_0x1efd5a];if(!_0x590a51['isInContent'])continue;const _0x493be8=this['_handleCustomCallbackDescription'](_0x590a51);if(_0x493be8){if(null!=_0x590a51['subType']){if(_0x8fc0aa['has'](_0x590a51['subType']))continue;_0x8fc0aa['add'](_0x590a51['subType']);}_0x1cf7c3['push'](_0x493be8);}else{if('attribute'==_0x590a51['type']){const _0x41d1f3=_0x590a51['data']['key'];if(_0x52b958['has'](_0x41d1f3))continue;_0x52b958['add'](_0x590a51['data']['key']),_0x41d1f3==m?this['_handleRenameSuggestionDescription'](_0x1cf7c3,_0x590a51):this['_handleAttributeSuggestionDescription'](_0x1cf7c3,_0x590a51);continue;}'insertion'!=_0x590a51['type']&&'deletion'!=_0x590a51['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1cf7c3,_0x590a51,_0x1c65e1[_0x1efd5a+0x1]);}}return this['_resolveDescriptionItems'](_0x1cf7c3);}['registerDescriptionCallback'](_0x5e352f){this['_customCallbacks']['push'](_0x5e352f);}['registerElementLabel'](_0x18c800,_0x1da527,_0x4787e4=_0x533dca['normal']){'function'==typeof _0x18c800?_0x32f2d5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18c800,'label':_0x1da527,'priority':_0x4787e4}):this['_itemLabels']['set'](_0x18c800,_0x1da527);}['registerAttributeLabel'](_0x134ae1,_0x226ade){this['_attributeLabels']['set'](_0x134ae1,_0x226ade);}['getItemLabel'](_0x5d9650,_0x468870=0x1){let _0x3268bd;for(const _0x3e1c6f of this['_itemLabelsCallbacks'])if(_0x3e1c6f['matchingCallback'](_0x5d9650)){_0x3268bd=_0x3e1c6f['label'];break;}return _0x3268bd||(_0x3268bd=this['_itemLabels']['get'](_0x5d9650['name'])),_0x3268bd?_0x3268bd(_0x468870):0x1!==_0x468870?_0x468870+'\x20'+_0x5d9650['name']+'s':''+_0x5d9650['name'];}['_addDescriptionItems'](_0xc27aaa,_0x7066a4){const _0x47c0f2=_0x7066a4['getFirstRange']()['getWalker'](),_0x45f05e='insertion'==_0x7066a4['type']?'add':'remove';for(const _0x48b203 of _0x47c0f2){const _0x348cae=_0x48b203['item'],_0x55528d=_0xc27aaa[_0xc27aaa['length']-0x1];if(_0x348cae['is']('$textProxy'))_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),_0x55528d&&'text'==_0x55528d['type']?_0x55528d[_0x45f05e]+=_0x348cae['data']:_0xc27aaa['push']({'type':'text','add':'add'==_0x45f05e?_0x348cae['data']:'','remove':'remove'==_0x45f05e?_0x348cae['data']:''});else{if(this['_schema']['isObject'](_0x348cae)){const _0x1b10d1=_0x348cae;if(_0x55528d&&_0x55528d['type']['indexOf']('Container')>-0x1&&_0xc27aaa['pop'](),'elementEnd'==_0x48b203['type'])continue;_0x55528d&&_0x55528d['type']==_0x45f05e+'Object'&&_0x55528d['element']['name']==_0x1b10d1['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'Object','element':_0x1b10d1,'quantity':0x1}),_0x47c0f2['skip'](_0x1c4fbe=>!('elementEnd'==_0x1c4fbe['type']&&_0x1c4fbe['item']==_0x348cae));}else{if(this['_schema']['checkChild'](_0x348cae,'$text')||_0x348cae['is']('element','softBreak')){const _0x5d4dc9=_0x348cae;if('add'==_0x45f05e&&'elementStart'==_0x48b203['type']||'remove'==_0x45f05e&&'elementEnd'==_0x48b203['type'])continue;if(_0x55528d&&-0x1==_0x55528d['type']['indexOf']('Container')){'text'==_0x55528d['type']&&(_0x55528d[_0x45f05e]+='\x0a');continue;}let _0x23414a;if(_0x23414a='add'==_0x45f05e?_0x5d4dc9['nextSibling']&&!this['_schema']['isObject'](_0x5d4dc9['nextSibling'])?_0x5d4dc9['nextSibling']:null:_0x5d4dc9['previousSibling']&&!this['_schema']['isObject'](_0x5d4dc9['previousSibling'])?_0x5d4dc9['previousSibling']:null,_0x5d4dc9['isEmpty']||_0x23414a&&_0x23414a['isEmpty']){const _0x330a05=_0x23414a&&_0x23414a['isEmpty']?_0x23414a:_0x5d4dc9;_0x55528d&&_0x55528d['type']==_0x45f05e+'EmptyContainer'&&_0x55528d['element']['name']==_0x330a05['name']?_0x55528d['quantity']++:_0xc27aaa['push']({'type':_0x45f05e+'EmptyContainer','element':_0x330a05,'quantity':0x1});}else _0xc27aaa['push']({'type':_0x45f05e+'Container','element':_0x5d4dc9});}}}}}['_resolveDescriptionItems'](_0xf60b05){const _0x5526d4=this['_locale'],_0x2906a6=[],_0x32590f=[],_0x525277=[];for(const _0x26fae1 of _0xf60b05)switch(_0x26fae1['type']){case'text':if(_0x26fae1['add']=_0x26fae1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x26fae1['remove']=_0x26fae1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x26fae1['add']&&''!=_0x26fae1['remove']){_0x2906a6['push']({'type':'replace','content':o(_0x5526d4,'REPLACE_TEXT',['\x22'+_0x26fae1['remove']+'\x22','\x22'+_0x26fae1['add']+'\x22'])});continue;}if(null!=_0x26fae1['add']['match'](/^ +$/)){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['add']['length']))});continue;}if(null!=_0x26fae1['remove']['match'](/^ +$/)){_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',o(_0x5526d4,'ELEMENT_SPACE',_0x26fae1['remove']['length']))});continue;}if(''!=_0x26fae1['add']){_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0','\x22'+_0x26fae1['add']+'\x22')});continue;}_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0','\x22'+_0x26fae1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Insert:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Remove:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addContainer':_0x2906a6['push']({'type':'insertion','content':o(_0x5526d4,'*Split:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'removeContainer':_0x2906a6['push']({'type':'deletion','content':o(_0x5526d4,'*Merge:*\x20%0',this['getItemLabel'](_0x26fae1['element'],_0x26fae1['quantity']))});continue;case'addFormat':_0x32590f['push'](_0x26fae1['key']);continue;case'removeFormat':_0x525277['push'](_0x26fae1['key']);continue;default:_0x2906a6['push'](_0x26fae1);}if(_0x32590f['length']){const _0x3b0692=_0x32590f['map'](_0x45db00=>this['_attributeLabels']['has'](_0x45db00)?this['_attributeLabels']['get'](_0x45db00):_0x45db00)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3b0692)});}if(_0x525277['length']){const _0xf7d9d4=_0x525277['map'](_0xf5fe2=>this['_attributeLabels']['has'](_0xf5fe2)?this['_attributeLabels']['get'](_0xf5fe2):_0xf5fe2)['join'](',\x20');_0x2906a6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf7d9d4)});}return _0x2906a6;}['_handleCustomCallbackDescription'](_0x197929){for(const _0x4da164 of this['_customCallbacks']){const _0x4c3b31=_0x4da164(_0x197929);if(_0x4c3b31&&'type'in _0x4c3b31)return _0x4c3b31;}}['_handleAttributeSuggestionDescription'](_0x1b52e7,_0x5b1b52){const _0xa4927b=_0x5b1b52['data'],_0x271cdd=void 0x0===_0xa4927b['newValue']?'removeFormat':'addFormat';_0x1b52e7['push']({'type':_0x271cdd,'key':_0xa4927b['key']});}['_handleRenameSuggestionDescription'](_0x44be82,_0x937098){_0x44be82['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x937098['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x395743,_0x27c675,_0x4eb815){if(this['_addDescriptionItems'](_0x395743,_0x27c675),_0x4eb815&&_0x4eb815['getFirstRange']()&&!_0x27c675['getFirstRange']()['end']['isEqual'](_0x4eb815['getFirstRange']()['start'])){const _0xd176a=_0x395743[_0x395743['length']-0x1],_0x101aa0='insertion'==_0x27c675['type']?'add':'remove';_0xd176a&&'text'==_0xd176a['type']&&(_0xd176a[_0x101aa0]+='\x0a');}}}class O extends _0xfd4522{['afterInit'](){const _0x392133=this['editor'],_0x44c088=_0x392133['plugins']['get']('TrackChangesEditing');_0x392133['commands']['get']('showAIAssistant')&&_0x44c088['enableCommand']('showAIAssistant');}}class E extends _0xfd4522{['afterInit'](){const _0x865105=this['editor'],_0x9190df=_0x865105['locale'];if(!_0x865105['plugins']['has']('AlignmentEditing'))return;const _0x59a02e=_0x865105['plugins']['get']('TrackChangesEditing');_0x59a02e['enableDefaultAttributesIntegration']('alignment'),_0x59a02e['registerBlockAttribute']('alignment'),_0x59a02e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x9190df,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4434e7=this['editor'],_0x40dfe9=_0x4434e7['locale'];_0x4434e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7ffa1=>{if('formatBlock'!=_0xf7ffa1['type'])return;const {data:_0x4aaff0}=_0xf7ffa1;if(_0x4aaff0&&'alignment'==_0x4aaff0['commandName']){const _0x2a5739=_0x4aaff0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x40dfe9,'*Format:*\x20%0',function(_0x21c5f7){switch(_0x21c5f7){case'left':return o(_0x40dfe9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x40dfe9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x40dfe9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x40dfe9,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5739))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xfd4522{['afterInit'](){const _0x51b86d=this['editor'],_0x1a9424=_0x51b86d['plugins']['get']('TrackChangesEditing'),_0x2ae23c=_0x51b86d['locale'];for(const _0x55e9ce of ti){if(!_0x51b86d['plugins']['has'](_0x55e9ce))continue;const _0x303d06=_0x55e9ce['slice'](0x0,-0x7)['toLowerCase'](),_0x22ab5e='FORMAT_'+_0x303d06['toUpperCase']();_0x1a9424['enableDefaultAttributesIntegration'](_0x303d06),_0x1a9424['registerInlineAttribute'](_0x303d06),_0x1a9424['descriptionFactory']['registerAttributeLabel'](_0x303d06,o(_0x2ae23c,_0x22ab5e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377260=this['editor'],_0x58b275=_0x377260['locale'],_0x1b2598=_0x377260['plugins']['get']('TrackChangesEditing');function _0x1338f1(_0x2caa63,_0x5310bc){_0x1b2598['descriptionFactory']['registerDescriptionCallback'](_0x11ee69=>{if('formatInline'!=_0x11ee69['type'])return;const {data:_0x5acf83}=_0x11ee69;return _0x5acf83&&_0x5acf83['commandName']===_0x2caa63?_0x5acf83['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b275,'*Format:*\x20%0',_0x5310bc)}:{'type':'format','content':o(_0x58b275,'*Remove\x20format:*\x20%0',_0x5310bc)}:void 0x0;});}_0x1338f1('bold',o(_0x58b275,'FORMAT_BOLD')),_0x1338f1('italic',o(_0x58b275,'FORMAT_ITALIC')),_0x1338f1('underline',o(_0x58b275,'FORMAT_UNDERLINE')),_0x1338f1('code',o(_0x58b275,'FORMAT_CODE')),_0x1338f1('strikethrough',o(_0x58b275,'FORMAT_STRIKETHROUGH')),_0x1338f1('subscript',o(_0x58b275,'FORMAT_SUBSCRIPT')),_0x1338f1('superscript',o(_0x58b275,'FORMAT_SUPERSCRIPT'));}}class U extends _0xfd4522{['afterInit'](){const _0x50c5cb=this['editor'],_0x50c5a2=_0x50c5cb['locale'];if(!_0x50c5cb['plugins']['has']('BlockQuoteEditing'))return;const _0x5dfa87=_0x50c5cb['plugins']['get']('TrackChangesEditing'),_0x23bd79=this['editor']['commands']['get']('blockQuote');_0x5dfa87['enableCommand']('blockQuote',(_0x10a94f,_0x49a74f={})=>{const _0x21f05e=this['editor']['model']['document']['selection'],_0x62d13e=_0x49a74f&&void 0x0!==_0x49a74f['forceValue']?_0x49a74f['forceValue']:!_0x23bd79['value'];let _0x534301=[];if(_0x62d13e){const _0x1f6c4d=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x311834=>oo(_0x311834)||function(_0x24b0d2,_0x22ddbf){const _0x536532=_0x22ddbf['checkChild'](_0x24b0d2['parent'],'blockQuote'),_0x2eef7e=_0x22ddbf['checkChild'](['$root','blockQuote'],_0x24b0d2);return _0x536532&&_0x2eef7e;}(_0x311834,this['editor']['model']['schema']));_0x534301=to(_0x1f6c4d,_0x50c5cb['model']);}else{const _0x5000d0=Array['from'](_0x21f05e['getSelectedBlocks']())['filter'](_0x23cd2a=>oo(_0x23cd2a));_0x534301=to(_0x5000d0,_0x50c5cb['model']);}_0x50c5cb['model']['change'](()=>{for(const _0x451ff1 of _0x534301)_0x5dfa87['markBlockFormat'](_0x451ff1,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x62d13e}]});});}),_0x5dfa87['descriptionFactory']['registerDescriptionCallback'](_0xd4e8ae=>{const {data:_0x402d3c}=_0xd4e8ae;if(_0x402d3c&&'blockQuote'==_0x402d3c['commandName']){const _0x54b2a0=o(_0x50c5a2,'ELEMENT_BLOCK_QUOTE');return _0x402d3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50c5a2,'*Set\x20format:*\x20%0',_0x54b2a0)}:{'type':'format','content':o(_0x50c5a2,'*Remove\x20format:*\x20%0',_0x54b2a0)};}});}}function oo(_0x4c31f7){return'blockQuote'==_0x4c31f7['parent']['name'];}class V extends _0xfd4522{['afterInit'](){const _0x3c8d2f=this['editor'],_0x524f1b=_0x3c8d2f['locale'],_0x1cf6ee=_0x3c8d2f['plugins']['get']('TrackChangesEditing');_0x3c8d2f['plugins']['has']('BookmarkEditing')&&(_0x1cf6ee['enableCommand']('insertBookmark'),_0x1cf6ee['enableDefaultAttributesIntegration']('updateBookmark'),_0x1cf6ee['registerBlockAttribute']('bookmarkId'),_0x1cf6ee['descriptionFactory']['registerDescriptionCallback'](_0x40c17d=>{if('insertion'!=_0x40c17d['type']&&'deletion'!=_0x40c17d['type']&&'attribute'!=_0x40c17d['type'])return;const _0x3e561b=_0x40c17d['getContainedElement']();if(null==_0x3e561b)return;if(!_0x3e561b['is']('element','bookmark'))return;const _0x3361ec=_0x3e561b['getAttribute']('bookmarkId');if('insertion'==_0x40c17d['type'])return{'type':'insertion','content':o(_0x524f1b,'*Insert:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40c17d['type'])return{'type':'deletion','content':o(_0x524f1b,'*Remove:*\x20%0','\x22'+_0x3361ec+'\x22\x20'+o(_0x524f1b,'ELEMENT_BOOKMARK'))};const {data:_0x2d3d14}=_0x40c17d;if(!_0x2d3d14||'bookmarkId'!=_0x2d3d14['key'])return;return{'type':'format','content':o(_0x524f1b,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d3d14['newValue']+'\x22')};}));}}class F extends _0xfd4522{['afterInit'](){const _0xa85e41=this['editor'];_0xa85e41['plugins']['has']('CaseChange')&&(_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa85e41['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xfd4522{['afterInit'](){const _0x2237ea=this['editor'];_0x2237ea['commands']['get']('ckbox')&&_0x2237ea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xfd4522{['afterInit'](){const _0x12ee37=this['editor'];if(!_0x12ee37['plugins']['has']('CodeBlock'))return;const _0x1a5676=_0x12ee37['plugins']['get']('TrackChangesEditing'),_0x3cd68c=_0x12ee37['locale'],_0x34f742=_0x12ee37['config']['get']('codeBlock')['languages'],_0x5b467b=_0x12ee37['commands']['get']('codeBlock');_0x1a5676['enableCommand']('indentCodeBlock'),_0x1a5676['enableCommand']('outdentCodeBlock'),_0x1a5676['enableCommand']('codeBlock',(_0x123719,_0x313566={})=>{const _0x40ac68=_0x12ee37['model'],_0x4a0147=_0x12ee37['model']['document']['selection'],_0x2c1cb9=_0x313566&&void 0x0!==_0x313566['forceValue']?_0x313566['forceValue']:!_0x5b467b['value'];let _0x3a53ee;_0x313566['language']||(_0x313566['language']=_0x34f742[0x0]['language']),_0x3a53ee=_0x2c1cb9?Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x4da71f=>co(_0x4da71f)||function(_0x1eaf13,_0x321ee0){if(_0x1eaf13['is']('rootElement')||_0x321ee0['isLimit'](_0x1eaf13))return!0x1;return _0x321ee0['checkChild'](_0x1eaf13['parent'],'codeBlock');}(_0x4da71f,_0x40ac68['schema'])):Array['from'](_0x4a0147['getSelectedBlocks']())['filter'](_0x55e18c=>co(_0x55e18c));const _0x45eb78=to(_0x3a53ee,_0x40ac68);_0x40ac68['change'](()=>{for(const _0x38fb02 of _0x45eb78)_0x1a5676['markBlockFormat'](_0x38fb02,{'commandName':'codeBlock','commandParams':[{..._0x313566,'forceValue':_0x2c1cb9}],'formatGroupId':'blockName'});});}),(_0x1a5676['descriptionFactory']['registerElementLabel']('codeBlock',_0x9847b2=>o(_0x3cd68c,'ELEMENT_CODE_BLOCK',_0x9847b2)),_0x1a5676['descriptionFactory']['registerDescriptionCallback'](_0xe12fb4=>{if('formatBlock'!=_0xe12fb4['type'])return;const _0x22a874=_0x3cd68c['t'],{data:_0x14e7bd}=_0xe12fb4;if(!_0x14e7bd||'codeBlock'!=_0x14e7bd['commandName'])return;const _0x2bc9e0=_0x14e7bd['commandParams'][0x0]['language'],_0x45c21b=_0x22a874(_0x34f742['find'](_0x2462b1=>_0x2462b1['language']===_0x2bc9e0)['label'])['toLowerCase']();return _0x14e7bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3cd68c,'*Set\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45c21b+')')}:{'type':'format','content':o(_0x3cd68c,'*Remove\x20format:*\x20%0',o(_0x3cd68c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1d74cb){return'codeBlock'==_0x1d74cb['name'];}class J extends _0xfd4522{['afterInit'](){const _0x5120d3=this['editor'];if(!_0x5120d3['plugins']['has']('CommentsEditing'))return;_0x5120d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3efc77,_0x1f5050,_0x22e153){const _0x54d935=[];for(const _0x2665b5 of _0x1f5050['getItems']())_0x2665b5['hasAttribute'](_0x3efc77)&&_0x54d935['push'](_0x22e153['createRangeOn'](_0x2665b5));return _0x54d935;}function De(_0xa7c930,_0x613dda,{showActiveMarker:_0x14b20a=!0x0}={}){const _0xed5c81=_0xa7c930['plugins']['get']('TrackChangesEditing');return(_0x7eabfe,_0x5bd0bc,_0x169f71)=>{if(!_0x169f71['consumable']['test'](_0x5bd0bc['markerRange'],_0x7eabfe['name']))return;const _0x1e5901=_0x5bd0bc['markerRange']['getWalker'](),_0x10825e=_0x5bd0bc['markerRange']['start'],_0x711ef0=_0xa7c930['model']['schema'];let _0xb177e3=null,_0x30b21d=null,_0xbe84dd=!0x1,_0x500414=!0x1;for(const _0x57a4d4 of _0x1e5901){const _0xf66ccc=_0x57a4d4['item'];_0xbe84dd=_0xbe84dd||_0x711ef0['isContent'](_0xf66ccc);const _0x59119c=_0x169f71['mapper']['toViewElement'](_0xf66ccc);if(_0x59119c&&_0x59119c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a4d4['type']&&(_0x711ef0['isBlock'](_0xf66ccc)&&!_0x711ef0['isLimit'](_0xf66ccc)&&(_0xf66ccc['nextSibling']||_0x10825e['isAtEnd']?_0xb177e3&&_0xb177e3['parent']==_0xf66ccc||(_0xb177e3=_0xf66ccc,_0x47f2f7(_0x57a4d4['previousPosition']),_0x500414=!0x0):_0x30b21d=_0x30b21d||_0x57a4d4['previousPosition']));}function _0x47f2f7(_0x3754c9){const {id:_0x34bac5,authorId:_0x5f4c29}=_0xed5c81['_splitMarkerName'](_0x5bd0bc['markerName']),_0x3dded1=_0x169f71['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x613dda,'data-suggestion':_0x34bac5,'data-author-id':_0x5f4c29}),_0x512e9c=_0x169f71['mapper']['toViewPosition'](_0x3754c9);_0x14b20a&&_0xed5c81['activeMarkers']['includes'](_0x5bd0bc['markerName'])&&_0x169f71['writer']['addClass']('ck-suggestion-marker--active',_0x3dded1),_0x169f71['writer']['insert'](_0x512e9c,_0x3dded1),_0x169f71['mapper']['bindElementToMarker'](_0x3dded1,_0x5bd0bc['markerName']);}_0xbe84dd||_0x500414||!_0x30b21d||_0x47f2f7(_0x30b21d);};}class K extends _0xfd4522{static get['requires'](){return[_0x2796f0];}['init'](){const _0x3159a4=this['editor'],_0x4b6177=_0x3159a4['plugins']['get']('TrackChangesEditing');_0x4b6177['enableCommand']('delete');const _0xb368f8=_0x3159a4['commands']['get']('deleteForward');_0x4b6177['enableCommand']('deleteForward',(_0x1746a7,_0x3122ae={})=>{const _0x1dd7d1=_0x3159a4['model']['createSelection'](_0x3159a4['model']['document']['selection']);_0x1dd7d1['isCollapsed']&&_0x3159a4['model']['modifySelection'](_0x1dd7d1,{'direction':'forward','unit':_0x3122ae['unit']});const _0x2182fc=_0x1dd7d1['getFirstRange'](),_0x415760=_0x217d71['fromRange'](_0x2182fc);let _0x57fb39;_0x1746a7(_0x3122ae),_0x57fb39='$graveyard'==_0x415760['root']['rootName']?_0x3159a4['model']['createRange'](_0x2182fc['start']):_0x3159a4['model']['createRange'](_0x415760['start'],_0x415760['end']),_0x415760['detach'](),_0x3159a4['model']['enqueueChange'](_0xb368f8['buffer']['batch'],_0x1ab30a=>{_0xb368f8['buffer']['lock'](),_0x1ab30a['setSelection'](_0x1ab30a['createRange'](_0x57fb39['end'])),_0xb368f8['buffer']['unlock']();});}),_0x3159a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3159a4,'merge'),{'priority':'high'}),_0x3159a4['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x8ee296,_0x23b2fd,_0x237227)=>{_0x237227['options']['showSuggestionHighlights']&&De(_0x3159a4,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x8ee296,_0x23b2fd,_0x237227);},{'priority':'high'}),_0x3159a4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x391378,_0x4d5b8e,_0x3c2b86)=>{const _0x1e6c33=_0x3c2b86['mapper']['markerNameToElements'](_0x4d5b8e['markerName']);if(_0x1e6c33){for(const _0x217b0c of _0x1e6c33)_0x217b0c['is']('uiElement')&&(_0x3c2b86['mapper']['unbindElementFromMarkerName'](_0x217b0c,_0x4d5b8e['markerName']),_0x3c2b86['writer']['remove'](_0x217b0c));}},{'priority':'high'});}}class H extends _0xfd4522{['afterInit'](){const _0x10ee9f=this['editor'];if(!_0x10ee9f['plugins']['has']('ListEditing'))return;const _0xc291de=_0x10ee9f['locale'],_0xfd954a=_0x10ee9f['plugins']['get']('TrackChangesEditing'),_0x4962f8=_0x10ee9f['plugins']['has']('TodoListEditing'),_0x2fc2a3=!!_0x10ee9f['config']['get']('list.multiBlock');function _0x44831b(_0x44ad39){return{'type':'format','content':''+o(_0xc291de,'*Set\x20format:*\x20%0',_0x44ad39)};}function _0x9a4ff8(_0x11cda9){return{'type':'format','content':''+o(_0xc291de,'*Remove\x20format:*\x20%0',_0x11cda9)};}_0xfd954a['enableDefaultAttributesIntegration']('numberedList'),_0xfd954a['enableDefaultAttributesIntegration']('bulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('customNumberedList'),_0xfd954a['enableDefaultAttributesIntegration']('customBulletedList'),_0xfd954a['enableDefaultAttributesIntegration']('indentList'),_0xfd954a['enableDefaultAttributesIntegration']('outdentList'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xfd954a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xfd954a['registerBlockAttribute']('listItemId'),_0xfd954a['registerBlockAttribute']('listType'),_0xfd954a['registerBlockAttribute']('listIndent'),_0x2fc2a3&&(_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xfd954a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4962f8&&(_0xfd954a['enableDefaultAttributesIntegration']('todoList'),_0xfd954a['enableDefaultAttributesIntegration']('checkTodoList'),_0xfd954a['registerBlockAttribute']('todoListChecked'),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0xc4f3ce=>{const {data:_0x47cfbc}=_0xc4f3ce;if(_0x47cfbc&&'todoListChecked'==_0x47cfbc['key'])return{'type':'format','content':_0x47cfbc['newValue']?o(_0xc291de,'*Check\x20item*'):o(_0xc291de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36f5e7=>{if(_0x36f5e7['batch']['isUndo'])return!0x1;let _0x178035=!0x1;const _0x14c3d3=_0xfd954a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e9344=>'todoListChecked'===_0xfd954a['_getAttributeKey'](_0x3e9344));for(const _0x41cd9e of _0x14c3d3){'todo'!=_0x41cd9e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xfd954a['_findSuggestions'](_0x41cd9e['getFirstRange'](),'attribute')['find'](_0x3cbc7b=>'listType'===_0xfd954a['_getAttributeKey'](_0x3cbc7b['suggestion']))||(_0x36f5e7['removeMarker'](_0x41cd9e['getFirstMarker']()),_0x178035=!0x0));}return _0x178035;})),_0xfd954a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xc291de,'FORMAT_INDENT'));const _0xf688ea={'type':'format','content':''};_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x785f74=>{const {data:_0xe3ec95}=_0x785f74;if(!_0xe3ec95||'listType'!=_0xe3ec95['key'])return;let _0x3fe112=_0x785f74['head'];for(;_0x3fe112;){if(_0x3fe112['data']&&(('listStyle'==_0x3fe112['data']['key']||'listMarkerStyle'==_0x3fe112['data']['key'])&&(_0x3fe112['data']['newValue']&&'default'!=_0x3fe112['data']['newValue']||'default'!=_0x3fe112['data']['oldValue']&&!_0xe3ec95['newValue'])||!_0x2fc2a3&&_0x3fe112['data']['key']==m))return _0xf688ea;_0x3fe112=_0x3fe112['next'];}if(null==_0xe3ec95['newValue'])switch(_0xe3ec95['oldValue']){case'bulleted':return _0x9a4ff8(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9a4ff8(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9a4ff8(o(_0xc291de,'ELEMENT_TODO_LIST'));}switch(_0xe3ec95['newValue']){case'bulleted':return _0x44831b(o(_0xc291de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x44831b(o(_0xc291de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x44831b(o(_0xc291de,'ELEMENT_TODO_LIST'));}}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x4ce792=>{const {data:_0x18cb4c}=_0x4ce792;if(_0x18cb4c&&'listIndent'==_0x18cb4c['key'])return null==_0x18cb4c['newValue']||null==_0x18cb4c['oldValue']&&0x0==_0x18cb4c['newValue']?_0xf688ea:void 0x0;}),_0xfd954a['descriptionFactory']['registerDescriptionCallback'](_0x321ad5=>{if('attribute'!=_0x321ad5['type'])return;const {data:_0xaa2329}=_0x321ad5;if(!_0xaa2329||'listItemId'!=_0xaa2329['key'])return;const _0x69db=Te(_0x321ad5);return'newValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x69db?{'type':'format','content':o(_0xc291de,'*Split:*\x20list\x20item')}:_0xf688ea;}),_0x10ee9f['model']['document']['registerPostFixer'](_0x7843e=>this['listItemIdFixer'](_0x7843e)),_0x10ee9f['model']['document']['registerPostFixer'](_0x4db15c=>this['noTrackChangesFixer'](_0x4db15c)),_0x10ee9f['model']['document']['on']('change:data',(_0x4f2333,_0x319b2b)=>{if(_0x319b2b['isUndo']||!_0x319b2b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x277262){if(_0x277262['batch']['isUndo']||!_0x277262['batch']['isLocal'])return!0x1;let _0xa1f947=!0x1;const _0x65d9a7=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5846a8=>_0x5846a8['data']&&'listItemId'==_0x5846a8['data']['key'])['filter'](_0x6be0ab=>_0x6be0ab['data']['newValue']&&_0x6be0ab['data']['oldValue']);for(const _0x507a0f of _0x65d9a7)Te(_0x507a0f)||(_0x277262['removeMarker'](_0x507a0f['getFirstMarker']()),_0xa1f947=!0x0);return _0xa1f947;}['noTrackChangesFixer'](_0x4c3629){if(_0x4c3629['batch']['isUndo']||!_0x4c3629['batch']['isLocal'])return!0x1;const _0x409362=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x409362['trackChangesCommand']['value'])return!0x1;let _0x2d2873=!0x1;const _0x261d8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c1658=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf1ead6=>'attribute'==_0xf1ead6['type'])['filter'](_0x1b65cc=>_0x261d8a['includes'](_0x1b65cc['attributeKey']));if(0x0==_0x4c1658['length'])return _0x2d2873;for(const _0x29612e of _0x4c1658){const _0x1ef2b1=_0x409362['_findSuggestions'](_0x29612e['range'],'attribute')['filter'](_0x287df6=>!_0x287df6['meta']['isNextTo'])['map'](_0x425ae6=>_0x425ae6['suggestion'])['filter'](_0x3aa016=>{const _0x48570f=_0x409362['_getAttributeKey'](_0x3aa016);return _0x261d8a['includes'](_0x48570f);});if(_0x1ef2b1['length']){for(const _0x32052c of _0x1ef2b1)_0x4c3629['removeMarker'](_0x32052c['getFirstMarker']());_0x2d2873=!0x0;}}return _0x2d2873;}['assureChains'](){const _0x24483a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7db5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e229;const _0x29b7f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43f6ef=>{if(_0x43f6ef['data']['oldRange']||!_0x43f6ef['data']['newRange'])return null;if(!_0x43f6ef['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11f91c}=_0x24483a['_splitMarkerName'](_0x43f6ef['name']);if(!_0x24483a['hasSuggestion'](_0x11f91c))return null;const _0x23c5d0=_0x24483a['getSuggestion'](_0x11f91c);return _0x3f7db5['includes'](_0x23c5d0['data']['key']);})['map'](_0x27171e=>{const {id:_0x28a304}=_0x24483a['_splitMarkerName'](_0x27171e['name']),_0x1f3bf1=_0x24483a['getSuggestion'](_0x28a304);return _0x57e229=_0x1f3bf1['attributes']['groupId'],_0x1f3bf1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x29b7f7['size'])return;const _0x5380cd=_0x24483a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50e53a=>'attribute'==_0x50e53a['type']&&_0x50e53a['data']&&_0x3f7db5['includes'](_0x50e53a['data']['key'])&&_0x50e53a['attributes']['groupId']!=_0x57e229)['map'](_0x41a742=>({'listItem':_0x41a742['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41a742['attributes']['groupId']})),_0x47b035=new Set();for(const {groupId:_0x2b8260,listItem:_0xd1bcfb}of _0x5380cd)_0x29b7f7['has'](_0xd1bcfb)&&_0x47b035['add'](_0x2b8260);for(const _0x40e10b of _0x24483a['getSuggestions']())_0x47b035['has'](_0x40e10b['attributes']['groupId'])&&_0x40e10b['setAttribute']('groupId',_0x57e229);}['_supportLegacySuggestions'](){const _0x311858=this['editor'],_0x18f1f8=_0x311858['locale'],_0x473913=_0x311858['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x473913['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x319ff6,_0x3cda78){const _0x538c15=[];for(let _0x21646e of _0x319ff6)_0x21646e['start']['nodeAfter']===_0x21646e['end']['parent']&&(_0x21646e=_0x311858['model']['createRange'](_0x311858['model']['createPositionAt'](_0x21646e['start']['nodeAfter'],0x0))),_0x538c15['push'](_0x21646e);_0x311858['model']['change'](_0x59af67=>{const _0x203439=_0x311858['model']['document']['selection'],_0xf6d445=Array['from'](_0x203439['getRanges']())['map'](_0x4936c1=>_0x217d71['fromRange'](_0x4936c1));_0x59af67['setSelection'](_0x538c15),_0x311858['commands']['get'](_0x3cda78['commandName'])['refresh'](),_0x3cda78['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x311858['execute'](_0x3cda78['commandName'],..._0x3cda78['commandParams']),_0x59af67['setSelection'](_0xf6d445);for(const _0x734c3f of _0xf6d445)_0x734c3f['detach']();});}),_0x473913['descriptionFactory']['registerElementLabel'](function(_0x19541d){const _0x5f27f2=!_0x311858['model']['schema']['isObject'](_0x19541d),_0x4fbe55=_0x19541d['previousSibling'],_0x5e5603=_0x19541d['nextSibling'],_0x5950c8=_0x19541d['getAttribute']('listItemId'),_0x2b86f9=!_0x4fbe55||_0x4fbe55['getAttribute']('listItemId')!==_0x5950c8,_0x11056a=!_0x5e5603||_0x5e5603['getAttribute']('listItemId')!==_0x5950c8;return _0x5f27f2&&Boolean(_0x5950c8)&&_0x2b86f9&&_0x11056a;},_0x56e829=>o(_0x18f1f8,'ELEMENT_LIST_ITEM',_0x56e829));}['_registerLegacyDescription'](){const _0xdb2ec5=this['editor'],_0x37b5d7=_0xdb2ec5['locale'];function _0x2a0282(_0x3af705){const _0x449010=_0xdb2ec5['commands']['get']('bulletedList')['value'],_0x2fe7a1=_0xdb2ec5['commands']['get']('numberedList')['value'];return'numberedList'===_0x3af705?_0x449010:_0x2fe7a1;}_0xdb2ec5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5aa69a){if('formatBlock'!=_0x5aa69a['type'])return;const {data:_0x2134dd}=_0x5aa69a;if(!_0x2134dd)return;let _0x4160ff,_0xc3ee3b,_0x24a711,_0x1f2432;switch(_0x2134dd['commandName']){case'bulletedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24a711=_0x2134dd['commandParams'][0x0]['forceValue'],_0x1f2432=_0x2a0282(_0x2134dd['commandName']),_0x4160ff=_0x24a711?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f2432&&_0xdb2ec5['config']['get']('list.multiBlock')||(_0x4160ff='*Change\x20to:*\x20%0'),_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4160ff='*Indent:*\x20%0',_0xc3ee3b={'type':'format','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4160ff=function(_0x4c9b4e){const _0x594be7=_0x4c9b4e['getFirstRange']();let _0x4f36e6=_0x594be7['start']['nodeAfter'];for(;_0x4f36e6&&_0x594be7['containsItem'](_0x4f36e6);){if(_0x4f36e6['getAttribute']('listIndent')>0x0)return!0x1;_0x4f36e6=_0x4f36e6['nextSibling'];}return!0x0;}(_0x5aa69a)?o(_0x37b5d7,'*Format:*\x20remove\x20from\x20%0',o(_0x37b5d7,function(_0x1c12af){return'ELEMENT_'+_0x1c12af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5aa69a))):o(_0x37b5d7,'*Outdent:*\x20%0',o(_0x37b5d7,'ELEMENT_LIST_ITEM')),_0xc3ee3b={'type':'format','content':_0x4160ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2134dd['multipleBlocks']&&(_0x4160ff='*Merge:*\x20%0',_0xc3ee3b={'type':'deletion','content':o(_0x37b5d7,_0x4160ff,o(_0x37b5d7,'ELEMENT_LIST_ITEM'))});}return _0xc3ee3b;});}}function Te(_0x284d90){let _0x224694=_0x284d90['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x224694;){const _0x562138=_0x224694['getAttribute']('listItemId');if(!_0x562138)return!0x1;if(_0x562138==_0x284d90['data']['newValue'])return'newValue';if(_0x562138==_0x284d90['data']['oldValue'])return'oldValue';_0x224694=_0x224694['previousSibling'];}return!0x1;}class q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xc4702c=this['editor']['config']['get']('list.properties'),_0x42066d=this['editor']['plugins']['get']('TrackChangesEditing');_0xc4702c['styles']&&(_0x42066d['enableDefaultAttributesIntegration']('listStyle'),_0x42066d['registerBlockAttribute']('listStyle')),_0xc4702c['reversed']&&(_0x42066d['enableDefaultAttributesIntegration']('listReversed'),_0x42066d['registerBlockAttribute']('listReversed')),_0xc4702c['startIndex']&&(_0x42066d['enableDefaultAttributesIntegration']('listStart'),_0x42066d['registerBlockAttribute']('listStart'));const _0x8483da={'type':'format','content':''};_0x42066d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3522d2=this['editor']['locale'];_0x42066d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3522d2,'FORMAT_LIST_REVERSED')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0x40a432=>{const {data:_0x324a95}=_0x40a432;if(_0x324a95&&'listReversed'==_0x324a95['key'])return null==_0x324a95['newValue']||0x0==_0x324a95['newValue']&&null==_0x324a95['oldValue']?_0x8483da:void 0x0;}),_0x42066d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3522d2,'FORMAT_LIST_START')),_0x42066d['descriptionFactory']['registerDescriptionCallback'](_0xa149b5=>{const {data:_0x4f77e7}=_0xa149b5;if(_0x4f77e7&&'listStart'==_0x4f77e7['key'])return null==_0x4f77e7['newValue']||0x1==_0x4f77e7['newValue']&&null==_0x4f77e7['oldValue']?_0x8483da:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4dc4d3=>{if(_0x4dc4d3['batch']['isUndo'])return!0x1;let _0x5c1bfd=!0x1;const _0x4a9298=_0x42066d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30b4c4=>{const _0x1d2621=_0x42066d['_getAttributeKey'](_0x30b4c4);return'listStart'==_0x1d2621||'listReversed'==_0x1d2621;});for(const _0xa33863 of _0x4a9298){const _0x46e79e=_0xa33863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46e79e||'customNumbered'==_0x46e79e)continue;_0x42066d['_findSuggestions'](_0xa33863['getFirstRange'](),'attribute')['find'](_0x2e734b=>'listType'==_0x42066d['_getAttributeKey'](_0x2e734b['suggestion']))||(_0x4dc4d3['removeMarker'](_0xa33863['getFirstMarker']()),_0x5c1bfd=!0x0);}return _0x5c1bfd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d5f73){const _0x1f086c=this['editor']['locale'],{data:_0x31b05d}=_0x2d5f73,_0x13da54={'type':'format','content':''};if(!_0x31b05d||'listStyle'!=_0x31b05d['key'])return;if(!_0x31b05d['oldValue'])return'default'==_0x31b05d['newValue']?_0x13da54:{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};if(!_0x31b05d['newValue']){if('default'==_0x31b05d['oldValue'])return _0x13da54;let _0x21e2b7=_0x2d5f73['head'];for(;_0x21e2b7;){if(_0x21e2b7['data']&&'listType'==_0x21e2b7['data']['key']&&_0x21e2b7['data']['newValue'])return _0x13da54;_0x21e2b7=_0x21e2b7['next'];}return{'type':'format','content':''+o(_0x1f086c,'*Remove\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['oldValue'])))};}if('default'!=_0x31b05d['newValue'])return{'type':'format','content':''+o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,this['_getTranslationKeyForListStyle'](_0x31b05d['newValue'])))};let _0x394691=_0x2d5f73['head'];for(;_0x394691;){if(_0x394691['data']&&'listType'==_0x394691['data']['key']&&_0x394691['data']['newValue']&&_0x394691['data']['oldValue'])return _0x13da54;_0x394691=_0x394691['next'];}return{'type':'format','content':o(_0x1f086c,'*Set\x20format:*\x20%0',o(_0x1f086c,'ELEMENT_'+_0x2d5f73['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f99f8=this['editor'],_0x275b9a=_0x3f99f8['locale'];_0x3f99f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90def=>{if('formatBlock'!=_0x90def['type'])return;const {data:_0x5e2f02}=_0x90def;if(!_0x5e2f02)return;let _0x47674,_0x157be6;switch(_0x5e2f02['commandName']){case'listStyle':_0x47674='*Change\x20to:*\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,o(_0x275b9a,this['_getTranslationKeyForListStyle'](_0x5e2f02['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47674=_0x5e2f02['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674)};break;case'listStart':_0x47674='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x157be6={'type':'format','content':o(_0x275b9a,_0x47674,_0x5e2f02['commandParams'][0x0]['startIndex'])};}return _0x157be6;});}['_getTranslationKeyForListStyle'](_0xe8bb9f){return'ELEMENT_'+function(_0x268b16){if(Se['includes'](_0x268b16))return'bulleted';if(_e['includes'](_0x268b16))return'numbered';return null;}(_0xe8bb9f)['toUpperCase']()+'_LIST_'+_0xe8bb9f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xfd4522{['afterInit'](){const _0x5c225a=this['editor'];_0x5c225a['commands']['get']('emoji')&&_0x5c225a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xfd4522{static get['requires'](){return[_0x501db2];}['init'](){const _0x26352b=this['editor'],_0x3c0c0c=_0x26352b['plugins']['get']('TrackChangesEditing'),_0x1dc0d2=_0x26352b['commands']['get']('enter');_0x3c0c0c['enableCommand']('enter',()=>{_0x26352b['model']['change'](_0x1ac712=>{const _0x11b41e=_0x26352b['model']['document']['selection'],_0x3f4c09=_0x11b41e['getFirstPosition'](),_0x2499a6=_0x217d71['fromRange'](_0x11b41e['getFirstRange']());if(_0x1dc0d2['enterBlock'](_0x1ac712)){const _0x2afa02=_0x26352b['model']['createPositionAt'](_0x3f4c09['parent']['nextSibling'],0x0),_0x5c3172=_0x1ac712['createRange'](_0x3f4c09,_0x2afa02);_0x3c0c0c['markInsertion'](_0x5c3172);}else _0x1ac712['setSelection'](_0x1ac712['createRange'](_0x2499a6['end']));_0x2499a6['detach'](),_0x1dc0d2['fire']('afterExecute',{'writer':_0x1ac712});});}),_0x26352b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x26352b,'split'),{'priority':'high'}),_0x26352b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f3e41,_0x5202ea,_0x1c68f0)=>{const _0x1e394d=_0x1c68f0['mapper']['markerNameToElements'](_0x5202ea['markerName']);if(_0x1e394d){for(const _0x4776fe of _0x1e394d)_0x4776fe['hasClass']('ck-suggestion-marker-split')&&(_0x1c68f0['mapper']['unbindElementFromMarkerName'](_0x4776fe,_0x5202ea['markerName']),_0x1c68f0['writer']['remove'](_0x4776fe));}},{'priority':'high'}),_0x26352b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5283bc,_0x4752b5,_0x25c779)=>{_0x25c779['options']['showSuggestionHighlights']&&De(_0x26352b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5283bc,_0x4752b5,_0x25c779);},{'priority':'high'});}}class Q extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x501d53=this['editor']['plugins']['get']('TrackChangesEditing');_0x501d53['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x501d53['enableCommand']('findNext'),_0x501d53['enableCommand']('findPrevious'),_0x501d53['enableCommand']('replace'),_0x501d53['enableCommand']('replaceAll');}['handleFindCommand'](_0x5dbb7d,_0x37c49a,_0x495451={}){const _0xda2af4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5dbb7d(_0x1d9fd5=>{let _0x4fe2f8=('string'==typeof _0x37c49a?_0xda2af4['findByTextCallback'](_0x37c49a,_0x495451):_0x37c49a)(_0x1d9fd5);Array['isArray'](_0x4fe2f8)&&(_0x4fe2f8={'results':_0x4fe2f8,'searchText':'string'==typeof _0x37c49a?_0x37c49a:''});const _0x1c9aa4=_0x4fe2f8['results']['filter'](_0x529786=>!0x1===this['_isInDeletionRange'](_0x529786,_0x1d9fd5['item']));return{..._0x4fe2f8,'results':_0x1c9aa4};},_0x495451);}['_isInDeletionRange'](_0x10eab3,_0x31c1fa){const _0x1cdeaa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['start']),this['editor']['model']['createPositionAt'](_0x31c1fa,_0x10eab3['end']));for(const _0x4201aa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cdeaa['getIntersection'](_0x4201aa['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xfd4522{['afterInit'](){const _0x29721d=this['editor']['locale'],_0x29f717=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x376996,commandName:_0x51d99}of eo)this['editor']['plugins']['has'](_0x376996)&&(_0x29f717['enableDefaultAttributesIntegration'](_0x51d99),_0x29f717['registerInlineAttribute'](_0x51d99));_0x29f717['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x29721d,'FORMAT_FONT_SIZE')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x29721d,'FORMAT_FONT_FAMILY')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x29721d,'FORMAT_FONT_COLOR')),_0x29f717['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x29721d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c12be=this['editor'],_0x53d32e=_0x5c12be['locale'];_0x5c12be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3455=>{const _0x6c3fa7=_0x53d32e['t'];if('formatInline'!=_0x3e3455['type'])return;const {data:_0x2a525d}=_0x3e3455;if(null!=_0x2a525d){if('fontSize'==_0x2a525d['commandName']){const _0x27f61e=_0x2a525d['commandParams'][0x0]['value'];if(_0x27f61e){const _0x4a348d=_0x6c3fa7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x46db45=>_0x46db45['model']==_0x27f61e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20size:*\x20%0',_0x4a348d)};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2a525d['commandName']){const _0xd80733=_0x2a525d['commandParams'][0x0]['value'];return _0xd80733?{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20family:*\x20%0',_0xd80733)}:{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2a525d['commandName']){const _0x4df71e=_0x2a525d['commandParams'][0x0]['value'];if(_0x4df71e){const _0x7c12d7=_0x986404(this['editor']['config']['get']('fontColor.colors'))['find'](_0x38f524=>_0x38f524['model']==_0x4df71e);let _0x51eeca=_0x4df71e,_0x1c8cfe='';return _0x7c12d7&&(_0x51eeca=_0x7c12d7['label'],_0x1c8cfe=_0x6c3fa7(_0x51eeca)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20color:*\x20%0',_0x1c8cfe)['trim'](),'color':{'value':_0x4df71e,'title':_0x1c8cfe||_0x51eeca}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2a525d['commandName']){const _0x245fa7=_0x2a525d['commandParams'][0x0]['value'];if(_0x245fa7){const _0x3be796=_0x986404(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb03c70=>_0xb03c70['model']==_0x245fa7);let _0x325171=_0x245fa7,_0x212615='';return _0x3be796&&(_0x325171=_0x3be796['label'],_0x212615=_0x6c3fa7(_0x325171)['toLowerCase']()),{'type':'format','content':o(_0x53d32e,'*Set\x20font\x20background\x20color:*\x20%0',_0x212615)['trim'](),'color':{'value':_0x245fa7,'title':_0x212615||_0x325171}};}return{'type':'format','content':o(_0x53d32e,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xfd4522{['afterInit'](){const _0x1ac14c=this['editor'],_0x1607de=_0x1ac14c['plugins']['get']('TrackChangesEditing'),_0x696694=_0x1ac14c['commands']['get']('copyFormat'),_0x4e4a28=_0x1ac14c['commands']['get']('pasteFormat');_0x696694&&_0x4e4a28&&(_0x1607de['enableDefaultAttributesIntegration']('pasteFormat'),_0x1607de['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23577a=this['editor'],_0x2763b5=_0x23577a['locale'];_0x23577a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2c3d=>{if('formatBlock'!=_0xd2c3d['type']&&'formatInline'!=_0xd2c3d['type'])return;const {data:_0x5d19ca}=_0xd2c3d;if(_0x5d19ca&&'pasteFormat'===_0x5d19ca['commandName']){const _0x3df29d=[],_0x177b05=_0x5d19ca['commandParams'][0x0];for(const [_0x2a7d4a,_0x3aea77]of Object['entries'](_0x177b05))_0x3df29d['push'](ro(_0x23577a,_0x2a7d4a,_0x3aea77));return _0x3df29d['length']?{'type':'format','content':o(_0x2763b5,'*Set\x20format\x20to:*\x20%0',_0x3df29d['join'](',\x20'))}:{'type':'format','content':o(_0x2763b5,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cd184,_0x3efed2,_0x372db4){const _0x1df7c7=_0x3cd184['locale']['t'],_0x20a3f2=_0x3efed2['split'](/(?=[A-Z])/)['join']('\x20'),_0x130eb0=_0x1df7c7(_0x20a3f2['charAt'](0x0)['toUpperCase']()+_0x20a3f2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x372db4)return _0x130eb0;if('fontColor'===_0x3efed2||'fontBackgroundColor'===_0x3efed2){const _0x4deffc=_0x986404(_0x3cd184['config']['get']('fontColor.colors'))['find'](_0x133352=>_0x133352['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x4deffc?_0x1df7c7(_0x4deffc['label'])['toLowerCase']():_0x372db4)+')';}if('fontSize'===_0x3efed2&&isNaN(parseFloat(_0x372db4))){const _0x3a755e=_0x3cd184['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd184['config']['get']('fontSize.options'))['find'](_0x49bcae=>_0x49bcae['model']==_0x372db4);return _0x130eb0+'\x20('+(_0x3a755e?_0x1df7c7(_0x3a755e['title'])['toLowerCase']():_0x372db4)+')';}return _0x130eb0+'\x20('+_0x372db4+')';}class Z extends _0xfd4522{['_headingOptions'];['afterInit'](){const _0x5f221b=this['editor'];if(!_0x5f221b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f221b['config']['get']('heading.options');const _0x224ca6=_0x5f221b['locale'],_0x2d0425=_0x5f221b['plugins']['get']('TrackChangesEditing');_0x2d0425['enableDefaultAttributesIntegration']('heading');for(const _0x397fe6 of this['_headingOptions'])'paragraph'!=_0x397fe6['model']&&_0x2d0425['descriptionFactory']['registerElementLabel'](_0x397fe6['model'],_0x4a337d=>{const _0x498f1c=this['_getHeadingLevel'](_0x397fe6['model']);return null!==_0x498f1c?_0x1f94cc(_0x4a337d,_0x498f1c):_0x231a54(_0x4a337d,_0x397fe6['title']);});function _0x1f94cc(_0x3b91f5,_0x2ec575){return o(_0x224ca6,'ELEMENT_HEADING',[_0x3b91f5,_0x2ec575]);}function _0x231a54(_0x1e30ec,_0x23044c){return o(_0x224ca6,'ELEMENT_HEADING_CUSTOM',[_0x1e30ec,_0x23044c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86ce84=this['editor'],_0x1f771e=_0x86ce84['locale'];function _0x1cdd12(_0x46d842,_0xa680e9){return o(_0x1f771e,'ELEMENT_HEADING_CUSTOM',[_0x46d842,_0xa680e9]);}_0x86ce84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ec7de=>{if('formatBlock'!=_0x3ec7de['type'])return;const {data:_0x41fff7}=_0x3ec7de;if(_0x41fff7&&'heading'==_0x41fff7['commandName']){const _0x3c2cac=_0x41fff7['commandParams'][0x0]['value'],_0x1d31e2=this['_getHeadingLevel'](_0x3c2cac);if(null!==_0x1d31e2)return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',(_0x2f511b=0x1,_0x22782c=_0x1d31e2,o(_0x1f771e,'ELEMENT_HEADING',[_0x2f511b,_0x22782c])))};const _0x27f6bb=this['_headingOptions']['find'](_0x3e3bfd=>_0x3e3bfd['model']===_0x3c2cac)['title'];return{'type':'format','content':o(_0x1f771e,'*Change\x20to:*\x20%0',_0x1cdd12(0x1,_0x27f6bb))};}var _0x2f511b,_0x22782c;});}['_getHeadingLevel'](_0x1208cb){const _0x5d138a=_0x1208cb['match'](/^heading(\d+)/);if(_0x5d138a)return _0x5d138a[0x1];const _0x5d871f=this['_headingOptions']?.['find'](_0x59560f=>_0x59560f['model']==_0x1208cb);if(_0x5d871f&&_0x5d871f['view']){const _0x1036cb=_0x5d871f['view'],_0x5eb611=(_0x1036cb['name']??_0x1036cb)['match'](/^h(\d+)/);if(_0x5eb611)return _0x5eb611[0x1];}return null;}}class tt extends _0xfd4522{['afterInit'](){const _0x1d8a80=this['editor'];if(!_0x1d8a80['plugins']['has']('HighlightEditing'))return;const _0x404eb7=_0x1d8a80['plugins']['get']('TrackChangesEditing'),_0x298063=_0x1d8a80['locale'];_0x404eb7['enableDefaultAttributesIntegration']('highlight'),_0x404eb7['registerInlineAttribute']('highlight'),_0x404eb7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x298063,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf3935b=this['editor'],_0x5c58d3=_0xf3935b['locale'];_0xf3935b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bcb5f=>{if('formatInline'!=_0x5bcb5f['type'])return;const {data:_0x5c2236}=_0x5bcb5f;if(_0x5c2236&&'highlight'==_0x5c2236['commandName']){const _0x3fdbac=_0x5c58d3['t'],_0x50d1f1=_0x5c2236['commandParams'][0x0]['value'];if(_0x50d1f1){const _0xb9f57a=_0xf3935b['config']['get']('highlight.options')['find'](_0x19a168=>_0x19a168['model']==_0x50d1f1),_0x1969cc=_0x3fdbac(_0xb9f57a['title'])['toLowerCase']();return{'type':'format','content':o(_0x5c58d3,'*Set\x20highlight:*\x20%0',_0x1969cc),'color':{'value':_0xb9f57a['color'],'title':_0xb9f57a['title']}};}return{'type':'format','content':o(_0x5c58d3,'*Remove\x20highlight*',o(_0x5c58d3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xfd4522{['afterInit'](){const _0x2211de=this['editor'];if(!_0x2211de['plugins']['has']('HorizontalLineEditing'))return;_0x2211de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3833b3=_0x2211de['plugins']['get']('TrackChangesEditing'),_0x430d4e=_0x2211de['locale'];_0x3833b3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18f769=>o(_0x430d4e,'ELEMENT_HORIZONTAL_LINE',_0x18f769)),_0x2211de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4c841d,{writer:_0x1671f2,options:_0x3f089a})=>{if(!_0x3f089a['showSuggestionHighlights'])return null;const _0x1800b8=_0x1671f2['createContainerElement']('div'),_0x3cf486=_0x1671f2['createEmptyElement']('hr');return _0x1671f2['addClass']('ck-horizontal-line',_0x1800b8),_0x1671f2['insert'](_0x1671f2['createPositionAt'](_0x1800b8,0x0),_0x3cf486),_0x1800b8;},'converterPriority':'high'});}}class nt extends _0xfd4522{['afterInit'](){const _0x46f42c=this['editor'];if(!_0x46f42c['plugins']['has']('HtmlEmbed'))return;const _0x5d7a12=_0x46f42c['plugins']['get']('TrackChangesEditing'),_0x122f29=_0x46f42c['locale'];_0x5d7a12['descriptionFactory']['registerElementLabel']('rawHtml',_0x96fafc=>o(_0x122f29,'ELEMENT_HTML_EMBED',_0x96fafc)),_0x5d7a12['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d7a12['registerBlockAttribute']('value'),_0x5d7a12['descriptionFactory']['registerDescriptionCallback'](_0x4d0e81=>{if('attribute'!=_0x4d0e81['type'])return;const {data:_0x344b7c}=_0x4d0e81;if(_0x344b7c&&'value'==_0x344b7c['key']&&_0x4d0e81['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2929d9=o(_0x122f29,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x122f29,'*Change\x20%0\x20content*',_0x2929d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2403=this['editor'],_0x2b67d5=_0x1b2403['locale'];_0x1b2403['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e0f8e=>{if('formatBlock'!=_0x1e0f8e['type'])return;const {data:_0x202d01}=_0x1e0f8e;if(_0x202d01&&'htmlEmbed'==_0x202d01['commandName']){const _0x1cb4bd=o(_0x2b67d5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b67d5,'*Change\x20%0\x20content*',_0x1cb4bd)};}});}}class et extends _0xfd4522{['afterInit'](){const _0x1ed39d=this['editor'];if(!_0x1ed39d['plugins']['has']('ImageEditing'))return;const _0x511c62=_0x1ed39d['plugins']['get']('TrackChangesEditing'),_0x33d9c3=_0x1ed39d['plugins']['get']('ImageUtils'),_0x2db01b=_0x1ed39d['locale'];_0x511c62['enableCommand']('insertImage'),_0x511c62['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ab132=>o(_0x2db01b,'ELEMENT_IMAGE',_0x5ab132)),_0x511c62['descriptionFactory']['registerElementLabel']('imageInline',_0x1e83c6=>o(_0x2db01b,'ELEMENT_INLINE_IMAGE',_0x1e83c6)),_0x511c62['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2db01b,'ELEMENT_CAPTION')),_0x1ed39d['plugins']['has']('ImageUploadEditing')&&_0x511c62['enableCommand']('uploadImage'),_0x1ed39d['plugins']['has']('ImageBlockEditing')&&_0x1ed39d['plugins']['has']('ImageInlineEditing')&&(_0x511c62['enableCommand']('imageTypeInline',(_0x5611b9,_0x238220)=>{const _0x499b51=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']);_0x1ed39d['model']['change'](()=>{_0x511c62['markBlockFormat'](_0x499b51,{'commandName':'imageTypeInline','commandParams':[_0x238220]},[],'convertBlockImageToInline');});}),_0x511c62['enableCommand']('imageTypeBlock',(_0x354907,_0x11b1a5)=>{_0x1ed39d['model']['change'](_0x683f26=>{let _0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x32fdca=_0xa59888['fromPosition'](_0x105a89['start'],'toPrevious'),_0x5764ee=_0xa59888['fromPosition'](_0x105a89['end'],'toNext');_0x511c62['forceDefaultExecution'](()=>_0x354907(_0x11b1a5)),_0x41e520=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x105a89=_0x683f26['createRangeOn'](_0x41e520);const _0x53b8d0=_0x683f26['createRange'](_0x32fdca,_0x5764ee);_0x32fdca['detach'](),_0x5764ee['detach'](),_0x511c62['markBlockFormat'](_0x41e520,{'commandName':'imageTypeInline','commandParams':[_0x11b1a5]},[],'convertInlineImageToBlock'),_0x53b8d0['start']['isBefore'](_0x105a89['start'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x53b8d0['start'],_0x105a89['start']),'convertInlineImageToBlock'),_0x105a89['end']['isBefore'](_0x53b8d0['end'])&&_0x511c62['markInsertion'](_0x683f26['createRange'](_0x105a89['end'],_0x53b8d0['end']),'convertInlineImageToBlock');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x511c62['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x377519])=>{const _0x2768b1=_0x511c62['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44c69f=_0x377519['start'],_0x487e1c=_0x377519['end'];const _0xaa4681=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x44c69f,'backward'),_0x3bc55a=_0x1ed39d['model']['schema']['getNearestSelectionRange'](_0x487e1c,'forward');_0xaa4681['isCollapsed']&&(_0x44c69f=_0xaa4681['start']),_0x3bc55a['isCollapsed']&&(_0x487e1c=_0x3bc55a['end']),_0x2768b1([_0x1ed39d['model']['createRange'](_0x44c69f,_0x487e1c)]);}),_0x511c62['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3a422b),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3a422b)),_0x1ed39d['plugins']['has']('ImageCaptionEditing')&&(_0x511c62['enableCommand']('toggleImageCaption',(_0x1e872e,_0x4ec55a)=>{const _0x4d4a9e=_0x1ed39d['plugins']['get']('ImageCaptionUtils');let _0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872);_0x1ed39d['model']['change'](()=>{if(_0x2b8cc6)return void _0x511c62['markDeletion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6));const _0xa2208b=_0x33d9c3['isBlockImage'](_0x2a2872);_0x1e872e(_0x4ec55a),_0x2a2872=_0x33d9c3['getClosestSelectedImageElement'](_0x1ed39d['model']['document']['selection']),_0x2b8cc6=_0x4d4a9e['getCaptionFromImageModelElement'](_0x2a2872),_0x511c62['markInsertion'](_0x1ed39d['model']['createRangeOn'](_0x2b8cc6),_0xa2208b?null:'imageCaption');});}),_0x511c62['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3a422b));const _0xaca0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31a827(_0x21a884,_0x3194ff){const _0x15c17a=_0xaca0['findIndex'](({type:_0x566d4b,subType:_0x3b84cf})=>_0x21a884['type']==_0x566d4b&&_0x21a884['subType']==_0x3b84cf),_0x17b824=_0xaca0['findIndex'](({type:_0x4f688d,subType:_0x25b5a2})=>_0x3194ff['type']==_0x4f688d&&_0x3194ff['subType']==_0x25b5a2);if(_0x15c17a<0x0||_0x17b824<0x0)return!0x1;const _0x4404b2=_0x21a884['getFirstRange'](),_0x17c6b9=_0x3194ff['getFirstRange']();if((0x0==_0x15c17a||0x1==_0x15c17a)&&0x2==_0x17b824&&_0x4404b2['isIntersecting'](_0x17c6b9))return!0x0;if(0x2==_0x15c17a&&0x3==_0x17b824){const _0x4cd1bc=_0x511c62['_findSuggestions'](_0x4404b2,'insertion')['filter'](({suggestion:_0x111e89,meta:_0x1f1a5d})=>_0x1f1a5d['isOwn']&&'convertInlineImageToBlock'==_0x111e89['subType']);if(_0x4cd1bc['length']>0x1&&_0x17c6b9['end']['isEqual'](_0x4404b2['start']))return!0x0;if(0x1==_0x4cd1bc['length']&&(_0x4404b2['start']['isEqual'](_0x17c6b9['end'])||_0x4404b2['end']['isEqual'](_0x17c6b9['start'])))return!0x0;}if(0x3==_0x15c17a&&0x3==_0x17b824&&_0x4404b2['start']['isBefore'](_0x17c6b9['start'])){const _0x336f21=_0x4404b2['end']['nodeAfter'],_0x3aa276=_0x17c6b9['start']['nodeBefore'];return _0x33d9c3['isBlockImage'](_0x336f21)&&_0x336f21===_0x3aa276;}return!0x1;}function _0x3a422b(_0x141d26,_0x53f948){return _0x31a827(_0x141d26,_0x53f948)?[_0x141d26,_0x53f948]:_0x31a827(_0x53f948,_0x141d26)?[_0x53f948,_0x141d26]:null;}_0x1ed39d['plugins']['has']('ImageResize')&&(_0x511c62['enableDefaultAttributesIntegration']('resizeImage'),_0x511c62['registerBlockAttribute']('resizedWidth'),_0x511c62['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2db01b,'FORMAT_IMAGE_SIZE'))),_0x1ed39d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x511c62['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x511c62['registerBlockAttribute']('alt')),_0x1ed39d['plugins']['has']('PictureEditing')&&(_0x511c62['registerBlockAttribute']('sources'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x239916=>{if('attribute'!=_0x239916['type'])return;const {data:_0x1c041e}=_0x239916;return _0x1c041e&&'sources'==_0x1c041e['key']?{'type':'format','content':''}:void 0x0;})),_0x1ed39d['plugins']['has']('ImageSizeAttributes')&&(_0x511c62['registerBlockAttribute']('width'),_0x511c62['registerBlockAttribute']('height'),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3632bb=>{if('attribute'!=_0x3632bb['type'])return;const {data:_0x590056}=_0x3632bb;return!_0x590056||'width'!=_0x590056['key']&&'height'!=_0x590056['key']?void 0x0:{'type':'format','content':''};})),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x3ba83b=>{if(!!_0xaca0['find'](({type:_0x46b1fb,subType:_0x3ca100})=>_0x3ba83b['type']==_0x46b1fb&&_0x3ba83b['subType']==_0x3ca100))return _0x3ba83b['previous']?{}:void 0x0;}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x55ef98=>{if('insertion'==_0x55ef98['type']||'deletion'==_0x55ef98['type']){const _0x244ae3=_0x55ef98['getContainedElement']();if(_0x244ae3&&_0x244ae3['is']('element','caption'))return{'type':'insertion'==_0x55ef98['type']?'addObject':'removeObject','element':_0x244ae3,'quantity':0x1};}}),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0xc9f768=>'formatBlock'==_0xc9f768['type']&&'convertInlineImageToBlock'==_0xc9f768['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc9f768['type']&&'convertBlockImageToInline'==_0xc9f768['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x511c62['descriptionFactory']['registerDescriptionCallback'](_0x5f44ef=>{if('attribute'!=_0x5f44ef['type'])return;const {data:_0x5933cc}=_0x5f44ef;if(!_0x5933cc||'alt'!=_0x5933cc['key'])return;const _0x9d3323=_0x5933cc['newValue'];return _0x9d3323?{'type':'format','content':o(_0x2db01b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9d3323+'\x22')}:{'type':'format','content':o(_0x2db01b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491a89=this['editor'],_0x51f385=_0x491a89['locale'];_0x491a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593621=>{if('formatBlock'!=_0x593621['type']&&'formatInline'!=_0x593621['type'])return;const {data:_0x309cd9}=_0x593621;if(_0x309cd9){if('imageTextAlternative'==_0x309cd9['commandName']){const _0x1291dd=_0x309cd9['commandParams'][0x0]['newValue'];return _0x1291dd?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1291dd+'\x22')}:{'type':'format','content':o(_0x51f385,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x309cd9['commandName']){const _0x3726f7=_0x309cd9['commandParams'][0x0]['width'];return _0x3726f7?{'type':'format','content':o(_0x51f385,'*Set\x20image\x20width:*\x20%0',_0x3726f7)}:{'type':'format','content':o(_0x51f385,'*Reset\x20image\x20width*')};}}});}}class st extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x535335=this['editor']['locale'],_0x593c88=this['editor']['plugins']['get']('TrackChangesEditing');_0x593c88['enableDefaultAttributesIntegration']('replaceImageSource'),_0x593c88['registerBlockAttribute']('src'),_0x593c88['descriptionFactory']['registerDescriptionCallback'](_0x2d2393=>{if('attribute'!=_0x2d2393['type'])return;const {data:_0xb59c69}=_0x2d2393;return _0xb59c69&&'src'==_0xb59c69['key']?_0xb59c69['newValue']&&_0xb59c69['oldValue']?{'type':'format','content':o(_0x535335,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x378a05=this['editor']['plugins']['get']('TrackChangesEditing');_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x378a05['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x378a05['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543d1b=this['editor'],_0x4a64c9=_0x543d1b['locale'];_0x543d1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbf30bf=>{if('formatBlock'!=_0xbf30bf['type']&&'formatInline'!=_0xbf30bf['type'])return;const {data:_0x4e5873}=_0xbf30bf;if(!_0x4e5873||'replaceImageSource'!=_0x4e5873['commandName'])return;return{'type':'format','content':o(_0x4a64c9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xfd4522{['afterInit'](){const _0x143650=this['editor'];if(!_0x143650['plugins']['has']('ImageStyleEditing'))return;const _0x2aace6=_0x143650['plugins']['get']('TrackChangesEditing'),_0x12407c=_0x143650['plugins']['get']('ImageUtils'),_0x304fbc={};_0x2aace6['enableCommand']('imageStyle',(_0x433b31,_0x3e729f)=>{const _0x44a423=_0x143650['plugins']['get']('Users')['me'],_0x1e389e=_0x143650['commands']['get']('imageStyle');let _0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x6447a3=_0x1e389e['value'];if(_0x6447a3==_0x3e729f['value'])return;const _0x3eff7a={'commandName':'imageStyle','commandParams':[_0x3e729f],'formatGroupId':_0x110ca2()};_0x143650['model']['change'](()=>{if(_0x2aace6['getSuggestions']()['filter'](_0xd920f5=>_0xd920f5['isInContent']&&_0x44a423==_0xd920f5['author']&&('formatBlock'==_0xd920f5['type']||'formatInline'==_0xd920f5['type'])&&('imageStylePreApply'==_0xd920f5['subType']||'imageStylePostApply'==_0xd920f5['subType'])&&_0xd920f5['getFirstRange']()['isEqual'](_0x1fa2cc))['forEach'](_0x2a5cbd=>_0x2aace6['discardSuggestion'](_0x2a5cbd['head'])),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),_0x1fa2cc=_0x143650['model']['createRangeOn'](_0x1844d7),_0x1e389e['refresh'](),_0x143650['commands']['get']('imageTypeInline')['refresh'](),_0x143650['commands']['get']('imageTypeBlock')['refresh'](),_0x6447a3=_0x1e389e['value'],_0x6447a3!=_0x3e729f['value'])return _0x12407c['isInlineImage'](_0x1844d7)&&_0x1e389e['shouldConvertImageType'](_0x3e729f['value'],_0x1844d7)?(_0x433b31({..._0x3e729f,'setImageSizes':!0x1}),_0x1844d7=_0x12407c['getClosestSelectedImageElement'](_0x143650['model']['document']['selection']),void _0x2aace6['markBlockFormat'](_0x1844d7,{..._0x3eff7a,'commandReversedParams':[{'value':_0x6447a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x12407c['isBlockImage'](_0x1844d7)?_0x2aace6['markBlockFormat'](_0x1844d7,_0x3eff7a,[],'imageStylePostApply'):_0x2aace6['markInlineFormat'](_0x1fa2cc,_0x3eff7a,'imageStylePostApply'));});});for(const _0x5bc4ed of _0x143650['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x304fbc[_0x5bc4ed['name']]=_0x5bc4ed['title']['toLowerCase']();_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46b393])=>{_0x12407c['setImageNaturalSizeAttributes'](_0x46b393['getContainedElement']());}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x547708,_0x193bbd)=>{_0x2aace6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x547708,{'commandName':_0x193bbd['commandName'],'commandParams':_0x193bbd['commandReversedParams']});}),_0x2aace6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a8c06,_0xbfac21){if(_0x25b308(_0x3a8c06,_0xbfac21))return[_0x3a8c06,_0xbfac21];if(_0x25b308(_0xbfac21,_0x3a8c06))return[_0xbfac21,_0x3a8c06];return null;});const _0x458cd0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25b308(_0x4500dd,_0x3ce3d9){const _0xf96559=_0x458cd0['findIndex'](({type:_0x128e2a,subType:_0x21b658})=>_0x4500dd['type']==_0x128e2a&&_0x4500dd['subType']==_0x21b658),_0x17eda6=_0x458cd0['findIndex'](({type:_0xfe39f1,subType:_0x192e47})=>_0x3ce3d9['type']==_0xfe39f1&&_0x3ce3d9['subType']==_0x192e47);if(_0xf96559<0x0||_0x17eda6<0x0)return!0x1;const _0xfe7afa=_0x4500dd['getFirstRange'](),_0x48384b=_0x3ce3d9['getFirstRange']();if((0x0==_0xf96559||0x1==_0xf96559)&&0x2==_0x17eda6&&_0xfe7afa['isIntersecting'](_0x48384b))return!0x0;if(0x2==_0xf96559&&0x3==_0x17eda6){const _0x54b6bf=_0x2aace6['_findSuggestions'](_0xfe7afa,'insertion')['filter'](({suggestion:_0x2105f6,meta:_0x235c22})=>_0x235c22['isOwn']&&'convertInlineImageToBlock'==_0x2105f6['subType']);if(_0x54b6bf['length']>0x1&&_0x48384b['end']['isEqual'](_0xfe7afa['start']))return!0x0;if(0x1==_0x54b6bf['length']&&(_0xfe7afa['start']['isEqual'](_0x48384b['end'])||_0xfe7afa['end']['isEqual'](_0x48384b['start'])))return!0x0;}if(0x3==_0xf96559&&0x3==_0x17eda6&&_0xfe7afa['start']['isBefore'](_0x48384b['start'])){const _0x19d8c7=_0xfe7afa['end']['nodeAfter'],_0x471613=_0x48384b['start']['nodeBefore'];return _0x12407c['isBlockImage'](_0x19d8c7)&&_0x19d8c7===_0x471613;}return!0x1;}_0x143650['model']['document']['registerPostFixer'](()=>{let _0x3848bd=!0x1;const _0x2c3ad8=Array['from'](_0x143650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7b878d,data:_0x12636f}of _0x2c3ad8){const {group:_0x50bcf6,type:_0x362c2b,subType:_0x51ce07,id:_0x33b169}=_0x2aace6['_splitMarkerName'](_0x7b878d);if('suggestion'==_0x50bcf6&&_0x2aace6['hasSuggestion'](_0x33b169)){if('formatBlock'==_0x362c2b&&('imageStylePreApply'==_0x51ce07||'imageStylePostApply'==_0x51ce07)){const _0x26d867=_0x2aace6['getSuggestion'](_0x33b169);if(_0x12636f['newRange']){const _0x28d64b=_0x26d867['getFirstRange']()['getContainedElement']();if(_0x12407c['isBlockImage'](_0x28d64b))continue;_0x2aace6['discardSuggestion'](_0x26d867),_0x3848bd=!0x0;}}if('insertion'==_0x362c2b&&'imageCaption'==_0x51ce07&&!_0x12636f['newRange']){const _0xb3808a=_0x2aace6['getSuggestion'](_0x33b169);_0xb3808a['next']&&_0xb3808a['next']['isInContent']&&(_0x2aace6['discardSuggestion'](_0xb3808a['next']),_0x3848bd=!0x0);}}}return _0x3848bd;}),this['_registerLegacyDescription'](_0x304fbc);}['_registerLegacyDescription'](_0x5aaff0){const _0x537a35=this['editor'],_0x403bf3=_0x537a35['locale'];_0x537a35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5092cb=>{if('formatBlock'!=_0x5092cb['type']&&'formatInline'!=_0x5092cb['type'])return;const {data:_0x8138c5}=_0x5092cb;if(!_0x8138c5||'imageStyle'!=_0x8138c5['commandName'])return;const _0x4665d2=_0x8138c5['commandParams'][0x0]['value'];return _0xa0bc99('side'===_0x4665d2?o(_0x403bf3,'FORMAT_SIDE_IMAGE'):_0x5aaff0[_0x4665d2]||_0x4665d2);function _0xa0bc99(_0x29ae05){return{'type':'format','content':o(_0x403bf3,'*Format:*\x20%0',_0x29ae05)};}});}}class rt extends _0xfd4522{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x458067){super(_0x458067),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x56ec77=this['editor'],_0x408ee7=_0x56ec77['commands']['get']('importWord'),_0x11b1b8=_0x56ec77['commands']['get']('trackChanges');_0x408ee7&&(_0x408ee7['on']('execute',(_0x5a00f5,[,_0x10469f])=>{this['_trackChangesValueDuringImport']=_0x11b1b8['value'],_0x10469f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x408ee7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x408ee7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x11b1b8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x56ec77['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa1e09f,_0xa0d80c){const {suggestions:_0x10ee7e}=_0xa0d80c,_0x58d67b=this['editor']['commands']['get']('trackChanges'),_0xaaef38=_0x58d67b['value'];this['_trackChangesValueDuringImport']!==_0xaaef38&&(_0x58d67b['execute'](),this['_trackChangesExecuted']=!0x0),_0x10ee7e&&_0x10ee7e['forEach'](({id:_0x2e3197,type:_0x422190,author:_0x2131d4,created_at:_0x57559d})=>{const _0x4baf7e={'id':_0x2e3197,'type':_0x422190,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2131d4,'createdAt':_0x57559d?new Date(_0x57559d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4baf7e);});}}class at extends _0xfd4522{['afterInit'](){const _0x301270=this['editor'],_0x229edd=_0x301270['plugins']['get']('TrackChangesEditing');if(_0x301270['plugins']['has']('IndentEditing')&&(_0x229edd['enableCommand']('indent'),_0x229edd['enableCommand']('outdent')),_0x301270['plugins']['has']('IndentBlock')){for(const _0xa6e619 of['indentBlock','outdentBlock'])_0x229edd['enableDefaultAttributesIntegration'](_0xa6e619);}const _0x137fa4=_0x301270['locale'];_0x229edd['registerBlockAttribute']('blockIndent'),_0x229edd['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x137fa4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5755=this['editor'],_0x44ddd4=_0x5c5755['locale'],_0x5cb3f9=_0x5c5755['plugins']['get']('TrackChangesEditing');_0x5cb3f9['descriptionFactory']['registerDescriptionCallback'](_0xc83977=>{if('formatBlock'!=_0xc83977['type'])return;const {data:_0x28d03b}=_0xc83977;if(!_0x28d03b)return;if('indentBlock'!=_0x28d03b['commandName']&&'outdentBlock'!=_0x28d03b['commandName'])return;const _0x153bb4=_0xc83977['getItems']()[0x0],_0x3df568=_0x5cb3f9['descriptionFactory']['getItemLabel'](_0x153bb4);return'indentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Indent:*\x20%0',_0x3df568)}:'outdentBlock'==_0x28d03b['commandName']?{'type':'format','content':o(_0x44ddd4,'*Outdent:*\x20%0',_0x3df568)}:void 0x0;});}}class ct extends _0xfd4522{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xfd4522{['afterInit'](){const _0x578204=this['editor'];if(!_0x578204['plugins']['has']('LinkEditing'))return;const _0x2396ed=_0x578204['plugins']['get']('TrackChangesEditing'),_0x3e5d42=_0x578204['commands']['get']('link');_0x2396ed['enableDefaultAttributesIntegration']('link'),_0x2396ed['enableDefaultAttributesIntegration']('unlink'),_0x2396ed['registerInlineAttribute']('linkHref');for(const _0x17cc47 of _0x3e5d42['manualDecorators'])_0x2396ed['registerInlineAttribute'](_0x17cc47['id']),_0x2396ed['descriptionFactory']['registerAttributeLabel'](_0x17cc47['id'],'link\x20('+_0x17cc47['label']['toLowerCase']()+')');_0x2396ed['descriptionFactory']['registerDescriptionCallback'](_0x42f7d7=>{if('attribute'!=_0x42f7d7['type'])return;const {data:_0x4c0edc}=_0x42f7d7;if(!_0x4c0edc||'linkHref'!=_0x4c0edc['key'])return;const _0x9bf67=_0x4c0edc['newValue'],_0x18fe9f=_0x578204['locale'];return{'type':'format','content':null==_0x9bf67?o(_0x18fe9f,'*Remove\x20link*'):o(_0x18fe9f,'*Set\x20link:*\x20%0','\x22'+_0x9bf67+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd0f5=this['editor'],_0x2821ab=_0x4cd0f5['locale'];_0x4cd0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38257e=>{if('formatInline'!=_0x38257e['type'])return;const {data:_0x4fe1d1}=_0x38257e;if(_0x4fe1d1){if('link'==_0x4fe1d1['commandName']){const _0x59bd50=_0x4fe1d1['commandParams'][0x0];return{'type':'format','content':o(_0x2821ab,'*Set\x20link:*\x20%0','\x22'+_0x59bd50+'\x22')};}return'unlink'==_0x4fe1d1['commandName']?{'type':'format','content':o(_0x2821ab,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xfd4522{['afterInit'](){const _0x493b89=this['editor'],_0x56b342=_0x493b89['locale'];if(!_0x493b89['plugins']['has']('LegacyListEditing'))return;const _0x5f1912=_0x493b89['plugins']['get']('TrackChangesEditing'),_0x166e0a=_0x493b89['plugins']['has']('LegacyTodoListEditing');function _0x3507fc(_0x40cc50){return()=>{const _0x31a13e=_0x493b89['model']['document']['selection'],_0xc2593f=_0x493b89['commands']['get'](_0x40cc50);if(_0xc2593f['value'])return void _0x493b89['execute']('paragraph',{});const _0x287d92=_0x40cc50['slice'](0x0,-0x4),_0x3f361c=function(_0x5bd1b8,_0x39689e,_0x4025d3){let _0x2f4a43=Array['from'](_0x5bd1b8)['filter'](_0x47bb4c=>function(_0x278a21,_0x232e41){return _0x232e41['checkChild'](_0x278a21['parent'],'listItem')&&!_0x232e41['isObject'](_0x278a21);}(_0x47bb4c,_0x4025d3));_0x2f4a43=_0x2f4a43['filter'](_0x304e32=>!_0x304e32['is']('element','listItem')||_0x304e32['getAttribute']('listType')!=_0x39689e);const _0x47c191=new Set();for(const _0x344c63 of _0x2f4a43)_0x344c63['is']('element','listItem')?_0x47c191['add'](Le(_0x344c63)):_0x47c191['add'](_0x344c63);return Array['from'](_0x47c191);}(_0x31a13e['getSelectedBlocks'](),_0x287d92,_0x493b89['model']['schema']);_0x493b89['model']['change'](()=>{for(const _0x5f004c of _0x3f361c)_0x5f1912['markBlockFormat'](_0x5f004c,{'commandName':_0x40cc50,'commandParams':[{'forceValue':!_0xc2593f['value']}],'formatGroupId':'blockName'},Ee(_0x5f004c));});};}function _0x369b65(_0xfbc6e8){return()=>{const _0xda0fa3=function(_0x3801c6){let _0x2eb2e0=Array['from'](_0x3801c6);const _0x4971d4=_0x2eb2e0['findIndex'](_0x6514eb=>'listItem'!=_0x6514eb['name']);return _0x4971d4>-0x1&&(_0x2eb2e0=_0x2eb2e0['slice'](0x0,_0x4971d4)),_0x2eb2e0;}(_0x493b89['model']['document']['selection']['getSelectedBlocks']()),_0x227ea7=_0x493b89['model']['createRange'](_0x493b89['model']['createPositionAt'](_0xda0fa3[0x0],'before'),_0x493b89['model']['createPositionAt'](_0xda0fa3[_0xda0fa3['length']-0x1],'end'));_0x493b89['model']['change'](()=>{_0x5f1912['markBlockFormat'](_0x227ea7,{'commandName':_0xfbc6e8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b4f3d){const _0x1c13c5=new Set();for(const _0x5eb76a of _0x4b4f3d){let _0x5511ed=_0x5eb76a['nextSibling'];for(;_0x5511ed&&_0x5511ed['getAttribute']('listIndent')>_0x5eb76a['getAttribute']('listIndent');)_0x1c13c5['add'](_0x5511ed),_0x5511ed=_0x5511ed['nextSibling'];}return Array['from'](_0x1c13c5);}(_0xda0fa3));});};}_0x5f1912['enableCommand']('numberedList',_0x3507fc('numberedList')),_0x5f1912['enableCommand']('bulletedList',_0x3507fc('bulletedList')),_0x166e0a&&_0x5f1912['enableCommand']('todoList',_0x3507fc('todoList')),_0x5f1912['enableCommand']('indentList',_0x369b65('indentList')),_0x5f1912['enableCommand']('outdentList',_0x369b65('outdentList')),_0x166e0a&&_0x5f1912['enableCommand']('checkTodoList',()=>{const _0x255e07=_0x493b89['commands']['get']('checkTodoList'),_0x10ff9b=Array['from'](_0x255e07['_selectedElements']);_0x10ff9b['filter'](_0x239905=>_0x239905['getAttribute']('todoListChecked')!=_0x255e07['value']),_0x493b89['model']['change'](()=>{for(const _0x3ea1be of _0x10ff9b)_0x5f1912['markBlockFormat'](_0x3ea1be,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x255e07['value']}]});});}),_0x5f1912['descriptionFactory']['registerElementLabel']('listItem',_0xee93ac=>o(_0x56b342,'ELEMENT_LIST_ITEM',_0xee93ac)),_0x5f1912['descriptionFactory']['registerDescriptionCallback'](_0x5a5737=>{if('formatBlock'!=_0x5a5737['type']&&'formatInline'!=_0x5a5737['type'])return;const {data:_0x4df814}=_0x5a5737;if(_0x4df814){if('numberedList'==_0x4df814['commandName']||'bulletedList'==_0x4df814['commandName']||'todoList'==_0x4df814['commandName'])switch(_0x4df814['commandName']['replace']('List','')){case'bulleted':return _0x4c9761(o(_0x56b342,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c9761(o(_0x56b342,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c9761(o(_0x56b342,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Indent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4df814['commandName'])return{'type':'format','content':o(_0x56b342,'*Outdent:*\x20%0',o(_0x56b342,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4df814['commandName'])return _0x4df814['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56b342,'*Check\x20item*')}:{'type':'format','content':o(_0x56b342,'*Uncheck\x20item*')};}function _0x4c9761(_0x17ffbf){return{'type':'format','content':o(_0x56b342,'*Change\x20to:*\x20%0',_0x17ffbf)};}});}}function Le(_0x20a0a4){const _0x59864a=_0x20a0a4['getAttribute']('listIndent');if(0x0==_0x59864a)return _0x20a0a4;let _0x6340d0=_0x20a0a4;for(;_0x20a0a4['previousSibling']&&_0x20a0a4['previousSibling']['is']('element','listItem');){const _0x393e74=_0x20a0a4['previousSibling']['getAttribute']('listIndent');if(_0x393e74==_0x59864a)_0x6340d0=_0x20a0a4['previousSibling'];else{if(_0x393e74<_0x59864a)break;}_0x20a0a4=_0x20a0a4['previousSibling'];}return _0x6340d0;}function Ee(_0x208a89){const _0xb51103=[];if(_0x208a89['is']('element','listItem')&&_0x208a89['getAttribute']('listIndent')>0x0){let _0x2763db=_0x208a89['nextSibling'];for(;_0x2763db&&'listItem'==_0x2763db['name']&&_0x2763db['getAttribute']('listIndent')==_0x208a89['getAttribute']('listIndent');)_0xb51103['push'](_0x2763db),_0x2763db=_0x2763db['nextSibling'];}return _0xb51103;}class ht extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3dd649=this['editor']['config']['get']('list.properties'),_0x49fd29=this['editor']['plugins']['get']('TrackChangesEditing');_0x3dd649['styles']&&_0x49fd29['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3dd649['reversed']&&_0x49fd29['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3dd649['startIndex']&&_0x49fd29['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49fd29['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1cb434,_0x3d5bf8={}){const _0x336e6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd91a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x336e6e['markMultiRangeBlockFormat'](_0x1dd91a,{'commandName':'listStyle','commandParams':[{'type':_0x3d5bf8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x325117,_0x7fac0c={}){const _0x23b5cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23d3b0=this['_getSuggestionBlocks'](_0x10dbca=>_0x10dbca['is']('element','listItem')&&'numbered'===_0x10dbca['getAttribute']('listType'));if(_0x23d3b0['length']<0x1)return;const _0x415859=_0x23d3b0['map'](_0x479bf4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x479bf4,'before'),this['editor']['model']['createPositionAt'](_0x479bf4,0x0)));this['editor']['model']['change'](()=>{_0x23b5cf['markMultiRangeBlockFormat'](_0x415859,{'commandName':'listReversed','commandParams':[{'reversed':_0x7fac0c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x796fe,_0x578a22={}){const _0x2523fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c10fb=this['_getSuggestionBlocks'](_0x27e609=>_0x27e609['is']('element','listItem')&&'numbered'===_0x27e609['getAttribute']('listType'));if(_0x2c10fb['length']<0x1)return;const _0x2f0e7e=_0x2c10fb['map'](_0x53eefb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53eefb,'before'),this['editor']['model']['createPositionAt'](_0x53eefb,0x0)));this['editor']['model']['change'](()=>{_0x2523fe['markMultiRangeBlockFormat'](_0x2f0e7e,{'commandName':'listStart','commandParams':[{'startIndex':_0x578a22['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x598cf5){if('formatBlock'!=_0x598cf5['type']&&'formatInline'!=_0x598cf5['type'])return;const _0x2522dd=this['editor']['locale'],{data:_0x1e3cde}=_0x598cf5;if(!_0x1e3cde)return;let _0x6b3806,_0x80458c;switch(_0x1e3cde['commandName']){case'listStyle':_0x6b3806='*Change\x20to:*\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,o(_0x2522dd,this['_getTranslationKeyForListStyle'](_0x1e3cde['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6b3806=_0x1e3cde['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806)};break;case'listStart':_0x6b3806='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x80458c={'type':'format','content':o(_0x2522dd,_0x6b3806,_0x1e3cde['commandParams'][0x0]['startIndex'])};}return _0x80458c;}['_getSuggestionBlocksForListStyle'](){const _0x403319=this['editor']['plugins']['get']('LegacyListUtils');let _0x400b62=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x400b62[0x0]?.['is']('element','listItem')&&_0x400b62['unshift'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x400b62[_0x400b62['length']-0x1]?.['is']('element','listItem')&&_0x400b62['push'](..._0x403319['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x400b62=[...new Set(_0x400b62)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x400b62=_0x400b62['filter'](_0x39834f=>_0x39834f['is']('element','listItem'))),_0x400b62;}['_getSuggestionBlocks'](_0xc3cd1){const _0x438eb5=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c2b89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc3cd1)['map'](_0x46a1a3=>{const _0x12b5c3=this['editor']['model']['createPositionAt'](_0x46a1a3,0x0);return[..._0x438eb5['getSiblingNodes'](_0x12b5c3,'backward'),..._0x438eb5['getSiblingNodes'](_0x12b5c3,'forward')];})['flat']();return _0x5c2b89=[...new Set(_0x5c2b89)],_0x5c2b89;}['_getTranslationKeyForListStyle'](_0x53fb3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x53fb3e)||'default')['toUpperCase']()+'_LIST_'+_0x53fb3e['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xfd4522{['afterInit'](){const _0x5d87d0=this['editor'];if(!_0x5d87d0['plugins']['has']('MediaEmbedEditing'))return;const _0x23c36e=_0x5d87d0['plugins']['get']('TrackChangesEditing'),_0x387bf4=_0x5d87d0['locale'];_0x23c36e['enableCommand']('mediaEmbed'),_0x23c36e['descriptionFactory']['registerElementLabel']('media',_0x4bba14=>o(_0x387bf4,'ELEMENT_MEDIA',_0x4bba14)),_0x5d87d0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x372a5f,{writer:_0x319a51,options:_0x58e4ba})=>{if(_0x58e4ba['showSuggestionHighlights'])return _0x319a51['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d87d0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2db39c,_0x8b3017,_0x27e35c)=>{_0x27e35c['options']['showSuggestionHighlights']&&_0x2db39c['stop']();},{'priority':'high'});}}class lt extends _0xfd4522{['afterInit'](){const _0x4242bb=this['editor'];_0x4242bb['plugins']['has']('MentionEditing')&&_0x4242bb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xfd4522{['afterInit'](){const _0x35be38=this['editor'];if(!_0x35be38['plugins']['has']('MergeFieldsEditing'))return;const _0x219e4d=_0x35be38['plugins']['get']('TrackChangesEditing'),_0x3a17bb=_0x35be38['locale'];_0x219e4d['enableCommand']('insertMergeField'),_0x219e4d['enableCommand']('insertMergeFieldBlock'),_0x219e4d['enableCommand']('insertMergeFieldImage'),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeField',_0x735578=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x735578)),_0x219e4d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3d1b21=>o(_0x3a17bb,'ELEMENT_MERGE_FIELD',_0x3d1b21)),_0x219e4d['descriptionFactory']['registerDescriptionCallback'](_0x3d862c=>{if('insertion'!=_0x3d862c['type']&&'deletion'!=_0x3d862c['type'])return;const _0x1e97e0=_0x3d862c['getContainedElement']();if(null==_0x1e97e0)return;const _0x521c4a=_0x35be38['plugins']['get']('MergeFieldsEditing');let _0x5db1cb;switch(_0x521c4a['getMergeFieldType'](_0x1e97e0)){case null:return;case'image':{const _0x5bf504=_0x521c4a['unwrapAffixes'](_0x1e97e0['getAttribute']('src'));_0x5db1cb=_0x521c4a['getLabel'](_0x5bf504)||_0x5bf504;break;}default:{const _0x3401fc=_0x1e97e0['getAttribute']('id');_0x5db1cb=_0x521c4a['getLabel'](_0x3401fc)||_0x3401fc;break;}}return'insertion'==_0x3d862c['type']?{'type':'insertion','content':o(_0x3a17bb,'*Insert:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3a17bb,'*Remove:*\x20%0','\x22'+_0x5db1cb+'\x22\x20'+o(_0x3a17bb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xfd4522{['afterInit'](){const _0x3061d4=this['editor'],_0x2aa4ca=_0x3061d4['plugins']['get']('TrackChangesEditing');_0x3061d4['plugins']['has']('MultiLevelList')&&(_0x2aa4ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x2aa4ca['registerBlockAttribute']('listMarkerStyle'),_0x2aa4ca['descriptionFactory']['registerDescriptionCallback'](_0x3466e6=>this['handleDescriptions'](_0x3466e6)));}['handleDescriptions'](_0x5dd804){const _0x17a401=this['editor']['locale'],{data:_0x3cf270}=_0x5dd804,_0x2a22d8={'type':'format','content':''};if(_0x3cf270&&'listMarkerStyle'==_0x3cf270['key']){if(!_0x3cf270['oldValue'])return{'type':'format','content':o(_0x17a401,'*Set\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['newValue']+')'};if(!_0x3cf270['newValue']){let _0x553beb=_0x5dd804['head'];for(;_0x553beb;){if(_0x553beb['data']&&'listType'==_0x553beb['data']['key']&&_0x553beb['data']['newValue'])return _0x2a22d8;_0x553beb=_0x553beb['next'];}return{'type':'format','content':o(_0x17a401,'*Remove\x20format:*\x20%0',o(_0x17a401,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3cf270['oldValue']+')'};}}}}class pt extends _0xfd4522{['afterInit'](){const _0x26d9da=this['editor'];if(!_0x26d9da['plugins']['has']('PageBreakEditing'))return;_0x26d9da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c6132=_0x26d9da['plugins']['get']('TrackChangesEditing'),_0x39a67b=_0x26d9da['locale'];_0x4c6132['descriptionFactory']['registerElementLabel']('pageBreak',_0x58e448=>o(_0x39a67b,'ELEMENT_PAGE_BREAK',_0x58e448));}}class kt extends _0xfd4522{['afterInit'](){const _0x15b996=this['editor'];if(!_0x15b996['plugins']['has']('Paragraph'))return;const _0x4c07fb=_0x15b996['locale'],_0x5c3e3e=_0x15b996['plugins']['get']('TrackChangesEditing');_0x5c3e3e['descriptionFactory']['registerElementLabel']('paragraph',_0x5758c8=>o(_0x4c07fb,'ELEMENT_PARAGRAPH',_0x5758c8)),_0x5c3e3e['enableDefaultAttributesIntegration']('paragraph'),_0x5c3e3e['enableCommand']('insertParagraph'),_0x15b996['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x15b996),{'priority':'highest'}),_0x15b996['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ad657,_0x471db4,_0x2481ed)=>{_0x2481ed['options']['showSuggestionHighlights']&&nr(_0x15b996,{'showActiveMarker':!0x1})(_0x5ad657,_0x471db4,_0x2481ed);},{'priority':'highest'});const _0x588399=_0x5c3e3e['descriptionFactory'];_0x588399['registerDescriptionCallback'](_0x44823f=>{if('insertion'!==_0x44823f['type'])return;const {start:_0x1666ff,end:_0x2cba15}=_0x44823f['getFirstRange']();if(!_0x1666ff['isTouching'](_0x2cba15)||!_0x1666ff['nodeAfter'])return;const _0x2c5de9=_0x15b996['model']['schema'],_0x48ddcd=_0x1666ff['nodeAfter'];return _0x2c5de9['isBlock'](_0x48ddcd)&&!_0x2c5de9['isLimit'](_0x48ddcd)&&_0x2c5de9['checkChild'](_0x48ddcd,'$text')?{'type':'insertion','content':o(_0x4c07fb,'*Insert:*\x20%0',_0x588399['getItemLabel'](_0x48ddcd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20081b=this['editor'],_0x394fad=_0x20081b['locale'];_0x20081b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e7d50=>{if('formatBlock'!=_0x1e7d50['type'])return;const {data:_0x51664f}=_0x1e7d50;return _0x51664f&&'paragraph'==_0x51664f['commandName']?{'type':'format','content':o(_0x394fad,'*Change\x20to:*\x20%0',o(_0x394fad,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x41a788,{showActiveMarker:_0x239be4=!0x0}={}){return(_0x493c1e,_0x1c9e37,_0x235c41)=>{const _0x3203fc=_0x41a788['plugins']['get']('TrackChangesEditing'),_0x2bc607=_0x1c9e37['markerRange']['start'],_0x264412=_0x1c9e37['markerRange']['end'],_0x5b7943=_0x41a788['model']['schema'];if(!_0x2bc607['isTouching'](_0x264412)||!_0x2bc607['nodeAfter'])return;const _0x45215e=_0x2bc607['nodeAfter'];if(_0x5b7943['isBlock'](_0x45215e)&&!_0x5b7943['isLimit'](_0x45215e)&&_0x5b7943['checkChild'](_0x45215e,'$text')){if(!_0x235c41['consumable']['consume'](_0x1c9e37['markerRange'],_0x493c1e['name']))return;const {id:_0x5ce44a,authorId:_0x4137b2}=_0x3203fc['_splitMarkerName'](_0x1c9e37['markerName']),_0x4297f1=_0x235c41['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5ce44a,'data-author-id':_0x4137b2}),_0x1c54b0=_0x235c41['mapper']['toViewPosition'](_0x264412);_0x239be4&&_0x3203fc['activeMarkers']['includes'](_0x1c9e37['markerName'])&&_0x235c41['writer']['addClass']('ck-suggestion-marker--active',_0x4297f1),_0x235c41['writer']['insert'](_0x1c54b0,_0x4297f1),_0x235c41['mapper']['bindElementToMarker'](_0x4297f1,_0x1c9e37['markerName']);}};}class wt extends _0xfd4522{['afterInit'](){const _0x2e8e3e=this['editor'];_0x2e8e3e['commands']['get']('replaceSource')&&_0x2e8e3e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xfd4522{['afterInit'](){const _0x3b6192=this['editor'];if(!_0x3b6192['plugins']['has']('RemoveFormatEditing'))return;_0x3b6192['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234848=this['editor'];_0x234848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dc75c=>{if('formatBlock'!=_0x5dc75c['type']&&'formatInline'!=_0x5dc75c['type'])return;const {data:_0x328145}=_0x5dc75c;return _0x328145&&'removeFormat'==_0x328145['commandName']?{'type':'format','content':o(_0x234848['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xfd4522{['afterInit'](){const _0x1fc420=this['editor'];if(!_0x1fc420['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2460be=_0x1fc420['plugins']['get']('TrackChangesEditing');_0x2460be['enableCommand']('goToPreviousRestrictedEditingException'),_0x2460be['enableCommand']('goToNextRestrictedEditingException');const _0x69ee74=_0x1fc420['plugins']['get']('RestrictedEditingModeEditing');_0x69ee74['enableCommand']('trackChanges'),_0x69ee74['enableCommand']('acceptSuggestion'),_0x69ee74['enableCommand']('discardSuggestion'),_0x69ee74['enableCommand']('acceptAllSuggestions'),_0x69ee74['enableCommand']('discardAllSuggestions'),_0x69ee74['enableCommand']('acceptSelectedSuggestions'),_0x69ee74['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xfd4522{['afterInit'](){const _0x46b8b7=this['editor'];if(!_0x46b8b7['plugins']['has']('ShiftEnter'))return;const _0x54b851=_0x46b8b7['plugins']['get']('TrackChangesEditing');_0x54b851['enableCommand']('shiftEnter'),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x46b8b7),{'priority':'high'}),_0x46b8b7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x54707e,_0x56cfbb,_0x298180)=>{_0x298180['options']['showSuggestionHighlights']&&je(_0x46b8b7,{'showActiveMarker':!0x1})(_0x54707e,_0x56cfbb,_0x298180);}),_0x54b851['descriptionFactory']['registerElementLabel']('softBreak',_0x58a064=>o(_0x46b8b7['locale'],'ELEMENT_LINE_BREAK',_0x58a064));}}function je(_0x391295,{showActiveMarker:_0x181037=!0x0}={}){return(_0x1ca27b,_0x5524b2,_0x441ea6)=>{const _0x38b8cc=_0x391295['plugins']['get']('TrackChangesEditing');if(!_0x441ea6['consumable']['test'](_0x5524b2['markerRange'],_0x1ca27b['name']))return;const _0x31b4f6=_0x391295['model'];for(const _0x465903 of _0x5524b2['markerRange']['getItems']()){if(!_0x465903['is']('element','softBreak'))continue;const _0x536504='deletion'==_0x5524b2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2deafd,authorId:_0x4525fa}=_0x38b8cc['_splitMarkerName'](_0x5524b2['markerName']),_0x4e90f7=_0x441ea6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x536504,'data-suggestion':_0x2deafd,'data-author-id':_0x4525fa}),_0x8e239c=_0x441ea6['mapper']['toViewPosition'](_0x31b4f6['createPositionBefore'](_0x465903));_0x181037&&_0x38b8cc['activeMarkers']['includes'](_0x5524b2['markerName'])&&_0x441ea6['writer']['addClass']('ck-suggestion-marker--active',_0x4e90f7),_0x441ea6['writer']['insert'](_0x8e239c,_0x4e90f7),_0x441ea6['mapper']['bindElementToMarker'](_0x4e90f7,_0x5524b2['markerName']);}};}class St extends _0xfd4522{['afterInit'](){const _0x510055=this['editor'],_0x1f54a4=_0x510055['model'],_0x11f0b5=_0x510055['locale'];if(!_0x510055['plugins']['has']('StandardEditingModeEditing'))return;const _0x107fe6=_0x510055['plugins']['get']('TrackChangesEditing'),_0x340952='restrictedEditingException',_0x4fbf1f=_0x510055['commands']['get'](_0x340952);_0x107fe6['enableCommand'](_0x340952,(_0x4ed4b3,_0x5a91f0={})=>{const _0x11ef21=_0x1f54a4['document']['selection'];if(_0x11ef21['isCollapsed'])return void _0x4ed4b3(_0x5a91f0);const _0x114705=void 0x0!==_0x5a91f0['forceValue']?_0x5a91f0['forceValue']:!_0x4fbf1f['value'];_0x1f54a4['change'](()=>{const _0x500210=Array['from'](_0x11ef21['getRanges']());for(const _0x2cc65d of _0x500210){const _0x558ad3=_0x114705?[_0x2cc65d]:io(_0x340952,_0x2cc65d,_0x1f54a4);for(const _0x3513a2 of _0x558ad3)_0x107fe6['markInlineFormat'](_0x3513a2,{'commandName':_0x340952,'commandParams':[{'forceValue':_0x114705}]});}});}),_0x107fe6['descriptionFactory']['registerDescriptionCallback'](_0xe7b925=>{if('formatBlock'!=_0xe7b925['type']&&'formatInline'!=_0xe7b925['type'])return;const {data:_0x39dd4c}=_0xe7b925;return _0x39dd4c&&_0x39dd4c['commandName']==_0x340952?_0x39dd4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11f0b5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xfd4522{['afterInit'](){const _0x10cce7=this['editor'];if(!_0x10cce7['plugins']['has']('Style')||!_0x10cce7['plugins']['has']('DataSchema'))return;const _0x25d2cc=_0x10cce7['plugins']['get']('TrackChangesEditing'),_0x24f0eb=_0x10cce7['locale'],_0x4d47c5=_0x10cce7['config']['get']('style')||{},_0x5c70d3=_0x10cce7['plugins']['get']('GeneralHtmlSupport'),_0x227773=_0x10cce7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10cce7['plugins']['get']('DataSchema'),_0x4d47c5['definitions']);_0x25d2cc['enableDefaultAttributesIntegration']('style');const _0x125320=new Set();for(const _0x226177 of _0x227773['block']){const _0x17d348=_0x5c70d3['getGhsAttributeNameForElement'](_0x226177['element']);_0x125320['add'](_0x17d348);}const _0x2bcde0=new Set();for(const _0x57da05 of _0x227773['inline']){const _0x487eab=_0x5c70d3['getGhsAttributeNameForElement'](_0x57da05['element']);_0x2bcde0['add'](_0x487eab);for(const _0x545fc1 of _0x57da05['ghsAttributes'])_0x2bcde0['add'](_0x545fc1);}for(const _0x75e48c of _0x125320)_0x25d2cc['registerBlockAttribute'](_0x75e48c),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x75e48c,o(_0x24f0eb,'FORMAT_STYLE'));for(const _0x16c0fb of _0x2bcde0)_0x25d2cc['registerInlineAttribute'](_0x16c0fb),_0x25d2cc['descriptionFactory']['registerAttributeLabel'](_0x16c0fb,o(_0x24f0eb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35fcad=this['editor'],_0x39325b=_0x35fcad['locale'];_0x35fcad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5156ed=>{if('formatBlock'!=_0x5156ed['type']&&'formatInline'!=_0x5156ed['type'])return;const {data:_0x13cab6}=_0x5156ed;return _0x13cab6&&'style'===_0x13cab6['commandName']?_0x13cab6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39325b,'*Set\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39325b,'*Remove\x20format:*\x20%0',_0x13cab6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xfd4522{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x580611){super(_0x580611),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15de90=this['editor'],_0x14dbdb=_0x15de90['model']['document']['selection'];if(!_0x15de90['plugins']['has']('TableEditing'))return;const _0x54213a=_0x15de90['locale'],_0x5a7f8c=_0x15de90['plugins']['get']('TrackChangesEditing'),_0x1cd652=_0x15de90['plugins']['get']('TableUtils');_0x5a7f8c['descriptionFactory']['registerElementLabel']('table',_0xb404a0=>o(_0x54213a,'ELEMENT_TABLE',_0xb404a0)),this['_setupColumnsRowsFixing'](),_0x5a7f8c['enableCommand']('insertTable'),_0x5a7f8c['enableCommand']('selectTableRow'),_0x5a7f8c['enableCommand']('selectTableColumn');for(const _0x44bf70 of['insertTableRowAbove','insertTableRowBelow']){const _0x3627b9=_0x15de90['commands']['get'](_0x44bf70);_0x5a7f8c['enableCommand'](_0x44bf70,_0x2fc8fc=>{_0x15de90['model']['change'](_0x36709b=>{_0x2fc8fc();const _0x299f4a='above'===_0x3627b9['order'],_0x1e7e1c=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x131cfa=_0x1cd652['getRowIndexes'](_0x1e7e1c),_0x599adb=_0x299f4a?_0x131cfa['first']-0x1:_0x131cfa['last']+0x1,_0x304ee4=_0x1e7e1c[0x0]['findAncestor']('table'),_0x46f737=_0x1cd652['createTableWalker'](_0x304ee4,{'startRow':_0x599adb,'endRow':_0x599adb}),_0x5a99ed=Array['from'](_0x46f737)['map'](_0x1ecfd4=>_0x36709b['createRangeOn'](_0x1ecfd4['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5a99ed,'tableRow');});});}for(const _0x50a3e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5182ac=_0x15de90['commands']['get'](_0x50a3e6);_0x5a7f8c['enableCommand'](_0x50a3e6,_0x1903b9=>{_0x15de90['model']['change'](_0x5824a4=>{_0x1903b9();const _0x5e368a='left'===_0x5182ac['order'],_0x54f798=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x1221bf=_0x1cd652['getColumnIndexes'](_0x54f798),_0x35edbb=_0x5e368a?_0x1221bf['first']-0x1:_0x1221bf['last']+0x1,_0x49cf0f=_0x54f798[0x0]['findAncestor']('table'),_0x168958=_0x1cd652['createTableWalker'](_0x49cf0f,{'startRow':0x0,'column':_0x35edbb,'includeAllSlots':!0x1}),_0x5e3fe0=Array['from'](_0x168958)['map'](_0x2982d3=>_0x5824a4['createRangeOn'](_0x2982d3['cell']));_0x5a7f8c['markMultiRangeInsertion'](_0x5e3fe0,'tableColumn');});});}for(const _0x4a59f5 of['removeTableRow','removeTableColumn']){const _0x2be7d1=_0x4a59f5['substr'](0xb),_0x5765f9=_0x2be7d1['toLowerCase'](),_0x22c34b=_0x5765f9['substr'](0x0,0x3)+'span',_0x15d40b='table'+_0x2be7d1,_0xf8e69='min'+_0x2be7d1,_0x59d82a='max'+_0x2be7d1;_0x5a7f8c['enableCommand'](_0x4a59f5,()=>{_0x15de90['model']['change'](_0x69d832=>{const _0x2f7b74=_0x1cd652['getSelectionAffectedTableCells'](_0x14dbdb),_0x2d32fc=_0x2f7b74[0x0]['findAncestor']('table');let _0x55ac7c;if('removeTableRow'==_0x4a59f5){const _0x41c0e8=_0x1cd652['getRowIndexes'](_0x2f7b74);_0x55ac7c={'startRow':_0x41c0e8['first'],'endRow':_0x41c0e8['last'],'includeAllSlots':!0x0};}else{const _0x540bbc=_0x1cd652['getColumnIndexes'](_0x2f7b74);_0x55ac7c={'startColumn':_0x540bbc['first'],'endColumn':_0x540bbc['last'],'includeAllSlots':!0x0};}const _0x495a5e=_0x1cd652['createTableWalker'](_0x2d32fc,_0x55ac7c),_0x5a593d=Array['from'](_0x495a5e)['map'](({cell:_0xb9daaa})=>_0xb9daaa),_0x122ef8=Ne(_0x5a593d['filter'](_0x59eb47=>_0x59eb47['hasAttribute'](_0x22c34b))),_0x310b3b=Ne(_0x5a593d['filter'](_0x4d8937=>!_0x4d8937['hasAttribute'](_0x22c34b)))['map'](_0x242134=>_0x69d832['createRangeOn'](_0x242134)),_0x34845b=_0x5a7f8c['markMultiRangeDeletion'](_0x310b3b,_0x15d40b);if(_0x34845b&&('tableRow'==_0x34845b['subType']||'tableColumn'==_0x34845b['subType'])){const _0x42d2ab=this['_getSuggestionCoords'](_0x34845b);for(const _0x432754 of _0x122ef8){const _0x9e5ffa=_0x69d832['createRangeOn'](_0x432754),_0x4970cf=_0x1cd652['getCellLocation'](_0x432754),_0x3b6a90=_0x432754['getAttribute'](_0x22c34b)-0x1,_0x22fa5d=_0x42d2ab[_0xf8e69],_0x436037=_0x42d2ab[_0x59d82a];_0x22fa5d<=_0x4970cf[_0x5765f9]&&_0x4970cf[_0x5765f9]+_0x3b6a90<=_0x436037&&_0x34845b['addRange'](_0x9e5ffa);}}});});}function _0x5e38be(_0x2bd501){const _0x54e855=Array['from'](_0x14dbdb['getRanges']())['map'](_0x253bd7=>_0x217d71['fromRange'](_0x253bd7));_0x15de90['model']['change'](_0x8c7e11=>{const _0x5d44d7=_0x8c7e11['batch'];_0x2bd501=_0x2bd501['filter'](_0x51289a=>'$graveyard'!=_0x51289a['root']['rootName']),_0x8c7e11['setSelection'](_0x2bd501),_0x15de90['commands']['get']('removeTableRow')['refresh'](),_0x15de90['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15de90['model']['enqueueChange'](()=>{_0x15de90['model']['enqueueChange'](_0x5d44d7,_0x56d1b1=>{const _0x51005d=_0x54e855['filter'](_0x55c1fa=>'$graveyard'!=_0x55c1fa['root']['rootName']);_0x51005d['length']>0x0&&_0x56d1b1['setSelection'](_0x51005d);for(const _0x4a50db of _0x54e855)_0x4a50db['detach']();});});});}function _0x128f0f(_0x519120){_0x15de90['model']['change'](_0x50da0f=>{const _0x50fe25=Array['from'](_0x14dbdb['getRanges']())['map'](_0x44dfd0=>_0x217d71['fromRange'](_0x44dfd0)),_0x41fd05=[];for(const _0x3b56fe of _0x519120)for(const _0x491eb0 of _0x3b56fe['getItems']({'shallow':!0x0}))_0x41fd05['push'](_0x491eb0);for(const _0x49e775 of _0x41fd05)'$graveyard'!=_0x49e775['root']['rootName']&&(_0x50da0f['setSelection'](_0x50da0f['createPositionAt'](_0x49e775,0x0)),_0x15de90['commands']['get']('removeTableColumn')['refresh'](),_0x15de90['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1c2238=_0x50fe25['filter'](_0x5c1c22=>'$graveyard'!=_0x5c1c22['root']['rootName']);_0x1c2238['length']>0x0&&_0x50da0f['setSelection'](_0x1c2238);for(const _0x2a2223 of _0x50fe25)_0x2a2223['detach']();});}function _0x3de3a7(_0x1a2610,_0x453a54){return _0x453a54['every'](_0xa4a9b6=>_0x1a2610['some'](_0x21767d=>_0x21767d['end']['isEqual'](_0xa4a9b6['start'])||_0xa4a9b6['end']['isEqual'](_0x21767d['start'])));}function _0x12378f(_0x562e9e,_0x220320){return!_0x562e9e['some'](_0xfb0bde=>_0x220320['some'](_0x1f25ab=>_0xfb0bde['isIntersecting'](_0x1f25ab)))&&_0x562e9e['some'](_0x498fd7=>_0x220320['some'](_0x52cce0=>_0x498fd7['end']['isTouching'](_0x52cce0['start'])));}_0x15de90['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x399785,_0x52c81a,_0x47ea63)=>{if(!_0x47ea63['options']['showSuggestionHighlights'])return;const _0x1596ed=_0x52c81a['item'];if(!_0x1596ed||!_0x1596ed['is']('element','tableCell'))return;const _0x3e560f=_0x47ea63['mapper']['toViewElement'](_0x1596ed);if(_0x3e560f){const {id:_0x245e59,authorId:_0xa5c063}=_0x5a7f8c['_splitMarkerName'](_0x52c81a['markerName']);_0x352865(_0x3e560f,_0x47ea63['writer'],(_0x4ccae9,_0x48bdcd,_0x36aa9c)=>{_0x36aa9c['addClass'](_0xd850df(_0x48bdcd['classes']),_0x4ccae9),_0x36aa9c['setAttribute']('data-suggestion-id',_0x245e59,_0x4ccae9),_0x36aa9c['setAttribute']('data-author-id',_0xa5c063,_0x4ccae9);},(_0x66e40b,_0x392b64,_0x32af8f)=>{_0x32af8f['removeClass'](_0xd850df(_0x392b64['classes']),_0x66e40b),_0x32af8f['removeAttribute']('data-suggestion-id',_0x66e40b),_0x32af8f['removeAttribute']('data-author-id',_0x66e40b);});}},{'priority':'highest'}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x2fce72=>{if('insertion'!=_0x2fce72['type']&&'deletion'!=_0x2fce72['type'])return;const _0x14b817=_0x2fce72['getContainedElement']();if(null!=_0x14b817&&_0x14b817['is']('element','table')){if('insertion'==_0x2fce72['type']){const _0x259d5e=_0x2fce72['getItems']()['filter'](_0x2514c3=>_0x2514c3['is']('$textProxy'))['map'](_0x18a8d2=>_0x18a8d2['data']);if(_0x259d5e['length'])return{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x259d5e['join']('\x20')+'\x22'))};}if('deletion'==_0x2fce72['type']){const _0x28839e=_0x2fce72['getItems']()['filter'](_0x5b8eaf=>_0x5b8eaf['is']('$textProxy'))['map'](_0x3a4701=>_0x3a4701['data']);if(_0x28839e['length'])return{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28839e['join']('\x20')+'\x22'))};}}}),_0x5a7f8c['descriptionFactory']['registerDescriptionCallback'](_0x4da785=>{if('tableRow'==_0x4da785['subType']){const _0x271425=_0x4da785['getItems']()['filter'](_0x332909=>_0x332909['is']('$textProxy'))['map'](_0x5438f0=>_0x5438f0['data']),_0x5c5429=this['_getSuggestionCoords'](_0x4da785),_0x54d4b9=_0x5c5429['maxRow']-_0x5c5429['minRow']+0x1;if('insertion'==_0x4da785['type'])return _0x271425['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};if('deletion'==_0x4da785['type'])return _0x271425['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x54d4b9,'\x22'+_0x271425['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_ROW',_0x54d4b9))};}if('tableColumn'==_0x4da785['subType']){const _0x146546=_0x4da785['getItems']()['filter'](_0x46a20e=>_0x46a20e['is']('$textProxy'))['map'](_0x13f715=>_0x13f715['data']),_0x4c336a=this['_getSuggestionCoords'](_0x4da785),_0x5d183b=_0x4c336a['maxColumn']-_0x4c336a['minColumn']+0x1;if('insertion'==_0x4da785['type'])return _0x146546['length']?{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54213a,'*Insert:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};if('deletion'==_0x4da785['type'])return _0x146546['length']?{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d183b,'\x22'+_0x146546['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54213a,'*Remove:*\x20%0',o(_0x54213a,'ELEMENT_TABLE_COLUMN',_0x5d183b))};}}),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e38be),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x128f0f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3de3a7),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12378f),_0x5a7f8c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12378f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x44accc=this['editor'],_0x14d562=_0x44accc['model']['document']['selection'];return(_0x20bb59,_0x1f89dd)=>{_0x44accc['model']['change'](_0x55c642=>{const {commandName:_0x3c0f0c,commandParams:_0x29a5b3}=_0x1f89dd;let _0x4cf339=_0x20bb59[0x0]['end']['nodeBefore'];_0x29a5b3&&_0x29a5b3[0x0]&&!0x1===_0x29a5b3[0x0]['forceValue']&&(_0x4cf339=_0x20bb59[0x0]['start']['nodeAfter']);const _0x3c3feb=_0x55c642['createRangeIn'](_0x4cf339);if('$graveyard'==_0x3c3feb['root']['rootName'])return;const _0x15cbf7=Array['from'](_0x14d562['getRanges']())['map'](_0x131137=>_0x217d71['fromRange'](_0x131137));_0x55c642['setSelection'](_0x3c3feb),_0x44accc['commands']['get'](_0x3c0f0c)['refresh'](),_0x29a5b3['push']({'forceDefaultExecution':!0x0}),_0x44accc['execute'](_0x3c0f0c,..._0x29a5b3);const _0x362391=_0x15cbf7['filter'](_0x3f0e53=>'$graveyard'!=_0x3f0e53['root']['rootName']);_0x362391['length']>0x0&&_0x55c642['setSelection'](_0x362391);for(const _0x1edee9 of _0x15cbf7)_0x1edee9['detach']();});};}['_getCoordsForCells'](_0x194739){const _0x361a3c=this['editor']['plugins']['get']('TableUtils');let _0x464d35=Number['MAX_SAFE_INTEGER'],_0x205592=Number['MIN_SAFE_INTEGER'],_0x7c7fbb=Number['MAX_SAFE_INTEGER'],_0x50fad=Number['MIN_SAFE_INTEGER'];for(const _0x4e936d of _0x194739){if('$graveyard'==_0x4e936d['root']['rootName'])continue;const {row:_0x1c472a,column:_0x54b9c2}=_0x361a3c['getCellLocation'](_0x4e936d),_0x4470e7=_0x4e936d['hasAttribute']('rowspan')?_0x4e936d['getAttribute']('rowspan')-0x1:0x0,_0x402044=_0x4e936d['hasAttribute']('colspan')?_0x4e936d['getAttribute']('colspan')-0x1:0x0;_0x464d35=_0x1c472a<_0x464d35?_0x1c472a:_0x464d35,_0x205592=_0x1c472a+_0x4470e7>_0x205592?_0x1c472a+_0x4470e7:_0x205592,_0x7c7fbb=_0x54b9c2<_0x7c7fbb?_0x54b9c2:_0x7c7fbb,_0x50fad=_0x54b9c2+_0x402044>_0x50fad?_0x54b9c2+_0x402044:_0x50fad;}return{'minRow':_0x464d35,'maxRow':_0x205592,'minColumn':_0x7c7fbb,'maxColumn':_0x50fad};}['_setupColumnsRowsFixing'](){const _0x3e8e72=this['editor'],_0x1411fa=_0x3e8e72['plugins']['get']('TrackChangesEditing'),_0x239ab2=_0x3e8e72['plugins']['get']('TableUtils');_0x3e8e72['model']['document']['on']('change:data',()=>{const _0x4c67f1=Array['from'](_0x3e8e72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x260fe2,data:_0x5ed05a}of _0x4c67f1){const {group:_0x304797,id:_0x554dfe,subType:_0x3d4824}=_0x1411fa['_splitMarkerName'](_0x260fe2);if('suggestion'!=_0x304797)continue;if(null!=_0x5ed05a['oldRange'])continue;const _0x46f196=_0x1411fa['getSuggestion'](_0x554dfe);this['_tablePostFixingSubtypes']['includes'](_0x3d4824)&&this['_tableSuggestions']['add'](_0x46f196);}},{'priority':'low'});const _0x36a835=(_0x1ed602,_0x476a95)=>{let _0x58e449=!0x1;const _0x330ada=_0x476a95['createRangeOn'](_0x1ed602),_0x2fa34b=_0x1ed602['findAncestor']('table'),_0x36480c=_0x239ab2['getCellLocation'](_0x1ed602);for(const _0x53ddb8 of this['_tableSuggestions']){const _0x2121c5=_0x53ddb8['subType'],_0x14dab7=_0x2121c5['startsWith']('tablePaste'),_0x105cc6=_0x2121c5['substr'](_0x14dab7?0xa:0x5),_0x1086c3=_0x105cc6['toLowerCase'](),_0x40c04d=_0x1086c3['substr'](0x0,0x3)+'span',_0x425da6='min'+_0x105cc6,_0x5c699f='max'+_0x105cc6;if(!_0x53ddb8['isInContent'])continue;if(_0x2fa34b!=_0x53ddb8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x53ddb8['isIntersectingWithRange'](_0x330ada))continue;const _0x1a2014=_0x1ed602['hasAttribute'](_0x40c04d)?_0x1ed602['getAttribute'](_0x40c04d)-0x1:0x0,_0x6663c0=this['_getSuggestionCoords'](_0x53ddb8),_0x34ae79=_0x6663c0[_0x425da6],_0x198a11=_0x6663c0[_0x5c699f];_0x34ae79<=_0x36480c[_0x1086c3]&&_0x36480c[_0x1086c3]+_0x1a2014<=_0x198a11&&(_0x53ddb8['addRange'](_0x330ada),_0x58e449=!0x0);}return _0x58e449;};_0x3e8e72['model']['document']['registerPostFixer'](_0x444006=>{let _0x5bf1a1=!0x1;for(const _0x3192ea of _0x3e8e72['model']['document']['differ']['getChanges']())if('insert'==_0x3192ea['type']){if('tableRow'==_0x3192ea['name']){for(const _0x2b6642 of _0x3192ea['position']['nodeAfter']['getChildren']())_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x2b6642,_0x444006);}else'tableCell'==_0x3192ea['name']&&(_0x5bf1a1=_0x5bf1a1||_0x36a835(_0x3192ea['position']['nodeAfter'],_0x444006));}return _0x5bf1a1;});}['_getSuggestionCoords'](_0x2720af){return this['_getCoordsForCells'](_0x2720af['getRanges']()['map'](_0x415c51=>_0x415c51['start']['nodeAfter']));}}function Ne(_0x549a2f){return Array['from'](new Set(_0x549a2f)['values']());}class _t extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x4f7c5f=this['editor'],_0x5843bb=_0x4f7c5f['model']['document']['selection'],_0x3de2e0=_0x4f7c5f['locale'];if(!_0x4f7c5f['plugins']['has']('TableEditing'))return;const _0x179a39=_0x4f7c5f['plugins']['get']('TrackChangesEditing'),_0x2c7687=_0x4f7c5f['plugins']['get']('TableUtils'),_0x235e76=_0x4f7c5f['plugins']['get'](At);_0x235e76['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179a39['enableCommand']('mergeTableCells',()=>{const _0x40dc3e=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection']);_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat'](_0x40dc3e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f7c5f['commands']['get']('mergeTableCells')['on']('execute',(_0x102e27,_0x4c474c)=>{_0x4f7c5f['commands']['get']('trackChanges')['value']&&(_0x4c474c['length']>0x0&&_0x4c474c[_0x4c474c['length']-0x1]&&_0x4c474c[_0x4c474c['length']-0x1]['forceDefaultExecution']||_0x179a39['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x102e27['stop']());},{'priority':'highest'});for(const _0x4e777e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x590e92=_0x4f7c5f['commands']['get'](_0x4e777e);_0x179a39['enableCommand'](_0x4e777e,()=>{const _0x22edd6=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a1e5=>_0x13a1e5['is']('element','tableCell')),_0x1f9529=_0x590e92['value'];_0x4f7c5f['model']['change'](()=>{_0x179a39['markMultiRangeBlockFormat']([_0x22edd6,_0x1f9529],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5366c2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x26fe14=_0x4f7c5f['commands']['get'](_0x5366c2);_0x179a39['enableCommand'](_0x5366c2,()=>{const _0x53acc6=_0x2c7687['getSelectionAffectedTableCells'](_0x4f7c5f['model']['document']['selection'])[0x0],_0x2c24a4=_0x53acc6['findAncestor']('table'),{column:_0x303665,row:_0x215b14}=_0x2c7687['getCellLocation'](_0x53acc6);let _0xb07462=[];if('horizontally'==_0x26fe14['direction']){const _0x2ed02b=_0x2c7687['createTableWalker'](_0x2c24a4,{'startRow':_0x215b14,'endRow':_0x215b14,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x2ed02b)['map'](_0x5398e5=>_0x5398e5['cell']);}else{const _0x22d5c8=_0x2c7687['createTableWalker'](_0x2c24a4,{'column':_0x303665,'includeAllSlots':!0x0});_0xb07462=Array['from'](_0x22d5c8)['map'](_0x10ff66=>_0x10ff66['cell']);}_0x4f7c5f['model']['change'](_0x18b7b0=>{_0x179a39['markBlockFormat'](_0x18b7b0['createRangeOn'](_0x53acc6),{'commandName':_0x5366c2,'commandParams':[]},_0xb07462,_0x5366c2);});});}_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x1c65e2=>{if('formatBlock'!=_0x1c65e2['type']&&'formatInline'!=_0x1c65e2['type'])return;const {data:_0x3a8b1f}=_0x1c65e2;return _0x3a8b1f&&'mergeTableCells'==_0x3a8b1f['commandName']?{'type':'format','content':o(_0x3de2e0,'*Merge\x20cells*')}:void 0x0;}),_0x179a39['descriptionFactory']['registerDescriptionCallback'](_0x546fd6=>{if('formatBlock'!=_0x546fd6['type']&&'formatInline'!=_0x546fd6['type'])return;const {data:_0x341e53}=_0x546fd6;return _0x341e53?'splitTableCellVertically'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x341e53['commandName']?{'type':'format','content':o(_0x3de2e0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53110b=_0x235e76['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d0655 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d0655,'accept',_0x53110b);for(const _0xdc2d4e of['splitTableCellVertically','splitTableCellHorizontally'])_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdc2d4e,'accept',_0x53110b);_0x179a39['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7925fb=>{_0x4f7c5f['model']['change'](_0x3caf43=>{const _0x2a4b3d=Array['from'](_0x5843bb['getRanges']())['map'](_0x4d3fcf=>_0x217d71['fromRange'](_0x4d3fcf));_0x3caf43['setSelection'](_0x7925fb),_0x4f7c5f['commands']['get']('mergeTableCells')['refresh'](),_0x4f7c5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ee677=_0x2a4b3d['filter'](_0x2c0b32=>'$graveyard'!=_0x2c0b32['root']['rootName']);_0x4ee677['length']>0x0&&_0x3caf43['setSelection'](_0x4ee677);for(const _0x273532 of _0x2a4b3d)_0x273532['detach']();});});for(const _0x50917b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd24b4=_0x4f7c5f['commands']['get'](_0x50917b);_0xbd24b4['on']('set:isEnabled',(_0x49eed5,_0x181d54,_0x250779)=>{if(_0x250779){const _0x3397e1=_0x4f7c5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44302e=>_0x44302e['is']('element','tableCell'));this['_areMergableCells'](_0xbd24b4['value'],_0x3397e1)||(_0x49eed5['return']=!0x1,_0x49eed5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d867d=this['editor']['commands']['get']('mergeTableCells'),_0x47b420=this['editor']['plugins']['get']('TableUtils');if(!_0x1d867d['isEnabled'])return!0x1;const _0x1e019f=_0x47b420['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3194ea of _0x1e019f)for(const _0x1062e5 of _0x1e019f)if(_0x3194ea!=_0x1062e5&&!this['_areMergableCells'](_0x3194ea,_0x1062e5))return!0x1;return!0x0;}['_areMergableCells'](_0x36ee85,_0x2f33df){const _0xa3a5a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514176=this['editor']['model']['createRangeOn'](_0x36ee85),_0x1ce2b4=this['editor']['model']['createRangeOn'](_0x2f33df),_0x5c6cd2=new Set(),_0x284c05=new Set();for(const _0x375fef of _0xa3a5a3['getSuggestions']())if(('insertion'==_0x375fef['type']||'deletion'==_0x375fef['type']||'mergeTableCells'==_0x375fef['subType'])&&_0x375fef['isInContent']){for(const _0x4179dc of _0x375fef['getRanges']())_0x4179dc['containsRange'](_0x514176,!0x0)&&_0x5c6cd2['add'](_0x375fef['type']+':'+_0x375fef['author']['id']),_0x4179dc['containsRange'](_0x1ce2b4,!0x0)&&_0x284c05['add'](_0x375fef['type']+':'+_0x375fef['author']['id']);}if(_0x5c6cd2['size']!=_0x284c05['size'])return!0x1;for(const _0x302d58 of _0x5c6cd2)if(!_0x284c05['has'](_0x302d58))return!0x1;return!0x0;}}class Ct extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x1b7b98=this['editor'];if(!_0x1b7b98['plugins']['has']('TableEditing'))return;const _0x5c3588=_0x1b7b98['locale'],_0x8543d=_0x1b7b98['plugins']['get']('TrackChangesEditing');_0x8543d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8543d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8543d['registerBlockAttribute']('headingRows'),_0x8543d['registerBlockAttribute']('headingColumns'),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c3588,'FORMAT_HEADER_ROW')),_0x8543d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c3588,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f482=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24a3cd=this['editor']['plugins']['get']('TableUtils'),_0x41c49a=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x3d00ed({showActiveMarker:_0x36ad7d=!0x0,setDataAttribute:_0x5a5159=!0x0}={}){return(_0x5afd23,_0x4d51a2,_0xe01c1d)=>{const {type:_0x4c2896,id:_0x4125a1}=_0x30f482['_splitMarkerName'](_0x4d51a2['markerName']),_0x5ba9e5=_0x30f482['getSuggestion'](_0x4125a1),_0x3e12bb=_0x5ba9e5['data'];if('formatBlock'!=_0x5ba9e5['type']||!_0x3e12bb||'setTableColumnHeader'!=_0x3e12bb['commandName'])return;if(_0x4d51a2['item'])return void _0x5afd23['stop']();if(!_0xe01c1d['consumable']['consume'](_0x4d51a2['markerRange'],_0x5afd23['name']))return;const _0xd949d4=_0x4d51a2['markerRange']['start']['nodeAfter'],_0x2e589b=_0x4d51a2['markerRange']['end']['nodeBefore'],_0x123bdc=_0xd949d4['parent']['parent'],{column:_0x3071d5}=_0x24a3cd['getCellLocation'](_0xd949d4),{column:_0x143a61}=_0x24a3cd['getCellLocation'](_0x2e589b);for(let _0x36bf33=_0x3071d5;_0x36bf33<=_0x143a61;_0x36bf33++){const _0x4271f8=_0x24a3cd['createTableWalker'](_0x123bdc,{'column':_0x36bf33,'includeAllSlots':!0x1});for(const _0x52e3c7 of _0x4271f8){const _0x2ca216=_0x52e3c7['cell'],_0x2947de=_0xe01c1d['mapper']['toViewElement'](_0x2ca216);_0xe01c1d['writer']['addClass']('ck-suggestion-marker-'+_0x4c2896,_0x2947de),_0x5a5159&&_0xe01c1d['writer']['setAttribute']('data-suggestion',_0x4125a1,_0x2947de),_0xe01c1d['mapper']['bindElementToMarker'](_0x2947de,_0x4d51a2['markerName']),_0x36ad7d&&(_0x30f482['activeMarkers']['includes'](_0x4d51a2['markerName'])?_0xe01c1d['writer']['addClass']('ck-suggestion-marker--active',_0x2947de):_0xe01c1d['writer']['removeClass']('ck-suggestion-marker--active',_0x2947de));}}};}_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x41c49a),_0x30f482['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x41c49a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3d00ed(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f4ced,_0xe57634,_0x36b119)=>{_0x36b119['options']['showSuggestionHighlights']&&_0x3d00ed({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f4ced,_0xe57634,_0x36b119);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x413c75,_0x516ae1,_0x31d0fb)=>{const {type:_0x32b89d,id:_0x2737bd}=_0x30f482['_splitMarkerName'](_0x516ae1['markerName']),_0xcb89b3=_0x30f482['getSuggestion'](_0x2737bd),_0x4dcda2=_0xcb89b3['data'];if('formatBlock'!=_0xcb89b3['type']||!_0x4dcda2||'setTableColumnHeader'!=_0x4dcda2['commandName'])return;const _0x4ba9f8=_0x31d0fb['mapper']['markerNameToElements'](_0x516ae1['markerName']);if(_0x4ba9f8){for(const _0x1f4c1e of _0x4ba9f8)_0x31d0fb['writer']['removeClass']('ck-suggestion-marker-'+_0x32b89d,_0x1f4c1e),_0x31d0fb['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4c1e),_0x31d0fb['writer']['removeAttribute']('data-suggestion',_0x1f4c1e),_0x31d0fb['mapper']['unbindElementFromMarkerName'](_0x1f4c1e,_0x516ae1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe77ccc=this['editor'],_0x93c9d3=_0xe77ccc['locale'];function _0x5338e5(_0x382e63){return{'type':'format','content':o(_0x93c9d3,'*Format:*\x20%0',_0x382e63)};}_0xe77ccc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251ae7=>{if('formatBlock'!=_0x251ae7['type'])return;const {data:_0x226f24}=_0x251ae7;if(_0x226f24){if('setTableRowHeader'==_0x226f24['commandName']){const _0x4b1f86=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x4b1f86?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x226f24['commandName']){const _0x5baeb9=_0x226f24['commandParams'][0x0]['forceValue'];return _0x5338e5(o(_0x93c9d3,_0x5baeb9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xfd4522{['afterInit'](){const _0x27f941=this['editor'],_0x2b4366=_0x27f941['locale'],_0x49b143=_0x27f941['plugins']['get']('TrackChangesEditing');function _0x3a8d6b(_0xccbe2){return{'type':'format','content':''+o(_0x2b4366,'*Set\x20table\x20type:*\x20%0',_0xccbe2)};}_0x27f941['plugins']['has']('TableLayout')&&(_0x49b143['enableCommand']('insertTableLayout'),_0x49b143['enableDefaultAttributesIntegration']('tableType'),_0x49b143['registerBlockAttribute']('tableType'),_0x49b143['descriptionFactory']['registerElementLabel'](_0x35fb1f=>_0x35fb1f['is']('element','table')&&'layout'===_0x35fb1f['getAttribute']('tableType'),_0x165b72=>o(_0x2b4366,'ELEMENT_LAYOUT_TABLE',_0x165b72)),_0x49b143['descriptionFactory']['registerDescriptionCallback'](_0x3461e1=>{const {data:_0x453695}=_0x3461e1;if(_0x453695&&'tableType'==_0x453695['key'])switch(_0x453695['newValue']){case'layout':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3a8d6b(o(_0x2b4366,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x26de5f=>[_0x26de5f,null]));class Nt extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x3e59a9=this['editor'];if(!_0x3e59a9['plugins']['has']('TableClipboard'))return;const _0x4c3cf0=_0x3e59a9['plugins']['get']('TrackChangesEditing'),_0x676550=_0x3e59a9['plugins']['get']('TableUtils'),_0x38824b=_0x3e59a9['plugins']['get'](At),_0x35c71f=_0x3e59a9['plugins']['get']('TableClipboard'),_0x1566f=_0x3e59a9['plugins']['get']('TableSelection'),_0x16ecd2=_0x3e59a9['plugins']['get'](_0x3dd587);_0x38824b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e59a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e59a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2ac59f=null,_0x1e5fc4=!0x1;_0x16ecd2['on']('contentInsertion',(_0x1e55ab,_0x3becc6)=>{_0x1e5fc4='paste'===_0x3becc6['method'];}),_0x3e59a9['model']['on']('insertContent',(_0x1e8f8b,_0x12d603)=>{if(!_0x1e5fc4&&null===_0x1566f['getSelectedTableCells']())return;const [_0x2f20d4,_0x421d98]=_0x12d603,_0x442cd0=_0x12d603[_0x12d603['length']-0x1];_0x442cd0&&_0x442cd0['forceDefaultExecution']||_0x4c3cf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c3b13,_0x13d715,_0x52d40b,_0x58d823,_0x56a98b){if(_0x13d715&&!_0x13d715['is']('documentSelection'))return!0x1;const _0x539099=_0x56a98b['getTableIfOnlyTableInContent'](_0x4c3b13,_0x52d40b);if(!_0x539099||!Ue(_0x539099,void 0x0,_0x58d823))return!0x1;const _0x1d364b=_0x58d823['getSelectionAffectedTableCells'](_0x52d40b['document']['selection']);if(!_0x1d364b['length'])return!0x1;const _0x5dc262=_0x1d364b[0x0]['findAncestor']('table'),_0x3c3dfa=_0x58d823['getRowIndexes'](_0x1d364b),_0x19e7d8=_0x58d823['getColumnIndexes'](_0x1d364b),_0xc9b548={'startRow':_0x3c3dfa['first'],'endRow':_0x3c3dfa['last'],'startColumn':_0x19e7d8['first'],'endColumn':_0x19e7d8['last']};return 0x1==_0x1d364b['length']&&(_0xc9b548['endRow']+=_0x58d823['getRows'](_0x539099)-0x1,_0xc9b548['endColumn']+=_0x58d823['getColumns'](_0x539099)-0x1),Ue(_0x5dc262,_0xc9b548,_0x58d823);}(_0x2f20d4,_0x421d98,_0x3e59a9['model'],_0x676550,_0x35c71f)&&(_0x1e8f8b['stop'](),_0x2ac59f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e59a9['model']['change'](()=>{_0x3e59a9['model']['insertContent'](_0x12d603[0x0],_0x12d603[0x1],_0x12d603[0x2],{'forceDefaultExecution':!0x0});const _0x297998=_0x110ca2(),{rowInsertionRanges:_0x16a7c7,columnInsertionRanges:_0x5365ee,insertionRanges:_0x5b1ab2,deletionRanges:_0x40a98b,cells:_0x260635}=_0x2ac59f;_0x16a7c7['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x16a7c7,'tablePasteRow',{'tablePasteChainId':_0x297998}),_0x5365ee['length']&&_0x4c3cf0['markMultiRangeInsertion'](_0x5365ee,'tablePasteColumn',{'tablePasteChainId':_0x297998}),_0x5b1ab2['length']&&(_0x4c3cf0['markMultiRangeInsertion'](_0x5b1ab2,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x5b1ab2['forEach'](_0x22bcb7=>_0x22bcb7['detach']?.())),_0x40a98b['length']&&(_0x4c3cf0['markMultiRangeDeletion'](_0x40a98b,'tablePaste',{'tablePasteChainId':_0x297998,'skipNestingCheck':!0x0}),_0x40a98b['forEach'](_0x26d0ab=>_0x26d0ab['detach']?.()));const _0x24abbb=_0x4c3cf0['markMultiRangeBlockFormat'](_0x260635['map'](({element:_0x1025ad})=>_0x1025ad),{'formatGroupId':_0x110ca2()},[],'tablePasteCell',{'tablePasteChainId':_0x297998});if(_0x24abbb){const _0x12bc47=_0x24abbb['getMarkers'](),_0x2280e=[];for(const {element:_0x280916,attributes:_0x362dd2}of _0x260635){if(!_0x362dd2)continue;const _0x58d989=_0x3e59a9['model']['createRangeOn'](_0x280916),_0x108422=_0x12bc47['find'](_0x4056d8=>_0x4056d8['getRange']()['isEqual'](_0x58d989));_0x108422&&_0x2280e['push']([_0x108422['name'],_0x362dd2]);}_0x2280e['length']&&_0x24abbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x2280e));}_0x2ac59f=null;}));},{'priority':_0x533dca['high']+0xa}),_0x16ecd2['on']('contentInsertion',()=>{_0x1e5fc4=!0x1;},{'priority':'lowest'}),_0x3e59a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x29f96b,_0x3d5924)=>{const [_0x45dd1f,_0x1c64f6,,_0x55d9ff]=_0x3d5924;if(!_0x2ac59f)return;_0x29f96b['stop']();const _0x372148=_0x45dd1f['cell'],_0x301cf2=_0x1c64f6,_0x57b874=Oe(_0x372148),_0x2bc012=Oe(_0x301cf2);_0x29f96b['return']=_0x372148;let _0x16f0c7=null,_0x2ca549=null;if(_0x2bc012||_0x57b874){if(_0x57b874&&!_0x2bc012){_0x55d9ff['remove'](_0x372148['getChild'](0x0));for(const _0x19e49a of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x19e49a,_0x372148,'end');const _0x170063=_0x2ac59f['rowInsertionIndexes']['includes'](_0x45dd1f['row']),_0x3c7e2a=_0x2ac59f['columnInsertionIndexes']['includes'](_0x45dd1f['column']);_0x170063||_0x3c7e2a||(_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeIn'](_0x372148)));}else _0x2bc012&&!_0x57b874&&(_0x2ca549=_0x55d9ff['createRangeIn'](_0x372148));}else{const _0x470bf2=_0x55d9ff['createElement']('tableCellSuggestion'),_0x259490=_0x55d9ff['createElement']('tableCellSuggestion');_0x55d9ff['wrap'](_0x55d9ff['createRangeIn'](_0x372148),_0x259490),_0x55d9ff['insert'](_0x470bf2,_0x372148,0x0);for(const _0x13f8b8 of Array['from'](_0x301cf2['getChildren']()))_0x55d9ff['insert'](_0x13f8b8,_0x470bf2,'end');_0x16f0c7=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x470bf2)),_0x2ca549=_0x217d71['fromRange'](_0x55d9ff['createRangeOn'](_0x259490));}const _0x384d9d=Array['from'](_0x301cf2['getAttributes']())['filter'](([_0x5a5b19])=>Be['includes'](_0x5a5b19));_0x2ac59f['cells']['push']({'element':_0x372148,'attributes':_0x384d9d['length']?Object['fromEntries'](_0x384d9d):null}),_0x16f0c7&&_0x2ac59f['insertionRanges']['push'](_0x16f0c7),_0x2ca549&&_0x2ac59f['deletionRanges']['push'](_0x2ca549);},{'priority':'high'}),_0x676550['on']('insertColumns',(_0x35c11b,_0x421b00)=>{const [_0x232f17,_0xe1c57={}]=_0x421b00;if(!_0x2ac59f)return;const _0x33ff68=_0xe1c57['at']||0x0,_0x88ca63=_0xe1c57['columns']||0x1;_0x2ac59f['columnInsertionIndexes']=new Array(_0x88ca63)['fill'](_0x33ff68)['map']((_0x2ae9bb,_0x1377f3)=>_0x2ae9bb+_0x1377f3);for(const {cell:_0x2b9298}of _0x676550['createTableWalker'](_0x232f17,{'startColumn':_0x33ff68,'endColumn':_0x33ff68+_0x88ca63-0x1}))_0x2ac59f['columnInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x2b9298));},{'priority':'low'}),_0x676550['on']('insertRows',(_0x49767e,_0x545488)=>{const [_0x26cccf,_0x21cb24={}]=_0x545488;if(!_0x2ac59f)return;const _0x8ddde3=_0x21cb24['at']||0x0,_0x71f998=_0x21cb24['rows']||0x1;_0x2ac59f['rowInsertionIndexes']=new Array(_0x71f998)['fill'](_0x8ddde3)['map']((_0xf5fdc0,_0x13be90)=>_0xf5fdc0+_0x13be90);for(const {cell:_0x43f46b}of _0x676550['createTableWalker'](_0x26cccf,{'startRow':_0x8ddde3,'endRow':_0x8ddde3+_0x71f998-0x1}))_0x2ac59f['rowInsertionRanges']['push'](_0x3e59a9['model']['createRangeOn'](_0x43f46b));},{'priority':'low'}),_0x4c3cf0['descriptionFactory']['registerDescriptionCallback'](_0x1a7134=>{if(_0x1a7134['subType']&&_0x1a7134['subType']['startsWith']('tablePaste'))return _0x1a7134['previous']?{}:{'type':'insertion','content':o(_0x3e59a9['locale'],'*Replace\x20table\x20cells*')};});const _0x448336=()=>!0x1;for(const _0x3a34f8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3a34f8,'join',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a34f8,'join',_0x448336);_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x448336),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x49c899,_0x33d0e9,_0x413c7a)=>{const _0x4e5df0=_0x49c899['map'](_0x592fbb=>_0x592fbb['getContainedElement']())['filter'](_0x37d9a7=>_0x37d9a7),_0x3a8461=new Map(_0x4e5df0['map'](_0x5eaf38=>[_0x5eaf38,null]));if(_0x2ac59f){for(const {element:_0x1aa204,attributes:_0x343b07}of _0x2ac59f['cells'])_0x343b07&&_0x3a8461['set'](_0x1aa204,_0x343b07);}else{if(_0x413c7a&&_0x413c7a['markerAttributes'])for(const [_0x1fca96,_0x1a08d5]of Object['entries'](_0x413c7a['markerAttributes'])){const _0x19d55d=_0x3e59a9['model']['markers']['get'](_0x1fca96),_0x12f4ab=_0x19d55d?_0x19d55d['getRange']()['getContainedElement']():null;_0x12f4ab&&_0x3a8461['set'](_0x12f4ab,_0x1a08d5);}}_0x3e59a9['model']['change'](_0x1c5158=>{for(const [_0x22bda7,_0x4b5fe1]of _0x3a8461)_0x1c5158['setAttributes']({...xe,..._0x4b5fe1},_0x22bda7);});});const _0x5c82b0=(_0x48f817,_0x37c9e3)=>{_0x4c3cf0['_suggestionFactory']['registerCustomCallback'](_0x48f817,'tablePaste',_0x37c9e3,(_0x1b8b49,_0xb2db4d,_0x51ee5f)=>{_0x3e59a9['model']['change'](_0x3ff765=>{const _0x28851a=[];for(const _0x363328 of _0x1b8b49){const _0x53dbd3=_0x363328['start']['nodeAfter'];_0x53dbd3['is']('element','tableCellSuggestion')&&_0x28851a['push'](_0x53dbd3);}_0x4c3cf0['_suggestionFactory']['getSuggestionCallback'](_0x48f817,null,_0x37c9e3)(_0x1b8b49,_0xb2db4d,_0x51ee5f);for(const _0x3da037 of _0x28851a)'$graveyard'!=_0x3da037['root']['rootName']&&_0x3ff765['unwrap'](_0x3da037);});});};_0x5c82b0('insertion','accept'),_0x5c82b0('insertion','discard'),_0x5c82b0('deletion','accept'),_0x5c82b0('deletion','discard'),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x558149=>{const _0x12531b=_0x558149['map'](_0x556cf2=>_0x556cf2['getContainedElement']()),_0x46b6d6=_0x12531b[0x0]['findAncestor']('table'),{minRow:_0x5d849f,maxRow:_0x4322fa}=_0x38824b['_getCoordsForCells'](_0x12531b);_0x676550['removeRows'](_0x46b6d6,{'at':_0x5d849f,'rows':_0x4322fa-_0x5d849f+0x1});}),_0x4c3cf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x403aa5=>{const _0x111f77=_0x403aa5['map'](_0x46540c=>_0x46540c['getContainedElement']()),_0x2336af=_0x111f77[0x0]['findAncestor']('table'),{minColumn:_0x525a21,maxColumn:_0x5cb79d}=_0x38824b['_getCoordsForCells'](_0x111f77);_0x676550['removeColumns'](_0x2336af,{'at':_0x525a21,'columns':_0x5cb79d-_0x525a21+0x1});});const _0x11541f=(_0x418991,_0x6e6ae1)=>{if(!_0x6e6ae1['subType']||!_0x6e6ae1['subType']['startsWith']('tablePaste'))return;const _0x143698=_0x6e6ae1['attributes']['tablePasteChainId'],_0x42aba5=_0x4c3cf0['getSuggestions']()['filter'](_0xa59864=>_0xa59864['isInContent']&&_0xa59864['attributes']&&_0xa59864['attributes']['tablePasteChainId']==_0x143698);_0x42aba5['length']&&_0x6e6ae1['getAllAdjacentSuggestions']()['length']!=_0x42aba5['length']&&_0x42aba5['reduce']((_0x539bb1,_0x179454)=>(_0x539bb1['next']=_0x179454,_0x179454['previous']=_0x539bb1,_0x179454));};function _0x115b46(_0x4b57bf,_0x457a89=!0x0){const {id:_0x91e262,authorId:_0x43d165}=_0x4c3cf0['_splitMarkerName'](_0x4b57bf['markerName']),_0x6321da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4476d5=_0x4c3cf0['activeMarkers']['includes'](_0x4b57bf['markerName']);return _0x4476d5&&_0x6321da['push']('ck-suggestion-marker--active'),{'classes':_0x6321da,'attributes':{'data-suggestion':_0x91e262,'data-author-id':_0x43d165},'priority':_0x4476d5&&_0x457a89?0xbc2:0xbb8};}_0x4c3cf0['on']('suggestionLoaded',_0x11541f,{'priority':'high'}),_0x4c3cf0['on']('suggestionUnloaded',_0x11541f,{'priority':'high'}),_0x3e59a9['model']['document']['registerPostFixer'](()=>{let _0x56dd1b=!0x1;const _0x1601fb=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7aea1,data:_0x2fa005}of _0x1601fb){const {group:_0xee2c1e,type:_0x485760,id:_0x1dedae}=_0x4c3cf0['_splitMarkerName'](_0x7aea1);if('suggestion'!=_0xee2c1e||'deletion'!=_0x485760||_0x2fa005['oldRange'])continue;if(!_0x4c3cf0['hasSuggestion'](_0x1dedae))continue;const _0x1f63e9=_0x4c3cf0['getSuggestion'](_0x1dedae)['getRanges'](),_0xe0c651=_0x3e59a9['plugins']['get']('Users')['me'];for(const _0x4201fa of _0x4c3cf0['getSuggestions']()){if(!_0x4201fa['isInContent']||_0x4201fa['author']!=_0xe0c651)continue;if('formatBlock'!=_0x4201fa['type']||'tablePasteCell'!=_0x4201fa['subType'])continue;if(_0x4201fa['getRanges']()['every'](_0xe00abc=>_0x1f63e9['some'](_0x137f2a=>_0x137f2a['containsRange'](_0xe00abc,!0x0)))){for(const _0x4986c6 of _0x4201fa['getAllAdjacentSuggestions']())_0x4986c6['isInContent']&&(_0x4986c6['discard'](),_0x56dd1b=!0x0);}}}return _0x56dd1b;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x4f0ca6=>{const _0xc50e1=_0x3e59a9['commands']['get']('redo');if(!_0xc50e1||!_0xc50e1['_createdBatches']['has'](_0x4f0ca6['batch']))return!0x1;let _0x3c6c03=!0x1;const _0x277394=_0x3e59a9['plugins']['get']('Users')['me'],_0x2e7176=_0x3e59a9['model']['document']['differ']['getChanges'](),_0x2cf0c3=Array['from'](_0x3e59a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4bef40,data:_0x462b1f})=>{const {group:_0x4494d5,subType:_0x1452e1,authorId:_0x2f7ea4}=_0x4c3cf0['_splitMarkerName'](_0x4bef40);return'suggestion'==_0x4494d5&&'tablePaste'==_0x1452e1&&_0x2f7ea4==_0x277394['id']&&!_0x462b1f['oldRange'];});for(const _0x25d902 of _0x2e7176){if('insert'!=_0x25d902['type']||'tableCellSuggestion'!=_0x25d902['name']||0x1!=_0x25d902['length'])continue;const _0x488efd=_0x4f0ca6['createRange'](_0x25d902['position'],_0x25d902['position']['getShiftedBy'](0x1));if(!_0x2cf0c3['find'](({data:_0x33e614})=>_0x33e614['newRange']['isEqual'](_0x488efd))){for(const {name:_0x26b326,data:_0x300973}of _0x2cf0c3)if(_0x488efd['containsRange'](_0x300973['newRange'])){_0x4f0ca6['updateMarker'](_0x26b326,{'range':_0x488efd}),_0x3c6c03=!0x0;break;}}}return _0x3c6c03;}),_0x3e59a9['model']['document']['registerPostFixer'](_0x57a6fd=>{let _0x1a6479=!0x1;const _0x2bd04f=_0x3e59a9['plugins']['get']('Users')['me'],_0x5f5688=_0x4c3cf0['getSuggestions']()['filter'](_0x578072=>_0x578072['isInContent']&&_0x578072['author']==_0x2bd04f),_0x16c782=new Set(),_0x10feff=new Set();for(const _0x269077 of _0x5f5688)if('tablePaste'==_0x269077['subType'])for(const _0x22c3fd of _0x269077['getMarkers']()){const _0x47c2d9=_0x22c3fd['getRange']()['getContainedElement']();if(_0x47c2d9){if(_0x47c2d9['is']('element','tableCellSuggestion')&&Oe(_0x47c2d9)){_0x269077['removeMarker'](_0x22c3fd['name']),_0x16c782['add'](_0x47c2d9),_0x1a6479=!0x0;const _0x2bcfbe=_0x47c2d9['nextSibling'],_0x590d27=_0x47c2d9['previousSibling'],_0xe6abce=_0x2bcfbe&&_0x2bcfbe['is']('element','tableCellSuggestion'),_0x25d1b4=_0x590d27&&_0x590d27['is']('element','tableCellSuggestion');_0xe6abce&&!_0x16c782['has'](_0x2bcfbe)&&_0x10feff['add'](_0x2bcfbe),_0x25d1b4&&!_0x16c782['has'](_0x590d27)&&_0x10feff['add'](_0x590d27);}else _0x47c2d9['is']('element','paragraph')&&_0x47c2d9['isEmpty']&&(_0x269077['removeMarker'](_0x22c3fd['name']),_0x1a6479=!0x0);}}else{if('tablePasteCell'==_0x269077['subType']){if(!_0x269077['attributes']||!_0x269077['attributes']['tablePasteChainId'])continue;const _0x10e7eb=_0x269077['attributes']['markerAttributes'];if(_0x10e7eb&&Object['keys'](_0x10e7eb)['length'])continue;const _0x51bf4e=_0x269077['attributes']['tablePasteChainId'];let _0x1f7e5d=!0x0,_0x2dec9b=!0x0;for(const _0x3c520d of _0x5f5688)if(_0x3c520d['subType']&&_0x3c520d['subType']['startsWith']('tablePaste')){if(!_0x3c520d['attributes']['tablePasteChainId']){_0x2dec9b=!0x1;break;}if(_0x3c520d['id']!=_0x269077['id']&&_0x3c520d['attributes']['tablePasteChainId']==_0x51bf4e){_0x1f7e5d=!0x1;break;}}_0x2dec9b&&_0x1f7e5d&&(_0x269077['removeMarkers'](),_0x1a6479=!0x0);}}for(const _0x171448 of _0x16c782)_0x57a6fd['remove'](_0x171448);for(const _0x2b2a88 of _0x10feff)_0x57a6fd['unwrap'](_0x2b2a88);return _0x1a6479;}),_0x3e59a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3628f8=>_0x115b46(_0x3628f8),'converterPriority':'high'}),_0x3e59a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e3be6,_0x31aed1)=>_0x31aed1['options']['showSuggestionHighlights']?_0x115b46(_0x5e3be6,!0x1):null,'converterPriority':'high'});const _0x363747=_0x3e59a9['editing']['view'];this['listenTo'](_0x363747['document'],'clipboardOutput',(_0x1e07c8,_0x148ccb)=>{const _0x503bd8=[];for(const _0x21987a of _0x363747['createRangeIn'](_0x148ccb['content'])['getItems']())_0x21987a['is']('element','suggestion-td')&&_0x503bd8['push'](_0x21987a);_0x363747['change'](_0x27d01a=>{for(const _0x1a7eaa of _0x503bd8)_0x27d01a['move'](_0x27d01a['createRangeIn'](_0x1a7eaa),_0x27d01a['createPositionBefore'](_0x1a7eaa)),_0x27d01a['remove'](_0x1a7eaa);});});}}function Oe(_0x40bd51){if(_0x40bd51['isEmpty'])return!0x0;const _0x4cb8da=_0x40bd51['getChild'](0x0);return _0x4cb8da['is']('element','paragraph')&&_0x4cb8da['isEmpty'];}function Ue(_0x30d725,_0x4ab0a4={},_0x5b6fbe){for(const {isAnchor:_0x39b1b2,cellHeight:_0x481f9e,cellWidth:_0x4c918c}of _0x5b6fbe['createTableWalker'](_0x30d725,{'includeAllSlots':!0x0,..._0x4ab0a4}))if(!_0x39b1b2||0x1!=_0x481f9e||0x1!=_0x4c918c)return!0x1;return!0x0;}class Dt extends _0xfd4522{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b96a2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b96a2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b96a2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b96a2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b96a2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xf80747,_0x429315){const _0x4b2d56=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a414c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e2f0f=_0x429315['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3911f9=_0x2a414c['getColumnGroupElement'](_0x3e2f0f);let _0x15c6c2=_0x3911f9?_0x2a414c['getTableColumnsWidths'](_0x3911f9):null,_0x3bb549=_0x3e2f0f['getAttribute']('tableWidth')||null;const _0x527188=_0x429315['tableWidth']||_0x3bb549,_0x4ee313=_0x429315['columnWidths']||_0x15c6c2,_0x395c66=this['editor']['plugins']['get']('Users')['me'];for(const _0x289e74 of _0x4b2d56['getSuggestions']()){const _0x527595=_0x289e74['getContainedElement']();if('resizeTable'===_0x289e74['subType']&&_0x527595===_0x3e2f0f){_0x289e74['author']!==_0x395c66&&_0x289e74['discard']();const _0x24d616=_0x289e74['data']['commandParams'];_0x3bb549=_0x24d616[0x0]['tableWidth'],_0x15c6c2=_0x24d616[0x0]['columnWidths'];break;}}_0xf80747({'table':_0x3e2f0f,'tableWidth':_0x527188,'columnWidths':_0x4ee313}),_0x4b2d56['markBlockFormat'](_0x3e2f0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bb549,'columnWidths':_0x15c6c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25a437){if('formatBlock'!=_0x25a437['type']&&'formatInline'!=_0x25a437['type'])return;const {data:_0x277656}=_0x25a437;if(_0x277656&&'resizeTable'===_0x277656['formatGroupId']){const _0x484f8f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x484f8f)};}}}class $t extends _0xfd4522{['afterInit'](){const _0x34531f=this['editor'];_0x34531f['plugins']['has']('Template')&&_0x34531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xfd4522{['afterInit'](){const _0x336fa0=this['editor'];if(!_0x336fa0['commands']['get']('insertTableOfContents'))return;_0x336fa0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19bb59=_0x336fa0['plugins']['get']('TrackChangesEditing'),_0x559e23=_0x336fa0['locale'];_0x19bb59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12e8d9=>o(_0x559e23,'ELEMENT_TABLE_OF_CONTENTS',_0x12e8d9));}}class Bt extends _0xfd4522{['afterInit'](){const _0x4cc075=this['editor'];if(!_0x4cc075['plugins']['has']('Title'))return;const _0x4eb1c6=_0x4cc075['plugins']['get']('TrackChangesEditing');_0x4eb1c6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cc075['locale'],'ELEMENT_TITLE')),_0x4cc075['model']['document']['registerPostFixer'](_0x4108cb=>{let _0x4e1b76=!0x1;const _0x5bfb=Array['from'](_0x4cc075['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e8b52,data:_0x276a59}of _0x5bfb){const {group:_0x3dbc21}=_0x4eb1c6['_splitMarkerName'](_0x4e8b52);if('suggestion'!==_0x3dbc21||!_0x276a59['newRange'])continue;const _0x371b98=_0x276a59['newRange'],_0x29c361=_0x371b98['end']['nodeBefore'];if(!_0x29c361||!_0x29c361['is']('element','title-content'))continue;if(!_0x371b98['start']['isTouching'](_0x371b98['end']))continue;const _0x436c69=_0x4cc075['model']['schema']['getNearestSelectionRange'](_0x371b98['end'],'forward');if(_0x436c69&&_0x436c69['isCollapsed']){const _0x41f847=_0x4108cb['createRange'](_0x371b98['start'],_0x436c69['start']);_0x41f847['isEqual'](_0x371b98)||(_0x4108cb['updateMarker'](_0x4e8b52,{'range':_0x41f847}),_0x4e1b76=!0x0);}_0x4e1b76||(_0x4108cb['removeMarker'](_0x4e8b52),_0x4e1b76=!0x0);}return _0x4e1b76;});}}class Tt extends _0xfd4522{['afterInit'](){const _0x4fba91=this['editor'],_0xb6f916=_0x4fba91['plugins']['get']('TrackChangesEditing');_0x4fba91['plugins']['has']('Uploadcare')&&(_0xb6f916['enableCommand']('uploadcare'),_0x4fba91['plugins']['has']('UploadcareImageEdit')&&(_0xb6f916['enableCommand']('uploadcareImageEdit'),_0xb6f916['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xb6f916['registerBlockAttribute']('uploadcareImageId'),_0xb6f916['descriptionFactory']['registerDescriptionCallback'](_0x4ad485=>{if('attribute'!=_0x4ad485['type'])return;const {data:_0x174f3e}=_0x4ad485;return _0x174f3e&&'uploadcareImageId'==_0x174f3e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xfd4522{['afterInit'](){const _0x5d5d78=this['editor'],_0x38d472=_0x5d5d78['plugins']['get']('TrackChangesEditing');_0x5d5d78['plugins']['has']('UndoEditing')&&(_0x38d472['enableCommand']('undo'),_0x38d472['enableCommand']('redo'));}}class Ot extends _0xfd4522{static get['requires'](){return[At];}['afterInit'](){const _0x26046a=this['editor'];if(!_0x26046a['plugins']['has']('TableCaptionEditing'))return;_0x26046a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xfd4522{['tableProperties'];['tableCellProperties'];constructor(_0x4d0824){super(_0x4d0824),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 _0x5e35a5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x355b5a of this['tableProperties'])_0x5e35a5['enableCommand'](_0x355b5a,(_0x5e8968,_0x3f0fff)=>{const _0x9059d8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x355b5a,[_0x9059d8],this['tableProperties'],'tableProperties',_0x5e8968,_0x3f0fff);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32f8b4,_0x10a9c2)=>this['handleDiscardAction'](this['tableProperties'],_0x32f8b4,_0x10a9c2)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1f79bc of this['tableCellProperties'])_0x5e35a5['enableCommand'](_0x1f79bc,(_0x1e4a96,_0x29bda2)=>{const _0x514213=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1f79bc,_0x514213,this['tableCellProperties'],'tableCellProperties',_0x1e4a96,_0x29bda2);});_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e35a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xc94a91,_0x24f24c)=>this['handleDiscardAction'](this['tableCellProperties'],_0xc94a91,_0x24f24c)),_0x5e35a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e35a5['descriptionFactory']['registerDescriptionCallback'](_0xef7e5c=>this['handleSuggestionDescription'](_0xef7e5c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x311d80,_0x2ee88f,_0x1a0049,_0x35a389,_0x15bb0c,_0x3caa2a){const _0x9e80c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3caa2a['batch'],()=>{for(const _0x461283 of _0x2ee88f){if(this['_getSuggestion'](_0x461283,_0x35a389))_0x15bb0c(_0x3caa2a);else{const _0x2042a3={};for(const _0x4446f3 of _0x1a0049){const _0x1e2cca=_0x461283['getAttribute'](_0x4446f3);void 0x0!==_0x1e2cca&&(_0x2042a3[_0x4446f3]=_0x1e2cca);}_0x15bb0c(_0x3caa2a),_0x9e80c5['markBlockFormat'](_0x461283,{'commandParams':[_0x2042a3]},[],_0x35a389);}}});}['handleDiscardAction'](_0x42c0c0,_0x24ff9b,_0x29c0db){const _0x53c10f=_0x24ff9b[0x0]['start']['nodeAfter'],_0x5e4d8f=_0x29c0db['commandParams'][0x0];this['editor']['model']['change'](_0x40a8c6=>{for(const _0x23111d of _0x42c0c0)void 0x0!==_0x5e4d8f[_0x23111d]?_0x40a8c6['setAttribute'](_0x23111d,_0x5e4d8f[_0x23111d],_0x53c10f):_0x40a8c6['removeAttribute'](_0x23111d,_0x53c10f);});}['handleSuggestionDescription'](_0x5cd901){if(_0x5cd901['data'])switch(_0x5cd901['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'](_0x1b2434,_0x35eedc){const _0xae96f0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x77d50a of _0xae96f0['getSuggestions']({'skipNotAttached':!0x0})){const _0xbcf187=_0x77d50a['getContainedElement']();if(_0x77d50a['subType']===_0x35eedc&&_0xbcf187===_0x1b2434)return _0x77d50a;}return null;}['_registerTablePropertiesAttributes'](){const _0x1b0b59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a1d31=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4cb173 of _0x3a1d31){const _0x170589=_0x4cb173['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b0b59['registerBlockAttribute'](_0x4cb173),_0x1b0b59['descriptionFactory']['registerAttributeLabel'](_0x4cb173,o(this['editor']['locale'],'FORMAT_'+_0x170589));}}}class Rt extends _0xfd4522{['afterInit'](){const _0x3cea4e=this['editor'];if(!_0x3cea4e['plugins']['has']('LineHeight'))return;const _0x41e1cb=_0x3cea4e['plugins']['get']('TrackChangesEditing'),_0x3bfddd=_0x3cea4e['locale'];_0x41e1cb['enableDefaultAttributesIntegration']('lineHeight'),_0x41e1cb['registerBlockAttribute']('lineHeight'),_0x41e1cb['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3bfddd,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xfd4522{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x41af33,_0x19387b,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398874){super(_0x398874),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4958ec,_0x3c0471,_0x43a0e0,_0x2c74d2)=>{this['_model']['change'](()=>{for(const _0x281d92 of[..._0x2c74d2,..._0x43a0e0])this['_model']['markers']['has'](_0x281d92)&&_0x398874['editing']['reconvertMarker'](_0x281d92);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x398874['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(),_0x398874['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x398874['config']['get']('trackChanges.trackFormatChanges'),_0x398874['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x398874['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x398874,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2aa042=this['editor'],_0x389462=(_0x3143ae,_0x41a692)=>{if('attribute'!=_0x3143ae)return'ck-suggestion-marker-'+_0x3143ae;const _0xc34306=_0x41a692['split']('|')[0x0];return this['_isBlockAttribute'](_0xc34306)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2aa042['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x33f0f9=>{const {id:_0x536c13,authorId:_0x2b5f66,type:_0x320796,subType:_0x511a2d}=this['_splitMarkerName'](_0x33f0f9['markerName']),_0x834dcf=['ck-suggestion-marker',_0x389462(_0x320796,_0x511a2d)];let _0x20b923=0xbb8;return this['activeMarkers']['includes'](_0x33f0f9['markerName'])&&(_0x834dcf['push']('ck-suggestion-marker--active'),_0x20b923=0xbc2),'deletion'==_0x320796&&(_0x20b923+=0x5),{'classes':_0x834dcf,'attributes':{'data-suggestion':_0x536c13,'data-author-id':_0x2b5f66},'priority':_0x20b923};}}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x4fdca6=>{_0x4fdca6['on']('addMarker:suggestion',(_0x35215f,_0x4bd657,_0x436e75)=>{if(!_0x436e75['options']['showSuggestionHighlights'])return;const _0x32e2e8=_0x4bd657['item'];if(!_0x32e2e8)return;const _0x82bf7f=_0x436e75['mapper']['toViewElement'](_0x32e2e8);_0x2aa042['model']['schema']['isObject'](_0x32e2e8)&&_0x82bf7f&&!_0x82bf7f['getCustomProperty']('widget')&&_0x82bf7f['is']('containerElement')&&_0x20ea6f(_0x82bf7f,_0x436e75['writer']);},{'priority':'high'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4c2e76,_0x2fa861)=>{if(!_0x2fa861['options']['showSuggestionHighlights'])return null;const {id:_0x137545,authorId:_0x2dd3fd,type:_0x38b434,subType:_0x203034}=this['_splitMarkerName'](_0x4c2e76['markerName']);return{'classes':['ck-suggestion-marker',_0x389462(_0x38b434,_0x203034)],'priority':0xbb8,'attributes':{'data-suggestion':_0x137545,'data-author-id':_0x2dd3fd}};}});const _0x14dcd6=({showActiveMarkers:_0x126665=!0x0,isAttributeSuggestion:_0x271ad5=!0x1}={})=>(_0x3ccd65,_0x30cefb,_0x48822e)=>{if(!_0x30cefb['item'])return;const {id:_0x393e4e,authorId:_0x5bb0b6}=this['_splitMarkerName'](_0x30cefb['markerName']);if(_0x271ad5){const _0x13f2a5=this['_suggestions']['get'](_0x393e4e),_0xf68ed2=this['_getAttributeKey'](_0x13f2a5);if(!this['_isBlockAttribute'](_0xf68ed2))return;}if(_0x30cefb['item']['is']('selection'))return void _0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);const _0x384c0e=_0x48822e['mapper']['toViewElement'](_0x30cefb['item']);if(_0x30cefb['item']['is']('element')&&_0x2aa042['model']['schema']['isBlock'](_0x30cefb['item'])&&!_0x384c0e['getCustomProperty']('addHighlight')){_0x48822e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x384c0e),_0x48822e['writer']['setAttribute']('data-suggestion',_0x393e4e,_0x384c0e),_0x48822e['writer']['setAttribute']('data-author-id',_0x5bb0b6,_0x384c0e),_0x48822e['mapper']['bindElementToMarker'](_0x384c0e,_0x30cefb['markerName']),_0x126665&&(this['activeMarkers']['includes'](_0x30cefb['markerName'])?_0x48822e['writer']['addClass']('ck-suggestion-marker--active',_0x384c0e):_0x48822e['writer']['removeClass']('ck-suggestion-marker--active',_0x384c0e));for(const _0x4e6583 of _0x2aa042['model']['createRangeIn'](_0x30cefb['item'])['getItems']())_0x48822e['consumable']['consume'](_0x4e6583,_0x3ccd65['name']);_0x48822e['consumable']['consume'](_0x30cefb['item'],_0x3ccd65['name']);}};_0x2aa042['conversion']['for']('dataDowncast')['add'](_0xc43b38=>{_0xc43b38['on']('addMarker:suggestion:formatBlock',(_0x48e568,_0x5af26f,_0x4aeb37)=>{_0x4aeb37['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1})(_0x48e568,_0x5af26f,_0x4aeb37);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['add'](_0x94a59d=>{_0x94a59d['on']('addMarker:suggestion:attribute',(_0x58bc75,_0x4dcaca,_0x51354c)=>{_0x51354c['options']['showSuggestionHighlights']&&_0x14dcd6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x58bc75,_0x4dcaca,_0x51354c);},{'priority':'highest'});}),_0x2aa042['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1700a7,_0x28162e)=>{if(_0x28162e['options']['showSuggestionHighlights']){const {id:_0x1ac74e,authorId:_0x1ccf20}=this['_splitMarkerName'](_0x1700a7);return _0x1700a7['includes'](':split')||_0x1700a7['includes'](':merge')?{'group':'suggestion','name':_0x1700a7['substr'](0xb),'attributes':{'data-suggestion':_0x1ac74e,'data-author-id':_0x1ccf20}}:null;}return{'group':'suggestion','name':_0x1700a7['substr'](0xb)};}}),_0x2aa042['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1972e3,{writer:_0x40de9f})=>{let _0x141350='suggestion:'+_0x1972e3['getAttribute']('suggestion-type')+':'+_0x1972e3['getAttribute']('id');return _0x1972e3['getAttribute']('marker-count')&&(_0x141350+=':'+_0x1972e3['getAttribute']('marker-count')),_0x40de9f['createElement']('$marker',{'data-name':_0x141350});}}),_0x2aa042['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x26246c=>{_0x26246c['on']('addMarker:suggestion:formatBlock',_0x14dcd6(),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x1e5a71=>{_0x1e5a71['on']('addMarker:suggestion:attribute',_0x14dcd6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x3138ad=>{_0x3138ad['on']('removeMarker:suggestion:formatBlock',(_0x42885d,_0x4e9ded,_0x5a1c58)=>{const _0x44aa01=_0x5a1c58['mapper']['markerNameToElements'](_0x4e9ded['markerName']);if(_0x44aa01){for(const _0x1a95a0 of _0x44aa01)_0x1a95a0['getCustomProperty']('addHighlight')||(_0x5a1c58['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-suggestion',_0x1a95a0),_0x5a1c58['writer']['removeAttribute']('data-author-id',_0x1a95a0),_0x5a1c58['mapper']['unbindElementFromMarkerName'](_0x1a95a0,_0x4e9ded['markerName']));}},{'priority':'high'});}),_0x2aa042['conversion']['for']('editingDowncast')['add'](_0x4ec6e2=>{_0x4ec6e2['on']('removeMarker:suggestion:attribute',(_0x13f0a3,_0x446ef8,_0x971d7c)=>{const _0x1c7881=_0x971d7c['mapper']['markerNameToElements'](_0x446ef8['markerName']);if(!_0x1c7881)return;const {id:_0x5eeb01}=this['_splitMarkerName'](_0x446ef8['markerName']),_0x530feb=this['_suggestions']['get'](_0x5eeb01),_0x54eebd=this['_getAttributeKey'](_0x530feb);if(this['_isBlockAttribute'](_0x54eebd)){for(const _0x2f880b of _0x1c7881)_0x2f880b['getCustomProperty']('addHighlight')||(_0x971d7c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-suggestion',_0x2f880b),_0x971d7c['writer']['removeAttribute']('data-author-id',_0x2f880b),_0x971d7c['mapper']['unbindElementFromMarkerName'](_0x2f880b,_0x446ef8['markerName']));}},{'priority':'high'});}),_0x2aa042['model']['document']['registerPostFixer'](_0x53cf5a=>{let _0x42fb64=!0x1;const _0x520ac8=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']()),_0x5926de=new Set();for(const {name:_0x9b14c2,data:_0x52280a}of _0x520ac8){const {group:_0x4adc5b,type:_0x1e6450,subType:_0x4dbba3,id:_0x24af82}=this['_splitMarkerName'](_0x9b14c2);if('suggestion'!==_0x4adc5b)continue;const _0x412525=_0x4dbba3?'suggestion:'+_0x1e6450+':'+_0x4dbba3+':'+_0x24af82:'suggestion:'+_0x1e6450+':'+_0x24af82,_0x3ecca9=_0x2aa042['model']['markers']['getMarkersGroup'](_0x412525),_0x4e0dbc=_0x2aa042['model']['markers']['get'](_0x9b14c2),_0x49f8ce=this['_suggestions']['get'](_0x24af82);if(null!=_0x52280a['newRange']){'formatInline'==_0x1e6450&&(_0x42fb64=_0x42fb64||Gt(_0x52280a['newRange'],_0x9b14c2,_0x53cf5a,_0x2aa042['model']['schema']));const _0x381f1d='attribute'==_0x1e6450&&this['_isBlockAttribute'](_0x4dbba3['split']('|')[0x0]),_0x2c01d0='attribute'==_0x1e6450&&this['_isInlineAttribute'](_0x4dbba3['split']('|')[0x0]);if(_0x52280a['newRange']['isCollapsed']||'$graveyard'==_0x52280a['newRange']['root']['rootName']||'formatBlock'==_0x1e6450&&!Jt(_0x52280a['newRange'])||_0x381f1d&&!Jt(_0x52280a['newRange'])||_0x2c01d0&&Kt(_0x52280a['newRange'])||'deletion'==_0x1e6450&&Kt(_0x52280a['newRange'])||_0x4e0dbc&&Ht(_0x4e0dbc,_0x3ecca9))_0x53cf5a['removeMarker'](_0x9b14c2),_0x42fb64=!0x0;else{if(!_0x49f8ce||!_0x49f8ce['isInContent'])continue;if(_0x52280a['newRange']&&_0x52280a['oldRange']&&_0x52280a['newRange']['isEqual'](_0x52280a['oldRange']))continue;_0x5926de['add'](_0x49f8ce);}}}return _0x5926de['size']>0x0&&(_0x42fb64=!!this['_joinWithAdjacentSuggestions'](_0x5926de)||_0x42fb64),_0x42fb64;}),_0x2aa042['model']['document']['registerPostFixer'](_0x2bd434=>{let _0x5d80fd=!0x1;for(const _0x190d1e of _0x2aa042['model']['document']['differ']['getChanges']())if('insert'==_0x190d1e['type'])for(const _0x32f3b3 of this['_suggestions']['values']()){if(_0x32f3b3['isMultiRange']||!_0x32f3b3['isInContent'])continue;const _0x2dd90c='formatBlock'==_0x32f3b3['type'],_0xdf3121=this['_getAttributeKey'](_0x32f3b3),_0x45ebd3=_0xdf3121&&this['_isBlockAttribute'](_0xdf3121);if(!_0x2dd90c&&!_0x45ebd3)continue;const _0x191374=_0x32f3b3['getFirstRange']();if(_0x191374['start']['parent']!=_0x191374['end']['parent']&&!_0x191374['end']['isAtEnd']){const _0x1fc764=_0x2aa042['model']['createPositionAt'](_0x191374['start']['nodeAfter'],'end'),_0x4b47eb=_0x2aa042['model']['createRange'](_0x191374['start'],_0x1fc764);_0x2bd434['updateMarker'](_0x32f3b3['getFirstMarker'](),{'range':_0x4b47eb}),_0x5d80fd=!0x0;}}return _0x5d80fd;}),_0x2aa042['model']['document']['registerPostFixer'](_0x5cb87c=>this['_processAttributeChanges'](_0x5cb87c)),_0x2aa042['model']['document']['registerPostFixer'](_0x39834c=>!_0x39834c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39834c)),_0x2aa042['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2aa042['model']['document']['on']('change:data',(_0x100772,_0x54532e)=>{if(!_0x54532e['isLocal']||_0x54532e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ae324=_0x2aa042['model']['document']['differ']['getChanges']();if(0x0==_0x3ae324['length'])return;const _0x33dbdc=[],_0x474742=_0x3ae324['filter'](_0xe220ca=>'attribute'==_0xe220ca['type']),_0x4f438c=_0x3ae324['filter'](_0x3a181=>'insert'==_0x3a181['type']&&'$text'!=_0x3a181['name']);for(const _0x454382 of _0x474742)this['_isRegisteredAttribute'](_0x454382['attributeKey'])&&_0x33dbdc['push']({'key':_0x454382['attributeKey'],'newValue':_0x454382['attributeNewValue'],'oldValue':_0x454382['attributeOldValue'],'range':qt(_0x454382['range'],_0x2aa042['model'])});for(const _0x45fcf5 of _0x4f438c){if('rename'!=_0x45fcf5['action']&&'refresh'!=_0x45fcf5['action'])continue;const _0x18a467=zt(_0x45fcf5['position']['nodeAfter'],_0x2aa042['model']),_0x4b2da9=_0x45fcf5['before'];'rename'==_0x45fcf5['action']&&_0x33dbdc['push']({'key':m,'newValue':_0x45fcf5['name'],'oldValue':_0x4b2da9['name'],'range':_0x18a467});for(const [_0x25d003,_0x5edb43]of _0x4b2da9['attributes']){if(!this['_isRegisteredAttribute'](_0x25d003))continue;const _0x192259=_0x45fcf5['attributes']['get'](_0x25d003);_0x5edb43!==_0x192259&&_0x33dbdc['push']({'key':_0x25d003,'newValue':_0x192259,'oldValue':_0x5edb43,'range':_0x18a467});}for(const [_0x48498c,_0x58de60]of _0x45fcf5['attributes'])this['_isRegisteredAttribute'](_0x48498c)&&(_0x4b2da9['attributes']['has'](_0x48498c)||_0x33dbdc['push']({'key':_0x48498c,'newValue':_0x58de60,'oldValue':null,'range':_0x18a467}));}0x0!=_0x33dbdc['length']&&_0x2aa042['model']['enqueueChange'](_0x54532e,_0x1f5360=>{const _0x4699e6=_0x110ca2();for(const {range:_0x596b5b,key:_0x5a0f04,oldValue:_0xcb6984,newValue:_0x50e83e}of _0x33dbdc)this['markAttributeChange'](_0x596b5b,_0x5a0f04,_0xcb6984,_0x50e83e,{'groupId':_0x4699e6});this['_reduceExistingSuggestions'](_0x1f5360,_0x33dbdc);});},{'priority':'lowest'}),_0x2aa042['model']['markers']['on']('update:suggestion',(_0x2d4288,_0x3915bc,_0x15cbfd)=>{if(null==_0x15cbfd){const {id:_0x2cb415}=this['_splitMarkerName'](_0x3915bc['name']),_0x2746bd=this['_suggestions']['get'](_0x2cb415);_0x2746bd&&_0x2746bd['addMarkerName'](_0x3915bc['name']);}}),_0x2aa042['model']['document']['on']('change:data',()=>{const _0x3ba66d=Array['from'](_0x2aa042['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e5c23=>'suggestion'===this['_splitMarkerName'](_0x4e5c23['name'])['group']);if(0x0===_0x3ba66d['length'])return;_0x3ba66d['sort']((_0x302071,_0x32e649)=>{const _0x21063b=_0x302071['data']['oldRange'],_0x136c01=_0x32e649['data']['oldRange'];return null===_0x21063b&&null===_0x136c01?0x0:null===_0x21063b&&null!==_0x136c01?-0x1:null!==_0x21063b&&null===_0x136c01?0x1:_0x21063b['start']['isBefore'](_0x136c01['start'])?-0x1:0x1;});const _0x17e211=new Set(),_0x1189aa=new Set();for(const {name:_0x38cd80,data:_0x2d18e4}of _0x3ba66d){const {id:_0x2d5e93}=this['_splitMarkerName'](_0x38cd80);if(null===_0x2d18e4['oldRange']){const _0x4e5d2a=this['_handleNewSuggestionMarker'](_0x38cd80);_0x1189aa['add'](_0x4e5d2a);}else{const _0x4db940=this['_suggestions']['get'](_0x2d5e93);null!==_0x2d18e4['newRange']||_0x4db940['isInContent']?(_0x17e211['add'](_0x4db940['head']),_0x1189aa['add'](_0x4db940)):this['_removeSuggestion'](_0x4db940);}}_0x1189aa['size']>0x0&&this['_refreshSuggestionsChain'](_0x1189aa);for(const _0x14c258 of _0x17e211)this['fire']('suggestionChanged',_0x14c258);}),_0x2aa042['model']['on']('applyOperation',(_0x233894,_0x312b72)=>{const _0x274db5=_0x312b72[0x0];if(!this['_suggestions']['size'])return;if(!_0x274db5['isDocumentOperation'])return;if(_0x274db5['batch']['isUndo']||!_0x274db5['batch']['isLocal'])return;let _0x52915a,_0x571fb4;switch(_0x274db5['type']){case'insert':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['position']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;case'split':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['splitPosition']),_0x571fb4=_0x2aa042['model']['createPositionAt'](_0x274db5['moveTargetPosition']);break;case'move':_0x52915a=_0x2aa042['model']['createPositionAt'](_0x274db5['targetPosition']),_0x571fb4=_0x52915a['getShiftedBy'](_0x274db5['howMany']);break;default:return;}const _0x10c074=_0x2aa042['model']['createRange'](_0x52915a,_0x571fb4);_0x2aa042['model']['change'](()=>{for(const {suggestion:_0x5d648b,meta:_0x53c1ed}of this['_findSuggestions'](_0x10c074)){if(_0x5d648b['isMultiRange'])continue;if('formatInline'==_0x5d648b['type'])continue;const _0x4c0465=this['_getAttributeKey'](_0x5d648b);if(_0x4c0465&&this['_isBlockAttribute'](_0x4c0465)&&'split'!=_0x274db5['type'])continue;const _0x52c606=_0x5d648b['data']&&_0x5d648b['data']['multipleBlocks'];('formatBlock'!=_0x5d648b['type']||'split'==_0x274db5['type']&&!_0x52c606)&&(_0x53c1ed['containsRangeInObject']||'insertion'==_0x5d648b['type']&&_0x53c1ed['isOwn']||_0x5d648b['getFirstRange']()['containsRange'](_0x10c074)&&this['_breakSuggestionMarker'](_0x5d648b,_0x52915a,_0x571fb4));}});},{'priority':'lowest'}),_0x2aa042['model']['on']('deleteContent',(_0x2876f3,_0x4653aa)=>{const _0x16b93b=_0x4653aa[0x0],_0x451cdc=_0x4653aa[0x1];if(_0x451cdc&&_0x451cdc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16b93b['isCollapsed'])return;const _0x5c90e5=_0x2aa042['model']['schema'],{start:_0x1b93e6,end:_0x2275a5}=_0x16b93b['getFirstRange'](),_0x21d7eb=_0x1b93e6['nodeAfter']&&_0x5c90e5['isLimit'](_0x1b93e6['nodeAfter'])?null:_0x5c90e5['getNearestSelectionRange'](_0x1b93e6,'forward'),_0x28a79b=_0x2275a5['nodeBefore']&&_0x5c90e5['isLimit'](_0x2275a5['nodeBefore'])?null:_0x5c90e5['getNearestSelectionRange'](_0x2275a5,'backward'),_0x48be86=_0x2aa042['model']['createRange'](_0x21d7eb?_0x21d7eb['start']:_0x1b93e6,_0x28a79b?_0x28a79b['end']:_0x2275a5);_0x2aa042['model']['change'](_0x56d34f=>{this['markDeletion'](_0x48be86);const _0x5e6eb9=_0x2aa042['model']['schema']['getNearestSelectionRange'](_0x48be86['start']);_0x16b93b['is']('documentSelection')?_0x56d34f['setSelection'](_0x5e6eb9):_0x16b93b['setTo'](_0x5e6eb9);}),_0x2876f3['stop']();},{'priority':_0x533dca['normal']+0xa}),_0x2aa042['model']['on']('insertContent',(_0x218485,_0x4831aa)=>{const _0x32fd37=_0x4831aa[_0x4831aa['length']-0x1];_0x32fd37&&_0x32fd37['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2aa042['model']['change'](()=>{let _0x393e30=_0x2aa042['model']['insertContent'](_0x4831aa[0x0],_0x4831aa[0x1],_0x4831aa[0x2],{'forceDefaultExecution':!0x0});if(!_0x393e30)return;_0x218485['return']=_0x393e30['clone']();const _0x356654=_0x393e30['end']['nodeBefore'],_0x49e3c7=_0x2aa042['model']['schema'];_0x356654&&_0x49e3c7['isBlock'](_0x356654)&&!_0x49e3c7['isObject'](_0x356654)&&(_0x393e30=_0x2aa042['model']['createRange'](_0x393e30['start'],_0x2aa042['model']['createPositionAt'](_0x356654,'end'))),this['markInsertion'](_0x393e30);}),_0x218485['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c1478=new D(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('acceptSuggestion',_0x4c1478),this['enableCommand']('acceptSuggestion');const _0x1bb857=new $(_0x2aa042,this['_suggestions']);_0x2aa042['commands']['add']('discardSuggestion',_0x1bb857),this['enableCommand']('discardSuggestion'),_0x2aa042['commands']['add']('acceptAllSuggestions',new M(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2aa042['commands']['add']('discardAllSuggestions',new M(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2aa042['commands']['add']('acceptSelectedSuggestions',new B(_0x2aa042,_0x4c1478,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2aa042['commands']['add']('discardSelectedSuggestions',new B(_0x2aa042,_0x1bb857,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375b08=_0x2aa042['plugins']['get']('CommentsRepository');this['listenTo'](_0x375b08,'addComment',(_0x1fbd6d,{threadId:_0x2c3674})=>{const _0x56da43=this['_suggestions']['get'](_0x2c3674);_0x56da43&&_0x56da43['commentThread']&&0x1===_0x56da43['commentThread']['length']&&this['_updateSuggestionData'](_0x2c3674,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375b08,'removeComment',(_0x19d664,{threadId:_0x136fd5})=>{const _0x54ca59=this['_suggestions']['get'](_0x136fd5);_0x54ca59&&_0x54ca59['commentThread']&&!_0x54ca59['commentThread']['length']&&this['_updateSuggestionData'](_0x136fd5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed00d){const _0x117464=_0x5990df([0x69,0x71,0x43,0x49,0x6e,0x59,0x52,0x63,0x34,0x68,0x64,0x79,0x48,0x6f,0x6a,0x66,0x32,0x58,0x77,0x61,0x55,0x4c,0x72,0x76,0x4b,0x4d,0x4a,0x42,0x41,0x50,0x7a,0x67,0x6c,0x30,0x47,0x38,0x51,0x70,0x75,0x46,0x31,0x54,0x36,0x73,0x33,0x74,0x53,0x37,0x56,0x57,0x62,0x6d,0x4f,0x78,0x65,0x5a,0x39,0x45,0x44,0x35,0x4e,0x6b]),_0x327cd4=0x1d416b54,_0x3e5dfe=0x1d461b7c^_0x327cd4,_0xa5b1b3=window[_0x5990df([0x44,0x61,0x74,0x65])][_0x5990df([0x6e,0x6f,0x77])](),_0x507a5a=_0x4ed00d[_0x5990df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x337740=new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52012e=>{_0x507a5a[_0x5990df([0x6f,0x6e,0x63,0x65])](_0x5990df([0x72,0x65,0x61,0x64,0x79]),_0x52012e);}),_0x12aba2={[_0x5990df([0x6b,0x74,0x79])]:_0x5990df([0x45,0x43]),[_0x5990df([0x75,0x73,0x65])]:_0x5990df([0x73,0x69,0x67]),[_0x5990df([0x63,0x72,0x76])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36]),[_0x5990df([0x78])]:_0x5990df([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]),[_0x5990df([0x79])]:_0x5990df([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]),[_0x5990df([0x61,0x6c,0x67])]:_0x5990df([0x45,0x53,0x32,0x35,0x36])},_0x705aba=_0x507a5a[_0x5990df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5990df([0x67,0x65,0x74])](_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2ef1b4(){let _0x4c96d8,_0x10156c=null,_0x43e954=null;try{if(_0x705aba==_0x5990df([0x47,0x50,0x4c]))return _0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c96d8=_0x18ae4e(),!_0x4c96d8)return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43e954=_0x1e2475(_0x4c96d8[_0x5990df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c96d8[_0x5990df([0x6a,0x74,0x69])])),await _0x2ff198()?_0x4c7c76()?_0x192a3a()?_0x5990df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3fa157()?(_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10156c=_0x2c2e23(_0x5990df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5990df([0x74,0x72,0x69,0x61,0x6c])&&(_0x10156c=_0x2c2e23(_0x5990df([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49aefa()):_0x5990df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5990df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x192a3a(){const _0x295d3d=[_0x5990df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5990df([0x74,0x72,0x69,0x61,0x6c])][_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa5b1b3/0x3e8:0xe10*_0x3e5dfe;return _0x4c96d8[_0x5990df([0x65,0x78,0x70])]<_0x295d3d;}function _0x4c7c76(){const _0x356b6d=_0x4c96d8[_0x5990df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x356b6d)return!0x1;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x54,0x43])))return!0x0;if(_0x356b6d[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x52,0x54,0x43]))){if(_0x381e67())return!0x0;if(_0x5a1a11()||_0x16403f())return!0x0;}return!0x1;}function _0x3fa157(){const _0x1a02e3=_0x4c96d8[_0x5990df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a02e3||0x0==_0x1a02e3[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4e83db}=new URL(window[_0x5990df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a02e3[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e83db))return!0x0;const _0x275a13=_0x4e83db[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));return _0x1a02e3[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15de72=>_0x15de72[_0x5990df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5990df([0x2a])))[_0x5990df([0x6d,0x61,0x70])](_0x59cb8f=>_0x59cb8f[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])))[_0x5990df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921cb7=>_0x921cb7[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x6d,0x61,0x70])](_0x462228=>Array(_0x275a13[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x462228[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5990df([0x66,0x69,0x6c,0x6c])](_0x462228[0x0]===_0x5990df([0x2a])?_0x5990df([0x2a]):'')[_0x5990df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x462228))[_0x5990df([0x73,0x6f,0x6d,0x65])](_0x433180=>_0x275a13[_0x5990df([0x65,0x76,0x65,0x72,0x79])]((_0x2e9e05,_0x135b26)=>_0x433180[_0x135b26]===_0x2e9e05||_0x433180[_0x135b26]===_0x5990df([0x2a])));}function _0x49aefa(){return _0x10156c&&_0x43e954?new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6ade,_0x380dc1)=>{_0x10156c[_0x5990df([0x74,0x68,0x65,0x6e])](_0x5e6ade,_0x380dc1),_0x43e954[_0x5990df([0x74,0x68,0x65,0x6e])](_0x4b96cb=>{_0x4b96cb!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6ade(_0x4b96cb);},_0x380dc1);}):_0x10156c||_0x43e954||_0x5990df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e2475(_0x4e1352,_0xf933b5){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc416=>{if(_0x2e9c80())return _0x2bc416(_0x5990df([0x56,0x61,0x6c,0x69,0x64]));_0x531b9b(),_0x507a5a[_0x5990df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fd9fc=!0x1;const _0x1f2a21=_0x110ca2();function _0x516523(_0x166260){return!!_0x166260&&(typeof _0x166260===_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x166260===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x166260[_0x5990df([0x74,0x68,0x65,0x6e])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x166260[_0x5990df([0x63,0x61,0x74,0x63,0x68])]===_0x5990df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f23a7(_0x3de3cb){_0x5730a8(_0x3de3cb)[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2428ce=>{if(!_0x2428ce||_0x2428ce[_0x5990df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5990df([0x6f,0x6b]))return _0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9d994(_0x2a6672(_0x1f2a21+_0xf933b5))!=_0x2428ce[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5990df([0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x3f889a=>(_0x6fcc91(),_0x3f889a),()=>{const _0x287113=_0x1843b9();return null==_0x287113?(_0x6fcc91(),_0x5990df([0x56,0x61,0x6c,0x69,0x64])):_0x5990df(_0xa5b1b3-_0x287113>(0x394def54^_0x327cd4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5990df([0x74,0x68,0x65,0x6e])](_0x2bc416)[_0x5990df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3291=0x1d7785d4^_0x327cd4;function _0x6fcc91(){const _0x127937=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x88a76f=_0x41eb0e(_0x9d994(window[_0x5990df([0x4d,0x61,0x74,0x68])][_0x5990df([0x63,0x65,0x69,0x6c])](_0xa5b1b3/_0x5b3291)));window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127937,_0x88a76f);}function _0x1843b9(){const _0xc39e93=_0x5990df([0x6c,0x6c,0x63,0x74,0x2d])+_0x9d994(_0x2a6672(_0x4e1352)),_0x3ea760=window[_0x5990df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5990df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc39e93);return _0x3ea760?window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41eb0e(_0x3ea760),0x10)*_0x5b3291:null;}function _0x5730a8(_0x5edcb2){return new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xecc135,_0x56f155)=>{_0x5edcb2[_0x5990df([0x74,0x68,0x65,0x6e])](_0xecc135,_0x56f155),window[_0x5990df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f155,0x1d40bf94^_0x327cd4);});}}_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3973b7,_0x28fa5b)=>{if(_0x28fa5b[0x0]!=_0x4e1352)return _0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28fa5b[0x1]={..._0x28fa5b[0x1],[_0x5990df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f2a21};},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x68,0x69,0x67,0x68])}),_0x507a5a[_0x5990df([0x6f,0x6e])](_0x5990df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2eab35=>{_0x516523(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fd9fc=!0x0,_0x2f23a7(_0x2eab35[_0x5990df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5990df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5990df([0x6c,0x6f,0x77])}),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>{_0x4fd9fc||_0x2bc416(_0x5990df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e9c80(){return _0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5990df([0x61,0x75,0x74,0x6f]);}function _0x531b9b(){_0x507a5a[_0x5990df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5990df([0x76,0x69,0x65,0x77])][_0x5990df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5990df([0x61,0x75,0x74,0x6f]);}}function _0x2c2e23(_0x3b51df){const _0x44dd6a=[new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16badd=>setTimeout(_0x16badd,0x1d485598^_0x327cd4)),_0x337740[_0x5990df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29fecc=>{let _0x49948a=0x0;_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x6f,0x6e])](_0x5990df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x505c8d,_0x2fbfeb)=>{_0x2fbfeb[0x0][_0x5990df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x49948a++,_0x49948a==(0x1d416aac^_0x327cd4)&&(_0x29fecc(),_0x505c8d[_0x5990df([0x6f,0x66,0x66])]());});}))];return window[_0x5990df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5990df([0x72,0x61,0x63,0x65])](_0x44dd6a)[_0x5990df([0x74,0x68,0x65,0x6e])](()=>_0x3b51df);}async function _0x7c6ad7(){await _0x337740,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x6d,0x6f,0x64,0x65,0x6c])][_0x5990df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3fec57,_0x507a5a[_0x5990df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5990df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x381e67(){return _0x7b3608(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e812d(_0x5990df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5990df([0x73,0x74,0x61,0x74,0x65])]==_0x5990df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5a1a11(){return _0x7b3608(_0x5990df([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 _0x16403f(){return _0x7b3608(_0x5990df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9b01fc(_0x4cdcb6){const _0x18da73=_0x4d12b4();_0x507a5a[_0x18da73]=_0x5990df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4cdcb6,_0x4cdcb6!=_0x5990df([0x56,0x61,0x6c,0x69,0x64])&&_0x7c6ad7();}function _0x4d12b4(){const _0x57988b=window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5990df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5990df([0x6e,0x6f,0x77])]())[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5990df([0x2e]),'');let _0x204b7b=_0x5990df([0x69]);for(let _0x29f444=0x0;_0x29f444<_0x57988b[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29f444+=0x2){let _0x58fbad=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57988b[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29f444,_0x29f444+0x2));_0x58fbad>=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x58fbad-=_0x117464[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x204b7b+=_0x117464[_0x58fbad];}return _0x204b7b;}function _0x18ae4e(){const _0x1027cf=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e]));if(0x3!=_0x1027cf[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe3c135(_0x1027cf[0x1]);function _0xe3c135(_0x2ea70f){const _0x2b6aae=_0x1edac2(_0x2ea70f);return _0x2b6aae&&_0x46150a()?_0x2b6aae:null;function _0x46150a(){const _0x8352c0=_0x2b6aae[_0x5990df([0x6a,0x74,0x69])],_0x3ee699=window[_0x5990df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3349e7={..._0x2b6aae,[_0x5990df([0x6a,0x74,0x69])]:_0x8352c0[_0x5990df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x8352c0[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3349e7[_0x5990df([0x76,0x63])],_0x2a6672(_0x3349e7)==_0x3ee699;}}}async function _0x2ff198(){let _0x45e68e=!0x0;try{const _0x2d2db7=_0x705aba[_0x5990df([0x73,0x70,0x6c,0x69,0x74])](_0x5990df([0x2e])),[_0x44c978,_0x1b36e2,_0x21971c]=_0x2d2db7;return _0x110979(_0x44c978),await _0x49c3e5(_0x44c978,_0x1b36e2,_0x21971c),_0x45e68e;}catch{return!0x1;}function _0x110979(_0x5b1c5a){const _0x245e24=_0x1edac2(_0x5b1c5a);_0x245e24&&_0x245e24[_0x5990df([0x61,0x6c,0x67])]==_0x5990df([0x45,0x53,0x32,0x35,0x36])||(_0x45e68e=!0x1);}async function _0x49c3e5(_0x1015b7,_0x5267c5,_0x4f6b51){const _0x231c7a=window[_0x5990df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5990df([0x66,0x72,0x6f,0x6d])](_0x5a22a3(_0x4f6b51),_0xf90d00=>_0xf90d00[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31c159=new window[(_0x5990df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5990df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1015b7+_0x5990df([0x2e])+_0x5267c5),_0x48881c=window[_0x5990df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5990df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48881c)return;const _0x271afd=await _0x48881c[_0x5990df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5990df([0x6a,0x77,0x6b]),_0x12aba2,{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5990df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48881c[_0x5990df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x45,0x43,0x44,0x53,0x41]),[_0x5990df([0x68,0x61,0x73,0x68])]:{[_0x5990df([0x6e,0x61,0x6d,0x65])]:_0x5990df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x271afd,_0x231c7a,_0x31c159)||(_0x45e68e=!0x1);}}function _0x1edac2(_0x4e785f){return _0x4e785f[_0x5990df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5990df([0x65,0x79]))?JSON[_0x5990df([0x70,0x61,0x72,0x73,0x65])](_0x5a22a3(_0x4e785f)):null;}function _0x5a22a3(_0x4e27ce){return window[_0x5990df([0x61,0x74,0x6f,0x62])](_0x4e27ce[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5990df([0x2b]))[_0x5990df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5990df([0x2f])));}function _0x2a6672(_0x231c2a){let _0x24546d=0x1505;function _0x55dd35(_0x65b312){for(let _0x123e8d=0x0;_0x123e8d<_0x65b312[_0x5990df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123e8d++){const _0x285a36=_0x65b312[_0x5990df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123e8d);_0x24546d=(_0x24546d<<0x5)+_0x24546d+_0x285a36,_0x24546d&=_0x24546d;}}function _0x594999(_0xbb9e45){Array[_0x5990df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xbb9e45)?_0xbb9e45[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x594999):_0xbb9e45&&typeof _0xbb9e45==_0x5990df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5990df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xbb9e45)[_0x5990df([0x73,0x6f,0x72,0x74])]()[_0x5990df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x548695,_0x1a254e])=>{_0x55dd35(_0x548695),_0x594999(_0x1a254e);}):_0x55dd35(window[_0x5990df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xbb9e45));}return _0x594999(_0x231c2a),_0x24546d>>>0x0;}function _0x9d994(_0x3628b2){return _0x3628b2[_0x5990df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5990df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5990df([0x30]));}function _0x41eb0e(_0xaf7e96){return _0xaf7e96[_0x5990df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5990df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5990df([0x6a,0x6f,0x69,0x6e])]('');}function _0x7b3608(_0x59fe4c){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x68,0x61,0x73])](_0x59fe4c);}function _0x5e812d(_0x3853d5){return _0x507a5a[_0x5990df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5990df([0x67,0x65,0x74])](_0x3853d5);}function _0x3fec57(){}function _0x5990df(_0xe82f81){return _0xe82f81['map'](_0x14a2ee=>String['fromCharCode'](_0x14a2ee))['join']('');}_0x9b01fc(await _0x2ef1b4());}(this);}set['adapter'](_0x54398d){if(this['_adapter'])throw new _0x5d208c('track-changes-adapter-already-set',this);this['_adapter']=_0x54398d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe9ecde=!0x1,toJSON:_0x441df4=!0x1}={}){const _0x502b0d=[];for(const _0x4fcb45 of this['_suggestions']['values']())_0xe9ecde&&!_0x4fcb45['isInContent']||_0x502b0d['push'](_0x4fcb45);return _0x441df4?_0x502b0d['map'](_0xabc6d2=>_0xabc6d2['toJSON']()):_0x502b0d;}['getSuggestion'](_0x392693){const _0x4e0310=this['_suggestions']['get'](_0x392693);if(!_0x4e0310)throw new _0x5d208c('track-changes-suggestion-not-found',this);return _0x4e0310;}['hasSuggestion'](_0x2dc78d){return this['_suggestions']['has'](_0x2dc78d);}['addSuggestionData'](_0x3a9f3f){const {authorId:_0x4c8b05,id:_0x2b6d75,originalSuggestionId:_0xbc07cc,attributes:_0x53d0b0}=_0x3a9f3f,[_0x5af4f4,_0x49ddae]=_0x3a9f3f['type']['split'](':'),_0xa56ba1=this['_suggestions']['get'](_0x2b6d75)||this['_createSuggestion'](_0x5af4f4,_0x49ddae,_0x2b6d75,_0x4c8b05,_0x53d0b0,_0xbc07cc);if(this['_addThreadToSuggestion'](_0xa56ba1),this['_checkSuggestionCorrectness'](_0xa56ba1,_0x5af4f4,_0x49ddae||null,_0x4c8b05),_0xa56ba1['createdAt']=_0x3a9f3f['createdAt'],_0xa56ba1['_isDataLoaded']=!0x0,_0x53d0b0&&_0x53d0b0['@external']){const _0x17d267=_0x53d0b0['@external'],_0x5552f8=this['_getExternalAuthor'](_0x17d267['authorName']);_0xa56ba1['authoredAt']=_0x17d267['createdAt'],_0xa56ba1['author']=_0x5552f8,_0xa56ba1['isExternal']=!0x0;}else _0xa56ba1['authoredAt']=_0x3a9f3f['createdAt'];switch(_0x3a9f3f['data']&&(_0xa56ba1['data']=_0x3a9f3f['data']),_0x3a9f3f['attributes']&&(_0xa56ba1['attributes']=_0x3a9f3f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa56ba1['_saved']=!0x0),this['_suggestionState']['get'](_0xa56ba1)){case'notReady':this['_suggestionState']['set'](_0xa56ba1,'dataReady');break;case'markerReady':_0xa56ba1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa56ba1])),this['_refreshSuggestionsChain'](new Set([_0xa56ba1])),this['_suggestionState']['set'](_0xa56ba1,'ready'),this['fire']('suggestionLoaded',_0xa56ba1)):this['_suggestionState']['set'](_0xa56ba1,'removed');}return _0xa56ba1;}['acceptSuggestion'](_0xeceed4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x110661 of _0xeceed4['getAllAdjacentSuggestions']())_0x110661['accept']();});});}['discardSuggestion'](_0x6465fc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x175ec8 of _0x6465fc['getAllAdjacentSuggestions']())_0x175ec8['discard']();});});}['enableCommand'](_0x4513c4,_0x5510d6){const _0x2b152b=this['editor']['commands']['get'](_0x4513c4);if(!_0x2b152b)throw new _0x5d208c('track-changes-command-not-found',this,{'commandName':_0x4513c4});if(this['_enabledCommands']['has'](_0x2b152b))throw new _0x5d208c('track-changes-enable-command-twice',this,{'commandName':_0x4513c4});this['_enabledCommands']['add'](_0x2b152b),_0x5510d6&&_0x2b152b['on']('execute',(_0x165ad8,_0x35d0b9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x35d0b9['length']>0x0&&_0x35d0b9[_0x35d0b9['length']-0x1]&&_0x35d0b9[_0x35d0b9['length']-0x1]['forceDefaultExecution']?_0x35d0b9['pop']():(_0x165ad8['return']=_0x5510d6((..._0x5acec3)=>_0x2b152b['execute'](..._0x5acec3,{'forceDefaultExecution':!0x0}),..._0x35d0b9),_0x165ad8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x23fe44){let _0x4858a6,_0x408f67;const _0x4983df=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4858a6=_0x23fe44();}catch(_0x270362){_0x408f67=_0x270362;}return _0x4983df||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x408f67&&_0x5d208c['rethrowUnexpectedError'](_0x408f67,this),_0x4858a6;}['markInsertion'](_0x8f83a,_0x32b450=null,_0xc2507c={}){if(_0x8f83a['isCollapsed'])return null;const _0x59b570=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xc2507c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28df3a,meta:_0x2bf824}of this['_findSuggestions'](_0x8f83a,'insertion'))if(_0x2bf824['isOwn']){if(!_0x2bf824['isNextTo']){if(_0x2bf824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x28df3a,_0xc2507c))continue;return _0x28df3a;}if(Xt(_0x28df3a,_0xc2507c))return _0x28df3a;this['_breakSuggestionMarker'](_0x28df3a,_0x8f83a['start'],_0x8f83a['end']);break;}if(_0x32b450==_0x28df3a['subType']&&Xt(_0x28df3a,_0xc2507c)){const _0x87553a=_0x28df3a['getFirstRange']();return _0x87553a['start']['isEqual'](_0x8f83a['end'])?this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x8f83a['start'],_0x87553a['end'])):this['_setSuggestionRange'](_0x28df3a,this['_model']['createRange'](_0x87553a['start'],_0x8f83a['end'])),_0x28df3a;}}const _0x67fff4=_0x110ca2(),_0x1adff4=_0x59b570['id'],_0x52ed23=_0x32b450?'insertion:'+_0x32b450:'insertion',_0x4b8d34=this['_setSuggestionData']({'id':_0x67fff4,'type':_0x52ed23,'createdAt':new Date(),'authorId':_0x1adff4,'attributes':_0xc2507c});return this['_addSuggestionMarker'](_0x52ed23,_0x67fff4,_0x1adff4,_0x8f83a),_0x4b8d34;}['markMultiRangeInsertion'](_0x41f632,_0x2b572a='multi',_0x3c1d24={}){const _0x5d4144=this['editor']['plugins']['get']('Users')['me'],_0x1051e6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b572a,'join');this['_trackingSessionId']&&(_0x3c1d24['trackingSessionId']=this['_trackingSessionId']);for(const _0x213811 of this['getSuggestions']())if(_0x213811['author']['id']==_0x5d4144['id']&&'insertion'==_0x213811['type']&&_0x213811['subType']==_0x2b572a&&Xt(_0x213811,_0x3c1d24)&&(_0x1051e6(_0x213811['getRanges'](),_0x41f632)||_0x1051e6(_0x41f632,_0x213811['getRanges']()))){for(const _0x2d0cd5 of _0x41f632)_0x213811['addRange'](_0x2d0cd5);return _0x213811;}for(const {suggestion:_0x2cd5e2,meta:_0x28444c}of this['_findSuggestions'](_0x41f632,'insertion')){if(!_0x28444c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28444c['containsRangeInObject'])continue;if(!Xt(_0x2cd5e2,_0x3c1d24))continue;let _0x79a56e=!0x0;for(const _0x2c6516 of _0x2cd5e2['getRanges']())for(const _0x1cb33a of _0x41f632)if(!_0x2c6516['containsRange'](_0x1cb33a)){_0x79a56e=!0x1;break;}if(_0x79a56e)return _0x2cd5e2;}const _0x5a25f0=_0x110ca2(),_0x4f6f62=_0x5d4144['id'],_0x3d108a='insertion:'+_0x2b572a,_0x30eab1=this['_setSuggestionData']({'id':_0x5a25f0,'type':_0x3d108a,'createdAt':new Date(),'authorId':_0x4f6f62,'attributes':_0x3c1d24});for(const _0x58cf82 of _0x41f632)this['_addSuggestionMarker'](_0x3d108a,_0x5a25f0,_0x4f6f62,_0x58cf82,T['getMultiRangeId']());return _0x30eab1;}['markInlineFormat'](_0x1f527a,_0x5d6ae6,_0x13f22b=null,_0x44ee51={}){if(_0x13f22b=_0x13f22b||Lt(_0x5d6ae6),_0x1f527a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x44ee51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d921b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');return this['forceDefaultExecution'](()=>_0x1d921b([_0x1f527a],_0x5d6ae6,_0x44ee51)),null;}const _0x1acd1c=this['editor']['plugins']['get']('Users')['me'],_0x44d9b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdc1b1d,meta:_0x26fa89}of this['_findSuggestions'](_0x1f527a,'insertion'))_0x26fa89['isOwn']&&!_0x26fa89['isInsideObject']&&_0x44d9b1['push'](..._0xdc1b1d['getRanges']());}const _0x4c2e04=function(_0x583efd,_0x1268cc){const _0x44ccbc=[];for(const _0x5e2821 of _0x1268cc){const _0x2f3343=_0x583efd['getIntersection'](_0x5e2821);_0x2f3343&&_0x44ccbc['push'](_0x2f3343);}return _0x44ccbc;}(_0x1f527a,_0x44d9b1),_0x275818=function(_0x4c156e,_0x95df54){const _0x5947ec=[_0x4c156e];for(const _0x4adf04 of _0x95df54){let _0x1418da=0x0;for(;_0x1418da<_0x5947ec['length'];){const _0x547135=_0x5947ec[_0x1418da]['getDifference'](_0x4adf04);_0x5947ec['splice'](_0x1418da,0x1,..._0x547135),_0x1418da+=_0x547135['length'];}}return _0x5947ec;}(_0x1f527a,_0x44d9b1);_0x4c2e04['length']&&this['_model']['change'](()=>{for(const _0x5cd637 of _0x4c2e04){const _0x170498=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13f22b,'accept');this['forceDefaultExecution'](()=>_0x170498([_0x5cd637],_0x5d6ae6,_0x44ee51));}});for(const _0x5c7c33 of _0x275818){let _0x3e3751=null,_0x4eb421=_0x5c7c33['start'],_0x39b08c=_0x5c7c33['end'];for(const {suggestion:_0x25e866,meta:_0x242741}of this['_findSuggestions'](_0x5c7c33,'formatInline')){if(!_0x242741['isOwn'])continue;if(_0x25e866['subType']!=_0x13f22b)continue;if(!Xt(_0x25e866,_0x44ee51))continue;const _0x221ef6=_0x25e866['getFirstRange']();if(_0x221ef6['containsRange'](_0x5c7c33,!0x0))return null;_0x4eb421=_0x4eb421['isBefore'](_0x221ef6['start'])?_0x4eb421:_0x221ef6['start'],_0x39b08c=_0x39b08c['isAfter'](_0x221ef6['end'])?_0x39b08c:_0x221ef6['end'],_0x3e3751?_0x221ef6['start']['isBefore'](_0x3e3751['getFirstRange']()['start'])?(_0x3e3751['removeMarkers'](),_0x3e3751=_0x25e866):_0x25e866['removeMarkers']():_0x3e3751=_0x25e866;}const _0x24204e=this['_model']['createRange'](_0x4eb421,_0x39b08c);if(_0x3e3751)this['_setSuggestionRange'](_0x3e3751,_0x24204e);else{const _0x25d0d4=_0x110ca2(),_0x4738c5=_0x1acd1c['id'];this['_setSuggestionData']({'id':_0x25d0d4,'type':'formatInline:'+_0x13f22b,'data':_0x5d6ae6,'createdAt':new Date(),'authorId':_0x4738c5,'attributes':_0x44ee51}),this['_addSuggestionMarker']('formatInline:'+_0x13f22b,_0x25d0d4,_0x4738c5,_0x24204e);}}return null;}['markBlockFormat'](_0x521226,_0x244117,_0x1464bc=[],_0x43180d=null,_0x502438={}){_0x244117['formatGroupId']||(_0x244117['formatGroupId']=_0x244117['commandName']),_0x244117['multipleBlocks']=_0x521226['is']('range'),_0x43180d=_0x43180d||Lt(_0x244117);const _0x13f943=_0x1464bc['map'](_0x15d77b=>zt(_0x15d77b,this['_model'])),_0xb23ba7=_0x521226['is']('range')?_0x521226:zt(_0x521226,this['_model']);if(this['_trackingSessionId']&&(_0x502438['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x272ed6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x272ed6([_0xb23ba7],_0x244117,_0x502438)),null;}_0x13f943['push'](_0xb23ba7);let _0x3ef608=!0x0;for(const _0x73ef0b of _0x13f943)if(!this['_rangeIsInLocalUserInsertion'](_0x73ef0b)){_0x3ef608=!0x1;break;}if(_0x3ef608&&'always'!==this['_trackFormatChanges']){const _0x1ec31d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43180d,'accept');return this['forceDefaultExecution'](()=>_0x1ec31d([_0xb23ba7],_0x244117,_0x502438)),null;}let _0x58dd26=null,_0x2bc82e=_0xb23ba7['start'],_0x51c849=_0xb23ba7['end'];for(const {suggestion:_0x489f23,meta:_0x2d6ebd}of this['_findSuggestions'](_0xb23ba7,'formatBlock')){if(!_0x2d6ebd['isOwn'])continue;if(_0x2d6ebd['isNextTo']||_0x2d6ebd['containsRangeInObject']||_0x2d6ebd['isInsideObject'])continue;if(_0x489f23['data']['formatGroupId']!=_0x244117['formatGroupId'])continue;if(!Xt(_0x489f23,_0x502438))continue;const _0x2e7b66=_0x489f23['getFirstRange']();if(_0x489f23['subType']==_0x43180d){if(_0x2e7b66['containsRange'](_0xb23ba7,!0x0))return null;_0x2bc82e=_0x2bc82e['isBefore'](_0x2e7b66['start'])?_0x2bc82e:_0x2e7b66['start'],_0x51c849=_0x51c849['isAfter'](_0x2e7b66['end'])?_0x51c849:_0x2e7b66['end'],_0x58dd26?_0x2e7b66['start']['isBefore'](_0x58dd26['getFirstRange']()['start'])?(_0x58dd26['removeMarkers'](),_0x58dd26=_0x489f23):_0x489f23['removeMarkers']():_0x58dd26=_0x489f23;}else{const _0x54cc03=_0xb23ba7['getIntersection'](_0x2e7b66);this['_cutOutSuggestionMarker'](_0x489f23,_0x54cc03);}}const _0xde5f24=this['editor']['plugins']['get']('Users')['me'],_0x587a72=_0x110ca2(),_0x3e984e=_0xde5f24['id'];if(_0x58dd26)return this['_setSuggestionRange'](_0x58dd26,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x58dd26;{const _0x40d9f1=this['_setSuggestionData']({'id':_0x587a72,'type':'formatBlock:'+_0x43180d,'data':_0x244117,'createdAt':new Date(),'authorId':_0x3e984e,'attributes':_0x502438});return this['_addSuggestionMarker']('formatBlock:'+_0x43180d,_0x587a72,_0x3e984e,this['_model']['createRange'](_0x2bc82e,_0x51c849)),_0x40d9f1;}}['markMultiRangeBlockFormat'](_0x1be585,_0x100261,_0x1b8f2a=[],_0x364aa8=null,_0x194242={}){_0x100261['formatGroupId']||(_0x100261['formatGroupId']=_0x100261['commandName']);const _0x5139b4=_0x1be585[0x0];_0x100261['multipleBlocks']=_0x5139b4['is']('range'),_0x364aa8=_0x364aa8||Lt(_0x100261);const _0x33c89b=_0x1b8f2a['map'](_0x15227c=>zt(_0x15227c,this['_model'])),_0x134647=_0x5139b4['is']('range')?_0x1be585:_0x1be585['map'](_0x5009cb=>zt(_0x5009cb,this['_model']));if(this['_trackingSessionId']&&(_0x194242['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d3320=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x1d3320(_0x134647,_0x100261,_0x194242)),null;}_0x33c89b['push'](..._0x134647);let _0x59e3b6=!0x0;for(const _0x25c53d of _0x33c89b)if(!this['_rangeIsInLocalUserInsertion'](_0x25c53d)){_0x59e3b6=!0x1;break;}if(_0x59e3b6&&'always'!==this['_trackFormatChanges']){const _0x34cc41=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'accept');return this['forceDefaultExecution'](()=>_0x34cc41(_0x134647,_0x100261,_0x194242)),null;}const _0x2d587f=this['editor']['plugins']['get']('Users')['me'];for(const _0x56029d of this['getSuggestions']()){const _0x412ee7=_0x56029d['data'];if(_0x56029d['author']['id']!=_0x2d587f['id'])continue;if('formatBlock'!=_0x56029d['type']||_0x412ee7['formatGroupId']!=_0x100261['formatGroupId'])continue;if(!Xt(_0x56029d,_0x194242))continue;const _0x1e02fd=_0x56029d['subType']==_0x364aa8;for(let _0x54ca76=0x0;_0x54ca76<_0x134647['length'];_0x54ca76++){const _0x206f53=_0x134647[_0x54ca76];for(const _0x39a69a of _0x56029d['getMarkers']()){const _0x2b9f28=_0x39a69a['getRange']();if(_0x206f53['isEqual'](_0x2b9f28)){_0x1e02fd?(_0x134647['splice'](_0x54ca76,0x1),_0x54ca76--):_0x56029d['removeMarker'](_0x39a69a['name']);break;}}}}if(0x0==_0x134647['length'])return null;const _0x4d5622=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x364aa8,'join');for(const _0x5927b3 of this['getSuggestions']()){const _0x2bb05e=_0x5927b3['data'];if(_0x5927b3['author']['id']==_0x2d587f['id']&&('formatBlock'==_0x5927b3['type']&&_0x2bb05e['formatGroupId']==_0x100261['formatGroupId']&&_0x5927b3['subType']==_0x364aa8&&Xt(_0x5927b3,_0x194242)&&(_0x4d5622(_0x5927b3['getRanges'](),_0x134647)||_0x4d5622(_0x134647,_0x5927b3['getRanges']())))){for(const _0x496358 of _0x134647)_0x5927b3['addRange'](_0x496358);return _0x5927b3;}}const _0x1ece76=_0x110ca2(),_0x326f65=_0x2d587f['id'],_0x54a849='formatBlock:'+_0x364aa8,_0x411d8c=this['_setSuggestionData']({'id':_0x1ece76,'type':_0x54a849,'data':_0x100261,'createdAt':new Date(),'authorId':_0x326f65,'attributes':_0x194242});for(const _0x37613a of _0x134647)this['_addSuggestionMarker'](_0x54a849,_0x1ece76,_0x326f65,_0x37613a,T['getMultiRangeId']());return _0x411d8c;}['markDeletion'](_0x2b46e1,_0x53239b=null,_0x38234c={}){if(_0x2b46e1['isCollapsed'])return null;const _0x5bb93a=this['editor']['plugins']['get']('Users')['me'],_0x2345a6=new _0x217d71(_0x2b46e1['start'],_0x2b46e1['end']);this['_trackingSessionId']&&(_0x38234c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x26c178,meta:_0x1fdff7}of this['_findSuggestions'](_0x2345a6,'insertion'))if(_0x1fdff7['isOwn']&&!_0x1fdff7['isNextTo']){if(_0x26c178['isMultiRange']){const _0x50c4ec=_0x26c178['getRanges']()['filter'](_0x2340a5=>'$graveyard'!=_0x2340a5['root']['rootName']);_0x50c4ec['every'](_0x449822=>_0x2345a6['containsRange'](_0x449822,!0x0))&&_0x26c178['discard']();if(_0x50c4ec['some'](_0x29d3d6=>_0x29d3d6['containsRange'](_0x2345a6,!0x0))){const _0x568110=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x53239b,'accept');return this['forceDefaultExecution'](()=>_0x568110([_0x2345a6],null,_0x38234c)),null;}}else{const _0x253a1c=_0x2345a6['getIntersection'](_0x26c178['getFirstRange']());null!==_0x253a1c&&_0x26c178['_onDiscard']([_0x253a1c],null,_0x38234c);}}if(_0x2345a6['detach'](),_0x2345a6['isCollapsed']||'$graveyard'==_0x2345a6['root']['rootName'])return null;let _0x3bde10=null,_0x1e05ff=_0x2345a6['start'],_0x123a9b=_0x2345a6['end'];const _0x405c79=this['_findSuggestions'](_0x2345a6,'deletion');for(const {suggestion:_0x332880,meta:_0x15431a}of _0x405c79){const _0x5e3cc0=this['_model']['createRange'](_0x1e05ff,_0x123a9b);if(_0x15431a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15431a['containsRangeInObject']&&!_0x15431a['isInsideObject'])){if(_0x332880['isMultiRange']){if(!Xt(_0x332880,_0x38234c))continue;let _0x8d6db9=!0x0;for(const _0x356305 of _0x332880['getRanges']()){if(_0x356305['containsRange'](_0x5e3cc0,!0x0))return _0x332880;_0x5e3cc0['containsRange'](_0x356305)||(_0x8d6db9=!0x1);}_0x8d6db9&&_0x332880['discard']();}else{const _0x53caea=_0x332880['getFirstRange']();if(_0x53caea['containsRange'](_0x5e3cc0,!0x0))return _0x332880;if(!Xt(_0x332880,_0x38234c)){_0x5e3cc0['containsRange'](_0x53caea)?_0x332880['removeMarkers']():_0x53caea['containsPosition'](_0x1e05ff)?_0x1e05ff=_0x53caea['end']:_0x53caea['containsPosition'](_0x123a9b)&&(_0x123a9b=_0x53caea['start']);continue;}_0x1e05ff=_0x1e05ff['isBefore'](_0x53caea['start'])?_0x1e05ff:_0x53caea['start'],_0x123a9b=_0x123a9b['isAfter'](_0x53caea['end'])?_0x123a9b:_0x53caea['end'],_0x38234c=Object['assign']({},_0x332880['attributes']),_0x3bde10?_0x53caea['start']['isBefore'](_0x3bde10['getFirstRange']()['start'])?(_0x3bde10['removeMarkers'](),_0x3bde10=_0x332880):_0x332880['removeMarkers']():_0x3bde10=_0x332880;}}}if(_0x3bde10)return this['_setSuggestionRange'](_0x3bde10,this['_model']['createRange'](_0x1e05ff,_0x123a9b)),_0x3bde10;{const _0x2badf9=_0x110ca2(),_0x2ee32b=this['_model']['createRange'](_0x1e05ff,_0x123a9b),_0x4bb50e=_0x5bb93a['id'],_0x566478=_0x53239b?'deletion:'+_0x53239b:'deletion',_0x3700b8=this['_setSuggestionData']({'id':_0x2badf9,'type':_0x566478,'createdAt':new Date(),'authorId':_0x4bb50e,'attributes':_0x38234c});return this['_addSuggestionMarker'](_0x566478,_0x2badf9,_0x4bb50e,_0x2ee32b),_0x3700b8;}}['markMultiRangeDeletion'](_0x9dd203,_0x538ac5='multi',_0x9df0ba={}){const _0xc12d7b=this['editor']['plugins']['get']('Users')['me'],_0x1008af=_0x9dd203['map'](_0x1de9dd=>new _0x217d71(_0x1de9dd['start'],_0x1de9dd['end'])),_0x5790ee=new Set();this['_trackingSessionId']&&(_0x9df0ba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x9f3e2a,meta:_0x974e0d}of this['_findSuggestions'](_0x1008af,'insertion'))_0x974e0d['isOwn']&&!_0x974e0d['isNextTo']&&_0x5790ee['add'](_0x9f3e2a);for(const _0x5c19b4 of _0x5790ee)if(_0x5c19b4['isMultiRange']){const _0x1c4056=_0x5c19b4['getRanges']();(!_0x5c19b4['attributes']||!_0x5c19b4['attributes']['skipNestingCheck'])&&(_0x1c4056['every'](_0x580a8c=>_0x1008af['some'](_0xdb60e2=>_0xdb60e2['containsRange'](_0x580a8c,!0x0)))&&_0x5c19b4['discard']());if(_0x1008af['every'](_0x194e1f=>_0x1c4056['some'](_0x25c8a1=>_0x25c8a1['containsRange'](_0x194e1f,!0x0)))){const _0x456bed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x456bed(_0x9dd203,null,_0x9df0ba)),null;}}else{const _0x1f5b06=_0x5c19b4['getFirstRange']();_0x1008af['some'](_0x34a0f8=>_0x34a0f8['containsRange'](_0x1f5b06,!0x0))&&_0x5c19b4['discard']();if(_0x1008af['every'](_0x505627=>_0x1f5b06['containsRange'](_0x505627,!0x0))){const _0x175c21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'accept');return this['forceDefaultExecution'](()=>_0x175c21(_0x1008af,null,_0x9df0ba)),null;}}const _0x31ae9d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538ac5,'join');let _0x147321=null;for(const _0x275c4f of this['getSuggestions']())if(_0x275c4f['author']['id']==_0xc12d7b['id']&&_0x275c4f['isInContent']&&'deletion'==_0x275c4f['type']&&_0x275c4f['subType']==_0x538ac5&&Xt(_0x275c4f,_0x9df0ba)&&(_0x31ae9d(_0x275c4f['getRanges'](),_0x1008af)||_0x31ae9d(_0x1008af,_0x275c4f['getRanges']()))){if(_0x147321){if(_0x275c4f['commentThread']&&_0x275c4f['commentThread']['length'])continue;for(const _0x43523b of _0x275c4f['getRanges']())_0x147321['isIntersectingWithRange'](_0x43523b)||_0x147321['addRange'](_0x43523b);_0x275c4f['removeMarkers']();}else{_0x147321=_0x275c4f;for(const _0x4c0ae6 of _0x1008af)_0x275c4f['isIntersectingWithRange'](_0x4c0ae6)||_0x275c4f['addRange'](_0x4c0ae6);}}if(_0x147321)return _0x147321;_0x5790ee['clear']();for(const {suggestion:_0x434240,meta:_0x312cf8}of this['_findSuggestions'](_0x1008af,'deletion'))_0x312cf8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x312cf8['containsRangeInObject']&&!_0x312cf8['isInsideObject'])&&Xt(_0x434240,_0x9df0ba)&&_0x5790ee['add'](_0x434240);for(const _0x4534b5 of _0x5790ee){const _0x17a61f=_0x4534b5['getRanges']();if(!_0x9df0ba||!_0x9df0ba['skipNestingCheck']){if(_0x1008af['every'](_0x267efa=>_0x17a61f['some'](_0x504f8e=>_0x504f8e['containsRange'](_0x267efa,!0x0))))return _0x4534b5;}(!_0x4534b5['attributes']||!_0x4534b5['attributes']['skipNestingCheck'])&&(_0x17a61f['every'](_0x48facb=>_0x1008af['some'](_0x2e445e=>_0x2e445e['containsRange'](_0x48facb,!0x0)))&&_0x4534b5['discard']());}const _0x4940fe=_0x110ca2(),_0x891846=_0xc12d7b['id'],_0xd52b45='deletion:'+_0x538ac5,_0x447823=this['_setSuggestionData']({'id':_0x4940fe,'type':_0xd52b45,'createdAt':new Date(),'authorId':_0x891846,'attributes':_0x9df0ba});for(const _0x1db4a5 of _0x1008af)_0x1db4a5['detach'](),_0x1db4a5['isCollapsed']||'$graveyard'==_0x1db4a5['root']['rootName']||this['_addSuggestionMarker'](_0xd52b45,_0x4940fe,_0x891846,_0x1db4a5,T['getMultiRangeId']());return _0x447823;}['markAttributeChange'](_0x4a51d7,_0x3f85d3,_0x1709ff,_0x20f08f,_0x3985f1){if(_0x4a51d7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5f8aea=this['editor']['plugins']['get']('Users')['me']['id'],_0x174981=Array['from'](this['_suggestions']['values']())['filter'](_0x1775d5=>'attribute'==_0x1775d5['type']&&_0x1775d5['data']['key']==_0x3f85d3&&_0x1775d5['isIntersectingWithRange'](_0x4a51d7));if(this['_trackingSessionId']&&(_0x3985f1['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2b6470=this['_findSuggestions'](_0x4a51d7,'insertion')['filter'](({meta:_0x4039a0})=>_0x4039a0['isOwn']&&!_0x4039a0['isInsideObject']&&!_0x4039a0['isNextTo'])['map'](({suggestion:_0x14f153})=>_0x14f153);_0x174981['unshift'](..._0x2b6470);}const _0x1c71b7=new Map([[_0x4a51d7,_0x1709ff]]);for(const _0x5f08fc of _0x174981){const _0x19c885='attribute'==_0x5f08fc['type']?_0x5f08fc['data']['oldValue']:void 0x0,_0x4a9f40=_0x5f08fc['getFirstRange'](),_0xdc5212=Array['from'](_0x1c71b7['keys']())['find'](_0x1cd242=>_0x1cd242['isIntersecting'](_0x4a9f40));if(!_0xdc5212)continue;const _0x176f30=_0xdc5212['getDifference'](_0x4a9f40);this['_isBlockAttribute'](_0x3f85d3)&&'insertion'==_0x5f08fc['type']&&0x0!=_0x176f30['length']||(_0x1c71b7['delete'](_0xdc5212),_0x176f30['forEach'](_0xb85c51=>{_0x1c71b7['set'](_0xb85c51,_0x1709ff);}),'insertion'!=_0x5f08fc['type']&&_0x19c885!=_0x20f08f&&_0x1c71b7['set'](_0xdc5212['getIntersection'](_0x4a9f40),_0x19c885));}const _0x58ae3f=[];for(const [_0x47b3c5,_0x3bcb3e]of _0x1c71b7){const _0x1d70dd=_0x110ca2(),_0x149343={'key':_0x3f85d3,'oldValue':_0x3bcb3e,'newValue':_0x20f08f};_0x3f85d3['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':_0x3f85d3});const _0x37f469=('attribute:'+(_0x3f85d3+'|'+Lt({'newValue':_0x20f08f})))['substring'](0x0,0x3c),_0x2f90da=this['_setSuggestionData']({'id':_0x1d70dd,'type':_0x37f469,'data':_0x149343,'createdAt':new Date(),'authorId':_0x5f8aea,'attributes':_0x3985f1});_0x58ae3f['push'](_0x2f90da),this['_addSuggestionMarker'](_0x37f469,_0x1d70dd,_0x5f8aea,_0x47b3c5);}return _0x58ae3f;}['enableDefaultAttributesIntegration'](_0x323fe4){this['enableCommand'](_0x323fe4,(_0x156c3c,..._0x587a7f)=>{this['recordAttributeChanges'](()=>{_0x156c3c(..._0x587a7f);});});}['registerBlockAttribute'](_0xd67bfc){this['_blockAttributeKeys']['add'](_0xd67bfc);}['registerInlineAttribute'](_0x5b2238){this['_inlineAttributeKeys']['add'](_0x5b2238);}['startTrackingSession'](_0xf76999){return this['_trackingSessionId']=void 0x0!==_0xf76999?_0xf76999:_0x110ca2(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32fb63){return'attribute'==_0x32fb63['type']?_0x32fb63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31a39b,_0x5c970e){const _0x11f16b=_0x31a39b['getFirstMarker']();this['_model']['change'](_0x530b8e=>{_0x530b8e['updateMarker'](_0x11f16b,{'range':_0x5c970e});});}['_addThreadToSuggestion'](_0x44d1b6){const _0x40ed71=_0x44d1b6['id'],_0x24527b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40ed71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x24527b,'threadId':_0x40ed71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18a234=this['_commentsRepository']['getCommentThread'](_0x40ed71);_0x18a234['unbind']('isRemovable'),_0x18a234['isRemovable']=!0x1,_0x44d1b6['commentThread']=_0x18a234;}['_checkSuggestionCorrectness'](_0x504594,_0x34cb22,_0x4de8d8,_0x43c629){if(_0x504594['type']!=_0x34cb22||_0x504594['subType']!=_0x4de8d8||_0x504594['creator']['id']!=_0x43c629)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5d208c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x35f44d,_0x4cd4ff){const _0x1943cd=_0x35f44d['getFirstRange']();if(_0x4cd4ff['isEqual'](_0x1943cd))_0x35f44d['removeMarkers']();else{if(_0x1943cd['containsRange'](_0x4cd4ff)){const _0x48613c=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x48613c));const _0x2a4f08=_0x110ca2(),_0x2ea2d5=_0x35f44d['creator']['id'],_0x182b7b=_0x35f44d['type']+':'+_0x35f44d['subType'];this['_setSuggestionData']({'id':_0x2a4f08,'type':_0x182b7b,'createdAt':new Date(),'authorId':_0x2ea2d5,'data':_0x35f44d['data'],'attributes':_0x35f44d['attributes']});const _0x29a4ef=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after'),_0xc2206a=this['_model']['createRange'](_0x29a4ef,_0x1943cd['end']);this['_addSuggestionMarker'](_0x182b7b,_0x2a4f08,_0x2ea2d5,_0xc2206a);}else{if(_0x1943cd['containsPosition'](_0x4cd4ff['start'])){const _0x37ee05=this['_model']['createPositionAt'](_0x4cd4ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1943cd['start'],_0x37ee05));}else{const _0x1dfb8a=this['_model']['createPositionAt'](_0x4cd4ff['end']['parent'],'after');this['_setSuggestionRange'](_0x35f44d,this['_model']['createRange'](_0x1dfb8a,_0x1943cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x76b670){for(const {suggestion:_0x3d3a8e,meta:_0x1ea032}of this['_findSuggestions'](_0x76b670,'insertion')){if(!_0x1ea032['isOwn'])continue;const _0x591bac=_0x3d3a8e['getRanges']();for(const _0x203b73 of _0x591bac)if(!_0x76b670['getDifference'](_0x203b73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c458f){const _0x27bc7c=this['editor']['plugins']['get']('Users')['getUser'](_0x3c458f);if(!_0x27bc7c)throw new _0x5d208c('track-changes-user-not-found',this);return _0x27bc7c;}['_getExternalAuthor'](_0x3214ac){const _0x451374=this['editor']['plugins']['get']('Users'),_0xa8323=_0x51422e('external:'+_0x3214ac),_0x2bc351=_0x451374['getUser'](_0xa8323);return _0x2bc351||_0x451374['addUser']({'id':_0xa8323,'name':_0x3214ac});}['_createSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x308a95,_0x53ee40,_0x2ebc24){const _0x47352e=this['_getAuthorFromId'](_0x308a95),_0x15d994=this['_suggestionFactory']['buildSuggestion'](_0x7166d4,_0x42fb50,_0x4ed217,_0x47352e,_0x53ee40,_0x37f5db=>{this['_updateSuggestionData'](_0x4ed217,{'attributes':_0x37f5db});const _0xdad45f=this['getSuggestion'](_0x4ed217);this['_joinWithAdjacentSuggestions'](new Set([_0xdad45f])),this['_refreshSuggestionsChain'](new Set([_0xdad45f]));},_0x2ebc24);return this['listenTo'](_0x15d994,'accept',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x15d994,'discard',()=>{this['_updateSuggestionData'](_0x4ed217,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ed217,_0x15d994),this['_suggestionState']['set'](_0x15d994,'notReady'),_0x15d994;}['_splitMarkerName'](_0x48fd70){const _0x17e6fe=_0x48fd70['split'](':');return{'group':_0x17e6fe[0x0],'type':_0x17e6fe[0x1],'subType':_0x17e6fe['length']>=0x5?_0x17e6fe[0x2]:null,'id':_0x17e6fe['length']<0x5?_0x17e6fe[0x2]:_0x17e6fe[0x3],'authorId':_0x17e6fe['length']<0x5?_0x17e6fe[0x3]:_0x17e6fe[0x4],'markerCount':0x6==_0x17e6fe['length']?_0x17e6fe[0x5]:null};}['_breakSuggestionMarker'](_0x1b8402,_0x381cda,_0x2fffc9){const _0x1f807e=_0x1b8402['getFirstRange'](),_0x454eba=_0x1f807e['start'],_0x48bc1e=_0x1f807e['end'];this['_setSuggestionRange'](_0x1b8402,this['_model']['createRange'](_0x454eba,_0x381cda));const _0x25dbc7=_0x110ca2(),_0xa524d1=_0x1b8402['creator']['id'],_0x396f98=_0x1b8402['type']+(_0x1b8402['subType']?':'+_0x1b8402['subType']:'');this['_setSuggestionData']({'id':_0x25dbc7,'type':_0x396f98,'createdAt':new Date(),'authorId':_0xa524d1,'originalSuggestionId':_0x1b8402['_originalSuggestionId']||_0x1b8402['id'],'attributes':_0x1b8402['attributes'],'data':_0x1b8402['data']});const _0x2f243f=this['_getAttributeKey'](_0x1b8402);('formatBlock'==_0x1b8402['type']||_0x2f243f&&this['_isBlockAttribute'](_0x2f243f))&&(_0x2fffc9=this['_model']['createPositionBefore'](_0x2fffc9['parent'])),this['_addSuggestionMarker'](_0x396f98,_0x25dbc7,_0xa524d1,this['_model']['createRange'](_0x2fffc9,_0x48bc1e));}['_findSuggestions'](_0x27b177,_0x39c7cb=null){const _0x5abeab=[],_0x217b1e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27b177)||(_0x27b177=[_0x27b177]);for(const _0x3313fb of this['getSuggestions']()){if(!_0x3313fb['isInContent'])continue;if(_0x39c7cb&&_0x3313fb['type']!=_0x39c7cb)continue;let _0x56098b=!0x1;for(const _0x1efcf7 of _0x3313fb['getRanges']()){for(const _0x5410d7 of _0x27b177){const _0x27183e=_0x5410d7['start']['isEqual'](_0x1efcf7['end'])||_0x5410d7['end']['isEqual'](_0x1efcf7['start']);if(_0x27183e||_0x5410d7['getIntersection'](_0x1efcf7)){const _0x254da5=_0x5410d7['containsRange'](_0x1efcf7)&&Ft(this['_model']['schema'],_0x1efcf7['start'],_0x5410d7),_0xf47c64=_0x1efcf7['containsRange'](_0x5410d7)&&Ft(this['_model']['schema'],_0x5410d7['start'],_0x1efcf7);_0x5abeab['push']({'suggestion':_0x3313fb,'meta':{'isOwn':_0x217b1e==_0x3313fb['author'],'isNextTo':_0x27183e,'isInsideObject':_0x254da5,'containsRangeInObject':_0xf47c64}}),_0x56098b=!0x0;break;}}if(_0x56098b)break;}}return _0x5abeab;}['_addSuggestionMarker'](_0x423d3c,_0x952bdd,_0x3047a3,_0x1e5071,_0x97f352){this['_model']['change'](_0x5351f1=>{let _0x436938='suggestion:'+_0x423d3c+':'+_0x952bdd+':'+_0x3047a3;_0x97f352&&(_0x436938=_0x436938+':'+_0x97f352),_0x5351f1['addMarker'](_0x436938,{'range':_0x1e5071,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e9d8a){const _0x490e81=_0x1e9d8a['previous'],_0x2714e8=_0x1e9d8a['next'];_0x1e9d8a['previous']=null,_0x1e9d8a['next']=null,null!=_0x490e81&&_0x490e81['next']==_0x1e9d8a&&(_0x490e81['next']=_0x2714e8),null!=_0x2714e8&&_0x2714e8['previous']==_0x1e9d8a&&(_0x2714e8['previous']=_0x490e81),'ready'==this['_suggestionState']['get'](_0x1e9d8a)&&(this['_suggestionState']['set'](_0x1e9d8a,'removed'),this['fire']('suggestionUnloaded',_0x1e9d8a,_0x490e81,_0x2714e8));}['_setSuggestionData'](_0x12c31f){const _0x1a9d65=_0x12c31f['id'],_0x1b8c2b=this['addSuggestionData'](_0x12c31f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4eb66f=this['editor']['plugins']['get']('PendingActions'),_0x34dbe7=_0x1b8c2b['hasComments'],_0x20356f=_0x1b8c2b['subType']?_0x1b8c2b['type']+':'+_0x1b8c2b['subType']:_0x1b8c2b['type'],_0x54e829=this['editor']['locale'],_0x3674eb=_0x4eb66f['add'](o(_0x54e829,'PENDING_ACTION_SUGGESTION')),_0x21c508={'id':_0x1a9d65,'type':_0x20356f,'hasComments':_0x34dbe7,'data':_0x12c31f['data']||null,'originalSuggestionId':_0x12c31f['originalSuggestionId']||null,'attributes':_0x1b8c2b['attributes']};this['_adapter']['addSuggestion'](_0x21c508)['then'](_0x5101d1=>{_0x1b8c2b['_saved']=!0x0,_0x4eb66f['remove'](_0x3674eb),_0x5101d1&&_0x5101d1['createdAt']&&(this['_suggestions']['get'](_0x1a9d65)['createdAt']=_0x5101d1['createdAt']);})['catch'](_0x5d0759=>{throw _0x113fed('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b8c2b['discard']();}),_0x1b8c2b['stopListening'](),this['_suggestions']['delete'](_0x1b8c2b['id']),this['_suggestionState']['delete'](_0x1b8c2b),_0x5d0759;});}return _0x1b8c2b;}['_isBlockAttribute'](_0x155a5b){return this['_blockAttributeKeys']['has'](_0x155a5b);}['_isInlineAttribute'](_0x5db041){return this['_inlineAttributeKeys']['has'](_0x5db041);}['_updateSuggestionData'](_0x191122,_0x309f95){const _0x438b12=this['editor']['plugins']['get']('PendingActions'),_0x14ecec=this['getSuggestion'](_0x191122);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14ecec['_saved']){const _0xd7fe20=_0x438b12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x191122,_0x309f95)['then'](()=>{_0x438b12['remove'](_0xd7fe20);});}else _0x14ecec['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x191122,_0x309f95);});}}['_getSuggestionData'](_0x3a1f13){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5d208c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a1f13);}['_handleNewSuggestionMarker'](_0x3c2a62){const {id:_0x2f74bf,type:_0x226f00,subType:_0x4b6781,authorId:_0xa1a18a}=this['_splitMarkerName'](_0x3c2a62),_0x53af6c=this['_suggestions']['get'](_0x2f74bf)||this['_createSuggestion'](_0x226f00,_0x4b6781,_0x2f74bf,_0xa1a18a,{});switch(this['_checkSuggestionCorrectness'](_0x53af6c,_0x226f00,_0x4b6781,_0xa1a18a),this['_suggestionState']['get'](_0x53af6c)){case'notReady':this['_getSuggestionData'](_0x2f74bf)['then'](_0x4bd3eb=>{let _0x15656d=Promise['resolve']();_0x4bd3eb['hasComments']&&(_0x15656d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f74bf})),_0x15656d['then'](()=>{this['addSuggestionData'](_0x4bd3eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x53af6c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f74bf,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x53af6c,'ready'),this['fire']('suggestionLoaded',_0x53af6c);break;case'ready':this['fire']('suggestionChanged',_0x53af6c);}return _0x53af6c['addMarkerName'](_0x3c2a62),_0x53af6c;}['_refreshSuggestionsChain'](_0x329df0){const _0x590df7=Array['from'](_0x329df0),_0x2db756=_0x590df7['filter'](_0x548e3c=>'attribute'==_0x548e3c['type']);this['_refreshAttributeSuggestionsChain'](_0x2db756);const _0x1c74a6=_0x590df7['filter'](_0x2218e2=>!_0x2218e2['isMultiRange']&&'attribute'!=_0x2218e2['type']),_0x1a4d26=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b484=>!_0x33b484['isMultiRange']&&'attribute'!=_0x33b484['type']),_0x4aba7c=_0x1a4d26['filter'](_0x197f01=>!_0x329df0['has'](_0x197f01)),_0x4e54f0=new Map(_0x1a4d26['map'](_0x38df48=>[_0x38df48,this['_suggestionFactory']['getSuggestionCallback'](_0x38df48['type'],_0x38df48['subType'],'chain')])),_0xd0e9a3=new Map(_0x1a4d26['map'](_0x52ae6f=>[_0x52ae6f,_0x52ae6f['getFirstRange']()])),_0xd96e18=new Set(),_0x226442=new Set();for(let _0x9a6191=0x0;_0x9a6191<_0x1c74a6['length'];_0x9a6191++)_0x337307(_0x1c74a6[_0x9a6191],_0x1c74a6,_0x9a6191+0x1);for(let _0x2975fa=0x0;_0x2975fa<_0x1c74a6['length'];_0x2975fa++)_0x337307(_0x1c74a6[_0x2975fa],_0x4aba7c,0x0);const _0x3d7fb2=new Set();for(let _0x2715af=0x0;_0x2715af<_0x1c74a6['length'];_0x2715af++){const _0x12a64b=_0x1c74a6[_0x2715af];!_0x226442['has'](_0x12a64b)&&_0x12a64b['previous']&&(_0x3d7fb2['add'](_0x12a64b['previous']),_0x12a64b['previous']['next']===_0x12a64b&&(_0x12a64b['previous']['next']=null),_0x12a64b['previous']=null),!_0xd96e18['has'](_0x12a64b)&&_0x12a64b['next']&&(_0x3d7fb2['add'](_0x12a64b['next']),_0x12a64b['next']['previous']===_0x12a64b&&(_0x12a64b['next']['previous']=null),_0x12a64b['next']=null);}function _0x337307(_0x1a57c9,_0x6eac54,_0x13df9d){for(let _0x88de85=_0x13df9d;_0x88de85<_0x6eac54['length'];_0x88de85++){const _0x2f0b9b=_0x3d00b9(_0x1a57c9,_0x6eac54[_0x88de85]);_0x2f0b9b&&(_0x2f0b9b[0x0]['next']=_0x2f0b9b[0x1],_0x2f0b9b[0x1]['previous']=_0x2f0b9b[0x0],_0xd96e18['add'](_0x2f0b9b[0x0]),_0x226442['add'](_0x2f0b9b[0x1]));}}function _0x3d00b9(_0x1ae000,_0xd72e55){if(_0x1ae000['author']['id']!==_0xd72e55['author']['id'])return null;const _0x4a8e46=_0x4e54f0['get'](_0x1ae000)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55));if(!_0x4a8e46)return null;return _0x4e54f0['get'](_0xd72e55)(_0x1ae000,_0xd72e55,_0xd0e9a3['get'](_0x1ae000),_0xd0e9a3['get'](_0xd72e55))?_0x4a8e46[0x1]['commentThread']&&_0x4a8e46[0x1]['commentThread']['length']?null:_0x4a8e46:null;}_0x3d7fb2['size']&&this['_refreshSuggestionsChain'](_0x3d7fb2);}['_refreshAttributeSuggestionsChain'](_0x33f85f){if(0x0==_0x33f85f['length'])return;const _0x7dd33f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543e76=>'attribute'==_0x543e76['type']&&_0x543e76['_isDataLoaded']),_0x5cd89d=[],_0x4758f3=new Map();for(const _0x58f9fe of _0x7dd33f){const _0x484f77=_0x51422e(_0x58f9fe['attributes']);_0x4758f3['has'](_0x484f77)||(_0x4758f3['set'](_0x484f77,_0x5cd89d['length']),_0x5cd89d['push']([]));const _0x1aff7d=_0x4758f3['get'](_0x484f77);_0x5cd89d[_0x1aff7d]['push'](_0x58f9fe);}!(function(){_0x5cd89d['sort']((_0x55c948,_0xd78155)=>{const _0x5280c9=_0x55c948[0x0]['createdAt'],_0x5bc297=_0xd78155[0x0]['createdAt'];return _0x5280c9==_0x5bc297?_0x55c948[0x0]['attributes']['groupId']<_0xd78155[0x0]['attributes']['groupId']?-0x1:0x1:_0x5280c9<_0x5bc297?-0x1:0x1;});for(const _0x54e035 of _0x5cd89d)_0x54e035['sort']((_0x3c2a4d,_0x46f5ac)=>_0x3c2a4d['id']<_0x46f5ac['id']?-0x1:0x1);}());for(let _0x5bd2eb=0x0;_0x5bd2eb<_0x5cd89d['length'];_0x5bd2eb++){if(0x0==_0x5cd89d[_0x5bd2eb]['length'])continue;const _0x42ab79=[];for(let _0x433fcf=_0x5bd2eb+0x1;_0x433fcf<_0x5cd89d['length'];_0x433fcf++)0x0!=_0x5cd89d[_0x433fcf]['length']&&_0xe78087(_0x5cd89d[_0x5bd2eb],_0x5cd89d[_0x433fcf])&&_0x42ab79['push'](_0x433fcf);for(const _0x42b90b of _0x42ab79)_0x5cd89d[_0x5bd2eb]=_0x5cd89d[_0x5bd2eb]['concat'](_0x5cd89d[_0x42b90b]),_0x5cd89d[_0x42b90b]=[];}for(const _0x1b7a76 of _0x5cd89d)for(let _0xab7fd7=0x0;_0xab7fd7<_0x1b7a76['length'];_0xab7fd7++){const _0x5f57fa=_0x1b7a76[_0xab7fd7+0x1]||null;_0x1b7a76[_0xab7fd7]['next']!==_0x5f57fa&&(_0x1b7a76[_0xab7fd7]['next']=_0x5f57fa);}for(const _0x19c53b of _0x5cd89d)for(let _0x5464a7=0x0;_0x5464a7<_0x19c53b['length'];_0x5464a7++){const _0x569374=_0x19c53b[_0x5464a7-0x1]||null;_0x19c53b[_0x5464a7]['previous']!==_0x569374&&(_0x19c53b[_0x5464a7]['previous']=_0x569374);}function _0xe78087(_0xe51f6c,_0x49550a){if(_0xe51f6c[0x0]['attributes']['groupId']!==_0x49550a[0x0]['attributes']['groupId']&&_0xe51f6c[0x0]['author']!==_0x49550a[0x0]['author'])return!0x1;if(!function(_0x145e24,_0x57ce61){if(!_0x145e24['hasComments']&&!_0x57ce61['hasComments'])return!0x0;if(_0x145e24['hasComments']&&_0x57ce61['hasComments'])return!0x1;if(_0x145e24['hasComments']&&_0x57ce61['createdAt']<_0x145e24['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x57ce61['hasComments']&&_0x145e24['createdAt']<_0x57ce61['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xe51f6c[0x0],_0x49550a[0x0]))return!0x1;const _0x25b81d=Ut(_0xe51f6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x815e13=Ut(_0x49550a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3f9778(_0x25b81d,_0x815e13))return!0x1;if(_0xe51f6c[0x0]['attributes']['groupId']==_0x49550a[0x0]['attributes']['groupId'])return!0x0;if(_0xe51f6c[0x0]['attributes']['trackingSessionId']!==_0x49550a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xe51f6c['every'](_0x88b521=>_0x49550a['some'](_0x29455d=>_0x88b521['getFirstRange']()['isEqual'](_0x29455d['getFirstRange']())))&&_0x49550a['every'](_0x32a839=>_0xe51f6c['some'](_0x1e3bef=>_0x32a839['getFirstRange']()['isEqual'](_0x1e3bef['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2868ff){const _0x41d071=Array['from'](_0x2868ff),_0x5bdff1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b635f=_0x5bdff1['filter'](_0x3f1785=>!_0x2868ff['has'](_0x3f1785)),_0x5ef4da=new Map(_0x41d071['map'](_0x39d105=>[_0x39d105,this['_suggestionFactory']['getSuggestionCallback'](_0x39d105['type'],_0x39d105['subType'],'join')])),_0xdf6ab6=new Map(_0x5bdff1['map'](_0x73f811=>[_0x73f811,_0x73f811['getRanges']()]));for(let _0x6c5f4b=0x0;_0x6c5f4b<_0x41d071['length'];_0x6c5f4b++){if(_0x546a1f(this,_0x41d071[_0x6c5f4b],_0x41d071,_0x6c5f4b+0x1))return!0x0;}for(let _0x43a044=0x0;_0x43a044<_0x41d071['length'];_0x43a044++){if(_0x546a1f(this,_0x41d071[_0x43a044],_0x2b635f,0x0))return!0x0;}return!0x1;function _0x546a1f(_0x3f014f,_0x215b5e,_0x52f60f,_0x4f1995){for(let _0x4ebf2c=_0x4f1995;_0x4ebf2c<_0x52f60f['length'];_0x4ebf2c++){const _0x4bb198=_0x52f60f[_0x4ebf2c];if(_0x4bb198['type']!==_0x215b5e['type']||_0x4bb198['author']['id']!==_0x215b5e['author']['id']||_0x4bb198['subType']!==_0x215b5e['subType'])continue;if(!Qt(_0x215b5e,_0x4bb198))continue;if('attribute'==_0x215b5e['type']&&_0x215b5e['data']['oldValue']!=_0x4bb198['data']['oldValue'])continue;if('attribute'==_0x215b5e['type']&&_0x3f014f['_isBlockAttribute'](_0x215b5e['data']['key']))continue;if('formatBlock'==_0x215b5e['type']){const _0x1b34f4=_0x3f014f['editor']['model'],_0x51ba70=_0x215b5e['getContainedElement']();if(_0x51ba70&&(_0x1b34f4['schema']['isObject'](_0x51ba70)||_0x1b34f4['schema']['isLimit'](_0x51ba70)))continue;}const _0x142d45=_0x5ef4da['get'](_0x215b5e),_0x177f18=_0xdf6ab6['get'](_0x215b5e),_0x40c99d=_0xdf6ab6['get'](_0x4bb198),_0x3d978c=_0x215b5e['commentThread']&&_0x215b5e['commentThread']['length'],_0x287cd3=_0x4bb198['commentThread']&&_0x4bb198['commentThread']['length'];if(!_0x3d978c&&_0x142d45(_0x40c99d,_0x177f18))return _0x3f014f['_joinSuggestions'](_0x4bb198,_0x215b5e),_0xdf6ab6['delete'](_0x215b5e),!0x0;if(!_0x287cd3&&_0x142d45(_0x177f18,_0x40c99d))return _0x3f014f['_joinSuggestions'](_0x215b5e,_0x4bb198),_0xdf6ab6['delete'](_0x4bb198),!0x0;}return!0x1;}}['_joinSuggestions'](_0x92348c,_0x363f42){if(_0x92348c['isMultiRange']){for(const _0x523a62 of _0x363f42['getRanges']())_0x92348c['addRange'](_0x523a62);}else{const _0x59dc84=_0x363f42['getFirstRange']()['end'];this['_setSuggestionRange'](_0x92348c,this['_model']['createRange'](_0x92348c['getFirstRange']()['start'],_0x59dc84));}_0x363f42['removeMarkers']();}['_getMarkerAnnouncementText'](_0xfde489,_0x1fb1fd,_0x524144){const _0x3303c5=_0xfde489['startsWith']('format')||_0xfde489['startsWith']('attribute')?'FORMATTING':_0xfde489['toUpperCase']();return o(this['editor']['locale'],_0x1fb1fd+'_'+_0x3303c5+'_SUGGESTION_ANNOUNCEMENT',_0x524144);}['_initAriaMarkerChangeAnnouncements'](){const _0x32a9d2=this['editor'];if(!_0x32a9d2['ui'])return;const {ariaLiveAnnouncer:_0x543ecc}=_0x32a9d2['ui'];_0x4126be(this['_model'],({left:_0x10a803,entered:_0x4c0b0f})=>{for(const _0x4a36dd of _0x10a803){const {group:_0x3f2a78,type:_0x413ce6}=this['_splitMarkerName'](_0x4a36dd['name']);if('suggestion'===_0x3f2a78){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x413ce6,'LEAVE'));break;}}for(const _0x4e2445 of _0x4c0b0f){const {group:_0x4c4bdf,type:_0x293a0e}=this['_splitMarkerName'](_0x4e2445['name']);if('suggestion'===_0x4c4bdf){_0x543ecc['announce'](this['_getMarkerAnnouncementText'](_0x293a0e,'ENTER',_0x338685(_0x37cb22)));break;}}});}['_processAttributeChanges'](_0xe4bde8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2646f5=this['editor'],_0xf8aa70=_0x2646f5['model']['document']['differ']['getChanges']();if(0x0==_0xf8aa70['length'])return!0x1;const _0x237b68=[],_0x40c17b=_0xf8aa70['filter'](_0x3e38e4=>'attribute'==_0x3e38e4['type']),_0x219248=_0xf8aa70['filter'](_0x3620cc=>'insert'==_0x3620cc['type']&&'$text'!=_0x3620cc['name']),_0x291c7d=_0xf8aa70['filter'](_0x2e5e23=>'remove'==_0x2e5e23['type']&&'$text'!=_0x2e5e23['name']);for(const _0x4cd6b2 of _0x40c17b)_0x237b68['push']({'key':_0x4cd6b2['attributeKey'],'newValue':_0x4cd6b2['attributeNewValue'],'oldValue':_0x4cd6b2['attributeOldValue'],'range':qt(_0x4cd6b2['range'],_0x2646f5['model'])});for(const _0x4f4848 of _0x219248){const _0x3255ad=_0x291c7d['find'](_0x5c81ba=>_0x5c81ba['position']['isEqual'](_0x4f4848['position']));_0x3255ad&&_0x237b68['push']({'key':m,'newValue':_0x4f4848['name'],'oldValue':_0x3255ad['name'],'range':_0x2646f5['model']['createRangeOn'](_0x4f4848['position']['nodeAfter'])});}return 0x0!=_0x237b68['length']&&this['_reduceExistingSuggestions'](_0xe4bde8,_0x237b68);}['_processAttributeSuggestions'](_0xfd2e14){let _0x4d0fae=!0x1;const _0x35f74e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48c595=>_0x48c595['data']['newRange']&&_0x48c595['name']['startsWith']('suggestion:attribute:'));for(const _0x48601c of _0x35f74e){const {subType:_0x313f52,id:_0x4f4a36}=this['_splitMarkerName'](_0x48601c['name']),_0x3739dc=_0x313f52['split']('|')[0x0];for(const _0x4635b6 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4635b6['id']!=_0x4f4a36&&'attribute'==_0x4635b6['type']&&_0x4635b6['data']&&_0x4635b6['data']['key']==_0x3739dc&&_0x4635b6['getFirstRange']()['isIntersecting'](_0x48601c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4635b6,_0x48601c['data']['newRange'],_0xfd2e14),_0x4d0fae=!0x0);}return _0x4d0fae;}['recordAttributeChanges'](_0x3fc728){this['_recordAttributeSuggestions']=!0x0,_0x3fc728();}['_isRegisteredAttribute'](_0x2ffa76){const _0x1c28d2=this['_isBlockAttribute'](_0x2ffa76),_0x100963=this['_isInlineAttribute'](_0x2ffa76);return _0x1c28d2||_0x100963;}['_reduceExistingSuggestions'](_0x1560f3,_0x55e2d3){if(0x0==_0x55e2d3['length'])return!0x1;let _0x545ae4=!0x1;for(const _0x17c778 of _0x55e2d3){const _0x4f9807=this['_findSuggestions'](_0x17c778['range'],'attribute')['filter'](_0x1e32a7=>!_0x1e32a7['meta']['isNextTo'])['map'](_0x3ea4e3=>_0x3ea4e3['suggestion']),_0x490959=_0x51422e({'newValue':_0x17c778['newValue']});_0x4f9807['filter'](_0x509354=>{const [_0xa37047,_0x1adc16]=_0x509354['subType']['split']('|');return _0xa37047==_0x17c778['key']&&_0x1adc16!=_0x490959;})['forEach'](_0x5f11d8=>{this['_reduceSuggestionAttributeRange'](_0x5f11d8,_0x17c778['range'],_0x1560f3),_0x545ae4=!0x0;});}return _0x545ae4;}['_reduceSuggestionAttributeRange'](_0x4135e8,_0x36b868,_0x4b85af){const _0x469e2a=_0x4135e8['getFirstRange']()['getDifference'](_0x36b868);0x0!==_0x469e2a['length']?0x1!==_0x469e2a['length']?this['_breakSuggestionMarker'](_0x4135e8,_0x36b868['start'],_0x36b868['end']):this['_setSuggestionRange'](_0x4135e8,_0x469e2a[0x0]):_0x4b85af['removeMarker'](_0x4135e8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4100b0){this['_editor']=_0x4100b0,this['_model']=_0x4100b0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x26cb02,_0x10ba82,_0x4a548d,_0x24cbe2,_0x7253b1,_0x23ad4b,_0x15434a){return new T(this['_model'],{'type':_0x26cb02,'subType':_0x10ba82,'id':_0x4a548d,'originalSuggestionId':_0x15434a,'author':_0x24cbe2,'creator':_0x24cbe2,'attributes':_0x7253b1,'onAttributesChange':_0x23ad4b,'onAccept':(..._0x492dda)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'accept')(..._0x492dda),'onDiscard':(..._0x470c42)=>this['getSuggestionCallback'](_0x26cb02,_0x10ba82,'discard')(..._0x470c42)});}['registerCustomCallback'](_0x4129f3,_0x32439f,_0x163a40,_0x39466a){const _0x45aff7=_0x4129f3+':'+_0x32439f+':'+_0x163a40;this['_customCallbacks']['set'](_0x45aff7,_0x39466a);}['getSuggestionCallback'](_0x396e79,_0x324f9b,_0x2b70f5){const _0x16a665=_0x396e79+':'+_0x324f9b+':'+_0x2b70f5;return this['_customCallbacks']['get'](_0x16a665)||this['_defaultCallbacks']['get'](_0x396e79+':'+_0x2b70f5);}['_registerDefaultCallbacks'](){const _0x15b3a1=()=>!0x1,_0x3162af=_0xda6be5=>{_0xda6be5['sort']((_0x2f746a,_0x19eef6)=>_0x2f746a['start']['isBefore'](_0x19eef6['start'])?0x1:-0x1),this['_model']['change'](_0x241f09=>{for(const _0x18e1c2 of _0xda6be5){let _0x3c4fc8;_0x3c4fc8=_0x18e1c2['end']['isAtEnd']&&_0x18e1c2['end']['parent']==_0x18e1c2['start']['nodeAfter']?_0x241f09['createSelection'](_0x18e1c2['start']['nodeAfter'],'on'):_0x241f09['createSelection'](_0x18e1c2),this['_model']['deleteContent'](_0x3c4fc8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x43ab61=(_0x3337ba,_0xa83603)=>{_0xa83603&&this['_model']['change'](_0x4fbf7b=>{const {commandName:_0x2a4dd5,commandParams:_0x5aa739=[]}=_0xa83603,_0x2d5d40=_0x3337ba['map'](_0x32492e=>(Pt(_0x32492e)&&(_0x32492e=this['_model']['createRange'](_0x32492e['end'])),_0x32492e))['filter'](_0x2425b2=>'$graveyard'!==_0x2425b2['root']['rootName']);if(_0x2d5d40['length']<0x1)return;const _0x2364bd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x541ec0=>_0x217d71['fromRange'](_0x541ec0));_0x4fbf7b['setSelection'](_0x2d5d40);for(const _0x30f85a of this['_editor']['commands']['commands']())_0x30f85a['refresh']();_0x5aa739['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a4dd5,..._0x5aa739);const _0x3fd35a=_0x2364bd['filter'](_0x1cc6c8=>'$graveyard'!=_0x1cc6c8['root']['rootName']);_0x3fd35a['length']>0x0&&_0x4fbf7b['setSelection'](_0x3fd35a);for(const _0x4d1426 of _0x2364bd)_0x4d1426['detach']();});},_0x571feb=(_0x33d503,_0x129559)=>0x1==_0x33d503['length']&&0x1==_0x129559['length']&&_0x33d503[0x0]['end']['isEqual'](_0x129559[0x0]['start']),_0x4378fa=(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)=>Wt(_0x3a8d57,_0xfbfb31,_0x110cb1,_0x42eeff)?[_0x3a8d57,_0xfbfb31]:Wt(_0xfbfb31,_0x3a8d57,_0x42eeff,_0x110cb1)?[_0xfbfb31,_0x3a8d57]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15b3a1),this['_defaultCallbacks']['set']('insertion:discard',_0x3162af),this['_defaultCallbacks']['set']('insertion:join',_0x571feb),this['_defaultCallbacks']['set']('insertion:chain',_0x4378fa),this['_defaultCallbacks']['set']('deletion:accept',_0x3162af),this['_defaultCallbacks']['set']('deletion:discard',_0x15b3a1),this['_defaultCallbacks']['set']('deletion:join',_0x571feb),this['_defaultCallbacks']['set']('deletion:chain',_0x4378fa),this['_defaultCallbacks']['set']('formatInline:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatInline:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatInline:join',_0x571feb),this['_defaultCallbacks']['set']('formatInline:chain',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43ab61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15b3a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x571feb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:accept',_0x15b3a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c06a2,_0x5ef89e)=>{if(!_0x5ef89e)return;const _0x5242a6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xdf06a7=>{if(_0x5ef89e['key']==m)for(const _0x84e64f of _0x3c06a2){const _0x426bae=_0x84e64f['start']['nodeAfter'],_0x3342ff=_0x5ef89e['oldValue'];_0xdf06a7['rename'](_0x426bae,_0x3342ff);}else{if(_0x5242a6['_isBlockAttribute'](_0x5ef89e['key'])){for(const _0x21721f of _0x3c06a2)void 0x0!==_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x21721f['start']['nodeAfter']):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x21721f['start']['nodeAfter']);}else{for(const _0x48631c of _0x3c06a2)_0x5ef89e['oldValue']?_0xdf06a7['setAttribute'](_0x5ef89e['key'],_0x5ef89e['oldValue'],_0x48631c):_0xdf06a7['removeAttribute'](_0x5ef89e['key'],_0x48631c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x571feb);}}function Ft(_0x6262d1,_0x1a2574,_0x36f25b){for(const _0x2c7a62 of _0x1a2574['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c7a62['root']==_0x2c7a62)return!0x1;if(!_0x36f25b['containsItem'](_0x2c7a62))return!0x1;if(_0x6262d1['isObject'](_0x2c7a62)||_0x6262d1['isLimit'](_0x2c7a62))return!0x0;}return!0x1;}function Pt(_0x19b554){return _0x19b554['end']['parent']==_0x19b554['start']['nodeAfter']&&_0x19b554['end']['isAtStart'];}function Gt(_0x11f961,_0x5008b4,_0x20c029,_0x2a736b){const _0xb3627=_0x3fc79f=>!_0x3fc79f['item']['is']('$textProxy')&&!_0x2a736b['isObject'](_0x3fc79f['item']),_0x4f828f=_0x11f961['start']['getLastMatchingPosition'](_0xb3627),_0x35ef9e=_0x11f961['end']['getLastMatchingPosition'](_0xb3627,{'direction':'backward'});return(!_0x11f961['start']['isEqual'](_0x4f828f)||!_0x11f961['end']['isEqual'](_0x35ef9e))&&(_0x4f828f['isBefore'](_0x35ef9e)?_0x20c029['updateMarker'](_0x5008b4,{'range':_0x20c029['createRange'](_0x4f828f,_0x35ef9e)}):_0x20c029['removeMarker'](_0x5008b4),!0x0);}function Lt(_0x3ff2bc){return _0x51422e(_0x3ff2bc);}function Jt(_0x21f5eb){const _0x50c206=_0x21f5eb['start']['nodeAfter'];return _0x50c206&&_0x50c206['is']('element');}function Kt(_0x1fb83c){return Pt(_0x1fb83c)||function(_0x3c0f3d){return _0x3c0f3d['start']['parent']==_0x3c0f3d['end']['nodeBefore']&&_0x3c0f3d['start']['isAtEnd'];}(_0x1fb83c);}function Ht(_0x4181f3,_0x145951){try{const _0x300006=_0x4181f3['getRange']();for(const _0x31fa2d of _0x145951)if(_0x4181f3!==_0x31fa2d&&_0x300006&&_0x300006['isIntersecting'](_0x31fa2d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x3fc991,_0xfc8e0d){return null==_0x3fc991['end']['nodeBefore']&&_0x3fc991['end']['parent']==_0x3fc991['start']['nodeAfter']?zt(_0x3fc991['start']['nodeAfter'],_0xfc8e0d):_0x3fc991;}function zt(_0x42ee3c,_0x2e8dd5){const _0x7ca1aa=_0x2e8dd5['schema']['isObject'](_0x42ee3c)||_0x2e8dd5['schema']['isSelectable'](_0x42ee3c);return _0x2e8dd5['createRange'](_0x2e8dd5['createPositionAt'](_0x42ee3c,'before'),_0x7ca1aa?_0x2e8dd5['createPositionAfter'](_0x42ee3c):_0x2e8dd5['createPositionAt'](_0x42ee3c,'end'));}function Wt(_0x472db1,_0x30e5e0,_0x35fd59,_0x52dc50){return!!Qt(_0x472db1,_0x30e5e0)&&_0x35fd59['end']['isEqual'](_0x52dc50['start']);}function Qt(_0x2688d1,_0x4526f1){if(!_0x2688d1['_isDataLoaded']||!_0x4526f1['_isDataLoaded'])return!0x1;const _0x154a8a=new Set(Object['keys'](_0x2688d1['attributes'])),_0x1f25ea=new Set(Object['keys'](_0x4526f1['attributes']));if(_0x154a8a['delete']('groupId'),_0x1f25ea['delete']('groupId'),0x0==_0x154a8a['size']&&0x0==_0x1f25ea['size'])return!0x0;if(_0x154a8a['size']!=_0x1f25ea['size'])return!0x1;const _0x174d5f={..._0x2688d1['attributes']},_0x189c6e={..._0x4526f1['attributes']};return delete _0x174d5f['groupId'],delete _0x189c6e['groupId'],JSON['stringify'](_0x174d5f)==JSON['stringify'](_0x189c6e);}function Xt(_0x5f960e,_0x69e50e){const _0xbeddfb=Yt(_0x5f960e['attributes']),_0x13d315=Yt(_0x69e50e);if(!_0x5f960e['_isDataLoaded'])return!0x1;for(const _0x72f9b2 of Object['keys'](_0x13d315))if(!_0x3f9778(_0xbeddfb[_0x72f9b2],_0x13d315[_0x72f9b2]))return!0x1;return!0x0;}function Yt(_0x3f45ac){const _0x524a8a=Object['assign']({},_0x3f45ac);return delete _0x524a8a['skipNestingCheck'],delete _0x524a8a['tablePasteChainId'],_0x524a8a;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4ffc3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33e40f,_0x2d233f,_0x35cd10,_0x450286){super(),this['model']=_0x2d233f,this['view']=_0x35cd10,this['commentThreadController']=_0x450286,this['_editor']=_0x33e40f,this['_acceptCommand']=_0x33e40f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33e40f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20fcae,_0x20f8b7)=>_0x20fcae||_0x20f8b7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d9494=>_0x4d9494&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42c6df=>_0x42c6df&&this['_editor']['model']['canEditAt'](_0x2d233f['getRanges']())),this['_pendingAction']=null,_0x35cd10['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35cd10,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35cd10,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35cd10,'change:isDirty',()=>{_0x35cd10['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 _0x1929a2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1929a2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x237d07{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3f4479,_0xb29f7b,_0x4becd9,_0x2b44d9){super(_0x3f4479),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x496d48(_0x3f4479,o(_0x3f4479,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb29f7b['authoredAt']),this['bind']('authoredAt')['to'](_0xb29f7b),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',_0xb29f7b,'authoredAt',this,'descriptionParts',(_0x1dd4f9,_0x8f74af,_0x122cc8)=>{const _0x54b805=_0x122cc8['map'](_0x10c445=>ls(_0x10c445['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dd4f9-0x1,_0xb29f7b['author']['name'],_0x8f74af?_0x2b44d9['formatDateTime'](_0x8f74af):'',new DOMParser()['parseFromString'](_0x54b805,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1dcd16(),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5bde4f=>_0x5bde4f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb29f7b,this['_localUser']=_0x4becd9,this['_config']=_0x2b44d9,_0x2b44d9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e09af(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3461}=this['_config'];this['commentsListView']=new _0x5a3461(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',_0x550aa6=>_0x550aa6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x243dff,_0x6389c8)=>_0x243dff||!!_0x6389c8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x38be1d}=this['_config'],_0x1c2e36=new _0x38be1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25aa78=_0x1c2e36['commentInputView'];return _0x1c2e36['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25aa78,'value',(_0x8fe49c,_0x1fce54,_0x1de177)=>!!_0x1de177||_0x8fe49c&&!_0x1fce54),_0x25aa78['on']('submit',(_0x4bdf30,_0x4f298c)=>{this['fire']('addComment',_0x4f298c),_0x25aa78['editor']['setData']('');}),_0x25aa78['on']('cancel',()=>this['focus']()),_0x25aa78['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c2e36;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618){super(_0xc94c9,_0x51f6dd,_0x2ab1ee,_0x137618),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x38a33e=>_0x38a33e&&_0x38a33e[0x0]?_0x38a33e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x16a8eb,_0x146dc7)=>{let _0x5a5e3c='';for(const _0x5d7b62 of _0x16a8eb)_0x5a5e3c+='<p>'+ls(_0x5d7b62['content'],_0x5d7b62['color'])+'</p>';return _0x146dc7?_0x5a5e3c:_0x2d6735(_0x5a5e3c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x137618['SuggestionView'](_0xc94c9,_0x51f6dd,{'formatDateTime':_0x137618['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 _0x275ada=this['bindTemplate'],_0x1f0aa9=[this['suggestionView']];return this['commentsListView']&&_0x1f0aa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f0aa9['push'](this['commentThreadInputView']),_0x1f0aa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x275ada['if']('isActive','ck-suggestion-wrapper--active'),_0x275ada['to']('type',_0x3d3acc=>'ck-suggestion-'+_0x3d3acc),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':_0x275ada['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f0aa9};}['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 _0x237d07{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8a9ed6,_0x4b2b0a,_0x443fcc){super(_0x8a9ed6),this['_model']=_0x4b2b0a,this['_config']=_0x443fcc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b2b0a),this['acceptButton']=this['_createButton'](o(_0x8a9ed6,'Accept\x20suggestion'),_0x4a5080,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8a9ed6,'Discard\x20suggestion'),_0x503c9a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a5b3a(_0x8a9ed6,_0x4b2b0a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1dcd16([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bcccf(),this['keystrokes']=new _0x59df8b(),this['focusCycler']=new _0x4bc59e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3f2863=>_0x3f2863['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1534bf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1534bf['innerHTML']=this['description'],this['on']('change:description',(_0x2b1bee,_0x2b8c90,_0x3b589c)=>{_0x1534bf['innerHTML']=_0x3b589c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x342d81=this['bindTemplate'],_0xfe01b0=[{'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':_0x342d81['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x342d81['to']('authoredAt',_0x3eccb=>this['_config']['formatDateTime'](_0x3eccb))}]}]},{'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']&&_0xfe01b0['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':_0xfe01b0}]};}['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'](_0x4c16c2,_0x50a716,_0x477a2a,_0x36c46b,_0x588956){const _0x471327=new _0x5b4b3e(this['locale']);return _0x471327['set']({'label':_0x4c16c2,'icon':_0x50a716,'tooltip':!0x0,'tooltipPosition':_0x588956}),_0x471327['extendTemplate']({'attributes':{'class':_0x477a2a}}),_0x471327['on']('execute',()=>{this['fire'](_0x36c46b,this['_model']['id']);}),_0x471327;}['_setupKeyboardNavigation'](){const _0x4c00e9=this['element'];this['keystrokes']['listenTo'](_0x4c00e9);for(const _0x42dfec of this['focusables'])this['focusTracker']['add'](_0x42dfec['element']),this['keystrokes']['listenTo'](_0x42dfec['element']);this['keystrokes']['set']('enter',(_0x56cb5d,_0x1980a6)=>{_0x4c00e9===_0x56cb5d['target']&&(this['focusCycler']['focusFirst'](),_0x1980a6());}),this['keystrokes']['set']('esc',(_0x52c0b0,_0x2c0491)=>{_0x4c00e9!==_0x52c0b0['target']&&(this['focus'](),_0x2c0491());});}}class u extends _0xfd4522{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x41af33,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c95bf){super(_0x5c95bf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27d4b3=this['editor']['config'];_0x27d4b3['define']('trackChanges.SuggestionThreadView',fe),_0x27d4b3['define']('trackChanges.SuggestionView',we),_0x27d4b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27d4b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49be31,_0x2fb487){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4eb746,_0xf36746]of this['_handleControllerBuffer']){const _0x4fb080=this['_suggestionToController']['has'](_0x4eb746);_0x4fb080||_0xf36746?_0x4fb080&&_0xf36746&&this['_destroyController'](_0x4eb746):this['_initializeController'](_0x4eb746);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49be31,_0x2fb487);}['init'](){const _0x119ae5=this['editor'],_0xec48ab=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x1cdaf5=_0x119ae5['plugins']['get']('Annotations'),_0x281911=_0x119ae5['plugins']['get']('EditorAnnotations'),_0x39ce4a=_0x119ae5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x281911['addSourceCollector'](()=>{const _0x41c237=[];for(const [_0x1307b2,_0x5ed68a]of Array['from'](this['_suggestionToController'])){const _0x574f66=_0x1307b2['getAllAdjacentSuggestions'](),_0x5e6af1=[];for(const _0x2f3f62 of _0x574f66){if(!_0x2f3f62['isInContent'])continue;if(_0x2f3f62['isMultiRange']){_0x5e6af1['push'](..._0x2f3f62['getRanges']());continue;}const _0x1e48e8=_0x2f3f62['getFirstRange']();if(_0x5e6af1['length']>0x0){const _0x4b8f99=_0x5e6af1[0x0]['getJoined'](_0x1e48e8);if(_0x4b8f99){_0x5e6af1[0x0]=_0x4b8f99;continue;}}_0x5e6af1['push'](_0x1e48e8);}_0x41c237['push']([_0x5ed68a['view'],_0x5e6af1]);}return _0x41c237;}),this['listenTo'](_0xec48ab,'suggestionLoaded',(_0x49484a,_0x23c0cb)=>{this['listenTo'](_0x23c0cb,'change:previous',(_0x500591,_0x5b0d5e,_0x2aee91,_0x56f13e)=>{_0x23c0cb['isInContent']&&(null==_0x2aee91?(this['_updateController'](_0x56f13e['head']),this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1)):(this['_updateController'](_0x2aee91['head']),null==_0x56f13e&&this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x0)));}),null!==_0x23c0cb['previous']?this['_updateController'](_0x23c0cb['head']):this['_handleSuggestionControllerDelayed'](_0x23c0cb,!0x1);}),this['listenTo'](_0xec48ab,'suggestionUnloaded',(_0x1f205f,_0x5e84d8,_0x16e443)=>{this['stopListening'](_0x5e84d8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5e84d8),this['_suggestionToController']['has'](_0x5e84d8)&&this['_destroyController'](_0x5e84d8),_0x16e443&&this['_updateController'](_0x16e443['head']);}),this['listenTo'](_0xec48ab,'suggestionChanged',(_0x354456,_0x1e362c)=>{this['_updateController'](_0x1e362c);}),this['listenTo'](_0x1cdaf5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39ce4a,'addComment',(_0x4dc572,{threadId:_0x156cb2,isFromAdapter:_0x111417})=>{if(_0x111417||!_0xec48ab['hasSuggestion'](_0x156cb2))return;const _0x13b85=_0xec48ab['getSuggestion'](_0x156cb2);this['_suggestionToController']['get'](_0x13b85)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28143a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c2052;for(const _0x57187d in _0x28143a){const _0x309ce5=_0x57187d,_0x336761=_0x28143a[_0x309ce5];if('trackChangesLicenseKeyValid'==_0x336761||'trackChangesLicenseKeyInvalid'==_0x336761||'trackChangesLicenseKeyExpired'==_0x336761||'trackChangesLicenseKeyDomainLimit'==_0x336761||'trackChangesLicenseKeyNotAllowed'==_0x336761||'trackChangesLicenseKeyEvaluationLimit'==_0x336761||'trackChangesLicenseKeyTrialLimit'==_0x336761||'trackChangesLicenseKeyUsageLimit'==_0x336761){delete _0x28143a[_0x309ce5],_0x2c2052=_0x336761,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c2052&&_0x28143a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c2052&&_0x28143a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c2052&&_0x28143a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c2052&&_0x28143a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2aa79b){const _0x3a9bce=this['_suggestionToController']['get'](_0x2aa79b);if(!_0x3a9bce)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3a9bce['view'])||null;}['getSuggestionForAnnotation'](_0x36da0f){const _0x9cbbff=this['_viewToController']['get'](_0x36da0f['innerView']);return _0x9cbbff?_0x9cbbff['model']:null;}['_refreshActiveMarkers'](){const _0x52715a=this['editor']['plugins']['get']('Annotations'),_0x520f92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d70c0=Array['from'](_0x52715a['activeAnnotations'],_0x5d096c=>_0x5d096c['innerView'])['filter'](_0xe201fb=>this['_viewToController']['has'](_0xe201fb)),_0xe04cfb=[];for(const _0x442972 of _0x5d70c0){const _0x10b5c7=this['_viewToController']['get'](_0x442972)['model']['getAllAdjacentSuggestions']();_0xe04cfb['push'](..._0x10b5c7['reduce']((_0x5098db,_0x274368)=>[..._0x5098db,..._0x274368['getMarkerNames']()],[]));}_0x520f92['activeMarkers']=_0xe04cfb;}['_addUIComponentsToFactory'](){const _0x591637=this['editor'],_0x1ee1d7=_0x591637['locale'],_0x198a55=o(_0x1ee1d7,'Track\x20changes'),_0x293821=new _0x49a3a5([{'type':'switchbutton','model':new _0x51ccc6({'withText':!0x0,'isToggleable':!0x0,'label':_0x198a55,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x591637['plugins']['has']('TrackChangesPreview')&&_0x293821['addMany']([{'type':'separator'},{'type':'button','model':new _0x51ccc6({'withText':!0x0,'label':o(_0x1ee1d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x583ba5 of _0x293821)if(ke(_0x583ba5)){const _0x5ec79c=_0x591637['commands']['get'](_0x583ba5['model']['commandName']);_0x583ba5['model']['bind']('isOn','isEnabled')['to'](_0x5ec79c,'value','isEnabled');}_0x591637['ui']['componentFactory']['add']('trackChanges',_0x2358d9=>this['_createToolbarButton'](_0x2358d9,_0x293821,_0x198a55)),_0x591637['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13731c=>this['_createMenuBarMenu'](_0x13731c,_0x293821,_0x198a55));}['_createToolbarButton'](_0x2fe419,_0x19e7e8,_0x22b65b){const _0x18c9ce=_0x1a7bc1(_0x2fe419,_0x2b4076),_0x516558=this['editor']['commands']['get']('trackChanges');_0x18c9ce['buttonView']['set']({'tooltip':_0x22b65b,'label':_0x22b65b,'icon':_0x549e4c}),_0x18c9ce['buttonView']['bind']('isOn')['to'](_0x516558,'value'),_0x18c9ce['buttonView']['on']('execute',()=>{_0x516558['execute'](),this['editor']['editing']['view']['focus']();}),_0x57c9fb(_0x18c9ce,_0x19e7e8,{'role':'menu'});const _0x477b5d=[];for(const _0x376209 of _0x19e7e8)ke(_0x376209)&&_0x477b5d['push'](this['editor']['commands']['get'](_0x376209['model']['commandName']));const _0x5e388b=_0x18c9ce['buttonView'];return _0x5e388b['actionView']['unbind']('isEnabled'),_0x5e388b['arrowView']['unbind']('isEnabled'),_0x5e388b['actionView']['bind']('isEnabled')['to'](_0x516558,'isEnabled'),_0x5e388b['arrowView']['bind']('isEnabled')['toMany'](_0x477b5d,'isEnabled',(..._0x70b5a7)=>_0x70b5a7['some'](_0x16e18f=>_0x16e18f)),_0x18c9ce['on']('execute',_0x408dd5=>{this['editor']['execute'](_0x408dd5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18c9ce;}['_createMenuBarMenu'](_0x58282a,_0x379858,_0xc98ffc){const _0x27643f=new _0x2025e3(_0x58282a),_0x2b4d77=this['editor']['commands']['get']('trackChanges');_0x27643f['buttonView']['set']({'label':_0xc98ffc,'icon':_0x549e4c});const _0x8ddbd8=new _0x39e983(_0x58282a);for(const _0x4959c2 of _0x379858){if('separator'==_0x4959c2['type']){_0x8ddbd8['items']['add'](new _0x20cbf3(_0x58282a));continue;}const _0x236427=new _0x4d7d8a(_0x58282a,_0x27643f),_0x44938c=new _0x351920(_0x58282a),_0x4e30c6=_0x4959c2['model'];_0x44938c['bind'](...Object['keys'](_0x4e30c6))['to'](_0x4e30c6),_0x44938c['delegate']('execute')['to'](_0x27643f),_0x44938c['on']('execute',()=>{this['editor']['execute'](_0x4e30c6['commandName']),this['editor']['editing']['view']['focus']();}),_0x236427['children']['add'](_0x44938c),_0x8ddbd8['items']['add'](_0x236427);}return _0x27643f['bind']('isEnabled')['to'](_0x2b4d77,'isEnabled'),_0x27643f['panelView']['children']['add'](_0x8ddbd8),_0x27643f;}['_initializeController'](_0xe04006){const _0x3a20af=this['editor'],_0x4e8e87=_0x3a20af['config'],_0x46b87e=_0x3a20af['plugins']['get']('Annotations'),_0x1b483c=_0x3a20af['plugins']['get']('CommentsRepository'),_0x2d4599=_0x3a20af['plugins']['get']('EditorAnnotations'),_0x54e4fe=_0x3a20af['plugins']['get'](_0x41af33)['me'],_0x2ea5e2=_0x4e8e87['get']('trackChanges')['SuggestionThreadView'],_0x4eea80=_0x4e8e87['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5e0275,CommentThreadInputView:_0x5c945c}=_0x3a20af['plugins']['get']('CommentsUI');let _0x49ed52,_0x666ca7,_0xc50f9;this['_annotationViews']['has'](_0xe04006['id'])?(_0x666ca7=this['_annotationViews']['get'](_0xe04006['id']),_0x49ed52=_0x666ca7['mainView']):(_0x49ed52=new _0x2ea5e2(_0x3a20af['locale'],_0xe04006,_0x54e4fe,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4e8e87['get']('comments.editorConfig'),'licenseKey':_0x4e8e87['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e8e87['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4e8e87['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x204812(_0x4e8e87['get']('locale'),_0x3a20af['locale']),'CommentView':_0x4e8e87['get']('comments')['CommentView'],'CommentsListView':_0x5e0275,'CommentThreadInputView':_0x5c945c,'SuggestionView':_0x4eea80}),_0x49ed52['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x49ed52['suggestionView']['discardButton']['on']('execute',()=>{_0x3a20af['editing']['view']['focus']();}),_0x666ca7=_0x46b87e['createAnnotationView'](this['editor']['locale'],_0x49ed52),_0x666ca7['bind']('isDirty')['to'](_0x49ed52,'isDirty'),_0x666ca7['bind']('length')['to'](_0x49ed52),_0x666ca7['bind']('type')['to'](_0x49ed52,'type',_0x2828dc=>'suggestion-'+_0x2828dc),_0x49ed52['on']('escape',()=>{_0xc50f9['fire']('escape');}),this['_annotationViews']['set'](_0xe04006['id'],_0x666ca7));const _0xbbe4a0=_0x1b483c['createCommentThreadController'](_0xe04006['commentThread'],_0x49ed52),_0x3293d5=new pe(_0x3a20af,_0xe04006,_0x49ed52,_0xbbe4a0),_0x16d5cb=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x24a523=>_0x24a523['isInContent']);_0x49ed52['descriptionParts']=_0x3a20af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d5cb),this['_suggestionToController']['set'](_0xe04006,_0x3293d5),this['_viewToController']['set'](_0x49ed52,_0x3293d5);const _0xa48a3f=()=>{const _0xfec470=[],_0x542c52=_0xe04006['getAllAdjacentSuggestions']()['filter'](_0x36d6ea=>_0x36d6ea['isInContent']);for(const _0x8e968c of _0x542c52)_0xfec470['push'](..._0x8e968c['getMarkers']());return _0x49b990(_0x3a20af['editing'],_0xfec470);};_0xc50f9=_0x46b87e['createAnnotation']({'view':_0x666ca7,'target':_0xa48a3f,'type':()=>'suggestion-'+_0x3293d5['view']['type'],'isVisible':!!_0xa48a3f()}),_0x1b483c['_bindAnnotationToEditors'](_0x49ed52,_0xc50f9),_0x46b87e['add'](_0xc50f9),_0x2d4599['registerAnnotation'](_0xc50f9);}['_destroyController'](_0x56ebbd){const _0x35ba8f=this['editor']['plugins']['get']('CommentsRepository'),_0x45fbbd=this['editor']['plugins']['get']('Annotations'),_0x34e6eb=this['_suggestionToController']['get'](_0x56ebbd),_0x16c436=_0x34e6eb['view'],_0x464d6f=_0x45fbbd['getByInnerView'](_0x16c436);_0x35ba8f['_unbindEditors'](_0x16c436),_0x464d6f&&_0x45fbbd['remove'](_0x464d6f),this['_suggestionToController']['delete'](_0x56ebbd),this['_viewToController']['delete'](_0x16c436),_0x34e6eb['destroy']();}['_updateController'](_0xc61aa8){if(!_0xc61aa8['isInContent']||!this['_suggestionToController']['has'](_0xc61aa8))return;const _0x52e8bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a270=this['_suggestionToController']['get'](_0xc61aa8),_0x4605dd=_0xc61aa8['getAllAdjacentSuggestions']();_0x17a270['view']['descriptionParts']=_0x52e8bd['descriptionFactory']['getDescriptions'](_0x4605dd);}['destroy'](){for(const _0x1c84ce of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c84ce);for(const _0x1094cf of this['_annotationViews']['values']())_0x1094cf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc79cf5){return'model'in _0xc79cf5;}class Fe extends _0xfd4522{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x265461){this['editor']['plugins']['get'](d)['adapter']=_0x265461;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1f5d8f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1f5d8f);}['getSuggestions']({skipNotAttached:_0x5e5e3c=!0x1,toJSON:_0x4b0144=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5e5e3c,'toJSON':_0x4b0144});}['getSuggestion'](_0xa45c9b){return this['editor']['plugins']['get'](d)['getSuggestion'](_0xa45c9b);}}const p=['Pagination'];class re extends _0xfd4522{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xb315f8=this['editor'];if(_0xb315f8['config']['define']('trackChangesData.editorCreator',_0x13d06b=>{const _0x16d539=_0xb315f8['model']['document']['getRootNames']()['reduce']((_0x38290d,_0x2c1477)=>(_0x38290d[_0x2c1477]='',_0x38290d),{});return _0xb315f8['constructor']['create'](_0x16d539,_0x13d06b);}),'function'!=typeof _0xb315f8['config']['get']('trackChangesData')['editorCreator'])throw new _0x5d208c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x44684e){return P(this['editor'],!0x0,_0x44684e);}['getDataWithDiscardedSuggestions'](_0x4f8bcb){return P(this['editor'],!0x1,_0x4f8bcb);}}class Ge extends _0xfd4522{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x402f8c){function _0x419dcc(_0x37590e){return _0x37590e['map'](_0x12bc54=>String['fromCharCode'](_0x12bc54))['join']('');}super(_0x402f8c),this['result']='end',_0x402f8c[_0x419dcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x419dcc([0x76,0x69,0x65,0x77])][_0x419dcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x419dcc([0x61,0x75,0x74,0x6f]),_0x402f8c[_0x419dcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x419dcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x419dcc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x419dcc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x419dcc([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x15ae77){return void 0x0!==_0x15ae77['getRootsAttributes'];}async function P(_0x262b44,_0x430175,_0x1f274b){const _0x8c7a49=_0x518498(_0x262b44,p);_0x8c7a49['plugins']['push'](d,Ge),_0x8c7a49['rootsAttributes']=He(_0x262b44)?_0x262b44['getRootsAttributes']():void 0x0;const _0xd77f13=document['createDocumentFragment'](),_0x1114a9=_0x262b44['config']['get']('trackChangesData')['editorCreator'],_0x57f0f4=await _0x1114a9(_0x8c7a49,()=>function(_0x6c78af){const _0x3a1a41=document['createElement']('div');return _0x6c78af['appendChild'](_0x3a1a41),_0x3a1a41;}(_0xd77f13));!function(_0xced8dd,_0x374de0){const _0x518f0c=_0xced8dd['model']['document']['getRootNames']()['reduce']((_0x10f4f5,_0x3d993b)=>(_0x10f4f5[_0x3d993b]=_0xced8dd['data']['get']({'rootName':_0x3d993b}),_0x10f4f5),{}),_0x5b65ea=_0xced8dd['plugins']['get']('Users')['users']['map'](_0x44ce8b=>({'id':_0x44ce8b['id'],'name':_0x44ce8b['name']})),_0x15733e=_0xced8dd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x262e7b=_0xced8dd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd3003d=_0x374de0['plugins']['get']('Users'),_0x1cebfe=_0x374de0['plugins']['get']('TrackChangesEditing'),_0x1a1dd9=_0x374de0['plugins']['get']('CommentsRepository');for(const _0x419c91 of _0x1a1dd9['getCommentThreads']())_0x419c91['remove']();for(const _0x5e79fb of _0x5b65ea)_0xd3003d['getUser'](_0x5e79fb['id'])||_0xd3003d['addUser'](_0x5e79fb);_0xd3003d['me']||_0xd3003d['useAnonymousUser']();for(const _0x57e186 of _0x262e7b)_0x1a1dd9['addCommentThread'](_0x57e186);for(const _0xae43b0 of _0x15733e)_0x1cebfe['addSuggestionData'](_0xae43b0);_0x374de0['data']['set'](_0x518f0c);}(_0x262b44,_0x57f0f4),_0x57f0f4['execute'](_0x430175?'acceptAllSuggestions':'discardAllSuggestions');const _0x32847d=He(_0x57f0f4)?_0x57f0f4['getFullData'](_0x1f274b):_0x57f0f4['data']['get'](_0x1f274b);return await _0x57f0f4['destroy'](),_0x32847d;}class Me extends _0x237d07{['options'];constructor(_0x4ca29,_0x32f80d){super(_0x4ca29),this['options']=_0x32f80d,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'](_0x436724,_0x3cb2ac){if(!this['element'])return;const _0x52e010=[];for(const [_0xaeaffa,_0xb5e0ea]of _0x436724){const _0x2c1d3a=document['createElement']('div');_0x2c1d3a['setAttribute']('data-ck-root-name',_0xaeaffa),_0x2c1d3a['className']=_0xb5e0ea['classes']+'\x20ck-track-changes-preview__root-container',_0x2c1d3a['innerHTML']=_0xb5e0ea['content'],_0x52e010['push'](_0x2c1d3a);}_0x3cb2ac(this['element'],_0x52e010),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1366e1{constructor(_0x26810a){super(_0x26810a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17844e=this['editor'],_0xd4583c=_0x17844e['locale'],_0x26d086=_0x17844e['plugins']['get']('Dialog');let _0x37716b;const _0x351a53=function(_0x51bac1){const _0x1b3460={};if('editables'in _0x51bac1['ui']['view']){for(const [_0x4b0f9b,_0x18f329]of Object['entries'](_0x51bac1['ui']['view']['editables']))_0x1b3460[_0x4b0f9b]=_0x18f329['element'];}else _0x1b3460[_0x51bac1['model']['document']['getRootNames']()[0x0]]=_0x51bac1['ui']['view']['editable']['element'];return _0x1b3460;}(_0x17844e),_0x2e73da=function(_0x5ed8e7){let _0x4ca3cc=0x0;for(const _0x1c0c13 of Object['values'](_0x5ed8e7))_0x4ca3cc=Math['max'](_0x4ca3cc,_0x1c0c13['getBoundingClientRect']()['width']);let _0xd73d07=0x0;for(const _0x25ba8f of Object['values'](_0x5ed8e7))_0xd73d07+=_0x25ba8f['getBoundingClientRect']()['height'];const _0x9edf9d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x233106=Math['min'](_0xd73d07,_0x9edf9d);return{'width':_0x4ca3cc,'height':_0x233106};}(_0x351a53);_0x26d086['show']({'id':'finalContentPreview','title':o(_0xd4583c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xd4583c,{'dialogRects':_0x2e73da}),'onHide':()=>{_0x37716b['detachFromDom']();},'onShow':()=>{_0x17844e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d15da=>{const _0x53a1aa=this['_standarizeRootsData'](_0x1d15da,_0x17844e,_0x351a53);_0x26d086['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x53a1aa,_0x17844e['config']['get']('trackChanges.preview.renderFunction'));}),_0x37716b=new _0x3f81a3(_0xd4583c,[_0x26d086['view']]),_0x37716b['attachToDom'](),_0x37716b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17844e['once']('destroy',()=>{_0x37716b['detachFromDom']();});const _0x239b39=_0x26d086['view']['headerView']['class'];_0x26d086['view']['headerView']['class']=_0x239b39?_0x239b39+'\x20ck-reset_all':'ck-reset_all',_0x26d086['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x26d086['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x559a61=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ae116=_0x559a61['previewMode'],_0x349e4d={};if('$labels'===_0x4ae116){for(const _0x2e9e53 of _0x559a61['getMergeFieldsIds']())_0x349e4d[_0x2e9e53]=_0x559a61['getLabel'](_0x2e9e53)||_0x2e9e53;}else{const _0x46109a='$defaultValues'===_0x4ae116?_0x559a61['getDefaultValues']():_0x559a61['getDataSetValues'](_0x4ae116,!0x0);for(const _0x2ab319 of Object['entries'](_0x46109a)){const [_0x45a786,_0x472b30]=_0x2ab319;_0x349e4d[_0x45a786]=null!==_0x472b30?_0x472b30:_0x559a61['getLabel'](_0x45a786)||_0x45a786;}}return{'mergeFieldsData':_0x349e4d};}['_standarizeRootsData'](_0x3add9f,_0xf0cb5a,_0x3cd084){let _0x3edff5;if('string'==typeof _0x3add9f){const _0x47e880=_0xf0cb5a['model']['document']['getRootNames']()[0x0];_0x3edff5={[_0x47e880]:_0x3add9f};}else _0x3edff5=_0x3add9f;const _0x5583f9=this['_fixMediaEmbeds'](_0x3edff5,_0xf0cb5a),_0x10f0d3=function(_0x15abb0,_0x4998e1){for(const [_0x817542,_0x2378d7]of _0x15abb0)_0x2378d7['classes']=_0x4998e1[_0x817542]['classList']['value']['replace']('ck-focused','');return _0x15abb0;}(this['_sortRoots'](_0xf0cb5a)['reduce']((_0x342d94,_0x3bd123)=>(_0x342d94['push']([_0x3bd123,{'content':_0x5583f9[_0x3bd123],'classes':''}]),_0x342d94),[]),_0x3cd084);return _0x10f0d3;}['_fixMediaEmbeds'](_0x1d258c,_0x33fc77){if(!_0x33fc77['plugins']['has']('MediaEmbedEditing'))return _0x1d258c;const _0x916ca=_0x33fc77['plugins']['get']('MediaEmbedEditing');for(const [_0x573830,_0x451ae5]of Object['entries'](_0x1d258c)){const _0x5e7972=document['createElement']('div');_0x5e7972['innerHTML']=_0x451ae5,(_0x5e7972['querySelectorAll']('figure.media')['forEach'](_0x84925c=>{const _0x2b4844=_0x84925c['querySelector']('oembed');if(_0x2b4844){const _0x283be6=_0x2b4844['getAttribute']('url');if(_0x283be6){const _0x5e24dc=_0x916ca['registry']['getMediaViewElement'](new _0x21e70c(_0x33fc77['editing']['view']['document']),_0x283be6,{'elementName':'','renderForEditingView':!0x0}),_0x108b61=document['createElement']('div');_0x108b61['classList']['add']('ck-media__wrapper'),_0x5e24dc['render'](_0x108b61,_0x33fc77['editing']['view']['domConverter']),_0x2b4844['replaceWith'](_0x108b61);}}}),_0x1d258c[_0x573830]=_0x5e7972['innerHTML']);}return _0x1d258c;}['_sortRoots'](_0x43ea68){if(!function(_0x2cebfd){return void 0x0!==_0x2cebfd['getRootsAttributes'];}(_0x43ea68))return _0x43ea68['model']['document']['getRootNames']();const _0x3ebdfb=[],_0x22c6aa=new Map();for(const _0x2d790a of _0x43ea68['model']['document']['getRootNames']()){const _0x1cfd36=_0x43ea68['editing']['view']['getDomRoot'](_0x2d790a)['getClientRects']()['item'](0x0);_0x3ebdfb['push'](_0x2d790a),_0x22c6aa['set'](_0x2d790a,_0x1cfd36);}return _0x3ebdfb['sort']((_0xf15354,_0x4ccf2b)=>{const _0x26f986=_0x22c6aa['get'](_0xf15354),_0x2547e1=_0x22c6aa['get'](_0x4ccf2b);return _0x26f986['y']-_0x2547e1['y']||_0x26f986['x']-_0x2547e1['x'];}),_0x3ebdfb;}}class $e extends _0xfd4522{static get['requires'](){return[re,_0x5914c5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46b3df){super(_0x46b3df),_0x46b3df['commands']['add']('previewFinalContent',new te(this['editor'])),_0x46b3df['config']['define']('trackChanges.preview.renderFunction',(_0x24226b,_0x40f45a)=>{for(const _0x392e89 of _0x40f45a)_0x24226b['appendChild'](_0x392e89);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|