@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20251023.0 → 0.0.0-nightly-20251025.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/footnotes.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x1cadee(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x41466f,_0x5be3f0){super(),this['id']=_0x5be3f0['id'],this['type']=_0x5be3f0['type'],this['subType']=_0x5be3f0['subType']||null,this['author']=_0x5be3f0['author'],this['creator']=_0x5be3f0['creator']||_0x5be3f0['author'],this['isExternal']=Boolean(_0x5be3f0['attributes']&&_0x5be3f0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5be3f0['originalSuggestionId']||null,this['_model']=_0x41466f,this['_onAccept']=_0x5be3f0['onAccept'],this['_onDiscard']=_0x5be3f0['onDiscard'],this['_onAttributesChange']=_0x5be3f0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5be3f0['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 _0xb81047=this;for(;_0xb81047['previous'];)_0xb81047=_0xb81047['previous'];return _0xb81047;}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'](_0xb8165b){this['_markerNames']['add'](_0xb8165b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2d3cc1=>this['_model']['markers']['get'](_0x2d3cc1))['filter'](_0x8e207c=>_0x8e207c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1fab4c=>{for(const _0x558d21 of this['getMarkers']())_0x1fab4c['removeMarker'](_0x558d21);}),this['_markerNames']['clear']();}['removeMarker'](_0x47c3a7){this['_model']['change'](_0x101510=>{_0x101510['removeMarker'](_0x47c3a7);}),this['_markerNames']['delete'](_0x47c3a7);}['addRange'](_0x859c44){const _0x2f2755='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x2f2755),this['_model']['change'](_0x32104e=>{_0x32104e['addMarker'](_0x2f2755,{'range':_0x859c44,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x60540a){for(const _0x5a20b1 of this['getRanges']())if(_0x5a20b1['isIntersecting'](_0x60540a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x34551b=>_0x34551b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x51945c,_0x364256)=>[..._0x51945c,..._0x364256['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd7e864=this['getRanges']();if(0x1!=_0xd7e864['length'])return null;const _0x4bd8a2=_0xd7e864[0x0],_0x5730c0=_0x4bd8a2['start']['nodeAfter'],_0x985990=_0x4bd8a2['end']['nodeBefore'];return _0x5730c0 instanceof _0x12a10c?_0x5730c0!=_0x985990?null:_0x5730c0: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 _0xe22ecc=[];let _0x4e2554=this['head'];for(;_0x4e2554;)_0xe22ecc['push'](_0x4e2554),_0x4e2554=_0x4e2554['next'];return _0xe22ecc;}['setAttribute'](_0x50eed1,_0x18ed36){const _0x57f36b=_0x3a557c(this['attributes']);_0x59ec23(_0x57f36b,_0x50eed1,_0x18ed36),_0xbe0a30(_0x57f36b,this['attributes'])||(this['attributes']=_0x57f36b,this['_onAttributesChange'](_0x57f36b));}['removeAttribute'](_0x2ab85f){const _0x5ed514=_0x3a557c(this['attributes']);_0x3ecd77(_0x5ed514,_0x2ab85f),_0xbe0a30(_0x5ed514,this['attributes'])||(this['attributes']=_0x5ed514,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 _0x38e47f()['substr'](0x1,0x5);}}function o(_0xbcb53d,_0x1cc2d3,_0x2bd0e1){const _0x301114=_0xbcb53d['t'],t=_0xbcb53d['t'];switch(_0x1cc2d3){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',_0x2bd0e1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2bd0e1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2bd0e1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2bd0e1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2bd0e1);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',_0x2bd0e1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2bd0e1);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',_0x2bd0e1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2bd0e1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2bd0e1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2bd0e1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2bd0e1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2bd0e1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2bd0e1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2bd0e1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2bd0e1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2bd0e1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2bd0e1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2bd0e1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2bd0e1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2bd0e1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2bd0e1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2bd0e1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2bd0e1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2bd0e1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2bd0e1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2bd0e1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2bd0e1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2bd0e1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2bd0e1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2bd0e1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2bd0e1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2bd0e1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2bd0e1);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'},_0x2bd0e1);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2bd0e1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2bd0e1);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2bd0e1);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2bd0e1);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2bd0e1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2bd0e1);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'},_0x2bd0e1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2bd0e1);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 _0x301114({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2bd0e1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x301114({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2bd0e1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2bd0e1);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'},_0x2bd0e1);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'},_0x2bd0e1);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'},_0x2bd0e1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1cc2d3;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5dc629,_0x5c78d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5dc629,this['_locale']=_0x5c78d2;}['getDescriptions'](_0x528037){const _0x1e50f0=[],_0x26f9f0=new Set(),_0x59f6c0=new Set();for(let _0x56d8c0=0x0;_0x56d8c0<_0x528037['length'];_0x56d8c0++){const _0x3908de=_0x528037[_0x56d8c0];if(!_0x3908de['isInContent'])continue;const _0xa8c8f4=this['_handleCustomCallbackDescription'](_0x3908de);if(_0xa8c8f4){if(null!=_0x3908de['subType']){if(_0x26f9f0['has'](_0x3908de['subType']))continue;_0x26f9f0['add'](_0x3908de['subType']);}_0x1e50f0['push'](_0xa8c8f4);}else{if('attribute'==_0x3908de['type']){const _0x501072=_0x3908de['data']['key'];if(_0x59f6c0['has'](_0x501072))continue;_0x59f6c0['add'](_0x3908de['data']['key']),_0x501072==m?this['_handleRenameSuggestionDescription'](_0x1e50f0,_0x3908de):this['_handleAttributeSuggestionDescription'](_0x1e50f0,_0x3908de);continue;}'insertion'!=_0x3908de['type']&&'deletion'!=_0x3908de['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1e50f0,_0x3908de,_0x528037[_0x56d8c0+0x1]);}}return this['_resolveDescriptionItems'](_0x1e50f0);}['registerDescriptionCallback'](_0x4e41d2){this['_customCallbacks']['push'](_0x4e41d2);}['registerElementLabel'](_0x2bdb18,_0x2b5d80,_0x297451=_0x398195['normal']){'function'==typeof _0x2bdb18?_0x254ec1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2bdb18,'label':_0x2b5d80,'priority':_0x297451}):this['_itemLabels']['set'](_0x2bdb18,_0x2b5d80);}['registerAttributeLabel'](_0x30671a,_0x2d1103){this['_attributeLabels']['set'](_0x30671a,_0x2d1103);}['getItemLabel'](_0xba13ef,_0x13541c=0x1){let _0x31b1cf;for(const _0x59dfe5 of this['_itemLabelsCallbacks'])if(_0x59dfe5['matchingCallback'](_0xba13ef)){_0x31b1cf=_0x59dfe5['label'];break;}return _0x31b1cf||(_0x31b1cf=this['_itemLabels']['get'](_0xba13ef['name'])),_0x31b1cf?_0x31b1cf(_0x13541c):0x1!==_0x13541c?_0x13541c+'\x20'+_0xba13ef['name']+'s':''+_0xba13ef['name'];}['_addDescriptionItems'](_0x529944,_0x2f3320){const _0xfe605=_0x2f3320['getFirstRange']()['getWalker'](),_0x499ce0='insertion'==_0x2f3320['type']?'add':'remove';for(const _0x71ce6f of _0xfe605){const _0x2dc873=_0x71ce6f['item'],_0x46af4f=_0x529944[_0x529944['length']-0x1];if(_0x2dc873['is']('$textProxy'))_0x46af4f&&_0x46af4f['type']['indexOf']('Container')>-0x1&&_0x529944['pop'](),_0x46af4f&&'text'==_0x46af4f['type']?_0x46af4f[_0x499ce0]+=_0x2dc873['data']:_0x529944['push']({'type':'text','add':'add'==_0x499ce0?_0x2dc873['data']:'','remove':'remove'==_0x499ce0?_0x2dc873['data']:''});else{if(this['_schema']['isObject'](_0x2dc873)){const _0x78f7a0=_0x2dc873;if(_0x46af4f&&_0x46af4f['type']['indexOf']('Container')>-0x1&&_0x529944['pop'](),'elementEnd'==_0x71ce6f['type'])continue;_0x46af4f&&_0x46af4f['type']==_0x499ce0+'Object'&&_0x46af4f['element']['name']==_0x78f7a0['name']?_0x46af4f['quantity']++:_0x529944['push']({'type':_0x499ce0+'Object','element':_0x78f7a0,'quantity':0x1}),_0xfe605['skip'](_0x2a29a3=>!('elementEnd'==_0x2a29a3['type']&&_0x2a29a3['item']==_0x2dc873));}else{if(this['_schema']['checkChild'](_0x2dc873,'$text')||_0x2dc873['is']('element','softBreak')){const _0x776b64=_0x2dc873;if('add'==_0x499ce0&&'elementStart'==_0x71ce6f['type']||'remove'==_0x499ce0&&'elementEnd'==_0x71ce6f['type'])continue;if(_0x46af4f&&-0x1==_0x46af4f['type']['indexOf']('Container')){'text'==_0x46af4f['type']&&(_0x46af4f[_0x499ce0]+='\x0a');continue;}let _0x462bf3;if(_0x462bf3='add'==_0x499ce0?_0x776b64['nextSibling']&&!this['_schema']['isObject'](_0x776b64['nextSibling'])?_0x776b64['nextSibling']:null:_0x776b64['previousSibling']&&!this['_schema']['isObject'](_0x776b64['previousSibling'])?_0x776b64['previousSibling']:null,_0x776b64['isEmpty']||_0x462bf3&&_0x462bf3['isEmpty']){const _0x3f9aa8=_0x462bf3&&_0x462bf3['isEmpty']?_0x462bf3:_0x776b64;_0x46af4f&&_0x46af4f['type']==_0x499ce0+'EmptyContainer'&&_0x46af4f['element']['name']==_0x3f9aa8['name']?_0x46af4f['quantity']++:_0x529944['push']({'type':_0x499ce0+'EmptyContainer','element':_0x3f9aa8,'quantity':0x1});}else _0x529944['push']({'type':_0x499ce0+'Container','element':_0x776b64});}}}}}['_resolveDescriptionItems'](_0x13ac5e){const _0x3f9f3b=this['_locale'],_0xcb4ed3=[],_0x524cad=[],_0xce051b=[];for(const _0x33a27d of _0x13ac5e)switch(_0x33a27d['type']){case'text':if(_0x33a27d['add']=_0x33a27d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33a27d['remove']=_0x33a27d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33a27d['add']&&''!=_0x33a27d['remove']){_0xcb4ed3['push']({'type':'replace','content':o(_0x3f9f3b,'REPLACE_TEXT',['\x22'+_0x33a27d['remove']+'\x22','\x22'+_0x33a27d['add']+'\x22'])});continue;}if(null!=_0x33a27d['add']['match'](/^ +$/)){_0xcb4ed3['push']({'type':'insertion','content':o(_0x3f9f3b,'*Insert:*\x20%0',o(_0x3f9f3b,'ELEMENT_SPACE',_0x33a27d['add']['length']))});continue;}if(null!=_0x33a27d['remove']['match'](/^ +$/)){_0xcb4ed3['push']({'type':'deletion','content':o(_0x3f9f3b,'*Remove:*\x20%0',o(_0x3f9f3b,'ELEMENT_SPACE',_0x33a27d['remove']['length']))});continue;}if(''!=_0x33a27d['add']){_0xcb4ed3['push']({'type':'insertion','content':o(_0x3f9f3b,'*Insert:*\x20%0','\x22'+_0x33a27d['add']+'\x22')});continue;}_0xcb4ed3['push']({'type':'deletion','content':o(_0x3f9f3b,'*Remove:*\x20%0','\x22'+_0x33a27d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xcb4ed3['push']({'type':'insertion','content':o(_0x3f9f3b,'*Insert:*\x20%0',this['getItemLabel'](_0x33a27d['element'],_0x33a27d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xcb4ed3['push']({'type':'deletion','content':o(_0x3f9f3b,'*Remove:*\x20%0',this['getItemLabel'](_0x33a27d['element'],_0x33a27d['quantity']))});continue;case'addContainer':_0xcb4ed3['push']({'type':'insertion','content':o(_0x3f9f3b,'*Split:*\x20%0',this['getItemLabel'](_0x33a27d['element'],_0x33a27d['quantity']))});continue;case'removeContainer':_0xcb4ed3['push']({'type':'deletion','content':o(_0x3f9f3b,'*Merge:*\x20%0',this['getItemLabel'](_0x33a27d['element'],_0x33a27d['quantity']))});continue;case'addFormat':_0x524cad['push'](_0x33a27d['key']);continue;case'removeFormat':_0xce051b['push'](_0x33a27d['key']);continue;default:_0xcb4ed3['push'](_0x33a27d);}if(_0x524cad['length']){const _0x2cd84a=_0x524cad['map'](_0x1e84a6=>this['_attributeLabels']['has'](_0x1e84a6)?this['_attributeLabels']['get'](_0x1e84a6):_0x1e84a6)['join'](',\x20');_0xcb4ed3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2cd84a)});}if(_0xce051b['length']){const _0x4d3746=_0xce051b['map'](_0x5f2704=>this['_attributeLabels']['has'](_0x5f2704)?this['_attributeLabels']['get'](_0x5f2704):_0x5f2704)['join'](',\x20');_0xcb4ed3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4d3746)});}return _0xcb4ed3;}['_handleCustomCallbackDescription'](_0x3fbd37){for(const _0x2f46e4 of this['_customCallbacks']){const _0x275b73=_0x2f46e4(_0x3fbd37);if(_0x275b73&&'type'in _0x275b73)return _0x275b73;}}['_handleAttributeSuggestionDescription'](_0x4be64d,_0x4231cb){const _0x3e1be3=_0x4231cb['data'],_0x31b7dd=void 0x0===_0x3e1be3['newValue']?'removeFormat':'addFormat';_0x4be64d['push']({'type':_0x31b7dd,'key':_0x3e1be3['key']});}['_handleRenameSuggestionDescription'](_0x3f6991,_0x42c441){_0x3f6991['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x42c441['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x193f88,_0x2d6448,_0x2659e2){if(this['_addDescriptionItems'](_0x193f88,_0x2d6448),_0x2659e2&&_0x2659e2['getFirstRange']()&&!_0x2d6448['getFirstRange']()['end']['isEqual'](_0x2659e2['getFirstRange']()['start'])){const _0x1c184e=_0x193f88[_0x193f88['length']-0x1],_0x7830ed='insertion'==_0x2d6448['type']?'add':'remove';_0x1c184e&&'text'==_0x1c184e['type']&&(_0x1c184e[_0x7830ed]+='\x0a');}}}class V extends _0x262bfa{['afterInit'](){const _0x565f0e=this['editor'],_0x553f9e=_0x565f0e['plugins']['get']('TrackChangesEditing');_0x565f0e['commands']['get']('showAIAssistant')&&_0x553f9e['enableCommand']('showAIAssistant');}}class F extends _0x262bfa{['afterInit'](){const _0x5e68eb=this['editor'],_0x5e3e85=_0x5e68eb['plugins']['get']('TrackChangesEditing');_0x5e68eb['commands']['get']('toggleAi')&&_0x5e3e85['enableCommand']('toggleAi');}}class G extends _0x262bfa{['afterInit'](){const _0x445f0a=this['editor'],_0x128684=_0x445f0a['plugins']['get']('TrackChangesEditing');_0x445f0a['commands']['get']('aiQuickAction')&&_0x128684['enableCommand']('aiQuickAction');}}class L extends _0x262bfa{['afterInit'](){const _0x25dc0e=this['editor'],_0x8a49c9=_0x25dc0e['locale'];if(!_0x25dc0e['plugins']['has']('AlignmentEditing'))return;const _0x1b180a=_0x25dc0e['plugins']['get']('TrackChangesEditing');_0x1b180a['enableDefaultAttributesIntegration']('alignment'),_0x1b180a['registerBlockAttribute']('alignment'),_0x1b180a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x8a49c9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a7c5=this['editor'],_0x471056=_0x55a7c5['locale'];_0x55a7c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2263a4=>{if('formatBlock'!=_0x2263a4['type'])return;const {data:_0x209256}=_0x2263a4;if(_0x209256&&'alignment'==_0x209256['commandName']){const _0x4bbb85=_0x209256['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x471056,'*Format:*\x20%0',function(_0x5f2a91){switch(_0x5f2a91){case'left':return o(_0x471056,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x471056,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x471056,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x471056,'FORMAT_JUSTIFY_TEXT');}}(_0x4bbb85))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x262bfa{['afterInit'](){const _0x171265=this['editor'],_0x24b262=_0x171265['plugins']['get']('TrackChangesEditing'),_0x2b5cac=_0x171265['locale'];for(const _0x28712f of ti){if(!_0x171265['plugins']['has'](_0x28712f))continue;const _0x2b722f=_0x28712f['slice'](0x0,-0x7)['toLowerCase'](),_0x46d47f='FORMAT_'+_0x2b722f['toUpperCase']();_0x24b262['enableDefaultAttributesIntegration'](_0x2b722f),_0x24b262['registerInlineAttribute'](_0x2b722f),_0x24b262['descriptionFactory']['registerAttributeLabel'](_0x2b722f,o(_0x2b5cac,_0x46d47f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20468e=this['editor'],_0x5d2278=_0x20468e['locale'],_0x3ecc44=_0x20468e['plugins']['get']('TrackChangesEditing');function _0x594f0c(_0x2a48d4,_0x48cc51){_0x3ecc44['descriptionFactory']['registerDescriptionCallback'](_0x2fdd0c=>{if('formatInline'!=_0x2fdd0c['type'])return;const {data:_0x26468a}=_0x2fdd0c;return _0x26468a&&_0x26468a['commandName']===_0x2a48d4?_0x26468a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d2278,'*Format:*\x20%0',_0x48cc51)}:{'type':'format','content':o(_0x5d2278,'*Remove\x20format:*\x20%0',_0x48cc51)}:void 0x0;});}_0x594f0c('bold',o(_0x5d2278,'FORMAT_BOLD')),_0x594f0c('italic',o(_0x5d2278,'FORMAT_ITALIC')),_0x594f0c('underline',o(_0x5d2278,'FORMAT_UNDERLINE')),_0x594f0c('code',o(_0x5d2278,'FORMAT_CODE')),_0x594f0c('strikethrough',o(_0x5d2278,'FORMAT_STRIKETHROUGH')),_0x594f0c('subscript',o(_0x5d2278,'FORMAT_SUBSCRIPT')),_0x594f0c('superscript',o(_0x5d2278,'FORMAT_SUPERSCRIPT'));}}class K extends _0x262bfa{['afterInit'](){const _0x47288d=this['editor'],_0x54646b=_0x47288d['locale'];if(!_0x47288d['plugins']['has']('BlockQuoteEditing'))return;const _0x10cb2c=_0x47288d['plugins']['get']('TrackChangesEditing'),_0x11ce0b=this['editor']['commands']['get']('blockQuote');_0x10cb2c['enableCommand']('blockQuote',(_0x2cc13d,_0xd795d2={})=>{const _0x1c757e=this['editor']['model']['document']['selection'],_0x271631=_0xd795d2&&void 0x0!==_0xd795d2['forceValue']?_0xd795d2['forceValue']:!_0x11ce0b['value'];let _0x185254=[];if(_0x271631){const _0x5223f1=Array['from'](_0x1c757e['getSelectedBlocks']())['filter'](_0x22c3d2=>oo(_0x22c3d2)||function(_0x109e3c,_0x1d9a70){const _0x88d2b7=_0x1d9a70['checkChild'](_0x109e3c['parent'],'blockQuote'),_0x4c5742=_0x1d9a70['checkChild'](['$root','blockQuote'],_0x109e3c);return _0x88d2b7&&_0x4c5742;}(_0x22c3d2,this['editor']['model']['schema']));_0x185254=to(_0x5223f1,_0x47288d['model']);}else{const _0x5f5058=Array['from'](_0x1c757e['getSelectedBlocks']())['filter'](_0x26cbca=>oo(_0x26cbca));_0x185254=to(_0x5f5058,_0x47288d['model']);}_0x47288d['model']['change'](()=>{for(const _0x5ef7f9 of _0x185254)_0x10cb2c['markBlockFormat'](_0x5ef7f9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x271631}]});});}),_0x10cb2c['descriptionFactory']['registerDescriptionCallback'](_0x22284c=>{const {data:_0x1b16b1}=_0x22284c;if(_0x1b16b1&&'blockQuote'==_0x1b16b1['commandName']){const _0x1a3277=o(_0x54646b,'ELEMENT_BLOCK_QUOTE');return _0x1b16b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54646b,'*Set\x20format:*\x20%0',_0x1a3277)}:{'type':'format','content':o(_0x54646b,'*Remove\x20format:*\x20%0',_0x1a3277)};}});}}function oo(_0x3c8433){return'blockQuote'==_0x3c8433['parent']['name'];}class q extends _0x262bfa{['afterInit'](){const _0x5461bc=this['editor'],_0x5f5731=_0x5461bc['locale'],_0x21c17c=_0x5461bc['plugins']['get']('TrackChangesEditing');_0x5461bc['plugins']['has']('BookmarkEditing')&&(_0x21c17c['enableCommand']('insertBookmark'),_0x21c17c['enableDefaultAttributesIntegration']('updateBookmark'),_0x21c17c['registerBlockAttribute']('bookmarkId'),_0x21c17c['descriptionFactory']['registerDescriptionCallback'](_0x560150=>{if('insertion'!=_0x560150['type']&&'deletion'!=_0x560150['type']&&'attribute'!=_0x560150['type'])return;const _0x1946a7=_0x560150['getContainedElement']();if(null==_0x1946a7)return;if(!_0x1946a7['is']('element','bookmark'))return;const _0xaf3cae=_0x1946a7['getAttribute']('bookmarkId');if('insertion'==_0x560150['type'])return{'type':'insertion','content':o(_0x5f5731,'*Insert:*\x20%0','\x22'+_0xaf3cae+'\x22\x20'+o(_0x5f5731,'ELEMENT_BOOKMARK'))};if('deletion'==_0x560150['type'])return{'type':'deletion','content':o(_0x5f5731,'*Remove:*\x20%0','\x22'+_0xaf3cae+'\x22\x20'+o(_0x5f5731,'ELEMENT_BOOKMARK'))};const {data:_0x4a0396}=_0x560150;if(!_0x4a0396||'bookmarkId'!=_0x4a0396['key'])return;return{'type':'format','content':o(_0x5f5731,'*Set\x20bookmark:*\x20%0','\x22'+_0x4a0396['newValue']+'\x22')};}));}}class H extends _0x262bfa{['afterInit'](){const _0x2fd15e=this['editor'];_0x2fd15e['plugins']['has']('CaseChange')&&(_0x2fd15e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2fd15e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2fd15e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x262bfa{['afterInit'](){const _0x96350a=this['editor'];_0x96350a['commands']['get']('ckbox')&&_0x96350a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x262bfa{['afterInit'](){const _0xbf923e=this['editor'];if(!_0xbf923e['plugins']['has']('CodeBlock'))return;const _0x38a329=_0xbf923e['plugins']['get']('TrackChangesEditing'),_0x39d653=_0xbf923e['locale'],_0x13c3f0=_0xbf923e['config']['get']('codeBlock')['languages'],_0x471689=_0xbf923e['commands']['get']('codeBlock');_0x38a329['enableCommand']('indentCodeBlock'),_0x38a329['enableCommand']('outdentCodeBlock'),_0x38a329['enableCommand']('codeBlock',(_0x469b4b,_0x5d1fcb={})=>{const _0x3be4b7=_0xbf923e['model'],_0x757dc9=_0xbf923e['model']['document']['selection'],_0x536545=_0x5d1fcb&&void 0x0!==_0x5d1fcb['forceValue']?_0x5d1fcb['forceValue']:!_0x471689['value'];let _0x1933b9;_0x5d1fcb['language']||(_0x5d1fcb['language']=_0x13c3f0[0x0]['language']),_0x1933b9=_0x536545?Array['from'](_0x757dc9['getSelectedBlocks']())['filter'](_0x410b3d=>co(_0x410b3d)||function(_0x3de902,_0x2b8a1a){if(_0x3de902['is']('rootElement')||_0x2b8a1a['isLimit'](_0x3de902))return!0x1;return _0x2b8a1a['checkChild'](_0x3de902['parent'],'codeBlock');}(_0x410b3d,_0x3be4b7['schema'])):Array['from'](_0x757dc9['getSelectedBlocks']())['filter'](_0x44f076=>co(_0x44f076));const _0x39db58=to(_0x1933b9,_0x3be4b7);_0x3be4b7['change'](()=>{for(const _0x154a48 of _0x39db58)_0x38a329['markBlockFormat'](_0x154a48,{'commandName':'codeBlock','commandParams':[{..._0x5d1fcb,'forceValue':_0x536545}],'formatGroupId':'blockName'});});}),(_0x38a329['descriptionFactory']['registerElementLabel']('codeBlock',_0x26878b=>o(_0x39d653,'ELEMENT_CODE_BLOCK',_0x26878b)),_0x38a329['descriptionFactory']['registerDescriptionCallback'](_0x28e35a=>{if('formatBlock'!=_0x28e35a['type'])return;const _0x54e126=_0x39d653['t'],{data:_0xb9b941}=_0x28e35a;if(!_0xb9b941||'codeBlock'!=_0xb9b941['commandName'])return;const _0x468bfc=_0xb9b941['commandParams'][0x0]['language'],_0x343333=_0x54e126(_0x13c3f0['find'](_0x1144c7=>_0x1144c7['language']===_0x468bfc)['label'])['toLowerCase']();return _0xb9b941['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39d653,'*Set\x20format:*\x20%0',o(_0x39d653,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x343333+')')}:{'type':'format','content':o(_0x39d653,'*Remove\x20format:*\x20%0',o(_0x39d653,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x205d0e){return'codeBlock'==_0x205d0e['name'];}class Q extends _0x262bfa{['afterInit'](){const _0x5ed41d=this['editor'];if(!_0x5ed41d['plugins']['has']('CommentsEditing'))return;_0x5ed41d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a2b71,_0x5b31ff,_0x572027){const _0xb996f1=[];for(const _0x5e690b of _0x5b31ff['getItems']())_0x5e690b['hasAttribute'](_0x3a2b71)&&_0xb996f1['push'](_0x572027['createRangeOn'](_0x5e690b));return _0xb996f1;}function Ve(_0x433d4f,_0xb09608,{showActiveMarker:_0x26e29c=!0x0}={}){const _0x3f15f0=_0x433d4f['plugins']['get']('TrackChangesEditing');return(_0xc3f272,_0x123ae2,_0x32765c)=>{if(!_0x32765c['consumable']['test'](_0x123ae2['markerRange'],_0xc3f272['name']))return;const _0x54bc65=_0x123ae2['markerRange']['getWalker'](),_0x115ebe=_0x123ae2['markerRange']['start'],_0x5de286=_0x433d4f['model']['schema'];let _0x5b8ce1=null,_0x437840=null,_0x297c08=!0x1,_0x22a64c=!0x1;for(const _0xebf6cf of _0x54bc65){const _0x592d31=_0xebf6cf['item'];_0x297c08=_0x297c08||_0x5de286['isContent'](_0x592d31);const _0x46696e=_0x32765c['mapper']['toViewElement'](_0x592d31);if(_0x46696e&&_0x46696e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xebf6cf['type']&&(_0x5de286['isBlock'](_0x592d31)&&!_0x5de286['isLimit'](_0x592d31)&&(_0x592d31['nextSibling']||_0x115ebe['isAtEnd']?_0x5b8ce1&&_0x5b8ce1['parent']==_0x592d31||(_0x5b8ce1=_0x592d31,_0x18afc6(_0xebf6cf['previousPosition']),_0x22a64c=!0x0):_0x437840=_0x437840||_0xebf6cf['previousPosition']));}function _0x18afc6(_0x1af9f9){const {id:_0x1ea941,authorId:_0x2d7cda}=_0x3f15f0['_splitMarkerName'](_0x123ae2['markerName']),_0x4c7cfb=_0x32765c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb09608,'data-suggestion':_0x1ea941,'data-author-id':_0x2d7cda}),_0x2296f7=_0x32765c['mapper']['toViewPosition'](_0x1af9f9);_0x26e29c&&_0x3f15f0['activeMarkers']['includes'](_0x123ae2['markerName'])&&_0x32765c['writer']['addClass']('ck-suggestion-marker--active',_0x4c7cfb),_0x32765c['writer']['insert'](_0x2296f7,_0x4c7cfb),_0x32765c['mapper']['bindElementToMarker'](_0x4c7cfb,_0x123ae2['markerName']);}_0x297c08||_0x22a64c||!_0x437840||_0x18afc6(_0x437840);};}class X extends _0x262bfa{static get['requires'](){return[_0x292091];}['init'](){const _0x632ad2=this['editor'],_0x19cdcb=_0x632ad2['plugins']['get']('TrackChangesEditing');_0x19cdcb['enableCommand']('delete');const _0x50f06f=_0x632ad2['commands']['get']('deleteForward');_0x19cdcb['enableCommand']('deleteForward',(_0x109d7b,_0x4f9d22={})=>{const _0x27ead0=_0x632ad2['model']['createSelection'](_0x632ad2['model']['document']['selection']);_0x27ead0['isCollapsed']&&_0x632ad2['model']['modifySelection'](_0x27ead0,{'direction':'forward','unit':_0x4f9d22['unit']});const _0xafcd94=_0x27ead0['getFirstRange'](),_0x3bdddd=_0x284d24['fromRange'](_0xafcd94);let _0x37a383;_0x109d7b(_0x4f9d22),_0x37a383='$graveyard'==_0x3bdddd['root']['rootName']?_0x632ad2['model']['createRange'](_0xafcd94['start']):_0x632ad2['model']['createRange'](_0x3bdddd['start'],_0x3bdddd['end']),_0x3bdddd['detach'](),_0x632ad2['model']['enqueueChange'](_0x50f06f['buffer']['batch'],_0xcd6f14=>{_0x50f06f['buffer']['lock'](),_0xcd6f14['setSelection'](_0xcd6f14['createRange'](_0x37a383['end'])),_0x50f06f['buffer']['unlock']();});}),_0x632ad2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x632ad2,'merge'),{'priority':'high'}),_0x632ad2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c801f,_0x225792,_0x5ee469)=>{_0x5ee469['options']['showSuggestionHighlights']&&Ve(_0x632ad2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c801f,_0x225792,_0x5ee469);},{'priority':'high'}),_0x632ad2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2494d4,_0x1dcc8b,_0x1f7af0)=>{const _0x42c0d2=_0x1f7af0['mapper']['markerNameToElements'](_0x1dcc8b['markerName']);if(_0x42c0d2){for(const _0x4ecd45 of _0x42c0d2)_0x4ecd45['is']('uiElement')&&(_0x1f7af0['mapper']['unbindElementFromMarkerName'](_0x4ecd45,_0x1dcc8b['markerName']),_0x1f7af0['writer']['remove'](_0x4ecd45));}},{'priority':'high'});}}class Y extends _0x262bfa{['afterInit'](){const _0x2a43a8=this['editor'];if(!_0x2a43a8['plugins']['has']('ListEditing'))return;const _0x46f044=_0x2a43a8['locale'],_0x48f96c=_0x2a43a8['plugins']['get']('TrackChangesEditing'),_0x29d08e=_0x2a43a8['plugins']['has']('TodoListEditing'),_0x2fc157=!!_0x2a43a8['config']['get']('list.multiBlock');function _0x53c063(_0x41b4de){return{'type':'format','content':''+o(_0x46f044,'*Set\x20format:*\x20%0',_0x41b4de)};}function _0x2fd366(_0x351dd1){return{'type':'format','content':''+o(_0x46f044,'*Remove\x20format:*\x20%0',_0x351dd1)};}_0x48f96c['enableDefaultAttributesIntegration']('numberedList'),_0x48f96c['enableDefaultAttributesIntegration']('bulletedList'),_0x48f96c['enableDefaultAttributesIntegration']('customNumberedList'),_0x48f96c['enableDefaultAttributesIntegration']('customBulletedList'),_0x48f96c['enableDefaultAttributesIntegration']('indentList'),_0x48f96c['enableDefaultAttributesIntegration']('outdentList'),_0x48f96c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48f96c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x48f96c['registerBlockAttribute']('listItemId'),_0x48f96c['registerBlockAttribute']('listType'),_0x48f96c['registerBlockAttribute']('listIndent'),_0x2fc157&&(_0x48f96c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48f96c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x29d08e&&(_0x48f96c['enableDefaultAttributesIntegration']('todoList'),_0x48f96c['enableDefaultAttributesIntegration']('checkTodoList'),_0x48f96c['registerBlockAttribute']('todoListChecked'),_0x48f96c['descriptionFactory']['registerDescriptionCallback'](_0x1612cd=>{const {data:_0x6a0113}=_0x1612cd;if(_0x6a0113&&'todoListChecked'==_0x6a0113['key'])return{'type':'format','content':_0x6a0113['newValue']?o(_0x46f044,'*Check\x20item*'):o(_0x46f044,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x37a17f=>{if(_0x37a17f['batch']['isUndo'])return!0x1;let _0x3d0cc4=!0x1;const _0x19a258=_0x48f96c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3523c5=>'todoListChecked'===_0x48f96c['_getAttributeKey'](_0x3523c5));for(const _0x581b26 of _0x19a258){'todo'!=_0x581b26['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48f96c['_findSuggestions'](_0x581b26['getFirstRange'](),'attribute')['find'](_0x5e806a=>'listType'===_0x48f96c['_getAttributeKey'](_0x5e806a['suggestion']))||(_0x37a17f['removeMarker'](_0x581b26['getFirstMarker']()),_0x3d0cc4=!0x0));}return _0x3d0cc4;})),_0x48f96c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x46f044,'FORMAT_INDENT'));const _0x4a773a={'type':'format','content':''};_0x48f96c['descriptionFactory']['registerDescriptionCallback'](_0x4e686d=>{const {data:_0x1233ac}=_0x4e686d;if(!_0x1233ac||'listType'!=_0x1233ac['key'])return;let _0x1eaae9=_0x4e686d['head'];for(;_0x1eaae9;){if(_0x1eaae9['data']&&(('listStyle'==_0x1eaae9['data']['key']||'listMarkerStyle'==_0x1eaae9['data']['key'])&&(_0x1eaae9['data']['newValue']&&'default'!=_0x1eaae9['data']['newValue']||'default'!=_0x1eaae9['data']['oldValue']&&!_0x1233ac['newValue'])||!_0x2fc157&&_0x1eaae9['data']['key']==m))return _0x4a773a;_0x1eaae9=_0x1eaae9['next'];}if(null==_0x1233ac['newValue'])switch(_0x1233ac['oldValue']){case'bulleted':return _0x2fd366(o(_0x46f044,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fd366(o(_0x46f044,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fd366(o(_0x46f044,'ELEMENT_TODO_LIST'));}switch(_0x1233ac['newValue']){case'bulleted':return _0x53c063(o(_0x46f044,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53c063(o(_0x46f044,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53c063(o(_0x46f044,'ELEMENT_TODO_LIST'));}}),_0x48f96c['descriptionFactory']['registerDescriptionCallback'](_0x4b175d=>{const {data:_0x24ae0c}=_0x4b175d;if(_0x24ae0c&&'listIndent'==_0x24ae0c['key'])return null==_0x24ae0c['newValue']||null==_0x24ae0c['oldValue']&&0x0==_0x24ae0c['newValue']?_0x4a773a:void 0x0;}),_0x48f96c['descriptionFactory']['registerDescriptionCallback'](_0x51c5d3=>{if('attribute'!=_0x51c5d3['type'])return;const {data:_0x380815}=_0x51c5d3;if(!_0x380815||'listItemId'!=_0x380815['key'])return;const _0x4af49a=Be(_0x51c5d3);return'newValue'==_0x4af49a?{'type':'format','content':o(_0x46f044,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4af49a?{'type':'format','content':o(_0x46f044,'*Split:*\x20list\x20item')}:_0x4a773a;}),_0x2a43a8['model']['document']['registerPostFixer'](_0x4aef08=>this['listItemIdFixer'](_0x4aef08)),_0x2a43a8['model']['document']['registerPostFixer'](_0x18f49a=>this['noTrackChangesFixer'](_0x18f49a)),_0x2a43a8['model']['document']['on']('change:data',(_0x2b706c,_0x45ff06)=>{if(_0x45ff06['isUndo']||!_0x45ff06['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x503088){if(_0x503088['batch']['isUndo']||!_0x503088['batch']['isLocal'])return!0x1;let _0x244fdf=!0x1;const _0x23c1f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e0dc6=>_0x3e0dc6['data']&&'listItemId'==_0x3e0dc6['data']['key'])['filter'](_0x50898c=>_0x50898c['data']['newValue']&&_0x50898c['data']['oldValue']);for(const _0x43879b of _0x23c1f6)Be(_0x43879b)||(_0x503088['removeMarker'](_0x43879b['getFirstMarker']()),_0x244fdf=!0x0);return _0x244fdf;}['noTrackChangesFixer'](_0x440b1e){if(_0x440b1e['batch']['isUndo']||!_0x440b1e['batch']['isLocal'])return!0x1;const _0x330282=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x330282['trackChangesCommand']['value'])return!0x1;let _0x259972=!0x1;const _0x4d641c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3bdfe6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xc4e584=>'attribute'==_0xc4e584['type'])['filter'](_0x3dc2b9=>_0x4d641c['includes'](_0x3dc2b9['attributeKey']));if(0x0==_0x3bdfe6['length'])return _0x259972;for(const _0x27a42d of _0x3bdfe6){const _0x12e44a=_0x330282['_findSuggestions'](_0x27a42d['range'],'attribute')['filter'](_0x154da2=>!_0x154da2['meta']['isNextTo'])['map'](_0x3e3fa0=>_0x3e3fa0['suggestion'])['filter'](_0x3aaf34=>{const _0x52405d=_0x330282['_getAttributeKey'](_0x3aaf34);return _0x4d641c['includes'](_0x52405d);});if(_0x12e44a['length']){for(const _0x13056b of _0x12e44a)_0x440b1e['removeMarker'](_0x13056b['getFirstMarker']());_0x259972=!0x0;}}return _0x259972;}['assureChains'](){const _0x4711e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a2ada=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5ad47d;const _0x23bb4c=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c8288=>{if(_0x1c8288['data']['oldRange']||!_0x1c8288['data']['newRange'])return null;if(!_0x1c8288['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2fb4b0}=_0x4711e2['_splitMarkerName'](_0x1c8288['name']);if(!_0x4711e2['hasSuggestion'](_0x2fb4b0))return null;const _0x4f41b2=_0x4711e2['getSuggestion'](_0x2fb4b0);return _0x1a2ada['includes'](_0x4f41b2['data']['key']);})['map'](_0x47169a=>{const {id:_0x297761}=_0x4711e2['_splitMarkerName'](_0x47169a['name']),_0x4014ba=_0x4711e2['getSuggestion'](_0x297761);return _0x5ad47d=_0x4014ba['attributes']['groupId'],_0x4014ba['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x23bb4c['size'])return;const _0x483bb1=_0x4711e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d3c35=>'attribute'==_0x2d3c35['type']&&_0x2d3c35['data']&&_0x1a2ada['includes'](_0x2d3c35['data']['key'])&&_0x2d3c35['attributes']['groupId']!=_0x5ad47d)['map'](_0x33c727=>({'listItem':_0x33c727['getFirstRange']()['start']['nodeAfter'],'groupId':_0x33c727['attributes']['groupId']})),_0x133b89=new Set();for(const {groupId:_0x401bc0,listItem:_0x55cf4f}of _0x483bb1)_0x23bb4c['has'](_0x55cf4f)&&_0x133b89['add'](_0x401bc0);for(const _0xe668f9 of _0x4711e2['getSuggestions']())_0x133b89['has'](_0xe668f9['attributes']['groupId'])&&_0xe668f9['setAttribute']('groupId',_0x5ad47d);}['_supportLegacySuggestions'](){const _0x422920=this['editor'],_0x7e7a6b=_0x422920['locale'],_0x5ef068=_0x422920['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5ef068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xbf5aa6,_0x3fe52f){const _0x195a73=[];for(let _0x26012d of _0xbf5aa6)_0x26012d['start']['nodeAfter']===_0x26012d['end']['parent']&&(_0x26012d=_0x422920['model']['createRange'](_0x422920['model']['createPositionAt'](_0x26012d['start']['nodeAfter'],0x0))),_0x195a73['push'](_0x26012d);_0x422920['model']['change'](_0x3c481d=>{const _0x1af025=_0x422920['model']['document']['selection'],_0x113180=Array['from'](_0x1af025['getRanges']())['map'](_0x3de5b9=>_0x284d24['fromRange'](_0x3de5b9));_0x3c481d['setSelection'](_0x195a73),_0x422920['commands']['get'](_0x3fe52f['commandName'])['refresh'](),_0x3fe52f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x422920['execute'](_0x3fe52f['commandName'],..._0x3fe52f['commandParams']),_0x3c481d['setSelection'](_0x113180);for(const _0x7570a7 of _0x113180)_0x7570a7['detach']();});}),_0x5ef068['descriptionFactory']['registerElementLabel'](function(_0x337308){const _0x3e42cd=!_0x422920['model']['schema']['isObject'](_0x337308),_0x52a06f=_0x337308['previousSibling'],_0x108652=_0x337308['nextSibling'],_0x3a8a70=_0x337308['getAttribute']('listItemId'),_0x4b5c26=!_0x52a06f||_0x52a06f['getAttribute']('listItemId')!==_0x3a8a70,_0xd3cb68=!_0x108652||_0x108652['getAttribute']('listItemId')!==_0x3a8a70;return _0x3e42cd&&Boolean(_0x3a8a70)&&_0x4b5c26&&_0xd3cb68;},_0x202102=>o(_0x7e7a6b,'ELEMENT_LIST_ITEM',_0x202102));}['_registerLegacyDescription'](){const _0x3f833c=this['editor'],_0x4d02de=_0x3f833c['locale'];function _0x75f8b7(_0x439fdc){const _0x2292ac=_0x3f833c['commands']['get']('bulletedList')['value'],_0x2f4bd4=_0x3f833c['commands']['get']('numberedList')['value'];return'numberedList'===_0x439fdc?_0x2292ac:_0x2f4bd4;}_0x3f833c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x57f549){if('formatBlock'!=_0x57f549['type'])return;const {data:_0x1fe45d}=_0x57f549;if(!_0x1fe45d)return;let _0xd53abe,_0x2bc9d5,_0x4694d6,_0xa4a312;switch(_0x1fe45d['commandName']){case'bulletedList':_0x4694d6=_0x1fe45d['commandParams'][0x0]['forceValue'],_0xa4a312=_0x75f8b7(_0x1fe45d['commandName']),_0xd53abe=_0x4694d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa4a312&&_0x3f833c['config']['get']('list.multiBlock')||(_0xd53abe='*Change\x20to:*\x20%0'),_0x2bc9d5={'type':'format','content':o(_0x4d02de,_0xd53abe,o(_0x4d02de,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4694d6=_0x1fe45d['commandParams'][0x0]['forceValue'],_0xa4a312=_0x75f8b7(_0x1fe45d['commandName']),_0xd53abe=_0x4694d6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa4a312&&_0x3f833c['config']['get']('list.multiBlock')||(_0xd53abe='*Change\x20to:*\x20%0'),_0x2bc9d5={'type':'format','content':o(_0x4d02de,_0xd53abe,o(_0x4d02de,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd53abe='*Indent:*\x20%0',_0x2bc9d5={'type':'format','content':o(_0x4d02de,_0xd53abe,o(_0x4d02de,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd53abe=function(_0x30a919){const _0x106347=_0x30a919['getFirstRange']();let _0x10f60a=_0x106347['start']['nodeAfter'];for(;_0x10f60a&&_0x106347['containsItem'](_0x10f60a);){if(_0x10f60a['getAttribute']('listIndent')>0x0)return!0x1;_0x10f60a=_0x10f60a['nextSibling'];}return!0x0;}(_0x57f549)?o(_0x4d02de,'*Format:*\x20remove\x20from\x20%0',o(_0x4d02de,function(_0x2ea482){return'ELEMENT_'+_0x2ea482['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x57f549))):o(_0x4d02de,'*Outdent:*\x20%0',o(_0x4d02de,'ELEMENT_LIST_ITEM')),_0x2bc9d5={'type':'format','content':_0xd53abe};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1fe45d['multipleBlocks']&&(_0xd53abe='*Merge:*\x20%0',_0x2bc9d5={'type':'deletion','content':o(_0x4d02de,_0xd53abe,o(_0x4d02de,'ELEMENT_LIST_ITEM'))});}return _0x2bc9d5;});}}function Be(_0x2d40a3){let _0x5ca495=_0x2d40a3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ca495;){const _0x1137bd=_0x5ca495['getAttribute']('listItemId');if(!_0x1137bd)return!0x1;if(_0x1137bd==_0x2d40a3['data']['newValue'])return'newValue';if(_0x1137bd==_0x2d40a3['data']['oldValue'])return'oldValue';_0x5ca495=_0x5ca495['previousSibling'];}return!0x1;}class Z extends _0x262bfa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c5f08=this['editor']['config']['get']('list.properties'),_0x5d9173=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5f08['styles']&&(_0x5d9173['enableDefaultAttributesIntegration']('listStyle'),_0x5d9173['registerBlockAttribute']('listStyle')),_0x5c5f08['reversed']&&(_0x5d9173['enableDefaultAttributesIntegration']('listReversed'),_0x5d9173['registerBlockAttribute']('listReversed')),_0x5c5f08['startIndex']&&(_0x5d9173['enableDefaultAttributesIntegration']('listStart'),_0x5d9173['registerBlockAttribute']('listStart'));const _0x4062ac={'type':'format','content':''};_0x5d9173['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x357feb=this['editor']['locale'];_0x5d9173['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x357feb,'FORMAT_LIST_REVERSED')),_0x5d9173['descriptionFactory']['registerDescriptionCallback'](_0x4fe8f2=>{const {data:_0xbc1380}=_0x4fe8f2;if(_0xbc1380&&'listReversed'==_0xbc1380['key'])return null==_0xbc1380['newValue']||0x0==_0xbc1380['newValue']&&null==_0xbc1380['oldValue']?_0x4062ac:void 0x0;}),_0x5d9173['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x357feb,'FORMAT_LIST_START')),_0x5d9173['descriptionFactory']['registerDescriptionCallback'](_0x1c5998=>{const {data:_0x25b04b}=_0x1c5998;if(_0x25b04b&&'listStart'==_0x25b04b['key'])return null==_0x25b04b['newValue']||0x1==_0x25b04b['newValue']&&null==_0x25b04b['oldValue']?_0x4062ac:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x59d9c3=>{if(_0x59d9c3['batch']['isUndo'])return!0x1;let _0x10d312=!0x1;const _0x56fbd4=_0x5d9173['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11b333=>{const _0x59fc52=_0x5d9173['_getAttributeKey'](_0x11b333);return'listStart'==_0x59fc52||'listReversed'==_0x59fc52;});for(const _0x5f50f6 of _0x56fbd4){const _0x1a9003=_0x5f50f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1a9003||'customNumbered'==_0x1a9003)continue;_0x5d9173['_findSuggestions'](_0x5f50f6['getFirstRange'](),'attribute')['find'](_0x5e2fd1=>'listType'==_0x5d9173['_getAttributeKey'](_0x5e2fd1['suggestion']))||(_0x59d9c3['removeMarker'](_0x5f50f6['getFirstMarker']()),_0x10d312=!0x0);}return _0x10d312;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4ac5fc){const _0x580f95=this['editor']['locale'],{data:_0xf8315f}=_0x4ac5fc,_0x3e84bd={'type':'format','content':''};if(!_0xf8315f||'listStyle'!=_0xf8315f['key'])return;if(!_0xf8315f['oldValue'])return'default'==_0xf8315f['newValue']?_0x3e84bd:{'type':'format','content':''+o(_0x580f95,'*Set\x20format:*\x20%0',o(_0x580f95,this['_getTranslationKeyForListStyle'](_0xf8315f['newValue'])))};if(!_0xf8315f['newValue']){if('default'==_0xf8315f['oldValue'])return _0x3e84bd;let _0x1c65db=_0x4ac5fc['head'];for(;_0x1c65db;){if(_0x1c65db['data']&&'listType'==_0x1c65db['data']['key']&&_0x1c65db['data']['newValue'])return _0x3e84bd;_0x1c65db=_0x1c65db['next'];}return{'type':'format','content':''+o(_0x580f95,'*Remove\x20format:*\x20%0',o(_0x580f95,this['_getTranslationKeyForListStyle'](_0xf8315f['oldValue'])))};}if('default'!=_0xf8315f['newValue'])return{'type':'format','content':''+o(_0x580f95,'*Set\x20format:*\x20%0',o(_0x580f95,this['_getTranslationKeyForListStyle'](_0xf8315f['newValue'])))};let _0x204633=_0x4ac5fc['head'];for(;_0x204633;){if(_0x204633['data']&&'listType'==_0x204633['data']['key']&&_0x204633['data']['newValue']&&_0x204633['data']['oldValue'])return _0x3e84bd;_0x204633=_0x204633['next'];}return{'type':'format','content':o(_0x580f95,'*Set\x20format:*\x20%0',o(_0x580f95,'ELEMENT_'+_0x4ac5fc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x31898a=this['editor'],_0x4070ed=_0x31898a['locale'];_0x31898a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58179d=>{if('formatBlock'!=_0x58179d['type'])return;const {data:_0x156b9f}=_0x58179d;if(!_0x156b9f)return;let _0x20f0d8,_0x45ea25;switch(_0x156b9f['commandName']){case'listStyle':_0x20f0d8='*Change\x20to:*\x20%0',_0x45ea25={'type':'format','content':o(_0x4070ed,_0x20f0d8,o(_0x4070ed,this['_getTranslationKeyForListStyle'](_0x156b9f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x20f0d8=_0x156b9f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45ea25={'type':'format','content':o(_0x4070ed,_0x20f0d8)};break;case'listStart':_0x20f0d8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45ea25={'type':'format','content':o(_0x4070ed,_0x20f0d8,_0x156b9f['commandParams'][0x0]['startIndex'])};}return _0x45ea25;});}['_getTranslationKeyForListStyle'](_0x5a4095){return'ELEMENT_'+function(_0x1df700){if(Re['includes'](_0x1df700))return'bulleted';if(De['includes'](_0x1df700))return'numbered';return null;}(_0x5a4095)['toUpperCase']()+'_LIST_'+_0x5a4095['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x262bfa{['afterInit'](){const _0x541c03=this['editor'];_0x541c03['commands']['get']('emoji')&&_0x541c03['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x262bfa{static get['requires'](){return[_0x1b945f];}['init'](){const _0x414f02=this['editor'],_0x12cc71=_0x414f02['plugins']['get']('TrackChangesEditing'),_0x651fb6=_0x414f02['commands']['get']('enter');_0x12cc71['enableCommand']('enter',()=>{_0x414f02['model']['change'](_0xa143a2=>{const _0x382797=_0x414f02['model']['document']['selection'],_0x5ca4b5=_0x382797['getFirstPosition'](),_0x35b0e3=_0x284d24['fromRange'](_0x382797['getFirstRange']());if(_0x651fb6['enterBlock'](_0xa143a2)){const _0x5cf007=_0x414f02['model']['createPositionAt'](_0x5ca4b5['parent']['nextSibling'],0x0),_0x4dab9b=_0xa143a2['createRange'](_0x5ca4b5,_0x5cf007);_0x12cc71['markInsertion'](_0x4dab9b);}else _0xa143a2['setSelection'](_0xa143a2['createRange'](_0x35b0e3['end']));_0x35b0e3['detach'](),_0x651fb6['fire']('afterExecute',{'writer':_0xa143a2});});}),_0x414f02['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x414f02,'split'),{'priority':'high'}),_0x414f02['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36d0a4,_0x32d043,_0x14fe14)=>{const _0x14a805=_0x14fe14['mapper']['markerNameToElements'](_0x32d043['markerName']);if(_0x14a805){for(const _0x162158 of _0x14a805)_0x162158['hasClass']('ck-suggestion-marker-split')&&(_0x14fe14['mapper']['unbindElementFromMarkerName'](_0x162158,_0x32d043['markerName']),_0x14fe14['writer']['remove'](_0x162158));}},{'priority':'high'}),_0x414f02['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a37dd,_0x185f01,_0x48b9e5)=>{_0x48b9e5['options']['showSuggestionHighlights']&&Ve(_0x414f02,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a37dd,_0x185f01,_0x48b9e5);},{'priority':'high'});}}class it extends _0x262bfa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5187ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x5187ad['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5187ad['enableCommand']('findNext'),_0x5187ad['enableCommand']('findPrevious'),_0x5187ad['enableCommand']('replace'),_0x5187ad['enableCommand']('replaceAll');}['handleFindCommand'](_0x35e70c,_0x36b8e5,_0x3395b9={}){const _0x28d59f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x35e70c(_0xa96d65=>{let _0x20c547=('string'==typeof _0x36b8e5?_0x28d59f['findByTextCallback'](_0x36b8e5,_0x3395b9):_0x36b8e5)(_0xa96d65);Array['isArray'](_0x20c547)&&(_0x20c547={'results':_0x20c547,'searchText':'string'==typeof _0x36b8e5?_0x36b8e5:''});const _0x71a35c=_0x20c547['results']['filter'](_0x30c9e8=>!0x1===this['_isInDeletionRange'](_0x30c9e8,_0xa96d65['item']));return{..._0x20c547,'results':_0x71a35c};},_0x3395b9);}['_isInDeletionRange'](_0x1890e3,_0x1081e9){const _0x41931f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1081e9,_0x1890e3['start']),this['editor']['model']['createPositionAt'](_0x1081e9,_0x1890e3['end']));for(const _0x55448b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x41931f['getIntersection'](_0x55448b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x262bfa{['afterInit'](){const _0x14b797=this['editor']['locale'],_0x391d2c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4966a5,commandName:_0x3394b4}of eo)this['editor']['plugins']['has'](_0x4966a5)&&(_0x391d2c['enableDefaultAttributesIntegration'](_0x3394b4),_0x391d2c['registerInlineAttribute'](_0x3394b4));_0x391d2c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x14b797,'FORMAT_FONT_SIZE')),_0x391d2c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x14b797,'FORMAT_FONT_FAMILY')),_0x391d2c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x14b797,'FORMAT_FONT_COLOR')),_0x391d2c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x14b797,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49520e=this['editor'],_0x2ca6b2=_0x49520e['locale'];_0x49520e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b88c7=>{const _0x3a1632=_0x2ca6b2['t'];if('formatInline'!=_0x1b88c7['type'])return;const {data:_0x1bc35d}=_0x1b88c7;if(null!=_0x1bc35d){if('fontSize'==_0x1bc35d['commandName']){const _0x55d57a=_0x1bc35d['commandParams'][0x0]['value'];if(_0x55d57a){const _0x50f11c=_0x3a1632(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f2aea=>_0x4f2aea['model']==_0x55d57a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ca6b2,'*Set\x20font\x20size:*\x20%0',_0x50f11c)};}return{'type':'format','content':o(_0x2ca6b2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1bc35d['commandName']){const _0x30e402=_0x1bc35d['commandParams'][0x0]['value'];return _0x30e402?{'type':'format','content':o(_0x2ca6b2,'*Set\x20font\x20family:*\x20%0',_0x30e402)}:{'type':'format','content':o(_0x2ca6b2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1bc35d['commandName']){const _0x1b1f86=_0x1bc35d['commandParams'][0x0]['value'];if(_0x1b1f86){const _0x1e7c04=_0x355bdd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x395c6e=>_0x395c6e['model']==_0x1b1f86);let _0x555450=_0x1b1f86,_0x2413bd='';return _0x1e7c04&&(_0x555450=_0x1e7c04['label'],_0x2413bd=_0x3a1632(_0x555450)['toLowerCase']()),{'type':'format','content':o(_0x2ca6b2,'*Set\x20font\x20color:*\x20%0',_0x2413bd)['trim'](),'color':{'value':_0x1b1f86,'title':_0x2413bd||_0x555450}};}return{'type':'format','content':o(_0x2ca6b2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1bc35d['commandName']){const _0x4bcfda=_0x1bc35d['commandParams'][0x0]['value'];if(_0x4bcfda){const _0x32836f=_0x355bdd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41faaa=>_0x41faaa['model']==_0x4bcfda);let _0x2081d8=_0x4bcfda,_0x45f6a1='';return _0x32836f&&(_0x2081d8=_0x32836f['label'],_0x45f6a1=_0x3a1632(_0x2081d8)['toLowerCase']()),{'type':'format','content':o(_0x2ca6b2,'*Set\x20font\x20background\x20color:*\x20%0',_0x45f6a1)['trim'](),'color':{'value':_0x4bcfda,'title':_0x45f6a1||_0x2081d8}};}return{'type':'format','content':o(_0x2ca6b2,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x262bfa{['afterInit'](){const {plugins:_0x16779e}=this['editor'];_0x16779e['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x16779e['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x18f159,plugins:_0x35e3a5,commands:_0x5cf767}=this['editor'],_0x2cec2b=_0x35e3a5['get']('TrackChangesEditing');_0x5cf767['get']('footnotesStyle')&&_0x2cec2b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5cf767['get']('footnotesStart')&&_0x2cec2b['enableDefaultAttributesIntegration']('footnotesStart'),_0x2cec2b['registerBlockAttribute']('footnotesListStyle'),_0x2cec2b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x18f159,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2cec2b['registerBlockAttribute']('footnotesListStart'),_0x2cec2b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x18f159,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1fbe9c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1e5037,commands:_0x55ef5f}=this['editor'];_0x55ef5f['get']('insertFootnote')&&_0x1fbe9c['enableCommand']('insertFootnote'),_0x1fbe9c['descriptionFactory']['registerElementLabel']('footnoteRef',_0xf67168=>o(_0x1e5037,'ELEMENT_FOOTNOTE_REF',_0xf67168)),_0x1fbe9c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1c8b8a=>o(_0x1e5037,'ELEMENT_FOOTNOTE_DEFINITION',_0x1c8b8a)),_0x1fbe9c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x54b395=>o(_0x1e5037,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x54b395));}}class ot extends _0x262bfa{['afterInit'](){const _0x14bc0c=this['editor'],_0x2239fb=_0x14bc0c['plugins']['get']('TrackChangesEditing'),_0x2e2599=_0x14bc0c['commands']['get']('copyFormat'),_0x370bf8=_0x14bc0c['commands']['get']('pasteFormat');_0x2e2599&&_0x370bf8&&(_0x2239fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x2239fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3215c1=this['editor'],_0x4dcf1f=_0x3215c1['locale'];_0x3215c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3335af=>{if('formatBlock'!=_0x3335af['type']&&'formatInline'!=_0x3335af['type'])return;const {data:_0x35abee}=_0x3335af;if(_0x35abee&&'pasteFormat'===_0x35abee['commandName']){const _0x2825c1=[],_0x574b92=_0x35abee['commandParams'][0x0];for(const [_0x5093bf,_0x9d4e7e]of Object['entries'](_0x574b92))_0x2825c1['push'](ro(_0x3215c1,_0x5093bf,_0x9d4e7e));return _0x2825c1['length']?{'type':'format','content':o(_0x4dcf1f,'*Set\x20format\x20to:*\x20%0',_0x2825c1['join'](',\x20'))}:{'type':'format','content':o(_0x4dcf1f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xf92f64,_0x24480f,_0x3c804b){const _0x2c3769=_0xf92f64['locale']['t'],_0x473b77=_0x24480f['split'](/(?=[A-Z])/)['join']('\x20'),_0x2f710c=_0x2c3769(_0x473b77['charAt'](0x0)['toUpperCase']()+_0x473b77['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3c804b)return _0x2f710c;if('fontColor'===_0x24480f||'fontBackgroundColor'===_0x24480f){const _0x4a4d67=_0x355bdd(_0xf92f64['config']['get']('fontColor.colors'))['find'](_0x546f1a=>_0x546f1a['model']==_0x3c804b);return _0x2f710c+'\x20('+(_0x4a4d67?_0x2c3769(_0x4a4d67['label'])['toLowerCase']():_0x3c804b)+')';}if('fontSize'===_0x24480f&&isNaN(parseFloat(_0x3c804b))){const _0x6e9b35=_0xf92f64['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xf92f64['config']['get']('fontSize.options'))['find'](_0x3733e6=>_0x3733e6['model']==_0x3c804b);return _0x2f710c+'\x20('+(_0x6e9b35?_0x2c3769(_0x6e9b35['title'])['toLowerCase']():_0x3c804b)+')';}return _0x2f710c+'\x20('+_0x3c804b+')';}class rt extends _0x262bfa{['_headingOptions'];['afterInit'](){const _0x158e0d=this['editor'];if(!_0x158e0d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x158e0d['config']['get']('heading.options');const _0x4ef73f=_0x158e0d['locale'],_0x50798e=_0x158e0d['plugins']['get']('TrackChangesEditing');_0x50798e['enableDefaultAttributesIntegration']('heading');for(const _0x2bf1f9 of this['_headingOptions'])'paragraph'!=_0x2bf1f9['model']&&_0x50798e['descriptionFactory']['registerElementLabel'](_0x2bf1f9['model'],_0x509908=>{const _0x1fc361=this['_getHeadingLevel'](_0x2bf1f9['model']);return null!==_0x1fc361?_0x369850(_0x509908,_0x1fc361):_0x11ebf5(_0x509908,_0x2bf1f9['title']);});function _0x369850(_0x4618ba,_0x43114e){return o(_0x4ef73f,'ELEMENT_HEADING',[_0x4618ba,_0x43114e]);}function _0x11ebf5(_0x4bfc2e,_0x2b837f){return o(_0x4ef73f,'ELEMENT_HEADING_CUSTOM',[_0x4bfc2e,_0x2b837f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40dc0a=this['editor'],_0x37f96c=_0x40dc0a['locale'];function _0x3e1ed5(_0x3e9d37,_0x38fd59){return o(_0x37f96c,'ELEMENT_HEADING_CUSTOM',[_0x3e9d37,_0x38fd59]);}_0x40dc0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d097c=>{if('formatBlock'!=_0x5d097c['type'])return;const {data:_0x3acd3a}=_0x5d097c;if(_0x3acd3a&&'heading'==_0x3acd3a['commandName']){const _0x1ee314=_0x3acd3a['commandParams'][0x0]['value'],_0x5b9a8e=this['_getHeadingLevel'](_0x1ee314);if(null!==_0x5b9a8e)return{'type':'format','content':o(_0x37f96c,'*Change\x20to:*\x20%0',(_0x3100b4=0x1,_0x2c9d8b=_0x5b9a8e,o(_0x37f96c,'ELEMENT_HEADING',[_0x3100b4,_0x2c9d8b])))};const _0x5c51ac=this['_headingOptions']['find'](_0x4dceba=>_0x4dceba['model']===_0x1ee314)['title'];return{'type':'format','content':o(_0x37f96c,'*Change\x20to:*\x20%0',_0x3e1ed5(0x1,_0x5c51ac))};}var _0x3100b4,_0x2c9d8b;});}['_getHeadingLevel'](_0x4b12b7){const _0x52537f=_0x4b12b7['match'](/^heading(\d+)/);if(_0x52537f)return _0x52537f[0x1];const _0x2279c8=this['_headingOptions']?.['find'](_0x25f2e9=>_0x25f2e9['model']==_0x4b12b7);if(_0x2279c8&&_0x2279c8['view']){const _0x4251dc=_0x2279c8['view'],_0x651771=(_0x4251dc['name']??_0x4251dc)['match'](/^h(\d+)/);if(_0x651771)return _0x651771[0x1];}return null;}}class at extends _0x262bfa{['afterInit'](){const _0x53f54c=this['editor'];if(!_0x53f54c['plugins']['has']('HighlightEditing'))return;const _0x490f3f=_0x53f54c['plugins']['get']('TrackChangesEditing'),_0x5459f6=_0x53f54c['locale'];_0x490f3f['enableDefaultAttributesIntegration']('highlight'),_0x490f3f['registerInlineAttribute']('highlight'),_0x490f3f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5459f6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb55f32=this['editor'],_0x474546=_0xb55f32['locale'];_0xb55f32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3921d2=>{if('formatInline'!=_0x3921d2['type'])return;const {data:_0x112d9c}=_0x3921d2;if(_0x112d9c&&'highlight'==_0x112d9c['commandName']){const _0x1ea024=_0x474546['t'],_0x4f8574=_0x112d9c['commandParams'][0x0]['value'];if(_0x4f8574){const _0x12e664=_0xb55f32['config']['get']('highlight.options')['find'](_0x4e2ece=>_0x4e2ece['model']==_0x4f8574),_0x43d5bf=_0x1ea024(_0x12e664['title'])['toLowerCase']();return{'type':'format','content':o(_0x474546,'*Set\x20highlight:*\x20%0',_0x43d5bf),'color':{'value':_0x12e664['color'],'title':_0x12e664['title']}};}return{'type':'format','content':o(_0x474546,'*Remove\x20highlight*',o(_0x474546,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x262bfa{['afterInit'](){const _0x50f032=this['editor'];if(!_0x50f032['plugins']['has']('HorizontalLineEditing'))return;_0x50f032['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x26cb82=_0x50f032['plugins']['get']('TrackChangesEditing'),_0x5d0926=_0x50f032['locale'];_0x26cb82['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4455c0=>o(_0x5d0926,'ELEMENT_HORIZONTAL_LINE',_0x4455c0)),_0x50f032['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1c5d41,{writer:_0x20f7a8,options:_0x5050f8})=>{if(!_0x5050f8['showSuggestionHighlights'])return null;const _0x19092e=_0x20f7a8['createContainerElement']('div'),_0x195d6e=_0x20f7a8['createEmptyElement']('hr');return _0x20f7a8['addClass']('ck-horizontal-line',_0x19092e),_0x20f7a8['insert'](_0x20f7a8['createPositionAt'](_0x19092e,0x0),_0x195d6e),_0x19092e;},'converterPriority':'high'});}}class ut extends _0x262bfa{['afterInit'](){const _0x59ef55=this['editor'];if(!_0x59ef55['plugins']['has']('HtmlEmbed'))return;const _0x52e918=_0x59ef55['plugins']['get']('TrackChangesEditing'),_0x45b578=_0x59ef55['locale'];_0x52e918['descriptionFactory']['registerElementLabel']('rawHtml',_0x37acde=>o(_0x45b578,'ELEMENT_HTML_EMBED',_0x37acde)),_0x52e918['enableDefaultAttributesIntegration']('htmlEmbed'),_0x52e918['registerBlockAttribute']('value'),_0x52e918['descriptionFactory']['registerDescriptionCallback'](_0x2b01fb=>{if('attribute'!=_0x2b01fb['type'])return;const {data:_0x364f68}=_0x2b01fb;if(_0x364f68&&'value'==_0x364f68['key']&&_0x2b01fb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x29899b=o(_0x45b578,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45b578,'*Change\x20%0\x20content*',_0x29899b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3aae1d=this['editor'],_0x173b7f=_0x3aae1d['locale'];_0x3aae1d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x514704=>{if('formatBlock'!=_0x514704['type'])return;const {data:_0x1eef91}=_0x514704;if(_0x1eef91&&'htmlEmbed'==_0x1eef91['commandName']){const _0x1d2b0e=o(_0x173b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x173b7f,'*Change\x20%0\x20content*',_0x1d2b0e)};}});}}class ft extends _0x262bfa{['afterInit'](){const _0x38c36a=this['editor'];if(!_0x38c36a['plugins']['has']('ImageEditing'))return;const _0x5b0299=_0x38c36a['plugins']['get']('TrackChangesEditing'),_0x5d3140=_0x38c36a['plugins']['get']('ImageUtils'),_0x3878f8=_0x38c36a['locale'];_0x5b0299['enableCommand']('insertImage'),_0x5b0299['descriptionFactory']['registerElementLabel']('imageBlock',_0x3f7f4d=>o(_0x3878f8,'ELEMENT_IMAGE',_0x3f7f4d)),_0x5b0299['descriptionFactory']['registerElementLabel']('imageInline',_0x599299=>o(_0x3878f8,'ELEMENT_INLINE_IMAGE',_0x599299)),_0x5b0299['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3878f8,'ELEMENT_CAPTION')),_0x38c36a['plugins']['has']('ImageUploadEditing')&&_0x5b0299['enableCommand']('uploadImage'),_0x38c36a['plugins']['has']('ImageBlockEditing')&&_0x38c36a['plugins']['has']('ImageInlineEditing')&&(_0x5b0299['enableCommand']('imageTypeInline',(_0x2952e6,_0x27dbf1)=>{const _0xb42a17=_0x5d3140['getClosestSelectedImageElement'](_0x38c36a['model']['document']['selection']);_0x38c36a['model']['change'](()=>{_0x5b0299['markBlockFormat'](_0xb42a17,{'commandName':'imageTypeInline','commandParams':[_0x27dbf1]},[],'convertBlockImageToInline');});}),_0x5b0299['enableCommand']('imageTypeBlock',(_0x1c3613,_0x3cae2d)=>{_0x38c36a['model']['change'](_0x34c284=>{let _0x276fb1=_0x5d3140['getClosestSelectedImageElement'](_0x38c36a['model']['document']['selection']),_0x47edca=_0x34c284['createRangeOn'](_0x276fb1);const _0x4d69c7=_0x23561d['fromPosition'](_0x47edca['start'],'toPrevious'),_0x2630b5=_0x23561d['fromPosition'](_0x47edca['end'],'toNext');_0x5b0299['forceDefaultExecution'](()=>_0x1c3613(_0x3cae2d)),_0x276fb1=_0x5d3140['getClosestSelectedImageElement'](_0x38c36a['model']['document']['selection']),_0x47edca=_0x34c284['createRangeOn'](_0x276fb1);const _0x4cb5e0=_0x34c284['createRange'](_0x4d69c7,_0x2630b5);_0x4d69c7['detach'](),_0x2630b5['detach'](),_0x5b0299['markBlockFormat'](_0x276fb1,{'commandName':'imageTypeInline','commandParams':[_0x3cae2d]},[],'convertInlineImageToBlock'),_0x4cb5e0['start']['isBefore'](_0x47edca['start'])&&_0x5b0299['markInsertion'](_0x34c284['createRange'](_0x4cb5e0['start'],_0x47edca['start']),'convertInlineImageToBlock'),_0x47edca['end']['isBefore'](_0x4cb5e0['end'])&&_0x5b0299['markInsertion'](_0x34c284['createRange'](_0x47edca['end'],_0x4cb5e0['end']),'convertInlineImageToBlock');});}),_0x5b0299['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5b0299['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5b0299['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5b0299['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5b0299['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5b0299['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x544d57])=>{const _0x4a6185=_0x5b0299['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5a8c3c=_0x544d57['start'],_0x1b468f=_0x544d57['end'];const _0x1d782c=_0x38c36a['model']['schema']['getNearestSelectionRange'](_0x5a8c3c,'backward'),_0x21587e=_0x38c36a['model']['schema']['getNearestSelectionRange'](_0x1b468f,'forward');_0x1d782c['isCollapsed']&&(_0x5a8c3c=_0x1d782c['start']),_0x21587e['isCollapsed']&&(_0x1b468f=_0x21587e['end']),_0x4a6185([_0x38c36a['model']['createRange'](_0x5a8c3c,_0x1b468f)]);}),_0x5b0299['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5c599f),_0x5b0299['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5c599f)),_0x38c36a['plugins']['has']('ImageCaptionEditing')&&(_0x5b0299['enableCommand']('toggleImageCaption',(_0x4aec50,_0xf696c7)=>{const _0x1d3eeb=_0x38c36a['plugins']['get']('ImageCaptionUtils');let _0x51790c=_0x5d3140['getClosestSelectedImageElement'](_0x38c36a['model']['document']['selection']),_0x122a73=_0x1d3eeb['getCaptionFromImageModelElement'](_0x51790c);_0x38c36a['model']['change'](()=>{if(_0x122a73)return void _0x5b0299['markDeletion'](_0x38c36a['model']['createRangeOn'](_0x122a73));const _0x431c0d=_0x5d3140['isBlockImage'](_0x51790c);_0x4aec50(_0xf696c7),_0x51790c=_0x5d3140['getClosestSelectedImageElement'](_0x38c36a['model']['document']['selection']),_0x122a73=_0x1d3eeb['getCaptionFromImageModelElement'](_0x51790c),_0x5b0299['markInsertion'](_0x38c36a['model']['createRangeOn'](_0x122a73),_0x431c0d?null:'imageCaption');});}),_0x5b0299['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5c599f));const _0x59e293=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x414bf2(_0x342d84,_0x469433){const _0x22a32b=_0x59e293['findIndex'](({type:_0x3ea476,subType:_0x395879})=>_0x342d84['type']==_0x3ea476&&_0x342d84['subType']==_0x395879),_0x3a7351=_0x59e293['findIndex'](({type:_0x4310da,subType:_0x44bef9})=>_0x469433['type']==_0x4310da&&_0x469433['subType']==_0x44bef9);if(_0x22a32b<0x0||_0x3a7351<0x0)return!0x1;const _0x13bc56=_0x342d84['getFirstRange'](),_0x5b02e9=_0x469433['getFirstRange']();if((0x0==_0x22a32b||0x1==_0x22a32b)&&0x2==_0x3a7351&&_0x13bc56['isIntersecting'](_0x5b02e9))return!0x0;if(0x2==_0x22a32b&&0x3==_0x3a7351){const _0x4be1da=_0x5b0299['_findSuggestions'](_0x13bc56,'insertion')['filter'](({suggestion:_0x518221,meta:_0x3a9b8c})=>_0x3a9b8c['isOwn']&&'convertInlineImageToBlock'==_0x518221['subType']);if(_0x4be1da['length']>0x1&&_0x5b02e9['end']['isEqual'](_0x13bc56['start']))return!0x0;if(0x1==_0x4be1da['length']&&(_0x13bc56['start']['isEqual'](_0x5b02e9['end'])||_0x13bc56['end']['isEqual'](_0x5b02e9['start'])))return!0x0;}if(0x3==_0x22a32b&&0x3==_0x3a7351&&_0x13bc56['start']['isBefore'](_0x5b02e9['start'])){const _0x2bf9ac=_0x13bc56['end']['nodeAfter'],_0x51c04a=_0x5b02e9['start']['nodeBefore'];return _0x5d3140['isBlockImage'](_0x2bf9ac)&&_0x2bf9ac===_0x51c04a;}return!0x1;}function _0x5c599f(_0x3e4556,_0x3a069a){return _0x414bf2(_0x3e4556,_0x3a069a)?[_0x3e4556,_0x3a069a]:_0x414bf2(_0x3a069a,_0x3e4556)?[_0x3a069a,_0x3e4556]:null;}_0x38c36a['plugins']['has']('ImageResize')&&(_0x5b0299['enableDefaultAttributesIntegration']('resizeImage'),_0x5b0299['registerBlockAttribute']('resizedWidth'),_0x5b0299['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3878f8,'FORMAT_IMAGE_SIZE'))),_0x38c36a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5b0299['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b0299['registerBlockAttribute']('alt')),_0x38c36a['plugins']['has']('PictureEditing')&&(_0x5b0299['registerBlockAttribute']('sources'),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x57a2e8=>{if('attribute'!=_0x57a2e8['type'])return;const {data:_0x5655e6}=_0x57a2e8;return _0x5655e6&&'sources'==_0x5655e6['key']?{'type':'format','content':''}:void 0x0;})),_0x38c36a['plugins']['has']('ImageSizeAttributes')&&(_0x5b0299['registerBlockAttribute']('width'),_0x5b0299['registerBlockAttribute']('height'),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x1c93f5=>{if('attribute'!=_0x1c93f5['type'])return;const {data:_0x5244fb}=_0x1c93f5;return!_0x5244fb||'width'!=_0x5244fb['key']&&'height'!=_0x5244fb['key']?void 0x0:{'type':'format','content':''};})),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x2dd6f7=>{if(!!_0x59e293['find'](({type:_0x407983,subType:_0x9f3be1})=>_0x2dd6f7['type']==_0x407983&&_0x2dd6f7['subType']==_0x9f3be1))return _0x2dd6f7['previous']?{}:void 0x0;}),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x4fa797=>{if('insertion'==_0x4fa797['type']||'deletion'==_0x4fa797['type']){const _0x56bb48=_0x4fa797['getContainedElement']();if(_0x56bb48&&_0x56bb48['is']('element','caption'))return{'type':'insertion'==_0x4fa797['type']?'addObject':'removeObject','element':_0x56bb48,'quantity':0x1};}}),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x4c1f03=>'formatBlock'==_0x4c1f03['type']&&'convertInlineImageToBlock'==_0x4c1f03['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c1f03['type']&&'convertBlockImageToInline'==_0x4c1f03['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5b0299['descriptionFactory']['registerDescriptionCallback'](_0x1a6ad6=>{if('attribute'!=_0x1a6ad6['type'])return;const {data:_0x18f72f}=_0x1a6ad6;if(!_0x18f72f||'alt'!=_0x18f72f['key'])return;const _0x3dfbea=_0x18f72f['newValue'];return _0x3dfbea?{'type':'format','content':o(_0x3878f8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dfbea+'\x22')}:{'type':'format','content':o(_0x3878f8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595fd1=this['editor'],_0x35374c=_0x595fd1['locale'];_0x595fd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c49b2=>{if('formatBlock'!=_0x2c49b2['type']&&'formatInline'!=_0x2c49b2['type'])return;const {data:_0x2d940c}=_0x2c49b2;if(_0x2d940c){if('imageTextAlternative'==_0x2d940c['commandName']){const _0x2706da=_0x2d940c['commandParams'][0x0]['newValue'];return _0x2706da?{'type':'format','content':o(_0x35374c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2706da+'\x22')}:{'type':'format','content':o(_0x35374c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d940c['commandName']){const _0x2b76de=_0x2d940c['commandParams'][0x0]['width'];return _0x2b76de?{'type':'format','content':o(_0x35374c,'*Set\x20image\x20width:*\x20%0',_0x2b76de)}:{'type':'format','content':o(_0x35374c,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x262bfa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf588ff=this['editor']['locale'],_0x53ebb8=this['editor']['plugins']['get']('TrackChangesEditing');_0x53ebb8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53ebb8['registerBlockAttribute']('src'),_0x53ebb8['descriptionFactory']['registerDescriptionCallback'](_0x2cff20=>{if('attribute'!=_0x2cff20['type'])return;const {data:_0x30bea9}=_0x2cff20;return _0x30bea9&&'src'==_0x30bea9['key']?_0x30bea9['newValue']&&_0x30bea9['oldValue']?{'type':'format','content':o(_0xf588ff,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f7203=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f7203['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f7203['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f7203['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f7203['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x275248=this['editor'],_0x4ddc1f=_0x275248['locale'];_0x275248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa5f0=>{if('formatBlock'!=_0x4aa5f0['type']&&'formatInline'!=_0x4aa5f0['type'])return;const {data:_0x3266e3}=_0x4aa5f0;if(!_0x3266e3||'replaceImageSource'!=_0x3266e3['commandName'])return;return{'type':'format','content':o(_0x4ddc1f,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x262bfa{['afterInit'](){const _0x59cbf8=this['editor'];if(!_0x59cbf8['plugins']['has']('ImageStyleEditing'))return;const _0x364171=_0x59cbf8['plugins']['get']('TrackChangesEditing'),_0x17b3e2=_0x59cbf8['plugins']['get']('ImageUtils'),_0x38f707={};_0x364171['enableCommand']('imageStyle',(_0x435b93,_0x59f031)=>{const _0x840166=_0x59cbf8['plugins']['get']('Users')['me'],_0x30d887=_0x59cbf8['commands']['get']('imageStyle');let _0x24dcd3=_0x17b3e2['getClosestSelectedImageElement'](_0x59cbf8['model']['document']['selection']),_0x44b464=_0x59cbf8['model']['createRangeOn'](_0x24dcd3),_0x40d339=_0x30d887['value'];if(_0x40d339==_0x59f031['value'])return;const _0xaf6854={'commandName':'imageStyle','commandParams':[_0x59f031],'formatGroupId':_0x38e47f()};_0x59cbf8['model']['change'](()=>{if(_0x364171['getSuggestions']()['filter'](_0x55bfdd=>_0x55bfdd['isInContent']&&_0x840166==_0x55bfdd['author']&&('formatBlock'==_0x55bfdd['type']||'formatInline'==_0x55bfdd['type'])&&('imageStylePreApply'==_0x55bfdd['subType']||'imageStylePostApply'==_0x55bfdd['subType'])&&_0x55bfdd['getFirstRange']()['isEqual'](_0x44b464))['forEach'](_0x2e0103=>_0x364171['discardSuggestion'](_0x2e0103['head'])),_0x24dcd3=_0x17b3e2['getClosestSelectedImageElement'](_0x59cbf8['model']['document']['selection']),_0x44b464=_0x59cbf8['model']['createRangeOn'](_0x24dcd3),_0x30d887['refresh'](),_0x59cbf8['commands']['get']('imageTypeInline')['refresh'](),_0x59cbf8['commands']['get']('imageTypeBlock')['refresh'](),_0x40d339=_0x30d887['value'],_0x40d339!=_0x59f031['value'])return _0x17b3e2['isInlineImage'](_0x24dcd3)&&_0x30d887['shouldConvertImageType'](_0x59f031['value'],_0x24dcd3)?(_0x435b93({..._0x59f031,'setImageSizes':!0x1}),_0x24dcd3=_0x17b3e2['getClosestSelectedImageElement'](_0x59cbf8['model']['document']['selection']),void _0x364171['markBlockFormat'](_0x24dcd3,{..._0xaf6854,'commandReversedParams':[{'value':_0x40d339||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x17b3e2['isBlockImage'](_0x24dcd3)?_0x364171['markBlockFormat'](_0x24dcd3,_0xaf6854,[],'imageStylePostApply'):_0x364171['markInlineFormat'](_0x44b464,_0xaf6854,'imageStylePostApply'));});});for(const _0x2cc0e0 of _0x59cbf8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x38f707[_0x2cc0e0['name']]=_0x2cc0e0['title']['toLowerCase']();_0x364171['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x364171['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x364171['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x364171['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2741ae])=>{_0x17b3e2['setImageNaturalSizeAttributes'](_0x2741ae['getContainedElement']());}),_0x364171['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xd632a3,_0x4fc736)=>{_0x364171['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xd632a3,{'commandName':_0x4fc736['commandName'],'commandParams':_0x4fc736['commandReversedParams']});}),_0x364171['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x50d8e8,_0x57aa35){if(_0xc69749(_0x50d8e8,_0x57aa35))return[_0x50d8e8,_0x57aa35];if(_0xc69749(_0x57aa35,_0x50d8e8))return[_0x57aa35,_0x50d8e8];return null;});const _0x2e92d4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xc69749(_0x514421,_0x2bb493){const _0x2377c8=_0x2e92d4['findIndex'](({type:_0x456452,subType:_0x1a95ac})=>_0x514421['type']==_0x456452&&_0x514421['subType']==_0x1a95ac),_0x14e950=_0x2e92d4['findIndex'](({type:_0x736310,subType:_0x140559})=>_0x2bb493['type']==_0x736310&&_0x2bb493['subType']==_0x140559);if(_0x2377c8<0x0||_0x14e950<0x0)return!0x1;const _0x3d941f=_0x514421['getFirstRange'](),_0x209090=_0x2bb493['getFirstRange']();if((0x0==_0x2377c8||0x1==_0x2377c8)&&0x2==_0x14e950&&_0x3d941f['isIntersecting'](_0x209090))return!0x0;if(0x2==_0x2377c8&&0x3==_0x14e950){const _0x4dc49d=_0x364171['_findSuggestions'](_0x3d941f,'insertion')['filter'](({suggestion:_0x2b4586,meta:_0x135cb8})=>_0x135cb8['isOwn']&&'convertInlineImageToBlock'==_0x2b4586['subType']);if(_0x4dc49d['length']>0x1&&_0x209090['end']['isEqual'](_0x3d941f['start']))return!0x0;if(0x1==_0x4dc49d['length']&&(_0x3d941f['start']['isEqual'](_0x209090['end'])||_0x3d941f['end']['isEqual'](_0x209090['start'])))return!0x0;}if(0x3==_0x2377c8&&0x3==_0x14e950&&_0x3d941f['start']['isBefore'](_0x209090['start'])){const _0x5640fa=_0x3d941f['end']['nodeAfter'],_0x3c80c8=_0x209090['start']['nodeBefore'];return _0x17b3e2['isBlockImage'](_0x5640fa)&&_0x5640fa===_0x3c80c8;}return!0x1;}_0x59cbf8['model']['document']['registerPostFixer'](()=>{let _0xc955d5=!0x1;const _0x29dcaf=Array['from'](_0x59cbf8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7e64fb,data:_0xdde06a}of _0x29dcaf){const {group:_0x12384d,type:_0x1ac106,subType:_0x5e313b,id:_0x5ad856}=_0x364171['_splitMarkerName'](_0x7e64fb);if('suggestion'==_0x12384d&&_0x364171['hasSuggestion'](_0x5ad856)){if('formatBlock'==_0x1ac106&&('imageStylePreApply'==_0x5e313b||'imageStylePostApply'==_0x5e313b)){const _0xb71c9f=_0x364171['getSuggestion'](_0x5ad856);if(_0xdde06a['newRange']){const _0x1df0fb=_0xb71c9f['getFirstRange']()['getContainedElement']();if(_0x17b3e2['isBlockImage'](_0x1df0fb))continue;_0x364171['discardSuggestion'](_0xb71c9f),_0xc955d5=!0x0;}}if('insertion'==_0x1ac106&&'imageCaption'==_0x5e313b&&!_0xdde06a['newRange']){const _0xb6a3e9=_0x364171['getSuggestion'](_0x5ad856);_0xb6a3e9['next']&&_0xb6a3e9['next']['isInContent']&&(_0x364171['discardSuggestion'](_0xb6a3e9['next']),_0xc955d5=!0x0);}}}return _0xc955d5;}),this['_registerLegacyDescription'](_0x38f707);}['_registerLegacyDescription'](_0x48448c){const _0x3330bd=this['editor'],_0x4550a1=_0x3330bd['locale'];_0x3330bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e067f=>{if('formatBlock'!=_0x3e067f['type']&&'formatInline'!=_0x3e067f['type'])return;const {data:_0x25de50}=_0x3e067f;if(!_0x25de50||'imageStyle'!=_0x25de50['commandName'])return;const _0x416558=_0x25de50['commandParams'][0x0]['value'];return _0x392827('side'===_0x416558?o(_0x4550a1,'FORMAT_SIDE_IMAGE'):_0x48448c[_0x416558]||_0x416558);function _0x392827(_0x397ce6){return{'type':'format','content':o(_0x4550a1,'*Format:*\x20%0',_0x397ce6)};}});}}class lt extends _0x262bfa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b42d9){super(_0x3b42d9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1acfd5=this['editor'],_0x1f342f=_0x1acfd5['commands']['get']('importWord'),_0x5a91ed=_0x1acfd5['commands']['get']('trackChanges');_0x1f342f&&(_0x1f342f['on']('execute',(_0xd7b665,[,_0x48c809])=>{this['_trackChangesValueDuringImport']=_0x5a91ed['value'],_0x48c809['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f342f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f342f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a91ed['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1acfd5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16f656,_0x137975){const {suggestions:_0x550878}=_0x137975,_0x12cccd=this['editor']['commands']['get']('trackChanges'),_0x3a7015=_0x12cccd['value'];this['_trackChangesValueDuringImport']!==_0x3a7015&&(_0x12cccd['execute'](),this['_trackChangesExecuted']=!0x0),_0x550878&&_0x550878['forEach'](({id:_0x25a9e6,type:_0x3b207e,author:_0x46a3cb,created_at:_0x3ee1d1})=>{const _0x3d8ff6={'id':_0x25a9e6,'type':_0x3b207e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46a3cb,'createdAt':_0x3ee1d1?new Date(_0x3ee1d1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3d8ff6);});}}class mt extends _0x262bfa{['afterInit'](){const _0x4168ab=this['editor'],_0x5f0f2f=_0x4168ab['plugins']['get']('TrackChangesEditing');if(_0x4168ab['plugins']['has']('IndentEditing')&&(_0x5f0f2f['enableCommand']('indent'),_0x5f0f2f['enableCommand']('outdent')),_0x4168ab['plugins']['has']('IndentBlock')){for(const _0x24afa0 of['indentBlock','outdentBlock'])_0x5f0f2f['enableDefaultAttributesIntegration'](_0x24afa0);}const _0x1baa3e=_0x4168ab['locale'];_0x5f0f2f['registerBlockAttribute']('blockIndent'),_0x5f0f2f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1baa3e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x70f13d=this['editor'],_0x4b86cc=_0x70f13d['locale'],_0x3f929a=_0x70f13d['plugins']['get']('TrackChangesEditing');_0x3f929a['descriptionFactory']['registerDescriptionCallback'](_0x3741fa=>{if('formatBlock'!=_0x3741fa['type'])return;const {data:_0x19d7d0}=_0x3741fa;if(!_0x19d7d0)return;if('indentBlock'!=_0x19d7d0['commandName']&&'outdentBlock'!=_0x19d7d0['commandName'])return;const _0x2a6de5=_0x3741fa['getItems']()[0x0],_0x5c59a7=_0x3f929a['descriptionFactory']['getItemLabel'](_0x2a6de5);return'indentBlock'==_0x19d7d0['commandName']?{'type':'format','content':o(_0x4b86cc,'*Indent:*\x20%0',_0x5c59a7)}:'outdentBlock'==_0x19d7d0['commandName']?{'type':'format','content':o(_0x4b86cc,'*Outdent:*\x20%0',_0x5c59a7)}:void 0x0;});}}class dt extends _0x262bfa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x262bfa{['afterInit'](){const _0x34d94f=this['editor'];if(!_0x34d94f['plugins']['has']('LinkEditing'))return;const _0x512303=_0x34d94f['plugins']['get']('TrackChangesEditing'),_0x1603c4=_0x34d94f['commands']['get']('link');_0x512303['enableDefaultAttributesIntegration']('link'),_0x512303['enableDefaultAttributesIntegration']('unlink'),_0x512303['registerInlineAttribute']('linkHref');for(const _0x203d0c of _0x1603c4['manualDecorators'])_0x512303['registerInlineAttribute'](_0x203d0c['id']),_0x512303['descriptionFactory']['registerAttributeLabel'](_0x203d0c['id'],'link\x20('+_0x203d0c['label']['toLowerCase']()+')');_0x512303['descriptionFactory']['registerDescriptionCallback'](_0x30e2eb=>{if('attribute'!=_0x30e2eb['type'])return;const {data:_0x27fce3}=_0x30e2eb;if(!_0x27fce3||'linkHref'!=_0x27fce3['key'])return;const _0x3fd8c6=_0x27fce3['newValue'],_0x15fc57=_0x34d94f['locale'];return{'type':'format','content':null==_0x3fd8c6?o(_0x15fc57,'*Remove\x20link*'):o(_0x15fc57,'*Set\x20link:*\x20%0','\x22'+_0x3fd8c6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d75af=this['editor'],_0x1317c4=_0x5d75af['locale'];_0x5d75af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b328a=>{if('formatInline'!=_0x3b328a['type'])return;const {data:_0x1ee733}=_0x3b328a;if(_0x1ee733){if('link'==_0x1ee733['commandName']){const _0x1d578a=_0x1ee733['commandParams'][0x0];return{'type':'format','content':o(_0x1317c4,'*Set\x20link:*\x20%0','\x22'+_0x1d578a+'\x22')};}return'unlink'==_0x1ee733['commandName']?{'type':'format','content':o(_0x1317c4,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x262bfa{['afterInit'](){const _0x258d5e=this['editor'],_0x4e19de=_0x258d5e['locale'];if(!_0x258d5e['plugins']['has']('LegacyListEditing'))return;const _0x3e8275=_0x258d5e['plugins']['get']('TrackChangesEditing'),_0x10c2fd=_0x258d5e['plugins']['has']('LegacyTodoListEditing');function _0x491b21(_0x5952f9){return()=>{const _0xf17eaf=_0x258d5e['model']['document']['selection'],_0x2b7a54=_0x258d5e['commands']['get'](_0x5952f9);if(_0x2b7a54['value'])return void _0x258d5e['execute']('paragraph',{});const _0x5909ba=_0x5952f9['slice'](0x0,-0x4),_0x2de5a8=function(_0x4a526a,_0x5c2370,_0x58494f){let _0xf7eec2=Array['from'](_0x4a526a)['filter'](_0xcd5a12=>function(_0x20ecb7,_0x1c30cb){return _0x1c30cb['checkChild'](_0x20ecb7['parent'],'listItem')&&!_0x1c30cb['isObject'](_0x20ecb7);}(_0xcd5a12,_0x58494f));_0xf7eec2=_0xf7eec2['filter'](_0x2666f6=>!_0x2666f6['is']('element','listItem')||_0x2666f6['getAttribute']('listType')!=_0x5c2370);const _0x3f5f9f=new Set();for(const _0x38a7d5 of _0xf7eec2)_0x38a7d5['is']('element','listItem')?_0x3f5f9f['add'](Ne(_0x38a7d5)):_0x3f5f9f['add'](_0x38a7d5);return Array['from'](_0x3f5f9f);}(_0xf17eaf['getSelectedBlocks'](),_0x5909ba,_0x258d5e['model']['schema']);_0x258d5e['model']['change'](()=>{for(const _0x1fdb15 of _0x2de5a8)_0x3e8275['markBlockFormat'](_0x1fdb15,{'commandName':_0x5952f9,'commandParams':[{'forceValue':!_0x2b7a54['value']}],'formatGroupId':'blockName'},Se(_0x1fdb15));});};}function _0x5d56e1(_0x17d577){return()=>{const _0x416066=function(_0x53fb42){let _0x4ee09e=Array['from'](_0x53fb42);const _0x995575=_0x4ee09e['findIndex'](_0x2aaeee=>'listItem'!=_0x2aaeee['name']);return _0x995575>-0x1&&(_0x4ee09e=_0x4ee09e['slice'](0x0,_0x995575)),_0x4ee09e;}(_0x258d5e['model']['document']['selection']['getSelectedBlocks']()),_0x57fe30=_0x258d5e['model']['createRange'](_0x258d5e['model']['createPositionAt'](_0x416066[0x0],'before'),_0x258d5e['model']['createPositionAt'](_0x416066[_0x416066['length']-0x1],'end'));_0x258d5e['model']['change'](()=>{_0x3e8275['markBlockFormat'](_0x57fe30,{'commandName':_0x17d577,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1398a0){const _0xd3dc1e=new Set();for(const _0x15fb3c of _0x1398a0){let _0x57f3c7=_0x15fb3c['nextSibling'];for(;_0x57f3c7&&_0x57f3c7['getAttribute']('listIndent')>_0x15fb3c['getAttribute']('listIndent');)_0xd3dc1e['add'](_0x57f3c7),_0x57f3c7=_0x57f3c7['nextSibling'];}return Array['from'](_0xd3dc1e);}(_0x416066));});};}_0x3e8275['enableCommand']('numberedList',_0x491b21('numberedList')),_0x3e8275['enableCommand']('bulletedList',_0x491b21('bulletedList')),_0x10c2fd&&_0x3e8275['enableCommand']('todoList',_0x491b21('todoList')),_0x3e8275['enableCommand']('indentList',_0x5d56e1('indentList')),_0x3e8275['enableCommand']('outdentList',_0x5d56e1('outdentList')),_0x10c2fd&&_0x3e8275['enableCommand']('checkTodoList',()=>{const _0x165154=_0x258d5e['commands']['get']('checkTodoList'),_0x34190b=Array['from'](_0x165154['_selectedElements']);_0x34190b['filter'](_0x39b51b=>_0x39b51b['getAttribute']('todoListChecked')!=_0x165154['value']),_0x258d5e['model']['change'](()=>{for(const _0x4f6534 of _0x34190b)_0x3e8275['markBlockFormat'](_0x4f6534,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x165154['value']}]});});}),_0x3e8275['descriptionFactory']['registerElementLabel']('listItem',_0x1ffba5=>o(_0x4e19de,'ELEMENT_LIST_ITEM',_0x1ffba5)),_0x3e8275['descriptionFactory']['registerDescriptionCallback'](_0x2292aa=>{if('formatBlock'!=_0x2292aa['type']&&'formatInline'!=_0x2292aa['type'])return;const {data:_0x2df25d}=_0x2292aa;if(_0x2df25d){if('numberedList'==_0x2df25d['commandName']||'bulletedList'==_0x2df25d['commandName']||'todoList'==_0x2df25d['commandName'])switch(_0x2df25d['commandName']['replace']('List','')){case'bulleted':return _0x403d89(o(_0x4e19de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x403d89(o(_0x4e19de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x403d89(o(_0x4e19de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2df25d['commandName'])return{'type':'format','content':o(_0x4e19de,'*Indent:*\x20%0',o(_0x4e19de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2df25d['commandName'])return{'type':'format','content':o(_0x4e19de,'*Outdent:*\x20%0',o(_0x4e19de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2df25d['commandName'])return _0x2df25d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e19de,'*Check\x20item*')}:{'type':'format','content':o(_0x4e19de,'*Uncheck\x20item*')};}function _0x403d89(_0x25565a){return{'type':'format','content':o(_0x4e19de,'*Change\x20to:*\x20%0',_0x25565a)};}});}}function Ne(_0x3a7003){const _0x36cfc2=_0x3a7003['getAttribute']('listIndent');if(0x0==_0x36cfc2)return _0x3a7003;let _0x207066=_0x3a7003;for(;_0x3a7003['previousSibling']&&_0x3a7003['previousSibling']['is']('element','listItem');){const _0x14b98b=_0x3a7003['previousSibling']['getAttribute']('listIndent');if(_0x14b98b==_0x36cfc2)_0x207066=_0x3a7003['previousSibling'];else{if(_0x14b98b<_0x36cfc2)break;}_0x3a7003=_0x3a7003['previousSibling'];}return _0x207066;}function Se(_0x16a71f){const _0xe5a7dc=[];if(_0x16a71f['is']('element','listItem')&&_0x16a71f['getAttribute']('listIndent')>0x0){let _0x1d683d=_0x16a71f['nextSibling'];for(;_0x1d683d&&'listItem'==_0x1d683d['name']&&_0x1d683d['getAttribute']('listIndent')==_0x16a71f['getAttribute']('listIndent');)_0xe5a7dc['push'](_0x1d683d),_0x1d683d=_0x1d683d['nextSibling'];}return _0xe5a7dc;}class wt extends _0x262bfa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x15eca5=this['editor']['config']['get']('list.properties'),_0xaf286a=this['editor']['plugins']['get']('TrackChangesEditing');_0x15eca5['styles']&&_0xaf286a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x15eca5['reversed']&&_0xaf286a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x15eca5['startIndex']&&_0xaf286a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xaf286a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x107ad7,_0x15426a={}){const _0x389123=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3892d5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x389123['markMultiRangeBlockFormat'](_0x3892d5,{'commandName':'listStyle','commandParams':[{'type':_0x15426a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x46eaeb,_0x1a7e33={}){const _0x3c834c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3ebd=this['_getSuggestionBlocks'](_0x19b1b1=>_0x19b1b1['is']('element','listItem')&&'numbered'===_0x19b1b1['getAttribute']('listType'));if(_0x3e3ebd['length']<0x1)return;const _0x42eae2=_0x3e3ebd['map'](_0x3431f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3431f6,'before'),this['editor']['model']['createPositionAt'](_0x3431f6,0x0)));this['editor']['model']['change'](()=>{_0x3c834c['markMultiRangeBlockFormat'](_0x42eae2,{'commandName':'listReversed','commandParams':[{'reversed':_0x1a7e33['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3293fd,_0x49ad9a={}){const _0x46b6fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24602a=this['_getSuggestionBlocks'](_0x1d8e62=>_0x1d8e62['is']('element','listItem')&&'numbered'===_0x1d8e62['getAttribute']('listType'));if(_0x24602a['length']<0x1)return;const _0x84d50a=_0x24602a['map'](_0x61e54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x61e54,'before'),this['editor']['model']['createPositionAt'](_0x61e54,0x0)));this['editor']['model']['change'](()=>{_0x46b6fb['markMultiRangeBlockFormat'](_0x84d50a,{'commandName':'listStart','commandParams':[{'startIndex':_0x49ad9a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3cbf33){if('formatBlock'!=_0x3cbf33['type']&&'formatInline'!=_0x3cbf33['type'])return;const _0x2bcd3e=this['editor']['locale'],{data:_0x57e1b6}=_0x3cbf33;if(!_0x57e1b6)return;let _0x203b68,_0x5a98ec;switch(_0x57e1b6['commandName']){case'listStyle':_0x203b68='*Change\x20to:*\x20%0',_0x5a98ec={'type':'format','content':o(_0x2bcd3e,_0x203b68,o(_0x2bcd3e,this['_getTranslationKeyForListStyle'](_0x57e1b6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x203b68=_0x57e1b6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a98ec={'type':'format','content':o(_0x2bcd3e,_0x203b68)};break;case'listStart':_0x203b68='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a98ec={'type':'format','content':o(_0x2bcd3e,_0x203b68,_0x57e1b6['commandParams'][0x0]['startIndex'])};}return _0x5a98ec;}['_getSuggestionBlocksForListStyle'](){const _0x457a58=this['editor']['plugins']['get']('LegacyListUtils');let _0x42d1ad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x42d1ad[0x0]?.['is']('element','listItem')&&_0x42d1ad['unshift'](..._0x457a58['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x42d1ad[_0x42d1ad['length']-0x1]?.['is']('element','listItem')&&_0x42d1ad['push'](..._0x457a58['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x42d1ad=[...new Set(_0x42d1ad)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x42d1ad=_0x42d1ad['filter'](_0x3a373d=>_0x3a373d['is']('element','listItem'))),_0x42d1ad;}['_getSuggestionBlocks'](_0x1325e1){const _0x1ca72f=this['editor']['plugins']['get']('LegacyListUtils');let _0x21742a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1325e1)['map'](_0x4e71c2=>{const _0x4f03ae=this['editor']['model']['createPositionAt'](_0x4e71c2,0x0);return[..._0x1ca72f['getSiblingNodes'](_0x4f03ae,'backward'),..._0x1ca72f['getSiblingNodes'](_0x4f03ae,'forward')];})['flat']();return _0x21742a=[...new Set(_0x21742a)],_0x21742a;}['_getTranslationKeyForListStyle'](_0x5a01cf){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a01cf)||'default')['toUpperCase']()+'_LIST_'+_0x5a01cf['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x262bfa{['afterInit'](){const _0x435b1d=this['editor'];if(!_0x435b1d['plugins']['has']('MediaEmbedEditing'))return;const _0x97de23=_0x435b1d['plugins']['get']('TrackChangesEditing'),_0x5b2d68=_0x435b1d['locale'];_0x97de23['enableCommand']('mediaEmbed'),_0x97de23['descriptionFactory']['registerElementLabel']('media',_0x5325cc=>o(_0x5b2d68,'ELEMENT_MEDIA',_0x5325cc)),_0x435b1d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x15b402,{writer:_0x5b3049,options:_0x48e602})=>{if(_0x48e602['showSuggestionHighlights'])return _0x5b3049['createEmptyElement']('div');},'converterPriority':'high'}),_0x435b1d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x43efaa,_0x341909,_0x2447e8)=>{_0x2447e8['options']['showSuggestionHighlights']&&_0x43efaa['stop']();},{'priority':'high'});}}class yt extends _0x262bfa{['afterInit'](){const _0x13684e=this['editor'];_0x13684e['plugins']['has']('MentionEditing')&&_0x13684e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x262bfa{['afterInit'](){const _0x1a055b=this['editor'];if(!_0x1a055b['plugins']['has']('MergeFieldsEditing'))return;const _0x297bb8=_0x1a055b['plugins']['get']('TrackChangesEditing'),_0xfd9f43=_0x1a055b['locale'];_0x297bb8['enableCommand']('insertMergeField'),_0x297bb8['enableCommand']('insertMergeFieldBlock'),_0x297bb8['enableCommand']('insertMergeFieldImage'),_0x297bb8['descriptionFactory']['registerElementLabel']('mergeField',_0x78c4eb=>o(_0xfd9f43,'ELEMENT_MERGE_FIELD',_0x78c4eb)),_0x297bb8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4af9c3=>o(_0xfd9f43,'ELEMENT_MERGE_FIELD',_0x4af9c3)),_0x297bb8['descriptionFactory']['registerDescriptionCallback'](_0x38c9cc=>{if('insertion'!=_0x38c9cc['type']&&'deletion'!=_0x38c9cc['type'])return;const _0x4b1138=_0x38c9cc['getContainedElement']();if(null==_0x4b1138)return;const _0x53788d=_0x1a055b['plugins']['get']('MergeFieldsEditing');let _0x4477aa;switch(_0x53788d['getMergeFieldType'](_0x4b1138)){case null:return;case'image':{const _0x8030a2=_0x53788d['unwrapAffixes'](_0x4b1138['getAttribute']('src'));_0x4477aa=_0x53788d['getLabel'](_0x8030a2)||_0x8030a2;break;}default:{const _0x3bcc8e=_0x4b1138['getAttribute']('id');_0x4477aa=_0x53788d['getLabel'](_0x3bcc8e)||_0x3bcc8e;break;}}return'insertion'==_0x38c9cc['type']?{'type':'insertion','content':o(_0xfd9f43,'*Insert:*\x20%0','\x22'+_0x4477aa+'\x22\x20'+o(_0xfd9f43,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xfd9f43,'*Remove:*\x20%0','\x22'+_0x4477aa+'\x22\x20'+o(_0xfd9f43,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x262bfa{['afterInit'](){const _0x5c13d0=this['editor'],_0x12ae4f=_0x5c13d0['plugins']['get']('TrackChangesEditing');_0x5c13d0['plugins']['has']('MultiLevelList')&&(_0x12ae4f['enableDefaultAttributesIntegration']('multiLevelList'),_0x12ae4f['registerBlockAttribute']('listMarkerStyle'),_0x12ae4f['descriptionFactory']['registerDescriptionCallback'](_0x3d23bb=>this['handleDescriptions'](_0x3d23bb)));}['handleDescriptions'](_0x3d432d){const _0x4ce660=this['editor']['locale'],{data:_0xc31378}=_0x3d432d,_0x4161e6={'type':'format','content':''};if(_0xc31378&&'listMarkerStyle'==_0xc31378['key']){if(!_0xc31378['oldValue'])return{'type':'format','content':o(_0x4ce660,'*Set\x20format:*\x20%0',o(_0x4ce660,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc31378['newValue']+')'};if(!_0xc31378['newValue']){let _0xf959fa=_0x3d432d['head'];for(;_0xf959fa;){if(_0xf959fa['data']&&'listType'==_0xf959fa['data']['key']&&_0xf959fa['data']['newValue'])return _0x4161e6;_0xf959fa=_0xf959fa['next'];}return{'type':'format','content':o(_0x4ce660,'*Remove\x20format:*\x20%0',o(_0x4ce660,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc31378['oldValue']+')'};}}}}class It extends _0x262bfa{['afterInit'](){const _0x5b5776=this['editor'];if(!_0x5b5776['plugins']['has']('PageBreakEditing'))return;_0x5b5776['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3b2ed5=_0x5b5776['plugins']['get']('TrackChangesEditing'),_0x3b2020=_0x5b5776['locale'];_0x3b2ed5['descriptionFactory']['registerElementLabel']('pageBreak',_0x5426c3=>o(_0x3b2020,'ELEMENT_PAGE_BREAK',_0x5426c3));}}class At extends _0x262bfa{['afterInit'](){const _0x351cda=this['editor'];if(!_0x351cda['plugins']['has']('Paragraph'))return;const _0x37a030=_0x351cda['locale'],_0x56956d=_0x351cda['plugins']['get']('TrackChangesEditing');_0x56956d['descriptionFactory']['registerElementLabel']('paragraph',_0x36b5d3=>o(_0x37a030,'ELEMENT_PARAGRAPH',_0x36b5d3)),_0x56956d['enableDefaultAttributesIntegration']('paragraph'),_0x56956d['enableCommand']('insertParagraph'),_0x351cda['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x351cda),{'priority':'highest'}),_0x351cda['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ea6e3,_0x28e50b,_0x5e826c)=>{_0x5e826c['options']['showSuggestionHighlights']&&nr(_0x351cda,{'showActiveMarker':!0x1})(_0x5ea6e3,_0x28e50b,_0x5e826c);},{'priority':'highest'});const _0x328843=_0x56956d['descriptionFactory'];_0x328843['registerDescriptionCallback'](_0x5f5817=>{if('insertion'!==_0x5f5817['type'])return;const {start:_0x287e51,end:_0x2f2d93}=_0x5f5817['getFirstRange']();if(!_0x287e51['isTouching'](_0x2f2d93)||!_0x287e51['nodeAfter'])return;const _0x40aa24=_0x351cda['model']['schema'],_0x4f93ae=_0x287e51['nodeAfter'];return _0x40aa24['isBlock'](_0x4f93ae)&&!_0x40aa24['isLimit'](_0x4f93ae)&&_0x40aa24['checkChild'](_0x4f93ae,'$text')?{'type':'insertion','content':o(_0x37a030,'*Insert:*\x20%0',_0x328843['getItemLabel'](_0x4f93ae,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29f74d=this['editor'],_0x288329=_0x29f74d['locale'];_0x29f74d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f5ad7=>{if('formatBlock'!=_0x1f5ad7['type'])return;const {data:_0x5952cb}=_0x1f5ad7;return _0x5952cb&&'paragraph'==_0x5952cb['commandName']?{'type':'format','content':o(_0x288329,'*Change\x20to:*\x20%0',o(_0x288329,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2b5707,{showActiveMarker:_0x111c50=!0x0}={}){return(_0xc2fe57,_0x1fbca1,_0x3984b6)=>{const _0x47ae10=_0x2b5707['plugins']['get']('TrackChangesEditing'),_0x423216=_0x1fbca1['markerRange']['start'],_0x3ad5b5=_0x1fbca1['markerRange']['end'],_0x1e508f=_0x2b5707['model']['schema'];if(!_0x423216['isTouching'](_0x3ad5b5)||!_0x423216['nodeAfter'])return;const _0xb29869=_0x423216['nodeAfter'];if(_0x1e508f['isBlock'](_0xb29869)&&!_0x1e508f['isLimit'](_0xb29869)&&_0x1e508f['checkChild'](_0xb29869,'$text')){if(!_0x3984b6['consumable']['consume'](_0x1fbca1['markerRange'],_0xc2fe57['name']))return;const {id:_0x735a17,authorId:_0x32ddfe}=_0x47ae10['_splitMarkerName'](_0x1fbca1['markerName']),_0xd94371=_0x3984b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x735a17,'data-author-id':_0x32ddfe}),_0x92669c=_0x3984b6['mapper']['toViewPosition'](_0x3ad5b5);_0x111c50&&_0x47ae10['activeMarkers']['includes'](_0x1fbca1['markerName'])&&_0x3984b6['writer']['addClass']('ck-suggestion-marker--active',_0xd94371),_0x3984b6['writer']['insert'](_0x92669c,_0xd94371),_0x3984b6['mapper']['bindElementToMarker'](_0xd94371,_0x1fbca1['markerName']);}};}class _t extends _0x262bfa{['afterInit'](){const _0x2a2da8=this['editor'];_0x2a2da8['commands']['get']('replaceSource')&&_0x2a2da8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x262bfa{['afterInit'](){const _0x42c862=this['editor'];if(!_0x42c862['plugins']['has']('RemoveFormatEditing'))return;_0x42c862['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5820fa=this['editor'];_0x5820fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25d263=>{if('formatBlock'!=_0x25d263['type']&&'formatInline'!=_0x25d263['type'])return;const {data:_0x2d4768}=_0x25d263;return _0x2d4768&&'removeFormat'==_0x2d4768['commandName']?{'type':'format','content':o(_0x5820fa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x262bfa{['afterInit'](){const _0x41e33d=this['editor'];if(!_0x41e33d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x20eac1=_0x41e33d['plugins']['get']('TrackChangesEditing');_0x20eac1['enableCommand']('goToPreviousRestrictedEditingException'),_0x20eac1['enableCommand']('goToNextRestrictedEditingException');const _0x3af365=_0x41e33d['plugins']['get']('RestrictedEditingModeEditing');_0x3af365['enableCommand']('trackChanges'),_0x3af365['enableCommand']('acceptSuggestion'),_0x3af365['enableCommand']('discardSuggestion'),_0x3af365['enableCommand']('acceptAllSuggestions'),_0x3af365['enableCommand']('discardAllSuggestions'),_0x3af365['enableCommand']('acceptSelectedSuggestions'),_0x3af365['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x262bfa{['afterInit'](){const _0x154fc6=this['editor'];if(!_0x154fc6['plugins']['has']('ShiftEnter'))return;const _0x227673=_0x154fc6['plugins']['get']('TrackChangesEditing');_0x227673['enableCommand']('shiftEnter'),_0x154fc6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x154fc6),{'priority':'high'}),_0x154fc6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x154fc6),{'priority':'high'}),_0x154fc6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x21e001,_0x97677b,_0xe5fa93)=>{_0xe5fa93['options']['showSuggestionHighlights']&&qe(_0x154fc6,{'showActiveMarker':!0x1})(_0x21e001,_0x97677b,_0xe5fa93);}),_0x227673['descriptionFactory']['registerElementLabel']('softBreak',_0x28ecf2=>o(_0x154fc6['locale'],'ELEMENT_LINE_BREAK',_0x28ecf2));}}function qe(_0x1d054d,{showActiveMarker:_0xd134d8=!0x0}={}){return(_0x272948,_0x3b898f,_0x4422ca)=>{const _0x3dc8db=_0x1d054d['plugins']['get']('TrackChangesEditing');if(!_0x4422ca['consumable']['test'](_0x3b898f['markerRange'],_0x272948['name']))return;const _0xfe7bee=_0x1d054d['model'];for(const _0x4ccc10 of _0x3b898f['markerRange']['getItems']()){if(!_0x4ccc10['is']('element','softBreak'))continue;const _0x1105ce='deletion'==_0x3b898f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2a83f8,authorId:_0xbeb797}=_0x3dc8db['_splitMarkerName'](_0x3b898f['markerName']),_0x313e1b=_0x4422ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1105ce,'data-suggestion':_0x2a83f8,'data-author-id':_0xbeb797}),_0x2e9d40=_0x4422ca['mapper']['toViewPosition'](_0xfe7bee['createPositionBefore'](_0x4ccc10));_0xd134d8&&_0x3dc8db['activeMarkers']['includes'](_0x3b898f['markerName'])&&_0x4422ca['writer']['addClass']('ck-suggestion-marker--active',_0x313e1b),_0x4422ca['writer']['insert'](_0x2e9d40,_0x313e1b),_0x4422ca['mapper']['bindElementToMarker'](_0x313e1b,_0x3b898f['markerName']);}};}class Nt extends _0x262bfa{['afterInit'](){const _0x367f3a=this['editor'],_0x5b10bb=_0x367f3a['model'],_0x330ecf=_0x367f3a['locale'];if(!_0x367f3a['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d0dc4=_0x367f3a['plugins']['get']('TrackChangesEditing'),_0x86e9df='restrictedEditingException',_0x5a23ac=_0x367f3a['commands']['get'](_0x86e9df);_0x1d0dc4['enableCommand'](_0x86e9df,(_0x4a3de9,_0x4a756e={})=>{const _0x5b9abf=_0x5b10bb['document']['selection'];if(_0x5b9abf['isCollapsed'])return void _0x4a3de9(_0x4a756e);const _0x7287c5=void 0x0!==_0x4a756e['forceValue']?_0x4a756e['forceValue']:!_0x5a23ac['value'];_0x5b10bb['change'](()=>{const _0x37ccfc=Array['from'](_0x5b9abf['getRanges']());for(const _0x86306f of _0x37ccfc){const _0x4d545f=_0x7287c5?[_0x86306f]:io(_0x86e9df,_0x86306f,_0x5b10bb);for(const _0x40854c of _0x4d545f)_0x1d0dc4['markInlineFormat'](_0x40854c,{'commandName':_0x86e9df,'commandParams':[{'forceValue':_0x7287c5}]});}});}),_0x1d0dc4['descriptionFactory']['registerDescriptionCallback'](_0x4ad45d=>{if('formatBlock'!=_0x4ad45d['type']&&'formatInline'!=_0x4ad45d['type'])return;const {data:_0xe2c80e}=_0x4ad45d;return _0xe2c80e&&_0xe2c80e['commandName']==_0x86e9df?_0xe2c80e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x330ecf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x330ecf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x262bfa{['afterInit'](){const _0x2407ad=this['editor'];if(!_0x2407ad['plugins']['has']('Style')||!_0x2407ad['plugins']['has']('DataSchema'))return;const _0x4f5e90=_0x2407ad['plugins']['get']('TrackChangesEditing'),_0x37804c=_0x2407ad['locale'],_0x24df45=_0x2407ad['config']['get']('style')||{},_0x280e28=_0x2407ad['plugins']['get']('GeneralHtmlSupport'),_0x3c85c6=_0x2407ad['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2407ad['plugins']['get']('DataSchema'),_0x24df45['definitions']);_0x4f5e90['enableDefaultAttributesIntegration']('style');const _0x471c2f=new Set();for(const _0x4ade9d of _0x3c85c6['block']){const _0x1fbaa7=_0x280e28['getGhsAttributeNameForElement'](_0x4ade9d['element']);_0x471c2f['add'](_0x1fbaa7);}const _0x47dc17=new Set();for(const _0x20ecaa of _0x3c85c6['inline']){const _0x5ef8a9=_0x280e28['getGhsAttributeNameForElement'](_0x20ecaa['element']);_0x47dc17['add'](_0x5ef8a9);for(const _0x3e6399 of _0x20ecaa['ghsAttributes'])_0x47dc17['add'](_0x3e6399);}for(const _0x23fb7b of _0x471c2f)_0x4f5e90['registerBlockAttribute'](_0x23fb7b),_0x4f5e90['descriptionFactory']['registerAttributeLabel'](_0x23fb7b,o(_0x37804c,'FORMAT_STYLE'));for(const _0x230d90 of _0x47dc17)_0x4f5e90['registerInlineAttribute'](_0x230d90),_0x4f5e90['descriptionFactory']['registerAttributeLabel'](_0x230d90,o(_0x37804c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8eb585=this['editor'],_0x352710=_0x8eb585['locale'];_0x8eb585['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24d841=>{if('formatBlock'!=_0x24d841['type']&&'formatInline'!=_0x24d841['type'])return;const {data:_0x52d994}=_0x24d841;return _0x52d994&&'style'===_0x52d994['commandName']?_0x52d994['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x352710,'*Set\x20format:*\x20%0',_0x52d994['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x352710,'*Remove\x20format:*\x20%0',_0x52d994['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x262bfa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4ac54b){super(_0x4ac54b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x43a023=this['editor'],_0x2216ad=_0x43a023['model']['document']['selection'];if(!_0x43a023['plugins']['has']('TableEditing'))return;const _0x19ecea=_0x43a023['locale'],_0x23e092=_0x43a023['plugins']['get']('TrackChangesEditing'),_0x1e888b=_0x43a023['plugins']['get']('TableUtils');_0x23e092['descriptionFactory']['registerElementLabel']('table',_0x21bdcd=>o(_0x19ecea,'ELEMENT_TABLE',_0x21bdcd)),this['_setupColumnsRowsFixing'](),_0x23e092['enableCommand']('insertTable'),_0x23e092['enableCommand']('selectTableRow'),_0x23e092['enableCommand']('selectTableColumn');for(const _0x165f3e of['insertTableRowAbove','insertTableRowBelow']){const _0x3c9e9c=_0x43a023['commands']['get'](_0x165f3e);_0x23e092['enableCommand'](_0x165f3e,_0x1409e5=>{_0x43a023['model']['change'](_0x3381f7=>{_0x1409e5();const _0x2c508f='above'===_0x3c9e9c['order'],_0x2b2297=_0x1e888b['getSelectionAffectedTableCells'](_0x2216ad),_0x3751fd=_0x1e888b['getRowIndexes'](_0x2b2297),_0x6e3d4b=_0x2c508f?_0x3751fd['first']-0x1:_0x3751fd['last']+0x1,_0x5e8812=_0x2b2297[0x0]['findAncestor']('table'),_0x29922c=_0x1e888b['createTableWalker'](_0x5e8812,{'startRow':_0x6e3d4b,'endRow':_0x6e3d4b}),_0x22c754=Array['from'](_0x29922c)['map'](_0x2fb6bb=>_0x3381f7['createRangeOn'](_0x2fb6bb['cell']));_0x23e092['markMultiRangeInsertion'](_0x22c754,'tableRow');});});}for(const _0x1bf10b of['insertTableColumnLeft','insertTableColumnRight']){const _0x445c6a=_0x43a023['commands']['get'](_0x1bf10b);_0x23e092['enableCommand'](_0x1bf10b,_0x5a45ab=>{_0x43a023['model']['change'](_0x54971a=>{_0x5a45ab();const _0x3a9ce4='left'===_0x445c6a['order'],_0x5b1239=_0x1e888b['getSelectionAffectedTableCells'](_0x2216ad),_0x122cd3=_0x1e888b['getColumnIndexes'](_0x5b1239),_0x298ee4=_0x3a9ce4?_0x122cd3['first']-0x1:_0x122cd3['last']+0x1,_0x3ea1bc=_0x5b1239[0x0]['findAncestor']('table'),_0x50f8ee=_0x1e888b['createTableWalker'](_0x3ea1bc,{'startRow':0x0,'column':_0x298ee4,'includeAllSlots':!0x1}),_0xca1832=Array['from'](_0x50f8ee)['map'](_0xf388f7=>_0x54971a['createRangeOn'](_0xf388f7['cell']));_0x23e092['markMultiRangeInsertion'](_0xca1832,'tableColumn');});});}for(const _0xd7e955 of['removeTableRow','removeTableColumn']){const _0x3adca4=_0xd7e955['substr'](0xb),_0x2fb6b3=_0x3adca4['toLowerCase'](),_0x501e2e=_0x2fb6b3['substr'](0x0,0x3)+'span',_0x500e57='table'+_0x3adca4,_0xaa1032='min'+_0x3adca4,_0x4e2fb9='max'+_0x3adca4;_0x23e092['enableCommand'](_0xd7e955,()=>{_0x43a023['model']['change'](_0x386cd2=>{const _0x147ad2=_0x1e888b['getSelectionAffectedTableCells'](_0x2216ad),_0x4adfaf=_0x147ad2[0x0]['findAncestor']('table');let _0x3b3994;if('removeTableRow'==_0xd7e955){const _0x4302ff=_0x1e888b['getRowIndexes'](_0x147ad2);_0x3b3994={'startRow':_0x4302ff['first'],'endRow':_0x4302ff['last'],'includeAllSlots':!0x0};}else{const _0x4f9ab9=_0x1e888b['getColumnIndexes'](_0x147ad2);_0x3b3994={'startColumn':_0x4f9ab9['first'],'endColumn':_0x4f9ab9['last'],'includeAllSlots':!0x0};}const _0x2b0d8b=_0x1e888b['createTableWalker'](_0x4adfaf,_0x3b3994),_0x5ee981=Array['from'](_0x2b0d8b)['map'](({cell:_0x2ab987})=>_0x2ab987),_0x7282d5=Oe(_0x5ee981['filter'](_0x587bf2=>_0x587bf2['hasAttribute'](_0x501e2e))),_0x9f28=Oe(_0x5ee981['filter'](_0x1b94bb=>!_0x1b94bb['hasAttribute'](_0x501e2e)))['map'](_0x5da2b4=>_0x386cd2['createRangeOn'](_0x5da2b4)),_0x4330d=_0x23e092['markMultiRangeDeletion'](_0x9f28,_0x500e57);if(_0x4330d&&('tableRow'==_0x4330d['subType']||'tableColumn'==_0x4330d['subType'])){const _0x10e4af=this['_getSuggestionCoords'](_0x4330d);for(const _0x18f4dd of _0x7282d5){const _0x143915=_0x386cd2['createRangeOn'](_0x18f4dd),_0x4f6509=_0x1e888b['getCellLocation'](_0x18f4dd),_0x40bcd8=_0x18f4dd['getAttribute'](_0x501e2e)-0x1,_0x2c5911=_0x10e4af[_0xaa1032],_0x2432cf=_0x10e4af[_0x4e2fb9];_0x2c5911<=_0x4f6509[_0x2fb6b3]&&_0x4f6509[_0x2fb6b3]+_0x40bcd8<=_0x2432cf&&_0x4330d['addRange'](_0x143915);}}});});}function _0xd06382(_0x50866b){const _0x52abb9=Array['from'](_0x2216ad['getRanges']())['map'](_0x3aa782=>_0x284d24['fromRange'](_0x3aa782));_0x43a023['model']['change'](_0x143053=>{const _0x47dcdc=_0x143053['batch'];_0x50866b=_0x50866b['filter'](_0x806716=>'$graveyard'!=_0x806716['root']['rootName']),_0x143053['setSelection'](_0x50866b),_0x43a023['commands']['get']('removeTableRow')['refresh'](),_0x43a023['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x43a023['model']['enqueueChange'](()=>{_0x43a023['model']['enqueueChange'](_0x47dcdc,_0x492d0d=>{const _0x40a748=_0x52abb9['filter'](_0x2887c9=>'$graveyard'!=_0x2887c9['root']['rootName']);_0x40a748['length']>0x0&&_0x492d0d['setSelection'](_0x40a748);for(const _0x39f496 of _0x52abb9)_0x39f496['detach']();});});});}function _0x2732b3(_0x4aa97b){_0x43a023['model']['change'](_0xafcb4c=>{const _0x225251=Array['from'](_0x2216ad['getRanges']())['map'](_0x26b0e5=>_0x284d24['fromRange'](_0x26b0e5)),_0x2ff53a=[];for(const _0x41f1b9 of _0x4aa97b)for(const _0x58fbd5 of _0x41f1b9['getItems']({'shallow':!0x0}))_0x2ff53a['push'](_0x58fbd5);for(const _0x49c0b0 of _0x2ff53a)'$graveyard'!=_0x49c0b0['root']['rootName']&&(_0xafcb4c['setSelection'](_0xafcb4c['createPositionAt'](_0x49c0b0,0x0)),_0x43a023['commands']['get']('removeTableColumn')['refresh'](),_0x43a023['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x56b445=_0x225251['filter'](_0x2f197a=>'$graveyard'!=_0x2f197a['root']['rootName']);_0x56b445['length']>0x0&&_0xafcb4c['setSelection'](_0x56b445);for(const _0x876ce9 of _0x225251)_0x876ce9['detach']();});}function _0x21a18b(_0x26f965,_0xf1de3f){return _0xf1de3f['every'](_0x14ef73=>_0x26f965['some'](_0x165d3f=>_0x165d3f['end']['isEqual'](_0x14ef73['start'])||_0x14ef73['end']['isEqual'](_0x165d3f['start'])));}function _0x5c50bd(_0x3946bb,_0x144082){return!_0x3946bb['some'](_0x4ad17b=>_0x144082['some'](_0x204ae5=>_0x4ad17b['isIntersecting'](_0x204ae5)))&&_0x3946bb['some'](_0x7eec6=>_0x144082['some'](_0x293e33=>_0x7eec6['end']['isTouching'](_0x293e33['start'])));}_0x43a023['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40eb70,_0x593ba6,_0x218944)=>{if(!_0x218944['options']['showSuggestionHighlights'])return;const _0x3d00fd=_0x593ba6['item'];if(!_0x3d00fd||!_0x3d00fd['is']('element','tableCell'))return;const _0x2fc1b4=_0x218944['mapper']['toViewElement'](_0x3d00fd);if(_0x2fc1b4){const {id:_0x478608,authorId:_0x39d9f3}=_0x23e092['_splitMarkerName'](_0x593ba6['markerName']);_0x136294(_0x2fc1b4,_0x218944['writer'],(_0x48e6f1,_0x192216,_0x3a2090)=>{_0x3a2090['addClass'](_0x50ebc0(_0x192216['classes']),_0x48e6f1),_0x3a2090['setAttribute']('data-suggestion-id',_0x478608,_0x48e6f1),_0x3a2090['setAttribute']('data-author-id',_0x39d9f3,_0x48e6f1);},(_0x7c6f90,_0x583a0e,_0x4bf5bd)=>{_0x4bf5bd['removeClass'](_0x50ebc0(_0x583a0e['classes']),_0x7c6f90),_0x4bf5bd['removeAttribute']('data-suggestion-id',_0x7c6f90),_0x4bf5bd['removeAttribute']('data-author-id',_0x7c6f90);});}},{'priority':'highest'}),_0x23e092['descriptionFactory']['registerDescriptionCallback'](_0xb2e77=>{if('insertion'!=_0xb2e77['type']&&'deletion'!=_0xb2e77['type'])return;const _0x3dfce8=_0xb2e77['getContainedElement']();if(null!=_0x3dfce8&&_0x3dfce8['is']('element','table')){if('insertion'==_0xb2e77['type']){const _0x4f5e71=_0xb2e77['getItems']()['filter'](_0x37c152=>_0x37c152['is']('$textProxy'))['map'](_0x9d2334=>_0x9d2334['data']);if(_0x4f5e71['length'])return{'type':'insertion','content':o(_0x19ecea,'*Insert:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f5e71['join']('\x20')+'\x22'))};}if('deletion'==_0xb2e77['type']){const _0x490672=_0xb2e77['getItems']()['filter'](_0x50d4ef=>_0x50d4ef['is']('$textProxy'))['map'](_0x1dc851=>_0x1dc851['data']);if(_0x490672['length'])return{'type':'deletion','content':o(_0x19ecea,'*Remove:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x490672['join']('\x20')+'\x22'))};}}}),_0x23e092['descriptionFactory']['registerDescriptionCallback'](_0x1496a5=>{if('tableRow'==_0x1496a5['subType']){const _0x1a8e49=_0x1496a5['getItems']()['filter'](_0x281b0e=>_0x281b0e['is']('$textProxy'))['map'](_0x1e1fea=>_0x1e1fea['data']),_0x120a96=this['_getSuggestionCoords'](_0x1496a5),_0x3c727e=_0x120a96['maxRow']-_0x120a96['minRow']+0x1;if('insertion'==_0x1496a5['type'])return _0x1a8e49['length']?{'type':'insertion','content':o(_0x19ecea,'*Insert:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c727e,'\x22'+_0x1a8e49['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19ecea,'*Insert:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_ROW',_0x3c727e))};if('deletion'==_0x1496a5['type'])return _0x1a8e49['length']?{'type':'deletion','content':o(_0x19ecea,'*Remove:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3c727e,'\x22'+_0x1a8e49['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19ecea,'*Remove:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_ROW',_0x3c727e))};}if('tableColumn'==_0x1496a5['subType']){const _0x352b07=_0x1496a5['getItems']()['filter'](_0x125cc5=>_0x125cc5['is']('$textProxy'))['map'](_0xe85858=>_0xe85858['data']),_0x3d8be9=this['_getSuggestionCoords'](_0x1496a5),_0x2ed002=_0x3d8be9['maxColumn']-_0x3d8be9['minColumn']+0x1;if('insertion'==_0x1496a5['type'])return _0x352b07['length']?{'type':'insertion','content':o(_0x19ecea,'*Insert:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ed002,'\x22'+_0x352b07['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x19ecea,'*Insert:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_COLUMN',_0x2ed002))};if('deletion'==_0x1496a5['type'])return _0x352b07['length']?{'type':'deletion','content':o(_0x19ecea,'*Remove:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2ed002,'\x22'+_0x352b07['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x19ecea,'*Remove:*\x20%0',o(_0x19ecea,'ELEMENT_TABLE_COLUMN',_0x2ed002))};}}),_0x23e092['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd06382),_0x23e092['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd06382),_0x23e092['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2732b3),_0x23e092['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2732b3),_0x23e092['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21a18b),_0x23e092['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21a18b),_0x23e092['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5c50bd),_0x23e092['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5c50bd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f9643=this['editor'],_0x1b56c4=_0x1f9643['model']['document']['selection'];return(_0x539524,_0x5237d5)=>{_0x1f9643['model']['change'](_0x3a9154=>{const {commandName:_0x2eea91,commandParams:_0x27b426}=_0x5237d5;let _0x65e190=_0x539524[0x0]['end']['nodeBefore'];_0x27b426&&_0x27b426[0x0]&&!0x1===_0x27b426[0x0]['forceValue']&&(_0x65e190=_0x539524[0x0]['start']['nodeAfter']);const _0x39e170=_0x3a9154['createRangeIn'](_0x65e190);if('$graveyard'==_0x39e170['root']['rootName'])return;const _0x2c715a=Array['from'](_0x1b56c4['getRanges']())['map'](_0x1f8b87=>_0x284d24['fromRange'](_0x1f8b87));_0x3a9154['setSelection'](_0x39e170),_0x1f9643['commands']['get'](_0x2eea91)['refresh'](),_0x27b426['push']({'forceDefaultExecution':!0x0}),_0x1f9643['execute'](_0x2eea91,..._0x27b426);const _0x5ddd44=_0x2c715a['filter'](_0x15383e=>'$graveyard'!=_0x15383e['root']['rootName']);_0x5ddd44['length']>0x0&&_0x3a9154['setSelection'](_0x5ddd44);for(const _0x358704 of _0x2c715a)_0x358704['detach']();});};}['_getCoordsForCells'](_0x26ffec){const _0x568382=this['editor']['plugins']['get']('TableUtils');let _0x39deb3=Number['MAX_SAFE_INTEGER'],_0x436552=Number['MIN_SAFE_INTEGER'],_0x4beb8f=Number['MAX_SAFE_INTEGER'],_0x57e9b8=Number['MIN_SAFE_INTEGER'];for(const _0x2dbb07 of _0x26ffec){if('$graveyard'==_0x2dbb07['root']['rootName'])continue;const {row:_0x34b480,column:_0x1fcddc}=_0x568382['getCellLocation'](_0x2dbb07),_0x297881=_0x2dbb07['hasAttribute']('rowspan')?_0x2dbb07['getAttribute']('rowspan')-0x1:0x0,_0x23e2f0=_0x2dbb07['hasAttribute']('colspan')?_0x2dbb07['getAttribute']('colspan')-0x1:0x0;_0x39deb3=_0x34b480<_0x39deb3?_0x34b480:_0x39deb3,_0x436552=_0x34b480+_0x297881>_0x436552?_0x34b480+_0x297881:_0x436552,_0x4beb8f=_0x1fcddc<_0x4beb8f?_0x1fcddc:_0x4beb8f,_0x57e9b8=_0x1fcddc+_0x23e2f0>_0x57e9b8?_0x1fcddc+_0x23e2f0:_0x57e9b8;}return{'minRow':_0x39deb3,'maxRow':_0x436552,'minColumn':_0x4beb8f,'maxColumn':_0x57e9b8};}['_setupColumnsRowsFixing'](){const _0x54eb66=this['editor'],_0x424b61=_0x54eb66['plugins']['get']('TrackChangesEditing'),_0x118219=_0x54eb66['plugins']['get']('TableUtils');_0x54eb66['model']['document']['on']('change:data',()=>{const _0x2e050b=Array['from'](_0x54eb66['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x533e58,data:_0x32f1b4}of _0x2e050b){const {group:_0x4fad8c,id:_0x3efd3b,subType:_0x4d1b32}=_0x424b61['_splitMarkerName'](_0x533e58);if('suggestion'!=_0x4fad8c)continue;if(null!=_0x32f1b4['oldRange'])continue;const _0x3690cb=_0x424b61['getSuggestion'](_0x3efd3b);this['_tablePostFixingSubtypes']['includes'](_0x4d1b32)&&this['_tableSuggestions']['add'](_0x3690cb);}},{'priority':'low'});const _0x57d99d=(_0x1e2dd1,_0x3459f6)=>{let _0x3653ba=!0x1;const _0x1ee6cf=_0x3459f6['createRangeOn'](_0x1e2dd1),_0x21d950=_0x1e2dd1['findAncestor']('table'),_0x240a1e=_0x118219['getCellLocation'](_0x1e2dd1);for(const _0x38df57 of this['_tableSuggestions']){const _0x45f8cb=_0x38df57['subType'],_0x5c6396=_0x45f8cb['startsWith']('tablePaste'),_0x222440=_0x45f8cb['substr'](_0x5c6396?0xa:0x5),_0x113ecd=_0x222440['toLowerCase'](),_0x459207=_0x113ecd['substr'](0x0,0x3)+'span',_0x3b0569='min'+_0x222440,_0x5b3619='max'+_0x222440;if(!_0x38df57['isInContent'])continue;if(_0x21d950!=_0x38df57['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38df57['isIntersectingWithRange'](_0x1ee6cf))continue;const _0x245d51=_0x1e2dd1['hasAttribute'](_0x459207)?_0x1e2dd1['getAttribute'](_0x459207)-0x1:0x0,_0x3099bb=this['_getSuggestionCoords'](_0x38df57),_0x17aa64=_0x3099bb[_0x3b0569],_0x36eaa6=_0x3099bb[_0x5b3619];_0x17aa64<=_0x240a1e[_0x113ecd]&&_0x240a1e[_0x113ecd]+_0x245d51<=_0x36eaa6&&(_0x38df57['addRange'](_0x1ee6cf),_0x3653ba=!0x0);}return _0x3653ba;};_0x54eb66['model']['document']['registerPostFixer'](_0x1f16eb=>{let _0x1c2c98=!0x1;for(const _0x230585 of _0x54eb66['model']['document']['differ']['getChanges']())if('insert'==_0x230585['type']){if('tableRow'==_0x230585['name']){for(const _0x587f05 of _0x230585['position']['nodeAfter']['getChildren']())_0x1c2c98=_0x1c2c98||_0x57d99d(_0x587f05,_0x1f16eb);}else'tableCell'==_0x230585['name']&&(_0x1c2c98=_0x1c2c98||_0x57d99d(_0x230585['position']['nodeAfter'],_0x1f16eb));}return _0x1c2c98;});}['_getSuggestionCoords'](_0x2cd13d){return this['_getCoordsForCells'](_0x2cd13d['getRanges']()['map'](_0x5d7f30=>_0x5d7f30['start']['nodeAfter']));}}function Oe(_0x541332){return Array['from'](new Set(_0x541332)['values']());}class Bt extends _0x262bfa{static get['requires'](){return[Mt];}['afterInit'](){const _0x368e7d=this['editor'],_0x12a01d=_0x368e7d['model']['document']['selection'],_0x8a7b95=_0x368e7d['locale'];if(!_0x368e7d['plugins']['has']('TableEditing'))return;const _0x307386=_0x368e7d['plugins']['get']('TrackChangesEditing'),_0x29e5e1=_0x368e7d['plugins']['get']('TableUtils'),_0x3ee2d1=_0x368e7d['plugins']['get'](Mt);_0x3ee2d1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x307386['enableCommand']('mergeTableCells',()=>{const _0x32978f=_0x29e5e1['getSelectionAffectedTableCells'](_0x368e7d['model']['document']['selection']);_0x368e7d['model']['change'](()=>{_0x307386['markMultiRangeBlockFormat'](_0x32978f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x368e7d['commands']['get']('mergeTableCells')['on']('execute',(_0x2325f9,_0x291125)=>{_0x368e7d['commands']['get']('trackChanges')['value']&&(_0x291125['length']>0x0&&_0x291125[_0x291125['length']-0x1]&&_0x291125[_0x291125['length']-0x1]['forceDefaultExecution']||_0x307386['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2325f9['stop']());},{'priority':'highest'});for(const _0x4d55bb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c3b22=_0x368e7d['commands']['get'](_0x4d55bb);_0x307386['enableCommand'](_0x4d55bb,()=>{const _0x47800a=_0x368e7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a87c0=>_0x4a87c0['is']('element','tableCell')),_0x47db94=_0x1c3b22['value'];_0x368e7d['model']['change'](()=>{_0x307386['markMultiRangeBlockFormat']([_0x47800a,_0x47db94],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37d251 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42c8bb=_0x368e7d['commands']['get'](_0x37d251);_0x307386['enableCommand'](_0x37d251,()=>{const _0x485d0b=_0x29e5e1['getSelectionAffectedTableCells'](_0x368e7d['model']['document']['selection'])[0x0],_0x4a2ee0=_0x485d0b['findAncestor']('table'),{column:_0x2ef4bb,row:_0x1db9d6}=_0x29e5e1['getCellLocation'](_0x485d0b);let _0x8b7e=[];if('horizontally'==_0x42c8bb['direction']){const _0x1c1eef=_0x29e5e1['createTableWalker'](_0x4a2ee0,{'startRow':_0x1db9d6,'endRow':_0x1db9d6,'includeAllSlots':!0x0});_0x8b7e=Array['from'](_0x1c1eef)['map'](_0x437925=>_0x437925['cell']);}else{const _0x1385a8=_0x29e5e1['createTableWalker'](_0x4a2ee0,{'column':_0x2ef4bb,'includeAllSlots':!0x0});_0x8b7e=Array['from'](_0x1385a8)['map'](_0x4c5c71=>_0x4c5c71['cell']);}_0x368e7d['model']['change'](_0x1ad6cf=>{_0x307386['markBlockFormat'](_0x1ad6cf['createRangeOn'](_0x485d0b),{'commandName':_0x37d251,'commandParams':[]},_0x8b7e,_0x37d251);});});}_0x307386['descriptionFactory']['registerDescriptionCallback'](_0x56096f=>{if('formatBlock'!=_0x56096f['type']&&'formatInline'!=_0x56096f['type'])return;const {data:_0x34db1a}=_0x56096f;return _0x34db1a&&'mergeTableCells'==_0x34db1a['commandName']?{'type':'format','content':o(_0x8a7b95,'*Merge\x20cells*')}:void 0x0;}),_0x307386['descriptionFactory']['registerDescriptionCallback'](_0x44aa87=>{if('formatBlock'!=_0x44aa87['type']&&'formatInline'!=_0x44aa87['type'])return;const {data:_0x43f981}=_0x44aa87;return _0x43f981?'splitTableCellVertically'==_0x43f981['commandName']?{'type':'format','content':o(_0x8a7b95,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x43f981['commandName']?{'type':'format','content':o(_0x8a7b95,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x314e0b=_0x3ee2d1['_acceptFormatSuggestionCallbackFactory']();for(const _0x4f9150 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x307386['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f9150,'accept',_0x314e0b);for(const _0xd3f3bd of['splitTableCellVertically','splitTableCellHorizontally'])_0x307386['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd3f3bd,'accept',_0x314e0b);_0x307386['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11076d=>{_0x368e7d['model']['change'](_0x420c60=>{const _0x4f9434=Array['from'](_0x12a01d['getRanges']())['map'](_0x576ff8=>_0x284d24['fromRange'](_0x576ff8));_0x420c60['setSelection'](_0x11076d),_0x368e7d['commands']['get']('mergeTableCells')['refresh'](),_0x368e7d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x318d04=_0x4f9434['filter'](_0x21de56=>'$graveyard'!=_0x21de56['root']['rootName']);_0x318d04['length']>0x0&&_0x420c60['setSelection'](_0x318d04);for(const _0x10cd4b of _0x4f9434)_0x10cd4b['detach']();});});for(const _0x3a25f7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3b1e48=_0x368e7d['commands']['get'](_0x3a25f7);_0x3b1e48['on']('set:isEnabled',(_0x3a21f2,_0xf0fb63,_0x112d15)=>{if(_0x112d15){const _0xd0eaf6=_0x368e7d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf695db=>_0xf695db['is']('element','tableCell'));this['_areMergableCells'](_0x3b1e48['value'],_0xd0eaf6)||(_0x3a21f2['return']=!0x1,_0x3a21f2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe575a3=this['editor']['commands']['get']('mergeTableCells'),_0x3bae54=this['editor']['plugins']['get']('TableUtils');if(!_0xe575a3['isEnabled'])return!0x1;const _0x456f57=_0x3bae54['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f8d3d of _0x456f57)for(const _0x4887f5 of _0x456f57)if(_0x4f8d3d!=_0x4887f5&&!this['_areMergableCells'](_0x4f8d3d,_0x4887f5))return!0x1;return!0x0;}['_areMergableCells'](_0x99f392,_0x55ef8d){const _0x14af65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc59d=this['editor']['model']['createRangeOn'](_0x99f392),_0x140971=this['editor']['model']['createRangeOn'](_0x55ef8d),_0x446a89=new Set(),_0x1c95b4=new Set();for(const _0x5defad of _0x14af65['getSuggestions']())if(('insertion'==_0x5defad['type']||'deletion'==_0x5defad['type']||'mergeTableCells'==_0x5defad['subType'])&&_0x5defad['isInContent']){for(const _0x5b77a3 of _0x5defad['getRanges']())_0x5b77a3['containsRange'](_0x5bc59d,!0x0)&&_0x446a89['add'](_0x5defad['type']+':'+_0x5defad['author']['id']),_0x5b77a3['containsRange'](_0x140971,!0x0)&&_0x1c95b4['add'](_0x5defad['type']+':'+_0x5defad['author']['id']);}if(_0x446a89['size']!=_0x1c95b4['size'])return!0x1;for(const _0x3e46bb of _0x446a89)if(!_0x1c95b4['has'](_0x3e46bb))return!0x1;return!0x0;}}class Tt extends _0x262bfa{static get['requires'](){return[Mt];}['afterInit'](){const _0x55f1a9=this['editor'];if(!_0x55f1a9['plugins']['has']('TableEditing'))return;const _0x3beb7d=_0x55f1a9['locale'],_0x2bc9d0=_0x55f1a9['plugins']['get']('TrackChangesEditing');_0x2bc9d0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2bc9d0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2bc9d0['registerBlockAttribute']('headingRows'),_0x2bc9d0['registerBlockAttribute']('headingColumns'),_0x2bc9d0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3beb7d,'FORMAT_HEADER_ROW')),_0x2bc9d0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3beb7d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x204cae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53e5e7=this['editor']['plugins']['get']('TableUtils'),_0x16b6fb=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x35c1d3({showActiveMarker:_0x9d4410=!0x0,setDataAttribute:_0x416b78=!0x0}={}){return(_0x226ee7,_0x1daf11,_0x2c5293)=>{const {type:_0x2568a3,id:_0x4e9bf5}=_0x204cae['_splitMarkerName'](_0x1daf11['markerName']);if(!_0x204cae['hasSuggestion'](_0x4e9bf5))return;const _0x2a20a5=_0x204cae['getSuggestion'](_0x4e9bf5),_0x142d75=_0x2a20a5['data'];if('formatBlock'!=_0x2a20a5['type']||!_0x142d75||'setTableColumnHeader'!=_0x142d75['commandName'])return;if(_0x1daf11['item'])return void _0x226ee7['stop']();if(!_0x2c5293['consumable']['consume'](_0x1daf11['markerRange'],_0x226ee7['name']))return;const _0x2b196f=_0x1daf11['markerRange']['start']['nodeAfter'],_0x425301=_0x1daf11['markerRange']['end']['nodeBefore'],_0x27631b=_0x2b196f['parent']['parent'],{column:_0x394369}=_0x53e5e7['getCellLocation'](_0x2b196f),{column:_0x10ef12}=_0x53e5e7['getCellLocation'](_0x425301);for(let _0x538572=_0x394369;_0x538572<=_0x10ef12;_0x538572++){const _0x1db32f=_0x53e5e7['createTableWalker'](_0x27631b,{'column':_0x538572,'includeAllSlots':!0x1});for(const _0x17eaf2 of _0x1db32f){const _0x106a52=_0x17eaf2['cell'],_0x3d0d29=_0x2c5293['mapper']['toViewElement'](_0x106a52);_0x2c5293['writer']['addClass']('ck-suggestion-marker-'+_0x2568a3,_0x3d0d29),_0x416b78&&_0x2c5293['writer']['setAttribute']('data-suggestion',_0x4e9bf5,_0x3d0d29),_0x2c5293['mapper']['bindElementToMarker'](_0x3d0d29,_0x1daf11['markerName']),_0x9d4410&&(_0x204cae['activeMarkers']['includes'](_0x1daf11['markerName'])?_0x2c5293['writer']['addClass']('ck-suggestion-marker--active',_0x3d0d29):_0x2c5293['writer']['removeClass']('ck-suggestion-marker--active',_0x3d0d29));}}};}_0x204cae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x16b6fb),_0x204cae['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x16b6fb),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35c1d3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x192cb0,_0x3112ed,_0x145dd9)=>{_0x145dd9['options']['showSuggestionHighlights']&&_0x35c1d3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x192cb0,_0x3112ed,_0x145dd9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xc893af,_0x2d5063,_0x18b55b)=>{const {type:_0x3e73c7,id:_0x30ebb1}=_0x204cae['_splitMarkerName'](_0x2d5063['markerName']);if(!_0x204cae['hasSuggestion'](_0x30ebb1))return;const _0x58cabb=_0x204cae['getSuggestion'](_0x30ebb1),_0x4fdb4b=_0x58cabb['data'];if('formatBlock'!=_0x58cabb['type']||!_0x4fdb4b||'setTableColumnHeader'!=_0x4fdb4b['commandName'])return;const _0x256a4f=_0x18b55b['mapper']['markerNameToElements'](_0x2d5063['markerName']);if(_0x256a4f){for(const _0x4bb309 of _0x256a4f)_0x18b55b['writer']['removeClass']('ck-suggestion-marker-'+_0x3e73c7,_0x4bb309),_0x18b55b['writer']['removeClass']('ck-suggestion-marker--active',_0x4bb309),_0x18b55b['writer']['removeAttribute']('data-suggestion',_0x4bb309),_0x18b55b['mapper']['unbindElementFromMarkerName'](_0x4bb309,_0x2d5063['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430465=this['editor'],_0x41f2b9=_0x430465['locale'];function _0x68796c(_0x8d0cff){return{'type':'format','content':o(_0x41f2b9,'*Format:*\x20%0',_0x8d0cff)};}_0x430465['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x568c7=>{if('formatBlock'!=_0x568c7['type'])return;const {data:_0x48ddc0}=_0x568c7;if(_0x48ddc0){if('setTableRowHeader'==_0x48ddc0['commandName']){const _0x403ac4=_0x48ddc0['commandParams'][0x0]['forceValue'];return _0x68796c(o(_0x41f2b9,_0x403ac4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x48ddc0['commandName']){const _0x45d3d0=_0x48ddc0['commandParams'][0x0]['forceValue'];return _0x68796c(o(_0x41f2b9,_0x45d3d0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x262bfa{['afterInit'](){const _0x12f799=this['editor'],_0x8c2e15=_0x12f799['locale'],_0x3b8808=_0x12f799['plugins']['get']('TrackChangesEditing');function _0x335d87(_0x2377fa){return{'type':'format','content':''+o(_0x8c2e15,'*Set\x20table\x20type:*\x20%0',_0x2377fa)};}_0x12f799['plugins']['has']('TableLayout')&&(_0x3b8808['enableCommand']('insertTableLayout'),_0x3b8808['enableDefaultAttributesIntegration']('tableType'),_0x3b8808['registerBlockAttribute']('tableType'),_0x3b8808['descriptionFactory']['registerElementLabel'](_0x3a2e23=>_0x3a2e23['is']('element','table')&&'layout'===_0x3a2e23['getAttribute']('tableType'),_0x2d5eea=>o(_0x8c2e15,'ELEMENT_LAYOUT_TABLE',_0x2d5eea)),_0x3b8808['descriptionFactory']['registerDescriptionCallback'](_0x3dcd92=>{const {data:_0x23b818}=_0x3dcd92;if(_0x23b818&&'tableType'==_0x23b818['key'])switch(_0x23b818['newValue']){case'layout':return _0x335d87(o(_0x8c2e15,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x335d87(o(_0x8c2e15,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ue['map'](_0x3f8a74=>[_0x3f8a74,null]));class xt extends _0x262bfa{static get['requires'](){return[Mt];}['afterInit'](){const _0x3bcfdf=this['editor'];if(!_0x3bcfdf['plugins']['has']('TableClipboard'))return;const _0x45170d=_0x3bcfdf['plugins']['get']('TrackChangesEditing'),_0x505a2a=_0x3bcfdf['plugins']['get']('TableUtils'),_0x10aab9=_0x3bcfdf['plugins']['get'](Mt),_0x536cc0=_0x3bcfdf['plugins']['get']('TableClipboard'),_0x275984=_0x3bcfdf['plugins']['get']('TableSelection'),_0x1d31bd=_0x3bcfdf['plugins']['get'](_0x4507b7);_0x10aab9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3bcfdf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3bcfdf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x19cf3d=null,_0x18c5b4=!0x1;_0x1d31bd['on']('contentInsertion',(_0x3fb373,_0x146e5e)=>{_0x18c5b4='paste'===_0x146e5e['method'];}),_0x3bcfdf['model']['on']('insertContent',(_0x19afed,_0x3cc3f3)=>{if(!_0x18c5b4&&null===_0x275984['getSelectedTableCells']())return;const [_0x1d2cbf,_0x4418a2]=_0x3cc3f3,_0x1ec59d=_0x3cc3f3[_0x3cc3f3['length']-0x1];_0x1ec59d&&_0x1ec59d['forceDefaultExecution']||_0x45170d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x55a3f3,_0x51c164,_0x381518,_0x319c78,_0x4f0969){if(_0x51c164&&!_0x51c164['is']('documentSelection'))return!0x1;const _0x54cd86=_0x4f0969['getTableIfOnlyTableInContent'](_0x55a3f3,_0x381518);if(!_0x54cd86||!Ge(_0x54cd86,void 0x0,_0x319c78))return!0x1;const _0x101c32=_0x319c78['getSelectionAffectedTableCells'](_0x381518['document']['selection']);if(!_0x101c32['length'])return!0x1;const _0xa60ad2=_0x101c32[0x0]['findAncestor']('table'),_0x12ee51=_0x319c78['getRowIndexes'](_0x101c32),_0x5cd8bd=_0x319c78['getColumnIndexes'](_0x101c32),_0x19fb0f={'startRow':_0x12ee51['first'],'endRow':_0x12ee51['last'],'startColumn':_0x5cd8bd['first'],'endColumn':_0x5cd8bd['last']};return 0x1==_0x101c32['length']&&(_0x19fb0f['endRow']+=_0x319c78['getRows'](_0x54cd86)-0x1,_0x19fb0f['endColumn']+=_0x319c78['getColumns'](_0x54cd86)-0x1),Ge(_0xa60ad2,_0x19fb0f,_0x319c78);}(_0x1d2cbf,_0x4418a2,_0x3bcfdf['model'],_0x505a2a,_0x536cc0)&&(_0x19afed['stop'](),_0x19cf3d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3bcfdf['model']['change'](()=>{_0x3bcfdf['model']['insertContent'](_0x3cc3f3[0x0],_0x3cc3f3[0x1],_0x3cc3f3[0x2],{'forceDefaultExecution':!0x0});const _0x96e4c=_0x38e47f(),{rowInsertionRanges:_0x306883,columnInsertionRanges:_0x34c9a0,insertionRanges:_0x3a4d21,deletionRanges:_0x5c6a25,cells:_0x1fa348}=_0x19cf3d;_0x306883['length']&&_0x45170d['markMultiRangeInsertion'](_0x306883,'tablePasteRow',{'tablePasteChainId':_0x96e4c}),_0x34c9a0['length']&&_0x45170d['markMultiRangeInsertion'](_0x34c9a0,'tablePasteColumn',{'tablePasteChainId':_0x96e4c}),_0x3a4d21['length']&&(_0x45170d['markMultiRangeInsertion'](_0x3a4d21,'tablePaste',{'tablePasteChainId':_0x96e4c,'skipNestingCheck':!0x0}),_0x3a4d21['forEach'](_0x45fd32=>_0x45fd32['detach']?.())),_0x5c6a25['length']&&(_0x45170d['markMultiRangeDeletion'](_0x5c6a25,'tablePaste',{'tablePasteChainId':_0x96e4c,'skipNestingCheck':!0x0}),_0x5c6a25['forEach'](_0x34b32b=>_0x34b32b['detach']?.()));const _0x434b0a=_0x45170d['markMultiRangeBlockFormat'](_0x1fa348['map'](({element:_0x372d1})=>_0x372d1),{'formatGroupId':_0x38e47f()},[],'tablePasteCell',{'tablePasteChainId':_0x96e4c});if(_0x434b0a){const _0x11a93e=_0x434b0a['getMarkers'](),_0x50544b=[];for(const {element:_0x3ae70c,attributes:_0x5a552f}of _0x1fa348){if(!_0x5a552f)continue;const _0x1ef235=_0x3bcfdf['model']['createRangeOn'](_0x3ae70c),_0x5a94e4=_0x11a93e['find'](_0x4f1986=>_0x4f1986['getRange']()['isEqual'](_0x1ef235));_0x5a94e4&&_0x50544b['push']([_0x5a94e4['name'],_0x5a552f]);}_0x50544b['length']&&_0x434b0a['setAttribute']('markerAttributes',Object['fromEntries'](_0x50544b));}_0x19cf3d=null;}));},{'priority':_0x398195['high']+0xa}),_0x1d31bd['on']('contentInsertion',()=>{_0x18c5b4=!0x1;},{'priority':'lowest'}),_0x3bcfdf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x234c71,_0x3979e1)=>{const [_0x35e13c,_0x5ae899,,_0x4e9918]=_0x3979e1;if(!_0x19cf3d)return;_0x234c71['stop']();const _0x307e35=_0x35e13c['cell'],_0x5219c2=_0x5ae899,_0x50692a=ze(_0x307e35),_0x1c0d45=ze(_0x5219c2);_0x234c71['return']=_0x307e35;let _0x31a0bc=null,_0x3e2591=null;if(_0x1c0d45||_0x50692a){if(_0x50692a&&!_0x1c0d45){_0x4e9918['remove'](_0x307e35['getChild'](0x0));for(const _0x2271b5 of Array['from'](_0x5219c2['getChildren']()))_0x4e9918['insert'](_0x2271b5,_0x307e35,'end');const _0x1de2a0=_0x19cf3d['rowInsertionIndexes']['includes'](_0x35e13c['row']),_0x4a336a=_0x19cf3d['columnInsertionIndexes']['includes'](_0x35e13c['column']);_0x1de2a0||_0x4a336a||(_0x31a0bc=_0x284d24['fromRange'](_0x4e9918['createRangeIn'](_0x307e35)));}else _0x1c0d45&&!_0x50692a&&(_0x3e2591=_0x4e9918['createRangeIn'](_0x307e35));}else{const _0x414d66=_0x4e9918['createElement']('tableCellSuggestion'),_0x3be24c=_0x4e9918['createElement']('tableCellSuggestion');_0x4e9918['wrap'](_0x4e9918['createRangeIn'](_0x307e35),_0x3be24c),_0x4e9918['insert'](_0x414d66,_0x307e35,0x0);for(const _0x390685 of Array['from'](_0x5219c2['getChildren']()))_0x4e9918['insert'](_0x390685,_0x414d66,'end');_0x31a0bc=_0x284d24['fromRange'](_0x4e9918['createRangeOn'](_0x414d66)),_0x3e2591=_0x284d24['fromRange'](_0x4e9918['createRangeOn'](_0x3be24c));}const _0x17c1c5=Array['from'](_0x5219c2['getAttributes']())['filter'](([_0x42e38f])=>Ue['includes'](_0x42e38f));_0x19cf3d['cells']['push']({'element':_0x307e35,'attributes':_0x17c1c5['length']?Object['fromEntries'](_0x17c1c5):null}),_0x31a0bc&&_0x19cf3d['insertionRanges']['push'](_0x31a0bc),_0x3e2591&&_0x19cf3d['deletionRanges']['push'](_0x3e2591);},{'priority':'high'}),_0x505a2a['on']('insertColumns',(_0x4fd579,_0x1c53bc)=>{const [_0x308a46,_0x41d90f={}]=_0x1c53bc;if(!_0x19cf3d)return;const _0x34c7b6=_0x41d90f['at']||0x0,_0x51e2ca=_0x41d90f['columns']||0x1;_0x19cf3d['columnInsertionIndexes']=new Array(_0x51e2ca)['fill'](_0x34c7b6)['map']((_0x2c9adf,_0x2a2fa6)=>_0x2c9adf+_0x2a2fa6);for(const {cell:_0x5b3e1e}of _0x505a2a['createTableWalker'](_0x308a46,{'startColumn':_0x34c7b6,'endColumn':_0x34c7b6+_0x51e2ca-0x1}))_0x19cf3d['columnInsertionRanges']['push'](_0x3bcfdf['model']['createRangeOn'](_0x5b3e1e));},{'priority':'low'}),_0x505a2a['on']('insertRows',(_0x369d02,_0x16f0fa)=>{const [_0x98c89c,_0x253663={}]=_0x16f0fa;if(!_0x19cf3d)return;const _0x346be8=_0x253663['at']||0x0,_0x5d6576=_0x253663['rows']||0x1;_0x19cf3d['rowInsertionIndexes']=new Array(_0x5d6576)['fill'](_0x346be8)['map']((_0x37ab61,_0x3e47c4)=>_0x37ab61+_0x3e47c4);for(const {cell:_0x175893}of _0x505a2a['createTableWalker'](_0x98c89c,{'startRow':_0x346be8,'endRow':_0x346be8+_0x5d6576-0x1}))_0x19cf3d['rowInsertionRanges']['push'](_0x3bcfdf['model']['createRangeOn'](_0x175893));},{'priority':'low'}),_0x45170d['descriptionFactory']['registerDescriptionCallback'](_0x5fb8db=>{if(_0x5fb8db['subType']&&_0x5fb8db['subType']['startsWith']('tablePaste'))return _0x5fb8db['previous']?{}:{'type':'insertion','content':o(_0x3bcfdf['locale'],'*Replace\x20table\x20cells*')};});const _0x3b850e=()=>!0x1;for(const _0x9b104 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x45170d['_suggestionFactory']['registerCustomCallback']('insertion',_0x9b104,'join',_0x3b850e),_0x45170d['_suggestionFactory']['registerCustomCallback']('deletion',_0x9b104,'join',_0x3b850e),_0x45170d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9b104,'join',_0x3b850e);_0x45170d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3b850e),_0x45170d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3cb403,_0x2f9cfc,_0x44d683)=>{const _0x22e45c=_0x3cb403['map'](_0x569677=>_0x569677['getContainedElement']())['filter'](_0x5950fd=>_0x5950fd),_0x3e4fd4=new Map(_0x22e45c['map'](_0x5c09a3=>[_0x5c09a3,null]));if(_0x19cf3d){for(const {element:_0x254c48,attributes:_0x41182f}of _0x19cf3d['cells'])_0x41182f&&_0x3e4fd4['set'](_0x254c48,_0x41182f);}else{if(_0x44d683&&_0x44d683['markerAttributes'])for(const [_0x5ad312,_0x5c5e9e]of Object['entries'](_0x44d683['markerAttributes'])){const _0x3df6dc=_0x3bcfdf['model']['markers']['get'](_0x5ad312),_0x25e298=_0x3df6dc?_0x3df6dc['getRange']()['getContainedElement']():null;_0x25e298&&_0x3e4fd4['set'](_0x25e298,_0x5c5e9e);}}_0x3bcfdf['model']['change'](_0x4d535c=>{for(const [_0x29730,_0x8802b9]of _0x3e4fd4)_0x4d535c['setAttributes']({...He,..._0x8802b9},_0x29730);});});const _0x36b682=(_0xc63c44,_0x2700e6)=>{_0x45170d['_suggestionFactory']['registerCustomCallback'](_0xc63c44,'tablePaste',_0x2700e6,(_0x2e9d81,_0x2fef9d,_0x4a4eab)=>{_0x3bcfdf['model']['change'](_0x5723dc=>{const _0x1481f1=[];for(const _0x4fe6d5 of _0x2e9d81){const _0x2e7eba=_0x4fe6d5['start']['nodeAfter'];_0x2e7eba['is']('element','tableCellSuggestion')&&_0x1481f1['push'](_0x2e7eba);}_0x45170d['_suggestionFactory']['getSuggestionCallback'](_0xc63c44,null,_0x2700e6)(_0x2e9d81,_0x2fef9d,_0x4a4eab);for(const _0x4d8cbd of _0x1481f1)'$graveyard'!=_0x4d8cbd['root']['rootName']&&_0x5723dc['unwrap'](_0x4d8cbd);});});};_0x36b682('insertion','accept'),_0x36b682('insertion','discard'),_0x36b682('deletion','accept'),_0x36b682('deletion','discard'),_0x45170d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38f1dd=>{const _0x4e7199=_0x38f1dd['map'](_0x31bf17=>_0x31bf17['getContainedElement']()),_0x2ec090=_0x4e7199[0x0]['findAncestor']('table'),{minRow:_0x4b0215,maxRow:_0x35e33c}=_0x10aab9['_getCoordsForCells'](_0x4e7199);_0x505a2a['removeRows'](_0x2ec090,{'at':_0x4b0215,'rows':_0x35e33c-_0x4b0215+0x1});}),_0x45170d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x46296f=>{const _0x3b6d70=_0x46296f['map'](_0x4e8246=>_0x4e8246['getContainedElement']()),_0x429c83=_0x3b6d70[0x0]['findAncestor']('table'),{minColumn:_0x2b3d70,maxColumn:_0x4b2b7c}=_0x10aab9['_getCoordsForCells'](_0x3b6d70);_0x505a2a['removeColumns'](_0x429c83,{'at':_0x2b3d70,'columns':_0x4b2b7c-_0x2b3d70+0x1});});const _0x3c2f71=(_0x291ade,_0x483779)=>{if(!_0x483779['subType']||!_0x483779['subType']['startsWith']('tablePaste'))return;const _0x162c0c=_0x483779['attributes']['tablePasteChainId'],_0x5968b8=_0x45170d['getSuggestions']()['filter'](_0xcdc598=>_0xcdc598['isInContent']&&_0xcdc598['attributes']&&_0xcdc598['attributes']['tablePasteChainId']==_0x162c0c);_0x5968b8['length']&&_0x483779['getAllAdjacentSuggestions']()['length']!=_0x5968b8['length']&&_0x5968b8['reduce']((_0x25743c,_0x4e69be)=>(_0x25743c['next']=_0x4e69be,_0x4e69be['previous']=_0x25743c,_0x4e69be));};function _0x960c5(_0x5dc6f6,_0x449713=!0x0){const {id:_0x434e7e,authorId:_0x39d400}=_0x45170d['_splitMarkerName'](_0x5dc6f6['markerName']),_0x9157bb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5d9d5d=_0x45170d['activeMarkers']['includes'](_0x5dc6f6['markerName']);return _0x5d9d5d&&_0x9157bb['push']('ck-suggestion-marker--active'),{'classes':_0x9157bb,'attributes':{'data-suggestion':_0x434e7e,'data-author-id':_0x39d400},'priority':_0x5d9d5d&&_0x449713?0xbc2:0xbb8};}_0x45170d['on']('suggestionLoaded',_0x3c2f71,{'priority':'high'}),_0x45170d['on']('suggestionUnloaded',_0x3c2f71,{'priority':'high'}),_0x3bcfdf['model']['document']['registerPostFixer'](()=>{let _0x13951b=!0x1;const _0x64dfb=Array['from'](_0x3bcfdf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7f2602,data:_0x2c0b8a}of _0x64dfb){const {group:_0x2833d9,type:_0x5c7df7,id:_0xd4194a}=_0x45170d['_splitMarkerName'](_0x7f2602);if('suggestion'!=_0x2833d9||'deletion'!=_0x5c7df7||_0x2c0b8a['oldRange'])continue;if(!_0x45170d['hasSuggestion'](_0xd4194a))continue;const _0x14f450=_0x45170d['getSuggestion'](_0xd4194a)['getRanges'](),_0x41e21f=_0x3bcfdf['plugins']['get']('Users')['me'];for(const _0x500e4b of _0x45170d['getSuggestions']()){if(!_0x500e4b['isInContent']||_0x500e4b['author']!=_0x41e21f)continue;if('formatBlock'!=_0x500e4b['type']||'tablePasteCell'!=_0x500e4b['subType'])continue;if(_0x500e4b['getRanges']()['every'](_0x42f7f8=>_0x14f450['some'](_0x398902=>_0x398902['containsRange'](_0x42f7f8,!0x0)))){for(const _0x1c7b12 of _0x500e4b['getAllAdjacentSuggestions']())_0x1c7b12['isInContent']&&(_0x1c7b12['discard'](),_0x13951b=!0x0);}}}return _0x13951b;}),_0x3bcfdf['model']['document']['registerPostFixer'](_0xd7b60c=>{const _0x5ef1c3=_0x3bcfdf['commands']['get']('redo');if(!_0x5ef1c3||!_0x5ef1c3['_createdBatches']['has'](_0xd7b60c['batch']))return!0x1;let _0x34b145=!0x1;const _0x44f3da=_0x3bcfdf['plugins']['get']('Users')['me'],_0x3c9d9c=_0x3bcfdf['model']['document']['differ']['getChanges'](),_0x454570=Array['from'](_0x3bcfdf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4cee20,data:_0x3de76c})=>{const {group:_0x2d0e6a,subType:_0x2e832a,authorId:_0x1f4ebc}=_0x45170d['_splitMarkerName'](_0x4cee20);return'suggestion'==_0x2d0e6a&&'tablePaste'==_0x2e832a&&_0x1f4ebc==_0x44f3da['id']&&!_0x3de76c['oldRange'];});for(const _0xf3850f of _0x3c9d9c){if('insert'!=_0xf3850f['type']||'tableCellSuggestion'!=_0xf3850f['name']||0x1!=_0xf3850f['length'])continue;const _0x584010=_0xd7b60c['createRange'](_0xf3850f['position'],_0xf3850f['position']['getShiftedBy'](0x1));if(!_0x454570['find'](({data:_0x1d3b9a})=>_0x1d3b9a['newRange']['isEqual'](_0x584010))){for(const {name:_0x9074a9,data:_0x411bdb}of _0x454570)if(_0x584010['containsRange'](_0x411bdb['newRange'])){_0xd7b60c['updateMarker'](_0x9074a9,{'range':_0x584010}),_0x34b145=!0x0;break;}}}return _0x34b145;}),_0x3bcfdf['model']['document']['registerPostFixer'](_0x2c9289=>{let _0x264d57=!0x1;const _0x566cfb=_0x3bcfdf['plugins']['get']('Users')['me'],_0x163a2d=_0x45170d['getSuggestions']()['filter'](_0x2fd9bc=>_0x2fd9bc['isInContent']&&_0x2fd9bc['author']==_0x566cfb),_0x108b74=new Set(),_0x136ed8=new Set();for(const _0x3ce71a of _0x163a2d)if('tablePaste'==_0x3ce71a['subType'])for(const _0x42a834 of _0x3ce71a['getMarkers']()){const _0x15bfdc=_0x42a834['getRange']()['getContainedElement']();if(_0x15bfdc){if(_0x15bfdc['is']('element','tableCellSuggestion')&&ze(_0x15bfdc)){_0x3ce71a['removeMarker'](_0x42a834['name']),_0x108b74['add'](_0x15bfdc),_0x264d57=!0x0;const _0x534df5=_0x15bfdc['nextSibling'],_0x497ec1=_0x15bfdc['previousSibling'],_0x4c22b3=_0x534df5&&_0x534df5['is']('element','tableCellSuggestion'),_0x44a8e4=_0x497ec1&&_0x497ec1['is']('element','tableCellSuggestion');_0x4c22b3&&!_0x108b74['has'](_0x534df5)&&_0x136ed8['add'](_0x534df5),_0x44a8e4&&!_0x108b74['has'](_0x497ec1)&&_0x136ed8['add'](_0x497ec1);}else _0x15bfdc['is']('element','paragraph')&&_0x15bfdc['isEmpty']&&(_0x3ce71a['removeMarker'](_0x42a834['name']),_0x264d57=!0x0);}}else{if('tablePasteCell'==_0x3ce71a['subType']){if(!_0x3ce71a['attributes']||!_0x3ce71a['attributes']['tablePasteChainId'])continue;const _0x2d0ae4=_0x3ce71a['attributes']['markerAttributes'];if(_0x2d0ae4&&Object['keys'](_0x2d0ae4)['length'])continue;const _0x37c642=_0x3ce71a['attributes']['tablePasteChainId'];let _0x985245=!0x0,_0x576343=!0x0;for(const _0x5f2890 of _0x163a2d)if(_0x5f2890['subType']&&_0x5f2890['subType']['startsWith']('tablePaste')){if(!_0x5f2890['attributes']['tablePasteChainId']){_0x576343=!0x1;break;}if(_0x5f2890['id']!=_0x3ce71a['id']&&_0x5f2890['attributes']['tablePasteChainId']==_0x37c642){_0x985245=!0x1;break;}}_0x576343&&_0x985245&&(_0x3ce71a['removeMarkers'](),_0x264d57=!0x0);}}for(const _0x18a4ba of _0x108b74)_0x2c9289['remove'](_0x18a4ba);for(const _0x5d5d85 of _0x136ed8)_0x2c9289['unwrap'](_0x5d5d85);return _0x264d57;}),_0x3bcfdf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3a645c=>_0x960c5(_0x3a645c),'converterPriority':'high'}),_0x3bcfdf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3032fa,_0xf1ad0b)=>_0xf1ad0b['options']['showSuggestionHighlights']?_0x960c5(_0x3032fa,!0x1):null,'converterPriority':'high'});const _0x3804b4=_0x3bcfdf['editing']['view'];this['listenTo'](_0x3804b4['document'],'clipboardOutput',(_0x42eb49,_0x158f26)=>{const _0x5bcaa8=[];for(const _0xa212eb of _0x3804b4['createRangeIn'](_0x158f26['content'])['getItems']())_0xa212eb['is']('element','suggestion-td')&&_0x5bcaa8['push'](_0xa212eb);_0x3804b4['change'](_0x3fadf5=>{for(const _0xb927bf of _0x5bcaa8)_0x3fadf5['move'](_0x3fadf5['createRangeIn'](_0xb927bf),_0x3fadf5['createPositionBefore'](_0xb927bf)),_0x3fadf5['remove'](_0xb927bf);});});}}function ze(_0x5aad0d){if(_0x5aad0d['isEmpty'])return!0x0;const _0x1784ab=_0x5aad0d['getChild'](0x0);return _0x1784ab['is']('element','paragraph')&&_0x1784ab['isEmpty'];}function Ge(_0x47e0b6,_0x22f908={},_0x3f8e34){for(const {isAnchor:_0x3a08b5,cellHeight:_0x2d8510,cellWidth:_0x5e97d7}of _0x3f8e34['createTableWalker'](_0x47e0b6,{'includeAllSlots':!0x0,..._0x22f908}))if(!_0x3a08b5||0x1!=_0x2d8510||0x1!=_0x5e97d7)return!0x1;return!0x0;}class Et extends _0x262bfa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4cf7bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cf7bb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4cf7bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4cf7bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cf7bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4cf7bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4cf7bb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x53fc4e,_0x373953){const _0x40c994=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e929f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x399acc=_0x373953['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x893cb5=_0x3e929f['getColumnGroupElement'](_0x399acc);let _0x1a66ec=_0x893cb5?_0x3e929f['getTableColumnsWidths'](_0x893cb5):null,_0x3672e9=_0x399acc['getAttribute']('tableWidth')||null;const _0x5a69a4=_0x373953['tableWidth']||_0x3672e9,_0x2b4c77=_0x373953['columnWidths']||_0x1a66ec,_0x5ccccb=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c429e of _0x40c994['getSuggestions']()){const _0x2344eb=_0x2c429e['getContainedElement']();if('resizeTable'===_0x2c429e['subType']&&_0x2344eb===_0x399acc){_0x2c429e['author']!==_0x5ccccb&&_0x2c429e['discard']();const _0xd50450=_0x2c429e['data']['commandParams'];_0x3672e9=_0xd50450[0x0]['tableWidth'],_0x1a66ec=_0xd50450[0x0]['columnWidths'];break;}}_0x53fc4e({'table':_0x399acc,'tableWidth':_0x5a69a4,'columnWidths':_0x2b4c77}),_0x40c994['markBlockFormat'](_0x399acc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3672e9,'columnWidths':_0x1a66ec}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x34e030){if('formatBlock'!=_0x34e030['type']&&'formatInline'!=_0x34e030['type'])return;const {data:_0x25c4aa}=_0x34e030;if(_0x25c4aa&&'resizeTable'===_0x25c4aa['formatGroupId']){const _0x5c3a10='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5c3a10)};}}}class Rt extends _0x262bfa{['afterInit'](){const _0x5bca92=this['editor'];_0x5bca92['plugins']['has']('Template')&&_0x5bca92['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x262bfa{['afterInit'](){const _0x471469=this['editor'];if(!_0x471469['commands']['get']('insertTableOfContents'))return;_0x471469['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe29ba=_0x471469['plugins']['get']('TrackChangesEditing'),_0x5e71d0=_0x471469['locale'];_0xe29ba['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4d9cc6=>o(_0x5e71d0,'ELEMENT_TABLE_OF_CONTENTS',_0x4d9cc6));}}class Vt extends _0x262bfa{['afterInit'](){const _0x14fa99=this['editor'];if(!_0x14fa99['plugins']['has']('Title'))return;const _0x55689f=_0x14fa99['plugins']['get']('TrackChangesEditing');_0x55689f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x14fa99['locale'],'ELEMENT_TITLE')),_0x14fa99['model']['document']['registerPostFixer'](_0x29e032=>{let _0x39cc9e=!0x1;const _0x57d861=Array['from'](_0x14fa99['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23b2c6,data:_0xb37c0e}of _0x57d861){const {group:_0x2d5fe1}=_0x55689f['_splitMarkerName'](_0x23b2c6);if('suggestion'!==_0x2d5fe1||!_0xb37c0e['newRange'])continue;const _0x399623=_0xb37c0e['newRange'],_0x43f067=_0x399623['end']['nodeBefore'];if(!_0x43f067||!_0x43f067['is']('element','title-content'))continue;if(!_0x399623['start']['isTouching'](_0x399623['end']))continue;const _0x532388=_0x14fa99['model']['schema']['getNearestSelectionRange'](_0x399623['end'],'forward');if(_0x532388&&_0x532388['isCollapsed']){const _0x4319ae=_0x29e032['createRange'](_0x399623['start'],_0x532388['start']);_0x4319ae['isEqual'](_0x399623)||(_0x29e032['updateMarker'](_0x23b2c6,{'range':_0x4319ae}),_0x39cc9e=!0x0);}_0x39cc9e||(_0x29e032['removeMarker'](_0x23b2c6),_0x39cc9e=!0x0);}return _0x39cc9e;});}}class Ft extends _0x262bfa{['afterInit'](){const _0x5b0f4a=this['editor'],_0x155978=_0x5b0f4a['plugins']['get']('TrackChangesEditing');_0x5b0f4a['plugins']['has']('Uploadcare')&&(_0x155978['enableCommand']('uploadcare'),_0x5b0f4a['plugins']['has']('UploadcareImageEdit')&&(_0x155978['enableCommand']('uploadcareImageEdit'),_0x155978['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x155978['registerBlockAttribute']('uploadcareImageId'),_0x155978['descriptionFactory']['registerDescriptionCallback'](_0x70e015=>{if('attribute'!=_0x70e015['type'])return;const {data:_0x1d57d9}=_0x70e015;return _0x1d57d9&&'uploadcareImageId'==_0x1d57d9['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x262bfa{['afterInit'](){const _0xf5afb1=this['editor'],_0x27e74a=_0xf5afb1['plugins']['get']('TrackChangesEditing');_0xf5afb1['plugins']['has']('UndoEditing')&&(_0x27e74a['enableCommand']('undo'),_0x27e74a['enableCommand']('redo'));}}class Gt extends _0x262bfa{static get['requires'](){return[Mt];}['afterInit'](){const _0x63fda0=this['editor'];if(!_0x63fda0['plugins']['has']('TableCaptionEditing'))return;_0x63fda0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x262bfa{['tableProperties'];['tableCellProperties'];constructor(_0x165995){super(_0x165995),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 _0xda4cb5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e34f3 of this['tableProperties'])_0xda4cb5['enableCommand'](_0x2e34f3,(_0xac63fd,_0x1052ad)=>{const _0x541aa8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e34f3,[_0x541aa8],this['tableProperties'],'tableProperties',_0xac63fd,_0x1052ad);});_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xda4cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f405c,_0x4587f2)=>this['handleDiscardAction'](this['tableProperties'],_0x2f405c,_0x4587f2)),_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55a094 of this['tableCellProperties'])_0xda4cb5['enableCommand'](_0x55a094,(_0x14ff7a,_0x4a34d7)=>{const _0x4fd462=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55a094,_0x4fd462,this['tableCellProperties'],'tableCellProperties',_0x14ff7a,_0x4a34d7);});_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xda4cb5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3251e9,_0x2f88d2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3251e9,_0x2f88d2)),_0xda4cb5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xda4cb5['descriptionFactory']['registerDescriptionCallback'](_0x3c011e=>this['handleSuggestionDescription'](_0x3c011e)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x503901,_0x2968cd,_0x4c29b5,_0x282fea,_0xad67c4,_0x16547e){const _0x2b7edd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x16547e['batch'],()=>{for(const _0x1bc100 of _0x2968cd){if(this['_getSuggestion'](_0x1bc100,_0x282fea))_0xad67c4(_0x16547e);else{const _0x2861bc={};for(const _0x100bea of _0x4c29b5){const _0x314bfa=_0x1bc100['getAttribute'](_0x100bea);void 0x0!==_0x314bfa&&(_0x2861bc[_0x100bea]=_0x314bfa);}_0xad67c4(_0x16547e),_0x2b7edd['markBlockFormat'](_0x1bc100,{'commandParams':[_0x2861bc]},[],_0x282fea);}}});}['handleDiscardAction'](_0x39c0fa,_0x566684,_0x1d7333){const _0x4d0a39=_0x566684[0x0]['start']['nodeAfter'],_0x145f35=_0x1d7333['commandParams'][0x0];this['editor']['model']['change'](_0x11e8e6=>{for(const _0x2079ce of _0x39c0fa)void 0x0!==_0x145f35[_0x2079ce]?_0x11e8e6['setAttribute'](_0x2079ce,_0x145f35[_0x2079ce],_0x4d0a39):_0x11e8e6['removeAttribute'](_0x2079ce,_0x4d0a39);});}['handleSuggestionDescription'](_0x34b02c){if(_0x34b02c['data'])switch(_0x34b02c['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'](_0x1a6517,_0x5b5d40){const _0x2bc9b9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b7619 of _0x2bc9b9['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d8658=_0x1b7619['getContainedElement']();if(_0x1b7619['subType']===_0x5b5d40&&_0x4d8658===_0x1a6517)return _0x1b7619;}return null;}['_registerTablePropertiesAttributes'](){const _0x16f72f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x286ae0=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x31f120 of _0x286ae0){const _0x357405=_0x31f120['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x16f72f['registerBlockAttribute'](_0x31f120),_0x16f72f['descriptionFactory']['registerAttributeLabel'](_0x31f120,o(this['editor']['locale'],'FORMAT_'+_0x357405));}}}class Jt extends _0x262bfa{['afterInit'](){const _0x42fedf=this['editor'];if(!_0x42fedf['plugins']['has']('LineHeight'))return;const _0x3d56d1=_0x42fedf['plugins']['get']('TrackChangesEditing'),_0x5e3302=_0x42fedf['locale'];_0x3d56d1['enableDefaultAttributesIntegration']('lineHeight'),_0x3d56d1['registerBlockAttribute']('lineHeight'),_0x3d56d1['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5e3302,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x262bfa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xf60a71,_0xc0a12f,_0x55da65,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e61c3){super(_0x5e61c3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2bdfd4,_0x20e4f4,_0x4ab068,_0x5a2a58)=>{this['_model']['change'](()=>{for(const _0x28c323 of[..._0x5a2a58,..._0x4ab068])this['_model']['markers']['has'](_0x28c323)&&_0x5e61c3['editing']['reconvertMarker'](_0x28c323);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5e61c3['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(),_0x5e61c3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5e61c3['config']['get']('trackChanges.trackFormatChanges'),_0x5e61c3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5e61c3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5e61c3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b2ff4=this['editor'],_0xe898fc=(_0x16bac8,_0x25a09d)=>{if('attribute'!=_0x16bac8)return'ck-suggestion-marker-'+_0x16bac8;const _0x2ef826=_0x25a09d['split']('|')[0x0];return this['_isBlockAttribute'](_0x2ef826)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1b2ff4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x49755a=>{const {id:_0x22eb5a,authorId:_0x16b7d1,type:_0xc2e141,subType:_0x56de76}=this['_splitMarkerName'](_0x49755a['markerName']),_0x2f47e0=['ck-suggestion-marker',_0xe898fc(_0xc2e141,_0x56de76)];let _0x56d86a=0xbb8;return this['activeMarkers']['includes'](_0x49755a['markerName'])&&(_0x2f47e0['push']('ck-suggestion-marker--active'),_0x56d86a=0xbc2),'deletion'==_0xc2e141&&(_0x56d86a+=0x5),{'classes':_0x2f47e0,'attributes':{'data-suggestion':_0x22eb5a,'data-author-id':_0x16b7d1},'priority':_0x56d86a};}}),_0x1b2ff4['conversion']['for']('dataDowncast')['add'](_0x38f99c=>{_0x38f99c['on']('addMarker:suggestion',(_0x52c8a9,_0x295884,_0x29fd01)=>{if(!_0x29fd01['options']['showSuggestionHighlights'])return;const _0x2aa7ea=_0x295884['item'];if(!_0x2aa7ea)return;const _0x15e6a1=_0x29fd01['mapper']['toViewElement'](_0x2aa7ea);_0x1b2ff4['model']['schema']['isObject'](_0x2aa7ea)&&_0x15e6a1&&!_0x15e6a1['getCustomProperty']('widget')&&_0x15e6a1['is']('containerElement')&&_0x5be7a9(_0x15e6a1,_0x29fd01['writer']);},{'priority':'high'});}),_0x1b2ff4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x509bc9,_0x154c3d)=>{if(!_0x154c3d['options']['showSuggestionHighlights'])return null;const {id:_0x1eef41,authorId:_0x41054a,type:_0x3c1bd2,subType:_0x615a54}=this['_splitMarkerName'](_0x509bc9['markerName']);return{'classes':['ck-suggestion-marker',_0xe898fc(_0x3c1bd2,_0x615a54)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1eef41,'data-author-id':_0x41054a}};}});const _0x1cd5ca=({showActiveMarkers:_0x1cc2e4=!0x0,isAttributeSuggestion:_0x15e8fc=!0x1}={})=>(_0x5abcb0,_0x2dba2e,_0x510c81)=>{if(!_0x2dba2e['item'])return;const {id:_0x2e4d44,authorId:_0x366051,subType:_0x2f89ce}=this['_splitMarkerName'](_0x2dba2e['markerName']);if(_0x15e8fc){const _0x2e43f6=ae(_0x2f89ce);if(!this['_isBlockAttribute'](_0x2e43f6))return;}if(_0x2dba2e['item']['is']('selection'))return void _0x510c81['consumable']['consume'](_0x2dba2e['item'],_0x5abcb0['name']);const _0x193500=_0x510c81['mapper']['toViewElement'](_0x2dba2e['item']);if(_0x2dba2e['item']['is']('element')&&_0x1b2ff4['model']['schema']['isBlock'](_0x2dba2e['item'])&&!_0x193500['getCustomProperty']('addHighlight')){_0x510c81['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x193500),_0x510c81['writer']['setAttribute']('data-suggestion',_0x2e4d44,_0x193500),_0x510c81['writer']['setAttribute']('data-author-id',_0x366051,_0x193500),_0x510c81['mapper']['bindElementToMarker'](_0x193500,_0x2dba2e['markerName']),_0x1cc2e4&&(this['activeMarkers']['includes'](_0x2dba2e['markerName'])?_0x510c81['writer']['addClass']('ck-suggestion-marker--active',_0x193500):_0x510c81['writer']['removeClass']('ck-suggestion-marker--active',_0x193500));for(const _0x46850e of _0x1b2ff4['model']['createRangeIn'](_0x2dba2e['item'])['getItems']())_0x510c81['consumable']['consume'](_0x46850e,_0x5abcb0['name']);_0x510c81['consumable']['consume'](_0x2dba2e['item'],_0x5abcb0['name']);}};_0x1b2ff4['conversion']['for']('dataDowncast')['add'](_0x14c692=>{_0x14c692['on']('addMarker:suggestion:formatBlock',(_0x450d12,_0x314e61,_0x43df99)=>{_0x43df99['options']['showSuggestionHighlights']&&_0x1cd5ca({'showActiveMarkers':!0x1})(_0x450d12,_0x314e61,_0x43df99);},{'priority':'highest'});}),_0x1b2ff4['conversion']['for']('dataDowncast')['add'](_0x3e232c=>{_0x3e232c['on']('addMarker:suggestion:attribute',(_0x20638f,_0x1c61e8,_0x299de3)=>{_0x299de3['options']['showSuggestionHighlights']&&_0x1cd5ca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20638f,_0x1c61e8,_0x299de3);},{'priority':'highest'});}),_0x1b2ff4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x272da1,_0x2c8896)=>{if(_0x2c8896['options']['showSuggestionHighlights']){const {id:_0xf76e7a,authorId:_0x1a08c5}=this['_splitMarkerName'](_0x272da1);return _0x272da1['includes'](':split')||_0x272da1['includes'](':merge')?{'group':'suggestion','name':_0x272da1['substr'](0xb),'attributes':{'data-suggestion':_0xf76e7a,'data-author-id':_0x1a08c5}}:null;}return{'group':'suggestion','name':_0x272da1['substr'](0xb)};}}),_0x1b2ff4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x596200,{writer:_0x426e4e})=>{let _0x3c83be='suggestion:'+_0x596200['getAttribute']('suggestion-type')+':'+_0x596200['getAttribute']('id');return _0x596200['getAttribute']('marker-count')&&(_0x3c83be+=':'+_0x596200['getAttribute']('marker-count')),_0x426e4e['createElement']('$marker',{'data-name':_0x3c83be});}}),_0x1b2ff4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b2ff4['conversion']['for']('editingDowncast')['add'](_0x142fdd=>{_0x142fdd['on']('addMarker:suggestion:formatBlock',_0x1cd5ca(),{'priority':'high'});}),_0x1b2ff4['conversion']['for']('editingDowncast')['add'](_0x7691dd=>{_0x7691dd['on']('addMarker:suggestion:attribute',_0x1cd5ca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1b2ff4['conversion']['for']('editingDowncast')['add'](_0x562157=>{_0x562157['on']('removeMarker:suggestion:formatBlock',(_0x288353,_0x4538ef,_0x5dd3a7)=>{const _0x64e9c6=_0x5dd3a7['mapper']['markerNameToElements'](_0x4538ef['markerName']);if(_0x64e9c6){for(const _0x3a8fcd of _0x64e9c6)_0x3a8fcd['getCustomProperty']('addHighlight')||(_0x5dd3a7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a8fcd),_0x5dd3a7['writer']['removeAttribute']('data-suggestion',_0x3a8fcd),_0x5dd3a7['writer']['removeAttribute']('data-author-id',_0x3a8fcd),_0x5dd3a7['mapper']['unbindElementFromMarkerName'](_0x3a8fcd,_0x4538ef['markerName']));}},{'priority':'high'});}),_0x1b2ff4['conversion']['for']('editingDowncast')['add'](_0x14f369=>{_0x14f369['on']('removeMarker:suggestion:attribute',(_0x461e76,_0x578c8d,_0x3bbf9d)=>{const _0x3e5481=_0x3bbf9d['mapper']['markerNameToElements'](_0x578c8d['markerName']);if(!_0x3e5481)return;const {subType:_0x2dff52}=this['_splitMarkerName'](_0x578c8d['markerName']),_0x176d5b=ae(_0x2dff52);if(this['_isBlockAttribute'](_0x176d5b)){for(const _0x40f20c of _0x3e5481)_0x40f20c['getCustomProperty']('addHighlight')||(_0x3bbf9d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40f20c),_0x3bbf9d['writer']['removeAttribute']('data-suggestion',_0x40f20c),_0x3bbf9d['writer']['removeAttribute']('data-author-id',_0x40f20c),_0x3bbf9d['mapper']['unbindElementFromMarkerName'](_0x40f20c,_0x578c8d['markerName']));}},{'priority':'high'});}),_0x1b2ff4['model']['document']['registerPostFixer'](_0x493756=>{let _0x5a62cf=!0x1;const _0x2a0200=Array['from'](_0x1b2ff4['model']['document']['differ']['getChangedMarkers']()),_0x198855=new Set();for(const {name:_0x5c3017,data:_0x25ef5f}of _0x2a0200){const {group:_0x2a5736,type:_0x37c208,subType:_0x3d902a,id:_0x15a5b0}=this['_splitMarkerName'](_0x5c3017);if('suggestion'!==_0x2a5736)continue;const _0x308c44=_0x3d902a?'suggestion:'+_0x37c208+':'+_0x3d902a+':'+_0x15a5b0:'suggestion:'+_0x37c208+':'+_0x15a5b0,_0x14255d=_0x1b2ff4['model']['markers']['getMarkersGroup'](_0x308c44),_0x46287c=_0x1b2ff4['model']['markers']['get'](_0x5c3017),_0xe2ad86=this['_suggestions']['get'](_0x15a5b0);if(null!=_0x25ef5f['newRange']){'formatInline'==_0x37c208&&(_0x5a62cf=_0x5a62cf||zt(_0x25ef5f['newRange'],_0x5c3017,_0x493756,_0x1b2ff4['model']['schema']));const _0x5dd08f='attribute'==_0x37c208&&this['_isBlockAttribute'](_0x3d902a['split']('|')[0x0]),_0x5e2971='attribute'==_0x37c208&&this['_isInlineAttribute'](_0x3d902a['split']('|')[0x0]);if(_0x25ef5f['newRange']['isCollapsed']||'$graveyard'==_0x25ef5f['newRange']['root']['rootName']||'formatBlock'==_0x37c208&&!Xt(_0x25ef5f['newRange'])||_0x5dd08f&&!Xt(_0x25ef5f['newRange'])||_0x5e2971&&Yt(_0x25ef5f['newRange'])||'deletion'==_0x37c208&&Yt(_0x25ef5f['newRange'])||_0x46287c&&Zt(_0x46287c,_0x14255d))_0x493756['removeMarker'](_0x5c3017),_0x5a62cf=!0x0;else{if(!_0xe2ad86||!_0xe2ad86['isInContent'])continue;if(_0x25ef5f['newRange']&&_0x25ef5f['oldRange']&&_0x25ef5f['newRange']['isEqual'](_0x25ef5f['oldRange']))continue;_0x198855['add'](_0xe2ad86);}}}return _0x198855['size']>0x0&&(_0x5a62cf=!!this['_joinWithAdjacentSuggestions'](_0x198855)||_0x5a62cf),_0x5a62cf;}),_0x1b2ff4['model']['document']['registerPostFixer'](_0x353b1b=>{let _0x3d62c4=!0x1;for(const _0xd65a28 of _0x1b2ff4['model']['document']['differ']['getChanges']())if('insert'==_0xd65a28['type'])for(const _0x4095fe of this['_suggestions']['values']()){if(_0x4095fe['isMultiRange']||!_0x4095fe['isInContent'])continue;const _0x44e9d5='formatBlock'==_0x4095fe['type'],_0x1eb63c=this['_getAttributeKey'](_0x4095fe),_0x26fcc1=_0x1eb63c&&this['_isBlockAttribute'](_0x1eb63c);if(!_0x44e9d5&&!_0x26fcc1)continue;const _0x3759ec=_0x4095fe['getFirstRange']();if(_0x3759ec['start']['parent']!=_0x3759ec['end']['parent']&&!_0x3759ec['end']['isAtEnd']){const _0x538314=_0x1b2ff4['model']['createPositionAt'](_0x3759ec['start']['nodeAfter'],'end'),_0x3a58eb=_0x1b2ff4['model']['createRange'](_0x3759ec['start'],_0x538314);_0x353b1b['updateMarker'](_0x4095fe['getFirstMarker'](),{'range':_0x3a58eb}),_0x3d62c4=!0x0;}}return _0x3d62c4;}),_0x1b2ff4['model']['document']['registerPostFixer'](_0x33346e=>this['_processAttributeChanges'](_0x33346e)),_0x1b2ff4['model']['document']['registerPostFixer'](_0x314d18=>!_0x314d18['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x314d18)),_0x1b2ff4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b2ff4['model']['document']['on']('change:data',(_0x43df41,_0xb93c66)=>{if(!_0xb93c66['isLocal']||_0xb93c66['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3c54a1=_0x1b2ff4['model']['document']['differ']['getChanges']();if(0x0==_0x3c54a1['length'])return;const _0xe3c8e7=[],_0x3f31d6=_0x3c54a1['filter'](_0x70141b=>'attribute'==_0x70141b['type']),_0x192ff7=_0x3c54a1['filter'](_0x2e7fd9=>'insert'==_0x2e7fd9['type']&&'$text'!=_0x2e7fd9['name']);for(const _0x597a8e of _0x3f31d6)this['_isRegisteredAttribute'](_0x597a8e['attributeKey'])&&_0xe3c8e7['push']({'key':_0x597a8e['attributeKey'],'newValue':_0x597a8e['attributeNewValue'],'oldValue':_0x597a8e['attributeOldValue'],'range':ee(_0x597a8e['range'],_0x1b2ff4['model'])});for(const _0x349cf1 of _0x192ff7){if('rename'!=_0x349cf1['action']&&'refresh'!=_0x349cf1['action'])continue;const _0x4c0035=ie(_0x349cf1['position']['nodeAfter'],_0x1b2ff4['model']),_0x4f98fe=_0x349cf1['before'];'rename'==_0x349cf1['action']&&_0xe3c8e7['push']({'key':m,'newValue':_0x349cf1['name'],'oldValue':_0x4f98fe['name'],'range':_0x4c0035});for(const [_0x3d9f50,_0x3419f9]of _0x4f98fe['attributes']){if(!this['_isRegisteredAttribute'](_0x3d9f50))continue;const _0x2e16ed=_0x349cf1['attributes']['get'](_0x3d9f50);_0x3419f9!==_0x2e16ed&&_0xe3c8e7['push']({'key':_0x3d9f50,'newValue':_0x2e16ed,'oldValue':_0x3419f9,'range':_0x4c0035});}for(const [_0x137f2b,_0x5c75cd]of _0x349cf1['attributes'])this['_isRegisteredAttribute'](_0x137f2b)&&(_0x4f98fe['attributes']['has'](_0x137f2b)||_0xe3c8e7['push']({'key':_0x137f2b,'newValue':_0x5c75cd,'oldValue':null,'range':_0x4c0035}));}0x0!=_0xe3c8e7['length']&&_0x1b2ff4['model']['enqueueChange'](_0xb93c66,_0x284394=>{const _0x59bda4=_0x38e47f();for(const {range:_0x5b0b91,key:_0x22a52d,oldValue:_0x3cfca3,newValue:_0x2d359f}of _0xe3c8e7)this['markAttributeChange'](_0x5b0b91,_0x22a52d,_0x3cfca3,_0x2d359f,{'groupId':_0x59bda4});this['_reduceExistingSuggestions'](_0x284394,_0xe3c8e7);});},{'priority':'lowest'}),_0x1b2ff4['model']['markers']['on']('update:suggestion',(_0x3e0e51,_0x50fcda,_0x3cde87)=>{if(null==_0x3cde87){const {id:_0x161a43}=this['_splitMarkerName'](_0x50fcda['name']),_0x2dda0b=this['_suggestions']['get'](_0x161a43);_0x2dda0b&&_0x2dda0b['addMarkerName'](_0x50fcda['name']);}}),_0x1b2ff4['model']['document']['on']('change:data',()=>{const _0x3ef20d=Array['from'](_0x1b2ff4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x48ede6=>'suggestion'===this['_splitMarkerName'](_0x48ede6['name'])['group']);if(0x0===_0x3ef20d['length'])return;_0x3ef20d['sort']((_0x593fa3,_0x3038ea)=>{const _0xb9f93a=_0x593fa3['data']['oldRange'],_0x4158b3=_0x3038ea['data']['oldRange'];return null===_0xb9f93a&&null===_0x4158b3?0x0:null===_0xb9f93a&&null!==_0x4158b3?-0x1:null!==_0xb9f93a&&null===_0x4158b3?0x1:_0xb9f93a['start']['isBefore'](_0x4158b3['start'])?-0x1:0x1;});const _0x42f75a=new Set(),_0x25e95f=new Set();for(const {name:_0x71286e,data:_0x157370}of _0x3ef20d){const {id:_0x3318a9}=this['_splitMarkerName'](_0x71286e);if(null===_0x157370['oldRange']){const _0x4ce093=this['_handleNewSuggestionMarker'](_0x71286e);_0x25e95f['add'](_0x4ce093);}else{const _0x74a030=this['_suggestions']['get'](_0x3318a9);null!==_0x157370['newRange']||_0x74a030['isInContent']?(_0x42f75a['add'](_0x74a030['head']),_0x25e95f['add'](_0x74a030)):this['_removeSuggestion'](_0x74a030);}}_0x25e95f['size']>0x0&&this['_refreshSuggestionsChain'](_0x25e95f);for(const _0x1e48cc of _0x42f75a)this['fire']('suggestionChanged',_0x1e48cc);}),_0x1b2ff4['model']['on']('applyOperation',(_0x268ea4,_0x30d338)=>{const _0x39645f=_0x30d338[0x0];if(!this['_suggestions']['size'])return;if(!_0x39645f['isDocumentOperation'])return;if(_0x39645f['batch']['isUndo']||!_0x39645f['batch']['isLocal'])return;let _0x1312c8,_0x40eb4e;switch(_0x39645f['type']){case'insert':_0x1312c8=_0x1b2ff4['model']['createPositionAt'](_0x39645f['position']),_0x40eb4e=_0x1312c8['getShiftedBy'](_0x39645f['howMany']);break;case'split':_0x1312c8=_0x1b2ff4['model']['createPositionAt'](_0x39645f['splitPosition']),_0x40eb4e=_0x1b2ff4['model']['createPositionAt'](_0x39645f['moveTargetPosition']);break;case'move':_0x1312c8=_0x1b2ff4['model']['createPositionAt'](_0x39645f['targetPosition']),_0x40eb4e=_0x1312c8['getShiftedBy'](_0x39645f['howMany']);break;default:return;}const _0x10dd80=_0x1b2ff4['model']['createRange'](_0x1312c8,_0x40eb4e);_0x1b2ff4['model']['change'](()=>{for(const {suggestion:_0xedf9a0,meta:_0x52b0de}of this['_findSuggestions'](_0x10dd80)){if(_0xedf9a0['isMultiRange'])continue;if('formatInline'==_0xedf9a0['type'])continue;const _0x65ef02=this['_getAttributeKey'](_0xedf9a0);if(_0x65ef02&&this['_isBlockAttribute'](_0x65ef02)&&'split'!=_0x39645f['type'])continue;const _0x4a8455=_0xedf9a0['data']&&_0xedf9a0['data']['multipleBlocks'];('formatBlock'!=_0xedf9a0['type']||'split'==_0x39645f['type']&&!_0x4a8455)&&(_0x52b0de['containsRangeInObject']||'insertion'==_0xedf9a0['type']&&_0x52b0de['isOwn']||_0xedf9a0['getFirstRange']()['containsRange'](_0x10dd80)&&this['_breakSuggestionMarker'](_0xedf9a0,_0x1312c8,_0x40eb4e));}});},{'priority':'lowest'}),_0x1b2ff4['model']['on']('deleteContent',(_0xefde76,_0x451f76)=>{const _0x1e0c7e=_0x451f76[0x0],_0xd340b5=_0x451f76[0x1];if(_0xd340b5&&_0xd340b5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1e0c7e['isCollapsed'])return;const _0x1cf495=_0x1b2ff4['model']['schema'],{start:_0x2ae99d,end:_0x8bcfc2}=_0x1e0c7e['getFirstRange'](),_0x4d11c2=_0x2ae99d['nodeAfter']&&_0x1cf495['isLimit'](_0x2ae99d['nodeAfter'])?null:_0x1cf495['getNearestSelectionRange'](_0x2ae99d,'forward'),_0x5a1577=_0x8bcfc2['nodeBefore']&&_0x1cf495['isLimit'](_0x8bcfc2['nodeBefore'])?null:_0x1cf495['getNearestSelectionRange'](_0x8bcfc2,'backward'),_0x1503f4=_0x1b2ff4['model']['createRange'](_0x4d11c2?_0x4d11c2['start']:_0x2ae99d,_0x5a1577?_0x5a1577['end']:_0x8bcfc2);_0x1b2ff4['model']['change'](_0x4a042b=>{this['markDeletion'](_0x1503f4);const _0x5053b7=_0x1b2ff4['model']['schema']['getNearestSelectionRange'](_0x1503f4['start']);_0x1e0c7e['is']('documentSelection')?_0x4a042b['setSelection'](_0x5053b7):_0x1e0c7e['setTo'](_0x5053b7);}),_0xefde76['stop']();},{'priority':_0x398195['normal']+0xa}),_0x1b2ff4['model']['on']('insertContent',(_0x4180c4,_0x19c366)=>{const _0x3c8f59=_0x19c366[_0x19c366['length']-0x1];_0x3c8f59&&_0x3c8f59['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b2ff4['model']['change'](()=>{let _0x1b7607=_0x1b2ff4['model']['insertContent'](_0x19c366[0x0],_0x19c366[0x1],_0x19c366[0x2],{'forceDefaultExecution':!0x0});if(!_0x1b7607)return;_0x4180c4['return']=_0x1b7607['clone']();const _0x26afc2=_0x1b7607['end']['nodeBefore'],_0xccbf4e=_0x1b2ff4['model']['schema'];_0x26afc2&&_0xccbf4e['isBlock'](_0x26afc2)&&!_0xccbf4e['isObject'](_0x26afc2)&&(_0x1b7607=_0x1b2ff4['model']['createRange'](_0x1b7607['start'],_0x1b2ff4['model']['createPositionAt'](_0x26afc2,'end'))),this['markInsertion'](_0x1b7607);}),_0x4180c4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x50175d=new T(_0x1b2ff4,this['_suggestions']);_0x1b2ff4['commands']['add']('acceptSuggestion',_0x50175d),this['enableCommand']('acceptSuggestion');const _0x59a23c=new O(_0x1b2ff4,this['_suggestions']);_0x1b2ff4['commands']['add']('discardSuggestion',_0x59a23c),this['enableCommand']('discardSuggestion'),_0x1b2ff4['commands']['add']('acceptAllSuggestions',new x(_0x1b2ff4,_0x50175d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b2ff4['commands']['add']('discardAllSuggestions',new x(_0x1b2ff4,_0x59a23c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b2ff4['commands']['add']('acceptSelectedSuggestions',new E(_0x1b2ff4,_0x50175d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b2ff4['commands']['add']('discardSelectedSuggestions',new E(_0x1b2ff4,_0x59a23c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4f53bd=_0x1b2ff4['plugins']['get']('CommentsRepository');this['listenTo'](_0x4f53bd,'addComment',(_0x4b6bef,{threadId:_0x54973a})=>{const _0x529996=this['_suggestions']['get'](_0x54973a);_0x529996&&_0x529996['commentThread']&&0x1===_0x529996['commentThread']['length']&&this['_updateSuggestionData'](_0x54973a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4f53bd,'removeComment',(_0x325f3b,{threadId:_0x13bf13})=>{const _0x4ef6e4=this['_suggestions']['get'](_0x13bf13);_0x4ef6e4&&_0x4ef6e4['commentThread']&&!_0x4ef6e4['commentThread']['length']&&this['_updateSuggestionData'](_0x13bf13,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed7c7){const _0x5a4ea1=_0x1197b0([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x34fc40=0x3d8d0df,_0x5badcd=0x3dfa7df^_0x34fc40,_0x4a7609=window[_0x1197b0([0x44,0x61,0x74,0x65])][_0x1197b0([0x6e,0x6f,0x77])](),_0x5bf6cd=_0x4ed7c7[_0x1197b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x97dcbf=new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f8fe1=>{_0x5bf6cd[_0x1197b0([0x6f,0x6e,0x63,0x65])](_0x1197b0([0x72,0x65,0x61,0x64,0x79]),_0x3f8fe1);}),_0x2170b9={[_0x1197b0([0x6b,0x74,0x79])]:_0x1197b0([0x45,0x43]),[_0x1197b0([0x75,0x73,0x65])]:_0x1197b0([0x73,0x69,0x67]),[_0x1197b0([0x63,0x72,0x76])]:_0x1197b0([0x50,0x2d,0x32,0x35,0x36]),[_0x1197b0([0x78])]:_0x1197b0([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]),[_0x1197b0([0x79])]:_0x1197b0([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]),[_0x1197b0([0x61,0x6c,0x67])]:_0x1197b0([0x45,0x53,0x32,0x35,0x36])},_0x342c9d=_0x5bf6cd[_0x1197b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1197b0([0x67,0x65,0x74])](_0x1197b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7e8666(){let _0x186871,_0x4da3e3=null,_0x23ca87=null;try{if(_0x342c9d==_0x1197b0([0x47,0x50,0x4c]))return _0x1197b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x186871=_0x4d171e(),!_0x186871)return _0x1197b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x186871[_0x1197b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23ca87=_0xe71dc7(_0x186871[_0x1197b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x186871[_0x1197b0([0x6a,0x74,0x69])])),await _0xaa835c()?_0x5806fe()?_0x3cb4fb()?_0x1197b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x445064()?(_0x186871[_0x1197b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1197b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4da3e3=_0x152aa3(_0x1197b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x186871[_0x1197b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1197b0([0x74,0x72,0x69,0x61,0x6c])&&(_0x4da3e3=_0x152aa3(_0x1197b0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x273bbc()):_0x1197b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1197b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1197b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1197b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cb4fb(){const _0xd3a29e=[_0x1197b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1197b0([0x74,0x72,0x69,0x61,0x6c])][_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x186871[_0x1197b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a7609/0x3e8:0xe10*_0x5badcd;return _0x186871[_0x1197b0([0x65,0x78,0x70])]<_0xd3a29e;}function _0x5806fe(){const _0x554690=_0x186871[_0x1197b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x554690)return!0x1;if(_0x554690[_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1197b0([0x2a])))return!0x0;if(_0x554690[_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1197b0([0x54,0x43])))return!0x0;if(_0x554690[_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1197b0([0x52,0x54,0x43]))){if(_0x37696e())return!0x0;if(_0x32cb1c()||_0x3df5d8())return!0x0;}return!0x1;}function _0x445064(){const _0x263c44=_0x186871[_0x1197b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x263c44||0x0==_0x263c44[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c3606}=new URL(window[_0x1197b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x263c44[_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3606))return!0x0;const _0x299bf4=_0x4c3606[_0x1197b0([0x73,0x70,0x6c,0x69,0x74])](_0x1197b0([0x2e]));return _0x263c44[_0x1197b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a78b3=>_0x1a78b3[_0x1197b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1197b0([0x2a])))[_0x1197b0([0x6d,0x61,0x70])](_0x2d44f8=>_0x2d44f8[_0x1197b0([0x73,0x70,0x6c,0x69,0x74])](_0x1197b0([0x2e])))[_0x1197b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d51b9=>_0x5d51b9[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x299bf4[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1197b0([0x6d,0x61,0x70])](_0x461f80=>Array(_0x299bf4[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x461f80[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1197b0([0x66,0x69,0x6c,0x6c])](_0x461f80[0x0]===_0x1197b0([0x2a])?_0x1197b0([0x2a]):'')[_0x1197b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x461f80))[_0x1197b0([0x73,0x6f,0x6d,0x65])](_0x3b4d05=>_0x299bf4[_0x1197b0([0x65,0x76,0x65,0x72,0x79])]((_0x1d0501,_0x1eaf45)=>_0x3b4d05[_0x1eaf45]===_0x1d0501||_0x3b4d05[_0x1eaf45]===_0x1197b0([0x2a])));}function _0x273bbc(){return _0x4da3e3&&_0x23ca87?new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x376865,_0x206ca9)=>{_0x4da3e3[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x376865,_0x206ca9),_0x23ca87[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x24494f=>{_0x24494f!=_0x1197b0([0x56,0x61,0x6c,0x69,0x64])&&_0x376865(_0x24494f);},_0x206ca9);}):_0x4da3e3||_0x23ca87||_0x1197b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe71dc7(_0x6d6361,_0x39c5f4){return new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x193e79=>{if(_0x1c5f53())return _0x193e79(_0x1197b0([0x56,0x61,0x6c,0x69,0x64]));_0x58283f(),_0x5bf6cd[_0x1197b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1197b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52987f=!0x1;const _0x20f17b=_0x38e47f();function _0x3f4d2a(_0x1ccc63){return!!_0x1ccc63&&(typeof _0x1ccc63===_0x1197b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ccc63===_0x1197b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ccc63[_0x1197b0([0x74,0x68,0x65,0x6e])]===_0x1197b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ccc63[_0x1197b0([0x63,0x61,0x74,0x63,0x68])]===_0x1197b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x553816(_0x1f1c64){_0x5889d8(_0x1f1c64)[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x567363=>{if(!_0x567363||_0x567363[_0x1197b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1197b0([0x6f,0x6b]))return _0x1197b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a7f76(_0x2a3d74(_0x20f17b+_0x39c5f4))!=_0x567363[_0x1197b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1197b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1197b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x583524=>(_0x19a475(),_0x583524),()=>{const _0x424faf=_0x896971();return null==_0x424faf?(_0x19a475(),_0x1197b0([0x56,0x61,0x6c,0x69,0x64])):_0x1197b0(_0x4a7609-_0x424faf>(0x27d454df^_0x34fc40)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x193e79)[_0x1197b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x193e79(_0x1197b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1829c7=0x3ee3e5f^_0x34fc40;function _0x19a475(){const _0x42bdad=_0x1197b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a7f76(_0x2a3d74(_0x6d6361)),_0x5acf63=_0x3709be(_0x1a7f76(window[_0x1197b0([0x4d,0x61,0x74,0x68])][_0x1197b0([0x63,0x65,0x69,0x6c])](_0x4a7609/_0x1829c7)));window[_0x1197b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1197b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42bdad,_0x5acf63);}function _0x896971(){const _0x21331c=_0x1197b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a7f76(_0x2a3d74(_0x6d6361)),_0x33a914=window[_0x1197b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1197b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21331c);return _0x33a914?window[_0x1197b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3709be(_0x33a914),0x10)*_0x1829c7:null;}function _0x5889d8(_0x41f62d){return new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a2c8b,_0x3e6fe8)=>{_0x41f62d[_0x1197b0([0x74,0x68,0x65,0x6e])](_0x2a2c8b,_0x3e6fe8),window[_0x1197b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e6fe8,0x3d9041f^_0x34fc40);});}}_0x5bf6cd[_0x1197b0([0x6f,0x6e])](_0x1197b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2cd5dd,_0x322a6a)=>{if(_0x322a6a[0x0]!=_0x6d6361)return _0x193e79(_0x1197b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x322a6a[0x1]={..._0x322a6a[0x1],[_0x1197b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20f17b};},{[_0x1197b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1197b0([0x68,0x69,0x67,0x68])}),_0x5bf6cd[_0x1197b0([0x6f,0x6e])](_0x1197b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x447f82=>{_0x3f4d2a(_0x447f82[_0x1197b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52987f=!0x0,_0x553816(_0x447f82[_0x1197b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1197b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1197b0([0x6c,0x6f,0x77])}),_0x97dcbf[_0x1197b0([0x74,0x68,0x65,0x6e])](()=>{_0x52987f||_0x193e79(_0x1197b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c5f53(){return _0x5bf6cd[_0x1197b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1197b0([0x76,0x69,0x65,0x77])][_0x1197b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1197b0([0x61,0x75,0x74,0x6f]);}function _0x58283f(){_0x5bf6cd[_0x1197b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1197b0([0x76,0x69,0x65,0x77])][_0x1197b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1197b0([0x61,0x75,0x74,0x6f]);}}function _0x152aa3(_0x1a0f76){const _0x37943c=[new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2adb82=>setTimeout(_0x2adb82,0x3d1ee13^_0x34fc40)),_0x97dcbf[_0x1197b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10d750=>{let _0x488478=0x0;_0x5bf6cd[_0x1197b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1197b0([0x6f,0x6e])](_0x1197b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x560125,_0x332d8d)=>{_0x332d8d[0x0][_0x1197b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x488478++,_0x488478==(0x3d8d127^_0x34fc40)&&(_0x10d750(),_0x560125[_0x1197b0([0x6f,0x66,0x66])]());});}))];return window[_0x1197b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1197b0([0x72,0x61,0x63,0x65])](_0x37943c)[_0x1197b0([0x74,0x68,0x65,0x6e])](()=>_0x1a0f76);}async function _0x4a5869(){await _0x97dcbf,_0x5bf6cd[_0x1197b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1197b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x583b55,_0x5bf6cd[_0x1197b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1197b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x583b55,_0x5bf6cd[_0x1197b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1197b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x37696e(){return _0x53f792(_0x1197b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x511786(_0x1197b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1197b0([0x73,0x74,0x61,0x74,0x65])]==_0x1197b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x32cb1c(){return _0x53f792(_0x1197b0([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 _0x3df5d8(){return _0x53f792(_0x1197b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x238fac(_0x5d3106){const _0x5d15c3=_0x1e0c6a();_0x5bf6cd[_0x5d15c3]=_0x1197b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d3106,_0x5d3106!=_0x1197b0([0x56,0x61,0x6c,0x69,0x64])&&_0x4a5869();}function _0x1e0c6a(){const _0x21fc07=window[_0x1197b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1197b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1197b0([0x6e,0x6f,0x77])]())[_0x1197b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1197b0([0x2e]),'');let _0x118dc9=_0x1197b0([0x52]);for(let _0x584559=0x0;_0x584559<_0x21fc07[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x584559+=0x2){let _0xbf09c8=window[_0x1197b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21fc07[_0x1197b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x584559,_0x584559+0x2));_0xbf09c8>=_0x5a4ea1[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbf09c8-=_0x5a4ea1[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x118dc9+=_0x5a4ea1[_0xbf09c8];}return _0x118dc9;}function _0x4d171e(){const _0x52172d=_0x342c9d[_0x1197b0([0x73,0x70,0x6c,0x69,0x74])](_0x1197b0([0x2e]));if(0x3!=_0x52172d[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x126ade(_0x52172d[0x1]);function _0x126ade(_0x5f397e){const _0x231792=_0x4c086c(_0x5f397e);return _0x231792&&_0x12c367()?_0x231792:null;function _0x12c367(){const _0x2a63e2=_0x231792[_0x1197b0([0x6a,0x74,0x69])],_0xd93768=window[_0x1197b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a63e2[_0x1197b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a63e2[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x566b6e={..._0x231792,[_0x1197b0([0x6a,0x74,0x69])]:_0x2a63e2[_0x1197b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a63e2[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x566b6e[_0x1197b0([0x76,0x63])],_0x2a3d74(_0x566b6e)==_0xd93768;}}}async function _0xaa835c(){let _0x59f20a=!0x0;try{const _0x1a77f9=_0x342c9d[_0x1197b0([0x73,0x70,0x6c,0x69,0x74])](_0x1197b0([0x2e])),[_0x44636b,_0x39518b,_0x3beb03]=_0x1a77f9;return _0xa6a35f(_0x44636b),await _0x23570d(_0x44636b,_0x39518b,_0x3beb03),_0x59f20a;}catch{return!0x1;}function _0xa6a35f(_0x3be7ce){const _0x4407cf=_0x4c086c(_0x3be7ce);_0x4407cf&&_0x4407cf[_0x1197b0([0x61,0x6c,0x67])]==_0x1197b0([0x45,0x53,0x32,0x35,0x36])||(_0x59f20a=!0x1);}async function _0x23570d(_0x1389cd,_0x4358fb,_0x5c3664){const _0x2cdb8c=window[_0x1197b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1197b0([0x66,0x72,0x6f,0x6d])](_0x511796(_0x5c3664),_0x3e0bef=>_0x3e0bef[_0x1197b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc7450b=new window[(_0x1197b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1197b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1389cd+_0x1197b0([0x2e])+_0x4358fb),_0x134567=window[_0x1197b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1197b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x134567)return;const _0x2d658f=await _0x134567[_0x1197b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1197b0([0x6a,0x77,0x6b]),_0x2170b9,{[_0x1197b0([0x6e,0x61,0x6d,0x65])]:_0x1197b0([0x45,0x43,0x44,0x53,0x41]),[_0x1197b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1197b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1197b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x134567[_0x1197b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1197b0([0x6e,0x61,0x6d,0x65])]:_0x1197b0([0x45,0x43,0x44,0x53,0x41]),[_0x1197b0([0x68,0x61,0x73,0x68])]:{[_0x1197b0([0x6e,0x61,0x6d,0x65])]:_0x1197b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d658f,_0x2cdb8c,_0xc7450b)||(_0x59f20a=!0x1);}}function _0x4c086c(_0x596cb3){return _0x596cb3[_0x1197b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1197b0([0x65,0x79]))?JSON[_0x1197b0([0x70,0x61,0x72,0x73,0x65])](_0x511796(_0x596cb3)):null;}function _0x511796(_0x4099d0){return window[_0x1197b0([0x61,0x74,0x6f,0x62])](_0x4099d0[_0x1197b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1197b0([0x2b]))[_0x1197b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1197b0([0x2f])));}function _0x2a3d74(_0x1ba3b3){let _0x2e2214=0x1505;function _0x54f120(_0x20ac40){for(let _0x3419f1=0x0;_0x3419f1<_0x20ac40[_0x1197b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3419f1++){const _0x1ce920=_0x20ac40[_0x1197b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3419f1);_0x2e2214=(_0x2e2214<<0x5)+_0x2e2214+_0x1ce920,_0x2e2214&=_0x2e2214;}}function _0x58bc59(_0xd9324a){Array[_0x1197b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd9324a)?_0xd9324a[_0x1197b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58bc59):_0xd9324a&&typeof _0xd9324a==_0x1197b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1197b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd9324a)[_0x1197b0([0x73,0x6f,0x72,0x74])]()[_0x1197b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x399695,_0x25b852])=>{_0x54f120(_0x399695),_0x58bc59(_0x25b852);}):_0x54f120(window[_0x1197b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd9324a));}return _0x58bc59(_0x1ba3b3),_0x2e2214>>>0x0;}function _0x1a7f76(_0x4e124b){return _0x4e124b[_0x1197b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1197b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1197b0([0x30]));}function _0x3709be(_0x28bd49){return _0x28bd49[_0x1197b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1197b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1197b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x53f792(_0x46545d){return _0x5bf6cd[_0x1197b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1197b0([0x68,0x61,0x73])](_0x46545d);}function _0x511786(_0x4ddefa){return _0x5bf6cd[_0x1197b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1197b0([0x67,0x65,0x74])](_0x4ddefa);}function _0x583b55(){}function _0x1197b0(_0x1ae537){return _0x1ae537['map'](_0x17ad4a=>String['fromCharCode'](_0x17ad4a))['join']('');}_0x238fac(await _0x7e8666());}(this);}set['adapter'](_0x173882){if(this['_adapter'])throw new _0x40a671('track-changes-adapter-already-set',this);this['_adapter']=_0x173882;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4e10ed=!0x1,toJSON:_0x1c3e0e=!0x1}={}){const _0x249656=[];for(const _0x356da7 of this['_suggestions']['values']())_0x4e10ed&&!_0x356da7['isInContent']||_0x249656['push'](_0x356da7);return _0x1c3e0e?_0x249656['map'](_0x4454ed=>_0x4454ed['toJSON']()):_0x249656;}['getSuggestion'](_0xc3d08b){const _0x2e9793=this['_suggestions']['get'](_0xc3d08b);if(!_0x2e9793)throw new _0x40a671('track-changes-suggestion-not-found',this);return _0x2e9793;}['hasSuggestion'](_0x357605){return this['_suggestions']['has'](_0x357605);}['addSuggestionData'](_0x19c415){const {authorId:_0x32fc7b,id:_0x70104a,originalSuggestionId:_0x35997d,attributes:_0x33e542}=_0x19c415,[_0x4d7efe,_0x1ebe2e]=_0x19c415['type']['split'](':'),_0x3f6a57=this['_suggestions']['get'](_0x70104a)||this['_createSuggestion'](_0x4d7efe,_0x1ebe2e,_0x70104a,_0x32fc7b,_0x33e542,_0x35997d);if(this['_addThreadToSuggestion'](_0x3f6a57),this['_checkSuggestionCorrectness'](_0x3f6a57,_0x4d7efe,_0x1ebe2e||null,_0x32fc7b),_0x3f6a57['createdAt']=_0x19c415['createdAt'],_0x3f6a57['_isDataLoaded']=!0x0,_0x33e542&&_0x33e542['@external']){const _0x5e907b=_0x33e542['@external'],_0x3799fc=this['_getExternalAuthor'](_0x5e907b['authorName']);_0x3f6a57['authoredAt']=_0x5e907b['createdAt'],_0x3f6a57['author']=_0x3799fc,_0x3f6a57['isExternal']=!0x0;}else _0x3f6a57['authoredAt']=_0x19c415['createdAt'];switch(_0x19c415['data']&&(_0x3f6a57['data']=_0x19c415['data']),_0x19c415['attributes']&&(_0x3f6a57['attributes']=_0x19c415['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f6a57['_saved']=!0x0),this['_suggestionState']['get'](_0x3f6a57)){case'notReady':this['_suggestionState']['set'](_0x3f6a57,'dataReady');break;case'markerReady':_0x3f6a57['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f6a57])),this['_refreshSuggestionsChain'](new Set([_0x3f6a57])),this['_suggestionState']['set'](_0x3f6a57,'ready'),this['fire']('suggestionLoaded',_0x3f6a57)):this['_suggestionState']['set'](_0x3f6a57,'removed');}return _0x3f6a57;}['acceptSuggestion'](_0x1413e8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x14d661 of _0x1413e8['getAllAdjacentSuggestions']())_0x14d661['accept']();});});}['discardSuggestion'](_0x229a78){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4717a6 of _0x229a78['getAllAdjacentSuggestions']())_0x4717a6['discard']();});});}['enableCommand'](_0xcfe05f,_0x43e905){const _0x12111b=this['editor']['commands']['get'](_0xcfe05f);if(!_0x12111b)throw new _0x40a671('track-changes-command-not-found',this,{'commandName':_0xcfe05f});if(this['_enabledCommands']['has'](_0x12111b))throw new _0x40a671('track-changes-enable-command-twice',this,{'commandName':_0xcfe05f});this['_enabledCommands']['add'](_0x12111b),_0x43e905&&_0x12111b['on']('execute',(_0x12f0d9,_0x18c53e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x18c53e['length']>0x0&&_0x18c53e[_0x18c53e['length']-0x1]&&_0x18c53e[_0x18c53e['length']-0x1]['forceDefaultExecution']?_0x18c53e['pop']():(_0x12f0d9['return']=_0x43e905((..._0x5097d2)=>_0x12111b['execute'](..._0x5097d2,{'forceDefaultExecution':!0x0}),..._0x18c53e),_0x12f0d9['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53c2ed){let _0x3c4ad0,_0x5f385a;const _0x16313c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c4ad0=_0x53c2ed();}catch(_0x1dbd00){_0x5f385a=_0x1dbd00;}return _0x16313c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5f385a&&_0x40a671['rethrowUnexpectedError'](_0x5f385a,this),_0x3c4ad0;}['markInsertion'](_0x1e81ed,_0x43afb4=null,_0x3815f1={}){if(_0x1e81ed['isCollapsed'])return null;const _0x235018=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3815f1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x547cd0,meta:_0x127e99}of this['_findSuggestions'](_0x1e81ed,'insertion'))if(_0x127e99['isOwn']){if(!_0x127e99['isNextTo']){if(_0x127e99['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x547cd0,_0x3815f1))continue;return _0x547cd0;}if(oe(_0x547cd0,_0x3815f1))return _0x547cd0;this['_breakSuggestionMarker'](_0x547cd0,_0x1e81ed['start'],_0x1e81ed['end']);break;}if(_0x43afb4==_0x547cd0['subType']&&oe(_0x547cd0,_0x3815f1)){const _0x46eb8b=_0x547cd0['getFirstRange']();return _0x46eb8b['start']['isEqual'](_0x1e81ed['end'])?this['_setSuggestionRange'](_0x547cd0,this['_model']['createRange'](_0x1e81ed['start'],_0x46eb8b['end'])):this['_setSuggestionRange'](_0x547cd0,this['_model']['createRange'](_0x46eb8b['start'],_0x1e81ed['end'])),_0x547cd0;}}const _0x21e773=_0x38e47f(),_0x565a58=_0x235018['id'],_0x19c6c2=_0x43afb4?'insertion:'+_0x43afb4:'insertion',_0x4e56ac=this['_setSuggestionData']({'id':_0x21e773,'type':_0x19c6c2,'createdAt':new Date(),'authorId':_0x565a58,'attributes':_0x3815f1});return this['_addSuggestionMarker'](_0x19c6c2,_0x21e773,_0x565a58,_0x1e81ed),_0x4e56ac;}['markMultiRangeInsertion'](_0xa25a1f,_0xb23a5b='multi',_0x4834c5={}){const _0x1749f2=this['editor']['plugins']['get']('Users')['me'],_0x40f0cc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb23a5b,'join');this['_trackingSessionId']&&(_0x4834c5['trackingSessionId']=this['_trackingSessionId']);for(const _0x31e252 of this['getSuggestions']())if(_0x31e252['author']['id']==_0x1749f2['id']&&'insertion'==_0x31e252['type']&&_0x31e252['subType']==_0xb23a5b&&oe(_0x31e252,_0x4834c5)&&(_0x40f0cc(_0x31e252['getRanges'](),_0xa25a1f)||_0x40f0cc(_0xa25a1f,_0x31e252['getRanges']()))){for(const _0x385a65 of _0xa25a1f)_0x31e252['addRange'](_0x385a65);return _0x31e252;}for(const {suggestion:_0x15891c,meta:_0x325a57}of this['_findSuggestions'](_0xa25a1f,'insertion')){if(!_0x325a57['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x325a57['containsRangeInObject'])continue;if(!oe(_0x15891c,_0x4834c5))continue;let _0x5e753e=!0x0;for(const _0x91d728 of _0x15891c['getRanges']())for(const _0x938681 of _0xa25a1f)if(!_0x91d728['containsRange'](_0x938681)){_0x5e753e=!0x1;break;}if(_0x5e753e)return _0x15891c;}const _0x1baa0c=_0x38e47f(),_0x2f124e=_0x1749f2['id'],_0x58df02='insertion:'+_0xb23a5b,_0x3b64e6=this['_setSuggestionData']({'id':_0x1baa0c,'type':_0x58df02,'createdAt':new Date(),'authorId':_0x2f124e,'attributes':_0x4834c5});for(const _0x168ff5 of _0xa25a1f)this['_addSuggestionMarker'](_0x58df02,_0x1baa0c,_0x2f124e,_0x168ff5,R['getMultiRangeId']());return _0x3b64e6;}['markInlineFormat'](_0x3d5647,_0x3bcdca,_0x3f1840=null,_0x5451c0={}){if(_0x3f1840=_0x3f1840||Qt(_0x3bcdca),_0x3d5647['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5451c0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x517fb3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f1840,'accept');return this['forceDefaultExecution'](()=>_0x517fb3([_0x3d5647],_0x3bcdca,_0x5451c0)),null;}const _0x2839a2=this['editor']['plugins']['get']('Users')['me'],_0x1a17fc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xe71000,meta:_0x50782f}of this['_findSuggestions'](_0x3d5647,'insertion'))_0x50782f['isOwn']&&!_0x50782f['isInsideObject']&&_0x1a17fc['push'](..._0xe71000['getRanges']());}const _0x5d4324=function(_0x1cdeb8,_0x3626a6){const _0x3aba64=[];for(const _0x4a0cd9 of _0x3626a6){const _0x58a1a7=_0x1cdeb8['getIntersection'](_0x4a0cd9);_0x58a1a7&&_0x3aba64['push'](_0x58a1a7);}return _0x3aba64;}(_0x3d5647,_0x1a17fc),_0x2d55b0=function(_0x36e653,_0xa84b75){const _0x43e365=[_0x36e653];for(const _0x9a3e07 of _0xa84b75){let _0x3c0c97=0x0;for(;_0x3c0c97<_0x43e365['length'];){const _0x346023=_0x43e365[_0x3c0c97]['getDifference'](_0x9a3e07);_0x43e365['splice'](_0x3c0c97,0x1,..._0x346023),_0x3c0c97+=_0x346023['length'];}}return _0x43e365;}(_0x3d5647,_0x1a17fc);_0x5d4324['length']&&this['_model']['change'](()=>{for(const _0x10af9a of _0x5d4324){const _0x507584=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3f1840,'accept');this['forceDefaultExecution'](()=>_0x507584([_0x10af9a],_0x3bcdca,_0x5451c0));}});for(const _0x425f82 of _0x2d55b0){let _0x240d8b=null,_0x16ca83=_0x425f82['start'],_0x47eb39=_0x425f82['end'];for(const {suggestion:_0x2c87c0,meta:_0x2016f2}of this['_findSuggestions'](_0x425f82,'formatInline')){if(!_0x2016f2['isOwn'])continue;if(_0x2c87c0['subType']!=_0x3f1840)continue;if(!oe(_0x2c87c0,_0x5451c0))continue;const _0x288ead=_0x2c87c0['getFirstRange']();if(_0x288ead['containsRange'](_0x425f82,!0x0))return null;_0x16ca83=_0x16ca83['isBefore'](_0x288ead['start'])?_0x16ca83:_0x288ead['start'],_0x47eb39=_0x47eb39['isAfter'](_0x288ead['end'])?_0x47eb39:_0x288ead['end'],_0x240d8b?_0x288ead['start']['isBefore'](_0x240d8b['getFirstRange']()['start'])?(_0x240d8b['removeMarkers'](),_0x240d8b=_0x2c87c0):_0x2c87c0['removeMarkers']():_0x240d8b=_0x2c87c0;}const _0x12ab28=this['_model']['createRange'](_0x16ca83,_0x47eb39);if(_0x240d8b)this['_setSuggestionRange'](_0x240d8b,_0x12ab28);else{const _0x54acee=_0x38e47f(),_0x21795b=_0x2839a2['id'];this['_setSuggestionData']({'id':_0x54acee,'type':'formatInline:'+_0x3f1840,'data':_0x3bcdca,'createdAt':new Date(),'authorId':_0x21795b,'attributes':_0x5451c0}),this['_addSuggestionMarker']('formatInline:'+_0x3f1840,_0x54acee,_0x21795b,_0x12ab28);}}return null;}['markBlockFormat'](_0x4ba79d,_0x3538ad,_0x2b7aa2=[],_0x2fd387=null,_0x2714d1={}){_0x3538ad['formatGroupId']||(_0x3538ad['formatGroupId']=_0x3538ad['commandName']),_0x3538ad['multipleBlocks']=_0x4ba79d['is']('range'),_0x2fd387=_0x2fd387||Qt(_0x3538ad);const _0x4b354f=_0x2b7aa2['map'](_0x425c36=>ie(_0x425c36,this['_model'])),_0x12d824=_0x4ba79d['is']('range')?_0x4ba79d:ie(_0x4ba79d,this['_model']);if(this['_trackingSessionId']&&(_0x2714d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b70aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd387,'accept');return this['forceDefaultExecution'](()=>_0x1b70aa([_0x12d824],_0x3538ad,_0x2714d1)),null;}_0x4b354f['push'](_0x12d824);let _0x573f26=!0x0;for(const _0x118e9f of _0x4b354f)if(!this['_rangeIsInLocalUserInsertion'](_0x118e9f)){_0x573f26=!0x1;break;}if(_0x573f26&&'always'!==this['_trackFormatChanges']){const _0x5de958=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fd387,'accept');return this['forceDefaultExecution'](()=>_0x5de958([_0x12d824],_0x3538ad,_0x2714d1)),null;}let _0x34cea7=null,_0x26a353=_0x12d824['start'],_0x21211e=_0x12d824['end'];for(const {suggestion:_0x5b125a,meta:_0x23c739}of this['_findSuggestions'](_0x12d824,'formatBlock')){if(!_0x23c739['isOwn'])continue;if(_0x23c739['isNextTo']||_0x23c739['containsRangeInObject']||_0x23c739['isInsideObject'])continue;if(_0x5b125a['data']['formatGroupId']!=_0x3538ad['formatGroupId'])continue;if(!oe(_0x5b125a,_0x2714d1))continue;const _0x2c793d=_0x5b125a['getFirstRange']();if(_0x5b125a['subType']==_0x2fd387){if(_0x2c793d['containsRange'](_0x12d824,!0x0))return null;_0x26a353=_0x26a353['isBefore'](_0x2c793d['start'])?_0x26a353:_0x2c793d['start'],_0x21211e=_0x21211e['isAfter'](_0x2c793d['end'])?_0x21211e:_0x2c793d['end'],_0x34cea7?_0x2c793d['start']['isBefore'](_0x34cea7['getFirstRange']()['start'])?(_0x34cea7['removeMarkers'](),_0x34cea7=_0x5b125a):_0x5b125a['removeMarkers']():_0x34cea7=_0x5b125a;}else{const _0x375ce8=_0x12d824['getIntersection'](_0x2c793d);this['_cutOutSuggestionMarker'](_0x5b125a,_0x375ce8);}}const _0x987e18=this['editor']['plugins']['get']('Users')['me'],_0x4160f8=_0x38e47f(),_0x492a7c=_0x987e18['id'];if(_0x34cea7)return this['_setSuggestionRange'](_0x34cea7,this['_model']['createRange'](_0x26a353,_0x21211e)),_0x34cea7;{const _0x321877=this['_setSuggestionData']({'id':_0x4160f8,'type':'formatBlock:'+_0x2fd387,'data':_0x3538ad,'createdAt':new Date(),'authorId':_0x492a7c,'attributes':_0x2714d1});return this['_addSuggestionMarker']('formatBlock:'+_0x2fd387,_0x4160f8,_0x492a7c,this['_model']['createRange'](_0x26a353,_0x21211e)),_0x321877;}}['markMultiRangeBlockFormat'](_0xdbe4e3,_0xbf7b58,_0x8d1a05=[],_0x377dfa=null,_0x26c6ed={}){_0xbf7b58['formatGroupId']||(_0xbf7b58['formatGroupId']=_0xbf7b58['commandName']);const _0x119459=_0xdbe4e3[0x0];_0xbf7b58['multipleBlocks']=_0x119459['is']('range'),_0x377dfa=_0x377dfa||Qt(_0xbf7b58);const _0x433fa7=_0x8d1a05['map'](_0x4880c0=>ie(_0x4880c0,this['_model'])),_0x5b3a06=_0x119459['is']('range')?_0xdbe4e3:_0xdbe4e3['map'](_0x41e585=>ie(_0x41e585,this['_model']));if(this['_trackingSessionId']&&(_0x26c6ed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xbaecfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x377dfa,'accept');return this['forceDefaultExecution'](()=>_0xbaecfc(_0x5b3a06,_0xbf7b58,_0x26c6ed)),null;}_0x433fa7['push'](..._0x5b3a06);let _0x1e37ff=!0x0;for(const _0x5ad3cc of _0x433fa7)if(!this['_rangeIsInLocalUserInsertion'](_0x5ad3cc)){_0x1e37ff=!0x1;break;}if(_0x1e37ff&&'always'!==this['_trackFormatChanges']){const _0x4d061a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x377dfa,'accept');return this['forceDefaultExecution'](()=>_0x4d061a(_0x5b3a06,_0xbf7b58,_0x26c6ed)),null;}const _0x25565c=this['editor']['plugins']['get']('Users')['me'];for(const _0xe07293 of this['getSuggestions']()){const _0x3a3a7d=_0xe07293['data'];if(_0xe07293['author']['id']!=_0x25565c['id'])continue;if('formatBlock'!=_0xe07293['type']||_0x3a3a7d['formatGroupId']!=_0xbf7b58['formatGroupId'])continue;if(!oe(_0xe07293,_0x26c6ed))continue;const _0x59e9bb=_0xe07293['subType']==_0x377dfa;for(let _0x172770=0x0;_0x172770<_0x5b3a06['length'];_0x172770++){const _0xa49990=_0x5b3a06[_0x172770];for(const _0x4e6aa2 of _0xe07293['getMarkers']()){const _0x9ea739=_0x4e6aa2['getRange']();if(_0xa49990['isEqual'](_0x9ea739)){_0x59e9bb?(_0x5b3a06['splice'](_0x172770,0x1),_0x172770--):_0xe07293['removeMarker'](_0x4e6aa2['name']);break;}}}}if(0x0==_0x5b3a06['length'])return null;const _0x36b664=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x377dfa,'join');for(const _0x103bdf of this['getSuggestions']()){const _0x5e0300=_0x103bdf['data'];if(_0x103bdf['author']['id']==_0x25565c['id']&&('formatBlock'==_0x103bdf['type']&&_0x5e0300['formatGroupId']==_0xbf7b58['formatGroupId']&&_0x103bdf['subType']==_0x377dfa&&oe(_0x103bdf,_0x26c6ed)&&(_0x36b664(_0x103bdf['getRanges'](),_0x5b3a06)||_0x36b664(_0x5b3a06,_0x103bdf['getRanges']())))){for(const _0x2bb3bf of _0x5b3a06)_0x103bdf['addRange'](_0x2bb3bf);return _0x103bdf;}}const _0x108a0b=_0x38e47f(),_0x49dd0f=_0x25565c['id'],_0x3579df='formatBlock:'+_0x377dfa,_0x1bd319=this['_setSuggestionData']({'id':_0x108a0b,'type':_0x3579df,'data':_0xbf7b58,'createdAt':new Date(),'authorId':_0x49dd0f,'attributes':_0x26c6ed});for(const _0x566317 of _0x5b3a06)this['_addSuggestionMarker'](_0x3579df,_0x108a0b,_0x49dd0f,_0x566317,R['getMultiRangeId']());return _0x1bd319;}['markDeletion'](_0x1f8f56,_0x3e8251=null,_0x4fffd2={}){if(_0x1f8f56['isCollapsed'])return null;const _0x7e3f62=this['editor']['plugins']['get']('Users')['me'],_0x53a83f=new _0x284d24(_0x1f8f56['start'],_0x1f8f56['end']);this['_trackingSessionId']&&(_0x4fffd2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x62e205,meta:_0x12bc21}of this['_findSuggestions'](_0x53a83f,'insertion'))if(_0x12bc21['isOwn']&&!_0x12bc21['isNextTo']){if(_0x62e205['isMultiRange']){const _0x4be321=_0x62e205['getRanges']()['filter'](_0x295b09=>'$graveyard'!=_0x295b09['root']['rootName']);_0x4be321['every'](_0x477cfd=>_0x53a83f['containsRange'](_0x477cfd,!0x0))&&_0x62e205['discard']();if(_0x4be321['some'](_0x1c208e=>_0x1c208e['containsRange'](_0x53a83f,!0x0))){const _0x341aa0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e8251,'accept');return this['forceDefaultExecution'](()=>_0x341aa0([_0x53a83f],null,_0x4fffd2)),null;}}else{const _0x185303=_0x53a83f['getIntersection'](_0x62e205['getFirstRange']());null!==_0x185303&&_0x62e205['_onDiscard']([_0x185303],null,_0x4fffd2);}}if(_0x53a83f['detach'](),_0x53a83f['isCollapsed']||'$graveyard'==_0x53a83f['root']['rootName'])return null;let _0x47b797=null,_0x2be4b6=_0x53a83f['start'],_0x469e33=_0x53a83f['end'];const _0x14e602=this['_findSuggestions'](_0x53a83f,'deletion');for(const {suggestion:_0x175ae5,meta:_0x4655ee}of _0x14e602){const _0x12569f=this['_model']['createRange'](_0x2be4b6,_0x469e33);if(_0x4655ee['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4655ee['containsRangeInObject']&&!_0x4655ee['isInsideObject'])){if(_0x175ae5['isMultiRange']){if(!oe(_0x175ae5,_0x4fffd2))continue;let _0x4d8265=!0x0;for(const _0x2a537d of _0x175ae5['getRanges']()){if(_0x2a537d['containsRange'](_0x12569f,!0x0))return _0x175ae5;_0x12569f['containsRange'](_0x2a537d)||(_0x4d8265=!0x1);}_0x4d8265&&_0x175ae5['discard']();}else{const _0x12bfeb=_0x175ae5['getFirstRange']();if(_0x12bfeb['containsRange'](_0x12569f,!0x0))return _0x175ae5;if(!oe(_0x175ae5,_0x4fffd2)){_0x12569f['containsRange'](_0x12bfeb)?_0x175ae5['removeMarkers']():_0x12bfeb['containsPosition'](_0x2be4b6)?_0x2be4b6=_0x12bfeb['end']:_0x12bfeb['containsPosition'](_0x469e33)&&(_0x469e33=_0x12bfeb['start']);continue;}_0x2be4b6=_0x2be4b6['isBefore'](_0x12bfeb['start'])?_0x2be4b6:_0x12bfeb['start'],_0x469e33=_0x469e33['isAfter'](_0x12bfeb['end'])?_0x469e33:_0x12bfeb['end'],_0x4fffd2=Object['assign']({},_0x175ae5['attributes']),_0x47b797?_0x12bfeb['start']['isBefore'](_0x47b797['getFirstRange']()['start'])?(_0x47b797['removeMarkers'](),_0x47b797=_0x175ae5):_0x175ae5['removeMarkers']():_0x47b797=_0x175ae5;}}}if(_0x47b797)return this['_setSuggestionRange'](_0x47b797,this['_model']['createRange'](_0x2be4b6,_0x469e33)),_0x47b797;{const _0x5b08a0=_0x38e47f(),_0x37b3b4=this['_model']['createRange'](_0x2be4b6,_0x469e33),_0x6128=_0x7e3f62['id'],_0x9addc2=_0x3e8251?'deletion:'+_0x3e8251:'deletion',_0x2b9b36=this['_setSuggestionData']({'id':_0x5b08a0,'type':_0x9addc2,'createdAt':new Date(),'authorId':_0x6128,'attributes':_0x4fffd2});return this['_addSuggestionMarker'](_0x9addc2,_0x5b08a0,_0x6128,_0x37b3b4),_0x2b9b36;}}['markMultiRangeDeletion'](_0x338cad,_0x38dc50='multi',_0x3999b9={}){const _0x56ff54=this['editor']['plugins']['get']('Users')['me'],_0x16f9e2=_0x338cad['map'](_0x25e42d=>new _0x284d24(_0x25e42d['start'],_0x25e42d['end'])),_0x31ce1b=new Set();this['_trackingSessionId']&&(_0x3999b9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40c881,meta:_0x2fba16}of this['_findSuggestions'](_0x16f9e2,'insertion'))_0x2fba16['isOwn']&&!_0x2fba16['isNextTo']&&_0x31ce1b['add'](_0x40c881);for(const _0x5037c2 of _0x31ce1b)if(_0x5037c2['isMultiRange']){const _0x37637e=_0x5037c2['getRanges']();(!_0x5037c2['attributes']||!_0x5037c2['attributes']['skipNestingCheck'])&&(_0x37637e['every'](_0x3c1ee7=>_0x16f9e2['some'](_0x4481ad=>_0x4481ad['containsRange'](_0x3c1ee7,!0x0)))&&_0x5037c2['discard']());if(_0x16f9e2['every'](_0x1f134e=>_0x37637e['some'](_0x41cffc=>_0x41cffc['containsRange'](_0x1f134e,!0x0)))){const _0x1beb8e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38dc50,'accept');return this['forceDefaultExecution'](()=>_0x1beb8e(_0x338cad,null,_0x3999b9)),null;}}else{const _0x5dfd5b=_0x5037c2['getFirstRange']();_0x16f9e2['some'](_0x17e61b=>_0x17e61b['containsRange'](_0x5dfd5b,!0x0))&&_0x5037c2['discard']();if(_0x16f9e2['every'](_0x48fe78=>_0x5dfd5b['containsRange'](_0x48fe78,!0x0))){const _0x4e0129=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38dc50,'accept');return this['forceDefaultExecution'](()=>_0x4e0129(_0x16f9e2,null,_0x3999b9)),null;}}const _0x54ed4c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38dc50,'join');let _0x10d65d=null;for(const _0xfcd047 of this['getSuggestions']())if(_0xfcd047['author']['id']==_0x56ff54['id']&&_0xfcd047['isInContent']&&'deletion'==_0xfcd047['type']&&_0xfcd047['subType']==_0x38dc50&&oe(_0xfcd047,_0x3999b9)&&(_0x54ed4c(_0xfcd047['getRanges'](),_0x16f9e2)||_0x54ed4c(_0x16f9e2,_0xfcd047['getRanges']()))){if(_0x10d65d){if(_0xfcd047['commentThread']&&_0xfcd047['commentThread']['length'])continue;for(const _0x3011e8 of _0xfcd047['getRanges']())_0x10d65d['isIntersectingWithRange'](_0x3011e8)||_0x10d65d['addRange'](_0x3011e8);_0xfcd047['removeMarkers']();}else{_0x10d65d=_0xfcd047;for(const _0x18c710 of _0x16f9e2)_0xfcd047['isIntersectingWithRange'](_0x18c710)||_0xfcd047['addRange'](_0x18c710);}}if(_0x10d65d)return _0x10d65d;_0x31ce1b['clear']();for(const {suggestion:_0x4113ae,meta:_0x474111}of this['_findSuggestions'](_0x16f9e2,'deletion'))_0x474111['isOwn']&&(this['_mergeNestedSuggestions']||!_0x474111['containsRangeInObject']&&!_0x474111['isInsideObject'])&&oe(_0x4113ae,_0x3999b9)&&_0x31ce1b['add'](_0x4113ae);for(const _0x313fac of _0x31ce1b){const _0x1db23d=_0x313fac['getRanges']();if(!_0x3999b9||!_0x3999b9['skipNestingCheck']){if(_0x16f9e2['every'](_0x5cbba9=>_0x1db23d['some'](_0x49d718=>_0x49d718['containsRange'](_0x5cbba9,!0x0))))return _0x313fac;}(!_0x313fac['attributes']||!_0x313fac['attributes']['skipNestingCheck'])&&(_0x1db23d['every'](_0x2c6ffc=>_0x16f9e2['some'](_0x54af90=>_0x54af90['containsRange'](_0x2c6ffc,!0x0)))&&_0x313fac['discard']());}const _0x14da1f=_0x38e47f(),_0x546f3a=_0x56ff54['id'],_0x2c2158='deletion:'+_0x38dc50,_0xb799f6=this['_setSuggestionData']({'id':_0x14da1f,'type':_0x2c2158,'createdAt':new Date(),'authorId':_0x546f3a,'attributes':_0x3999b9});for(const _0x405489 of _0x16f9e2)_0x405489['detach'](),_0x405489['isCollapsed']||'$graveyard'==_0x405489['root']['rootName']||this['_addSuggestionMarker'](_0x2c2158,_0x14da1f,_0x546f3a,_0x405489,R['getMultiRangeId']());return _0xb799f6;}['markAttributeChange'](_0x538a28,_0x25ec3f,_0x3188d9,_0x57e457,_0xc0cd9b){if(_0x538a28['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x302207=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e8674=Array['from'](this['_suggestions']['values']())['filter'](_0x4a1107=>'attribute'==_0x4a1107['type']&&_0x4a1107['data']['key']==_0x25ec3f&&_0x4a1107['isIntersectingWithRange'](_0x538a28));if(this['_trackingSessionId']&&(_0xc0cd9b['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x28a1e7=this['_findSuggestions'](_0x538a28,'insertion')['filter'](({meta:_0x33de1d})=>_0x33de1d['isOwn']&&!_0x33de1d['isInsideObject']&&!_0x33de1d['isNextTo'])['map'](({suggestion:_0x2fb40d})=>_0x2fb40d);_0x3e8674['unshift'](..._0x28a1e7);}const _0x296c35=new Map([[_0x538a28,_0x3188d9]]);for(const _0x3969ed of _0x3e8674){const _0x55d660='attribute'==_0x3969ed['type']?_0x3969ed['data']['oldValue']:void 0x0,_0x32276a=_0x3969ed['getFirstRange'](),_0x414531=Array['from'](_0x296c35['keys']())['find'](_0x30701f=>_0x30701f['isIntersecting'](_0x32276a));if(!_0x414531)continue;const _0xfd2d83=_0x414531['getDifference'](_0x32276a);this['_isBlockAttribute'](_0x25ec3f)&&'insertion'==_0x3969ed['type']&&0x0!=_0xfd2d83['length']||(_0x296c35['delete'](_0x414531),_0xfd2d83['forEach'](_0x44d7d3=>{_0x296c35['set'](_0x44d7d3,_0x3188d9);}),'insertion'!=_0x3969ed['type']&&_0x55d660!=_0x57e457&&_0x296c35['set'](_0x414531['getIntersection'](_0x32276a),_0x55d660));}const _0x60d33a=[];for(const [_0x148895,_0x47ca71]of _0x296c35){const _0xdc87b0=_0x38e47f(),_0x4fbe56={'key':_0x25ec3f,'oldValue':_0x47ca71,'newValue':_0x57e457};_0x25ec3f['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':_0x25ec3f});const _0x181add=('attribute:'+(_0x25ec3f+'|'+Qt({'newValue':_0x57e457})))['substring'](0x0,0x3c),_0xc8e652=this['_setSuggestionData']({'id':_0xdc87b0,'type':_0x181add,'data':_0x4fbe56,'createdAt':new Date(),'authorId':_0x302207,'attributes':_0xc0cd9b});_0x60d33a['push'](_0xc8e652),this['_addSuggestionMarker'](_0x181add,_0xdc87b0,_0x302207,_0x148895);}return _0x60d33a;}['enableDefaultAttributesIntegration'](_0xf1110c){this['enableCommand'](_0xf1110c,(_0x57f6e8,..._0x186d1d)=>{this['recordAttributeChanges'](()=>{_0x57f6e8(..._0x186d1d);});});}['registerBlockAttribute'](_0xc97895){this['_blockAttributeKeys']['add'](_0xc97895);}['registerInlineAttribute'](_0x4b0de8){this['_inlineAttributeKeys']['add'](_0x4b0de8);}['startTrackingSession'](_0x24e640){return this['_trackingSessionId']=void 0x0!==_0x24e640?_0x24e640:_0x38e47f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4af856){return'attribute'==_0x4af856['type']?ae(_0x4af856['subType']):null;}['_applyOperationsAsSuggestions'](_0x232813){if(0x0==_0x232813['length'])return;const _0x19295c=this['editor'],_0x3c807f=_0x19295c['plugins']['get'](_0x55da65);let _0x172257,_0x147e24=!0x0;for(const _0x5b1e4b in _0x232813[0x0]){const _0x2df812=_0x232813[0x0][_0x5b1e4b];if((_0x2df812 instanceof _0x4cc9c1||_0x2df812 instanceof _0x31290a)&&_0x2df812['root']['is']('documentFragment')){_0x147e24=!0x1,_0x172257=_0x2df812['root'];break;}}_0x19295c['model']['change'](_0x1ac19e=>{const _0x3a2e33=new Set();for(let _0x23b7ad=0x0;_0x23b7ad<_0x232813['length'];_0x23b7ad++){const _0x65204e=_0x232813[_0x23b7ad];if(_0x65204e['baseVersion']=_0x147e24?_0x19295c['model']['document']['version']:null,_0x65204e['isDocumentOperation']=_0x147e24,_0x3c807f['isMarkedRemoveOperation'](_0x65204e)){const _0x1a7822=te(_0x65204e['newRange'],_0x19295c['model']);if(_0x147e24)this['markDeletion'](_0x1a7822);else{const _0x1f9552='suggestion:deletion:'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x1f9552,_0x1a7822);}}else switch(_0x65204e['type']){case'rename':{const _0x57d08d=_0x65204e['oldName'],_0x4a9da7=_0x65204e['newName'];if(_0x57d08d==_0x4a9da7)break;_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e);const _0x3123a4='$elementName',_0x2c0eb9=_0x65204e['position'],_0x1be723=_0x19295c['model']['createRange'](_0x2c0eb9,_0x19295c['model']['createPositionAt'](_0x2c0eb9['nodeAfter'],'end'));if(_0x147e24)this['markAttributeChange'](_0x1be723,_0x3123a4,_0x57d08d,_0x4a9da7,{'groupId':_0x38e47f()});else{const _0x86a56d='suggestion:attribute:'+_0x3123a4+':'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x86a56d,_0x1be723);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x15755f=_0x65204e['oldValue'],_0x193cc5=_0x65204e['newValue'];if(_0x15755f==_0x193cc5)break;_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e);const _0x29bf53=_0x65204e['key'];if(!this['_isRegisteredAttribute'](_0x29bf53))break;const _0xbc330c=te(_0x65204e['range'],_0x19295c['model']);if(_0x147e24)this['markAttributeChange'](_0xbc330c,_0x29bf53,_0x15755f,_0x193cc5,{'groupId':_0x38e47f()});else{const _0x33fa24='suggestion:attribute:'+_0x29bf53+':'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x33fa24,_0xbc330c);}break;}case'insert':{_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e);const _0x124363=_0x232813[_0x23b7ad+0x1]&&'move'==_0x232813[_0x23b7ad+0x1]['type'];if(!_0x147e24&&_0x124363&&ce(_0x172257,_0x65204e),_0x124363)break;const _0x4a78de=_0x65204e['position'],_0x2e3a29=_0x65204e['howMany'],_0x6d7b5b=te(_0x19295c['model']['createRange'](_0x4a78de,_0x4a78de['getShiftedBy'](_0x2e3a29)),_0x19295c['model']);if(_0x147e24)this['markInsertion'](_0x6d7b5b);else{const _0x473939='suggestion:insertion:'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x473939,_0x6d7b5b);}break;}case'split':{_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e);const _0x3fd038=_0x65204e['splitPosition'],_0x5d96af=_0x65204e['moveTargetPosition'],_0x4cea55=_0x19295c['model']['createRange'](_0x3fd038,_0x5d96af);if(_0x147e24)this['markInsertion'](_0x19295c['model']['createRange'](_0x3fd038,_0x5d96af));else{const _0x582d96='suggestion:insertion:'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x582d96,_0x4cea55);}break;}case'move':if(_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e),!_0x147e24&&_0x232813[_0x23b7ad-0x1]&&'insert'==_0x232813[_0x23b7ad-0x1]['type']&&ce(_0x172257,_0x65204e),!_0x147e24){const _0x1bb062=_0x65204e['getMovedRangeStart'](),_0x566e68=_0x65204e['howMany'];for(let _0x8025ba=0x0;_0x8025ba<_0x566e68;_0x8025ba++){const _0x366b87=_0x1bb062['getShiftedBy'](_0x8025ba)['nodeAfter'];_0x3a2e33['add'](_0x366b87);}}break;case'remove':if(_0x147e24)_0x1ac19e['batch']['addOperation'](_0x65204e),_0x19295c['model']['applyOperation'](_0x65204e);else{const _0x470df1=_0x65204e['sourcePosition'],_0x1d9f90=_0x65204e['howMany'],_0x2d53ac=new _0x2b2f10(_0x470df1,_0x1d9f90);_0x1ac19e['batch']['addOperation'](_0x2d53ac),_0x19295c['model']['applyOperation'](_0x2d53ac);}}}for(const _0x594b7 of _0x3a2e33){const _0x27b231=_0x19295c['model']['createRangeOn'](_0x594b7),_0x1a3cf5='suggestion:formatBlock:$fakeWrap:'+_0x38e47f()+':$aiSuggestion';_0x172257['markers']['set'](_0x1a3cf5,te(_0x27b231,_0x19295c['model']));}});}['_setSuggestionRange'](_0x5477c4,_0x10b6bc){const _0xeb9d84=_0x5477c4['getFirstMarker']();this['_model']['change'](_0x2d6606=>{_0x2d6606['updateMarker'](_0xeb9d84,{'range':_0x10b6bc});});}['_addThreadToSuggestion'](_0xbed5df){const _0x37a91a=_0xbed5df['id'],_0x2e1705=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37a91a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e1705,'threadId':_0x37a91a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37b9b4=this['_commentsRepository']['getCommentThread'](_0x37a91a);_0x37b9b4['unbind']('isRemovable'),_0x37b9b4['isRemovable']=!0x1,_0xbed5df['commentThread']=_0x37b9b4;}['_checkSuggestionCorrectness'](_0x18c81a,_0x1ce246,_0x5041b7,_0x121c05){if(_0x18c81a['type']!=_0x1ce246||_0x18c81a['subType']!=_0x5041b7||_0x18c81a['creator']['id']!=_0x121c05)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x40a671('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5425ad,_0x547ff6){const _0x319c2a=_0x5425ad['getFirstRange']();if(_0x547ff6['isEqual'](_0x319c2a))_0x5425ad['removeMarkers']();else{if(_0x319c2a['containsRange'](_0x547ff6)){const _0x28ba15=this['_model']['createPositionAt'](_0x547ff6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5425ad,this['_model']['createRange'](_0x319c2a['start'],_0x28ba15));const _0x700fb7=_0x38e47f(),_0x5843d6=_0x5425ad['creator']['id'],_0x261b63=_0x5425ad['type']+':'+_0x5425ad['subType'];this['_setSuggestionData']({'id':_0x700fb7,'type':_0x261b63,'createdAt':new Date(),'authorId':_0x5843d6,'data':_0x5425ad['data'],'attributes':_0x5425ad['attributes']});const _0x5ec3b2=this['_model']['createPositionAt'](_0x547ff6['end']['parent'],'after'),_0x3eb423=this['_model']['createRange'](_0x5ec3b2,_0x319c2a['end']);this['_addSuggestionMarker'](_0x261b63,_0x700fb7,_0x5843d6,_0x3eb423);}else{if(_0x319c2a['containsPosition'](_0x547ff6['start'])){const _0x24bfa5=this['_model']['createPositionAt'](_0x547ff6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5425ad,this['_model']['createRange'](_0x319c2a['start'],_0x24bfa5));}else{const _0xea8801=this['_model']['createPositionAt'](_0x547ff6['end']['parent'],'after');this['_setSuggestionRange'](_0x5425ad,this['_model']['createRange'](_0xea8801,_0x319c2a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xf08c32){for(const {suggestion:_0x220a03,meta:_0x50e638}of this['_findSuggestions'](_0xf08c32,'insertion')){if(!_0x50e638['isOwn'])continue;const _0x2c65ed=_0x220a03['getRanges']();for(const _0x27917c of _0x2c65ed)if(!_0xf08c32['getDifference'](_0x27917c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xad90e){return this['editor']['plugins']['get']('Users')['getUser'](_0xad90e);}['_getExternalAuthor'](_0x518b47){const _0x4a498c=this['editor']['plugins']['get']('Users'),_0xa8ef34=_0x58cc8b('external:'+_0x518b47),_0x16404a=_0x4a498c['getUser'](_0xa8ef34);return _0x16404a||_0x4a498c['addUser']({'id':_0xa8ef34,'name':_0x518b47});}['_createSuggestion'](_0x2d7c82,_0x963a0a,_0x50c87d,_0x7d67d5,_0x3ed583,_0x4d179a){const _0x30fcb2=this['_getAuthorFromId'](_0x7d67d5);if(!_0x30fcb2)throw new _0x40a671('track-changes-user-not-found',this,{'authorId':_0x7d67d5,'suggestionId':_0x50c87d});const _0x3d0731=this['_suggestionFactory']['buildSuggestion'](_0x2d7c82,_0x963a0a,_0x50c87d,_0x30fcb2,_0x3ed583,_0x2dd28f=>{this['_updateSuggestionData'](_0x50c87d,{'attributes':_0x2dd28f});const _0x2ad0df=this['getSuggestion'](_0x50c87d);this['_joinWithAdjacentSuggestions'](new Set([_0x2ad0df])),this['_refreshSuggestionsChain'](new Set([_0x2ad0df]));},_0x4d179a);return this['listenTo'](_0x3d0731,'accept',()=>{this['_updateSuggestionData'](_0x50c87d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d0731,'discard',()=>{this['_updateSuggestionData'](_0x50c87d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50c87d,_0x3d0731),this['_suggestionState']['set'](_0x3d0731,'notReady'),_0x3d0731;}['_splitMarkerName'](_0x1ba3e4){const _0x93d77=_0x1ba3e4['split'](':');return{'group':_0x93d77[0x0],'type':_0x93d77[0x1],'subType':_0x93d77['length']>=0x5?_0x93d77[0x2]:null,'id':_0x93d77['length']<0x5?_0x93d77[0x2]:_0x93d77[0x3],'authorId':_0x93d77['length']<0x5?_0x93d77[0x3]:_0x93d77[0x4],'markerCount':0x6==_0x93d77['length']?_0x93d77[0x5]:null};}['_breakSuggestionMarker'](_0x2845c7,_0x2d600c,_0x16fa6b){const _0x41fda3=_0x2845c7['getFirstRange'](),_0x2816b2=_0x41fda3['start'],_0x32e55b=_0x41fda3['end'];this['_setSuggestionRange'](_0x2845c7,this['_model']['createRange'](_0x2816b2,_0x2d600c));const _0x1d8dd9=_0x38e47f(),_0x32e195=_0x2845c7['creator']['id'],_0x60e6bc=_0x2845c7['type']+(_0x2845c7['subType']?':'+_0x2845c7['subType']:'');this['_setSuggestionData']({'id':_0x1d8dd9,'type':_0x60e6bc,'createdAt':new Date(),'authorId':_0x32e195,'originalSuggestionId':_0x2845c7['_originalSuggestionId']||_0x2845c7['id'],'attributes':_0x2845c7['attributes'],'data':_0x2845c7['data']});const _0x40aeb2=this['_getAttributeKey'](_0x2845c7);('formatBlock'==_0x2845c7['type']||_0x40aeb2&&this['_isBlockAttribute'](_0x40aeb2))&&(_0x16fa6b=this['_model']['createPositionBefore'](_0x16fa6b['parent'])),this['_addSuggestionMarker'](_0x60e6bc,_0x1d8dd9,_0x32e195,this['_model']['createRange'](_0x16fa6b,_0x32e55b));}['_findSuggestions'](_0x629b99,_0x3dc814=null){const _0x255937=[],_0x1bfba1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x629b99)||(_0x629b99=[_0x629b99]);for(const _0x5c70d5 of this['getSuggestions']()){if(!_0x5c70d5['isInContent'])continue;if(_0x3dc814&&_0x5c70d5['type']!=_0x3dc814)continue;let _0x56b6dd=!0x1;for(const _0x267f2f of _0x5c70d5['getRanges']()){for(const _0x3caf66 of _0x629b99){const _0x360a54=_0x3caf66['start']['isEqual'](_0x267f2f['end'])||_0x3caf66['end']['isEqual'](_0x267f2f['start']);if(_0x360a54||_0x3caf66['getIntersection'](_0x267f2f)){const _0x33684b=_0x3caf66['containsRange'](_0x267f2f)&&Ht(this['_model']['schema'],_0x267f2f['start'],_0x3caf66),_0x45b275=_0x267f2f['containsRange'](_0x3caf66)&&Ht(this['_model']['schema'],_0x3caf66['start'],_0x267f2f);_0x255937['push']({'suggestion':_0x5c70d5,'meta':{'isOwn':_0x1bfba1==_0x5c70d5['author'],'isNextTo':_0x360a54,'isInsideObject':_0x33684b,'containsRangeInObject':_0x45b275}}),_0x56b6dd=!0x0;break;}}if(_0x56b6dd)break;}}return _0x255937;}['_addSuggestionMarker'](_0x4a7dcd,_0x34f02e,_0x5baf69,_0x37a460,_0xc466dd){this['_model']['change'](_0x7a2234=>{let _0x26ea43='suggestion:'+_0x4a7dcd+':'+_0x34f02e+':'+_0x5baf69;_0xc466dd&&(_0x26ea43=_0x26ea43+':'+_0xc466dd),_0x7a2234['addMarker'](_0x26ea43,{'range':_0x37a460,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4dcb47){const _0xecbf78=_0x4dcb47['previous'],_0x2d9049=_0x4dcb47['next'];_0x4dcb47['previous']=null,_0x4dcb47['next']=null,null!=_0xecbf78&&_0xecbf78['next']==_0x4dcb47&&(_0xecbf78['next']=_0x2d9049),null!=_0x2d9049&&_0x2d9049['previous']==_0x4dcb47&&(_0x2d9049['previous']=_0xecbf78),'ready'==this['_suggestionState']['get'](_0x4dcb47)&&(this['_suggestionState']['set'](_0x4dcb47,'removed'),this['fire']('suggestionUnloaded',_0x4dcb47,_0xecbf78,_0x2d9049));}['_setSuggestionData'](_0x4356b5){const _0x338d6a=_0x4356b5['id'],_0x17366f=this['addSuggestionData'](_0x4356b5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2765cd=this['editor']['plugins']['get']('PendingActions'),_0xc2e0ad=_0x17366f['hasComments'],_0x512b58=_0x17366f['subType']?_0x17366f['type']+':'+_0x17366f['subType']:_0x17366f['type'],_0x56ad32=this['editor']['locale'],_0x411829=_0x2765cd['add'](o(_0x56ad32,'PENDING_ACTION_SUGGESTION')),_0x44cf78={'id':_0x338d6a,'type':_0x512b58,'hasComments':_0xc2e0ad,'data':_0x4356b5['data']||null,'originalSuggestionId':_0x4356b5['originalSuggestionId']||null,'attributes':_0x17366f['attributes']};this['_adapter']['addSuggestion'](_0x44cf78)['then'](_0x29305d=>{_0x17366f['_saved']=!0x0,_0x2765cd['remove'](_0x411829),_0x29305d&&_0x29305d['createdAt']&&(this['_suggestions']['get'](_0x338d6a)['createdAt']=_0x29305d['createdAt']);})['catch'](_0x11e877=>{throw _0x9512fb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x17366f['discard']();}),_0x17366f['stopListening'](),this['_suggestions']['delete'](_0x17366f['id']),this['_suggestionState']['delete'](_0x17366f),_0x11e877;});}return _0x17366f;}['_isBlockAttribute'](_0xcdee6c){return this['_blockAttributeKeys']['has'](_0xcdee6c);}['_isInlineAttribute'](_0x54581d){return this['_inlineAttributeKeys']['has'](_0x54581d);}['_updateSuggestionData'](_0xef6166,_0x36b23e){const _0x555688=this['editor']['plugins']['get']('PendingActions'),_0x279665=this['getSuggestion'](_0xef6166);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x279665['_saved']){const _0x3dc1b9=_0x555688['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xef6166,_0x36b23e)['then'](()=>{_0x555688['remove'](_0x3dc1b9);});}else _0x279665['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xef6166,_0x36b23e);});}}['_getSuggestionData'](_0x2370eb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x40a671('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2370eb);}['_handleNewSuggestionMarker'](_0x2442c8){const {id:_0x594a41,type:_0x5d67fa,subType:_0x5631a9,authorId:_0xe901a}=this['_splitMarkerName'](_0x2442c8),_0x576182=this['_suggestions']['get'](_0x594a41)||this['_createSuggestion'](_0x5d67fa,_0x5631a9,_0x594a41,_0xe901a,{});switch(this['_checkSuggestionCorrectness'](_0x576182,_0x5d67fa,_0x5631a9,_0xe901a),this['_suggestionState']['get'](_0x576182)){case'notReady':this['_getSuggestionData'](_0x594a41)['then'](_0x3e87f0=>{let _0x4ef6f2=Promise['resolve']();_0x3e87f0['hasComments']&&(_0x4ef6f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x594a41})),_0x4ef6f2['then'](()=>{this['addSuggestionData'](_0x3e87f0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x576182,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x594a41,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x576182,'ready'),this['fire']('suggestionLoaded',_0x576182);break;case'ready':this['fire']('suggestionChanged',_0x576182);}return _0x576182['addMarkerName'](_0x2442c8),_0x576182;}['_refreshSuggestionsChain'](_0x425432){const _0x33c7fb=Array['from'](_0x425432),_0x3d1fb8=_0x33c7fb['filter'](_0x29ea1a=>'attribute'==_0x29ea1a['type']);this['_refreshAttributeSuggestionsChain'](_0x3d1fb8);const _0x58157a=_0x33c7fb['filter'](_0x57d486=>!_0x57d486['isMultiRange']&&'attribute'!=_0x57d486['type']),_0x4af6d0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c6158=>!_0x1c6158['isMultiRange']&&'attribute'!=_0x1c6158['type']),_0x51b16e=_0x4af6d0['filter'](_0x6b9f7b=>!_0x425432['has'](_0x6b9f7b)),_0x55d7e1=new Map(_0x4af6d0['map'](_0x28e48a=>[_0x28e48a,this['_suggestionFactory']['getSuggestionCallback'](_0x28e48a['type'],_0x28e48a['subType'],'chain')])),_0x3dd1bc=new Map(_0x4af6d0['map'](_0x3425d8=>[_0x3425d8,_0x3425d8['getFirstRange']()])),_0x1204f0=new Set(),_0x515bcd=new Set();for(let _0x3d1e87=0x0;_0x3d1e87<_0x58157a['length'];_0x3d1e87++)_0x1b5666(_0x58157a[_0x3d1e87],_0x58157a,_0x3d1e87+0x1);for(let _0x361202=0x0;_0x361202<_0x58157a['length'];_0x361202++)_0x1b5666(_0x58157a[_0x361202],_0x51b16e,0x0);const _0x31672e=new Set();for(let _0xb63124=0x0;_0xb63124<_0x58157a['length'];_0xb63124++){const _0x3d1837=_0x58157a[_0xb63124];!_0x515bcd['has'](_0x3d1837)&&_0x3d1837['previous']&&(_0x31672e['add'](_0x3d1837['previous']),_0x3d1837['previous']['next']===_0x3d1837&&(_0x3d1837['previous']['next']=null),_0x3d1837['previous']=null),!_0x1204f0['has'](_0x3d1837)&&_0x3d1837['next']&&(_0x31672e['add'](_0x3d1837['next']),_0x3d1837['next']['previous']===_0x3d1837&&(_0x3d1837['next']['previous']=null),_0x3d1837['next']=null);}function _0x1b5666(_0x4a9cca,_0x1d8581,_0x3a3832){for(let _0x336431=_0x3a3832;_0x336431<_0x1d8581['length'];_0x336431++){const _0x56f901=_0x1f8e35(_0x4a9cca,_0x1d8581[_0x336431]);_0x56f901&&(_0x56f901[0x0]['next']=_0x56f901[0x1],_0x56f901[0x1]['previous']=_0x56f901[0x0],_0x1204f0['add'](_0x56f901[0x0]),_0x515bcd['add'](_0x56f901[0x1]));}}function _0x1f8e35(_0x206cb5,_0x2e4fcb){if(_0x206cb5['author']['id']!==_0x2e4fcb['author']['id'])return null;const _0x467394=_0x55d7e1['get'](_0x206cb5)(_0x206cb5,_0x2e4fcb,_0x3dd1bc['get'](_0x206cb5),_0x3dd1bc['get'](_0x2e4fcb));if(!_0x467394)return null;return _0x55d7e1['get'](_0x2e4fcb)(_0x206cb5,_0x2e4fcb,_0x3dd1bc['get'](_0x206cb5),_0x3dd1bc['get'](_0x2e4fcb))?_0x467394[0x1]['commentThread']&&_0x467394[0x1]['commentThread']['length']?null:_0x467394:null;}_0x31672e['size']&&this['_refreshSuggestionsChain'](_0x31672e);}['_refreshAttributeSuggestionsChain'](_0x202556){if(0x0==_0x202556['length'])return;const _0x2ea56a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x267f35=>'attribute'==_0x267f35['type']&&_0x267f35['_isDataLoaded']),_0x17bba8=[],_0x5d1fb7=new Map();for(const _0x53edda of _0x2ea56a){const _0x4b7dfc=_0x58cc8b(_0x53edda['attributes']);_0x5d1fb7['has'](_0x4b7dfc)||(_0x5d1fb7['set'](_0x4b7dfc,_0x17bba8['length']),_0x17bba8['push']([]));const _0xdf35d2=_0x5d1fb7['get'](_0x4b7dfc);_0x17bba8[_0xdf35d2]['push'](_0x53edda);}!(function(){_0x17bba8['sort']((_0xda2882,_0x51f206)=>{const _0x17033e=_0xda2882[0x0]['createdAt'],_0x23c995=_0x51f206[0x0]['createdAt'];return _0x17033e==_0x23c995?_0xda2882[0x0]['attributes']['groupId']<_0x51f206[0x0]['attributes']['groupId']?-0x1:0x1:_0x17033e<_0x23c995?-0x1:0x1;});for(const _0x2988e0 of _0x17bba8)_0x2988e0['sort']((_0x416065,_0x296df8)=>_0x416065['id']<_0x296df8['id']?-0x1:0x1);}());for(let _0x5e811e=0x0;_0x5e811e<_0x17bba8['length'];_0x5e811e++){if(0x0==_0x17bba8[_0x5e811e]['length'])continue;const _0x5dde3b=[];for(let _0x3a83ec=_0x5e811e+0x1;_0x3a83ec<_0x17bba8['length'];_0x3a83ec++)0x0!=_0x17bba8[_0x3a83ec]['length']&&_0xb44c23(_0x17bba8[_0x5e811e],_0x17bba8[_0x3a83ec])&&_0x5dde3b['push'](_0x3a83ec);for(const _0x37981d of _0x5dde3b)_0x17bba8[_0x5e811e]=_0x17bba8[_0x5e811e]['concat'](_0x17bba8[_0x37981d]),_0x17bba8[_0x37981d]=[];}for(const _0x2cf06d of _0x17bba8)for(let _0x1dbed4=0x0;_0x1dbed4<_0x2cf06d['length'];_0x1dbed4++){const _0x185b34=_0x2cf06d[_0x1dbed4+0x1]||null;_0x2cf06d[_0x1dbed4]['next']!==_0x185b34&&(_0x2cf06d[_0x1dbed4]['next']=_0x185b34);}for(const _0x5754d4 of _0x17bba8)for(let _0x5499d7=0x0;_0x5499d7<_0x5754d4['length'];_0x5499d7++){const _0x52a420=_0x5754d4[_0x5499d7-0x1]||null;_0x5754d4[_0x5499d7]['previous']!==_0x52a420&&(_0x5754d4[_0x5499d7]['previous']=_0x52a420);}function _0xb44c23(_0x2acd07,_0x246fb6){if(_0x2acd07[0x0]['attributes']['groupId']!==_0x246fb6[0x0]['attributes']['groupId']&&_0x2acd07[0x0]['author']!==_0x246fb6[0x0]['author'])return!0x1;if(!function(_0x198356,_0x466ea6){if(!_0x198356['hasComments']&&!_0x466ea6['hasComments'])return!0x0;if(_0x198356['hasComments']&&_0x466ea6['hasComments'])return!0x1;if(_0x198356['hasComments']&&_0x466ea6['createdAt']<_0x198356['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x466ea6['hasComments']&&_0x198356['createdAt']<_0x466ea6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2acd07[0x0],_0x246fb6[0x0]))return!0x1;const _0x3dc008=Kt(_0x2acd07[0x0]['attributes'],['groupId','trackingSessionId']),_0x5cd41e=Kt(_0x246fb6[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xbe0a30(_0x3dc008,_0x5cd41e))return!0x1;if(_0x2acd07[0x0]['attributes']['groupId']==_0x246fb6[0x0]['attributes']['groupId'])return!0x0;if(_0x2acd07[0x0]['attributes']['trackingSessionId']!==_0x246fb6[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2acd07['every'](_0x2846cb=>_0x246fb6['some'](_0x481a03=>_0x2846cb['getFirstRange']()['isEqual'](_0x481a03['getFirstRange']())))&&_0x246fb6['every'](_0x2166c1=>_0x2acd07['some'](_0x1182dc=>_0x2166c1['getFirstRange']()['isEqual'](_0x1182dc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2d3153){const _0xca0e52=Array['from'](_0x2d3153),_0x2649c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x504515=_0x2649c3['filter'](_0x65c064=>!_0x2d3153['has'](_0x65c064)),_0x505f4c=new Map(_0xca0e52['map'](_0x51e274=>[_0x51e274,this['_suggestionFactory']['getSuggestionCallback'](_0x51e274['type'],_0x51e274['subType'],'join')])),_0x529d05=new Map(_0x2649c3['map'](_0x212ceb=>[_0x212ceb,_0x212ceb['getRanges']()]));for(let _0x28057d=0x0;_0x28057d<_0xca0e52['length'];_0x28057d++){if(_0x83f314(this,_0xca0e52[_0x28057d],_0xca0e52,_0x28057d+0x1))return!0x0;}for(let _0x359bdf=0x0;_0x359bdf<_0xca0e52['length'];_0x359bdf++){if(_0x83f314(this,_0xca0e52[_0x359bdf],_0x504515,0x0))return!0x0;}return!0x1;function _0x83f314(_0x412232,_0x343899,_0x1895f2,_0x5aee75){for(let _0x2d436d=_0x5aee75;_0x2d436d<_0x1895f2['length'];_0x2d436d++){const _0xe39f2=_0x1895f2[_0x2d436d];if(_0xe39f2['type']!==_0x343899['type']||_0xe39f2['author']['id']!==_0x343899['author']['id']||_0xe39f2['subType']!==_0x343899['subType'])continue;if(!se(_0x343899,_0xe39f2))continue;if('attribute'==_0x343899['type']&&_0x343899['data']['oldValue']!=_0xe39f2['data']['oldValue'])continue;if('attribute'==_0x343899['type']&&_0x412232['_isBlockAttribute'](_0x343899['data']['key']))continue;if('formatBlock'==_0x343899['type']){const _0x3b05b3=_0x412232['editor']['model'],_0x128621=_0x343899['getContainedElement']();if(_0x128621&&(_0x3b05b3['schema']['isObject'](_0x128621)||_0x3b05b3['schema']['isLimit'](_0x128621)))continue;}const _0x2f07dd=_0x505f4c['get'](_0x343899),_0x312ca6=_0x529d05['get'](_0x343899),_0x547f1d=_0x529d05['get'](_0xe39f2),_0x12faa5=_0x343899['commentThread']&&_0x343899['commentThread']['length'],_0x5f2d56=_0xe39f2['commentThread']&&_0xe39f2['commentThread']['length'];if(!_0x12faa5&&_0x2f07dd(_0x547f1d,_0x312ca6))return _0x412232['_joinSuggestions'](_0xe39f2,_0x343899),_0x529d05['delete'](_0x343899),!0x0;if(!_0x5f2d56&&_0x2f07dd(_0x312ca6,_0x547f1d))return _0x412232['_joinSuggestions'](_0x343899,_0xe39f2),_0x529d05['delete'](_0xe39f2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1795f3,_0x18223b){if(_0x1795f3['isMultiRange']){for(const _0x3332f7 of _0x18223b['getRanges']())_0x1795f3['addRange'](_0x3332f7);}else{const _0x57c56e=_0x18223b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1795f3,this['_model']['createRange'](_0x1795f3['getFirstRange']()['start'],_0x57c56e));}_0x18223b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5ed309,_0x1d3183,_0x5dba19){const _0x412f05=_0x5ed309['startsWith']('format')||_0x5ed309['startsWith']('attribute')?'FORMATTING':_0x5ed309['toUpperCase']();return o(this['editor']['locale'],_0x1d3183+'_'+_0x412f05+'_SUGGESTION_ANNOUNCEMENT',_0x5dba19);}['_initAriaMarkerChangeAnnouncements'](){const _0x22ea02=this['editor'];if(!_0x22ea02['ui'])return;const {ariaLiveAnnouncer:_0xe6ae9b}=_0x22ea02['ui'];_0x3c4303(this['_model'],({left:_0x1d4cd2,entered:_0x40cd21})=>{for(const _0xddb95a of _0x1d4cd2){const {group:_0x3ffc23,type:_0x535c88}=this['_splitMarkerName'](_0xddb95a['name']);if('suggestion'===_0x3ffc23){_0xe6ae9b['announce'](this['_getMarkerAnnouncementText'](_0x535c88,'LEAVE'));break;}}for(const _0x4ebbf0 of _0x40cd21){const {group:_0x5812d9,type:_0x64f063}=this['_splitMarkerName'](_0x4ebbf0['name']);if('suggestion'===_0x5812d9){_0xe6ae9b['announce'](this['_getMarkerAnnouncementText'](_0x64f063,'ENTER',_0x34dd00(_0x3c30d4)));break;}}});}['_processAttributeChanges'](_0x151b38){if(this['_recordAttributeSuggestions'])return!0x1;const _0x12480f=this['editor'],_0x43b336=_0x12480f['model']['document']['differ']['getChanges']();if(0x0==_0x43b336['length'])return!0x1;const _0x30bf74=[],_0x556784=_0x43b336['filter'](_0x215bbb=>'attribute'==_0x215bbb['type']),_0x462f23=_0x43b336['filter'](_0x2b26df=>'insert'==_0x2b26df['type']&&'$text'!=_0x2b26df['name']),_0x15d66d=_0x43b336['filter'](_0x17b8f1=>'remove'==_0x17b8f1['type']&&'$text'!=_0x17b8f1['name']);for(const _0x246c97 of _0x556784)_0x30bf74['push']({'key':_0x246c97['attributeKey'],'newValue':_0x246c97['attributeNewValue'],'oldValue':_0x246c97['attributeOldValue'],'range':ee(_0x246c97['range'],_0x12480f['model'])});for(const _0x1a74b3 of _0x462f23){const _0x16f24f=_0x15d66d['find'](_0x566f3b=>_0x566f3b['position']['isEqual'](_0x1a74b3['position']));_0x16f24f&&_0x30bf74['push']({'key':m,'newValue':_0x1a74b3['name'],'oldValue':_0x16f24f['name'],'range':_0x12480f['model']['createRangeOn'](_0x1a74b3['position']['nodeAfter'])});}return 0x0!=_0x30bf74['length']&&this['_reduceExistingSuggestions'](_0x151b38,_0x30bf74);}['_processAttributeSuggestions'](_0x8edd4d){let _0x58e4dc=!0x1;const _0x5a76f2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19477d=>_0x19477d['data']['newRange']&&_0x19477d['name']['startsWith']('suggestion:attribute:'));for(const _0x2cb00e of _0x5a76f2){const {subType:_0x7c8f55,id:_0x456546}=this['_splitMarkerName'](_0x2cb00e['name']),_0x355df2=_0x7c8f55['split']('|')[0x0];for(const _0x55e11f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x55e11f['id']!=_0x456546&&'attribute'==_0x55e11f['type']&&_0x55e11f['data']&&_0x55e11f['data']['key']==_0x355df2&&_0x55e11f['getFirstRange']()['isIntersecting'](_0x2cb00e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x55e11f,_0x2cb00e['data']['newRange'],_0x8edd4d),_0x58e4dc=!0x0);}return _0x58e4dc;}['recordAttributeChanges'](_0x1bbabd){this['_recordAttributeSuggestions']=!0x0,_0x1bbabd();}['_isRegisteredAttribute'](_0x4d0bb1){const _0x3ca3d1=this['_isBlockAttribute'](_0x4d0bb1),_0x187f5c=this['_isInlineAttribute'](_0x4d0bb1);return _0x3ca3d1||_0x187f5c;}['_reduceExistingSuggestions'](_0x170539,_0x34f527){if(0x0==_0x34f527['length'])return!0x1;let _0x58a051=!0x1;for(const _0x1f94ee of _0x34f527){const _0x6aa55c=this['_findSuggestions'](_0x1f94ee['range'],'attribute')['filter'](_0x5ecffc=>!_0x5ecffc['meta']['isNextTo'])['map'](_0x5864db=>_0x5864db['suggestion']),_0x355020=_0x58cc8b({'newValue':_0x1f94ee['newValue']});_0x6aa55c['filter'](_0x129370=>{const [_0x4933f5,_0x352647]=_0x129370['subType']['split']('|');return _0x4933f5==_0x1f94ee['key']&&_0x352647!=_0x355020;})['forEach'](_0x1c1da3=>{this['_reduceSuggestionAttributeRange'](_0x1c1da3,_0x1f94ee['range'],_0x170539),_0x58a051=!0x0;});}return _0x58a051;}['_reduceSuggestionAttributeRange'](_0x3d60a8,_0x1b8621,_0x42746e){const _0x4a3323=_0x3d60a8['getFirstRange']()['getDifference'](_0x1b8621);0x0!==_0x4a3323['length']?0x1!==_0x4a3323['length']?this['_breakSuggestionMarker'](_0x3d60a8,_0x1b8621['start'],_0x1b8621['end']):this['_setSuggestionRange'](_0x3d60a8,_0x4a3323[0x0]):_0x42746e['removeMarker'](_0x3d60a8['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x541c30){this['_editor']=_0x541c30,this['_model']=_0x541c30['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4c2f77,_0x334693,_0xabe7b4,_0x5edf01,_0x27df4f,_0x114623,_0xa3560e){return new R(this['_model'],{'type':_0x4c2f77,'subType':_0x334693,'id':_0xabe7b4,'originalSuggestionId':_0xa3560e,'author':_0x5edf01,'creator':_0x5edf01,'attributes':_0x27df4f,'onAttributesChange':_0x114623,'onAccept':(..._0xd31ff7)=>this['getSuggestionCallback'](_0x4c2f77,_0x334693,'accept')(..._0xd31ff7),'onDiscard':(..._0x7d6a57)=>this['getSuggestionCallback'](_0x4c2f77,_0x334693,'discard')(..._0x7d6a57)});}['registerCustomCallback'](_0x451602,_0x66e769,_0x5984f1,_0x1a39e7){const _0x5a9a62=_0x451602+':'+_0x66e769+':'+_0x5984f1;this['_customCallbacks']['set'](_0x5a9a62,_0x1a39e7);}['getSuggestionCallback'](_0x55270a,_0x1375f9,_0x5e6f4f){const _0x2aece5=_0x55270a+':'+_0x1375f9+':'+_0x5e6f4f;return this['_customCallbacks']['get'](_0x2aece5)||this['_defaultCallbacks']['get'](_0x55270a+':'+_0x5e6f4f);}['_registerDefaultCallbacks'](){const _0x376fd7=()=>!0x1,_0x16f0ec=_0x45a801=>{_0x45a801['sort']((_0x8b16b7,_0x2a9f27)=>_0x8b16b7['start']['isBefore'](_0x2a9f27['start'])?0x1:-0x1),this['_model']['change'](_0x37dab5=>{for(const _0x294952 of _0x45a801){let _0x57f03d;_0x57f03d=_0x294952['end']['isAtEnd']&&_0x294952['end']['parent']==_0x294952['start']['nodeAfter']?_0x37dab5['createSelection'](_0x294952['start']['nodeAfter'],'on'):_0x37dab5['createSelection'](_0x294952),this['_model']['deleteContent'](_0x57f03d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a6b72=(_0x28a7a9,_0x559457)=>{_0x559457&&this['_model']['change'](_0x41bbc4=>{const {commandName:_0x3f45e4,commandParams:_0x2df0f6=[]}=_0x559457,_0x3ac07c=_0x28a7a9['map'](_0xe34070=>(Wt(_0xe34070)&&(_0xe34070=this['_model']['createRange'](_0xe34070['end'])),_0xe34070))['filter'](_0x192754=>'$graveyard'!==_0x192754['root']['rootName']);if(_0x3ac07c['length']<0x1)return;const _0x30ada2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x9d7d40=>_0x284d24['fromRange'](_0x9d7d40));_0x41bbc4['setSelection'](_0x3ac07c);for(const _0x3c5e01 of this['_editor']['commands']['commands']())_0x3c5e01['refresh']();_0x2df0f6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3f45e4,..._0x2df0f6);const _0x2c02ba=_0x30ada2['filter'](_0x5715b7=>'$graveyard'!=_0x5715b7['root']['rootName']);_0x2c02ba['length']>0x0&&_0x41bbc4['setSelection'](_0x2c02ba);for(const _0x5d19c0 of _0x30ada2)_0x5d19c0['detach']();});},_0x100672=(_0x24c517,_0x545f9a)=>0x1==_0x24c517['length']&&0x1==_0x545f9a['length']&&_0x24c517[0x0]['end']['isEqual'](_0x545f9a[0x0]['start']),_0x3e729f=(_0x1394ec,_0x1a568a,_0x170abc,_0x5873ac)=>ne(_0x1394ec,_0x1a568a,_0x170abc,_0x5873ac)?[_0x1394ec,_0x1a568a]:ne(_0x1a568a,_0x1394ec,_0x5873ac,_0x170abc)?[_0x1a568a,_0x1394ec]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x376fd7),this['_defaultCallbacks']['set']('insertion:discard',_0x16f0ec),this['_defaultCallbacks']['set']('insertion:join',_0x100672),this['_defaultCallbacks']['set']('insertion:chain',_0x3e729f),this['_defaultCallbacks']['set']('deletion:accept',_0x16f0ec),this['_defaultCallbacks']['set']('deletion:discard',_0x376fd7),this['_defaultCallbacks']['set']('deletion:join',_0x100672),this['_defaultCallbacks']['set']('deletion:chain',_0x3e729f),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a6b72),this['_defaultCallbacks']['set']('formatInline:discard',_0x376fd7),this['_defaultCallbacks']['set']('formatInline:join',_0x100672),this['_defaultCallbacks']['set']('formatInline:chain',_0x376fd7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a6b72),this['_defaultCallbacks']['set']('formatBlock:discard',_0x376fd7),this['_defaultCallbacks']['set']('formatBlock:join',_0x100672),this['_defaultCallbacks']['set']('formatBlock:chain',_0x376fd7),this['_defaultCallbacks']['set']('attribute:accept',_0x376fd7),this['_defaultCallbacks']['set']('attribute:discard',(_0x4e8e7f,_0x4dabf1)=>{if(!_0x4dabf1)return;const _0x5a575a=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x56d3a8=>{if(_0x4dabf1['key']==m)for(const _0x10114d of _0x4e8e7f){const _0x213a6c=_0x10114d['start']['nodeAfter'],_0x12d671=_0x4dabf1['oldValue'];_0x56d3a8['rename'](_0x213a6c,_0x12d671);}else{if(_0x5a575a['_isBlockAttribute'](_0x4dabf1['key'])){for(const _0x39896f of _0x4e8e7f)void 0x0!==_0x4dabf1['oldValue']?_0x56d3a8['setAttribute'](_0x4dabf1['key'],_0x4dabf1['oldValue'],_0x39896f['start']['nodeAfter']):_0x56d3a8['removeAttribute'](_0x4dabf1['key'],_0x39896f['start']['nodeAfter']);}else{for(const _0x152941 of _0x4e8e7f)_0x4dabf1['oldValue']?_0x56d3a8['setAttribute'](_0x4dabf1['key'],_0x4dabf1['oldValue'],_0x152941):_0x56d3a8['removeAttribute'](_0x4dabf1['key'],_0x152941);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x100672);}}function Ht(_0x54a14c,_0x74f29a,_0x101f31){for(const _0x27cea4 of _0x74f29a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27cea4['root']==_0x27cea4)return!0x1;if(!_0x101f31['containsItem'](_0x27cea4))return!0x1;if(_0x54a14c['isObject'](_0x27cea4)||_0x54a14c['isLimit'](_0x27cea4))return!0x0;}return!0x1;}function Wt(_0x3eb61d){return _0x3eb61d['end']['parent']==_0x3eb61d['start']['nodeAfter']&&_0x3eb61d['end']['isAtStart'];}function zt(_0x5df3a0,_0x666691,_0x5d14a7,_0x81567){const _0x915812=_0x53a674=>!_0x53a674['item']['is']('$textProxy')&&!_0x81567['isObject'](_0x53a674['item']),_0x2c9242=_0x5df3a0['start']['getLastMatchingPosition'](_0x915812),_0xc625e8=_0x5df3a0['end']['getLastMatchingPosition'](_0x915812,{'direction':'backward'});return(!_0x5df3a0['start']['isEqual'](_0x2c9242)||!_0x5df3a0['end']['isEqual'](_0xc625e8))&&(_0x2c9242['isBefore'](_0xc625e8)?_0x5d14a7['updateMarker'](_0x666691,{'range':_0x5d14a7['createRange'](_0x2c9242,_0xc625e8)}):_0x5d14a7['removeMarker'](_0x666691),!0x0);}function Qt(_0x2333c4){return _0x58cc8b(_0x2333c4);}function Xt(_0x278256){const _0x44b34e=_0x278256['start']['nodeAfter'];return _0x44b34e&&_0x44b34e['is']('element');}function Yt(_0x2e177e){return Wt(_0x2e177e)||function(_0x250aa1){return _0x250aa1['start']['parent']==_0x250aa1['end']['nodeBefore']&&_0x250aa1['start']['isAtEnd'];}(_0x2e177e);}function Zt(_0xdcddcc,_0x3806ae){try{const _0x29b027=_0xdcddcc['getRange']();for(const _0xefeaeb of _0x3806ae)if(_0xdcddcc!==_0xefeaeb&&_0x29b027&&_0x29b027['isIntersecting'](_0xefeaeb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x2d6807,_0x7b6622){const _0x1ff1f3=_0x2d6807['end']['nodeBefore'];if(_0x1ff1f3&&_0x1ff1f3['is']('element')&&_0x7b6622['schema']['isBlock'](_0x1ff1f3)&&!_0x7b6622['schema']['isObject'](_0x1ff1f3)){const _0x48f379=_0x7b6622['createPositionAt'](_0x1ff1f3,'end');return _0x7b6622['createRange'](_0x2d6807['start'],_0x48f379);}return _0x2d6807;}function ee(_0x5ece61,_0x51deee){return null==_0x5ece61['end']['nodeBefore']&&_0x5ece61['end']['parent']==_0x5ece61['start']['nodeAfter']?ie(_0x5ece61['start']['nodeAfter'],_0x51deee):_0x5ece61;}function ie(_0x13b48e,_0x104a0c){const _0x10ab40=_0x104a0c['schema']['isObject'](_0x13b48e)||_0x104a0c['schema']['isSelectable'](_0x13b48e);return _0x104a0c['createRange'](_0x104a0c['createPositionAt'](_0x13b48e,'before'),_0x10ab40?_0x104a0c['createPositionAfter'](_0x13b48e):_0x104a0c['createPositionAt'](_0x13b48e,'end'));}function ne(_0x49b066,_0x13df19,_0x401ded,_0x672c5c){return!!se(_0x49b066,_0x13df19)&&_0x401ded['end']['isEqual'](_0x672c5c['start']);}function se(_0x40b1b9,_0x581eb7){if(!_0x40b1b9['_isDataLoaded']||!_0x581eb7['_isDataLoaded'])return!0x1;const _0x147d92=new Set(Object['keys'](_0x40b1b9['attributes'])),_0x1ca579=new Set(Object['keys'](_0x581eb7['attributes']));if(_0x147d92['delete']('groupId'),_0x1ca579['delete']('groupId'),0x0==_0x147d92['size']&&0x0==_0x1ca579['size'])return!0x0;if(_0x147d92['size']!=_0x1ca579['size'])return!0x1;const _0x4b3c4e={..._0x40b1b9['attributes']},_0x1deed6={..._0x581eb7['attributes']};return delete _0x4b3c4e['groupId'],delete _0x1deed6['groupId'],JSON['stringify'](_0x4b3c4e)==JSON['stringify'](_0x1deed6);}function oe(_0x3faef3,_0x3f4477){const _0x145821=re(_0x3faef3['attributes']),_0x1831ec=re(_0x3f4477);if(!_0x3faef3['_isDataLoaded'])return!0x1;for(const _0x1f3fc3 of Object['keys'](_0x1831ec))if(!_0xbe0a30(_0x145821[_0x1f3fc3],_0x1831ec[_0x1f3fc3]))return!0x1;return!0x0;}function re(_0x30ef7b){const _0x2e3a87=Object['assign']({},_0x30ef7b);return delete _0x2e3a87['skipNestingCheck'],delete _0x2e3a87['tablePasteChainId'],_0x2e3a87;}function ae(_0x183e2d){return _0x183e2d['split']('|')[0x0];}function ce(_0x53eb67,_0x18bed8){for(const [_0x135c17,_0x3f4807]of _0x53eb67['markers']){const _0x18973e=_0x31290a['_createFromRanges'](_0x3f4807['getTransformedByOperation'](_0x18bed8));_0x53eb67['markers']['set'](_0x135c17,_0x18973e);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1cadee(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4a6f8f,_0x3db77b,_0xf9083b,_0x4bebd8){super(),this['model']=_0x3db77b,this['view']=_0xf9083b,this['commentThreadController']=_0x4bebd8,this['_editor']=_0x4a6f8f,this['_acceptCommand']=_0x4a6f8f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4a6f8f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ef0c2,_0x456646)=>_0x2ef0c2||_0x456646),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x127f71=>_0x127f71&&this['_editor']['model']['canEditAt'](_0x3db77b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1ac2c7=>_0x1ac2c7&&this['_editor']['model']['canEditAt'](_0x3db77b['getRanges']())),this['_pendingAction']=null,_0xf9083b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf9083b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf9083b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf9083b,'change:isDirty',()=>{_0xf9083b['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 _0x55b831=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55b831);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0xfe7613{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ae2ca,_0x593d8e,_0x593a70,_0x55209a){super(_0x1ae2ca),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x9f7803(_0x1ae2ca,o(_0x1ae2ca,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x593d8e['authoredAt']),this['bind']('authoredAt')['to'](_0x593d8e),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',_0x593d8e,'authoredAt',this,'descriptionParts',(_0x11d1c1,_0x2b91c2,_0x4b5c7d)=>{const _0xa11815=_0x4b5c7d['map'](_0xd6a0e3=>ls(_0xd6a0e3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x11d1c1-0x1,_0x593d8e['author']['name'],_0x2b91c2?_0x55209a['formatDateTime'](_0x2b91c2):'',new DOMParser()['parseFromString'](_0xa11815,'text/html')['body']['textContent']]);}),this['focusables']=new _0x27c363(),this['focusTracker']=new _0x9449d0(),this['keystrokes']=new _0x1276c6(),this['focusCycler']=new _0x597168({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x33225d=>_0x33225d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x593d8e,this['_localUser']=_0x593a70,this['_config']=_0x55209a,_0x55209a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x532bb8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x23eabc}=this['_config'];this['commentsListView']=new _0x23eabc(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',_0x23972b=>_0x23972b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x52610c,_0x118373)=>_0x52610c||!!_0x118373);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3aeff3}=this['_config'],_0x4f6082=new _0x3aeff3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x554428=_0x4f6082['commentInputView'];return _0x4f6082['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x554428,'value',(_0x50da86,_0x4e4d5d,_0x135eda)=>!!_0x135eda||_0x50da86&&!_0x4e4d5d),_0x554428['on']('submit',(_0x5e158a,_0x591b39)=>{this['fire']('addComment',_0x591b39),_0x554428['editor']['setData']('');}),_0x554428['on']('cancel',()=>this['focus']()),_0x554428['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f6082;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x167b4c,_0x116bbc,_0x4c874c,_0x4438ea){super(_0x167b4c,_0x116bbc,_0x4c874c,_0x4438ea),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x6a89ec=>_0x6a89ec&&_0x6a89ec[0x0]?_0x6a89ec[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x543b85,_0x2fd650)=>{let _0xf61f69='';for(const _0x2f9d16 of _0x543b85)_0xf61f69+='<p>'+ls(_0x2f9d16['content'],_0x2f9d16['color'])+'</p>';return _0x2fd650?_0xf61f69:_0x3a98bd(_0xf61f69,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4438ea['SuggestionView'](_0x167b4c,_0x116bbc,{'formatDateTime':_0x4438ea['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 _0x24280b=this['bindTemplate'],_0x9cbac=[this['suggestionView']];return this['commentsListView']&&_0x9cbac['push'](this['commentsListView']),this['commentThreadInputView']&&_0x9cbac['push'](this['commentThreadInputView']),_0x9cbac['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24280b['if']('isActive','ck-suggestion-wrapper--active'),_0x24280b['to']('type',_0x5764cb=>'ck-suggestion-'+_0x5764cb),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':_0x24280b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x9cbac};}['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 Ee extends _0xfe7613{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1b46ba,_0x1a23d7,_0x342d0b){super(_0x1b46ba),this['_model']=_0x1a23d7,this['_config']=_0x342d0b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a23d7),this['acceptButton']=this['_createButton'](o(_0x1b46ba,'Accept\x20suggestion'),_0x24fa1b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1b46ba,'Discard\x20suggestion'),_0x31439b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1c19be(_0x1b46ba,_0x1a23d7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x27c363([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x9449d0(),this['keystrokes']=new _0x1276c6(),this['focusCycler']=new _0x597168({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2a15b5=>_0x2a15b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x6d462=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x6d462['innerHTML']=this['description'],this['on']('change:description',(_0x49a2e5,_0x1d150d,_0x299ebd)=>{_0x6d462['innerHTML']=_0x299ebd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x59f02d=this['bindTemplate'],_0x5f2bd1=[{'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':_0x59f02d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59f02d['to']('authoredAt',_0x337392=>this['_config']['formatDateTime'](_0x337392))}]}]},{'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']&&_0x5f2bd1['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':_0x5f2bd1}]};}['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'](_0x2f4924,_0x31d98d,_0x3d353b,_0x1f37e5,_0x24d1c6){const _0x55c8d2=new _0x200689(this['locale']);return _0x55c8d2['set']({'label':_0x2f4924,'icon':_0x31d98d,'tooltip':!0x0,'tooltipPosition':_0x24d1c6}),_0x55c8d2['extendTemplate']({'attributes':{'class':_0x3d353b}}),_0x55c8d2['on']('execute',()=>{this['fire'](_0x1f37e5,this['_model']['id']);}),_0x55c8d2;}['_setupKeyboardNavigation'](){const _0x3c61ea=this['element'];this['keystrokes']['listenTo'](_0x3c61ea);for(const _0x2e71c6 of this['focusables'])this['focusTracker']['add'](_0x2e71c6['element']),this['keystrokes']['listenTo'](_0x2e71c6['element']);this['keystrokes']['set']('enter',(_0x263e11,_0x4887ce)=>{_0x3c61ea===_0x263e11['target']&&(this['focusCycler']['focusFirst'](),_0x4887ce());}),this['keystrokes']['set']('esc',(_0x3c2a94,_0x45644f)=>{_0x3c61ea!==_0x3c2a94['target']&&(this['focus'](),_0x45644f());});}}class u extends _0x262bfa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xf60a71,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16d5c0){super(_0x16d5c0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c2599=this['editor']['config'];_0x5c2599['define']('trackChanges.SuggestionThreadView',Ae),_0x5c2599['define']('trackChanges.SuggestionView',Ee),_0x5c2599['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c2599['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5dcb3b,_0x422810){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48cad6,_0x4d620d]of this['_handleControllerBuffer']){const _0x1367b1=this['_suggestionToController']['has'](_0x48cad6);_0x1367b1||_0x4d620d?_0x1367b1&&_0x4d620d&&this['_destroyController'](_0x48cad6):this['_initializeController'](_0x48cad6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5dcb3b,_0x422810);}['init'](){const _0x34ec8b=this['editor'],_0x46d997=_0x34ec8b['plugins']['get']('TrackChangesEditing'),_0x77877a=_0x34ec8b['plugins']['get']('Annotations'),_0x2b1bef=_0x34ec8b['plugins']['get']('EditorAnnotations'),_0x5d8603=_0x34ec8b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2b1bef['addSourceCollector'](()=>{const _0x427eb8=[];for(const [_0x12bc1c,_0x4b3220]of Array['from'](this['_suggestionToController'])){const _0x11e98b=_0x12bc1c['getAllAdjacentSuggestions'](),_0x539d42=[];for(const _0x51b03a of _0x11e98b){if(!_0x51b03a['isInContent'])continue;if(_0x51b03a['isMultiRange']){_0x539d42['push'](..._0x51b03a['getRanges']());continue;}const _0x2057fb=_0x51b03a['getFirstRange']();if(_0x539d42['length']>0x0){const _0x1cad2f=_0x539d42[0x0]['getJoined'](_0x2057fb);if(_0x1cad2f){_0x539d42[0x0]=_0x1cad2f;continue;}}_0x539d42['push'](_0x2057fb);}_0x427eb8['push']([_0x4b3220['view'],_0x539d42]);}return _0x427eb8;}),this['listenTo'](_0x46d997,'suggestionLoaded',(_0xbb38e4,_0x5054c9)=>{this['listenTo'](_0x5054c9,'change:previous',(_0x50f9e0,_0x1a0ac6,_0x24b407,_0x372c94)=>{_0x5054c9['isInContent']&&(null==_0x24b407?(this['_updateController'](_0x372c94['head']),this['_handleSuggestionControllerDelayed'](_0x5054c9,!0x1)):(this['_updateController'](_0x24b407['head']),null==_0x372c94&&this['_handleSuggestionControllerDelayed'](_0x5054c9,!0x0)));}),null!==_0x5054c9['previous']?this['_updateController'](_0x5054c9['head']):this['_handleSuggestionControllerDelayed'](_0x5054c9,!0x1);}),this['listenTo'](_0x46d997,'suggestionUnloaded',(_0x15e4fd,_0x5d9e4c,_0xe07cb3)=>{this['stopListening'](_0x5d9e4c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5d9e4c),this['_suggestionToController']['has'](_0x5d9e4c)&&this['_destroyController'](_0x5d9e4c),_0xe07cb3&&this['_updateController'](_0xe07cb3['head']);}),this['listenTo'](_0x46d997,'suggestionChanged',(_0xb626f2,_0x41d5a6)=>{this['_updateController'](_0x41d5a6);}),this['listenTo'](_0x77877a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d8603,'addComment',(_0x2206ee,{threadId:_0x4c657c,isFromAdapter:_0x57804c})=>{if(_0x57804c||!_0x46d997['hasSuggestion'](_0x4c657c))return;const _0x44f826=_0x46d997['getSuggestion'](_0x4c657c);this['_suggestionToController']['get'](_0x44f826)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55e9af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a91e9;for(const _0x233af4 in _0x55e9af){const _0x1ae848=_0x233af4,_0x458ff8=_0x55e9af[_0x1ae848];if('trackChangesLicenseKeyValid'==_0x458ff8||'trackChangesLicenseKeyInvalid'==_0x458ff8||'trackChangesLicenseKeyExpired'==_0x458ff8||'trackChangesLicenseKeyDomainLimit'==_0x458ff8||'trackChangesLicenseKeyNotAllowed'==_0x458ff8||'trackChangesLicenseKeyEvaluationLimit'==_0x458ff8||'trackChangesLicenseKeyTrialLimit'==_0x458ff8||'trackChangesLicenseKeyUsageLimit'==_0x458ff8){delete _0x55e9af[_0x1ae848],_0x5a91e9=_0x458ff8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5a91e9&&_0x55e9af['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5a91e9&&_0x55e9af['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5a91e9&&_0x55e9af['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5a91e9&&_0x55e9af['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5a91e9&&_0x55e9af['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5a91e9&&_0x55e9af['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5a91e9&&_0x55e9af['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x258304){const _0x341393=this['_suggestionToController']['get'](_0x258304);if(!_0x341393)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x341393['view'])||null;}['getSuggestionForAnnotation'](_0x44fd72){const _0x15377a=this['_viewToController']['get'](_0x44fd72['innerView']);return _0x15377a?_0x15377a['model']:null;}['_refreshActiveMarkers'](){const _0x2de8d1=this['editor']['plugins']['get']('Annotations'),_0x3c453d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0d7b=Array['from'](_0x2de8d1['activeAnnotations'],_0x568230=>_0x568230['innerView'])['filter'](_0x485395=>this['_viewToController']['has'](_0x485395)),_0x53e764=[];for(const _0x41174b of _0x3a0d7b){const _0x3167a9=this['_viewToController']['get'](_0x41174b)['model']['getAllAdjacentSuggestions']();_0x53e764['push'](..._0x3167a9['reduce']((_0x3bb9db,_0x2c03e5)=>[..._0x3bb9db,..._0x2c03e5['getMarkerNames']()],[]));}_0x3c453d['activeMarkers']=_0x53e764;}['_addUIComponentsToFactory'](){const _0x50f0fb=this['editor'],_0x17a1a8=_0x50f0fb['locale'],_0x1b5213=o(_0x17a1a8,'Track\x20changes'),_0x26332f=new _0x2d2fa3([{'type':'switchbutton','model':new _0x369c31({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b5213,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x369c31({'withText':!0x0,'label':o(_0x17a1a8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x369c31({'withText':!0x0,'label':o(_0x17a1a8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x369c31({'withText':!0x0,'label':o(_0x17a1a8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x369c31({'withText':!0x0,'label':o(_0x17a1a8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x50f0fb['plugins']['has']('TrackChangesPreview')&&_0x26332f['addMany']([{'type':'separator'},{'type':'button','model':new _0x369c31({'withText':!0x0,'label':o(_0x17a1a8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x35a762 of _0x26332f)if(Ke(_0x35a762)){const _0x637688=_0x50f0fb['commands']['get'](_0x35a762['model']['commandName']);_0x35a762['model']['bind']('isOn','isEnabled')['to'](_0x637688,'value','isEnabled');}_0x50f0fb['ui']['componentFactory']['add']('trackChanges',_0x16cf68=>this['_createToolbarButton'](_0x16cf68,_0x26332f,_0x1b5213)),_0x50f0fb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x13ebcf=>this['_createMenuBarMenu'](_0x13ebcf,_0x26332f,_0x1b5213));}['_createToolbarButton'](_0x37c35f,_0x56809d,_0x1397bf){const _0x3e83b2=_0x411ab0(_0x37c35f,_0x2a1489),_0x4fbddd=this['editor']['commands']['get']('trackChanges');_0x3e83b2['buttonView']['set']({'tooltip':_0x1397bf,'label':_0x1397bf,'icon':_0x367810}),_0x3e83b2['buttonView']['bind']('isOn')['to'](_0x4fbddd,'value'),_0x3e83b2['buttonView']['on']('execute',()=>{_0x4fbddd['execute'](),this['editor']['editing']['view']['focus']();}),_0x57ebb7(_0x3e83b2,_0x56809d,{'role':'menu'});const _0x22f7ff=[];for(const _0x5cd08c of _0x56809d)Ke(_0x5cd08c)&&_0x22f7ff['push'](this['editor']['commands']['get'](_0x5cd08c['model']['commandName']));const _0xea7347=_0x3e83b2['buttonView'];return _0xea7347['actionView']['unbind']('isEnabled'),_0xea7347['arrowView']['unbind']('isEnabled'),_0xea7347['actionView']['bind']('isEnabled')['to'](_0x4fbddd,'isEnabled'),_0xea7347['arrowView']['bind']('isEnabled')['toMany'](_0x22f7ff,'isEnabled',(..._0x7397b4)=>_0x7397b4['some'](_0x4fee91=>_0x4fee91)),_0x3e83b2['on']('execute',_0x4c36d4=>{this['editor']['execute'](_0x4c36d4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e83b2;}['_createMenuBarMenu'](_0x2803a8,_0x1ea61d,_0x31bbed){const _0x155dc3=new _0x477a1b(_0x2803a8),_0x221787=this['editor']['commands']['get']('trackChanges');_0x155dc3['buttonView']['set']({'label':_0x31bbed,'icon':_0x367810});const _0x5d5aed=new _0x1b43d2(_0x2803a8);for(const _0x2e912a of _0x1ea61d){if('separator'==_0x2e912a['type']){_0x5d5aed['items']['add'](new _0x15e941(_0x2803a8));continue;}const _0x53f73d=new _0x38cfa4(_0x2803a8,_0x155dc3),_0x501621=new _0x3ad722(_0x2803a8),_0x2b647f=_0x2e912a['model'];_0x501621['bind'](...Object['keys'](_0x2b647f))['to'](_0x2b647f),_0x501621['delegate']('execute')['to'](_0x155dc3),_0x501621['on']('execute',()=>{this['editor']['execute'](_0x2b647f['commandName']),this['editor']['editing']['view']['focus']();}),_0x53f73d['children']['add'](_0x501621),_0x5d5aed['items']['add'](_0x53f73d);}return _0x155dc3['bind']('isEnabled')['to'](_0x221787,'isEnabled'),_0x155dc3['panelView']['children']['add'](_0x5d5aed),_0x155dc3;}['_initializeController'](_0x24a8e2){const _0x1240b3=this['editor'],_0x290e78=_0x1240b3['config'],_0x10eb7b=_0x1240b3['plugins']['get']('Annotations'),_0x341eab=_0x1240b3['plugins']['get']('CommentsRepository'),_0x622821=_0x1240b3['plugins']['get']('EditorAnnotations'),_0x596c9d=_0x1240b3['plugins']['get'](_0xf60a71)['me'],_0x41cdfe=_0x290e78['get']('trackChanges')['SuggestionThreadView'],_0x1188b3=_0x290e78['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x17c512,CommentThreadInputView:_0x5e8c48}=_0x1240b3['plugins']['get']('CommentsUI');let _0xe69c7f,_0x37d1ca,_0x1e0f1d;this['_annotationViews']['has'](_0x24a8e2['id'])?(_0x37d1ca=this['_annotationViews']['get'](_0x24a8e2['id']),_0xe69c7f=_0x37d1ca['mainView']):(_0xe69c7f=new _0x41cdfe(_0x1240b3['locale'],_0x24a8e2,_0x596c9d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x290e78['get']('comments.editorConfig'),'licenseKey':_0x290e78['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x290e78['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x290e78['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x290e78['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3dd1f9(_0x290e78['get']('locale'),_0x1240b3['locale']),'CommentView':_0x290e78['get']('comments')['CommentView'],'CommentsListView':_0x17c512,'CommentThreadInputView':_0x5e8c48,'SuggestionView':_0x1188b3}),_0xe69c7f['suggestionView']['acceptButton']['on']('execute',()=>{_0x1240b3['editing']['view']['focus']();}),_0xe69c7f['suggestionView']['discardButton']['on']('execute',()=>{_0x1240b3['editing']['view']['focus']();}),_0x37d1ca=_0x10eb7b['createAnnotationView'](this['editor']['locale'],_0xe69c7f),_0x37d1ca['bind']('isDirty')['to'](_0xe69c7f,'isDirty'),_0x37d1ca['bind']('length')['to'](_0xe69c7f),_0x37d1ca['bind']('type')['to'](_0xe69c7f,'type',_0x5664d4=>'suggestion-'+_0x5664d4),_0xe69c7f['on']('escape',()=>{_0x1e0f1d['fire']('escape');}),this['_annotationViews']['set'](_0x24a8e2['id'],_0x37d1ca));const _0x4f97e8=_0x341eab['createCommentThreadController'](_0x24a8e2['commentThread'],_0xe69c7f),_0x5ddc55=new xe(_0x1240b3,_0x24a8e2,_0xe69c7f,_0x4f97e8),_0x12ee17=_0x24a8e2['getAllAdjacentSuggestions']()['filter'](_0x371ae8=>_0x371ae8['isInContent']);_0xe69c7f['descriptionParts']=_0x1240b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x12ee17),this['_suggestionToController']['set'](_0x24a8e2,_0x5ddc55),this['_viewToController']['set'](_0xe69c7f,_0x5ddc55);const _0x589bd1=()=>{const _0x1a695a=[],_0x1ad426=_0x24a8e2['getAllAdjacentSuggestions']()['filter'](_0x527047=>_0x527047['isInContent']);for(const _0x4a31ae of _0x1ad426)_0x1a695a['push'](..._0x4a31ae['getMarkers']());return _0x24eb73(_0x1240b3['editing'],_0x1a695a);};_0x1e0f1d=_0x10eb7b['createAnnotation']({'view':_0x37d1ca,'target':_0x589bd1,'type':()=>'suggestion-'+_0x5ddc55['view']['type'],'isVisible':!!_0x589bd1()}),_0x341eab['_bindAnnotationToEditors'](_0xe69c7f,_0x1e0f1d),_0x10eb7b['add'](_0x1e0f1d),_0x622821['registerAnnotation'](_0x1e0f1d);}['_destroyController'](_0x6c2354){const _0x19d199=this['editor']['plugins']['get']('CommentsRepository'),_0x4821ff=this['editor']['plugins']['get']('Annotations'),_0x3fcd81=this['_suggestionToController']['get'](_0x6c2354),_0x183562=_0x3fcd81['view'],_0x5eedf9=_0x4821ff['getByInnerView'](_0x183562);_0x19d199['_unbindEditors'](_0x183562),_0x5eedf9&&_0x4821ff['remove'](_0x5eedf9),this['_suggestionToController']['delete'](_0x6c2354),this['_viewToController']['delete'](_0x183562),_0x3fcd81['destroy']();}['_updateController'](_0x46a913){if(!_0x46a913['isInContent']||!this['_suggestionToController']['has'](_0x46a913))return;const _0x487a94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x123246=this['_suggestionToController']['get'](_0x46a913),_0x4bc9b2=_0x46a913['getAllAdjacentSuggestions']();_0x123246['view']['descriptionParts']=_0x487a94['descriptionFactory']['getDescriptions'](_0x4bc9b2);}['destroy'](){for(const _0x4d6912 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4d6912);for(const _0x4afb1f of this['_annotationViews']['values']())_0x4afb1f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x8fa669){return'model'in _0x8fa669;}class Xe extends _0x262bfa{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x124e78){this['editor']['plugins']['get'](d)['adapter']=_0x124e78;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x223fa4){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x223fa4);}['getSuggestions']({skipNotAttached:_0x2d67d5=!0x1,toJSON:_0x5005e5=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2d67d5,'toJSON':_0x5005e5});}['getSuggestion'](_0x26cb5f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x26cb5f);}}const p=['Pagination'];class ue extends _0x262bfa{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3f8c85=this['editor'];if(_0x3f8c85['config']['define']('trackChangesData.editorCreator',_0x25710e=>{const _0x1eb632=_0x3f8c85['model']['document']['getRootNames']()['reduce']((_0x70b4e7,_0x5ccf42)=>(_0x70b4e7[_0x5ccf42]='',_0x70b4e7),{});return _0x3f8c85['constructor']['create'](_0x1eb632,_0x25710e);}),'function'!=typeof _0x3f8c85['config']['get']('trackChangesData')['editorCreator'])throw new _0x40a671('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3d16b9){return P(this['editor'],!0x0,_0x3d16b9);}['getDataWithDiscardedSuggestions'](_0x3e5f1c){return P(this['editor'],!0x1,_0x3e5f1c);}}class Ye extends _0x262bfa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25a159){function _0x217f87(_0x2fa30a){return _0x2fa30a['map'](_0x24426c=>String['fromCharCode'](_0x24426c))['join']('');}super(_0x25a159),this['result']='end',_0x25a159[_0x217f87([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x217f87([0x76,0x69,0x65,0x77])][_0x217f87([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x217f87([0x61,0x75,0x74,0x6f]),_0x25a159[_0x217f87([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x217f87([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x217f87([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x217f87([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x217f87([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 Qe(_0x2e1a03){return void 0x0!==_0x2e1a03['getRootsAttributes'];}async function P(_0x3afa63,_0x3d37f2,_0xc20e2){const _0x429de6=_0x410cf9(_0x3afa63,p);_0x429de6['plugins']['push'](d,Ye),_0x429de6['rootsAttributes']=Qe(_0x3afa63)?_0x3afa63['getRootsAttributes']():void 0x0;const _0x55bc1a=document['createDocumentFragment'](),_0x41f8be=_0x3afa63['config']['get']('trackChangesData')['editorCreator'],_0x5a6975=await _0x41f8be(_0x429de6,()=>function(_0x491cc2){const _0x909aeb=document['createElement']('div');return _0x491cc2['appendChild'](_0x909aeb),_0x909aeb;}(_0x55bc1a));!function(_0x17c0d1,_0x55ca77){const _0x3f8513=_0x17c0d1['model']['document']['getRootNames']()['reduce']((_0x51fc79,_0xd22599)=>(_0x51fc79[_0xd22599]=_0x17c0d1['data']['get']({'rootName':_0xd22599}),_0x51fc79),{}),_0x645b2b=_0x17c0d1['plugins']['get']('Users')['users']['map'](_0x4fdfc8=>({'id':_0x4fdfc8['id'],'name':_0x4fdfc8['name']})),_0x41a0db=_0x17c0d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5545fe=_0x17c0d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16dd6b=_0x55ca77['plugins']['get']('Users'),_0x320d54=_0x55ca77['plugins']['get']('TrackChangesEditing'),_0x22f000=_0x55ca77['plugins']['get']('CommentsRepository');for(const _0x49ca87 of _0x22f000['getCommentThreads']())_0x49ca87['remove']();for(const _0x3b5631 of _0x645b2b)_0x16dd6b['getUser'](_0x3b5631['id'])||_0x16dd6b['addUser'](_0x3b5631);_0x16dd6b['me']||_0x16dd6b['useAnonymousUser']();for(const _0x1c2274 of _0x5545fe)_0x22f000['addCommentThread'](_0x1c2274);for(const _0xbb1cc9 of _0x41a0db)_0x320d54['addSuggestionData'](_0xbb1cc9);_0x55ca77['data']['set'](_0x3f8513);}(_0x3afa63,_0x5a6975),_0x5a6975['execute'](_0x3d37f2?'acceptAllSuggestions':'discardAllSuggestions');const _0x577522=Qe(_0x5a6975)?_0x5a6975['getFullData'](_0xc20e2):_0x5a6975['data']['get'](_0xc20e2);return await _0x5a6975['destroy'](),_0x577522;}class _e extends _0xfe7613{['options'];constructor(_0x4435ab,_0x2911fa){super(_0x4435ab),this['options']=_0x2911fa,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'](_0x1630e3,_0xaf706a){if(!this['element'])return;const _0xd9494e=[];for(const [_0x10a936,_0x47a741]of _0x1630e3){const _0x400b17=document['createElement']('div');_0x400b17['setAttribute']('data-ck-root-name',_0x10a936),_0x400b17['className']=_0x47a741['classes']+'\x20ck-track-changes-preview__root-container',_0x400b17['innerHTML']=_0x47a741['content'],_0xd9494e['push'](_0x400b17);}_0xaf706a(this['element'],_0xd9494e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x2a6df1{constructor(_0x1f9a13){super(_0x1f9a13),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xdb97e1=this['editor'],_0x141037=_0xdb97e1['locale'],_0x37b40f=_0xdb97e1['plugins']['get']('Dialog');let _0x1b3cc8;const _0xb02b23=function(_0x32eaa3){const _0x3fe032={};if('editables'in _0x32eaa3['ui']['view']){for(const [_0x23a3c5,_0x157116]of Object['entries'](_0x32eaa3['ui']['view']['editables']))_0x3fe032[_0x23a3c5]=_0x157116['element'];}else _0x3fe032[_0x32eaa3['model']['document']['getRootNames']()[0x0]]=_0x32eaa3['ui']['view']['editable']['element'];return _0x3fe032;}(_0xdb97e1),_0xebe8c7=function(_0x47215b){let _0x2e669b=0x0;for(const _0x40428a of Object['values'](_0x47215b))_0x2e669b=Math['max'](_0x2e669b,_0x40428a['getBoundingClientRect']()['width']);let _0xae52f2=0x0;for(const _0x141ca8 of Object['values'](_0x47215b))_0xae52f2+=_0x141ca8['getBoundingClientRect']()['height'];const _0x811c82=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2055aa=Math['min'](_0xae52f2,_0x811c82);return{'width':_0x2e669b,'height':_0x2055aa};}(_0xb02b23);_0x37b40f['show']({'id':'finalContentPreview','title':o(_0x141037,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x141037,{'dialogRects':_0xebe8c7}),'onHide':()=>{_0x1b3cc8['detachFromDom']();},'onShow':()=>{_0xdb97e1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2ad930=>{const _0x1a812d=this['_standarizeRootsData'](_0x2ad930,_0xdb97e1,_0xb02b23);_0x37b40f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1a812d,_0xdb97e1['config']['get']('trackChanges.preview.renderFunction'));}),_0x1b3cc8=new _0x36b70c(_0x141037,[_0x37b40f['view']]),_0x1b3cc8['attachToDom'](),_0x1b3cc8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xdb97e1['once']('destroy',()=>{_0x1b3cc8['detachFromDom']();});const _0x20d689=_0x37b40f['view']['headerView']['class'];_0x37b40f['view']['headerView']['class']=_0x20d689?_0x20d689+'\x20ck-reset_all':'ck-reset_all',_0x37b40f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x37b40f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x523bb0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26de2e=_0x523bb0['previewMode'],_0x119c54={};if('$labels'===_0x26de2e){for(const _0x2f860c of _0x523bb0['getMergeFieldsIds']())_0x119c54[_0x2f860c]=_0x523bb0['getLabel'](_0x2f860c)||_0x2f860c;}else{const _0xdc8d17='$defaultValues'===_0x26de2e?_0x523bb0['getDefaultValues']():_0x523bb0['getDataSetValues'](_0x26de2e,!0x0);for(const _0x352b8d of Object['entries'](_0xdc8d17)){const [_0x35c8b2,_0x8d9299]=_0x352b8d;_0x119c54[_0x35c8b2]=null!==_0x8d9299?_0x8d9299:_0x523bb0['getLabel'](_0x35c8b2)||_0x35c8b2;}}return{'mergeFieldsData':_0x119c54};}['_standarizeRootsData'](_0x2434ce,_0x29cc7c,_0x3401b9){let _0x547d6c;if('string'==typeof _0x2434ce){const _0x163201=_0x29cc7c['model']['document']['getRootNames']()[0x0];_0x547d6c={[_0x163201]:_0x2434ce};}else _0x547d6c=_0x2434ce;const _0x2b805a=this['_fixMediaEmbeds'](_0x547d6c,_0x29cc7c),_0x14532a=function(_0x4c316d,_0x252fb2){for(const [_0x5687f3,_0x4738b8]of _0x4c316d)_0x4738b8['classes']=_0x252fb2[_0x5687f3]['classList']['value']['replace']('ck-focused','');return _0x4c316d;}(this['_sortRoots'](_0x29cc7c)['reduce']((_0x34d7ee,_0x71d5dd)=>(_0x34d7ee['push']([_0x71d5dd,{'content':_0x2b805a[_0x71d5dd],'classes':''}]),_0x34d7ee),[]),_0x3401b9);return _0x14532a;}['_fixMediaEmbeds'](_0x566410,_0x4d21af){if(!_0x4d21af['plugins']['has']('MediaEmbedEditing'))return _0x566410;const _0x49562a=_0x4d21af['plugins']['get']('MediaEmbedEditing');for(const [_0x2ac455,_0x33d3de]of Object['entries'](_0x566410)){const _0x557edc=document['createElement']('div');_0x557edc['innerHTML']=_0x33d3de,(_0x557edc['querySelectorAll']('figure.media')['forEach'](_0x379e68=>{const _0x39149c=_0x379e68['querySelector']('oembed');if(_0x39149c){const _0x3f8675=_0x39149c['getAttribute']('url');if(_0x3f8675){const _0x3b02e7=_0x49562a['registry']['getMediaViewElement'](new _0x4e11a2(_0x4d21af['editing']['view']['document']),_0x3f8675,{'elementName':'','renderForEditingView':!0x0}),_0x3ed3b7=document['createElement']('div');_0x3ed3b7['classList']['add']('ck-media__wrapper'),_0x3b02e7['render'](_0x3ed3b7,_0x4d21af['editing']['view']['domConverter']),_0x39149c['replaceWith'](_0x3ed3b7);}}}),_0x566410[_0x2ac455]=_0x557edc['innerHTML']);}return _0x566410;}['_sortRoots'](_0x11595){if(!function(_0x2fa580){return void 0x0!==_0x2fa580['getRootsAttributes'];}(_0x11595))return _0x11595['model']['document']['getRootNames']();const _0x3a3cac=[],_0x56a85a=new Map();for(const _0x57d86d of _0x11595['model']['document']['getRootNames']()){const _0x40b786=_0x11595['editing']['view']['getDomRoot'](_0x57d86d)['getClientRects']()['item'](0x0);_0x3a3cac['push'](_0x57d86d),_0x56a85a['set'](_0x57d86d,_0x40b786);}return _0x3a3cac['sort']((_0x1dc0ae,_0x259702)=>{const _0x107c9a=_0x56a85a['get'](_0x1dc0ae),_0x1b9a99=_0x56a85a['get'](_0x259702);return _0x107c9a['y']-_0x1b9a99['y']||_0x107c9a['x']-_0x1b9a99['x'];}),_0x3a3cac;}}class Ze extends _0x262bfa{static get['requires'](){return[ue,_0x42449b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f0747){super(_0x5f0747),_0x5f0747['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x5f0747['config']['define']('trackChanges.preview.renderFunction',(_0x428d90,_0x2ae27d)=>{for(const _0x2945af of _0x2ae27d)_0x428d90['appendChild'](_0x2945af);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x30f11b,Plugin as _0x4e7f5a,PendingActions as _0x3008df}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5a4829,ObservableMixin as _0x2def01,uid as _0x3caa75,priorities as _0x35714c,insertToPriorityArray as _0x3b3637,toArray as _0x53f15a,logWarning as _0xc9df51,getEnvKeystrokeText as _0x5e22ae,FocusTracker as _0xc435d8,KeystrokeHandler as _0x5dc328,Collection as _0x3edcbf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x461762,IconCancel as _0x53f153,IconTrackChanges as _0x2784bc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x311c22,View as _0x16d85e,ViewCollection as _0x406985,FocusCycler as _0x580b2c,UIModel as _0x20f578,createDropdown as _0x4f4152,SplitButtonView as _0x11da7c,addListToDropdown as _0x2241b4,MenuBarMenuView as _0x17af2b,MenuBarMenuListView as _0x74cb29,ListSeparatorView as _0x2d6e36,MenuBarMenuListItemView as _0xa48ed1,MenuBarMenuListItemButtonView as _0x23adcf,BodyCollection as _0x2dfe06,Dialog as _0x540b17}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x57807f,DocumentCompare as _0x26060f,hashObject as _0x5e961d,surroundingMarkersDetector as _0x21fdb7,FOCUS_ANNOTATION_KEYSTROKE as _0x47d113,AriaDescriptionView as _0xa7cd6f,setupThreadKeyboardNavigation as _0x5d33c9,trimHtml as _0x1a9b5a,UserView as _0x3cfc9e,LateFocusButtonView as _0x8c1f8b,getDateTimeFormatter as _0x128e55,getAllMarkersDomElementsSorted as _0x4c9d1b,sanitizeEditorConfig as _0x3e3c2c}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xe96edb,ModelLiveRange as _0x3d40b9,ModelLivePosition as _0x52185f,ModelPosition as _0x7685d4,ModelRange as _0x4e5d4b,_DetachOperation as _0x2a730d,ViewDowncastWriter as _0x2ef6b6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4b3917,toWidget as _0x599747}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2805a7,set as _0x311620,isEqual as _0x5578d7,unset as _0x27aff4,omit as Kt}from'es-toolkit/compat';import{Delete as _0x1f94eb,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x447bd9}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1d326f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x30f11b{['_enabledCommands'];constructor(_0x2aa6ef,_0x1d8b57){super(_0x2aa6ef),this['_enabledCommands']=_0x1d8b57,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 _0x17d09c of this['editor']['commands']['commands']())_0x17d09c['affectsData']&&!this['_enabledCommands']['has'](_0x17d09c)&&_0x17d09c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x46bc40 of this['editor']['commands']['commands']())_0x46bc40['affectsData']&&!this['_enabledCommands']['has'](_0x46bc40)&&_0x46bc40['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x30f11b{['_suggestions'];constructor(_0x786a5a,_0x4d414f){super(_0x786a5a),this['_suggestions']=_0x4d414f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x387ed2){const _0x249c64=this['_suggestions']['get'](_0x387ed2);if(!_0x249c64)throw new _0x5a4829('track-changes-accept-suggestion-not-found',this);const _0x39a537=_0x249c64['getRanges']();this['editor']['model']['canEditAt'](_0x39a537)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x249c64);}}class O extends _0x30f11b{['_suggestions'];constructor(_0x5ae240,_0x378e23){super(_0x5ae240),this['_suggestions']=_0x378e23,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c5e12){const _0x3417ea=this['_suggestions']['get'](_0x5c5e12);if(!_0x3417ea)throw new _0x5a4829('track-changes-discard-suggestion-not-found',this);const _0x1ad771=_0x3417ea['getRanges']();this['editor']['model']['canEditAt'](_0x1ad771)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3417ea);}}function ls(_0x418fa5,_0x3725f6){let _0x22a082='';return _0x22a082+=_0x418fa5['split']('*')['map']((_0xcd48b3,_0x2b479c)=>_0x2b479c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0xcd48b3)+'</span>':tn(_0xcd48b3))['join'](''),_0x3725f6&&(_0x22a082+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3725f6['value']+'\x22\x20title=\x22'+_0x3725f6['title']+'\x22></span>'),_0x22a082;}function tn(_0x40b70){const _0xc9faaa=document['createElement']('span');return _0xc9faaa['innerText']=_0x40b70,_0xc9faaa['innerHTML'];}function ts(_0x23fbf4){return _0x23fbf4['sort']((_0x253b01,_0x47cec5)=>'attribute'===_0x253b01['type']&&'attribute'!==_0x47cec5['type']?-0x1:'attribute'!==_0x253b01['type']&&'attribute'===_0x47cec5['type']?0x1:'deletion'==_0x253b01['type']&&'deletion'!=_0x47cec5['type']?-0x1:'deletion'!=_0x253b01['type']&&'deletion'==_0x47cec5['type']?0x1:0x0);}function to(_0x129626,_0x63b535){let _0x4339d2,_0x2e389f=0x0;const _0x3cb1b3=[],_0x256f74=_0x63b535['schema'];for(;_0x2e389f<_0x129626['length'];){const _0x5d639c=_0x129626[_0x2e389f],_0x1f3146=_0x129626[_0x2e389f+0x1];_0x4339d2||(_0x4339d2=_0x63b535['createPositionBefore'](_0x5d639c)),nn(_0x63b535,_0x5d639c,_0x1f3146)||(_0x3cb1b3['push'](_0x63b535['createRange'](_0x4339d2,_0x256f74['isObject'](_0x5d639c)?_0x63b535['createPositionAfter'](_0x5d639c):_0x63b535['createPositionAt'](_0x5d639c,'end'))),_0x4339d2=null),_0x2e389f++;}return _0x3cb1b3;}function nn(_0x2b90d8,_0x3f5408,_0x2f7c29){if(!_0x2f7c29)return!0x1;const _0x124630=_0x2b90d8['createPositionAfter'](_0x3f5408),_0x33dbc1=_0x2b90d8['createPositionBefore'](_0x2f7c29);return _0x124630['isTouching'](_0x33dbc1);}function rs(_0x4cf163,_0x313db4,_0x13525){for(;_0x13525['length'];){const _0x9fa64f=_0x13525['splice'](0x0,0x64);_0x4cf163['change'](()=>{for(const _0x5d4167 of _0x9fa64f)_0x5d4167['isInContent']&&_0x313db4['execute'](_0x5d4167['id']);});}}class x extends _0x30f11b{['_command'];['_suggestions'];constructor(_0x1659a3,_0xa86389,_0x7eb33c){super(_0x1659a3),this['_command']=_0xa86389,this['_suggestions']=_0x7eb33c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ae052=Array['from'](this['_suggestions']['values']())['some'](_0x488af3=>_0x488af3['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ae052;}['execute'](){const _0x533a8d=ts(Array['from'](this['_suggestions']['values']()));for(const _0xe9e13e of _0x533a8d){const _0x3d3e2f=_0xe9e13e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d3e2f))return;}rs(this['editor']['model'],this['_command'],_0x533a8d);}}class E extends _0x30f11b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x351a49,_0x3a5a98,_0x4476d7){super(_0x351a49),this['_command']=_0x3a5a98,this['_suggestions']=_0x4476d7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x306a8d=this['editor']['model']['document']['selection'],_0x11c654=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5576cd,_0x1626fd){const _0x43ceb5=Array['from'](_0x5576cd['getRanges']()),_0x2925f9=new Set();for(const _0x2fd995 of _0x1626fd)if(_0x2fd995['isInContent']){for(const _0x205d9a of _0x43ceb5)for(const _0x4c6ae3 of _0x2fd995['getRanges']())(_0x205d9a['isIntersecting'](_0x4c6ae3)||_0x5576cd['isCollapsed']&&!_0x2fd995['isMultiRange']&&_0x2fd995['next']&&_0x4c6ae3['end']['isTouching'](_0x205d9a['start']))&&_0x2925f9['add'](_0x2fd995);}return _0x2925f9;}(_0x306a8d,_0x11c654),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3239f7=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1b3d06 of _0x3239f7){const _0x786fbf=_0x1b3d06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x786fbf))return;}rs(this['editor']['model'],this['_command'],_0x3239f7);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2def01(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x329bbd,_0x59b4ae){super(),this['id']=_0x59b4ae['id'],this['type']=_0x59b4ae['type'],this['subType']=_0x59b4ae['subType']||null,this['author']=_0x59b4ae['author'],this['creator']=_0x59b4ae['creator']||_0x59b4ae['author'],this['isExternal']=Boolean(_0x59b4ae['attributes']&&_0x59b4ae['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59b4ae['originalSuggestionId']||null,this['_model']=_0x329bbd,this['_onAccept']=_0x59b4ae['onAccept'],this['_onDiscard']=_0x59b4ae['onDiscard'],this['_onAttributesChange']=_0x59b4ae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59b4ae['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 _0x9143bf=this;for(;_0x9143bf['previous'];)_0x9143bf=_0x9143bf['previous'];return _0x9143bf;}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'](_0x21f91f){this['_markerNames']['add'](_0x21f91f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3d561c=>this['_model']['markers']['get'](_0x3d561c))['filter'](_0x5dfb11=>_0x5dfb11);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c6a0b=>{for(const _0x164a1c of this['getMarkers']())_0x4c6a0b['removeMarker'](_0x164a1c);}),this['_markerNames']['clear']();}['removeMarker'](_0x3826df){this['_model']['change'](_0xe47cb3=>{_0xe47cb3['removeMarker'](_0x3826df);}),this['_markerNames']['delete'](_0x3826df);}['addRange'](_0x27507d){const _0x199664='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x199664),this['_model']['change'](_0x2a0b2f=>{_0x2a0b2f['addMarker'](_0x199664,{'range':_0x27507d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xf3423){for(const _0x34806f of this['getRanges']())if(_0x34806f['isIntersecting'](_0xf3423))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2dc87a=>_0x2dc87a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x25f60d,_0x272de0)=>[..._0x25f60d,..._0x272de0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x11e719=this['getRanges']();if(0x1!=_0x11e719['length'])return null;const _0x30d789=_0x11e719[0x0],_0x4b4dd3=_0x30d789['start']['nodeAfter'],_0x203e32=_0x30d789['end']['nodeBefore'];return _0x4b4dd3 instanceof _0xe96edb?_0x4b4dd3!=_0x203e32?null:_0x4b4dd3: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 _0x545aab=[];let _0x3a025e=this['head'];for(;_0x3a025e;)_0x545aab['push'](_0x3a025e),_0x3a025e=_0x3a025e['next'];return _0x545aab;}['setAttribute'](_0x2a65a5,_0x15d19e){const _0x29e0eb=_0x2805a7(this['attributes']);_0x311620(_0x29e0eb,_0x2a65a5,_0x15d19e),_0x5578d7(_0x29e0eb,this['attributes'])||(this['attributes']=_0x29e0eb,this['_onAttributesChange'](_0x29e0eb));}['removeAttribute'](_0x58b8ea){const _0x5c5530=_0x2805a7(this['attributes']);_0x27aff4(_0x5c5530,_0x58b8ea),_0x5578d7(_0x5c5530,this['attributes'])||(this['attributes']=_0x5c5530,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 _0x3caa75()['substr'](0x1,0x5);}}function o(_0x50a1b8,_0x3e065d,_0x39d5db){const _0x525fd2=_0x50a1b8['t'],t=_0x50a1b8['t'];switch(_0x3e065d){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',_0x39d5db);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x39d5db);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x39d5db);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x39d5db);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x39d5db);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',_0x39d5db);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x39d5db);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',_0x39d5db);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x39d5db);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x39d5db);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x39d5db);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x39d5db);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x39d5db);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x39d5db);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x39d5db);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x39d5db);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x39d5db);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x39d5db);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x39d5db);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x39d5db);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x39d5db);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x39d5db);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x39d5db);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x39d5db);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x39d5db);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'},_0x39d5db);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x39d5db);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x39d5db);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x39d5db);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x39d5db);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x39d5db);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x39d5db);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x39d5db);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x39d5db);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x39d5db);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x39d5db);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'},_0x39d5db);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x39d5db);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x39d5db);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x39d5db);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x39d5db);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x39d5db);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x39d5db);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'},_0x39d5db);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x39d5db);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 _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x39d5db);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x525fd2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x39d5db);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x39d5db);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'},_0x39d5db);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'},_0x39d5db);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'},_0x39d5db);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3e065d;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a603d,_0x202be4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a603d,this['_locale']=_0x202be4;}['getDescriptions'](_0xbcd0d3){const _0x32fafc=[],_0x563ae9=new Set(),_0x117e22=new Set();for(let _0x24a77e=0x0;_0x24a77e<_0xbcd0d3['length'];_0x24a77e++){const _0x195ff7=_0xbcd0d3[_0x24a77e];if(!_0x195ff7['isInContent'])continue;const _0x532115=this['_handleCustomCallbackDescription'](_0x195ff7);if(_0x532115){if(null!=_0x195ff7['subType']){if(_0x563ae9['has'](_0x195ff7['subType']))continue;_0x563ae9['add'](_0x195ff7['subType']);}_0x32fafc['push'](_0x532115);}else{if('attribute'==_0x195ff7['type']){const _0x44b1ad=_0x195ff7['data']['key'];if(_0x117e22['has'](_0x44b1ad))continue;_0x117e22['add'](_0x195ff7['data']['key']),_0x44b1ad==m?this['_handleRenameSuggestionDescription'](_0x32fafc,_0x195ff7):this['_handleAttributeSuggestionDescription'](_0x32fafc,_0x195ff7);continue;}'insertion'!=_0x195ff7['type']&&'deletion'!=_0x195ff7['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32fafc,_0x195ff7,_0xbcd0d3[_0x24a77e+0x1]);}}return this['_resolveDescriptionItems'](_0x32fafc);}['registerDescriptionCallback'](_0x299785){this['_customCallbacks']['push'](_0x299785);}['registerElementLabel'](_0x32a3f8,_0x3d3490,_0xe51fec=_0x35714c['normal']){'function'==typeof _0x32a3f8?_0x3b3637(this['_itemLabelsCallbacks'],{'matchingCallback':_0x32a3f8,'label':_0x3d3490,'priority':_0xe51fec}):this['_itemLabels']['set'](_0x32a3f8,_0x3d3490);}['registerAttributeLabel'](_0x422640,_0x2c2801){this['_attributeLabels']['set'](_0x422640,_0x2c2801);}['getItemLabel'](_0x43e6c2,_0xc3bcd5=0x1){let _0x584eaf;for(const _0x2465ca of this['_itemLabelsCallbacks'])if(_0x2465ca['matchingCallback'](_0x43e6c2)){_0x584eaf=_0x2465ca['label'];break;}return _0x584eaf||(_0x584eaf=this['_itemLabels']['get'](_0x43e6c2['name'])),_0x584eaf?_0x584eaf(_0xc3bcd5):0x1!==_0xc3bcd5?_0xc3bcd5+'\x20'+_0x43e6c2['name']+'s':''+_0x43e6c2['name'];}['_addDescriptionItems'](_0x261da0,_0x9f3a6d){const _0x4ad81f=_0x9f3a6d['getFirstRange']()['getWalker'](),_0x21a9d5='insertion'==_0x9f3a6d['type']?'add':'remove';for(const _0x4aa888 of _0x4ad81f){const _0x25008d=_0x4aa888['item'],_0x117864=_0x261da0[_0x261da0['length']-0x1];if(_0x25008d['is']('$textProxy'))_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),_0x117864&&'text'==_0x117864['type']?_0x117864[_0x21a9d5]+=_0x25008d['data']:_0x261da0['push']({'type':'text','add':'add'==_0x21a9d5?_0x25008d['data']:'','remove':'remove'==_0x21a9d5?_0x25008d['data']:''});else{if(this['_schema']['isObject'](_0x25008d)){const _0x2e7ae0=_0x25008d;if(_0x117864&&_0x117864['type']['indexOf']('Container')>-0x1&&_0x261da0['pop'](),'elementEnd'==_0x4aa888['type'])continue;_0x117864&&_0x117864['type']==_0x21a9d5+'Object'&&_0x117864['element']['name']==_0x2e7ae0['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'Object','element':_0x2e7ae0,'quantity':0x1}),_0x4ad81f['skip'](_0x392381=>!('elementEnd'==_0x392381['type']&&_0x392381['item']==_0x25008d));}else{if(this['_schema']['checkChild'](_0x25008d,'$text')||_0x25008d['is']('element','softBreak')){const _0x46f71e=_0x25008d;if('add'==_0x21a9d5&&'elementStart'==_0x4aa888['type']||'remove'==_0x21a9d5&&'elementEnd'==_0x4aa888['type'])continue;if(_0x117864&&-0x1==_0x117864['type']['indexOf']('Container')){'text'==_0x117864['type']&&(_0x117864[_0x21a9d5]+='\x0a');continue;}let _0x2ae3df;if(_0x2ae3df='add'==_0x21a9d5?_0x46f71e['nextSibling']&&!this['_schema']['isObject'](_0x46f71e['nextSibling'])?_0x46f71e['nextSibling']:null:_0x46f71e['previousSibling']&&!this['_schema']['isObject'](_0x46f71e['previousSibling'])?_0x46f71e['previousSibling']:null,_0x46f71e['isEmpty']||_0x2ae3df&&_0x2ae3df['isEmpty']){const _0x297259=_0x2ae3df&&_0x2ae3df['isEmpty']?_0x2ae3df:_0x46f71e;_0x117864&&_0x117864['type']==_0x21a9d5+'EmptyContainer'&&_0x117864['element']['name']==_0x297259['name']?_0x117864['quantity']++:_0x261da0['push']({'type':_0x21a9d5+'EmptyContainer','element':_0x297259,'quantity':0x1});}else _0x261da0['push']({'type':_0x21a9d5+'Container','element':_0x46f71e});}}}}}['_resolveDescriptionItems'](_0x46edcc){const _0x508840=this['_locale'],_0x27d3ad=[],_0x4c5d7b=[],_0x285cc4=[];for(const _0x1f4334 of _0x46edcc)switch(_0x1f4334['type']){case'text':if(_0x1f4334['add']=_0x1f4334['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f4334['remove']=_0x1f4334['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f4334['add']&&''!=_0x1f4334['remove']){_0x27d3ad['push']({'type':'replace','content':o(_0x508840,'REPLACE_TEXT',['\x22'+_0x1f4334['remove']+'\x22','\x22'+_0x1f4334['add']+'\x22'])});continue;}if(null!=_0x1f4334['add']['match'](/^ +$/)){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['add']['length']))});continue;}if(null!=_0x1f4334['remove']['match'](/^ +$/)){_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',o(_0x508840,'ELEMENT_SPACE',_0x1f4334['remove']['length']))});continue;}if(''!=_0x1f4334['add']){_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0','\x22'+_0x1f4334['add']+'\x22')});continue;}_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0','\x22'+_0x1f4334['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Insert:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Remove:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addContainer':_0x27d3ad['push']({'type':'insertion','content':o(_0x508840,'*Split:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'removeContainer':_0x27d3ad['push']({'type':'deletion','content':o(_0x508840,'*Merge:*\x20%0',this['getItemLabel'](_0x1f4334['element'],_0x1f4334['quantity']))});continue;case'addFormat':_0x4c5d7b['push'](_0x1f4334['key']);continue;case'removeFormat':_0x285cc4['push'](_0x1f4334['key']);continue;default:_0x27d3ad['push'](_0x1f4334);}if(_0x4c5d7b['length']){const _0x458b4f=_0x4c5d7b['map'](_0x12f59f=>this['_attributeLabels']['has'](_0x12f59f)?this['_attributeLabels']['get'](_0x12f59f):_0x12f59f)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x458b4f)});}if(_0x285cc4['length']){const _0x516149=_0x285cc4['map'](_0x3804a5=>this['_attributeLabels']['has'](_0x3804a5)?this['_attributeLabels']['get'](_0x3804a5):_0x3804a5)['join'](',\x20');_0x27d3ad['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x516149)});}return _0x27d3ad;}['_handleCustomCallbackDescription'](_0x41b11f){for(const _0x4205de of this['_customCallbacks']){const _0x1a655c=_0x4205de(_0x41b11f);if(_0x1a655c&&'type'in _0x1a655c)return _0x1a655c;}}['_handleAttributeSuggestionDescription'](_0x416703,_0x336ae0){const _0x236f2b=_0x336ae0['data'],_0x555d24=void 0x0===_0x236f2b['newValue']?'removeFormat':'addFormat';_0x416703['push']({'type':_0x555d24,'key':_0x236f2b['key']});}['_handleRenameSuggestionDescription'](_0x1cca95,_0x4adf29){_0x1cca95['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4adf29['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d3b5c,_0x61f67b,_0x34b974){if(this['_addDescriptionItems'](_0x2d3b5c,_0x61f67b),_0x34b974&&_0x34b974['getFirstRange']()&&!_0x61f67b['getFirstRange']()['end']['isEqual'](_0x34b974['getFirstRange']()['start'])){const _0x363e0f=_0x2d3b5c[_0x2d3b5c['length']-0x1],_0x56a471='insertion'==_0x61f67b['type']?'add':'remove';_0x363e0f&&'text'==_0x363e0f['type']&&(_0x363e0f[_0x56a471]+='\x0a');}}}class V extends _0x4e7f5a{['afterInit'](){const _0x4ba317=this['editor'],_0x199d0c=_0x4ba317['plugins']['get']('TrackChangesEditing');_0x4ba317['commands']['get']('showAIAssistant')&&_0x199d0c['enableCommand']('showAIAssistant');}}class F extends _0x4e7f5a{['afterInit'](){const _0x71b86=this['editor'],_0x488c30=_0x71b86['plugins']['get']('TrackChangesEditing');_0x71b86['commands']['get']('toggleAi')&&_0x488c30['enableCommand']('toggleAi');}}class G extends _0x4e7f5a{['afterInit'](){const _0x9ec0db=this['editor'],_0x89fd79=_0x9ec0db['plugins']['get']('TrackChangesEditing');_0x9ec0db['commands']['get']('aiQuickAction')&&_0x89fd79['enableCommand']('aiQuickAction');}}class L extends _0x4e7f5a{['afterInit'](){const _0x149134=this['editor'],_0x2aebea=_0x149134['locale'];if(!_0x149134['plugins']['has']('AlignmentEditing'))return;const _0x5d5d5b=_0x149134['plugins']['get']('TrackChangesEditing');_0x5d5d5b['enableDefaultAttributesIntegration']('alignment'),_0x5d5d5b['registerBlockAttribute']('alignment'),_0x5d5d5b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2aebea,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x253dca=this['editor'],_0x4a2bf2=_0x253dca['locale'];_0x253dca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3694c4=>{if('formatBlock'!=_0x3694c4['type'])return;const {data:_0x40bd5a}=_0x3694c4;if(_0x40bd5a&&'alignment'==_0x40bd5a['commandName']){const _0x475b5d=_0x40bd5a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a2bf2,'*Format:*\x20%0',function(_0x2b5bcd){switch(_0x2b5bcd){case'left':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a2bf2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a2bf2,'FORMAT_JUSTIFY_TEXT');}}(_0x475b5d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x4e7f5a{['afterInit'](){const _0x179f4b=this['editor'],_0x2c0693=_0x179f4b['plugins']['get']('TrackChangesEditing'),_0x26ded7=_0x179f4b['locale'];for(const _0x2ccec9 of ti){if(!_0x179f4b['plugins']['has'](_0x2ccec9))continue;const _0x1e68d7=_0x2ccec9['slice'](0x0,-0x7)['toLowerCase'](),_0x122097='FORMAT_'+_0x1e68d7['toUpperCase']();_0x2c0693['enableDefaultAttributesIntegration'](_0x1e68d7),_0x2c0693['registerInlineAttribute'](_0x1e68d7),_0x2c0693['descriptionFactory']['registerAttributeLabel'](_0x1e68d7,o(_0x26ded7,_0x122097));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2efe71=this['editor'],_0x41a71f=_0x2efe71['locale'],_0x2f9251=_0x2efe71['plugins']['get']('TrackChangesEditing');function _0x24759d(_0x5d9ab6,_0x1e2ca3){_0x2f9251['descriptionFactory']['registerDescriptionCallback'](_0x5f4da1=>{if('formatInline'!=_0x5f4da1['type'])return;const {data:_0x2d71ec}=_0x5f4da1;return _0x2d71ec&&_0x2d71ec['commandName']===_0x5d9ab6?_0x2d71ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a71f,'*Format:*\x20%0',_0x1e2ca3)}:{'type':'format','content':o(_0x41a71f,'*Remove\x20format:*\x20%0',_0x1e2ca3)}:void 0x0;});}_0x24759d('bold',o(_0x41a71f,'FORMAT_BOLD')),_0x24759d('italic',o(_0x41a71f,'FORMAT_ITALIC')),_0x24759d('underline',o(_0x41a71f,'FORMAT_UNDERLINE')),_0x24759d('code',o(_0x41a71f,'FORMAT_CODE')),_0x24759d('strikethrough',o(_0x41a71f,'FORMAT_STRIKETHROUGH')),_0x24759d('subscript',o(_0x41a71f,'FORMAT_SUBSCRIPT')),_0x24759d('superscript',o(_0x41a71f,'FORMAT_SUPERSCRIPT'));}}class K extends _0x4e7f5a{['afterInit'](){const _0xdff9a9=this['editor'],_0x4b48ad=_0xdff9a9['locale'];if(!_0xdff9a9['plugins']['has']('BlockQuoteEditing'))return;const _0x2607b4=_0xdff9a9['plugins']['get']('TrackChangesEditing'),_0x3c0702=this['editor']['commands']['get']('blockQuote');_0x2607b4['enableCommand']('blockQuote',(_0x5cb493,_0x41e6a8={})=>{const _0x4efc73=this['editor']['model']['document']['selection'],_0x37c37b=_0x41e6a8&&void 0x0!==_0x41e6a8['forceValue']?_0x41e6a8['forceValue']:!_0x3c0702['value'];let _0x1c4af3=[];if(_0x37c37b){const _0x13dcb6=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x11b163=>oo(_0x11b163)||function(_0x2cc2c1,_0x128cfa){const _0x361247=_0x128cfa['checkChild'](_0x2cc2c1['parent'],'blockQuote'),_0x3e2269=_0x128cfa['checkChild'](['$root','blockQuote'],_0x2cc2c1);return _0x361247&&_0x3e2269;}(_0x11b163,this['editor']['model']['schema']));_0x1c4af3=to(_0x13dcb6,_0xdff9a9['model']);}else{const _0x13c932=Array['from'](_0x4efc73['getSelectedBlocks']())['filter'](_0x52a214=>oo(_0x52a214));_0x1c4af3=to(_0x13c932,_0xdff9a9['model']);}_0xdff9a9['model']['change'](()=>{for(const _0x119741 of _0x1c4af3)_0x2607b4['markBlockFormat'](_0x119741,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37c37b}]});});}),_0x2607b4['descriptionFactory']['registerDescriptionCallback'](_0x536f2b=>{const {data:_0x425d47}=_0x536f2b;if(_0x425d47&&'blockQuote'==_0x425d47['commandName']){const _0xedc421=o(_0x4b48ad,'ELEMENT_BLOCK_QUOTE');return _0x425d47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b48ad,'*Set\x20format:*\x20%0',_0xedc421)}:{'type':'format','content':o(_0x4b48ad,'*Remove\x20format:*\x20%0',_0xedc421)};}});}}function oo(_0x20c324){return'blockQuote'==_0x20c324['parent']['name'];}class q extends _0x4e7f5a{['afterInit'](){const _0x4341ed=this['editor'],_0x4b2068=_0x4341ed['locale'],_0x693760=_0x4341ed['plugins']['get']('TrackChangesEditing');_0x4341ed['plugins']['has']('BookmarkEditing')&&(_0x693760['enableCommand']('insertBookmark'),_0x693760['enableDefaultAttributesIntegration']('updateBookmark'),_0x693760['registerBlockAttribute']('bookmarkId'),_0x693760['descriptionFactory']['registerDescriptionCallback'](_0x4d91b2=>{if('insertion'!=_0x4d91b2['type']&&'deletion'!=_0x4d91b2['type']&&'attribute'!=_0x4d91b2['type'])return;const _0x490fb7=_0x4d91b2['getContainedElement']();if(null==_0x490fb7)return;if(!_0x490fb7['is']('element','bookmark'))return;const _0x2a5a75=_0x490fb7['getAttribute']('bookmarkId');if('insertion'==_0x4d91b2['type'])return{'type':'insertion','content':o(_0x4b2068,'*Insert:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4d91b2['type'])return{'type':'deletion','content':o(_0x4b2068,'*Remove:*\x20%0','\x22'+_0x2a5a75+'\x22\x20'+o(_0x4b2068,'ELEMENT_BOOKMARK'))};const {data:_0x3158a2}=_0x4d91b2;if(!_0x3158a2||'bookmarkId'!=_0x3158a2['key'])return;return{'type':'format','content':o(_0x4b2068,'*Set\x20bookmark:*\x20%0','\x22'+_0x3158a2['newValue']+'\x22')};}));}}class H extends _0x4e7f5a{['afterInit'](){const _0x1a4b2f=this['editor'];_0x1a4b2f['plugins']['has']('CaseChange')&&(_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1a4b2f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x4e7f5a{['afterInit'](){const _0x37c530=this['editor'];_0x37c530['commands']['get']('ckbox')&&_0x37c530['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x4e7f5a{['afterInit'](){const _0x27fcf6=this['editor'];if(!_0x27fcf6['plugins']['has']('CodeBlock'))return;const _0x3873ca=_0x27fcf6['plugins']['get']('TrackChangesEditing'),_0x457e02=_0x27fcf6['locale'],_0x1c8aa4=_0x27fcf6['config']['get']('codeBlock')['languages'],_0x3c7513=_0x27fcf6['commands']['get']('codeBlock');_0x3873ca['enableCommand']('indentCodeBlock'),_0x3873ca['enableCommand']('outdentCodeBlock'),_0x3873ca['enableCommand']('codeBlock',(_0x380e4c,_0x51cf5f={})=>{const _0x254090=_0x27fcf6['model'],_0x30e62b=_0x27fcf6['model']['document']['selection'],_0x5b7cf9=_0x51cf5f&&void 0x0!==_0x51cf5f['forceValue']?_0x51cf5f['forceValue']:!_0x3c7513['value'];let _0x1229ab;_0x51cf5f['language']||(_0x51cf5f['language']=_0x1c8aa4[0x0]['language']),_0x1229ab=_0x5b7cf9?Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x3d1d39=>co(_0x3d1d39)||function(_0x9da247,_0x8d212a){if(_0x9da247['is']('rootElement')||_0x8d212a['isLimit'](_0x9da247))return!0x1;return _0x8d212a['checkChild'](_0x9da247['parent'],'codeBlock');}(_0x3d1d39,_0x254090['schema'])):Array['from'](_0x30e62b['getSelectedBlocks']())['filter'](_0x4dc13b=>co(_0x4dc13b));const _0x3568aa=to(_0x1229ab,_0x254090);_0x254090['change'](()=>{for(const _0x2abfc2 of _0x3568aa)_0x3873ca['markBlockFormat'](_0x2abfc2,{'commandName':'codeBlock','commandParams':[{..._0x51cf5f,'forceValue':_0x5b7cf9}],'formatGroupId':'blockName'});});}),(_0x3873ca['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ba8f1=>o(_0x457e02,'ELEMENT_CODE_BLOCK',_0x2ba8f1)),_0x3873ca['descriptionFactory']['registerDescriptionCallback'](_0x415fab=>{if('formatBlock'!=_0x415fab['type'])return;const _0x5e858c=_0x457e02['t'],{data:_0x3483a2}=_0x415fab;if(!_0x3483a2||'codeBlock'!=_0x3483a2['commandName'])return;const _0x2224bd=_0x3483a2['commandParams'][0x0]['language'],_0x162158=_0x5e858c(_0x1c8aa4['find'](_0x2f24ed=>_0x2f24ed['language']===_0x2224bd)['label'])['toLowerCase']();return _0x3483a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x457e02,'*Set\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x162158+')')}:{'type':'format','content':o(_0x457e02,'*Remove\x20format:*\x20%0',o(_0x457e02,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4aa0ad){return'codeBlock'==_0x4aa0ad['name'];}class Q extends _0x4e7f5a{['afterInit'](){const _0x513036=this['editor'];if(!_0x513036['plugins']['has']('CommentsEditing'))return;_0x513036['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2bb678,_0x3825fd,_0x3b1e62){const _0x5d0a33=[];for(const _0x1d5223 of _0x3825fd['getItems']())_0x1d5223['hasAttribute'](_0x2bb678)&&_0x5d0a33['push'](_0x3b1e62['createRangeOn'](_0x1d5223));return _0x5d0a33;}function Ve(_0x295680,_0x14a921,{showActiveMarker:_0x1359e8=!0x0}={}){const _0xe3b6b5=_0x295680['plugins']['get']('TrackChangesEditing');return(_0xf35d21,_0x47c592,_0x97bc8)=>{if(!_0x97bc8['consumable']['test'](_0x47c592['markerRange'],_0xf35d21['name']))return;const _0x212e89=_0x47c592['markerRange']['getWalker'](),_0x5181b7=_0x47c592['markerRange']['start'],_0x207eff=_0x295680['model']['schema'];let _0x7a0666=null,_0x567610=null,_0x49ee8a=!0x1,_0x11089b=!0x1;for(const _0x54d7f7 of _0x212e89){const _0xc7f8e2=_0x54d7f7['item'];_0x49ee8a=_0x49ee8a||_0x207eff['isContent'](_0xc7f8e2);const _0x330bb7=_0x97bc8['mapper']['toViewElement'](_0xc7f8e2);if(_0x330bb7&&_0x330bb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54d7f7['type']&&(_0x207eff['isBlock'](_0xc7f8e2)&&!_0x207eff['isLimit'](_0xc7f8e2)&&(_0xc7f8e2['nextSibling']||_0x5181b7['isAtEnd']?_0x7a0666&&_0x7a0666['parent']==_0xc7f8e2||(_0x7a0666=_0xc7f8e2,_0x3e64e8(_0x54d7f7['previousPosition']),_0x11089b=!0x0):_0x567610=_0x567610||_0x54d7f7['previousPosition']));}function _0x3e64e8(_0x141299){const {id:_0x16fa79,authorId:_0x47856e}=_0xe3b6b5['_splitMarkerName'](_0x47c592['markerName']),_0x4f4d6e=_0x97bc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14a921,'data-suggestion':_0x16fa79,'data-author-id':_0x47856e}),_0x29bca9=_0x97bc8['mapper']['toViewPosition'](_0x141299);_0x1359e8&&_0xe3b6b5['activeMarkers']['includes'](_0x47c592['markerName'])&&_0x97bc8['writer']['addClass']('ck-suggestion-marker--active',_0x4f4d6e),_0x97bc8['writer']['insert'](_0x29bca9,_0x4f4d6e),_0x97bc8['mapper']['bindElementToMarker'](_0x4f4d6e,_0x47c592['markerName']);}_0x49ee8a||_0x11089b||!_0x567610||_0x3e64e8(_0x567610);};}class X extends _0x4e7f5a{static get['requires'](){return[_0x1f94eb];}['init'](){const _0x3e38c3=this['editor'],_0x249d4e=_0x3e38c3['plugins']['get']('TrackChangesEditing');_0x249d4e['enableCommand']('delete');const _0x359f3d=_0x3e38c3['commands']['get']('deleteForward');_0x249d4e['enableCommand']('deleteForward',(_0x31e7f7,_0x40ad6c={})=>{const _0x39fbdc=_0x3e38c3['model']['createSelection'](_0x3e38c3['model']['document']['selection']);_0x39fbdc['isCollapsed']&&_0x3e38c3['model']['modifySelection'](_0x39fbdc,{'direction':'forward','unit':_0x40ad6c['unit']});const _0x44bd81=_0x39fbdc['getFirstRange'](),_0x1f37fa=_0x3d40b9['fromRange'](_0x44bd81);let _0x2f7ff1;_0x31e7f7(_0x40ad6c),_0x2f7ff1='$graveyard'==_0x1f37fa['root']['rootName']?_0x3e38c3['model']['createRange'](_0x44bd81['start']):_0x3e38c3['model']['createRange'](_0x1f37fa['start'],_0x1f37fa['end']),_0x1f37fa['detach'](),_0x3e38c3['model']['enqueueChange'](_0x359f3d['buffer']['batch'],_0x19015b=>{_0x359f3d['buffer']['lock'](),_0x19015b['setSelection'](_0x19015b['createRange'](_0x2f7ff1['end'])),_0x359f3d['buffer']['unlock']();});}),_0x3e38c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x3e38c3,'merge'),{'priority':'high'}),_0x3e38c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x120fe0,_0x35a32d,_0x4674eb)=>{_0x4674eb['options']['showSuggestionHighlights']&&Ve(_0x3e38c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x120fe0,_0x35a32d,_0x4674eb);},{'priority':'high'}),_0x3e38c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x132e92,_0xeb6a70,_0x45205a)=>{const _0x5d2e3f=_0x45205a['mapper']['markerNameToElements'](_0xeb6a70['markerName']);if(_0x5d2e3f){for(const _0x498227 of _0x5d2e3f)_0x498227['is']('uiElement')&&(_0x45205a['mapper']['unbindElementFromMarkerName'](_0x498227,_0xeb6a70['markerName']),_0x45205a['writer']['remove'](_0x498227));}},{'priority':'high'});}}class Y extends _0x4e7f5a{['afterInit'](){const _0x3fd0ca=this['editor'];if(!_0x3fd0ca['plugins']['has']('ListEditing'))return;const _0xeae9d0=_0x3fd0ca['locale'],_0x584558=_0x3fd0ca['plugins']['get']('TrackChangesEditing'),_0x3910dc=_0x3fd0ca['plugins']['has']('TodoListEditing'),_0x29437d=!!_0x3fd0ca['config']['get']('list.multiBlock');function _0x3659b7(_0x871bac){return{'type':'format','content':''+o(_0xeae9d0,'*Set\x20format:*\x20%0',_0x871bac)};}function _0x2331a2(_0x4fd4b6){return{'type':'format','content':''+o(_0xeae9d0,'*Remove\x20format:*\x20%0',_0x4fd4b6)};}_0x584558['enableDefaultAttributesIntegration']('numberedList'),_0x584558['enableDefaultAttributesIntegration']('bulletedList'),_0x584558['enableDefaultAttributesIntegration']('customNumberedList'),_0x584558['enableDefaultAttributesIntegration']('customBulletedList'),_0x584558['enableDefaultAttributesIntegration']('indentList'),_0x584558['enableDefaultAttributesIntegration']('outdentList'),_0x584558['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x584558['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x584558['registerBlockAttribute']('listItemId'),_0x584558['registerBlockAttribute']('listType'),_0x584558['registerBlockAttribute']('listIndent'),_0x29437d&&(_0x584558['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x584558['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3910dc&&(_0x584558['enableDefaultAttributesIntegration']('todoList'),_0x584558['enableDefaultAttributesIntegration']('checkTodoList'),_0x584558['registerBlockAttribute']('todoListChecked'),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x40b47a=>{const {data:_0x560f49}=_0x40b47a;if(_0x560f49&&'todoListChecked'==_0x560f49['key'])return{'type':'format','content':_0x560f49['newValue']?o(_0xeae9d0,'*Check\x20item*'):o(_0xeae9d0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x408747=>{if(_0x408747['batch']['isUndo'])return!0x1;let _0xdfe4a=!0x1;const _0x270335=_0x584558['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f1ce5=>'todoListChecked'===_0x584558['_getAttributeKey'](_0x1f1ce5));for(const _0x361dc4 of _0x270335){'todo'!=_0x361dc4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x584558['_findSuggestions'](_0x361dc4['getFirstRange'](),'attribute')['find'](_0x41a7bb=>'listType'===_0x584558['_getAttributeKey'](_0x41a7bb['suggestion']))||(_0x408747['removeMarker'](_0x361dc4['getFirstMarker']()),_0xdfe4a=!0x0));}return _0xdfe4a;})),_0x584558['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xeae9d0,'FORMAT_INDENT'));const _0x42ab81={'type':'format','content':''};_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x43ef8c=>{const {data:_0x534041}=_0x43ef8c;if(!_0x534041||'listType'!=_0x534041['key'])return;let _0x219751=_0x43ef8c['head'];for(;_0x219751;){if(_0x219751['data']&&(('listStyle'==_0x219751['data']['key']||'listMarkerStyle'==_0x219751['data']['key'])&&(_0x219751['data']['newValue']&&'default'!=_0x219751['data']['newValue']||'default'!=_0x219751['data']['oldValue']&&!_0x534041['newValue'])||!_0x29437d&&_0x219751['data']['key']==m))return _0x42ab81;_0x219751=_0x219751['next'];}if(null==_0x534041['newValue'])switch(_0x534041['oldValue']){case'bulleted':return _0x2331a2(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2331a2(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2331a2(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}switch(_0x534041['newValue']){case'bulleted':return _0x3659b7(o(_0xeae9d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3659b7(o(_0xeae9d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3659b7(o(_0xeae9d0,'ELEMENT_TODO_LIST'));}}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x4a5bcd=>{const {data:_0x5b7e54}=_0x4a5bcd;if(_0x5b7e54&&'listIndent'==_0x5b7e54['key'])return null==_0x5b7e54['newValue']||null==_0x5b7e54['oldValue']&&0x0==_0x5b7e54['newValue']?_0x42ab81:void 0x0;}),_0x584558['descriptionFactory']['registerDescriptionCallback'](_0x15d3fa=>{if('attribute'!=_0x15d3fa['type'])return;const {data:_0x1a8c04}=_0x15d3fa;if(!_0x1a8c04||'listItemId'!=_0x1a8c04['key'])return;const _0x3c3ad7=Be(_0x15d3fa);return'newValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c3ad7?{'type':'format','content':o(_0xeae9d0,'*Split:*\x20list\x20item')}:_0x42ab81;}),_0x3fd0ca['model']['document']['registerPostFixer'](_0x323dc6=>this['listItemIdFixer'](_0x323dc6)),_0x3fd0ca['model']['document']['registerPostFixer'](_0x48a4c0=>this['noTrackChangesFixer'](_0x48a4c0)),_0x3fd0ca['model']['document']['on']('change:data',(_0x1fce99,_0xbcb745)=>{if(_0xbcb745['isUndo']||!_0xbcb745['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16cfa3){if(_0x16cfa3['batch']['isUndo']||!_0x16cfa3['batch']['isLocal'])return!0x1;let _0x142bef=!0x1;const _0x24ff71=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dea86=>_0x4dea86['data']&&'listItemId'==_0x4dea86['data']['key'])['filter'](_0x50dc8d=>_0x50dc8d['data']['newValue']&&_0x50dc8d['data']['oldValue']);for(const _0x187f34 of _0x24ff71)Be(_0x187f34)||(_0x16cfa3['removeMarker'](_0x187f34['getFirstMarker']()),_0x142bef=!0x0);return _0x142bef;}['noTrackChangesFixer'](_0x15a8de){if(_0x15a8de['batch']['isUndo']||!_0x15a8de['batch']['isLocal'])return!0x1;const _0x368bd8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x368bd8['trackChangesCommand']['value'])return!0x1;let _0x5e7f98=!0x1;const _0x98f55f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4b9181=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30b35e=>'attribute'==_0x30b35e['type'])['filter'](_0x1ec812=>_0x98f55f['includes'](_0x1ec812['attributeKey']));if(0x0==_0x4b9181['length'])return _0x5e7f98;for(const _0xb1f3d6 of _0x4b9181){const _0x52f759=_0x368bd8['_findSuggestions'](_0xb1f3d6['range'],'attribute')['filter'](_0x4bb1db=>!_0x4bb1db['meta']['isNextTo'])['map'](_0x33a9ab=>_0x33a9ab['suggestion'])['filter'](_0x310959=>{const _0x3461ba=_0x368bd8['_getAttributeKey'](_0x310959);return _0x98f55f['includes'](_0x3461ba);});if(_0x52f759['length']){for(const _0x8973be of _0x52f759)_0x15a8de['removeMarker'](_0x8973be['getFirstMarker']());_0x5e7f98=!0x0;}}return _0x5e7f98;}['assureChains'](){const _0x22a049=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113a3a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x37abe4;const _0x30da8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43fa5b=>{if(_0x43fa5b['data']['oldRange']||!_0x43fa5b['data']['newRange'])return null;if(!_0x43fa5b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ec0fb}=_0x22a049['_splitMarkerName'](_0x43fa5b['name']);if(!_0x22a049['hasSuggestion'](_0x2ec0fb))return null;const _0x336313=_0x22a049['getSuggestion'](_0x2ec0fb);return _0x113a3a['includes'](_0x336313['data']['key']);})['map'](_0x1dc909=>{const {id:_0x10aced}=_0x22a049['_splitMarkerName'](_0x1dc909['name']),_0x51f63a=_0x22a049['getSuggestion'](_0x10aced);return _0x37abe4=_0x51f63a['attributes']['groupId'],_0x51f63a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30da8f['size'])return;const _0x56b96a=_0x22a049['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53cc47=>'attribute'==_0x53cc47['type']&&_0x53cc47['data']&&_0x113a3a['includes'](_0x53cc47['data']['key'])&&_0x53cc47['attributes']['groupId']!=_0x37abe4)['map'](_0x30df27=>({'listItem':_0x30df27['getFirstRange']()['start']['nodeAfter'],'groupId':_0x30df27['attributes']['groupId']})),_0x521f0d=new Set();for(const {groupId:_0x23c850,listItem:_0x3b7f90}of _0x56b96a)_0x30da8f['has'](_0x3b7f90)&&_0x521f0d['add'](_0x23c850);for(const _0xd32e43 of _0x22a049['getSuggestions']())_0x521f0d['has'](_0xd32e43['attributes']['groupId'])&&_0xd32e43['setAttribute']('groupId',_0x37abe4);}['_supportLegacySuggestions'](){const _0x481f95=this['editor'],_0x67c24=_0x481f95['locale'],_0xda4a7=_0x481f95['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xda4a7['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb59bf1,_0x415bda){const _0x554098=[];for(let _0x1f86da of _0xb59bf1)_0x1f86da['start']['nodeAfter']===_0x1f86da['end']['parent']&&(_0x1f86da=_0x481f95['model']['createRange'](_0x481f95['model']['createPositionAt'](_0x1f86da['start']['nodeAfter'],0x0))),_0x554098['push'](_0x1f86da);_0x481f95['model']['change'](_0x2e9856=>{const _0x5ba6ce=_0x481f95['model']['document']['selection'],_0x4c1f07=Array['from'](_0x5ba6ce['getRanges']())['map'](_0x53acbe=>_0x3d40b9['fromRange'](_0x53acbe));_0x2e9856['setSelection'](_0x554098),_0x481f95['commands']['get'](_0x415bda['commandName'])['refresh'](),_0x415bda['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x481f95['execute'](_0x415bda['commandName'],..._0x415bda['commandParams']),_0x2e9856['setSelection'](_0x4c1f07);for(const _0x3e4a97 of _0x4c1f07)_0x3e4a97['detach']();});}),_0xda4a7['descriptionFactory']['registerElementLabel'](function(_0x47b55a){const _0x12f538=!_0x481f95['model']['schema']['isObject'](_0x47b55a),_0x2ab3ce=_0x47b55a['previousSibling'],_0x395613=_0x47b55a['nextSibling'],_0xa817f0=_0x47b55a['getAttribute']('listItemId'),_0x4136b9=!_0x2ab3ce||_0x2ab3ce['getAttribute']('listItemId')!==_0xa817f0,_0x265f1e=!_0x395613||_0x395613['getAttribute']('listItemId')!==_0xa817f0;return _0x12f538&&Boolean(_0xa817f0)&&_0x4136b9&&_0x265f1e;},_0x1dc3b6=>o(_0x67c24,'ELEMENT_LIST_ITEM',_0x1dc3b6));}['_registerLegacyDescription'](){const _0x5c3fef=this['editor'],_0x2128e5=_0x5c3fef['locale'];function _0x478333(_0x270a24){const _0x278784=_0x5c3fef['commands']['get']('bulletedList')['value'],_0x196889=_0x5c3fef['commands']['get']('numberedList')['value'];return'numberedList'===_0x270a24?_0x278784:_0x196889;}_0x5c3fef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5c2685){if('formatBlock'!=_0x5c2685['type'])return;const {data:_0x19b6c1}=_0x5c2685;if(!_0x19b6c1)return;let _0x15c908,_0xb1918a,_0x3189cb,_0x11476e;switch(_0x19b6c1['commandName']){case'bulletedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3189cb=_0x19b6c1['commandParams'][0x0]['forceValue'],_0x11476e=_0x478333(_0x19b6c1['commandName']),_0x15c908=_0x3189cb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11476e&&_0x5c3fef['config']['get']('list.multiBlock')||(_0x15c908='*Change\x20to:*\x20%0'),_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15c908='*Indent:*\x20%0',_0xb1918a={'type':'format','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15c908=function(_0xfa7d5){const _0x21f05b=_0xfa7d5['getFirstRange']();let _0x28edf0=_0x21f05b['start']['nodeAfter'];for(;_0x28edf0&&_0x21f05b['containsItem'](_0x28edf0);){if(_0x28edf0['getAttribute']('listIndent')>0x0)return!0x1;_0x28edf0=_0x28edf0['nextSibling'];}return!0x0;}(_0x5c2685)?o(_0x2128e5,'*Format:*\x20remove\x20from\x20%0',o(_0x2128e5,function(_0x24346c){return'ELEMENT_'+_0x24346c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5c2685))):o(_0x2128e5,'*Outdent:*\x20%0',o(_0x2128e5,'ELEMENT_LIST_ITEM')),_0xb1918a={'type':'format','content':_0x15c908};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19b6c1['multipleBlocks']&&(_0x15c908='*Merge:*\x20%0',_0xb1918a={'type':'deletion','content':o(_0x2128e5,_0x15c908,o(_0x2128e5,'ELEMENT_LIST_ITEM'))});}return _0xb1918a;});}}function Be(_0x25184e){let _0x328777=_0x25184e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x328777;){const _0x2573e1=_0x328777['getAttribute']('listItemId');if(!_0x2573e1)return!0x1;if(_0x2573e1==_0x25184e['data']['newValue'])return'newValue';if(_0x2573e1==_0x25184e['data']['oldValue'])return'oldValue';_0x328777=_0x328777['previousSibling'];}return!0x1;}class Z extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x14a801=this['editor']['config']['get']('list.properties'),_0x253d94=this['editor']['plugins']['get']('TrackChangesEditing');_0x14a801['styles']&&(_0x253d94['enableDefaultAttributesIntegration']('listStyle'),_0x253d94['registerBlockAttribute']('listStyle')),_0x14a801['reversed']&&(_0x253d94['enableDefaultAttributesIntegration']('listReversed'),_0x253d94['registerBlockAttribute']('listReversed')),_0x14a801['startIndex']&&(_0x253d94['enableDefaultAttributesIntegration']('listStart'),_0x253d94['registerBlockAttribute']('listStart'));const _0x13a047={'type':'format','content':''};_0x253d94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d6765=this['editor']['locale'];_0x253d94['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d6765,'FORMAT_LIST_REVERSED')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1a4e37=>{const {data:_0x53805d}=_0x1a4e37;if(_0x53805d&&'listReversed'==_0x53805d['key'])return null==_0x53805d['newValue']||0x0==_0x53805d['newValue']&&null==_0x53805d['oldValue']?_0x13a047:void 0x0;}),_0x253d94['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d6765,'FORMAT_LIST_START')),_0x253d94['descriptionFactory']['registerDescriptionCallback'](_0x1738e0=>{const {data:_0x3e01f7}=_0x1738e0;if(_0x3e01f7&&'listStart'==_0x3e01f7['key'])return null==_0x3e01f7['newValue']||0x1==_0x3e01f7['newValue']&&null==_0x3e01f7['oldValue']?_0x13a047:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x24b17b=>{if(_0x24b17b['batch']['isUndo'])return!0x1;let _0x5af7d6=!0x1;const _0x335539=_0x253d94['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x448e1f=>{const _0x19e4ec=_0x253d94['_getAttributeKey'](_0x448e1f);return'listStart'==_0x19e4ec||'listReversed'==_0x19e4ec;});for(const _0x9d57d5 of _0x335539){const _0x579164=_0x9d57d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x579164||'customNumbered'==_0x579164)continue;_0x253d94['_findSuggestions'](_0x9d57d5['getFirstRange'](),'attribute')['find'](_0x16016c=>'listType'==_0x253d94['_getAttributeKey'](_0x16016c['suggestion']))||(_0x24b17b['removeMarker'](_0x9d57d5['getFirstMarker']()),_0x5af7d6=!0x0);}return _0x5af7d6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x369460){const _0xd4fac3=this['editor']['locale'],{data:_0x1947b8}=_0x369460,_0x22dc57={'type':'format','content':''};if(!_0x1947b8||'listStyle'!=_0x1947b8['key'])return;if(!_0x1947b8['oldValue'])return'default'==_0x1947b8['newValue']?_0x22dc57:{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};if(!_0x1947b8['newValue']){if('default'==_0x1947b8['oldValue'])return _0x22dc57;let _0x451537=_0x369460['head'];for(;_0x451537;){if(_0x451537['data']&&'listType'==_0x451537['data']['key']&&_0x451537['data']['newValue'])return _0x22dc57;_0x451537=_0x451537['next'];}return{'type':'format','content':''+o(_0xd4fac3,'*Remove\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['oldValue'])))};}if('default'!=_0x1947b8['newValue'])return{'type':'format','content':''+o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,this['_getTranslationKeyForListStyle'](_0x1947b8['newValue'])))};let _0x408654=_0x369460['head'];for(;_0x408654;){if(_0x408654['data']&&'listType'==_0x408654['data']['key']&&_0x408654['data']['newValue']&&_0x408654['data']['oldValue'])return _0x22dc57;_0x408654=_0x408654['next'];}return{'type':'format','content':o(_0xd4fac3,'*Set\x20format:*\x20%0',o(_0xd4fac3,'ELEMENT_'+_0x369460['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xaf8760=this['editor'],_0x106a53=_0xaf8760['locale'];_0xaf8760['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b24a6=>{if('formatBlock'!=_0x3b24a6['type'])return;const {data:_0xd93f27}=_0x3b24a6;if(!_0xd93f27)return;let _0x322e15,_0x172c0a;switch(_0xd93f27['commandName']){case'listStyle':_0x322e15='*Change\x20to:*\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,o(_0x106a53,this['_getTranslationKeyForListStyle'](_0xd93f27['commandParams'][0x0]['type'])))};break;case'listReversed':_0x322e15=_0xd93f27['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15)};break;case'listStart':_0x322e15='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x172c0a={'type':'format','content':o(_0x106a53,_0x322e15,_0xd93f27['commandParams'][0x0]['startIndex'])};}return _0x172c0a;});}['_getTranslationKeyForListStyle'](_0x3972ae){return'ELEMENT_'+function(_0x53d917){if(Re['includes'](_0x53d917))return'bulleted';if(De['includes'](_0x53d917))return'numbered';return null;}(_0x3972ae)['toUpperCase']()+'_LIST_'+_0x3972ae['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x4e7f5a{['afterInit'](){const _0x51b2db=this['editor'];_0x51b2db['commands']['get']('emoji')&&_0x51b2db['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x4e7f5a{static get['requires'](){return[_0x447bd9];}['init'](){const _0x34cb85=this['editor'],_0x47620f=_0x34cb85['plugins']['get']('TrackChangesEditing'),_0x1e75b5=_0x34cb85['commands']['get']('enter');_0x47620f['enableCommand']('enter',()=>{_0x34cb85['model']['change'](_0x4bf648=>{const _0x135f65=_0x34cb85['model']['document']['selection'],_0x4a974b=_0x135f65['getFirstPosition'](),_0x33c755=_0x3d40b9['fromRange'](_0x135f65['getFirstRange']());if(_0x1e75b5['enterBlock'](_0x4bf648)){const _0x33f075=_0x34cb85['model']['createPositionAt'](_0x4a974b['parent']['nextSibling'],0x0),_0x43d233=_0x4bf648['createRange'](_0x4a974b,_0x33f075);_0x47620f['markInsertion'](_0x43d233);}else _0x4bf648['setSelection'](_0x4bf648['createRange'](_0x33c755['end']));_0x33c755['detach'](),_0x1e75b5['fire']('afterExecute',{'writer':_0x4bf648});});}),_0x34cb85['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x34cb85,'split'),{'priority':'high'}),_0x34cb85['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4a27af,_0x381f8d,_0x4a99f7)=>{const _0x34a25d=_0x4a99f7['mapper']['markerNameToElements'](_0x381f8d['markerName']);if(_0x34a25d){for(const _0x5ad5ee of _0x34a25d)_0x5ad5ee['hasClass']('ck-suggestion-marker-split')&&(_0x4a99f7['mapper']['unbindElementFromMarkerName'](_0x5ad5ee,_0x381f8d['markerName']),_0x4a99f7['writer']['remove'](_0x5ad5ee));}},{'priority':'high'}),_0x34cb85['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x299e93,_0x5cbc7d,_0x54623e)=>{_0x54623e['options']['showSuggestionHighlights']&&Ve(_0x34cb85,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x299e93,_0x5cbc7d,_0x54623e);},{'priority':'high'});}}class it extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1347fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1347fb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1347fb['enableCommand']('findNext'),_0x1347fb['enableCommand']('findPrevious'),_0x1347fb['enableCommand']('replace'),_0x1347fb['enableCommand']('replaceAll');}['handleFindCommand'](_0x2e52eb,_0x3e93da,_0x190899={}){const _0x174556=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2e52eb(_0x13070e=>{let _0x1ec4c7=('string'==typeof _0x3e93da?_0x174556['findByTextCallback'](_0x3e93da,_0x190899):_0x3e93da)(_0x13070e);Array['isArray'](_0x1ec4c7)&&(_0x1ec4c7={'results':_0x1ec4c7,'searchText':'string'==typeof _0x3e93da?_0x3e93da:''});const _0x4581e2=_0x1ec4c7['results']['filter'](_0x53f02b=>!0x1===this['_isInDeletionRange'](_0x53f02b,_0x13070e['item']));return{..._0x1ec4c7,'results':_0x4581e2};},_0x190899);}['_isInDeletionRange'](_0x14b4eb,_0x47284d){const _0x9dc671=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['start']),this['editor']['model']['createPositionAt'](_0x47284d,_0x14b4eb['end']));for(const _0x59f38e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x9dc671['getIntersection'](_0x59f38e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x4e7f5a{['afterInit'](){const _0x11a0ea=this['editor']['locale'],_0x568f1d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x10891e,commandName:_0x2a9ce2}of eo)this['editor']['plugins']['has'](_0x10891e)&&(_0x568f1d['enableDefaultAttributesIntegration'](_0x2a9ce2),_0x568f1d['registerInlineAttribute'](_0x2a9ce2));_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11a0ea,'FORMAT_FONT_SIZE')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11a0ea,'FORMAT_FONT_FAMILY')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11a0ea,'FORMAT_FONT_COLOR')),_0x568f1d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11a0ea,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153974=this['editor'],_0x41a757=_0x153974['locale'];_0x153974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xea1a99=>{const _0x810baf=_0x41a757['t'];if('formatInline'!=_0xea1a99['type'])return;const {data:_0x18e1ed}=_0xea1a99;if(null!=_0x18e1ed){if('fontSize'==_0x18e1ed['commandName']){const _0x45177e=_0x18e1ed['commandParams'][0x0]['value'];if(_0x45177e){const _0x5136ba=_0x810baf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x13af08=>_0x13af08['model']==_0x45177e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a757,'*Set\x20font\x20size:*\x20%0',_0x5136ba)};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18e1ed['commandName']){const _0x31e3aa=_0x18e1ed['commandParams'][0x0]['value'];return _0x31e3aa?{'type':'format','content':o(_0x41a757,'*Set\x20font\x20family:*\x20%0',_0x31e3aa)}:{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18e1ed['commandName']){const _0x820698=_0x18e1ed['commandParams'][0x0]['value'];if(_0x820698){const _0x3f13a2=_0x311c22(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29cb0b=>_0x29cb0b['model']==_0x820698);let _0x4feeb6=_0x820698,_0x2c7f4f='';return _0x3f13a2&&(_0x4feeb6=_0x3f13a2['label'],_0x2c7f4f=_0x810baf(_0x4feeb6)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20color:*\x20%0',_0x2c7f4f)['trim'](),'color':{'value':_0x820698,'title':_0x2c7f4f||_0x4feeb6}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18e1ed['commandName']){const _0x112c18=_0x18e1ed['commandParams'][0x0]['value'];if(_0x112c18){const _0x433c7f=_0x311c22(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47d591=>_0x47d591['model']==_0x112c18);let _0x5be8ae=_0x112c18,_0x3ca340='';return _0x433c7f&&(_0x5be8ae=_0x433c7f['label'],_0x3ca340=_0x810baf(_0x5be8ae)['toLowerCase']()),{'type':'format','content':o(_0x41a757,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ca340)['trim'](),'color':{'value':_0x112c18,'title':_0x3ca340||_0x5be8ae}};}return{'type':'format','content':o(_0x41a757,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x4e7f5a{['afterInit'](){const {plugins:_0x3c5924}=this['editor'];_0x3c5924['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3c5924['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5ebcc2,plugins:_0x4785d3,commands:_0x14925f}=this['editor'],_0x53925b=_0x4785d3['get']('TrackChangesEditing');_0x14925f['get']('footnotesStyle')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x14925f['get']('footnotesStart')&&_0x53925b['enableDefaultAttributesIntegration']('footnotesStart'),_0x53925b['registerBlockAttribute']('footnotesListStyle'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x53925b['registerBlockAttribute']('footnotesListStart'),_0x53925b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x5ebcc2,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4818a5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x13ace8,commands:_0x3298c5}=this['editor'];_0x3298c5['get']('insertFootnote')&&_0x4818a5['enableCommand']('insertFootnote'),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2d035b=>o(_0x13ace8,'ELEMENT_FOOTNOTE_REF',_0x2d035b)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4dabb4=>o(_0x13ace8,'ELEMENT_FOOTNOTE_DEFINITION',_0x4dabb4)),_0x4818a5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x408bdf=>o(_0x13ace8,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x408bdf));}}class ot extends _0x4e7f5a{['afterInit'](){const _0x4f33b1=this['editor'],_0x18729e=_0x4f33b1['plugins']['get']('TrackChangesEditing'),_0x5704ba=_0x4f33b1['commands']['get']('copyFormat'),_0x297bb7=_0x4f33b1['commands']['get']('pasteFormat');_0x5704ba&&_0x297bb7&&(_0x18729e['enableDefaultAttributesIntegration']('pasteFormat'),_0x18729e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1003c3=this['editor'],_0x1564bc=_0x1003c3['locale'];_0x1003c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2783cc=>{if('formatBlock'!=_0x2783cc['type']&&'formatInline'!=_0x2783cc['type'])return;const {data:_0x1dba2a}=_0x2783cc;if(_0x1dba2a&&'pasteFormat'===_0x1dba2a['commandName']){const _0xaecbf=[],_0xe5945=_0x1dba2a['commandParams'][0x0];for(const [_0x18d78a,_0x284524]of Object['entries'](_0xe5945))_0xaecbf['push'](ro(_0x1003c3,_0x18d78a,_0x284524));return _0xaecbf['length']?{'type':'format','content':o(_0x1564bc,'*Set\x20format\x20to:*\x20%0',_0xaecbf['join'](',\x20'))}:{'type':'format','content':o(_0x1564bc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x302f33,_0x37b3a2,_0x10579c){const _0x38c4e0=_0x302f33['locale']['t'],_0x12be7c=_0x37b3a2['split'](/(?=[A-Z])/)['join']('\x20'),_0xf0a713=_0x38c4e0(_0x12be7c['charAt'](0x0)['toUpperCase']()+_0x12be7c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10579c)return _0xf0a713;if('fontColor'===_0x37b3a2||'fontBackgroundColor'===_0x37b3a2){const _0x302e84=_0x311c22(_0x302f33['config']['get']('fontColor.colors'))['find'](_0x3382fe=>_0x3382fe['model']==_0x10579c);return _0xf0a713+'\x20('+(_0x302e84?_0x38c4e0(_0x302e84['label'])['toLowerCase']():_0x10579c)+')';}if('fontSize'===_0x37b3a2&&isNaN(parseFloat(_0x10579c))){const _0xa14ac0=_0x302f33['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x302f33['config']['get']('fontSize.options'))['find'](_0x1e3e05=>_0x1e3e05['model']==_0x10579c);return _0xf0a713+'\x20('+(_0xa14ac0?_0x38c4e0(_0xa14ac0['title'])['toLowerCase']():_0x10579c)+')';}return _0xf0a713+'\x20('+_0x10579c+')';}class rt extends _0x4e7f5a{['_headingOptions'];['afterInit'](){const _0x1477d1=this['editor'];if(!_0x1477d1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1477d1['config']['get']('heading.options');const _0x2eb57a=_0x1477d1['locale'],_0x209933=_0x1477d1['plugins']['get']('TrackChangesEditing');_0x209933['enableDefaultAttributesIntegration']('heading');for(const _0x4a449d of this['_headingOptions'])'paragraph'!=_0x4a449d['model']&&_0x209933['descriptionFactory']['registerElementLabel'](_0x4a449d['model'],_0x203318=>{const _0x157c5e=this['_getHeadingLevel'](_0x4a449d['model']);return null!==_0x157c5e?_0x514dc2(_0x203318,_0x157c5e):_0xfc3003(_0x203318,_0x4a449d['title']);});function _0x514dc2(_0x210093,_0x36f13c){return o(_0x2eb57a,'ELEMENT_HEADING',[_0x210093,_0x36f13c]);}function _0xfc3003(_0x524d17,_0x26fb76){return o(_0x2eb57a,'ELEMENT_HEADING_CUSTOM',[_0x524d17,_0x26fb76]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2d2ea=this['editor'],_0x3f8e2a=_0xf2d2ea['locale'];function _0x224688(_0x387794,_0x1ce181){return o(_0x3f8e2a,'ELEMENT_HEADING_CUSTOM',[_0x387794,_0x1ce181]);}_0xf2d2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536b4d=>{if('formatBlock'!=_0x536b4d['type'])return;const {data:_0x3930a5}=_0x536b4d;if(_0x3930a5&&'heading'==_0x3930a5['commandName']){const _0x46fb0e=_0x3930a5['commandParams'][0x0]['value'],_0x123475=this['_getHeadingLevel'](_0x46fb0e);if(null!==_0x123475)return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',(_0x31e09d=0x1,_0x4e41f3=_0x123475,o(_0x3f8e2a,'ELEMENT_HEADING',[_0x31e09d,_0x4e41f3])))};const _0x4fc98c=this['_headingOptions']['find'](_0x4147f1=>_0x4147f1['model']===_0x46fb0e)['title'];return{'type':'format','content':o(_0x3f8e2a,'*Change\x20to:*\x20%0',_0x224688(0x1,_0x4fc98c))};}var _0x31e09d,_0x4e41f3;});}['_getHeadingLevel'](_0x19e974){const _0x2eaee1=_0x19e974['match'](/^heading(\d+)/);if(_0x2eaee1)return _0x2eaee1[0x1];const _0x233371=this['_headingOptions']?.['find'](_0x3890f2=>_0x3890f2['model']==_0x19e974);if(_0x233371&&_0x233371['view']){const _0x3e1e32=_0x233371['view'],_0x160772=(_0x3e1e32['name']??_0x3e1e32)['match'](/^h(\d+)/);if(_0x160772)return _0x160772[0x1];}return null;}}class at extends _0x4e7f5a{['afterInit'](){const _0x5a2ed6=this['editor'];if(!_0x5a2ed6['plugins']['has']('HighlightEditing'))return;const _0x2ac0a9=_0x5a2ed6['plugins']['get']('TrackChangesEditing'),_0x42a458=_0x5a2ed6['locale'];_0x2ac0a9['enableDefaultAttributesIntegration']('highlight'),_0x2ac0a9['registerInlineAttribute']('highlight'),_0x2ac0a9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42a458,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbda6b5=this['editor'],_0xd7f473=_0xbda6b5['locale'];_0xbda6b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35575d=>{if('formatInline'!=_0x35575d['type'])return;const {data:_0x479870}=_0x35575d;if(_0x479870&&'highlight'==_0x479870['commandName']){const _0x500f80=_0xd7f473['t'],_0x604b7=_0x479870['commandParams'][0x0]['value'];if(_0x604b7){const _0x1aec3f=_0xbda6b5['config']['get']('highlight.options')['find'](_0x590ba3=>_0x590ba3['model']==_0x604b7),_0x10b95b=_0x500f80(_0x1aec3f['title'])['toLowerCase']();return{'type':'format','content':o(_0xd7f473,'*Set\x20highlight:*\x20%0',_0x10b95b),'color':{'value':_0x1aec3f['color'],'title':_0x1aec3f['title']}};}return{'type':'format','content':o(_0xd7f473,'*Remove\x20highlight*',o(_0xd7f473,'FORMAT_HIGHLIGHT'))};}});}}class ct extends _0x4e7f5a{['afterInit'](){const _0x4a15ca=this['editor'];if(!_0x4a15ca['plugins']['has']('HorizontalLineEditing'))return;_0x4a15ca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46a56c=_0x4a15ca['plugins']['get']('TrackChangesEditing'),_0x360e3a=_0x4a15ca['locale'];_0x46a56c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f0711=>o(_0x360e3a,'ELEMENT_HORIZONTAL_LINE',_0x3f0711)),_0x4a15ca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bd6d4,{writer:_0x460a46,options:_0x2b11f0})=>{if(!_0x2b11f0['showSuggestionHighlights'])return null;const _0x30cf6e=_0x460a46['createContainerElement']('div'),_0x25f3e4=_0x460a46['createEmptyElement']('hr');return _0x460a46['addClass']('ck-horizontal-line',_0x30cf6e),_0x460a46['insert'](_0x460a46['createPositionAt'](_0x30cf6e,0x0),_0x25f3e4),_0x30cf6e;},'converterPriority':'high'});}}class ut extends _0x4e7f5a{['afterInit'](){const _0x17e9e1=this['editor'];if(!_0x17e9e1['plugins']['has']('HtmlEmbed'))return;const _0x5ee102=_0x17e9e1['plugins']['get']('TrackChangesEditing'),_0x172034=_0x17e9e1['locale'];_0x5ee102['descriptionFactory']['registerElementLabel']('rawHtml',_0x2a844b=>o(_0x172034,'ELEMENT_HTML_EMBED',_0x2a844b)),_0x5ee102['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ee102['registerBlockAttribute']('value'),_0x5ee102['descriptionFactory']['registerDescriptionCallback'](_0x53adb5=>{if('attribute'!=_0x53adb5['type'])return;const {data:_0x491903}=_0x53adb5;if(_0x491903&&'value'==_0x491903['key']&&_0x53adb5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20af9c=o(_0x172034,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x172034,'*Change\x20%0\x20content*',_0x20af9c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521e8d=this['editor'],_0x485e7b=_0x521e8d['locale'];_0x521e8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e07dc=>{if('formatBlock'!=_0x3e07dc['type'])return;const {data:_0x1c28bb}=_0x3e07dc;if(_0x1c28bb&&'htmlEmbed'==_0x1c28bb['commandName']){const _0x307391=o(_0x485e7b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x485e7b,'*Change\x20%0\x20content*',_0x307391)};}});}}class ft extends _0x4e7f5a{['afterInit'](){const _0x25aa1c=this['editor'];if(!_0x25aa1c['plugins']['has']('ImageEditing'))return;const _0x5e5d91=_0x25aa1c['plugins']['get']('TrackChangesEditing'),_0x414c90=_0x25aa1c['plugins']['get']('ImageUtils'),_0x291170=_0x25aa1c['locale'];_0x5e5d91['enableCommand']('insertImage'),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f699d=>o(_0x291170,'ELEMENT_IMAGE',_0x4f699d)),_0x5e5d91['descriptionFactory']['registerElementLabel']('imageInline',_0x5aabcd=>o(_0x291170,'ELEMENT_INLINE_IMAGE',_0x5aabcd)),_0x5e5d91['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x291170,'ELEMENT_CAPTION')),_0x25aa1c['plugins']['has']('ImageUploadEditing')&&_0x5e5d91['enableCommand']('uploadImage'),_0x25aa1c['plugins']['has']('ImageBlockEditing')&&_0x25aa1c['plugins']['has']('ImageInlineEditing')&&(_0x5e5d91['enableCommand']('imageTypeInline',(_0x405c45,_0x23420e)=>{const _0xfbda9e=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']);_0x25aa1c['model']['change'](()=>{_0x5e5d91['markBlockFormat'](_0xfbda9e,{'commandName':'imageTypeInline','commandParams':[_0x23420e]},[],'convertBlockImageToInline');});}),_0x5e5d91['enableCommand']('imageTypeBlock',(_0x42a681,_0x43b4bb)=>{_0x25aa1c['model']['change'](_0x350848=>{let _0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x3a6e6b=_0x52185f['fromPosition'](_0x12c26a['start'],'toPrevious'),_0x21365f=_0x52185f['fromPosition'](_0x12c26a['end'],'toNext');_0x5e5d91['forceDefaultExecution'](()=>_0x42a681(_0x43b4bb)),_0x416370=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x12c26a=_0x350848['createRangeOn'](_0x416370);const _0x4fffc1=_0x350848['createRange'](_0x3a6e6b,_0x21365f);_0x3a6e6b['detach'](),_0x21365f['detach'](),_0x5e5d91['markBlockFormat'](_0x416370,{'commandName':'imageTypeInline','commandParams':[_0x43b4bb]},[],'convertInlineImageToBlock'),_0x4fffc1['start']['isBefore'](_0x12c26a['start'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x4fffc1['start'],_0x12c26a['start']),'convertInlineImageToBlock'),_0x12c26a['end']['isBefore'](_0x4fffc1['end'])&&_0x5e5d91['markInsertion'](_0x350848['createRange'](_0x12c26a['end'],_0x4fffc1['end']),'convertInlineImageToBlock');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16f8ae])=>{const _0x38c270=_0x5e5d91['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x30de9b=_0x16f8ae['start'],_0x202567=_0x16f8ae['end'];const _0x15a0a3=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x30de9b,'backward'),_0x4ce1e5=_0x25aa1c['model']['schema']['getNearestSelectionRange'](_0x202567,'forward');_0x15a0a3['isCollapsed']&&(_0x30de9b=_0x15a0a3['start']),_0x4ce1e5['isCollapsed']&&(_0x202567=_0x4ce1e5['end']),_0x38c270([_0x25aa1c['model']['createRange'](_0x30de9b,_0x202567)]);}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x254c1b),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x254c1b)),_0x25aa1c['plugins']['has']('ImageCaptionEditing')&&(_0x5e5d91['enableCommand']('toggleImageCaption',(_0x51be86,_0x182566)=>{const _0x589132=_0x25aa1c['plugins']['get']('ImageCaptionUtils');let _0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c);_0x25aa1c['model']['change'](()=>{if(_0x357ad0)return void _0x5e5d91['markDeletion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0));const _0x16f690=_0x414c90['isBlockImage'](_0x11241c);_0x51be86(_0x182566),_0x11241c=_0x414c90['getClosestSelectedImageElement'](_0x25aa1c['model']['document']['selection']),_0x357ad0=_0x589132['getCaptionFromImageModelElement'](_0x11241c),_0x5e5d91['markInsertion'](_0x25aa1c['model']['createRangeOn'](_0x357ad0),_0x16f690?null:'imageCaption');});}),_0x5e5d91['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x254c1b));const _0x2f03aa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ddcb9(_0x47d3cd,_0xa4778a){const _0x2ed88f=_0x2f03aa['findIndex'](({type:_0x4b0001,subType:_0x2fc498})=>_0x47d3cd['type']==_0x4b0001&&_0x47d3cd['subType']==_0x2fc498),_0x3ce2d3=_0x2f03aa['findIndex'](({type:_0xc549a5,subType:_0x235534})=>_0xa4778a['type']==_0xc549a5&&_0xa4778a['subType']==_0x235534);if(_0x2ed88f<0x0||_0x3ce2d3<0x0)return!0x1;const _0x273ee4=_0x47d3cd['getFirstRange'](),_0x9be843=_0xa4778a['getFirstRange']();if((0x0==_0x2ed88f||0x1==_0x2ed88f)&&0x2==_0x3ce2d3&&_0x273ee4['isIntersecting'](_0x9be843))return!0x0;if(0x2==_0x2ed88f&&0x3==_0x3ce2d3){const _0x38c1b2=_0x5e5d91['_findSuggestions'](_0x273ee4,'insertion')['filter'](({suggestion:_0x52db1a,meta:_0x39fd63})=>_0x39fd63['isOwn']&&'convertInlineImageToBlock'==_0x52db1a['subType']);if(_0x38c1b2['length']>0x1&&_0x9be843['end']['isEqual'](_0x273ee4['start']))return!0x0;if(0x1==_0x38c1b2['length']&&(_0x273ee4['start']['isEqual'](_0x9be843['end'])||_0x273ee4['end']['isEqual'](_0x9be843['start'])))return!0x0;}if(0x3==_0x2ed88f&&0x3==_0x3ce2d3&&_0x273ee4['start']['isBefore'](_0x9be843['start'])){const _0x1b048a=_0x273ee4['end']['nodeAfter'],_0x28270f=_0x9be843['start']['nodeBefore'];return _0x414c90['isBlockImage'](_0x1b048a)&&_0x1b048a===_0x28270f;}return!0x1;}function _0x254c1b(_0x10c49b,_0x3087c9){return _0x4ddcb9(_0x10c49b,_0x3087c9)?[_0x10c49b,_0x3087c9]:_0x4ddcb9(_0x3087c9,_0x10c49b)?[_0x3087c9,_0x10c49b]:null;}_0x25aa1c['plugins']['has']('ImageResize')&&(_0x5e5d91['enableDefaultAttributesIntegration']('resizeImage'),_0x5e5d91['registerBlockAttribute']('resizedWidth'),_0x5e5d91['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x291170,'FORMAT_IMAGE_SIZE'))),_0x25aa1c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e5d91['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e5d91['registerBlockAttribute']('alt')),_0x25aa1c['plugins']['has']('PictureEditing')&&(_0x5e5d91['registerBlockAttribute']('sources'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x343630=>{if('attribute'!=_0x343630['type'])return;const {data:_0xa3219}=_0x343630;return _0xa3219&&'sources'==_0xa3219['key']?{'type':'format','content':''}:void 0x0;})),_0x25aa1c['plugins']['has']('ImageSizeAttributes')&&(_0x5e5d91['registerBlockAttribute']('width'),_0x5e5d91['registerBlockAttribute']('height'),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x10cd91=>{if('attribute'!=_0x10cd91['type'])return;const {data:_0x34efa9}=_0x10cd91;return!_0x34efa9||'width'!=_0x34efa9['key']&&'height'!=_0x34efa9['key']?void 0x0:{'type':'format','content':''};})),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x39c11c=>{if(!!_0x2f03aa['find'](({type:_0xe1ad66,subType:_0x5a6acf})=>_0x39c11c['type']==_0xe1ad66&&_0x39c11c['subType']==_0x5a6acf))return _0x39c11c['previous']?{}:void 0x0;}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x393e36=>{if('insertion'==_0x393e36['type']||'deletion'==_0x393e36['type']){const _0x255387=_0x393e36['getContainedElement']();if(_0x255387&&_0x255387['is']('element','caption'))return{'type':'insertion'==_0x393e36['type']?'addObject':'removeObject','element':_0x255387,'quantity':0x1};}}),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0xcca678=>'formatBlock'==_0xcca678['type']&&'convertInlineImageToBlock'==_0xcca678['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xcca678['type']&&'convertBlockImageToInline'==_0xcca678['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e5d91['descriptionFactory']['registerDescriptionCallback'](_0x538273=>{if('attribute'!=_0x538273['type'])return;const {data:_0x27b36f}=_0x538273;if(!_0x27b36f||'alt'!=_0x27b36f['key'])return;const _0x3e73e6=_0x27b36f['newValue'];return _0x3e73e6?{'type':'format','content':o(_0x291170,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e73e6+'\x22')}:{'type':'format','content':o(_0x291170,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2133c6=this['editor'],_0x56d946=_0x2133c6['locale'];_0x2133c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558e26=>{if('formatBlock'!=_0x558e26['type']&&'formatInline'!=_0x558e26['type'])return;const {data:_0x423fdb}=_0x558e26;if(_0x423fdb){if('imageTextAlternative'==_0x423fdb['commandName']){const _0x460ff2=_0x423fdb['commandParams'][0x0]['newValue'];return _0x460ff2?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x460ff2+'\x22')}:{'type':'format','content':o(_0x56d946,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x423fdb['commandName']){const _0x475467=_0x423fdb['commandParams'][0x0]['width'];return _0x475467?{'type':'format','content':o(_0x56d946,'*Set\x20image\x20width:*\x20%0',_0x475467)}:{'type':'format','content':o(_0x56d946,'*Reset\x20image\x20width*')};}}});}}class ht extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x157030=this['editor']['locale'],_0x4e9cfd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9cfd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e9cfd['registerBlockAttribute']('src'),_0x4e9cfd['descriptionFactory']['registerDescriptionCallback'](_0x276da6=>{if('attribute'!=_0x276da6['type'])return;const {data:_0x2043d3}=_0x276da6;return _0x2043d3&&'src'==_0x2043d3['key']?_0x2043d3['newValue']&&_0x2043d3['oldValue']?{'type':'format','content':o(_0x157030,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f4578=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4578['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f4578['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88abef=this['editor'],_0xf71fa1=_0x88abef['locale'];_0x88abef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509376=>{if('formatBlock'!=_0x509376['type']&&'formatInline'!=_0x509376['type'])return;const {data:_0x17abfb}=_0x509376;if(!_0x17abfb||'replaceImageSource'!=_0x17abfb['commandName'])return;return{'type':'format','content':o(_0xf71fa1,'*Format:*\x20replace\x20image\x20URL')};});}}class gt extends _0x4e7f5a{['afterInit'](){const _0x545c88=this['editor'];if(!_0x545c88['plugins']['has']('ImageStyleEditing'))return;const _0x32fc2e=_0x545c88['plugins']['get']('TrackChangesEditing'),_0x5c64cd=_0x545c88['plugins']['get']('ImageUtils'),_0x2973b1={};_0x32fc2e['enableCommand']('imageStyle',(_0x2261fb,_0x42b334)=>{const _0x5f448f=_0x545c88['plugins']['get']('Users')['me'],_0x5a0873=_0x545c88['commands']['get']('imageStyle');let _0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x2f8255=_0x5a0873['value'];if(_0x2f8255==_0x42b334['value'])return;const _0x1710f7={'commandName':'imageStyle','commandParams':[_0x42b334],'formatGroupId':_0x3caa75()};_0x545c88['model']['change'](()=>{if(_0x32fc2e['getSuggestions']()['filter'](_0x425f88=>_0x425f88['isInContent']&&_0x5f448f==_0x425f88['author']&&('formatBlock'==_0x425f88['type']||'formatInline'==_0x425f88['type'])&&('imageStylePreApply'==_0x425f88['subType']||'imageStylePostApply'==_0x425f88['subType'])&&_0x425f88['getFirstRange']()['isEqual'](_0x3a2524))['forEach'](_0x4a3078=>_0x32fc2e['discardSuggestion'](_0x4a3078['head'])),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),_0x3a2524=_0x545c88['model']['createRangeOn'](_0x1a0daf),_0x5a0873['refresh'](),_0x545c88['commands']['get']('imageTypeInline')['refresh'](),_0x545c88['commands']['get']('imageTypeBlock')['refresh'](),_0x2f8255=_0x5a0873['value'],_0x2f8255!=_0x42b334['value'])return _0x5c64cd['isInlineImage'](_0x1a0daf)&&_0x5a0873['shouldConvertImageType'](_0x42b334['value'],_0x1a0daf)?(_0x2261fb({..._0x42b334,'setImageSizes':!0x1}),_0x1a0daf=_0x5c64cd['getClosestSelectedImageElement'](_0x545c88['model']['document']['selection']),void _0x32fc2e['markBlockFormat'](_0x1a0daf,{..._0x1710f7,'commandReversedParams':[{'value':_0x2f8255||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5c64cd['isBlockImage'](_0x1a0daf)?_0x32fc2e['markBlockFormat'](_0x1a0daf,_0x1710f7,[],'imageStylePostApply'):_0x32fc2e['markInlineFormat'](_0x3a2524,_0x1710f7,'imageStylePostApply'));});});for(const _0x274c42 of _0x545c88['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2973b1[_0x274c42['name']]=_0x274c42['title']['toLowerCase']();_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53dcb5])=>{_0x5c64cd['setImageNaturalSizeAttributes'](_0x53dcb5['getContainedElement']());}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e08b1,_0x344045)=>{_0x32fc2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e08b1,{'commandName':_0x344045['commandName'],'commandParams':_0x344045['commandReversedParams']});}),_0x32fc2e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5640b1,_0xd14a6f){if(_0x376c70(_0x5640b1,_0xd14a6f))return[_0x5640b1,_0xd14a6f];if(_0x376c70(_0xd14a6f,_0x5640b1))return[_0xd14a6f,_0x5640b1];return null;});const _0x2f72c3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x376c70(_0x15b0b5,_0x2096a2){const _0x352e61=_0x2f72c3['findIndex'](({type:_0x423e65,subType:_0x5bcc9b})=>_0x15b0b5['type']==_0x423e65&&_0x15b0b5['subType']==_0x5bcc9b),_0x59f408=_0x2f72c3['findIndex'](({type:_0x39ccd9,subType:_0x3ef0eb})=>_0x2096a2['type']==_0x39ccd9&&_0x2096a2['subType']==_0x3ef0eb);if(_0x352e61<0x0||_0x59f408<0x0)return!0x1;const _0x329a82=_0x15b0b5['getFirstRange'](),_0x3c99b4=_0x2096a2['getFirstRange']();if((0x0==_0x352e61||0x1==_0x352e61)&&0x2==_0x59f408&&_0x329a82['isIntersecting'](_0x3c99b4))return!0x0;if(0x2==_0x352e61&&0x3==_0x59f408){const _0x4b6501=_0x32fc2e['_findSuggestions'](_0x329a82,'insertion')['filter'](({suggestion:_0x2f717a,meta:_0x12be6b})=>_0x12be6b['isOwn']&&'convertInlineImageToBlock'==_0x2f717a['subType']);if(_0x4b6501['length']>0x1&&_0x3c99b4['end']['isEqual'](_0x329a82['start']))return!0x0;if(0x1==_0x4b6501['length']&&(_0x329a82['start']['isEqual'](_0x3c99b4['end'])||_0x329a82['end']['isEqual'](_0x3c99b4['start'])))return!0x0;}if(0x3==_0x352e61&&0x3==_0x59f408&&_0x329a82['start']['isBefore'](_0x3c99b4['start'])){const _0x22155c=_0x329a82['end']['nodeAfter'],_0x2d0387=_0x3c99b4['start']['nodeBefore'];return _0x5c64cd['isBlockImage'](_0x22155c)&&_0x22155c===_0x2d0387;}return!0x1;}_0x545c88['model']['document']['registerPostFixer'](()=>{let _0x4ab77a=!0x1;const _0x35ac4e=Array['from'](_0x545c88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x575088,data:_0x2f6ed9}of _0x35ac4e){const {group:_0xf0b4e,type:_0x21e142,subType:_0x451db3,id:_0x5d57f6}=_0x32fc2e['_splitMarkerName'](_0x575088);if('suggestion'==_0xf0b4e&&_0x32fc2e['hasSuggestion'](_0x5d57f6)){if('formatBlock'==_0x21e142&&('imageStylePreApply'==_0x451db3||'imageStylePostApply'==_0x451db3)){const _0x17ef76=_0x32fc2e['getSuggestion'](_0x5d57f6);if(_0x2f6ed9['newRange']){const _0x559ab3=_0x17ef76['getFirstRange']()['getContainedElement']();if(_0x5c64cd['isBlockImage'](_0x559ab3))continue;_0x32fc2e['discardSuggestion'](_0x17ef76),_0x4ab77a=!0x0;}}if('insertion'==_0x21e142&&'imageCaption'==_0x451db3&&!_0x2f6ed9['newRange']){const _0x576c20=_0x32fc2e['getSuggestion'](_0x5d57f6);_0x576c20['next']&&_0x576c20['next']['isInContent']&&(_0x32fc2e['discardSuggestion'](_0x576c20['next']),_0x4ab77a=!0x0);}}}return _0x4ab77a;}),this['_registerLegacyDescription'](_0x2973b1);}['_registerLegacyDescription'](_0x2b9bb6){const _0x1ae453=this['editor'],_0x292f9f=_0x1ae453['locale'];_0x1ae453['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fdd30=>{if('formatBlock'!=_0x3fdd30['type']&&'formatInline'!=_0x3fdd30['type'])return;const {data:_0x39480f}=_0x3fdd30;if(!_0x39480f||'imageStyle'!=_0x39480f['commandName'])return;const _0x3ec338=_0x39480f['commandParams'][0x0]['value'];return _0x49d500('side'===_0x3ec338?o(_0x292f9f,'FORMAT_SIDE_IMAGE'):_0x2b9bb6[_0x3ec338]||_0x3ec338);function _0x49d500(_0x146af3){return{'type':'format','content':o(_0x292f9f,'*Format:*\x20%0',_0x146af3)};}});}}class lt extends _0x4e7f5a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f5eea){super(_0x1f5eea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x845488=this['editor'],_0x2a0cb2=_0x845488['commands']['get']('importWord'),_0x51dda9=_0x845488['commands']['get']('trackChanges');_0x2a0cb2&&(_0x2a0cb2['on']('execute',(_0x3627e5,[,_0x27ae37])=>{this['_trackChangesValueDuringImport']=_0x51dda9['value'],_0x27ae37['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a0cb2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a0cb2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51dda9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x845488['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be6aa,_0x4e0ded){const {suggestions:_0x2ff623}=_0x4e0ded,_0x2740b2=this['editor']['commands']['get']('trackChanges'),_0xc35eaa=_0x2740b2['value'];this['_trackChangesValueDuringImport']!==_0xc35eaa&&(_0x2740b2['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ff623&&_0x2ff623['forEach'](({id:_0x3ca30b,type:_0x12bb5f,author:_0x1a7fc8,created_at:_0x3b0a13})=>{const _0xb770bb={'id':_0x3ca30b,'type':_0x12bb5f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1a7fc8,'createdAt':_0x3b0a13?new Date(_0x3b0a13):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb770bb);});}}class mt extends _0x4e7f5a{['afterInit'](){const _0x2b3e6c=this['editor'],_0x4b14ac=_0x2b3e6c['plugins']['get']('TrackChangesEditing');if(_0x2b3e6c['plugins']['has']('IndentEditing')&&(_0x4b14ac['enableCommand']('indent'),_0x4b14ac['enableCommand']('outdent')),_0x2b3e6c['plugins']['has']('IndentBlock')){for(const _0x3600b4 of['indentBlock','outdentBlock'])_0x4b14ac['enableDefaultAttributesIntegration'](_0x3600b4);}const _0x2f803f=_0x2b3e6c['locale'];_0x4b14ac['registerBlockAttribute']('blockIndent'),_0x4b14ac['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2f803f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f4132=this['editor'],_0x11a322=_0x9f4132['locale'],_0x5662fb=_0x9f4132['plugins']['get']('TrackChangesEditing');_0x5662fb['descriptionFactory']['registerDescriptionCallback'](_0x203cd6=>{if('formatBlock'!=_0x203cd6['type'])return;const {data:_0x3b9b15}=_0x203cd6;if(!_0x3b9b15)return;if('indentBlock'!=_0x3b9b15['commandName']&&'outdentBlock'!=_0x3b9b15['commandName'])return;const _0x26986b=_0x203cd6['getItems']()[0x0],_0x264bbb=_0x5662fb['descriptionFactory']['getItemLabel'](_0x26986b);return'indentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Indent:*\x20%0',_0x264bbb)}:'outdentBlock'==_0x3b9b15['commandName']?{'type':'format','content':o(_0x11a322,'*Outdent:*\x20%0',_0x264bbb)}:void 0x0;});}}class dt extends _0x4e7f5a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class pt extends _0x4e7f5a{['afterInit'](){const _0x19ab43=this['editor'];if(!_0x19ab43['plugins']['has']('LinkEditing'))return;const _0xca4928=_0x19ab43['plugins']['get']('TrackChangesEditing'),_0x2bacb1=_0x19ab43['commands']['get']('link');_0xca4928['enableDefaultAttributesIntegration']('link'),_0xca4928['enableDefaultAttributesIntegration']('unlink'),_0xca4928['registerInlineAttribute']('linkHref');for(const _0x428f1f of _0x2bacb1['manualDecorators'])_0xca4928['registerInlineAttribute'](_0x428f1f['id']),_0xca4928['descriptionFactory']['registerAttributeLabel'](_0x428f1f['id'],'link\x20('+_0x428f1f['label']['toLowerCase']()+')');_0xca4928['descriptionFactory']['registerDescriptionCallback'](_0xfc3f94=>{if('attribute'!=_0xfc3f94['type'])return;const {data:_0x1dc034}=_0xfc3f94;if(!_0x1dc034||'linkHref'!=_0x1dc034['key'])return;const _0x4d55a4=_0x1dc034['newValue'],_0x55efd2=_0x19ab43['locale'];return{'type':'format','content':null==_0x4d55a4?o(_0x55efd2,'*Remove\x20link*'):o(_0x55efd2,'*Set\x20link:*\x20%0','\x22'+_0x4d55a4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1eb177=this['editor'],_0x287fa6=_0x1eb177['locale'];_0x1eb177['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x807284=>{if('formatInline'!=_0x807284['type'])return;const {data:_0x5ed17d}=_0x807284;if(_0x5ed17d){if('link'==_0x5ed17d['commandName']){const _0x5aaf30=_0x5ed17d['commandParams'][0x0];return{'type':'format','content':o(_0x287fa6,'*Set\x20link:*\x20%0','\x22'+_0x5aaf30+'\x22')};}return'unlink'==_0x5ed17d['commandName']?{'type':'format','content':o(_0x287fa6,'*Remove\x20link*')}:void 0x0;}});}}class kt extends _0x4e7f5a{['afterInit'](){const _0x1309aa=this['editor'],_0x59ff69=_0x1309aa['locale'];if(!_0x1309aa['plugins']['has']('LegacyListEditing'))return;const _0x2c2aeb=_0x1309aa['plugins']['get']('TrackChangesEditing'),_0x471f84=_0x1309aa['plugins']['has']('LegacyTodoListEditing');function _0x5b4731(_0x296217){return()=>{const _0x49d9f3=_0x1309aa['model']['document']['selection'],_0x3c548=_0x1309aa['commands']['get'](_0x296217);if(_0x3c548['value'])return void _0x1309aa['execute']('paragraph',{});const _0x3e8ed2=_0x296217['slice'](0x0,-0x4),_0x2f327c=function(_0x2e944e,_0x5df3be,_0x19fae1){let _0xd2d1ad=Array['from'](_0x2e944e)['filter'](_0xc2f100=>function(_0x5eab89,_0x440d3d){return _0x440d3d['checkChild'](_0x5eab89['parent'],'listItem')&&!_0x440d3d['isObject'](_0x5eab89);}(_0xc2f100,_0x19fae1));_0xd2d1ad=_0xd2d1ad['filter'](_0x452cb5=>!_0x452cb5['is']('element','listItem')||_0x452cb5['getAttribute']('listType')!=_0x5df3be);const _0x1316bd=new Set();for(const _0x1dc43b of _0xd2d1ad)_0x1dc43b['is']('element','listItem')?_0x1316bd['add'](Ne(_0x1dc43b)):_0x1316bd['add'](_0x1dc43b);return Array['from'](_0x1316bd);}(_0x49d9f3['getSelectedBlocks'](),_0x3e8ed2,_0x1309aa['model']['schema']);_0x1309aa['model']['change'](()=>{for(const _0x133a26 of _0x2f327c)_0x2c2aeb['markBlockFormat'](_0x133a26,{'commandName':_0x296217,'commandParams':[{'forceValue':!_0x3c548['value']}],'formatGroupId':'blockName'},Se(_0x133a26));});};}function _0x300226(_0x2e71b5){return()=>{const _0x2bb5f2=function(_0xdcade1){let _0x25d474=Array['from'](_0xdcade1);const _0x5eecd6=_0x25d474['findIndex'](_0x35ef66=>'listItem'!=_0x35ef66['name']);return _0x5eecd6>-0x1&&(_0x25d474=_0x25d474['slice'](0x0,_0x5eecd6)),_0x25d474;}(_0x1309aa['model']['document']['selection']['getSelectedBlocks']()),_0x49c988=_0x1309aa['model']['createRange'](_0x1309aa['model']['createPositionAt'](_0x2bb5f2[0x0],'before'),_0x1309aa['model']['createPositionAt'](_0x2bb5f2[_0x2bb5f2['length']-0x1],'end'));_0x1309aa['model']['change'](()=>{_0x2c2aeb['markBlockFormat'](_0x49c988,{'commandName':_0x2e71b5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x579212){const _0x49d090=new Set();for(const _0x1e2c41 of _0x579212){let _0x5b431f=_0x1e2c41['nextSibling'];for(;_0x5b431f&&_0x5b431f['getAttribute']('listIndent')>_0x1e2c41['getAttribute']('listIndent');)_0x49d090['add'](_0x5b431f),_0x5b431f=_0x5b431f['nextSibling'];}return Array['from'](_0x49d090);}(_0x2bb5f2));});};}_0x2c2aeb['enableCommand']('numberedList',_0x5b4731('numberedList')),_0x2c2aeb['enableCommand']('bulletedList',_0x5b4731('bulletedList')),_0x471f84&&_0x2c2aeb['enableCommand']('todoList',_0x5b4731('todoList')),_0x2c2aeb['enableCommand']('indentList',_0x300226('indentList')),_0x2c2aeb['enableCommand']('outdentList',_0x300226('outdentList')),_0x471f84&&_0x2c2aeb['enableCommand']('checkTodoList',()=>{const _0x3254f3=_0x1309aa['commands']['get']('checkTodoList'),_0x1bdcea=Array['from'](_0x3254f3['_selectedElements']);_0x1bdcea['filter'](_0x4cc284=>_0x4cc284['getAttribute']('todoListChecked')!=_0x3254f3['value']),_0x1309aa['model']['change'](()=>{for(const _0x2fa4d0 of _0x1bdcea)_0x2c2aeb['markBlockFormat'](_0x2fa4d0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3254f3['value']}]});});}),_0x2c2aeb['descriptionFactory']['registerElementLabel']('listItem',_0x32e9b9=>o(_0x59ff69,'ELEMENT_LIST_ITEM',_0x32e9b9)),_0x2c2aeb['descriptionFactory']['registerDescriptionCallback'](_0x4e008f=>{if('formatBlock'!=_0x4e008f['type']&&'formatInline'!=_0x4e008f['type'])return;const {data:_0x200cc0}=_0x4e008f;if(_0x200cc0){if('numberedList'==_0x200cc0['commandName']||'bulletedList'==_0x200cc0['commandName']||'todoList'==_0x200cc0['commandName'])switch(_0x200cc0['commandName']['replace']('List','')){case'bulleted':return _0x2c226a(o(_0x59ff69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c226a(o(_0x59ff69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c226a(o(_0x59ff69,'ELEMENT_TODO_LIST'));}if('indentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Indent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x200cc0['commandName'])return{'type':'format','content':o(_0x59ff69,'*Outdent:*\x20%0',o(_0x59ff69,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x200cc0['commandName'])return _0x200cc0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59ff69,'*Check\x20item*')}:{'type':'format','content':o(_0x59ff69,'*Uncheck\x20item*')};}function _0x2c226a(_0x482b82){return{'type':'format','content':o(_0x59ff69,'*Change\x20to:*\x20%0',_0x482b82)};}});}}function Ne(_0x44f599){const _0xd5afc9=_0x44f599['getAttribute']('listIndent');if(0x0==_0xd5afc9)return _0x44f599;let _0x31df08=_0x44f599;for(;_0x44f599['previousSibling']&&_0x44f599['previousSibling']['is']('element','listItem');){const _0x4eec90=_0x44f599['previousSibling']['getAttribute']('listIndent');if(_0x4eec90==_0xd5afc9)_0x31df08=_0x44f599['previousSibling'];else{if(_0x4eec90<_0xd5afc9)break;}_0x44f599=_0x44f599['previousSibling'];}return _0x31df08;}function Se(_0x165192){const _0x3aa831=[];if(_0x165192['is']('element','listItem')&&_0x165192['getAttribute']('listIndent')>0x0){let _0x52df11=_0x165192['nextSibling'];for(;_0x52df11&&'listItem'==_0x52df11['name']&&_0x52df11['getAttribute']('listIndent')==_0x165192['getAttribute']('listIndent');)_0x3aa831['push'](_0x52df11),_0x52df11=_0x52df11['nextSibling'];}return _0x3aa831;}class wt extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b1230=this['editor']['config']['get']('list.properties'),_0x2fdcca=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b1230['styles']&&_0x2fdcca['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b1230['reversed']&&_0x2fdcca['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b1230['startIndex']&&_0x2fdcca['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2fdcca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x306b65,_0x1cf56d={}){const _0x3c970c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x156ce9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c970c['markMultiRangeBlockFormat'](_0x156ce9,{'commandName':'listStyle','commandParams':[{'type':_0x1cf56d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x479389,_0x3a5cdc={}){const _0x4a9df5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab990=this['_getSuggestionBlocks'](_0x5198bb=>_0x5198bb['is']('element','listItem')&&'numbered'===_0x5198bb['getAttribute']('listType'));if(_0x2ab990['length']<0x1)return;const _0x30c8f9=_0x2ab990['map'](_0x4956df=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4956df,'before'),this['editor']['model']['createPositionAt'](_0x4956df,0x0)));this['editor']['model']['change'](()=>{_0x4a9df5['markMultiRangeBlockFormat'](_0x30c8f9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a5cdc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x39f863,_0x1e6b7d={}){const _0x129daa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e771e=this['_getSuggestionBlocks'](_0x1781a3=>_0x1781a3['is']('element','listItem')&&'numbered'===_0x1781a3['getAttribute']('listType'));if(_0x1e771e['length']<0x1)return;const _0x338b33=_0x1e771e['map'](_0x136d2f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x136d2f,'before'),this['editor']['model']['createPositionAt'](_0x136d2f,0x0)));this['editor']['model']['change'](()=>{_0x129daa['markMultiRangeBlockFormat'](_0x338b33,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e6b7d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1775b8){if('formatBlock'!=_0x1775b8['type']&&'formatInline'!=_0x1775b8['type'])return;const _0x5b6cc5=this['editor']['locale'],{data:_0x50c47f}=_0x1775b8;if(!_0x50c47f)return;let _0x6ae46,_0x5a9a3e;switch(_0x50c47f['commandName']){case'listStyle':_0x6ae46='*Change\x20to:*\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,o(_0x5b6cc5,this['_getTranslationKeyForListStyle'](_0x50c47f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6ae46=_0x50c47f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46)};break;case'listStart':_0x6ae46='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a9a3e={'type':'format','content':o(_0x5b6cc5,_0x6ae46,_0x50c47f['commandParams'][0x0]['startIndex'])};}return _0x5a9a3e;}['_getSuggestionBlocksForListStyle'](){const _0x1e4173=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ef018=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1ef018[0x0]?.['is']('element','listItem')&&_0x1ef018['unshift'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1ef018[_0x1ef018['length']-0x1]?.['is']('element','listItem')&&_0x1ef018['push'](..._0x1e4173['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1ef018=[...new Set(_0x1ef018)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1ef018=_0x1ef018['filter'](_0x8c3a6c=>_0x8c3a6c['is']('element','listItem'))),_0x1ef018;}['_getSuggestionBlocks'](_0x208f26){const _0x397e35=this['editor']['plugins']['get']('LegacyListUtils');let _0x460c88=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x208f26)['map'](_0x5cfd99=>{const _0x11c7ce=this['editor']['model']['createPositionAt'](_0x5cfd99,0x0);return[..._0x397e35['getSiblingNodes'](_0x11c7ce,'backward'),..._0x397e35['getSiblingNodes'](_0x11c7ce,'forward')];})['flat']();return _0x460c88=[...new Set(_0x460c88)],_0x460c88;}['_getTranslationKeyForListStyle'](_0x4c8363){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c8363)||'default')['toUpperCase']()+'_LIST_'+_0x4c8363['toUpperCase']()['replace'](/-/g,'_');}}class bt extends _0x4e7f5a{['afterInit'](){const _0xaad2b4=this['editor'];if(!_0xaad2b4['plugins']['has']('MediaEmbedEditing'))return;const _0x5d3261=_0xaad2b4['plugins']['get']('TrackChangesEditing'),_0x47b316=_0xaad2b4['locale'];_0x5d3261['enableCommand']('mediaEmbed'),_0x5d3261['descriptionFactory']['registerElementLabel']('media',_0x305a3b=>o(_0x47b316,'ELEMENT_MEDIA',_0x305a3b)),_0xaad2b4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x58d73e,{writer:_0x572ae4,options:_0x5cdccb})=>{if(_0x5cdccb['showSuggestionHighlights'])return _0x572ae4['createEmptyElement']('div');},'converterPriority':'high'}),_0xaad2b4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x573ea6,_0x1127d4,_0x2c414a)=>{_0x2c414a['options']['showSuggestionHighlights']&&_0x573ea6['stop']();},{'priority':'high'});}}class yt extends _0x4e7f5a{['afterInit'](){const _0x402fd7=this['editor'];_0x402fd7['plugins']['has']('MentionEditing')&&_0x402fd7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class St extends _0x4e7f5a{['afterInit'](){const _0x78b492=this['editor'];if(!_0x78b492['plugins']['has']('MergeFieldsEditing'))return;const _0x108ba5=_0x78b492['plugins']['get']('TrackChangesEditing'),_0x16ee83=_0x78b492['locale'];_0x108ba5['enableCommand']('insertMergeField'),_0x108ba5['enableCommand']('insertMergeFieldBlock'),_0x108ba5['enableCommand']('insertMergeFieldImage'),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeField',_0x4567b3=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0x4567b3)),_0x108ba5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xed6faf=>o(_0x16ee83,'ELEMENT_MERGE_FIELD',_0xed6faf)),_0x108ba5['descriptionFactory']['registerDescriptionCallback'](_0x1b8f60=>{if('insertion'!=_0x1b8f60['type']&&'deletion'!=_0x1b8f60['type'])return;const _0xc87a83=_0x1b8f60['getContainedElement']();if(null==_0xc87a83)return;const _0x3bdd5b=_0x78b492['plugins']['get']('MergeFieldsEditing');let _0x56d9a7;switch(_0x3bdd5b['getMergeFieldType'](_0xc87a83)){case null:return;case'image':{const _0x43d5db=_0x3bdd5b['unwrapAffixes'](_0xc87a83['getAttribute']('src'));_0x56d9a7=_0x3bdd5b['getLabel'](_0x43d5db)||_0x43d5db;break;}default:{const _0x49522e=_0xc87a83['getAttribute']('id');_0x56d9a7=_0x3bdd5b['getLabel'](_0x49522e)||_0x49522e;break;}}return'insertion'==_0x1b8f60['type']?{'type':'insertion','content':o(_0x16ee83,'*Insert:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x16ee83,'*Remove:*\x20%0','\x22'+_0x56d9a7+'\x22\x20'+o(_0x16ee83,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4e7f5a{['afterInit'](){const _0x482ea0=this['editor'],_0x3346f3=_0x482ea0['plugins']['get']('TrackChangesEditing');_0x482ea0['plugins']['has']('MultiLevelList')&&(_0x3346f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3346f3['registerBlockAttribute']('listMarkerStyle'),_0x3346f3['descriptionFactory']['registerDescriptionCallback'](_0x3345ed=>this['handleDescriptions'](_0x3345ed)));}['handleDescriptions'](_0x3f025f){const _0x47d1e8=this['editor']['locale'],{data:_0x158502}=_0x3f025f,_0x129525={'type':'format','content':''};if(_0x158502&&'listMarkerStyle'==_0x158502['key']){if(!_0x158502['oldValue'])return{'type':'format','content':o(_0x47d1e8,'*Set\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['newValue']+')'};if(!_0x158502['newValue']){let _0x43b82b=_0x3f025f['head'];for(;_0x43b82b;){if(_0x43b82b['data']&&'listType'==_0x43b82b['data']['key']&&_0x43b82b['data']['newValue'])return _0x129525;_0x43b82b=_0x43b82b['next'];}return{'type':'format','content':o(_0x47d1e8,'*Remove\x20format:*\x20%0',o(_0x47d1e8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158502['oldValue']+')'};}}}}class It extends _0x4e7f5a{['afterInit'](){const _0x1acc7a=this['editor'];if(!_0x1acc7a['plugins']['has']('PageBreakEditing'))return;_0x1acc7a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x535afd=_0x1acc7a['plugins']['get']('TrackChangesEditing'),_0x45dcd1=_0x1acc7a['locale'];_0x535afd['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e49f8=>o(_0x45dcd1,'ELEMENT_PAGE_BREAK',_0x1e49f8));}}class At extends _0x4e7f5a{['afterInit'](){const _0x4245d6=this['editor'];if(!_0x4245d6['plugins']['has']('Paragraph'))return;const _0x230243=_0x4245d6['locale'],_0x368dfc=_0x4245d6['plugins']['get']('TrackChangesEditing');_0x368dfc['descriptionFactory']['registerElementLabel']('paragraph',_0x5e001f=>o(_0x230243,'ELEMENT_PARAGRAPH',_0x5e001f)),_0x368dfc['enableDefaultAttributesIntegration']('paragraph'),_0x368dfc['enableCommand']('insertParagraph'),_0x4245d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4245d6),{'priority':'highest'}),_0x4245d6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d459e,_0x3abbd7,_0x2a9856)=>{_0x2a9856['options']['showSuggestionHighlights']&&nr(_0x4245d6,{'showActiveMarker':!0x1})(_0x5d459e,_0x3abbd7,_0x2a9856);},{'priority':'highest'});const _0x40767a=_0x368dfc['descriptionFactory'];_0x40767a['registerDescriptionCallback'](_0x1e9513=>{if('insertion'!==_0x1e9513['type'])return;const {start:_0x371b9f,end:_0x3cce9a}=_0x1e9513['getFirstRange']();if(!_0x371b9f['isTouching'](_0x3cce9a)||!_0x371b9f['nodeAfter'])return;const _0x4f4d1c=_0x4245d6['model']['schema'],_0x286dde=_0x371b9f['nodeAfter'];return _0x4f4d1c['isBlock'](_0x286dde)&&!_0x4f4d1c['isLimit'](_0x286dde)&&_0x4f4d1c['checkChild'](_0x286dde,'$text')?{'type':'insertion','content':o(_0x230243,'*Insert:*\x20%0',_0x40767a['getItemLabel'](_0x286dde,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e874e=this['editor'],_0x4c26f9=_0x2e874e['locale'];_0x2e874e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49c884=>{if('formatBlock'!=_0x49c884['type'])return;const {data:_0x2c1cf2}=_0x49c884;return _0x2c1cf2&&'paragraph'==_0x2c1cf2['commandName']?{'type':'format','content':o(_0x4c26f9,'*Change\x20to:*\x20%0',o(_0x4c26f9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35cca7,{showActiveMarker:_0x42f3a4=!0x0}={}){return(_0x4392ec,_0x4e8fc9,_0x3e8e4b)=>{const _0x31cb04=_0x35cca7['plugins']['get']('TrackChangesEditing'),_0x7601dd=_0x4e8fc9['markerRange']['start'],_0x3be934=_0x4e8fc9['markerRange']['end'],_0x96fb9a=_0x35cca7['model']['schema'];if(!_0x7601dd['isTouching'](_0x3be934)||!_0x7601dd['nodeAfter'])return;const _0x2933a3=_0x7601dd['nodeAfter'];if(_0x96fb9a['isBlock'](_0x2933a3)&&!_0x96fb9a['isLimit'](_0x2933a3)&&_0x96fb9a['checkChild'](_0x2933a3,'$text')){if(!_0x3e8e4b['consumable']['consume'](_0x4e8fc9['markerRange'],_0x4392ec['name']))return;const {id:_0x599291,authorId:_0x145235}=_0x31cb04['_splitMarkerName'](_0x4e8fc9['markerName']),_0x5ab47c=_0x3e8e4b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x599291,'data-author-id':_0x145235}),_0x3c06a4=_0x3e8e4b['mapper']['toViewPosition'](_0x3be934);_0x42f3a4&&_0x31cb04['activeMarkers']['includes'](_0x4e8fc9['markerName'])&&_0x3e8e4b['writer']['addClass']('ck-suggestion-marker--active',_0x5ab47c),_0x3e8e4b['writer']['insert'](_0x3c06a4,_0x5ab47c),_0x3e8e4b['mapper']['bindElementToMarker'](_0x5ab47c,_0x4e8fc9['markerName']);}};}class _t extends _0x4e7f5a{['afterInit'](){const _0x5b5de0=this['editor'];_0x5b5de0['commands']['get']('replaceSource')&&_0x5b5de0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class $t extends _0x4e7f5a{['afterInit'](){const _0x754f87=this['editor'];if(!_0x754f87['plugins']['has']('RemoveFormatEditing'))return;_0x754f87['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x187eab=this['editor'];_0x187eab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b100c=>{if('formatBlock'!=_0x1b100c['type']&&'formatInline'!=_0x1b100c['type'])return;const {data:_0x325fb4}=_0x1b100c;return _0x325fb4&&'removeFormat'==_0x325fb4['commandName']?{'type':'format','content':o(_0x187eab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class vt extends _0x4e7f5a{['afterInit'](){const _0x2479b5=this['editor'];if(!_0x2479b5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x517801=_0x2479b5['plugins']['get']('TrackChangesEditing');_0x517801['enableCommand']('goToPreviousRestrictedEditingException'),_0x517801['enableCommand']('goToNextRestrictedEditingException');const _0x1268e6=_0x2479b5['plugins']['get']('RestrictedEditingModeEditing');_0x1268e6['enableCommand']('trackChanges'),_0x1268e6['enableCommand']('acceptSuggestion'),_0x1268e6['enableCommand']('discardSuggestion'),_0x1268e6['enableCommand']('acceptAllSuggestions'),_0x1268e6['enableCommand']('discardAllSuggestions'),_0x1268e6['enableCommand']('acceptSelectedSuggestions'),_0x1268e6['enableCommand']('discardSelectedSuggestions');}}class Ct extends _0x4e7f5a{['afterInit'](){const _0x1cf726=this['editor'];if(!_0x1cf726['plugins']['has']('ShiftEnter'))return;const _0x49cbd4=_0x1cf726['plugins']['get']('TrackChangesEditing');_0x49cbd4['enableCommand']('shiftEnter'),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x1cf726),{'priority':'high'}),_0x1cf726['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe3e1ab,_0x2a1229,_0x2cc127)=>{_0x2cc127['options']['showSuggestionHighlights']&&qe(_0x1cf726,{'showActiveMarker':!0x1})(_0xe3e1ab,_0x2a1229,_0x2cc127);}),_0x49cbd4['descriptionFactory']['registerElementLabel']('softBreak',_0xd8274b=>o(_0x1cf726['locale'],'ELEMENT_LINE_BREAK',_0xd8274b));}}function qe(_0xe9ece8,{showActiveMarker:_0xe53c09=!0x0}={}){return(_0x3d3bac,_0x3a77b7,_0x1f17cb)=>{const _0x240b6c=_0xe9ece8['plugins']['get']('TrackChangesEditing');if(!_0x1f17cb['consumable']['test'](_0x3a77b7['markerRange'],_0x3d3bac['name']))return;const _0x3df01a=_0xe9ece8['model'];for(const _0x312e5b of _0x3a77b7['markerRange']['getItems']()){if(!_0x312e5b['is']('element','softBreak'))continue;const _0x11847f='deletion'==_0x3a77b7['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e42c,authorId:_0x56f6a0}=_0x240b6c['_splitMarkerName'](_0x3a77b7['markerName']),_0x293f31=_0x1f17cb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x11847f,'data-suggestion':_0x35e42c,'data-author-id':_0x56f6a0}),_0x303ea8=_0x1f17cb['mapper']['toViewPosition'](_0x3df01a['createPositionBefore'](_0x312e5b));_0xe53c09&&_0x240b6c['activeMarkers']['includes'](_0x3a77b7['markerName'])&&_0x1f17cb['writer']['addClass']('ck-suggestion-marker--active',_0x293f31),_0x1f17cb['writer']['insert'](_0x303ea8,_0x293f31),_0x1f17cb['mapper']['bindElementToMarker'](_0x293f31,_0x3a77b7['markerName']);}};}class Nt extends _0x4e7f5a{['afterInit'](){const _0x250d88=this['editor'],_0x4a6102=_0x250d88['model'],_0x41d8ef=_0x250d88['locale'];if(!_0x250d88['plugins']['has']('StandardEditingModeEditing'))return;const _0x362187=_0x250d88['plugins']['get']('TrackChangesEditing'),_0xa85a30='restrictedEditingException',_0x2c399e=_0x250d88['commands']['get'](_0xa85a30);_0x362187['enableCommand'](_0xa85a30,(_0x5b3e72,_0x2e0e4b={})=>{const _0x2a0d94=_0x4a6102['document']['selection'];if(_0x2a0d94['isCollapsed'])return void _0x5b3e72(_0x2e0e4b);const _0x1143c6=void 0x0!==_0x2e0e4b['forceValue']?_0x2e0e4b['forceValue']:!_0x2c399e['value'];_0x4a6102['change'](()=>{const _0x3589c1=Array['from'](_0x2a0d94['getRanges']());for(const _0x18f20f of _0x3589c1){const _0x31a902=_0x1143c6?[_0x18f20f]:io(_0xa85a30,_0x18f20f,_0x4a6102);for(const _0x2f114b of _0x31a902)_0x362187['markInlineFormat'](_0x2f114b,{'commandName':_0xa85a30,'commandParams':[{'forceValue':_0x1143c6}]});}});}),_0x362187['descriptionFactory']['registerDescriptionCallback'](_0x3566a2=>{if('formatBlock'!=_0x3566a2['type']&&'formatInline'!=_0x3566a2['type'])return;const {data:_0x3bee97}=_0x3566a2;return _0x3bee97&&_0x3bee97['commandName']==_0xa85a30?_0x3bee97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41d8ef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Dt extends _0x4e7f5a{['afterInit'](){const _0x46d393=this['editor'];if(!_0x46d393['plugins']['has']('Style')||!_0x46d393['plugins']['has']('DataSchema'))return;const _0x4a19af=_0x46d393['plugins']['get']('TrackChangesEditing'),_0x3b157e=_0x46d393['locale'],_0x31cf07=_0x46d393['config']['get']('style')||{},_0x1ceb22=_0x46d393['plugins']['get']('GeneralHtmlSupport'),_0x482fdc=_0x46d393['plugins']['get']('StyleUtils')['normalizeConfig'](_0x46d393['plugins']['get']('DataSchema'),_0x31cf07['definitions']);_0x4a19af['enableDefaultAttributesIntegration']('style');const _0x859cda=new Set();for(const _0x35947d of _0x482fdc['block']){const _0x3c966b=_0x1ceb22['getGhsAttributeNameForElement'](_0x35947d['element']);_0x859cda['add'](_0x3c966b);}const _0x499690=new Set();for(const _0x1a2595 of _0x482fdc['inline']){const _0x1c243d=_0x1ceb22['getGhsAttributeNameForElement'](_0x1a2595['element']);_0x499690['add'](_0x1c243d);for(const _0x27f195 of _0x1a2595['ghsAttributes'])_0x499690['add'](_0x27f195);}for(const _0x1b84c0 of _0x859cda)_0x4a19af['registerBlockAttribute'](_0x1b84c0),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x1b84c0,o(_0x3b157e,'FORMAT_STYLE'));for(const _0x2a17a4 of _0x499690)_0x4a19af['registerInlineAttribute'](_0x2a17a4),_0x4a19af['descriptionFactory']['registerAttributeLabel'](_0x2a17a4,o(_0x3b157e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f44a8=this['editor'],_0x5f1cf4=_0x4f44a8['locale'];_0x4f44a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b29e7=>{if('formatBlock'!=_0x4b29e7['type']&&'formatInline'!=_0x4b29e7['type'])return;const {data:_0x26c3dd}=_0x4b29e7;return _0x26c3dd&&'style'===_0x26c3dd['commandName']?_0x26c3dd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f1cf4,'*Set\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5f1cf4,'*Remove\x20format:*\x20%0',_0x26c3dd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Mt extends _0x4e7f5a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3bc5b9){super(_0x3bc5b9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x20ddad=this['editor'],_0x18e56f=_0x20ddad['model']['document']['selection'];if(!_0x20ddad['plugins']['has']('TableEditing'))return;const _0x11ad97=_0x20ddad['locale'],_0x13b06c=_0x20ddad['plugins']['get']('TrackChangesEditing'),_0x257afd=_0x20ddad['plugins']['get']('TableUtils');_0x13b06c['descriptionFactory']['registerElementLabel']('table',_0x199775=>o(_0x11ad97,'ELEMENT_TABLE',_0x199775)),this['_setupColumnsRowsFixing'](),_0x13b06c['enableCommand']('insertTable'),_0x13b06c['enableCommand']('selectTableRow'),_0x13b06c['enableCommand']('selectTableColumn');for(const _0x46494a of['insertTableRowAbove','insertTableRowBelow']){const _0x378202=_0x20ddad['commands']['get'](_0x46494a);_0x13b06c['enableCommand'](_0x46494a,_0x8f3a02=>{_0x20ddad['model']['change'](_0x3ada26=>{_0x8f3a02();const _0x3d7201='above'===_0x378202['order'],_0x246f05=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x2eed74=_0x257afd['getRowIndexes'](_0x246f05),_0x206677=_0x3d7201?_0x2eed74['first']-0x1:_0x2eed74['last']+0x1,_0x27f139=_0x246f05[0x0]['findAncestor']('table'),_0x68a213=_0x257afd['createTableWalker'](_0x27f139,{'startRow':_0x206677,'endRow':_0x206677}),_0xa13089=Array['from'](_0x68a213)['map'](_0x506cdb=>_0x3ada26['createRangeOn'](_0x506cdb['cell']));_0x13b06c['markMultiRangeInsertion'](_0xa13089,'tableRow');});});}for(const _0x527b62 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c90b0=_0x20ddad['commands']['get'](_0x527b62);_0x13b06c['enableCommand'](_0x527b62,_0x4817c6=>{_0x20ddad['model']['change'](_0x47ac59=>{_0x4817c6();const _0x368c3a='left'===_0x3c90b0['order'],_0x155a49=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x4b271a=_0x257afd['getColumnIndexes'](_0x155a49),_0x2a33f9=_0x368c3a?_0x4b271a['first']-0x1:_0x4b271a['last']+0x1,_0x584bed=_0x155a49[0x0]['findAncestor']('table'),_0x256183=_0x257afd['createTableWalker'](_0x584bed,{'startRow':0x0,'column':_0x2a33f9,'includeAllSlots':!0x1}),_0x192915=Array['from'](_0x256183)['map'](_0x4e8d96=>_0x47ac59['createRangeOn'](_0x4e8d96['cell']));_0x13b06c['markMultiRangeInsertion'](_0x192915,'tableColumn');});});}for(const _0x43a9b6 of['removeTableRow','removeTableColumn']){const _0x1bb684=_0x43a9b6['substr'](0xb),_0x54e8b8=_0x1bb684['toLowerCase'](),_0x56450f=_0x54e8b8['substr'](0x0,0x3)+'span',_0x7d5dde='table'+_0x1bb684,_0x5d9177='min'+_0x1bb684,_0x1fa97f='max'+_0x1bb684;_0x13b06c['enableCommand'](_0x43a9b6,()=>{_0x20ddad['model']['change'](_0x31bcfb=>{const _0x1288dc=_0x257afd['getSelectionAffectedTableCells'](_0x18e56f),_0x3c1eb3=_0x1288dc[0x0]['findAncestor']('table');let _0x3e8d01;if('removeTableRow'==_0x43a9b6){const _0x5f3e3a=_0x257afd['getRowIndexes'](_0x1288dc);_0x3e8d01={'startRow':_0x5f3e3a['first'],'endRow':_0x5f3e3a['last'],'includeAllSlots':!0x0};}else{const _0x43b82a=_0x257afd['getColumnIndexes'](_0x1288dc);_0x3e8d01={'startColumn':_0x43b82a['first'],'endColumn':_0x43b82a['last'],'includeAllSlots':!0x0};}const _0x5ed4c6=_0x257afd['createTableWalker'](_0x3c1eb3,_0x3e8d01),_0x2c74f0=Array['from'](_0x5ed4c6)['map'](({cell:_0x361197})=>_0x361197),_0xd9efa=Oe(_0x2c74f0['filter'](_0x234bbe=>_0x234bbe['hasAttribute'](_0x56450f))),_0x450b58=Oe(_0x2c74f0['filter'](_0x2fa0ec=>!_0x2fa0ec['hasAttribute'](_0x56450f)))['map'](_0x2b3a0b=>_0x31bcfb['createRangeOn'](_0x2b3a0b)),_0x45f974=_0x13b06c['markMultiRangeDeletion'](_0x450b58,_0x7d5dde);if(_0x45f974&&('tableRow'==_0x45f974['subType']||'tableColumn'==_0x45f974['subType'])){const _0x42bec5=this['_getSuggestionCoords'](_0x45f974);for(const _0x162d3e of _0xd9efa){const _0x465aab=_0x31bcfb['createRangeOn'](_0x162d3e),_0xe96d0e=_0x257afd['getCellLocation'](_0x162d3e),_0x1415f6=_0x162d3e['getAttribute'](_0x56450f)-0x1,_0x45b912=_0x42bec5[_0x5d9177],_0x29d82e=_0x42bec5[_0x1fa97f];_0x45b912<=_0xe96d0e[_0x54e8b8]&&_0xe96d0e[_0x54e8b8]+_0x1415f6<=_0x29d82e&&_0x45f974['addRange'](_0x465aab);}}});});}function _0x5d16f5(_0x403980){const _0x17ee4f=Array['from'](_0x18e56f['getRanges']())['map'](_0x21e51c=>_0x3d40b9['fromRange'](_0x21e51c));_0x20ddad['model']['change'](_0x268214=>{const _0x246ac8=_0x268214['batch'];_0x403980=_0x403980['filter'](_0x3189dc=>'$graveyard'!=_0x3189dc['root']['rootName']),_0x268214['setSelection'](_0x403980),_0x20ddad['commands']['get']('removeTableRow')['refresh'](),_0x20ddad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x20ddad['model']['enqueueChange'](()=>{_0x20ddad['model']['enqueueChange'](_0x246ac8,_0x3333b2=>{const _0x3012f8=_0x17ee4f['filter'](_0x12c68e=>'$graveyard'!=_0x12c68e['root']['rootName']);_0x3012f8['length']>0x0&&_0x3333b2['setSelection'](_0x3012f8);for(const _0x508355 of _0x17ee4f)_0x508355['detach']();});});});}function _0x3cd004(_0xaf92f5){_0x20ddad['model']['change'](_0x2687d2=>{const _0x5cd304=Array['from'](_0x18e56f['getRanges']())['map'](_0x51332f=>_0x3d40b9['fromRange'](_0x51332f)),_0x30308e=[];for(const _0x26f811 of _0xaf92f5)for(const _0x3db798 of _0x26f811['getItems']({'shallow':!0x0}))_0x30308e['push'](_0x3db798);for(const _0x1c5309 of _0x30308e)'$graveyard'!=_0x1c5309['root']['rootName']&&(_0x2687d2['setSelection'](_0x2687d2['createPositionAt'](_0x1c5309,0x0)),_0x20ddad['commands']['get']('removeTableColumn')['refresh'](),_0x20ddad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x36e06f=_0x5cd304['filter'](_0x4f632d=>'$graveyard'!=_0x4f632d['root']['rootName']);_0x36e06f['length']>0x0&&_0x2687d2['setSelection'](_0x36e06f);for(const _0x10e780 of _0x5cd304)_0x10e780['detach']();});}function _0x30377f(_0x31fbfe,_0x53e970){return _0x53e970['every'](_0x12393b=>_0x31fbfe['some'](_0x12fdcc=>_0x12fdcc['end']['isEqual'](_0x12393b['start'])||_0x12393b['end']['isEqual'](_0x12fdcc['start'])));}function _0xcc5285(_0x1d5eef,_0x576a40){return!_0x1d5eef['some'](_0x35e318=>_0x576a40['some'](_0x379a3c=>_0x35e318['isIntersecting'](_0x379a3c)))&&_0x1d5eef['some'](_0x2fbf1=>_0x576a40['some'](_0x5b7eb0=>_0x2fbf1['end']['isTouching'](_0x5b7eb0['start'])));}_0x20ddad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a08e3,_0x344409,_0xc30721)=>{if(!_0xc30721['options']['showSuggestionHighlights'])return;const _0x249067=_0x344409['item'];if(!_0x249067||!_0x249067['is']('element','tableCell'))return;const _0x22abbb=_0xc30721['mapper']['toViewElement'](_0x249067);if(_0x22abbb){const {id:_0x300a2d,authorId:_0x286b15}=_0x13b06c['_splitMarkerName'](_0x344409['markerName']);_0x4b3917(_0x22abbb,_0xc30721['writer'],(_0x43ad5b,_0x387492,_0x592d0b)=>{_0x592d0b['addClass'](_0x53f15a(_0x387492['classes']),_0x43ad5b),_0x592d0b['setAttribute']('data-suggestion-id',_0x300a2d,_0x43ad5b),_0x592d0b['setAttribute']('data-author-id',_0x286b15,_0x43ad5b);},(_0x117cc2,_0x922fd7,_0x2b0337)=>{_0x2b0337['removeClass'](_0x53f15a(_0x922fd7['classes']),_0x117cc2),_0x2b0337['removeAttribute']('data-suggestion-id',_0x117cc2),_0x2b0337['removeAttribute']('data-author-id',_0x117cc2);});}},{'priority':'highest'}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x266f61=>{if('insertion'!=_0x266f61['type']&&'deletion'!=_0x266f61['type'])return;const _0x19ec24=_0x266f61['getContainedElement']();if(null!=_0x19ec24&&_0x19ec24['is']('element','table')){if('insertion'==_0x266f61['type']){const _0x12ea53=_0x266f61['getItems']()['filter'](_0x3e23dc=>_0x3e23dc['is']('$textProxy'))['map'](_0x286245=>_0x286245['data']);if(_0x12ea53['length'])return{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12ea53['join']('\x20')+'\x22'))};}if('deletion'==_0x266f61['type']){const _0x46e797=_0x266f61['getItems']()['filter'](_0x4c78a8=>_0x4c78a8['is']('$textProxy'))['map'](_0x3f8af3=>_0x3f8af3['data']);if(_0x46e797['length'])return{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e797['join']('\x20')+'\x22'))};}}}),_0x13b06c['descriptionFactory']['registerDescriptionCallback'](_0x17cf2e=>{if('tableRow'==_0x17cf2e['subType']){const _0x179610=_0x17cf2e['getItems']()['filter'](_0x10b543=>_0x10b543['is']('$textProxy'))['map'](_0x37aa56=>_0x37aa56['data']),_0x5c9809=this['_getSuggestionCoords'](_0x17cf2e),_0x107532=_0x5c9809['maxRow']-_0x5c9809['minRow']+0x1;if('insertion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};if('deletion'==_0x17cf2e['type'])return _0x179610['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x107532,'\x22'+_0x179610['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_ROW',_0x107532))};}if('tableColumn'==_0x17cf2e['subType']){const _0x140e42=_0x17cf2e['getItems']()['filter'](_0xb4db79=>_0xb4db79['is']('$textProxy'))['map'](_0x3f8720=>_0x3f8720['data']),_0x258a21=this['_getSuggestionCoords'](_0x17cf2e),_0xdee3ca=_0x258a21['maxColumn']-_0x258a21['minColumn']+0x1;if('insertion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11ad97,'*Insert:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};if('deletion'==_0x17cf2e['type'])return _0x140e42['length']?{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdee3ca,'\x22'+_0x140e42['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11ad97,'*Remove:*\x20%0',o(_0x11ad97,'ELEMENT_TABLE_COLUMN',_0xdee3ca))};}}),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d16f5),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cd004),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x30377f),_0x13b06c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xcc5285),_0x13b06c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xcc5285);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c833e=this['editor'],_0x3948e4=_0x5c833e['model']['document']['selection'];return(_0x42ad41,_0x4a57ee)=>{_0x5c833e['model']['change'](_0x273c5c=>{const {commandName:_0x44f93a,commandParams:_0x498c0f}=_0x4a57ee;let _0x18da4a=_0x42ad41[0x0]['end']['nodeBefore'];_0x498c0f&&_0x498c0f[0x0]&&!0x1===_0x498c0f[0x0]['forceValue']&&(_0x18da4a=_0x42ad41[0x0]['start']['nodeAfter']);const _0x2a9426=_0x273c5c['createRangeIn'](_0x18da4a);if('$graveyard'==_0x2a9426['root']['rootName'])return;const _0x2afbde=Array['from'](_0x3948e4['getRanges']())['map'](_0x36d27d=>_0x3d40b9['fromRange'](_0x36d27d));_0x273c5c['setSelection'](_0x2a9426),_0x5c833e['commands']['get'](_0x44f93a)['refresh'](),_0x498c0f['push']({'forceDefaultExecution':!0x0}),_0x5c833e['execute'](_0x44f93a,..._0x498c0f);const _0x3010d7=_0x2afbde['filter'](_0x1d0821=>'$graveyard'!=_0x1d0821['root']['rootName']);_0x3010d7['length']>0x0&&_0x273c5c['setSelection'](_0x3010d7);for(const _0x471be8 of _0x2afbde)_0x471be8['detach']();});};}['_getCoordsForCells'](_0x37134f){const _0x4aeed6=this['editor']['plugins']['get']('TableUtils');let _0x318acc=Number['MAX_SAFE_INTEGER'],_0x1c24d7=Number['MIN_SAFE_INTEGER'],_0x4d5025=Number['MAX_SAFE_INTEGER'],_0x450b33=Number['MIN_SAFE_INTEGER'];for(const _0xb45104 of _0x37134f){if('$graveyard'==_0xb45104['root']['rootName'])continue;const {row:_0x530145,column:_0x197f42}=_0x4aeed6['getCellLocation'](_0xb45104),_0x2d13a1=_0xb45104['hasAttribute']('rowspan')?_0xb45104['getAttribute']('rowspan')-0x1:0x0,_0x138b3f=_0xb45104['hasAttribute']('colspan')?_0xb45104['getAttribute']('colspan')-0x1:0x0;_0x318acc=_0x530145<_0x318acc?_0x530145:_0x318acc,_0x1c24d7=_0x530145+_0x2d13a1>_0x1c24d7?_0x530145+_0x2d13a1:_0x1c24d7,_0x4d5025=_0x197f42<_0x4d5025?_0x197f42:_0x4d5025,_0x450b33=_0x197f42+_0x138b3f>_0x450b33?_0x197f42+_0x138b3f:_0x450b33;}return{'minRow':_0x318acc,'maxRow':_0x1c24d7,'minColumn':_0x4d5025,'maxColumn':_0x450b33};}['_setupColumnsRowsFixing'](){const _0x46dbc5=this['editor'],_0xe2905c=_0x46dbc5['plugins']['get']('TrackChangesEditing'),_0x4829cf=_0x46dbc5['plugins']['get']('TableUtils');_0x46dbc5['model']['document']['on']('change:data',()=>{const _0x19e8d7=Array['from'](_0x46dbc5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a6bca,data:_0x36cc1c}of _0x19e8d7){const {group:_0x185887,id:_0x52ff2a,subType:_0x285f50}=_0xe2905c['_splitMarkerName'](_0x2a6bca);if('suggestion'!=_0x185887)continue;if(null!=_0x36cc1c['oldRange'])continue;const _0x3f20fe=_0xe2905c['getSuggestion'](_0x52ff2a);this['_tablePostFixingSubtypes']['includes'](_0x285f50)&&this['_tableSuggestions']['add'](_0x3f20fe);}},{'priority':'low'});const _0x5adb02=(_0x58e760,_0x37a789)=>{let _0x527487=!0x1;const _0x5f1534=_0x37a789['createRangeOn'](_0x58e760),_0x129d0a=_0x58e760['findAncestor']('table'),_0x1bea31=_0x4829cf['getCellLocation'](_0x58e760);for(const _0x56410d of this['_tableSuggestions']){const _0x1edd08=_0x56410d['subType'],_0x4e61ec=_0x1edd08['startsWith']('tablePaste'),_0x9a060d=_0x1edd08['substr'](_0x4e61ec?0xa:0x5),_0x4a80ec=_0x9a060d['toLowerCase'](),_0x26453f=_0x4a80ec['substr'](0x0,0x3)+'span',_0x283f4a='min'+_0x9a060d,_0x38e032='max'+_0x9a060d;if(!_0x56410d['isInContent'])continue;if(_0x129d0a!=_0x56410d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56410d['isIntersectingWithRange'](_0x5f1534))continue;const _0x2d39dc=_0x58e760['hasAttribute'](_0x26453f)?_0x58e760['getAttribute'](_0x26453f)-0x1:0x0,_0x3c75b7=this['_getSuggestionCoords'](_0x56410d),_0x59e68d=_0x3c75b7[_0x283f4a],_0x1d5662=_0x3c75b7[_0x38e032];_0x59e68d<=_0x1bea31[_0x4a80ec]&&_0x1bea31[_0x4a80ec]+_0x2d39dc<=_0x1d5662&&(_0x56410d['addRange'](_0x5f1534),_0x527487=!0x0);}return _0x527487;};_0x46dbc5['model']['document']['registerPostFixer'](_0x2d9b62=>{let _0x1f7f43=!0x1;for(const _0xe570c6 of _0x46dbc5['model']['document']['differ']['getChanges']())if('insert'==_0xe570c6['type']){if('tableRow'==_0xe570c6['name']){for(const _0x1e1a0e of _0xe570c6['position']['nodeAfter']['getChildren']())_0x1f7f43=_0x1f7f43||_0x5adb02(_0x1e1a0e,_0x2d9b62);}else'tableCell'==_0xe570c6['name']&&(_0x1f7f43=_0x1f7f43||_0x5adb02(_0xe570c6['position']['nodeAfter'],_0x2d9b62));}return _0x1f7f43;});}['_getSuggestionCoords'](_0xf25af0){return this['_getCoordsForCells'](_0xf25af0['getRanges']()['map'](_0x77136d=>_0x77136d['start']['nodeAfter']));}}function Oe(_0x42935c){return Array['from'](new Set(_0x42935c)['values']());}class Bt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1bf37d=this['editor'],_0x3e1fbd=_0x1bf37d['model']['document']['selection'],_0x37d6d9=_0x1bf37d['locale'];if(!_0x1bf37d['plugins']['has']('TableEditing'))return;const _0x3d69f0=_0x1bf37d['plugins']['get']('TrackChangesEditing'),_0x17e9fa=_0x1bf37d['plugins']['get']('TableUtils'),_0x42e690=_0x1bf37d['plugins']['get'](Mt);_0x42e690['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d69f0['enableCommand']('mergeTableCells',()=>{const _0x399e54=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection']);_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat'](_0x399e54,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1bf37d['commands']['get']('mergeTableCells')['on']('execute',(_0x4fe423,_0x15ff3e)=>{_0x1bf37d['commands']['get']('trackChanges')['value']&&(_0x15ff3e['length']>0x0&&_0x15ff3e[_0x15ff3e['length']-0x1]&&_0x15ff3e[_0x15ff3e['length']-0x1]['forceDefaultExecution']||_0x3d69f0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4fe423['stop']());},{'priority':'highest'});for(const _0x25a1a1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ece94=_0x1bf37d['commands']['get'](_0x25a1a1);_0x3d69f0['enableCommand'](_0x25a1a1,()=>{const _0x1f0468=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x194b56=>_0x194b56['is']('element','tableCell')),_0x196f9f=_0x1ece94['value'];_0x1bf37d['model']['change'](()=>{_0x3d69f0['markMultiRangeBlockFormat']([_0x1f0468,_0x196f9f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x408e1b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5b18bb=_0x1bf37d['commands']['get'](_0x408e1b);_0x3d69f0['enableCommand'](_0x408e1b,()=>{const _0x3b9f4b=_0x17e9fa['getSelectionAffectedTableCells'](_0x1bf37d['model']['document']['selection'])[0x0],_0x2541e1=_0x3b9f4b['findAncestor']('table'),{column:_0x57f9ad,row:_0x57cb66}=_0x17e9fa['getCellLocation'](_0x3b9f4b);let _0x416f9f=[];if('horizontally'==_0x5b18bb['direction']){const _0x2e3662=_0x17e9fa['createTableWalker'](_0x2541e1,{'startRow':_0x57cb66,'endRow':_0x57cb66,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0x2e3662)['map'](_0x3bfa26=>_0x3bfa26['cell']);}else{const _0xafdc97=_0x17e9fa['createTableWalker'](_0x2541e1,{'column':_0x57f9ad,'includeAllSlots':!0x0});_0x416f9f=Array['from'](_0xafdc97)['map'](_0x1a0225=>_0x1a0225['cell']);}_0x1bf37d['model']['change'](_0x1250fb=>{_0x3d69f0['markBlockFormat'](_0x1250fb['createRangeOn'](_0x3b9f4b),{'commandName':_0x408e1b,'commandParams':[]},_0x416f9f,_0x408e1b);});});}_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x5b1d30=>{if('formatBlock'!=_0x5b1d30['type']&&'formatInline'!=_0x5b1d30['type'])return;const {data:_0x38dc14}=_0x5b1d30;return _0x38dc14&&'mergeTableCells'==_0x38dc14['commandName']?{'type':'format','content':o(_0x37d6d9,'*Merge\x20cells*')}:void 0x0;}),_0x3d69f0['descriptionFactory']['registerDescriptionCallback'](_0x280d75=>{if('formatBlock'!=_0x280d75['type']&&'formatInline'!=_0x280d75['type'])return;const {data:_0x4034aa}=_0x280d75;return _0x4034aa?'splitTableCellVertically'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4034aa['commandName']?{'type':'format','content':o(_0x37d6d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x389580=_0x42e690['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a0715 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a0715,'accept',_0x389580);for(const _0x2fdf5a of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fdf5a,'accept',_0x389580);_0x3d69f0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3941ca=>{_0x1bf37d['model']['change'](_0x92bdd4=>{const _0x4d466d=Array['from'](_0x3e1fbd['getRanges']())['map'](_0xf82889=>_0x3d40b9['fromRange'](_0xf82889));_0x92bdd4['setSelection'](_0x3941ca),_0x1bf37d['commands']['get']('mergeTableCells')['refresh'](),_0x1bf37d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x143b36=_0x4d466d['filter'](_0x5aad98=>'$graveyard'!=_0x5aad98['root']['rootName']);_0x143b36['length']>0x0&&_0x92bdd4['setSelection'](_0x143b36);for(const _0x103b49 of _0x4d466d)_0x103b49['detach']();});});for(const _0x5076ff of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c93a4=_0x1bf37d['commands']['get'](_0x5076ff);_0x3c93a4['on']('set:isEnabled',(_0x53bb13,_0x233056,_0x1835ee)=>{if(_0x1835ee){const _0x4ea799=_0x1bf37d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c6d03=>_0x3c6d03['is']('element','tableCell'));this['_areMergableCells'](_0x3c93a4['value'],_0x4ea799)||(_0x53bb13['return']=!0x1,_0x53bb13['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfc4f9f=this['editor']['commands']['get']('mergeTableCells'),_0x38a46c=this['editor']['plugins']['get']('TableUtils');if(!_0xfc4f9f['isEnabled'])return!0x1;const _0x57fbbd=_0x38a46c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a50ac of _0x57fbbd)for(const _0x313d95 of _0x57fbbd)if(_0x1a50ac!=_0x313d95&&!this['_areMergableCells'](_0x1a50ac,_0x313d95))return!0x1;return!0x0;}['_areMergableCells'](_0x583f31,_0x29d8a9){const _0x1da8a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b760=this['editor']['model']['createRangeOn'](_0x583f31),_0x243113=this['editor']['model']['createRangeOn'](_0x29d8a9),_0x2d7f74=new Set(),_0x867cd8=new Set();for(const _0x51c01f of _0x1da8a8['getSuggestions']())if(('insertion'==_0x51c01f['type']||'deletion'==_0x51c01f['type']||'mergeTableCells'==_0x51c01f['subType'])&&_0x51c01f['isInContent']){for(const _0x1d65c6 of _0x51c01f['getRanges']())_0x1d65c6['containsRange'](_0x11b760,!0x0)&&_0x2d7f74['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']),_0x1d65c6['containsRange'](_0x243113,!0x0)&&_0x867cd8['add'](_0x51c01f['type']+':'+_0x51c01f['author']['id']);}if(_0x2d7f74['size']!=_0x867cd8['size'])return!0x1;for(const _0x540749 of _0x2d7f74)if(!_0x867cd8['has'](_0x540749))return!0x1;return!0x0;}}class Tt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x3e8db8=this['editor'];if(!_0x3e8db8['plugins']['has']('TableEditing'))return;const _0x29b8fc=_0x3e8db8['locale'],_0x28762a=_0x3e8db8['plugins']['get']('TrackChangesEditing');_0x28762a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28762a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28762a['registerBlockAttribute']('headingRows'),_0x28762a['registerBlockAttribute']('headingColumns'),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x29b8fc,'FORMAT_HEADER_ROW')),_0x28762a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x29b8fc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54aaf5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345321=this['editor']['plugins']['get']('TableUtils'),_0x5f22a7=this['editor']['plugins']['get'](Mt)['_acceptFormatSuggestionCallbackFactory']();function _0x2ea2b0({showActiveMarker:_0x584a46=!0x0,setDataAttribute:_0x53398a=!0x0}={}){return(_0x4222b1,_0x468223,_0x5177e1)=>{const {type:_0x34b0b5,id:_0x38ace7}=_0x54aaf5['_splitMarkerName'](_0x468223['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x38ace7))return;const _0x229e6e=_0x54aaf5['getSuggestion'](_0x38ace7),_0x17a356=_0x229e6e['data'];if('formatBlock'!=_0x229e6e['type']||!_0x17a356||'setTableColumnHeader'!=_0x17a356['commandName'])return;if(_0x468223['item'])return void _0x4222b1['stop']();if(!_0x5177e1['consumable']['consume'](_0x468223['markerRange'],_0x4222b1['name']))return;const _0x58dac0=_0x468223['markerRange']['start']['nodeAfter'],_0x41fd86=_0x468223['markerRange']['end']['nodeBefore'],_0x77232b=_0x58dac0['parent']['parent'],{column:_0x1e2d46}=_0x345321['getCellLocation'](_0x58dac0),{column:_0x15e1d6}=_0x345321['getCellLocation'](_0x41fd86);for(let _0x2c5407=_0x1e2d46;_0x2c5407<=_0x15e1d6;_0x2c5407++){const _0x9f84a=_0x345321['createTableWalker'](_0x77232b,{'column':_0x2c5407,'includeAllSlots':!0x1});for(const _0x4271e1 of _0x9f84a){const _0x56a30b=_0x4271e1['cell'],_0xed8834=_0x5177e1['mapper']['toViewElement'](_0x56a30b);_0x5177e1['writer']['addClass']('ck-suggestion-marker-'+_0x34b0b5,_0xed8834),_0x53398a&&_0x5177e1['writer']['setAttribute']('data-suggestion',_0x38ace7,_0xed8834),_0x5177e1['mapper']['bindElementToMarker'](_0xed8834,_0x468223['markerName']),_0x584a46&&(_0x54aaf5['activeMarkers']['includes'](_0x468223['markerName'])?_0x5177e1['writer']['addClass']('ck-suggestion-marker--active',_0xed8834):_0x5177e1['writer']['removeClass']('ck-suggestion-marker--active',_0xed8834));}}};}_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5f22a7),_0x54aaf5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5f22a7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2ea2b0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15aa93,_0x340802,_0x1c99c8)=>{_0x1c99c8['options']['showSuggestionHighlights']&&_0x2ea2b0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x15aa93,_0x340802,_0x1c99c8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4320b3,_0xe2fccf,_0x412363)=>{const {type:_0x287cc4,id:_0x433a9e}=_0x54aaf5['_splitMarkerName'](_0xe2fccf['markerName']);if(!_0x54aaf5['hasSuggestion'](_0x433a9e))return;const _0x126601=_0x54aaf5['getSuggestion'](_0x433a9e),_0x9461fc=_0x126601['data'];if('formatBlock'!=_0x126601['type']||!_0x9461fc||'setTableColumnHeader'!=_0x9461fc['commandName'])return;const _0xe27c00=_0x412363['mapper']['markerNameToElements'](_0xe2fccf['markerName']);if(_0xe27c00){for(const _0x1ac57d of _0xe27c00)_0x412363['writer']['removeClass']('ck-suggestion-marker-'+_0x287cc4,_0x1ac57d),_0x412363['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac57d),_0x412363['writer']['removeAttribute']('data-suggestion',_0x1ac57d),_0x412363['mapper']['unbindElementFromMarkerName'](_0x1ac57d,_0xe2fccf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e773b=this['editor'],_0x315969=_0x3e773b['locale'];function _0x5065db(_0x4ec065){return{'type':'format','content':o(_0x315969,'*Format:*\x20%0',_0x4ec065)};}_0x3e773b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e93ed=>{if('formatBlock'!=_0x5e93ed['type'])return;const {data:_0x363994}=_0x5e93ed;if(_0x363994){if('setTableRowHeader'==_0x363994['commandName']){const _0x51b0d1=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x51b0d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x363994['commandName']){const _0x3f6bde=_0x363994['commandParams'][0x0]['forceValue'];return _0x5065db(o(_0x315969,_0x3f6bde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ot extends _0x4e7f5a{['afterInit'](){const _0x3298a5=this['editor'],_0x632ac5=_0x3298a5['locale'],_0x550b51=_0x3298a5['plugins']['get']('TrackChangesEditing');function _0x99770(_0x32ea36){return{'type':'format','content':''+o(_0x632ac5,'*Set\x20table\x20type:*\x20%0',_0x32ea36)};}_0x3298a5['plugins']['has']('TableLayout')&&(_0x550b51['enableCommand']('insertTableLayout'),_0x550b51['enableDefaultAttributesIntegration']('tableType'),_0x550b51['registerBlockAttribute']('tableType'),_0x550b51['descriptionFactory']['registerElementLabel'](_0x373f1a=>_0x373f1a['is']('element','table')&&'layout'===_0x373f1a['getAttribute']('tableType'),_0x13286c=>o(_0x632ac5,'ELEMENT_LAYOUT_TABLE',_0x13286c)),_0x550b51['descriptionFactory']['registerDescriptionCallback'](_0x380349=>{const {data:_0x2fbe40}=_0x380349;if(_0x2fbe40&&'tableType'==_0x2fbe40['key'])switch(_0x2fbe40['newValue']){case'layout':return _0x99770(o(_0x632ac5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x99770(o(_0x632ac5,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x30ccd7=>[_0x30ccd7,null]));class xt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x5a0650=this['editor'];if(!_0x5a0650['plugins']['has']('TableClipboard'))return;const _0x201215=_0x5a0650['plugins']['get']('TrackChangesEditing'),_0x2449ed=_0x5a0650['plugins']['get']('TableUtils'),_0x9df8b8=_0x5a0650['plugins']['get'](Mt),_0x801757=_0x5a0650['plugins']['get']('TableClipboard'),_0x54661d=_0x5a0650['plugins']['get']('TableSelection'),_0x3c652b=_0x5a0650['plugins']['get'](_0x1d326f);_0x9df8b8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a0650['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a0650['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ea5cb=null,_0x394944=!0x1;_0x3c652b['on']('contentInsertion',(_0xaad373,_0x1797d5)=>{_0x394944='paste'===_0x1797d5['method'];}),_0x5a0650['model']['on']('insertContent',(_0x2ae1dc,_0x43364f)=>{if(!_0x394944&&null===_0x54661d['getSelectedTableCells']())return;const [_0x50c0fc,_0x3225b7]=_0x43364f,_0x4af0c3=_0x43364f[_0x43364f['length']-0x1];_0x4af0c3&&_0x4af0c3['forceDefaultExecution']||_0x201215['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ac806,_0x339db2,_0x4bf58f,_0x4ff7d4,_0x57be21){if(_0x339db2&&!_0x339db2['is']('documentSelection'))return!0x1;const _0xdf8e12=_0x57be21['getTableIfOnlyTableInContent'](_0x3ac806,_0x4bf58f);if(!_0xdf8e12||!Ge(_0xdf8e12,void 0x0,_0x4ff7d4))return!0x1;const _0x5e4fca=_0x4ff7d4['getSelectionAffectedTableCells'](_0x4bf58f['document']['selection']);if(!_0x5e4fca['length'])return!0x1;const _0x56901b=_0x5e4fca[0x0]['findAncestor']('table'),_0xe86ca7=_0x4ff7d4['getRowIndexes'](_0x5e4fca),_0x513df7=_0x4ff7d4['getColumnIndexes'](_0x5e4fca),_0x1fa9e5={'startRow':_0xe86ca7['first'],'endRow':_0xe86ca7['last'],'startColumn':_0x513df7['first'],'endColumn':_0x513df7['last']};return 0x1==_0x5e4fca['length']&&(_0x1fa9e5['endRow']+=_0x4ff7d4['getRows'](_0xdf8e12)-0x1,_0x1fa9e5['endColumn']+=_0x4ff7d4['getColumns'](_0xdf8e12)-0x1),Ge(_0x56901b,_0x1fa9e5,_0x4ff7d4);}(_0x50c0fc,_0x3225b7,_0x5a0650['model'],_0x2449ed,_0x801757)&&(_0x2ae1dc['stop'](),_0x1ea5cb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a0650['model']['change'](()=>{_0x5a0650['model']['insertContent'](_0x43364f[0x0],_0x43364f[0x1],_0x43364f[0x2],{'forceDefaultExecution':!0x0});const _0x35a8be=_0x3caa75(),{rowInsertionRanges:_0x4c861e,columnInsertionRanges:_0x4b8025,insertionRanges:_0x4ffda9,deletionRanges:_0x723508,cells:_0x3cb2e3}=_0x1ea5cb;_0x4c861e['length']&&_0x201215['markMultiRangeInsertion'](_0x4c861e,'tablePasteRow',{'tablePasteChainId':_0x35a8be}),_0x4b8025['length']&&_0x201215['markMultiRangeInsertion'](_0x4b8025,'tablePasteColumn',{'tablePasteChainId':_0x35a8be}),_0x4ffda9['length']&&(_0x201215['markMultiRangeInsertion'](_0x4ffda9,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x4ffda9['forEach'](_0xe517dc=>_0xe517dc['detach']?.())),_0x723508['length']&&(_0x201215['markMultiRangeDeletion'](_0x723508,'tablePaste',{'tablePasteChainId':_0x35a8be,'skipNestingCheck':!0x0}),_0x723508['forEach'](_0x26e277=>_0x26e277['detach']?.()));const _0x58f90b=_0x201215['markMultiRangeBlockFormat'](_0x3cb2e3['map'](({element:_0x48aae3})=>_0x48aae3),{'formatGroupId':_0x3caa75()},[],'tablePasteCell',{'tablePasteChainId':_0x35a8be});if(_0x58f90b){const _0x415ae9=_0x58f90b['getMarkers'](),_0x1c1de2=[];for(const {element:_0x5f0349,attributes:_0x24f014}of _0x3cb2e3){if(!_0x24f014)continue;const _0x575216=_0x5a0650['model']['createRangeOn'](_0x5f0349),_0x25a601=_0x415ae9['find'](_0x50d1cd=>_0x50d1cd['getRange']()['isEqual'](_0x575216));_0x25a601&&_0x1c1de2['push']([_0x25a601['name'],_0x24f014]);}_0x1c1de2['length']&&_0x58f90b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c1de2));}_0x1ea5cb=null;}));},{'priority':_0x35714c['high']+0xa}),_0x3c652b['on']('contentInsertion',()=>{_0x394944=!0x1;},{'priority':'lowest'}),_0x5a0650['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33c0ce,_0x595169)=>{const [_0x2032de,_0x5e51bd,,_0xe29169]=_0x595169;if(!_0x1ea5cb)return;_0x33c0ce['stop']();const _0x529c80=_0x2032de['cell'],_0x15a91c=_0x5e51bd,_0x509294=ze(_0x529c80),_0xa63789=ze(_0x15a91c);_0x33c0ce['return']=_0x529c80;let _0x262702=null,_0x180469=null;if(_0xa63789||_0x509294){if(_0x509294&&!_0xa63789){_0xe29169['remove'](_0x529c80['getChild'](0x0));for(const _0x145ab2 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x145ab2,_0x529c80,'end');const _0x505829=_0x1ea5cb['rowInsertionIndexes']['includes'](_0x2032de['row']),_0x1cee17=_0x1ea5cb['columnInsertionIndexes']['includes'](_0x2032de['column']);_0x505829||_0x1cee17||(_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeIn'](_0x529c80)));}else _0xa63789&&!_0x509294&&(_0x180469=_0xe29169['createRangeIn'](_0x529c80));}else{const _0x263c2d=_0xe29169['createElement']('tableCellSuggestion'),_0x3965e9=_0xe29169['createElement']('tableCellSuggestion');_0xe29169['wrap'](_0xe29169['createRangeIn'](_0x529c80),_0x3965e9),_0xe29169['insert'](_0x263c2d,_0x529c80,0x0);for(const _0x102786 of Array['from'](_0x15a91c['getChildren']()))_0xe29169['insert'](_0x102786,_0x263c2d,'end');_0x262702=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x263c2d)),_0x180469=_0x3d40b9['fromRange'](_0xe29169['createRangeOn'](_0x3965e9));}const _0x201ba6=Array['from'](_0x15a91c['getAttributes']())['filter'](([_0x2a4a43])=>Ue['includes'](_0x2a4a43));_0x1ea5cb['cells']['push']({'element':_0x529c80,'attributes':_0x201ba6['length']?Object['fromEntries'](_0x201ba6):null}),_0x262702&&_0x1ea5cb['insertionRanges']['push'](_0x262702),_0x180469&&_0x1ea5cb['deletionRanges']['push'](_0x180469);},{'priority':'high'}),_0x2449ed['on']('insertColumns',(_0x65ea73,_0x4f4c7b)=>{const [_0x2f1bc4,_0x38354f={}]=_0x4f4c7b;if(!_0x1ea5cb)return;const _0x1df7d6=_0x38354f['at']||0x0,_0x47ea79=_0x38354f['columns']||0x1;_0x1ea5cb['columnInsertionIndexes']=new Array(_0x47ea79)['fill'](_0x1df7d6)['map']((_0x111dd4,_0x369125)=>_0x111dd4+_0x369125);for(const {cell:_0x56ff39}of _0x2449ed['createTableWalker'](_0x2f1bc4,{'startColumn':_0x1df7d6,'endColumn':_0x1df7d6+_0x47ea79-0x1}))_0x1ea5cb['columnInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x56ff39));},{'priority':'low'}),_0x2449ed['on']('insertRows',(_0xb6df7a,_0x231d8b)=>{const [_0x4befe0,_0x34a2bf={}]=_0x231d8b;if(!_0x1ea5cb)return;const _0x10ab55=_0x34a2bf['at']||0x0,_0x3e7bc5=_0x34a2bf['rows']||0x1;_0x1ea5cb['rowInsertionIndexes']=new Array(_0x3e7bc5)['fill'](_0x10ab55)['map']((_0xe72fe,_0x15ab28)=>_0xe72fe+_0x15ab28);for(const {cell:_0x5d3ba0}of _0x2449ed['createTableWalker'](_0x4befe0,{'startRow':_0x10ab55,'endRow':_0x10ab55+_0x3e7bc5-0x1}))_0x1ea5cb['rowInsertionRanges']['push'](_0x5a0650['model']['createRangeOn'](_0x5d3ba0));},{'priority':'low'}),_0x201215['descriptionFactory']['registerDescriptionCallback'](_0xa74789=>{if(_0xa74789['subType']&&_0xa74789['subType']['startsWith']('tablePaste'))return _0xa74789['previous']?{}:{'type':'insertion','content':o(_0x5a0650['locale'],'*Replace\x20table\x20cells*')};});const _0x513aca=()=>!0x1;for(const _0x44c98a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x201215['_suggestionFactory']['registerCustomCallback']('insertion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('deletion',_0x44c98a,'join',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44c98a,'join',_0x513aca);_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x513aca),_0x201215['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6ace96,_0x2d912b,_0xf11b03)=>{const _0x3c655b=_0x6ace96['map'](_0x387df0=>_0x387df0['getContainedElement']())['filter'](_0xe1d5b2=>_0xe1d5b2),_0x1bf14c=new Map(_0x3c655b['map'](_0x5a715c=>[_0x5a715c,null]));if(_0x1ea5cb){for(const {element:_0x4b2fbb,attributes:_0x32e9ee}of _0x1ea5cb['cells'])_0x32e9ee&&_0x1bf14c['set'](_0x4b2fbb,_0x32e9ee);}else{if(_0xf11b03&&_0xf11b03['markerAttributes'])for(const [_0x213930,_0x218447]of Object['entries'](_0xf11b03['markerAttributes'])){const _0x277b21=_0x5a0650['model']['markers']['get'](_0x213930),_0x57b3fe=_0x277b21?_0x277b21['getRange']()['getContainedElement']():null;_0x57b3fe&&_0x1bf14c['set'](_0x57b3fe,_0x218447);}}_0x5a0650['model']['change'](_0x4eb7b7=>{for(const [_0x3d2daf,_0x4c6da0]of _0x1bf14c)_0x4eb7b7['setAttributes']({...He,..._0x4c6da0},_0x3d2daf);});});const _0x1983a4=(_0x5c46f4,_0x224745)=>{_0x201215['_suggestionFactory']['registerCustomCallback'](_0x5c46f4,'tablePaste',_0x224745,(_0x363d44,_0x4965a5,_0x1704e1)=>{_0x5a0650['model']['change'](_0x265713=>{const _0x293ab8=[];for(const _0x3e7091 of _0x363d44){const _0x297115=_0x3e7091['start']['nodeAfter'];_0x297115['is']('element','tableCellSuggestion')&&_0x293ab8['push'](_0x297115);}_0x201215['_suggestionFactory']['getSuggestionCallback'](_0x5c46f4,null,_0x224745)(_0x363d44,_0x4965a5,_0x1704e1);for(const _0x8fefbd of _0x293ab8)'$graveyard'!=_0x8fefbd['root']['rootName']&&_0x265713['unwrap'](_0x8fefbd);});});};_0x1983a4('insertion','accept'),_0x1983a4('insertion','discard'),_0x1983a4('deletion','accept'),_0x1983a4('deletion','discard'),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57180a=>{const _0x100d72=_0x57180a['map'](_0x10d566=>_0x10d566['getContainedElement']()),_0x2dda94=_0x100d72[0x0]['findAncestor']('table'),{minRow:_0x318caa,maxRow:_0x546496}=_0x9df8b8['_getCoordsForCells'](_0x100d72);_0x2449ed['removeRows'](_0x2dda94,{'at':_0x318caa,'rows':_0x546496-_0x318caa+0x1});}),_0x201215['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fa323=>{const _0x51fae5=_0x4fa323['map'](_0x1605a0=>_0x1605a0['getContainedElement']()),_0x1b8e58=_0x51fae5[0x0]['findAncestor']('table'),{minColumn:_0x435b7d,maxColumn:_0x1a129d}=_0x9df8b8['_getCoordsForCells'](_0x51fae5);_0x2449ed['removeColumns'](_0x1b8e58,{'at':_0x435b7d,'columns':_0x1a129d-_0x435b7d+0x1});});const _0x19927e=(_0x229023,_0x41b4f2)=>{if(!_0x41b4f2['subType']||!_0x41b4f2['subType']['startsWith']('tablePaste'))return;const _0x222c97=_0x41b4f2['attributes']['tablePasteChainId'],_0x3c35ae=_0x201215['getSuggestions']()['filter'](_0x3b4fa4=>_0x3b4fa4['isInContent']&&_0x3b4fa4['attributes']&&_0x3b4fa4['attributes']['tablePasteChainId']==_0x222c97);_0x3c35ae['length']&&_0x41b4f2['getAllAdjacentSuggestions']()['length']!=_0x3c35ae['length']&&_0x3c35ae['reduce']((_0x1b5af6,_0x42adae)=>(_0x1b5af6['next']=_0x42adae,_0x42adae['previous']=_0x1b5af6,_0x42adae));};function _0x40d178(_0x3f169c,_0x24daf4=!0x0){const {id:_0x1f6875,authorId:_0x3995f1}=_0x201215['_splitMarkerName'](_0x3f169c['markerName']),_0x1e2601=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d998e=_0x201215['activeMarkers']['includes'](_0x3f169c['markerName']);return _0x1d998e&&_0x1e2601['push']('ck-suggestion-marker--active'),{'classes':_0x1e2601,'attributes':{'data-suggestion':_0x1f6875,'data-author-id':_0x3995f1},'priority':_0x1d998e&&_0x24daf4?0xbc2:0xbb8};}_0x201215['on']('suggestionLoaded',_0x19927e,{'priority':'high'}),_0x201215['on']('suggestionUnloaded',_0x19927e,{'priority':'high'}),_0x5a0650['model']['document']['registerPostFixer'](()=>{let _0x549929=!0x1;const _0xed27b8=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19dfb3,data:_0x3212d2}of _0xed27b8){const {group:_0x435432,type:_0x27ec28,id:_0x4a547f}=_0x201215['_splitMarkerName'](_0x19dfb3);if('suggestion'!=_0x435432||'deletion'!=_0x27ec28||_0x3212d2['oldRange'])continue;if(!_0x201215['hasSuggestion'](_0x4a547f))continue;const _0x45bed1=_0x201215['getSuggestion'](_0x4a547f)['getRanges'](),_0x5723dc=_0x5a0650['plugins']['get']('Users')['me'];for(const _0x7d858f of _0x201215['getSuggestions']()){if(!_0x7d858f['isInContent']||_0x7d858f['author']!=_0x5723dc)continue;if('formatBlock'!=_0x7d858f['type']||'tablePasteCell'!=_0x7d858f['subType'])continue;if(_0x7d858f['getRanges']()['every'](_0x87a18c=>_0x45bed1['some'](_0x361725=>_0x361725['containsRange'](_0x87a18c,!0x0)))){for(const _0xe42312 of _0x7d858f['getAllAdjacentSuggestions']())_0xe42312['isInContent']&&(_0xe42312['discard'](),_0x549929=!0x0);}}}return _0x549929;}),_0x5a0650['model']['document']['registerPostFixer'](_0x28be4e=>{const _0x462828=_0x5a0650['commands']['get']('redo');if(!_0x462828||!_0x462828['_createdBatches']['has'](_0x28be4e['batch']))return!0x1;let _0x5a94dc=!0x1;const _0x717cf5=_0x5a0650['plugins']['get']('Users')['me'],_0x33b96e=_0x5a0650['model']['document']['differ']['getChanges'](),_0x59bb73=Array['from'](_0x5a0650['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4826ae,data:_0x4a6e9c})=>{const {group:_0x289a06,subType:_0x5941d3,authorId:_0x3e83cf}=_0x201215['_splitMarkerName'](_0x4826ae);return'suggestion'==_0x289a06&&'tablePaste'==_0x5941d3&&_0x3e83cf==_0x717cf5['id']&&!_0x4a6e9c['oldRange'];});for(const _0x9e892c of _0x33b96e){if('insert'!=_0x9e892c['type']||'tableCellSuggestion'!=_0x9e892c['name']||0x1!=_0x9e892c['length'])continue;const _0x5a8f91=_0x28be4e['createRange'](_0x9e892c['position'],_0x9e892c['position']['getShiftedBy'](0x1));if(!_0x59bb73['find'](({data:_0x28de77})=>_0x28de77['newRange']['isEqual'](_0x5a8f91))){for(const {name:_0x4a087d,data:_0x221e10}of _0x59bb73)if(_0x5a8f91['containsRange'](_0x221e10['newRange'])){_0x28be4e['updateMarker'](_0x4a087d,{'range':_0x5a8f91}),_0x5a94dc=!0x0;break;}}}return _0x5a94dc;}),_0x5a0650['model']['document']['registerPostFixer'](_0x1482c1=>{let _0x1324c5=!0x1;const _0xd83b86=_0x5a0650['plugins']['get']('Users')['me'],_0x41c299=_0x201215['getSuggestions']()['filter'](_0x44f3a2=>_0x44f3a2['isInContent']&&_0x44f3a2['author']==_0xd83b86),_0x6679d4=new Set(),_0x23e9cc=new Set();for(const _0x29d7d6 of _0x41c299)if('tablePaste'==_0x29d7d6['subType'])for(const _0x1e9fc9 of _0x29d7d6['getMarkers']()){const _0x3f25b6=_0x1e9fc9['getRange']()['getContainedElement']();if(_0x3f25b6){if(_0x3f25b6['is']('element','tableCellSuggestion')&&ze(_0x3f25b6)){_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x6679d4['add'](_0x3f25b6),_0x1324c5=!0x0;const _0x5410c2=_0x3f25b6['nextSibling'],_0x2550b1=_0x3f25b6['previousSibling'],_0x3000df=_0x5410c2&&_0x5410c2['is']('element','tableCellSuggestion'),_0x47ab8f=_0x2550b1&&_0x2550b1['is']('element','tableCellSuggestion');_0x3000df&&!_0x6679d4['has'](_0x5410c2)&&_0x23e9cc['add'](_0x5410c2),_0x47ab8f&&!_0x6679d4['has'](_0x2550b1)&&_0x23e9cc['add'](_0x2550b1);}else _0x3f25b6['is']('element','paragraph')&&_0x3f25b6['isEmpty']&&(_0x29d7d6['removeMarker'](_0x1e9fc9['name']),_0x1324c5=!0x0);}}else{if('tablePasteCell'==_0x29d7d6['subType']){if(!_0x29d7d6['attributes']||!_0x29d7d6['attributes']['tablePasteChainId'])continue;const _0x26c305=_0x29d7d6['attributes']['markerAttributes'];if(_0x26c305&&Object['keys'](_0x26c305)['length'])continue;const _0x4fef43=_0x29d7d6['attributes']['tablePasteChainId'];let _0x15bc6f=!0x0,_0x65ccd8=!0x0;for(const _0x3286d2 of _0x41c299)if(_0x3286d2['subType']&&_0x3286d2['subType']['startsWith']('tablePaste')){if(!_0x3286d2['attributes']['tablePasteChainId']){_0x65ccd8=!0x1;break;}if(_0x3286d2['id']!=_0x29d7d6['id']&&_0x3286d2['attributes']['tablePasteChainId']==_0x4fef43){_0x15bc6f=!0x1;break;}}_0x65ccd8&&_0x15bc6f&&(_0x29d7d6['removeMarkers'](),_0x1324c5=!0x0);}}for(const _0x31a3e5 of _0x6679d4)_0x1482c1['remove'](_0x31a3e5);for(const _0xf96af1 of _0x23e9cc)_0x1482c1['unwrap'](_0xf96af1);return _0x1324c5;}),_0x5a0650['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42df55=>_0x40d178(_0x42df55),'converterPriority':'high'}),_0x5a0650['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa69789,_0x512b09)=>_0x512b09['options']['showSuggestionHighlights']?_0x40d178(_0xa69789,!0x1):null,'converterPriority':'high'});const _0x5eed4e=_0x5a0650['editing']['view'];this['listenTo'](_0x5eed4e['document'],'clipboardOutput',(_0xe66848,_0x19b808)=>{const _0x452090=[];for(const _0x3297ed of _0x5eed4e['createRangeIn'](_0x19b808['content'])['getItems']())_0x3297ed['is']('element','suggestion-td')&&_0x452090['push'](_0x3297ed);_0x5eed4e['change'](_0x421ce0=>{for(const _0x133776 of _0x452090)_0x421ce0['move'](_0x421ce0['createRangeIn'](_0x133776),_0x421ce0['createPositionBefore'](_0x133776)),_0x421ce0['remove'](_0x133776);});});}}function ze(_0x5b0396){if(_0x5b0396['isEmpty'])return!0x0;const _0x362644=_0x5b0396['getChild'](0x0);return _0x362644['is']('element','paragraph')&&_0x362644['isEmpty'];}function Ge(_0x47440c,_0x1e8865={},_0x2ffa34){for(const {isAnchor:_0x15f7e0,cellHeight:_0x4b1d73,cellWidth:_0x1a4dea}of _0x2ffa34['createTableWalker'](_0x47440c,{'includeAllSlots':!0x0,..._0x1e8865}))if(!_0x15f7e0||0x1!=_0x4b1d73||0x1!=_0x1a4dea)return!0x1;return!0x0;}class Et extends _0x4e7f5a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5944a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5944a8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5944a8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5944a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5944a8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22ecd0,_0x10d98f){const _0x525cac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2efbb0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbf96c8=_0x10d98f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x496e9d=_0x2efbb0['getColumnGroupElement'](_0xbf96c8);let _0x4f7842=_0x496e9d?_0x2efbb0['getTableColumnsWidths'](_0x496e9d):null,_0x14530f=_0xbf96c8['getAttribute']('tableWidth')||null;const _0x3f5f97=_0x10d98f['tableWidth']||_0x14530f,_0x3508e1=_0x10d98f['columnWidths']||_0x4f7842,_0x46b015=this['editor']['plugins']['get']('Users')['me'];for(const _0xd4d225 of _0x525cac['getSuggestions']()){const _0x231e54=_0xd4d225['getContainedElement']();if('resizeTable'===_0xd4d225['subType']&&_0x231e54===_0xbf96c8){_0xd4d225['author']!==_0x46b015&&_0xd4d225['discard']();const _0x59ffd8=_0xd4d225['data']['commandParams'];_0x14530f=_0x59ffd8[0x0]['tableWidth'],_0x4f7842=_0x59ffd8[0x0]['columnWidths'];break;}}_0x22ecd0({'table':_0xbf96c8,'tableWidth':_0x3f5f97,'columnWidths':_0x3508e1}),_0x525cac['markBlockFormat'](_0xbf96c8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x14530f,'columnWidths':_0x4f7842}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x979fb9){if('formatBlock'!=_0x979fb9['type']&&'formatInline'!=_0x979fb9['type'])return;const {data:_0x1057c8}=_0x979fb9;if(_0x1057c8&&'resizeTable'===_0x1057c8['formatGroupId']){const _0x1612e0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1612e0)};}}}class Rt extends _0x4e7f5a{['afterInit'](){const _0x720207=this['editor'];_0x720207['plugins']['has']('Template')&&_0x720207['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ut extends _0x4e7f5a{['afterInit'](){const _0x165a4b=this['editor'];if(!_0x165a4b['commands']['get']('insertTableOfContents'))return;_0x165a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40b0b9=_0x165a4b['plugins']['get']('TrackChangesEditing'),_0x42c769=_0x165a4b['locale'];_0x40b0b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x14e079=>o(_0x42c769,'ELEMENT_TABLE_OF_CONTENTS',_0x14e079));}}class Vt extends _0x4e7f5a{['afterInit'](){const _0x4ee68a=this['editor'];if(!_0x4ee68a['plugins']['has']('Title'))return;const _0x35128c=_0x4ee68a['plugins']['get']('TrackChangesEditing');_0x35128c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4ee68a['locale'],'ELEMENT_TITLE')),_0x4ee68a['model']['document']['registerPostFixer'](_0x14f655=>{let _0x4fce5a=!0x1;const _0x5c8c85=Array['from'](_0x4ee68a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x310bb5,data:_0x579a3d}of _0x5c8c85){const {group:_0x3bb89b}=_0x35128c['_splitMarkerName'](_0x310bb5);if('suggestion'!==_0x3bb89b||!_0x579a3d['newRange'])continue;const _0x59ceed=_0x579a3d['newRange'],_0x3f99e1=_0x59ceed['end']['nodeBefore'];if(!_0x3f99e1||!_0x3f99e1['is']('element','title-content'))continue;if(!_0x59ceed['start']['isTouching'](_0x59ceed['end']))continue;const _0x290742=_0x4ee68a['model']['schema']['getNearestSelectionRange'](_0x59ceed['end'],'forward');if(_0x290742&&_0x290742['isCollapsed']){const _0x318af1=_0x14f655['createRange'](_0x59ceed['start'],_0x290742['start']);_0x318af1['isEqual'](_0x59ceed)||(_0x14f655['updateMarker'](_0x310bb5,{'range':_0x318af1}),_0x4fce5a=!0x0);}_0x4fce5a||(_0x14f655['removeMarker'](_0x310bb5),_0x4fce5a=!0x0);}return _0x4fce5a;});}}class Ft extends _0x4e7f5a{['afterInit'](){const _0x16278e=this['editor'],_0xbfac95=_0x16278e['plugins']['get']('TrackChangesEditing');_0x16278e['plugins']['has']('Uploadcare')&&(_0xbfac95['enableCommand']('uploadcare'),_0x16278e['plugins']['has']('UploadcareImageEdit')&&(_0xbfac95['enableCommand']('uploadcareImageEdit'),_0xbfac95['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xbfac95['registerBlockAttribute']('uploadcareImageId'),_0xbfac95['descriptionFactory']['registerDescriptionCallback'](_0x4dd517=>{if('attribute'!=_0x4dd517['type'])return;const {data:_0x9e0167}=_0x4dd517;return _0x9e0167&&'uploadcareImageId'==_0x9e0167['key']?{'type':'format','content':''}:void 0x0;})));}}class Pt extends _0x4e7f5a{['afterInit'](){const _0x417973=this['editor'],_0x8c6a36=_0x417973['plugins']['get']('TrackChangesEditing');_0x417973['plugins']['has']('UndoEditing')&&(_0x8c6a36['enableCommand']('undo'),_0x8c6a36['enableCommand']('redo'));}}class Gt extends _0x4e7f5a{static get['requires'](){return[Mt];}['afterInit'](){const _0x1173da=this['editor'];if(!_0x1173da['plugins']['has']('TableCaptionEditing'))return;_0x1173da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Lt extends _0x4e7f5a{['tableProperties'];['tableCellProperties'];constructor(_0x4d2ef9){super(_0x4d2ef9),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 _0x1f093b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x252fa1 of this['tableProperties'])_0x1f093b['enableCommand'](_0x252fa1,(_0x4d61e9,_0x131d7a)=>{const _0x2be9c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x252fa1,[_0x2be9c8],this['tableProperties'],'tableProperties',_0x4d61e9,_0x131d7a);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x295da7,_0x1976a9)=>this['handleDiscardAction'](this['tableProperties'],_0x295da7,_0x1976a9)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc40b00 of this['tableCellProperties'])_0x1f093b['enableCommand'](_0xc40b00,(_0x1bf5a5,_0xe98683)=>{const _0x4f4424=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc40b00,_0x4f4424,this['tableCellProperties'],'tableCellProperties',_0x1bf5a5,_0xe98683);});_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f093b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x82c1f6,_0x693ab6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x82c1f6,_0x693ab6)),_0x1f093b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f093b['descriptionFactory']['registerDescriptionCallback'](_0x375633=>this['handleSuggestionDescription'](_0x375633)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x155cfb,_0x2c6980,_0x1ddd2e,_0x35f9b1,_0x548cbd,_0x14465b){const _0x717e1a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14465b['batch'],()=>{for(const _0x12a177 of _0x2c6980){if(this['_getSuggestion'](_0x12a177,_0x35f9b1))_0x548cbd(_0x14465b);else{const _0x3c118b={};for(const _0x43b5e5 of _0x1ddd2e){const _0x5c9e57=_0x12a177['getAttribute'](_0x43b5e5);void 0x0!==_0x5c9e57&&(_0x3c118b[_0x43b5e5]=_0x5c9e57);}_0x548cbd(_0x14465b),_0x717e1a['markBlockFormat'](_0x12a177,{'commandParams':[_0x3c118b]},[],_0x35f9b1);}}});}['handleDiscardAction'](_0x1e6199,_0x405166,_0x37147f){const _0x2d1e5e=_0x405166[0x0]['start']['nodeAfter'],_0x369a96=_0x37147f['commandParams'][0x0];this['editor']['model']['change'](_0x2bd4ee=>{for(const _0x34964e of _0x1e6199)void 0x0!==_0x369a96[_0x34964e]?_0x2bd4ee['setAttribute'](_0x34964e,_0x369a96[_0x34964e],_0x2d1e5e):_0x2bd4ee['removeAttribute'](_0x34964e,_0x2d1e5e);});}['handleSuggestionDescription'](_0x563eb6){if(_0x563eb6['data'])switch(_0x563eb6['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'](_0x3df408,_0x1c6ea1){const _0x3b7fa6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x131b41 of _0x3b7fa6['getSuggestions']({'skipNotAttached':!0x0})){const _0x1fc837=_0x131b41['getContainedElement']();if(_0x131b41['subType']===_0x1c6ea1&&_0x1fc837===_0x3df408)return _0x131b41;}return null;}['_registerTablePropertiesAttributes'](){const _0x34c0cd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3a51=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x41cb07 of _0x2d3a51){const _0x48aca4=_0x41cb07['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x34c0cd['registerBlockAttribute'](_0x41cb07),_0x34c0cd['descriptionFactory']['registerAttributeLabel'](_0x41cb07,o(this['editor']['locale'],'FORMAT_'+_0x48aca4));}}}class Jt extends _0x4e7f5a{['afterInit'](){const _0x589078=this['editor'];if(!_0x589078['plugins']['has']('LineHeight'))return;const _0x31990d=_0x589078['plugins']['get']('TrackChangesEditing'),_0x40b571=_0x589078['locale'];_0x31990d['enableDefaultAttributesIntegration']('lineHeight'),_0x31990d['registerBlockAttribute']('lineHeight'),_0x31990d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x40b571,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4e7f5a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x57807f,_0x3008df,_0x26060f,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ft,gt,ht,lt,mt,dt,kt,wt,jt,pt,Y,Jt,Z,bt,yt,St,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Ot,Gt,xt,Et,Ut,Lt,Rt,Vt,Ft,Pt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b5544){super(_0x3b5544),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24bc5a,_0x4dbb75,_0x476d68,_0x3e2643)=>{this['_model']['change'](()=>{for(const _0x38b248 of[..._0x3e2643,..._0x476d68])this['_model']['markers']['has'](_0x38b248)&&_0x3b5544['editing']['reconvertMarker'](_0x38b248);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3b5544['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(),_0x3b5544['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3b5544['config']['get']('trackChanges.trackFormatChanges'),_0x3b5544['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3b5544['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3b5544,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb2b9ab=this['editor'],_0x34bdee=(_0x110d3f,_0x43ab4d)=>{if('attribute'!=_0x110d3f)return'ck-suggestion-marker-'+_0x110d3f;const _0x5491be=_0x43ab4d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5491be)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb2b9ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5aac75=>{const {id:_0xfb73ed,authorId:_0x40d209,type:_0x2459df,subType:_0x486e18}=this['_splitMarkerName'](_0x5aac75['markerName']),_0x30cbcc=['ck-suggestion-marker',_0x34bdee(_0x2459df,_0x486e18)];let _0x13ed35=0xbb8;return this['activeMarkers']['includes'](_0x5aac75['markerName'])&&(_0x30cbcc['push']('ck-suggestion-marker--active'),_0x13ed35=0xbc2),'deletion'==_0x2459df&&(_0x13ed35+=0x5),{'classes':_0x30cbcc,'attributes':{'data-suggestion':_0xfb73ed,'data-author-id':_0x40d209},'priority':_0x13ed35};}}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x16f622=>{_0x16f622['on']('addMarker:suggestion',(_0x54e8ac,_0x433691,_0xc07f08)=>{if(!_0xc07f08['options']['showSuggestionHighlights'])return;const _0x1b1634=_0x433691['item'];if(!_0x1b1634)return;const _0x1be971=_0xc07f08['mapper']['toViewElement'](_0x1b1634);_0xb2b9ab['model']['schema']['isObject'](_0x1b1634)&&_0x1be971&&!_0x1be971['getCustomProperty']('widget')&&_0x1be971['is']('containerElement')&&_0x599747(_0x1be971,_0xc07f08['writer']);},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58737c,_0x5552a1)=>{if(!_0x5552a1['options']['showSuggestionHighlights'])return null;const {id:_0x17a079,authorId:_0x33e604,type:_0x3117f4,subType:_0x52bdef}=this['_splitMarkerName'](_0x58737c['markerName']);return{'classes':['ck-suggestion-marker',_0x34bdee(_0x3117f4,_0x52bdef)],'priority':0xbb8,'attributes':{'data-suggestion':_0x17a079,'data-author-id':_0x33e604}};}});const _0x56b131=({showActiveMarkers:_0x1e97c3=!0x0,isAttributeSuggestion:_0x521eb8=!0x1}={})=>(_0x24151e,_0x4d9e98,_0x3d4ef0)=>{if(!_0x4d9e98['item'])return;const {id:_0x50a346,authorId:_0x5b1d6a,subType:_0x3fa402}=this['_splitMarkerName'](_0x4d9e98['markerName']);if(_0x521eb8){const _0x2e78d8=ae(_0x3fa402);if(!this['_isBlockAttribute'](_0x2e78d8))return;}if(_0x4d9e98['item']['is']('selection'))return void _0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);const _0x48464e=_0x3d4ef0['mapper']['toViewElement'](_0x4d9e98['item']);if(_0x4d9e98['item']['is']('element')&&_0xb2b9ab['model']['schema']['isBlock'](_0x4d9e98['item'])&&!_0x48464e['getCustomProperty']('addHighlight')){_0x3d4ef0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-suggestion',_0x50a346,_0x48464e),_0x3d4ef0['writer']['setAttribute']('data-author-id',_0x5b1d6a,_0x48464e),_0x3d4ef0['mapper']['bindElementToMarker'](_0x48464e,_0x4d9e98['markerName']),_0x1e97c3&&(this['activeMarkers']['includes'](_0x4d9e98['markerName'])?_0x3d4ef0['writer']['addClass']('ck-suggestion-marker--active',_0x48464e):_0x3d4ef0['writer']['removeClass']('ck-suggestion-marker--active',_0x48464e));for(const _0x30beb1 of _0xb2b9ab['model']['createRangeIn'](_0x4d9e98['item'])['getItems']())_0x3d4ef0['consumable']['consume'](_0x30beb1,_0x24151e['name']);_0x3d4ef0['consumable']['consume'](_0x4d9e98['item'],_0x24151e['name']);}};_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x3f2ec3=>{_0x3f2ec3['on']('addMarker:suggestion:formatBlock',(_0x213c9f,_0x1433c3,_0x419abb)=>{_0x419abb['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1})(_0x213c9f,_0x1433c3,_0x419abb);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['add'](_0x56b2c4=>{_0x56b2c4['on']('addMarker:suggestion:attribute',(_0x44e679,_0xb1472b,_0x196173)=>{_0x196173['options']['showSuggestionHighlights']&&_0x56b131({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x44e679,_0xb1472b,_0x196173);},{'priority':'highest'});}),_0xb2b9ab['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xf7723c,_0x127f95)=>{if(_0x127f95['options']['showSuggestionHighlights']){const {id:_0x10a2c7,authorId:_0x42bf9d}=this['_splitMarkerName'](_0xf7723c);return _0xf7723c['includes'](':split')||_0xf7723c['includes'](':merge')?{'group':'suggestion','name':_0xf7723c['substr'](0xb),'attributes':{'data-suggestion':_0x10a2c7,'data-author-id':_0x42bf9d}}:null;}return{'group':'suggestion','name':_0xf7723c['substr'](0xb)};}}),_0xb2b9ab['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x443a1f,{writer:_0x57589c})=>{let _0x3860fd='suggestion:'+_0x443a1f['getAttribute']('suggestion-type')+':'+_0x443a1f['getAttribute']('id');return _0x443a1f['getAttribute']('marker-count')&&(_0x3860fd+=':'+_0x443a1f['getAttribute']('marker-count')),_0x57589c['createElement']('$marker',{'data-name':_0x3860fd});}}),_0xb2b9ab['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x2bd42e=>{_0x2bd42e['on']('addMarker:suggestion:formatBlock',_0x56b131(),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x45715a=>{_0x45715a['on']('addMarker:suggestion:attribute',_0x56b131({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x58e2dd=>{_0x58e2dd['on']('removeMarker:suggestion:formatBlock',(_0x2eebd7,_0x2dd636,_0x466e1a)=>{const _0x4733d9=_0x466e1a['mapper']['markerNameToElements'](_0x2dd636['markerName']);if(_0x4733d9){for(const _0x3c1349 of _0x4733d9)_0x3c1349['getCustomProperty']('addHighlight')||(_0x466e1a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-suggestion',_0x3c1349),_0x466e1a['writer']['removeAttribute']('data-author-id',_0x3c1349),_0x466e1a['mapper']['unbindElementFromMarkerName'](_0x3c1349,_0x2dd636['markerName']));}},{'priority':'high'});}),_0xb2b9ab['conversion']['for']('editingDowncast')['add'](_0x25be57=>{_0x25be57['on']('removeMarker:suggestion:attribute',(_0x1cc7ec,_0x536d9e,_0x610608)=>{const _0x70e9da=_0x610608['mapper']['markerNameToElements'](_0x536d9e['markerName']);if(!_0x70e9da)return;const {subType:_0x111793}=this['_splitMarkerName'](_0x536d9e['markerName']),_0x2c70ae=ae(_0x111793);if(this['_isBlockAttribute'](_0x2c70ae)){for(const _0x2b5255 of _0x70e9da)_0x2b5255['getCustomProperty']('addHighlight')||(_0x610608['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b5255),_0x610608['writer']['removeAttribute']('data-suggestion',_0x2b5255),_0x610608['writer']['removeAttribute']('data-author-id',_0x2b5255),_0x610608['mapper']['unbindElementFromMarkerName'](_0x2b5255,_0x536d9e['markerName']));}},{'priority':'high'});}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x37a908=>{let _0x1be8b3=!0x1;const _0x5ea116=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']()),_0x4affb3=new Set();for(const {name:_0x35069e,data:_0x2e820d}of _0x5ea116){const {group:_0x94e97f,type:_0x2e7001,subType:_0x5c882e,id:_0x333a95}=this['_splitMarkerName'](_0x35069e);if('suggestion'!==_0x94e97f)continue;const _0x38fecb=_0x5c882e?'suggestion:'+_0x2e7001+':'+_0x5c882e+':'+_0x333a95:'suggestion:'+_0x2e7001+':'+_0x333a95,_0x59e55c=_0xb2b9ab['model']['markers']['getMarkersGroup'](_0x38fecb),_0x2574c8=_0xb2b9ab['model']['markers']['get'](_0x35069e),_0x33fc6e=this['_suggestions']['get'](_0x333a95);if(null!=_0x2e820d['newRange']){'formatInline'==_0x2e7001&&(_0x1be8b3=_0x1be8b3||zt(_0x2e820d['newRange'],_0x35069e,_0x37a908,_0xb2b9ab['model']['schema']));const _0x36a485='attribute'==_0x2e7001&&this['_isBlockAttribute'](_0x5c882e['split']('|')[0x0]),_0x5667f0='attribute'==_0x2e7001&&this['_isInlineAttribute'](_0x5c882e['split']('|')[0x0]);if(_0x2e820d['newRange']['isCollapsed']||'$graveyard'==_0x2e820d['newRange']['root']['rootName']||'formatBlock'==_0x2e7001&&!Xt(_0x2e820d['newRange'])||_0x36a485&&!Xt(_0x2e820d['newRange'])||_0x5667f0&&Yt(_0x2e820d['newRange'])||'deletion'==_0x2e7001&&Yt(_0x2e820d['newRange'])||_0x2574c8&&Zt(_0x2574c8,_0x59e55c))_0x37a908['removeMarker'](_0x35069e),_0x1be8b3=!0x0;else{if(!_0x33fc6e||!_0x33fc6e['isInContent'])continue;if(_0x2e820d['newRange']&&_0x2e820d['oldRange']&&_0x2e820d['newRange']['isEqual'](_0x2e820d['oldRange']))continue;_0x4affb3['add'](_0x33fc6e);}}}return _0x4affb3['size']>0x0&&(_0x1be8b3=!!this['_joinWithAdjacentSuggestions'](_0x4affb3)||_0x1be8b3),_0x1be8b3;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x546802=>{let _0x188b6a=!0x1;for(const _0x5ad8ce of _0xb2b9ab['model']['document']['differ']['getChanges']())if('insert'==_0x5ad8ce['type'])for(const _0x53d988 of this['_suggestions']['values']()){if(_0x53d988['isMultiRange']||!_0x53d988['isInContent'])continue;const _0xd60e1a='formatBlock'==_0x53d988['type'],_0xd71420=this['_getAttributeKey'](_0x53d988),_0x4c9da0=_0xd71420&&this['_isBlockAttribute'](_0xd71420);if(!_0xd60e1a&&!_0x4c9da0)continue;const _0x526b81=_0x53d988['getFirstRange']();if(_0x526b81['start']['parent']!=_0x526b81['end']['parent']&&!_0x526b81['end']['isAtEnd']){const _0x53a481=_0xb2b9ab['model']['createPositionAt'](_0x526b81['start']['nodeAfter'],'end'),_0x2acee5=_0xb2b9ab['model']['createRange'](_0x526b81['start'],_0x53a481);_0x546802['updateMarker'](_0x53d988['getFirstMarker'](),{'range':_0x2acee5}),_0x188b6a=!0x0;}}return _0x188b6a;}),_0xb2b9ab['model']['document']['registerPostFixer'](_0x57a5bc=>this['_processAttributeChanges'](_0x57a5bc)),_0xb2b9ab['model']['document']['registerPostFixer'](_0x1245c2=>!_0x1245c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1245c2)),_0xb2b9ab['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb2b9ab['model']['document']['on']('change:data',(_0x26de66,_0xe0bd7e)=>{if(!_0xe0bd7e['isLocal']||_0xe0bd7e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fce77=_0xb2b9ab['model']['document']['differ']['getChanges']();if(0x0==_0x3fce77['length'])return;const _0x14008e=[],_0xde37c=_0x3fce77['filter'](_0x243088=>'attribute'==_0x243088['type']),_0x2b1f77=_0x3fce77['filter'](_0xb6c083=>'insert'==_0xb6c083['type']&&'$text'!=_0xb6c083['name']);for(const _0x30741a of _0xde37c)this['_isRegisteredAttribute'](_0x30741a['attributeKey'])&&_0x14008e['push']({'key':_0x30741a['attributeKey'],'newValue':_0x30741a['attributeNewValue'],'oldValue':_0x30741a['attributeOldValue'],'range':ee(_0x30741a['range'],_0xb2b9ab['model'])});for(const _0x47ab96 of _0x2b1f77){if('rename'!=_0x47ab96['action']&&'refresh'!=_0x47ab96['action'])continue;const _0x1a05b9=ie(_0x47ab96['position']['nodeAfter'],_0xb2b9ab['model']),_0x1557e8=_0x47ab96['before'];'rename'==_0x47ab96['action']&&_0x14008e['push']({'key':m,'newValue':_0x47ab96['name'],'oldValue':_0x1557e8['name'],'range':_0x1a05b9});for(const [_0x306939,_0x4426fc]of _0x1557e8['attributes']){if(!this['_isRegisteredAttribute'](_0x306939))continue;const _0x4211ce=_0x47ab96['attributes']['get'](_0x306939);_0x4426fc!==_0x4211ce&&_0x14008e['push']({'key':_0x306939,'newValue':_0x4211ce,'oldValue':_0x4426fc,'range':_0x1a05b9});}for(const [_0x295126,_0x4a6158]of _0x47ab96['attributes'])this['_isRegisteredAttribute'](_0x295126)&&(_0x1557e8['attributes']['has'](_0x295126)||_0x14008e['push']({'key':_0x295126,'newValue':_0x4a6158,'oldValue':null,'range':_0x1a05b9}));}0x0!=_0x14008e['length']&&_0xb2b9ab['model']['enqueueChange'](_0xe0bd7e,_0x40f98a=>{const _0x466134=_0x3caa75();for(const {range:_0x2fcc84,key:_0x33c1c6,oldValue:_0x65f389,newValue:_0x549465}of _0x14008e)this['markAttributeChange'](_0x2fcc84,_0x33c1c6,_0x65f389,_0x549465,{'groupId':_0x466134});this['_reduceExistingSuggestions'](_0x40f98a,_0x14008e);});},{'priority':'lowest'}),_0xb2b9ab['model']['markers']['on']('update:suggestion',(_0x528d99,_0x1d60dc,_0x14b25b)=>{if(null==_0x14b25b){const {id:_0x2f346e}=this['_splitMarkerName'](_0x1d60dc['name']),_0x1d199c=this['_suggestions']['get'](_0x2f346e);_0x1d199c&&_0x1d199c['addMarkerName'](_0x1d60dc['name']);}}),_0xb2b9ab['model']['document']['on']('change:data',()=>{const _0x96724=Array['from'](_0xb2b9ab['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1eb9db=>'suggestion'===this['_splitMarkerName'](_0x1eb9db['name'])['group']);if(0x0===_0x96724['length'])return;_0x96724['sort']((_0x4c9195,_0x57c37c)=>{const _0x98243b=_0x4c9195['data']['oldRange'],_0x4853e5=_0x57c37c['data']['oldRange'];return null===_0x98243b&&null===_0x4853e5?0x0:null===_0x98243b&&null!==_0x4853e5?-0x1:null!==_0x98243b&&null===_0x4853e5?0x1:_0x98243b['start']['isBefore'](_0x4853e5['start'])?-0x1:0x1;});const _0x4325ee=new Set(),_0x57a9f2=new Set();for(const {name:_0x299b2d,data:_0x20510f}of _0x96724){const {id:_0x3eacbb}=this['_splitMarkerName'](_0x299b2d);if(null===_0x20510f['oldRange']){const _0x345133=this['_handleNewSuggestionMarker'](_0x299b2d);_0x57a9f2['add'](_0x345133);}else{const _0x5ab13c=this['_suggestions']['get'](_0x3eacbb);null!==_0x20510f['newRange']||_0x5ab13c['isInContent']?(_0x4325ee['add'](_0x5ab13c['head']),_0x57a9f2['add'](_0x5ab13c)):this['_removeSuggestion'](_0x5ab13c);}}_0x57a9f2['size']>0x0&&this['_refreshSuggestionsChain'](_0x57a9f2);for(const _0x5c6bd6 of _0x4325ee)this['fire']('suggestionChanged',_0x5c6bd6);}),_0xb2b9ab['model']['on']('applyOperation',(_0x1ce414,_0x5d50c2)=>{const _0x5e1db3=_0x5d50c2[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e1db3['isDocumentOperation'])return;if(_0x5e1db3['batch']['isUndo']||!_0x5e1db3['batch']['isLocal'])return;let _0x15ca96,_0x478080;switch(_0x5e1db3['type']){case'insert':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['position']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;case'split':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['splitPosition']),_0x478080=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['moveTargetPosition']);break;case'move':_0x15ca96=_0xb2b9ab['model']['createPositionAt'](_0x5e1db3['targetPosition']),_0x478080=_0x15ca96['getShiftedBy'](_0x5e1db3['howMany']);break;default:return;}const _0x28c48c=_0xb2b9ab['model']['createRange'](_0x15ca96,_0x478080);_0xb2b9ab['model']['change'](()=>{for(const {suggestion:_0x343a63,meta:_0x838e57}of this['_findSuggestions'](_0x28c48c)){if(_0x343a63['isMultiRange'])continue;if('formatInline'==_0x343a63['type'])continue;const _0x58852e=this['_getAttributeKey'](_0x343a63);if(_0x58852e&&this['_isBlockAttribute'](_0x58852e)&&'split'!=_0x5e1db3['type'])continue;const _0x3c15c3=_0x343a63['data']&&_0x343a63['data']['multipleBlocks'];('formatBlock'!=_0x343a63['type']||'split'==_0x5e1db3['type']&&!_0x3c15c3)&&(_0x838e57['containsRangeInObject']||'insertion'==_0x343a63['type']&&_0x838e57['isOwn']||_0x343a63['getFirstRange']()['containsRange'](_0x28c48c)&&this['_breakSuggestionMarker'](_0x343a63,_0x15ca96,_0x478080));}});},{'priority':'lowest'}),_0xb2b9ab['model']['on']('deleteContent',(_0x1e1a85,_0xd848d3)=>{const _0x288f8c=_0xd848d3[0x0],_0x4a055c=_0xd848d3[0x1];if(_0x4a055c&&_0x4a055c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x288f8c['isCollapsed'])return;const _0x206bbf=_0xb2b9ab['model']['schema'],{start:_0x40eabd,end:_0x17ee01}=_0x288f8c['getFirstRange'](),_0xd6fa68=_0x40eabd['nodeAfter']&&_0x206bbf['isLimit'](_0x40eabd['nodeAfter'])?null:_0x206bbf['getNearestSelectionRange'](_0x40eabd,'forward'),_0x1c14cf=_0x17ee01['nodeBefore']&&_0x206bbf['isLimit'](_0x17ee01['nodeBefore'])?null:_0x206bbf['getNearestSelectionRange'](_0x17ee01,'backward'),_0x35a388=_0xb2b9ab['model']['createRange'](_0xd6fa68?_0xd6fa68['start']:_0x40eabd,_0x1c14cf?_0x1c14cf['end']:_0x17ee01);_0xb2b9ab['model']['change'](_0x2651b8=>{this['markDeletion'](_0x35a388);const _0x401357=_0xb2b9ab['model']['schema']['getNearestSelectionRange'](_0x35a388['start']);_0x288f8c['is']('documentSelection')?_0x2651b8['setSelection'](_0x401357):_0x288f8c['setTo'](_0x401357);}),_0x1e1a85['stop']();},{'priority':_0x35714c['normal']+0xa}),_0xb2b9ab['model']['on']('insertContent',(_0x24dc92,_0x27a600)=>{const _0x101d59=_0x27a600[_0x27a600['length']-0x1];_0x101d59&&_0x101d59['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb2b9ab['model']['change'](()=>{let _0x1d7cbc=_0xb2b9ab['model']['insertContent'](_0x27a600[0x0],_0x27a600[0x1],_0x27a600[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d7cbc)return;_0x24dc92['return']=_0x1d7cbc['clone']();const _0x4773ed=_0x1d7cbc['end']['nodeBefore'],_0x340e17=_0xb2b9ab['model']['schema'];_0x4773ed&&_0x340e17['isBlock'](_0x4773ed)&&!_0x340e17['isObject'](_0x4773ed)&&(_0x1d7cbc=_0xb2b9ab['model']['createRange'](_0x1d7cbc['start'],_0xb2b9ab['model']['createPositionAt'](_0x4773ed,'end'))),this['markInsertion'](_0x1d7cbc);}),_0x24dc92['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2c8892=new T(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('acceptSuggestion',_0x2c8892),this['enableCommand']('acceptSuggestion');const _0x99df5f=new O(_0xb2b9ab,this['_suggestions']);_0xb2b9ab['commands']['add']('discardSuggestion',_0x99df5f),this['enableCommand']('discardSuggestion'),_0xb2b9ab['commands']['add']('acceptAllSuggestions',new x(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb2b9ab['commands']['add']('discardAllSuggestions',new x(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb2b9ab['commands']['add']('acceptSelectedSuggestions',new E(_0xb2b9ab,_0x2c8892,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb2b9ab['commands']['add']('discardSelectedSuggestions',new E(_0xb2b9ab,_0x99df5f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1203b0=_0xb2b9ab['plugins']['get']('CommentsRepository');this['listenTo'](_0x1203b0,'addComment',(_0x2a4e4b,{threadId:_0x24608e})=>{const _0x36680a=this['_suggestions']['get'](_0x24608e);_0x36680a&&_0x36680a['commentThread']&&0x1===_0x36680a['commentThread']['length']&&this['_updateSuggestionData'](_0x24608e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1203b0,'removeComment',(_0x69bbe2,{threadId:_0x7332f7})=>{const _0x1c2c2b=this['_suggestions']['get'](_0x7332f7);_0x1c2c2b&&_0x1c2c2b['commentThread']&&!_0x1c2c2b['commentThread']['length']&&this['_updateSuggestionData'](_0x7332f7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c688b){const _0x59ca41=_0x3883de([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1cf16e=0x3d8d0df,_0x7efb68=0x3dfa7ef^_0x1cf16e,_0x3c56c7=window[_0x3883de([0x44,0x61,0x74,0x65])][_0x3883de([0x6e,0x6f,0x77])](),_0x1af10f=_0x1c688b[_0x3883de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x447189=new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119f2b=>{_0x1af10f[_0x3883de([0x6f,0x6e,0x63,0x65])](_0x3883de([0x72,0x65,0x61,0x64,0x79]),_0x119f2b);}),_0x5dedad={[_0x3883de([0x6b,0x74,0x79])]:_0x3883de([0x45,0x43]),[_0x3883de([0x75,0x73,0x65])]:_0x3883de([0x73,0x69,0x67]),[_0x3883de([0x63,0x72,0x76])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36]),[_0x3883de([0x78])]:_0x3883de([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]),[_0x3883de([0x79])]:_0x3883de([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]),[_0x3883de([0x61,0x6c,0x67])]:_0x3883de([0x45,0x53,0x32,0x35,0x36])},_0x28cdd6=_0x1af10f[_0x3883de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3883de([0x67,0x65,0x74])](_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x445d39(){let _0x163a37,_0x9bbfa7=null,_0x4ef95e=null;try{if(_0x28cdd6==_0x3883de([0x47,0x50,0x4c]))return _0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x163a37=_0x2b7d20(),!_0x163a37)return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ef95e=_0xc4ef11(_0x163a37[_0x3883de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x163a37[_0x3883de([0x6a,0x74,0x69])])),await _0x2bde3a()?_0x2ce1ac()?_0x202c35()?_0x3883de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a36c7()?(_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3883de([0x74,0x72,0x69,0x61,0x6c])&&(_0x9bbfa7=_0xbf0748(_0x3883de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6951()):_0x3883de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3883de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x202c35(){const _0x25eda9=[_0x3883de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3883de([0x74,0x72,0x69,0x61,0x6c])][_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c56c7/0x3e8:0xe10*_0x7efb68;return _0x163a37[_0x3883de([0x65,0x78,0x70])]<_0x25eda9;}function _0x2ce1ac(){const _0x18c221=_0x163a37[_0x3883de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x18c221)return!0x1;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x54,0x43])))return!0x0;if(_0x18c221[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x52,0x54,0x43]))){if(_0x5cefce())return!0x0;if(_0x1a0723()||_0x1560cf())return!0x0;}return!0x1;}function _0x4a36c7(){const _0xe9492e=_0x163a37[_0x3883de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe9492e||0x0==_0xe9492e[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x587ae1}=new URL(window[_0x3883de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe9492e[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x587ae1))return!0x0;const _0x5946c6=_0x587ae1[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));return _0xe9492e[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x114fd8=>_0x114fd8[_0x3883de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3883de([0x2a])))[_0x3883de([0x6d,0x61,0x70])](_0x57c87a=>_0x57c87a[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])))[_0x3883de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25aa08=>_0x25aa08[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x6d,0x61,0x70])](_0x3d6cfd=>Array(_0x5946c6[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d6cfd[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3883de([0x66,0x69,0x6c,0x6c])](_0x3d6cfd[0x0]===_0x3883de([0x2a])?_0x3883de([0x2a]):'')[_0x3883de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d6cfd))[_0x3883de([0x73,0x6f,0x6d,0x65])](_0x32c1af=>_0x5946c6[_0x3883de([0x65,0x76,0x65,0x72,0x79])]((_0x59ae53,_0x163618)=>_0x32c1af[_0x163618]===_0x59ae53||_0x32c1af[_0x163618]===_0x3883de([0x2a])));}function _0x2e6951(){return _0x9bbfa7&&_0x4ef95e?new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58f137,_0x466450)=>{_0x9bbfa7[_0x3883de([0x74,0x68,0x65,0x6e])](_0x58f137,_0x466450),_0x4ef95e[_0x3883de([0x74,0x68,0x65,0x6e])](_0x5692be=>{_0x5692be!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x58f137(_0x5692be);},_0x466450);}):_0x9bbfa7||_0x4ef95e||_0x3883de([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc4ef11(_0x5956ad,_0x57ba9a){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d8fe=>{if(_0x475153())return _0x47d8fe(_0x3883de([0x56,0x61,0x6c,0x69,0x64]));_0xe3f81f(),_0x1af10f[_0x3883de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dbf5a=!0x1;const _0x436740=_0x3caa75();function _0x42b2db(_0x162493){return!!_0x162493&&(typeof _0x162493===_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x162493===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x162493[_0x3883de([0x74,0x68,0x65,0x6e])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x162493[_0x3883de([0x63,0x61,0x74,0x63,0x68])]===_0x3883de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2dbd5e(_0x55729e){_0x4b18c3(_0x55729e)[_0x3883de([0x74,0x68,0x65,0x6e])](_0x728a1e=>{if(!_0x728a1e||_0x728a1e[_0x3883de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3883de([0x6f,0x6b]))return _0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x597074(_0x1ad3d4(_0x436740+_0x57ba9a))!=_0x728a1e[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3883de([0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x53b19b=>(_0x40a23c(),_0x53b19b),()=>{const _0x213f4b=_0x27645e();return null==_0x213f4b?(_0x40a23c(),_0x3883de([0x56,0x61,0x6c,0x69,0x64])):_0x3883de(_0x3c56c7-_0x213f4b>(0x27d454df^_0x1cf16e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3883de([0x74,0x68,0x65,0x6e])](_0x47d8fe)[_0x3883de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ec72a=0x3ee3e5f^_0x1cf16e;function _0x40a23c(){const _0x1b4154=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x211684=_0x304f37(_0x597074(window[_0x3883de([0x4d,0x61,0x74,0x68])][_0x3883de([0x63,0x65,0x69,0x6c])](_0x3c56c7/_0x1ec72a)));window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4154,_0x211684);}function _0x27645e(){const _0x1ecfef=_0x3883de([0x6c,0x6c,0x63,0x74,0x2d])+_0x597074(_0x1ad3d4(_0x5956ad)),_0x478587=window[_0x3883de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3883de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ecfef);return _0x478587?window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304f37(_0x478587),0x10)*_0x1ec72a:null;}function _0x4b18c3(_0x2511b1){return new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46414a,_0x411bad)=>{_0x2511b1[_0x3883de([0x74,0x68,0x65,0x6e])](_0x46414a,_0x411bad),window[_0x3883de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x411bad,0x3d9041f^_0x1cf16e);});}}_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ad7a0,_0x41471c)=>{if(_0x41471c[0x0]!=_0x5956ad)return _0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41471c[0x1]={..._0x41471c[0x1],[_0x3883de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x436740};},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x68,0x69,0x67,0x68])}),_0x1af10f[_0x3883de([0x6f,0x6e])](_0x3883de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x347f75=>{_0x42b2db(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dbf5a=!0x0,_0x2dbd5e(_0x347f75[_0x3883de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3883de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3883de([0x6c,0x6f,0x77])}),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>{_0x1dbf5a||_0x47d8fe(_0x3883de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x475153(){return _0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3883de([0x61,0x75,0x74,0x6f]);}function _0xe3f81f(){_0x1af10f[_0x3883de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3883de([0x76,0x69,0x65,0x77])][_0x3883de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3883de([0x61,0x75,0x74,0x6f]);}}function _0xbf0748(_0xa1ec1f){const _0x4db04d=[new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff300=>setTimeout(_0x1ff300,0x3d1ee13^_0x1cf16e)),_0x447189[_0x3883de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400b51=>{let _0x1089ae=0x0;_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x6f,0x6e])](_0x3883de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a5de4,_0x7f9117)=>{_0x7f9117[0x0][_0x3883de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1089ae++,_0x1089ae==(0x3d8d127^_0x1cf16e)&&(_0x400b51(),_0x4a5de4[_0x3883de([0x6f,0x66,0x66])]());});}))];return window[_0x3883de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3883de([0x72,0x61,0x63,0x65])](_0x4db04d)[_0x3883de([0x74,0x68,0x65,0x6e])](()=>_0xa1ec1f);}async function _0x10c163(){await _0x447189,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x6d,0x6f,0x64,0x65,0x6c])][_0x3883de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3843ed,_0x1af10f[_0x3883de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3883de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cefce(){return _0x55df99(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x491485(_0x3883de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3883de([0x73,0x74,0x61,0x74,0x65])]==_0x3883de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a0723(){return _0x55df99(_0x3883de([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 _0x1560cf(){return _0x55df99(_0x3883de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f7d81(_0x5635ff){const _0x87e533=_0x4bd97e();_0x1af10f[_0x87e533]=_0x3883de([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5635ff,_0x5635ff!=_0x3883de([0x56,0x61,0x6c,0x69,0x64])&&_0x10c163();}function _0x4bd97e(){const _0x4f66c9=window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3883de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3883de([0x6e,0x6f,0x77])]())[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3883de([0x2e]),'');let _0x574bb0=_0x3883de([0x52]);for(let _0x5bc80b=0x0;_0x5bc80b<_0x4f66c9[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5bc80b+=0x2){let _0x2d0764=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f66c9[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc80b,_0x5bc80b+0x2));_0x2d0764>=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d0764-=_0x59ca41[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x574bb0+=_0x59ca41[_0x2d0764];}return _0x574bb0;}function _0x2b7d20(){const _0x25adad=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e]));if(0x3!=_0x25adad[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58015e(_0x25adad[0x1]);function _0x58015e(_0x464756){const _0x325111=_0x1a1583(_0x464756);return _0x325111&&_0x2545a2()?_0x325111:null;function _0x2545a2(){const _0x23c53b=_0x325111[_0x3883de([0x6a,0x74,0x69])],_0x1315d9=window[_0x3883de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3559c6={..._0x325111,[_0x3883de([0x6a,0x74,0x69])]:_0x23c53b[_0x3883de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23c53b[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3559c6[_0x3883de([0x76,0x63])],_0x1ad3d4(_0x3559c6)==_0x1315d9;}}}async function _0x2bde3a(){let _0x5621a8=!0x0;try{const _0x41a7ca=_0x28cdd6[_0x3883de([0x73,0x70,0x6c,0x69,0x74])](_0x3883de([0x2e])),[_0x22d199,_0xaa9dbb,_0x3c1d7a]=_0x41a7ca;return _0x49a729(_0x22d199),await _0x14b4b6(_0x22d199,_0xaa9dbb,_0x3c1d7a),_0x5621a8;}catch{return!0x1;}function _0x49a729(_0x203cca){const _0x2b89c6=_0x1a1583(_0x203cca);_0x2b89c6&&_0x2b89c6[_0x3883de([0x61,0x6c,0x67])]==_0x3883de([0x45,0x53,0x32,0x35,0x36])||(_0x5621a8=!0x1);}async function _0x14b4b6(_0x55c5f4,_0x34faa5,_0x53e695){const _0x4e5e1b=window[_0x3883de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3883de([0x66,0x72,0x6f,0x6d])](_0x5af06a(_0x53e695),_0x2ce53d=>_0x2ce53d[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2de572=new window[(_0x3883de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3883de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55c5f4+_0x3883de([0x2e])+_0x34faa5),_0x16dd25=window[_0x3883de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3883de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16dd25)return;const _0x3db2be=await _0x16dd25[_0x3883de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3883de([0x6a,0x77,0x6b]),_0x5dedad,{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3883de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16dd25[_0x3883de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x45,0x43,0x44,0x53,0x41]),[_0x3883de([0x68,0x61,0x73,0x68])]:{[_0x3883de([0x6e,0x61,0x6d,0x65])]:_0x3883de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3db2be,_0x4e5e1b,_0x2de572)||(_0x5621a8=!0x1);}}function _0x1a1583(_0x224cd1){return _0x224cd1[_0x3883de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3883de([0x65,0x79]))?JSON[_0x3883de([0x70,0x61,0x72,0x73,0x65])](_0x5af06a(_0x224cd1)):null;}function _0x5af06a(_0x6fbefd){return window[_0x3883de([0x61,0x74,0x6f,0x62])](_0x6fbefd[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3883de([0x2b]))[_0x3883de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3883de([0x2f])));}function _0x1ad3d4(_0x3a124e){let _0x4c7144=0x1505;function _0x2a2624(_0x44f858){for(let _0x130523=0x0;_0x130523<_0x44f858[_0x3883de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x130523++){const _0x545a4d=_0x44f858[_0x3883de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x130523);_0x4c7144=(_0x4c7144<<0x5)+_0x4c7144+_0x545a4d,_0x4c7144&=_0x4c7144;}}function _0x1c4cf9(_0x4bd410){Array[_0x3883de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bd410)?_0x4bd410[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1c4cf9):_0x4bd410&&typeof _0x4bd410==_0x3883de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3883de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bd410)[_0x3883de([0x73,0x6f,0x72,0x74])]()[_0x3883de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e522d,_0x5640ef])=>{_0x2a2624(_0x1e522d),_0x1c4cf9(_0x5640ef);}):_0x2a2624(window[_0x3883de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bd410));}return _0x1c4cf9(_0x3a124e),_0x4c7144>>>0x0;}function _0x597074(_0xb1dcad){return _0xb1dcad[_0x3883de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3883de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3883de([0x30]));}function _0x304f37(_0x50771d){return _0x50771d[_0x3883de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3883de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3883de([0x6a,0x6f,0x69,0x6e])]('');}function _0x55df99(_0x210d3b){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x68,0x61,0x73])](_0x210d3b);}function _0x491485(_0x384caf){return _0x1af10f[_0x3883de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3883de([0x67,0x65,0x74])](_0x384caf);}function _0x3843ed(){}function _0x3883de(_0x3d3566){return _0x3d3566['map'](_0x27a850=>String['fromCharCode'](_0x27a850))['join']('');}_0x2f7d81(await _0x445d39());}(this);}set['adapter'](_0x47fcd5){if(this['_adapter'])throw new _0x5a4829('track-changes-adapter-already-set',this);this['_adapter']=_0x47fcd5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3de594=!0x1,toJSON:_0x3dacae=!0x1}={}){const _0x491957=[];for(const _0x16e08a of this['_suggestions']['values']())_0x3de594&&!_0x16e08a['isInContent']||_0x491957['push'](_0x16e08a);return _0x3dacae?_0x491957['map'](_0x2d4768=>_0x2d4768['toJSON']()):_0x491957;}['getSuggestion'](_0x126591){const _0x5a3ca5=this['_suggestions']['get'](_0x126591);if(!_0x5a3ca5)throw new _0x5a4829('track-changes-suggestion-not-found',this);return _0x5a3ca5;}['hasSuggestion'](_0xd22c54){return this['_suggestions']['has'](_0xd22c54);}['addSuggestionData'](_0x7ab547){const {authorId:_0x24f46b,id:_0x500dc4,originalSuggestionId:_0x1f4abd,attributes:_0x267a91}=_0x7ab547,[_0x27e0cd,_0x5ba7f2]=_0x7ab547['type']['split'](':'),_0x4564a3=this['_suggestions']['get'](_0x500dc4)||this['_createSuggestion'](_0x27e0cd,_0x5ba7f2,_0x500dc4,_0x24f46b,_0x267a91,_0x1f4abd);if(this['_addThreadToSuggestion'](_0x4564a3),this['_checkSuggestionCorrectness'](_0x4564a3,_0x27e0cd,_0x5ba7f2||null,_0x24f46b),_0x4564a3['createdAt']=_0x7ab547['createdAt'],_0x4564a3['_isDataLoaded']=!0x0,_0x267a91&&_0x267a91['@external']){const _0x4356ae=_0x267a91['@external'],_0x5af7f1=this['_getExternalAuthor'](_0x4356ae['authorName']);_0x4564a3['authoredAt']=_0x4356ae['createdAt'],_0x4564a3['author']=_0x5af7f1,_0x4564a3['isExternal']=!0x0;}else _0x4564a3['authoredAt']=_0x7ab547['createdAt'];switch(_0x7ab547['data']&&(_0x4564a3['data']=_0x7ab547['data']),_0x7ab547['attributes']&&(_0x4564a3['attributes']=_0x7ab547['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4564a3['_saved']=!0x0),this['_suggestionState']['get'](_0x4564a3)){case'notReady':this['_suggestionState']['set'](_0x4564a3,'dataReady');break;case'markerReady':_0x4564a3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4564a3])),this['_refreshSuggestionsChain'](new Set([_0x4564a3])),this['_suggestionState']['set'](_0x4564a3,'ready'),this['fire']('suggestionLoaded',_0x4564a3)):this['_suggestionState']['set'](_0x4564a3,'removed');}return _0x4564a3;}['acceptSuggestion'](_0x3e6a74){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1adfc2 of _0x3e6a74['getAllAdjacentSuggestions']())_0x1adfc2['accept']();});});}['discardSuggestion'](_0x1ef7b8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x336e70 of _0x1ef7b8['getAllAdjacentSuggestions']())_0x336e70['discard']();});});}['enableCommand'](_0x1e1582,_0x451459){const _0x198d15=this['editor']['commands']['get'](_0x1e1582);if(!_0x198d15)throw new _0x5a4829('track-changes-command-not-found',this,{'commandName':_0x1e1582});if(this['_enabledCommands']['has'](_0x198d15))throw new _0x5a4829('track-changes-enable-command-twice',this,{'commandName':_0x1e1582});this['_enabledCommands']['add'](_0x198d15),_0x451459&&_0x198d15['on']('execute',(_0x48006a,_0x5bc8fa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc8fa['length']>0x0&&_0x5bc8fa[_0x5bc8fa['length']-0x1]&&_0x5bc8fa[_0x5bc8fa['length']-0x1]['forceDefaultExecution']?_0x5bc8fa['pop']():(_0x48006a['return']=_0x451459((..._0x35c156)=>_0x198d15['execute'](..._0x35c156,{'forceDefaultExecution':!0x0}),..._0x5bc8fa),_0x48006a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc2c14b){let _0xc96a42,_0x5c1460;const _0x4f9e19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc96a42=_0xc2c14b();}catch(_0x61c3fb){_0x5c1460=_0x61c3fb;}return _0x4f9e19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c1460&&_0x5a4829['rethrowUnexpectedError'](_0x5c1460,this),_0xc96a42;}['markInsertion'](_0x3e28af,_0x5db758=null,_0x3493b1={}){if(_0x3e28af['isCollapsed'])return null;const _0x1e886e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3493b1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c2eaa,meta:_0x583bf0}of this['_findSuggestions'](_0x3e28af,'insertion'))if(_0x583bf0['isOwn']){if(!_0x583bf0['isNextTo']){if(_0x583bf0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!oe(_0x5c2eaa,_0x3493b1))continue;return _0x5c2eaa;}if(oe(_0x5c2eaa,_0x3493b1))return _0x5c2eaa;this['_breakSuggestionMarker'](_0x5c2eaa,_0x3e28af['start'],_0x3e28af['end']);break;}if(_0x5db758==_0x5c2eaa['subType']&&oe(_0x5c2eaa,_0x3493b1)){const _0x43d22d=_0x5c2eaa['getFirstRange']();return _0x43d22d['start']['isEqual'](_0x3e28af['end'])?this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x3e28af['start'],_0x43d22d['end'])):this['_setSuggestionRange'](_0x5c2eaa,this['_model']['createRange'](_0x43d22d['start'],_0x3e28af['end'])),_0x5c2eaa;}}const _0x3933cd=_0x3caa75(),_0x39bfd5=_0x1e886e['id'],_0xe00286=_0x5db758?'insertion:'+_0x5db758:'insertion',_0x197382=this['_setSuggestionData']({'id':_0x3933cd,'type':_0xe00286,'createdAt':new Date(),'authorId':_0x39bfd5,'attributes':_0x3493b1});return this['_addSuggestionMarker'](_0xe00286,_0x3933cd,_0x39bfd5,_0x3e28af),_0x197382;}['markMultiRangeInsertion'](_0x3cfb00,_0x4d6e04='multi',_0x178159={}){const _0x10418f=this['editor']['plugins']['get']('Users')['me'],_0x2aa5d0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4d6e04,'join');this['_trackingSessionId']&&(_0x178159['trackingSessionId']=this['_trackingSessionId']);for(const _0x19d6b2 of this['getSuggestions']())if(_0x19d6b2['author']['id']==_0x10418f['id']&&'insertion'==_0x19d6b2['type']&&_0x19d6b2['subType']==_0x4d6e04&&oe(_0x19d6b2,_0x178159)&&(_0x2aa5d0(_0x19d6b2['getRanges'](),_0x3cfb00)||_0x2aa5d0(_0x3cfb00,_0x19d6b2['getRanges']()))){for(const _0x579c22 of _0x3cfb00)_0x19d6b2['addRange'](_0x579c22);return _0x19d6b2;}for(const {suggestion:_0x324cbe,meta:_0x23c346}of this['_findSuggestions'](_0x3cfb00,'insertion')){if(!_0x23c346['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23c346['containsRangeInObject'])continue;if(!oe(_0x324cbe,_0x178159))continue;let _0x16897c=!0x0;for(const _0x2231d3 of _0x324cbe['getRanges']())for(const _0x1899f0 of _0x3cfb00)if(!_0x2231d3['containsRange'](_0x1899f0)){_0x16897c=!0x1;break;}if(_0x16897c)return _0x324cbe;}const _0x499ced=_0x3caa75(),_0x41b44b=_0x10418f['id'],_0x53a215='insertion:'+_0x4d6e04,_0x2fe202=this['_setSuggestionData']({'id':_0x499ced,'type':_0x53a215,'createdAt':new Date(),'authorId':_0x41b44b,'attributes':_0x178159});for(const _0x5b5652 of _0x3cfb00)this['_addSuggestionMarker'](_0x53a215,_0x499ced,_0x41b44b,_0x5b5652,R['getMultiRangeId']());return _0x2fe202;}['markInlineFormat'](_0xd37d8e,_0x4724d1,_0x5694d0=null,_0x31f661={}){if(_0x5694d0=_0x5694d0||Qt(_0x4724d1),_0xd37d8e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x31f661['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52af9f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');return this['forceDefaultExecution'](()=>_0x52af9f([_0xd37d8e],_0x4724d1,_0x31f661)),null;}const _0xdf692f=this['editor']['plugins']['get']('Users')['me'],_0x60baf9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1175b5,meta:_0x21d436}of this['_findSuggestions'](_0xd37d8e,'insertion'))_0x21d436['isOwn']&&!_0x21d436['isInsideObject']&&_0x60baf9['push'](..._0x1175b5['getRanges']());}const _0x226e58=function(_0x333d8f,_0x55639e){const _0x4b44d8=[];for(const _0x52897d of _0x55639e){const _0x1652c0=_0x333d8f['getIntersection'](_0x52897d);_0x1652c0&&_0x4b44d8['push'](_0x1652c0);}return _0x4b44d8;}(_0xd37d8e,_0x60baf9),_0x3c3f55=function(_0x2d153a,_0x2eb626){const _0x637263=[_0x2d153a];for(const _0x382bb7 of _0x2eb626){let _0x245968=0x0;for(;_0x245968<_0x637263['length'];){const _0x3bb4a2=_0x637263[_0x245968]['getDifference'](_0x382bb7);_0x637263['splice'](_0x245968,0x1,..._0x3bb4a2),_0x245968+=_0x3bb4a2['length'];}}return _0x637263;}(_0xd37d8e,_0x60baf9);_0x226e58['length']&&this['_model']['change'](()=>{for(const _0x125b2e of _0x226e58){const _0x14845a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5694d0,'accept');this['forceDefaultExecution'](()=>_0x14845a([_0x125b2e],_0x4724d1,_0x31f661));}});for(const _0x21d642 of _0x3c3f55){let _0x51dd1b=null,_0x3ae0d6=_0x21d642['start'],_0x187e7e=_0x21d642['end'];for(const {suggestion:_0x38dd01,meta:_0x18df74}of this['_findSuggestions'](_0x21d642,'formatInline')){if(!_0x18df74['isOwn'])continue;if(_0x38dd01['subType']!=_0x5694d0)continue;if(!oe(_0x38dd01,_0x31f661))continue;const _0x49c858=_0x38dd01['getFirstRange']();if(_0x49c858['containsRange'](_0x21d642,!0x0))return null;_0x3ae0d6=_0x3ae0d6['isBefore'](_0x49c858['start'])?_0x3ae0d6:_0x49c858['start'],_0x187e7e=_0x187e7e['isAfter'](_0x49c858['end'])?_0x187e7e:_0x49c858['end'],_0x51dd1b?_0x49c858['start']['isBefore'](_0x51dd1b['getFirstRange']()['start'])?(_0x51dd1b['removeMarkers'](),_0x51dd1b=_0x38dd01):_0x38dd01['removeMarkers']():_0x51dd1b=_0x38dd01;}const _0x1d2d94=this['_model']['createRange'](_0x3ae0d6,_0x187e7e);if(_0x51dd1b)this['_setSuggestionRange'](_0x51dd1b,_0x1d2d94);else{const _0x58c002=_0x3caa75(),_0x3415d9=_0xdf692f['id'];this['_setSuggestionData']({'id':_0x58c002,'type':'formatInline:'+_0x5694d0,'data':_0x4724d1,'createdAt':new Date(),'authorId':_0x3415d9,'attributes':_0x31f661}),this['_addSuggestionMarker']('formatInline:'+_0x5694d0,_0x58c002,_0x3415d9,_0x1d2d94);}}return null;}['markBlockFormat'](_0x1a561d,_0x2f1da8,_0xdbe820=[],_0x561ce3=null,_0x4c5277={}){_0x2f1da8['formatGroupId']||(_0x2f1da8['formatGroupId']=_0x2f1da8['commandName']),_0x2f1da8['multipleBlocks']=_0x1a561d['is']('range'),_0x561ce3=_0x561ce3||Qt(_0x2f1da8);const _0x13c87c=_0xdbe820['map'](_0x2b103f=>ie(_0x2b103f,this['_model'])),_0x2bafef=_0x1a561d['is']('range')?_0x1a561d:ie(_0x1a561d,this['_model']);if(this['_trackingSessionId']&&(_0x4c5277['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5b936f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5b936f([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}_0x13c87c['push'](_0x2bafef);let _0x2601a2=!0x0;for(const _0x94eef1 of _0x13c87c)if(!this['_rangeIsInLocalUserInsertion'](_0x94eef1)){_0x2601a2=!0x1;break;}if(_0x2601a2&&'always'!==this['_trackFormatChanges']){const _0x5cb890=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x561ce3,'accept');return this['forceDefaultExecution'](()=>_0x5cb890([_0x2bafef],_0x2f1da8,_0x4c5277)),null;}let _0x545fb7=null,_0xaf8545=_0x2bafef['start'],_0x13fde8=_0x2bafef['end'];for(const {suggestion:_0x217503,meta:_0x333906}of this['_findSuggestions'](_0x2bafef,'formatBlock')){if(!_0x333906['isOwn'])continue;if(_0x333906['isNextTo']||_0x333906['containsRangeInObject']||_0x333906['isInsideObject'])continue;if(_0x217503['data']['formatGroupId']!=_0x2f1da8['formatGroupId'])continue;if(!oe(_0x217503,_0x4c5277))continue;const _0x444707=_0x217503['getFirstRange']();if(_0x217503['subType']==_0x561ce3){if(_0x444707['containsRange'](_0x2bafef,!0x0))return null;_0xaf8545=_0xaf8545['isBefore'](_0x444707['start'])?_0xaf8545:_0x444707['start'],_0x13fde8=_0x13fde8['isAfter'](_0x444707['end'])?_0x13fde8:_0x444707['end'],_0x545fb7?_0x444707['start']['isBefore'](_0x545fb7['getFirstRange']()['start'])?(_0x545fb7['removeMarkers'](),_0x545fb7=_0x217503):_0x217503['removeMarkers']():_0x545fb7=_0x217503;}else{const _0x287370=_0x2bafef['getIntersection'](_0x444707);this['_cutOutSuggestionMarker'](_0x217503,_0x287370);}}const _0x1462d9=this['editor']['plugins']['get']('Users')['me'],_0x5a5b45=_0x3caa75(),_0x4b2028=_0x1462d9['id'];if(_0x545fb7)return this['_setSuggestionRange'](_0x545fb7,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x545fb7;{const _0x31285c=this['_setSuggestionData']({'id':_0x5a5b45,'type':'formatBlock:'+_0x561ce3,'data':_0x2f1da8,'createdAt':new Date(),'authorId':_0x4b2028,'attributes':_0x4c5277});return this['_addSuggestionMarker']('formatBlock:'+_0x561ce3,_0x5a5b45,_0x4b2028,this['_model']['createRange'](_0xaf8545,_0x13fde8)),_0x31285c;}}['markMultiRangeBlockFormat'](_0x515830,_0x42e4ca,_0x258776=[],_0x3a9c94=null,_0x21b92b={}){_0x42e4ca['formatGroupId']||(_0x42e4ca['formatGroupId']=_0x42e4ca['commandName']);const _0x390f45=_0x515830[0x0];_0x42e4ca['multipleBlocks']=_0x390f45['is']('range'),_0x3a9c94=_0x3a9c94||Qt(_0x42e4ca);const _0x45042c=_0x258776['map'](_0xdceed9=>ie(_0xdceed9,this['_model'])),_0x4d7f2a=_0x390f45['is']('range')?_0x515830:_0x515830['map'](_0x18d101=>ie(_0x18d101,this['_model']));if(this['_trackingSessionId']&&(_0x21b92b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x178abf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x178abf(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}_0x45042c['push'](..._0x4d7f2a);let _0x8bfd24=!0x0;for(const _0x39fb33 of _0x45042c)if(!this['_rangeIsInLocalUserInsertion'](_0x39fb33)){_0x8bfd24=!0x1;break;}if(_0x8bfd24&&'always'!==this['_trackFormatChanges']){const _0x2eb9fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'accept');return this['forceDefaultExecution'](()=>_0x2eb9fe(_0x4d7f2a,_0x42e4ca,_0x21b92b)),null;}const _0x3a9671=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d15d4 of this['getSuggestions']()){const _0xc180ea=_0x4d15d4['data'];if(_0x4d15d4['author']['id']!=_0x3a9671['id'])continue;if('formatBlock'!=_0x4d15d4['type']||_0xc180ea['formatGroupId']!=_0x42e4ca['formatGroupId'])continue;if(!oe(_0x4d15d4,_0x21b92b))continue;const _0x8e27b0=_0x4d15d4['subType']==_0x3a9c94;for(let _0x5d9389=0x0;_0x5d9389<_0x4d7f2a['length'];_0x5d9389++){const _0x45ba5f=_0x4d7f2a[_0x5d9389];for(const _0x5f30ed of _0x4d15d4['getMarkers']()){const _0x16e09e=_0x5f30ed['getRange']();if(_0x45ba5f['isEqual'](_0x16e09e)){_0x8e27b0?(_0x4d7f2a['splice'](_0x5d9389,0x1),_0x5d9389--):_0x4d15d4['removeMarker'](_0x5f30ed['name']);break;}}}}if(0x0==_0x4d7f2a['length'])return null;const _0x18936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a9c94,'join');for(const _0x1db8f6 of this['getSuggestions']()){const _0x108813=_0x1db8f6['data'];if(_0x1db8f6['author']['id']==_0x3a9671['id']&&('formatBlock'==_0x1db8f6['type']&&_0x108813['formatGroupId']==_0x42e4ca['formatGroupId']&&_0x1db8f6['subType']==_0x3a9c94&&oe(_0x1db8f6,_0x21b92b)&&(_0x18936b(_0x1db8f6['getRanges'](),_0x4d7f2a)||_0x18936b(_0x4d7f2a,_0x1db8f6['getRanges']())))){for(const _0x44b8c4 of _0x4d7f2a)_0x1db8f6['addRange'](_0x44b8c4);return _0x1db8f6;}}const _0x1abff6=_0x3caa75(),_0x2e99cf=_0x3a9671['id'],_0x2292f2='formatBlock:'+_0x3a9c94,_0x5913cb=this['_setSuggestionData']({'id':_0x1abff6,'type':_0x2292f2,'data':_0x42e4ca,'createdAt':new Date(),'authorId':_0x2e99cf,'attributes':_0x21b92b});for(const _0x4cfca7 of _0x4d7f2a)this['_addSuggestionMarker'](_0x2292f2,_0x1abff6,_0x2e99cf,_0x4cfca7,R['getMultiRangeId']());return _0x5913cb;}['markDeletion'](_0x31ae08,_0x492294=null,_0x31019e={}){if(_0x31ae08['isCollapsed'])return null;const _0x45faa9=this['editor']['plugins']['get']('Users')['me'],_0x1e8b6f=new _0x3d40b9(_0x31ae08['start'],_0x31ae08['end']);this['_trackingSessionId']&&(_0x31019e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x23a84e,meta:_0x505617}of this['_findSuggestions'](_0x1e8b6f,'insertion'))if(_0x505617['isOwn']&&!_0x505617['isNextTo']){if(_0x23a84e['isMultiRange']){const _0x4f6d5e=_0x23a84e['getRanges']()['filter'](_0x449a32=>'$graveyard'!=_0x449a32['root']['rootName']);_0x4f6d5e['every'](_0x46e391=>_0x1e8b6f['containsRange'](_0x46e391,!0x0))&&_0x23a84e['discard']();if(_0x4f6d5e['some'](_0xd47ee6=>_0xd47ee6['containsRange'](_0x1e8b6f,!0x0))){const _0x43dada=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x492294,'accept');return this['forceDefaultExecution'](()=>_0x43dada([_0x1e8b6f],null,_0x31019e)),null;}}else{const _0x4f32d6=_0x1e8b6f['getIntersection'](_0x23a84e['getFirstRange']());null!==_0x4f32d6&&_0x23a84e['_onDiscard']([_0x4f32d6],null,_0x31019e);}}if(_0x1e8b6f['detach'](),_0x1e8b6f['isCollapsed']||'$graveyard'==_0x1e8b6f['root']['rootName'])return null;let _0x490d0c=null,_0x447fd8=_0x1e8b6f['start'],_0x454851=_0x1e8b6f['end'];const _0x1344f6=this['_findSuggestions'](_0x1e8b6f,'deletion');for(const {suggestion:_0x2c9de7,meta:_0x35a6a0}of _0x1344f6){const _0x45f6cd=this['_model']['createRange'](_0x447fd8,_0x454851);if(_0x35a6a0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x35a6a0['containsRangeInObject']&&!_0x35a6a0['isInsideObject'])){if(_0x2c9de7['isMultiRange']){if(!oe(_0x2c9de7,_0x31019e))continue;let _0x19ab57=!0x0;for(const _0x4260f2 of _0x2c9de7['getRanges']()){if(_0x4260f2['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;_0x45f6cd['containsRange'](_0x4260f2)||(_0x19ab57=!0x1);}_0x19ab57&&_0x2c9de7['discard']();}else{const _0x188f01=_0x2c9de7['getFirstRange']();if(_0x188f01['containsRange'](_0x45f6cd,!0x0))return _0x2c9de7;if(!oe(_0x2c9de7,_0x31019e)){_0x45f6cd['containsRange'](_0x188f01)?_0x2c9de7['removeMarkers']():_0x188f01['containsPosition'](_0x447fd8)?_0x447fd8=_0x188f01['end']:_0x188f01['containsPosition'](_0x454851)&&(_0x454851=_0x188f01['start']);continue;}_0x447fd8=_0x447fd8['isBefore'](_0x188f01['start'])?_0x447fd8:_0x188f01['start'],_0x454851=_0x454851['isAfter'](_0x188f01['end'])?_0x454851:_0x188f01['end'],_0x31019e=Object['assign']({},_0x2c9de7['attributes']),_0x490d0c?_0x188f01['start']['isBefore'](_0x490d0c['getFirstRange']()['start'])?(_0x490d0c['removeMarkers'](),_0x490d0c=_0x2c9de7):_0x2c9de7['removeMarkers']():_0x490d0c=_0x2c9de7;}}}if(_0x490d0c)return this['_setSuggestionRange'](_0x490d0c,this['_model']['createRange'](_0x447fd8,_0x454851)),_0x490d0c;{const _0x6ad9f7=_0x3caa75(),_0x3532a0=this['_model']['createRange'](_0x447fd8,_0x454851),_0x50216f=_0x45faa9['id'],_0xd4da17=_0x492294?'deletion:'+_0x492294:'deletion',_0x82fc0f=this['_setSuggestionData']({'id':_0x6ad9f7,'type':_0xd4da17,'createdAt':new Date(),'authorId':_0x50216f,'attributes':_0x31019e});return this['_addSuggestionMarker'](_0xd4da17,_0x6ad9f7,_0x50216f,_0x3532a0),_0x82fc0f;}}['markMultiRangeDeletion'](_0x2ef62f,_0x48924d='multi',_0x115ca7={}){const _0x530f28=this['editor']['plugins']['get']('Users')['me'],_0x1bc3da=_0x2ef62f['map'](_0x333fda=>new _0x3d40b9(_0x333fda['start'],_0x333fda['end'])),_0x2a5321=new Set();this['_trackingSessionId']&&(_0x115ca7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17b2a7,meta:_0x469d2e}of this['_findSuggestions'](_0x1bc3da,'insertion'))_0x469d2e['isOwn']&&!_0x469d2e['isNextTo']&&_0x2a5321['add'](_0x17b2a7);for(const _0x27b352 of _0x2a5321)if(_0x27b352['isMultiRange']){const _0x2f4b6f=_0x27b352['getRanges']();(!_0x27b352['attributes']||!_0x27b352['attributes']['skipNestingCheck'])&&(_0x2f4b6f['every'](_0x20c114=>_0x1bc3da['some'](_0xf973f9=>_0xf973f9['containsRange'](_0x20c114,!0x0)))&&_0x27b352['discard']());if(_0x1bc3da['every'](_0x5b9418=>_0x2f4b6f['some'](_0x58dd5b=>_0x58dd5b['containsRange'](_0x5b9418,!0x0)))){const _0x1debbb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x1debbb(_0x2ef62f,null,_0x115ca7)),null;}}else{const _0x26fcf8=_0x27b352['getFirstRange']();_0x1bc3da['some'](_0x3255ee=>_0x3255ee['containsRange'](_0x26fcf8,!0x0))&&_0x27b352['discard']();if(_0x1bc3da['every'](_0xe941dc=>_0x26fcf8['containsRange'](_0xe941dc,!0x0))){const _0x2c05ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'accept');return this['forceDefaultExecution'](()=>_0x2c05ae(_0x1bc3da,null,_0x115ca7)),null;}}const _0x3f9c57=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48924d,'join');let _0x5e7e60=null;for(const _0x1052db of this['getSuggestions']())if(_0x1052db['author']['id']==_0x530f28['id']&&_0x1052db['isInContent']&&'deletion'==_0x1052db['type']&&_0x1052db['subType']==_0x48924d&&oe(_0x1052db,_0x115ca7)&&(_0x3f9c57(_0x1052db['getRanges'](),_0x1bc3da)||_0x3f9c57(_0x1bc3da,_0x1052db['getRanges']()))){if(_0x5e7e60){if(_0x1052db['commentThread']&&_0x1052db['commentThread']['length'])continue;for(const _0x400240 of _0x1052db['getRanges']())_0x5e7e60['isIntersectingWithRange'](_0x400240)||_0x5e7e60['addRange'](_0x400240);_0x1052db['removeMarkers']();}else{_0x5e7e60=_0x1052db;for(const _0x26c467 of _0x1bc3da)_0x1052db['isIntersectingWithRange'](_0x26c467)||_0x1052db['addRange'](_0x26c467);}}if(_0x5e7e60)return _0x5e7e60;_0x2a5321['clear']();for(const {suggestion:_0x16281b,meta:_0x187cc0}of this['_findSuggestions'](_0x1bc3da,'deletion'))_0x187cc0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x187cc0['containsRangeInObject']&&!_0x187cc0['isInsideObject'])&&oe(_0x16281b,_0x115ca7)&&_0x2a5321['add'](_0x16281b);for(const _0x25dc8d of _0x2a5321){const _0x5040c7=_0x25dc8d['getRanges']();if(!_0x115ca7||!_0x115ca7['skipNestingCheck']){if(_0x1bc3da['every'](_0x4bade7=>_0x5040c7['some'](_0x26cf1b=>_0x26cf1b['containsRange'](_0x4bade7,!0x0))))return _0x25dc8d;}(!_0x25dc8d['attributes']||!_0x25dc8d['attributes']['skipNestingCheck'])&&(_0x5040c7['every'](_0x2eb29b=>_0x1bc3da['some'](_0x546674=>_0x546674['containsRange'](_0x2eb29b,!0x0)))&&_0x25dc8d['discard']());}const _0x49c458=_0x3caa75(),_0x24174e=_0x530f28['id'],_0x3763f2='deletion:'+_0x48924d,_0x45a27b=this['_setSuggestionData']({'id':_0x49c458,'type':_0x3763f2,'createdAt':new Date(),'authorId':_0x24174e,'attributes':_0x115ca7});for(const _0x5323e3 of _0x1bc3da)_0x5323e3['detach'](),_0x5323e3['isCollapsed']||'$graveyard'==_0x5323e3['root']['rootName']||this['_addSuggestionMarker'](_0x3763f2,_0x49c458,_0x24174e,_0x5323e3,R['getMultiRangeId']());return _0x45a27b;}['markAttributeChange'](_0x552e24,_0x29a834,_0x198a1c,_0x5b4101,_0x421965){if(_0x552e24['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2504ba=this['editor']['plugins']['get']('Users')['me']['id'],_0x1dc932=Array['from'](this['_suggestions']['values']())['filter'](_0x435b8e=>'attribute'==_0x435b8e['type']&&_0x435b8e['data']['key']==_0x29a834&&_0x435b8e['isIntersectingWithRange'](_0x552e24));if(this['_trackingSessionId']&&(_0x421965['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x167dc0=this['_findSuggestions'](_0x552e24,'insertion')['filter'](({meta:_0x7d7fd8})=>_0x7d7fd8['isOwn']&&!_0x7d7fd8['isInsideObject']&&!_0x7d7fd8['isNextTo'])['map'](({suggestion:_0x2aa14b})=>_0x2aa14b);_0x1dc932['unshift'](..._0x167dc0);}const _0x22416c=new Map([[_0x552e24,_0x198a1c]]);for(const _0x13fff6 of _0x1dc932){const _0x897581='attribute'==_0x13fff6['type']?_0x13fff6['data']['oldValue']:void 0x0,_0x52aee7=_0x13fff6['getFirstRange'](),_0x582c72=Array['from'](_0x22416c['keys']())['find'](_0x236e48=>_0x236e48['isIntersecting'](_0x52aee7));if(!_0x582c72)continue;const _0x562475=_0x582c72['getDifference'](_0x52aee7);this['_isBlockAttribute'](_0x29a834)&&'insertion'==_0x13fff6['type']&&0x0!=_0x562475['length']||(_0x22416c['delete'](_0x582c72),_0x562475['forEach'](_0x376f65=>{_0x22416c['set'](_0x376f65,_0x198a1c);}),'insertion'!=_0x13fff6['type']&&_0x897581!=_0x5b4101&&_0x22416c['set'](_0x582c72['getIntersection'](_0x52aee7),_0x897581));}const _0x210de8=[];for(const [_0x2eed45,_0x1b3e75]of _0x22416c){const _0x525032=_0x3caa75(),_0x519a95={'key':_0x29a834,'oldValue':_0x1b3e75,'newValue':_0x5b4101};_0x29a834['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':_0x29a834});const _0x55c39d=('attribute:'+(_0x29a834+'|'+Qt({'newValue':_0x5b4101})))['substring'](0x0,0x3c),_0x15106f=this['_setSuggestionData']({'id':_0x525032,'type':_0x55c39d,'data':_0x519a95,'createdAt':new Date(),'authorId':_0x2504ba,'attributes':_0x421965});_0x210de8['push'](_0x15106f),this['_addSuggestionMarker'](_0x55c39d,_0x525032,_0x2504ba,_0x2eed45);}return _0x210de8;}['enableDefaultAttributesIntegration'](_0x50de3f){this['enableCommand'](_0x50de3f,(_0xa64f68,..._0x424aed)=>{this['recordAttributeChanges'](()=>{_0xa64f68(..._0x424aed);});});}['registerBlockAttribute'](_0x5e77b0){this['_blockAttributeKeys']['add'](_0x5e77b0);}['registerInlineAttribute'](_0x207321){this['_inlineAttributeKeys']['add'](_0x207321);}['startTrackingSession'](_0x5d024e){return this['_trackingSessionId']=void 0x0!==_0x5d024e?_0x5d024e:_0x3caa75(),this['_trackingSessionId'];}['_getAttributeKey'](_0x450a65){return'attribute'==_0x450a65['type']?ae(_0x450a65['subType']):null;}['_applyOperationsAsSuggestions'](_0x522c50){if(0x0==_0x522c50['length'])return;const _0x4a0ff4=this['editor'],_0x2c27d3=_0x4a0ff4['plugins']['get'](_0x26060f);let _0x3c9efd,_0x5d8b2e=!0x0;for(const _0x4398f7 in _0x522c50[0x0]){const _0x5df374=_0x522c50[0x0][_0x4398f7];if((_0x5df374 instanceof _0x7685d4||_0x5df374 instanceof _0x4e5d4b)&&_0x5df374['root']['is']('documentFragment')){_0x5d8b2e=!0x1,_0x3c9efd=_0x5df374['root'];break;}}_0x4a0ff4['model']['change'](_0x11630d=>{const _0x546fe8=new Set();for(let _0x67d238=0x0;_0x67d238<_0x522c50['length'];_0x67d238++){const _0x3a6acb=_0x522c50[_0x67d238];if(_0x3a6acb['baseVersion']=_0x5d8b2e?_0x4a0ff4['model']['document']['version']:null,_0x3a6acb['isDocumentOperation']=_0x5d8b2e,_0x2c27d3['isMarkedRemoveOperation'](_0x3a6acb)){const _0x3f51a7=te(_0x3a6acb['newRange'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markDeletion'](_0x3f51a7);else{const _0x14ff84='suggestion:deletion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x14ff84,_0x3f51a7);}}else switch(_0x3a6acb['type']){case'rename':{const _0x4c8c92=_0x3a6acb['oldName'],_0x4853f2=_0x3a6acb['newName'];if(_0x4c8c92==_0x4853f2)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x5a3ee3='$elementName',_0x5d0f1f=_0x3a6acb['position'],_0x42424c=_0x4a0ff4['model']['createRange'](_0x5d0f1f,_0x4a0ff4['model']['createPositionAt'](_0x5d0f1f['nodeAfter'],'end'));if(_0x5d8b2e)this['markAttributeChange'](_0x42424c,_0x5a3ee3,_0x4c8c92,_0x4853f2,{'groupId':_0x3caa75()});else{const _0x45a330='suggestion:attribute:'+_0x5a3ee3+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x45a330,_0x42424c);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5683d2=_0x3a6acb['oldValue'],_0x49acd0=_0x3a6acb['newValue'];if(_0x5683d2==_0x49acd0)break;_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1cd1d5=_0x3a6acb['key'];if(!this['_isRegisteredAttribute'](_0x1cd1d5))break;const _0x3202c6=te(_0x3a6acb['range'],_0x4a0ff4['model']);if(_0x5d8b2e)this['markAttributeChange'](_0x3202c6,_0x1cd1d5,_0x5683d2,_0x49acd0,{'groupId':_0x3caa75()});else{const _0x48712a='suggestion:attribute:'+_0x1cd1d5+':'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x48712a,_0x3202c6);}break;}case'insert':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x13250c=_0x522c50[_0x67d238+0x1]&&'move'==_0x522c50[_0x67d238+0x1]['type'];if(!_0x5d8b2e&&_0x13250c&&ce(_0x3c9efd,_0x3a6acb),_0x13250c)break;const _0x2ad56d=_0x3a6acb['position'],_0x3efd76=_0x3a6acb['howMany'],_0x458bab=te(_0x4a0ff4['model']['createRange'](_0x2ad56d,_0x2ad56d['getShiftedBy'](_0x3efd76)),_0x4a0ff4['model']);if(_0x5d8b2e)this['markInsertion'](_0x458bab);else{const _0xf9503e='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0xf9503e,_0x458bab);}break;}case'split':{_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);const _0x1b4b22=_0x3a6acb['splitPosition'],_0x1be8e=_0x3a6acb['moveTargetPosition'],_0x257908=_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e);if(_0x5d8b2e)this['markInsertion'](_0x4a0ff4['model']['createRange'](_0x1b4b22,_0x1be8e));else{const _0x2874e3='suggestion:insertion:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x2874e3,_0x257908);}break;}case'move':if(_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb),!_0x5d8b2e&&_0x522c50[_0x67d238-0x1]&&'insert'==_0x522c50[_0x67d238-0x1]['type']&&ce(_0x3c9efd,_0x3a6acb),!_0x5d8b2e){const _0x2dd983=_0x3a6acb['getMovedRangeStart'](),_0x32f793=_0x3a6acb['howMany'];for(let _0xee6923=0x0;_0xee6923<_0x32f793;_0xee6923++){const _0x2383e3=_0x2dd983['getShiftedBy'](_0xee6923)['nodeAfter'];_0x546fe8['add'](_0x2383e3);}}break;case'remove':if(_0x5d8b2e)_0x11630d['batch']['addOperation'](_0x3a6acb),_0x4a0ff4['model']['applyOperation'](_0x3a6acb);else{const _0x4b6127=_0x3a6acb['sourcePosition'],_0x22326f=_0x3a6acb['howMany'],_0x1f306f=new _0x2a730d(_0x4b6127,_0x22326f);_0x11630d['batch']['addOperation'](_0x1f306f),_0x4a0ff4['model']['applyOperation'](_0x1f306f);}}}for(const _0x49b105 of _0x546fe8){const _0x2ad6b1=_0x4a0ff4['model']['createRangeOn'](_0x49b105),_0x12ac53='suggestion:formatBlock:$fakeWrap:'+_0x3caa75()+':$aiSuggestion';_0x3c9efd['markers']['set'](_0x12ac53,te(_0x2ad6b1,_0x4a0ff4['model']));}});}['_setSuggestionRange'](_0x142850,_0x53649f){const _0x5047b8=_0x142850['getFirstMarker']();this['_model']['change'](_0xabb34=>{_0xabb34['updateMarker'](_0x5047b8,{'range':_0x53649f});});}['_addThreadToSuggestion'](_0x43bc5e){const _0x2a45f4=_0x43bc5e['id'],_0x5bc942=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a45f4)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5bc942,'threadId':_0x2a45f4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x272ef4=this['_commentsRepository']['getCommentThread'](_0x2a45f4);_0x272ef4['unbind']('isRemovable'),_0x272ef4['isRemovable']=!0x1,_0x43bc5e['commentThread']=_0x272ef4;}['_checkSuggestionCorrectness'](_0x3989c0,_0x11cdcf,_0x329c63,_0x273d4d){if(_0x3989c0['type']!=_0x11cdcf||_0x3989c0['subType']!=_0x329c63||_0x3989c0['creator']['id']!=_0x273d4d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5a4829('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40ec1c,_0xe668b0){const _0x5fc325=_0x40ec1c['getFirstRange']();if(_0xe668b0['isEqual'](_0x5fc325))_0x40ec1c['removeMarkers']();else{if(_0x5fc325['containsRange'](_0xe668b0)){const _0x325d90=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x325d90));const _0x58a81e=_0x3caa75(),_0x3be0fb=_0x40ec1c['creator']['id'],_0x2a7eb0=_0x40ec1c['type']+':'+_0x40ec1c['subType'];this['_setSuggestionData']({'id':_0x58a81e,'type':_0x2a7eb0,'createdAt':new Date(),'authorId':_0x3be0fb,'data':_0x40ec1c['data'],'attributes':_0x40ec1c['attributes']});const _0x31e18a=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after'),_0x19ba6e=this['_model']['createRange'](_0x31e18a,_0x5fc325['end']);this['_addSuggestionMarker'](_0x2a7eb0,_0x58a81e,_0x3be0fb,_0x19ba6e);}else{if(_0x5fc325['containsPosition'](_0xe668b0['start'])){const _0x5ba514=this['_model']['createPositionAt'](_0xe668b0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x5fc325['start'],_0x5ba514));}else{const _0x128b3e=this['_model']['createPositionAt'](_0xe668b0['end']['parent'],'after');this['_setSuggestionRange'](_0x40ec1c,this['_model']['createRange'](_0x128b3e,_0x5fc325['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f7655){for(const {suggestion:_0x276543,meta:_0x31e533}of this['_findSuggestions'](_0x2f7655,'insertion')){if(!_0x31e533['isOwn'])continue;const _0x39d130=_0x276543['getRanges']();for(const _0x5c45ea of _0x39d130)if(!_0x2f7655['getDifference'](_0x5c45ea)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x16fcb8){return this['editor']['plugins']['get']('Users')['getUser'](_0x16fcb8);}['_getExternalAuthor'](_0x1e3d6f){const _0x28a3a2=this['editor']['plugins']['get']('Users'),_0x4dd820=_0x5e961d('external:'+_0x1e3d6f),_0x32fc82=_0x28a3a2['getUser'](_0x4dd820);return _0x32fc82||_0x28a3a2['addUser']({'id':_0x4dd820,'name':_0x1e3d6f});}['_createSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x28ce16,_0x5b33da,_0x7819f0){const _0x540e9f=this['_getAuthorFromId'](_0x28ce16);if(!_0x540e9f)throw new _0x5a4829('track-changes-user-not-found',this,{'authorId':_0x28ce16,'suggestionId':_0x488dde});const _0x197d27=this['_suggestionFactory']['buildSuggestion'](_0x5354c9,_0x1250c3,_0x488dde,_0x540e9f,_0x5b33da,_0x5dd741=>{this['_updateSuggestionData'](_0x488dde,{'attributes':_0x5dd741});const _0x38d26e=this['getSuggestion'](_0x488dde);this['_joinWithAdjacentSuggestions'](new Set([_0x38d26e])),this['_refreshSuggestionsChain'](new Set([_0x38d26e]));},_0x7819f0);return this['listenTo'](_0x197d27,'accept',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x197d27,'discard',()=>{this['_updateSuggestionData'](_0x488dde,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x488dde,_0x197d27),this['_suggestionState']['set'](_0x197d27,'notReady'),_0x197d27;}['_splitMarkerName'](_0x3b0293){const _0x20036c=_0x3b0293['split'](':');return{'group':_0x20036c[0x0],'type':_0x20036c[0x1],'subType':_0x20036c['length']>=0x5?_0x20036c[0x2]:null,'id':_0x20036c['length']<0x5?_0x20036c[0x2]:_0x20036c[0x3],'authorId':_0x20036c['length']<0x5?_0x20036c[0x3]:_0x20036c[0x4],'markerCount':0x6==_0x20036c['length']?_0x20036c[0x5]:null};}['_breakSuggestionMarker'](_0x49aa40,_0x10a344,_0x47bd27){const _0x1bea4a=_0x49aa40['getFirstRange'](),_0x48392b=_0x1bea4a['start'],_0x3b459e=_0x1bea4a['end'];this['_setSuggestionRange'](_0x49aa40,this['_model']['createRange'](_0x48392b,_0x10a344));const _0x13aceb=_0x3caa75(),_0x5ba9a8=_0x49aa40['creator']['id'],_0x482dea=_0x49aa40['type']+(_0x49aa40['subType']?':'+_0x49aa40['subType']:'');this['_setSuggestionData']({'id':_0x13aceb,'type':_0x482dea,'createdAt':new Date(),'authorId':_0x5ba9a8,'originalSuggestionId':_0x49aa40['_originalSuggestionId']||_0x49aa40['id'],'attributes':_0x49aa40['attributes'],'data':_0x49aa40['data']});const _0x44aca8=this['_getAttributeKey'](_0x49aa40);('formatBlock'==_0x49aa40['type']||_0x44aca8&&this['_isBlockAttribute'](_0x44aca8))&&(_0x47bd27=this['_model']['createPositionBefore'](_0x47bd27['parent'])),this['_addSuggestionMarker'](_0x482dea,_0x13aceb,_0x5ba9a8,this['_model']['createRange'](_0x47bd27,_0x3b459e));}['_findSuggestions'](_0x9bdaca,_0x38bf16=null){const _0xdf07dd=[],_0x164594=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9bdaca)||(_0x9bdaca=[_0x9bdaca]);for(const _0x1c9124 of this['getSuggestions']()){if(!_0x1c9124['isInContent'])continue;if(_0x38bf16&&_0x1c9124['type']!=_0x38bf16)continue;let _0x26c78d=!0x1;for(const _0x203f3b of _0x1c9124['getRanges']()){for(const _0x19cfee of _0x9bdaca){const _0xf50833=_0x19cfee['start']['isEqual'](_0x203f3b['end'])||_0x19cfee['end']['isEqual'](_0x203f3b['start']);if(_0xf50833||_0x19cfee['getIntersection'](_0x203f3b)){const _0x3796d1=_0x19cfee['containsRange'](_0x203f3b)&&Ht(this['_model']['schema'],_0x203f3b['start'],_0x19cfee),_0x3f22d6=_0x203f3b['containsRange'](_0x19cfee)&&Ht(this['_model']['schema'],_0x19cfee['start'],_0x203f3b);_0xdf07dd['push']({'suggestion':_0x1c9124,'meta':{'isOwn':_0x164594==_0x1c9124['author'],'isNextTo':_0xf50833,'isInsideObject':_0x3796d1,'containsRangeInObject':_0x3f22d6}}),_0x26c78d=!0x0;break;}}if(_0x26c78d)break;}}return _0xdf07dd;}['_addSuggestionMarker'](_0x2ee082,_0x1a4dd4,_0x3ce5cc,_0x3d91e9,_0x27de17){this['_model']['change'](_0x1bf021=>{let _0x3f86e0='suggestion:'+_0x2ee082+':'+_0x1a4dd4+':'+_0x3ce5cc;_0x27de17&&(_0x3f86e0=_0x3f86e0+':'+_0x27de17),_0x1bf021['addMarker'](_0x3f86e0,{'range':_0x3d91e9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xfcbe07){const _0x57a725=_0xfcbe07['previous'],_0x35a86a=_0xfcbe07['next'];_0xfcbe07['previous']=null,_0xfcbe07['next']=null,null!=_0x57a725&&_0x57a725['next']==_0xfcbe07&&(_0x57a725['next']=_0x35a86a),null!=_0x35a86a&&_0x35a86a['previous']==_0xfcbe07&&(_0x35a86a['previous']=_0x57a725),'ready'==this['_suggestionState']['get'](_0xfcbe07)&&(this['_suggestionState']['set'](_0xfcbe07,'removed'),this['fire']('suggestionUnloaded',_0xfcbe07,_0x57a725,_0x35a86a));}['_setSuggestionData'](_0x2cee63){const _0x5df317=_0x2cee63['id'],_0x30a431=this['addSuggestionData'](_0x2cee63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x59d55f=this['editor']['plugins']['get']('PendingActions'),_0x45f173=_0x30a431['hasComments'],_0x1a1730=_0x30a431['subType']?_0x30a431['type']+':'+_0x30a431['subType']:_0x30a431['type'],_0xe1ef9a=this['editor']['locale'],_0x7c89ad=_0x59d55f['add'](o(_0xe1ef9a,'PENDING_ACTION_SUGGESTION')),_0x9faf23={'id':_0x5df317,'type':_0x1a1730,'hasComments':_0x45f173,'data':_0x2cee63['data']||null,'originalSuggestionId':_0x2cee63['originalSuggestionId']||null,'attributes':_0x30a431['attributes']};this['_adapter']['addSuggestion'](_0x9faf23)['then'](_0x18821c=>{_0x30a431['_saved']=!0x0,_0x59d55f['remove'](_0x7c89ad),_0x18821c&&_0x18821c['createdAt']&&(this['_suggestions']['get'](_0x5df317)['createdAt']=_0x18821c['createdAt']);})['catch'](_0x2f857b=>{throw _0xc9df51('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x30a431['discard']();}),_0x30a431['stopListening'](),this['_suggestions']['delete'](_0x30a431['id']),this['_suggestionState']['delete'](_0x30a431),_0x2f857b;});}return _0x30a431;}['_isBlockAttribute'](_0x3d3fe0){return this['_blockAttributeKeys']['has'](_0x3d3fe0);}['_isInlineAttribute'](_0x452156){return this['_inlineAttributeKeys']['has'](_0x452156);}['_updateSuggestionData'](_0x379e27,_0x4607cd){const _0x428ea5=this['editor']['plugins']['get']('PendingActions'),_0x28623a=this['getSuggestion'](_0x379e27);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28623a['_saved']){const _0x5e016c=_0x428ea5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x379e27,_0x4607cd)['then'](()=>{_0x428ea5['remove'](_0x5e016c);});}else _0x28623a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x379e27,_0x4607cd);});}}['_getSuggestionData'](_0x381ece){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5a4829('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x381ece);}['_handleNewSuggestionMarker'](_0x3ea535){const {id:_0x1c0a43,type:_0x3132e3,subType:_0x563ea8,authorId:_0xed9ad6}=this['_splitMarkerName'](_0x3ea535),_0x20d567=this['_suggestions']['get'](_0x1c0a43)||this['_createSuggestion'](_0x3132e3,_0x563ea8,_0x1c0a43,_0xed9ad6,{});switch(this['_checkSuggestionCorrectness'](_0x20d567,_0x3132e3,_0x563ea8,_0xed9ad6),this['_suggestionState']['get'](_0x20d567)){case'notReady':this['_getSuggestionData'](_0x1c0a43)['then'](_0x91bb29=>{let _0x237256=Promise['resolve']();_0x91bb29['hasComments']&&(_0x237256=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c0a43})),_0x237256['then'](()=>{this['addSuggestionData'](_0x91bb29)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x20d567,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c0a43,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x20d567,'ready'),this['fire']('suggestionLoaded',_0x20d567);break;case'ready':this['fire']('suggestionChanged',_0x20d567);}return _0x20d567['addMarkerName'](_0x3ea535),_0x20d567;}['_refreshSuggestionsChain'](_0x26ba39){const _0x523d75=Array['from'](_0x26ba39),_0x2cc96a=_0x523d75['filter'](_0x5e531d=>'attribute'==_0x5e531d['type']);this['_refreshAttributeSuggestionsChain'](_0x2cc96a);const _0x2b28a5=_0x523d75['filter'](_0x1591c4=>!_0x1591c4['isMultiRange']&&'attribute'!=_0x1591c4['type']),_0x1c7247=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba3c1=>!_0x4ba3c1['isMultiRange']&&'attribute'!=_0x4ba3c1['type']),_0x157d3e=_0x1c7247['filter'](_0x17bf61=>!_0x26ba39['has'](_0x17bf61)),_0x321f82=new Map(_0x1c7247['map'](_0x3e3b30=>[_0x3e3b30,this['_suggestionFactory']['getSuggestionCallback'](_0x3e3b30['type'],_0x3e3b30['subType'],'chain')])),_0x133537=new Map(_0x1c7247['map'](_0x41451f=>[_0x41451f,_0x41451f['getFirstRange']()])),_0x3e8780=new Set(),_0x2263b9=new Set();for(let _0x218861=0x0;_0x218861<_0x2b28a5['length'];_0x218861++)_0x29be3e(_0x2b28a5[_0x218861],_0x2b28a5,_0x218861+0x1);for(let _0x24824b=0x0;_0x24824b<_0x2b28a5['length'];_0x24824b++)_0x29be3e(_0x2b28a5[_0x24824b],_0x157d3e,0x0);const _0x32cfd6=new Set();for(let _0x19ccf8=0x0;_0x19ccf8<_0x2b28a5['length'];_0x19ccf8++){const _0x388de2=_0x2b28a5[_0x19ccf8];!_0x2263b9['has'](_0x388de2)&&_0x388de2['previous']&&(_0x32cfd6['add'](_0x388de2['previous']),_0x388de2['previous']['next']===_0x388de2&&(_0x388de2['previous']['next']=null),_0x388de2['previous']=null),!_0x3e8780['has'](_0x388de2)&&_0x388de2['next']&&(_0x32cfd6['add'](_0x388de2['next']),_0x388de2['next']['previous']===_0x388de2&&(_0x388de2['next']['previous']=null),_0x388de2['next']=null);}function _0x29be3e(_0x3209c1,_0xd60935,_0x27689b){for(let _0x1b02fc=_0x27689b;_0x1b02fc<_0xd60935['length'];_0x1b02fc++){const _0x1bc790=_0x11a35e(_0x3209c1,_0xd60935[_0x1b02fc]);_0x1bc790&&(_0x1bc790[0x0]['next']=_0x1bc790[0x1],_0x1bc790[0x1]['previous']=_0x1bc790[0x0],_0x3e8780['add'](_0x1bc790[0x0]),_0x2263b9['add'](_0x1bc790[0x1]));}}function _0x11a35e(_0x4488c6,_0x4e3f4d){if(_0x4488c6['author']['id']!==_0x4e3f4d['author']['id'])return null;const _0x27c832=_0x321f82['get'](_0x4488c6)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d));if(!_0x27c832)return null;return _0x321f82['get'](_0x4e3f4d)(_0x4488c6,_0x4e3f4d,_0x133537['get'](_0x4488c6),_0x133537['get'](_0x4e3f4d))?_0x27c832[0x1]['commentThread']&&_0x27c832[0x1]['commentThread']['length']?null:_0x27c832:null;}_0x32cfd6['size']&&this['_refreshSuggestionsChain'](_0x32cfd6);}['_refreshAttributeSuggestionsChain'](_0x93e2ac){if(0x0==_0x93e2ac['length'])return;const _0x1791bd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eb157=>'attribute'==_0x2eb157['type']&&_0x2eb157['_isDataLoaded']),_0x42ae3e=[],_0x1372a3=new Map();for(const _0x12bead of _0x1791bd){const _0x1fe375=_0x5e961d(_0x12bead['attributes']);_0x1372a3['has'](_0x1fe375)||(_0x1372a3['set'](_0x1fe375,_0x42ae3e['length']),_0x42ae3e['push']([]));const _0x2e9121=_0x1372a3['get'](_0x1fe375);_0x42ae3e[_0x2e9121]['push'](_0x12bead);}!(function(){_0x42ae3e['sort']((_0x4c9e81,_0x11c765)=>{const _0xf6632=_0x4c9e81[0x0]['createdAt'],_0x40e69a=_0x11c765[0x0]['createdAt'];return _0xf6632==_0x40e69a?_0x4c9e81[0x0]['attributes']['groupId']<_0x11c765[0x0]['attributes']['groupId']?-0x1:0x1:_0xf6632<_0x40e69a?-0x1:0x1;});for(const _0x493328 of _0x42ae3e)_0x493328['sort']((_0x3ba672,_0xf6716f)=>_0x3ba672['id']<_0xf6716f['id']?-0x1:0x1);}());for(let _0x54f5b0=0x0;_0x54f5b0<_0x42ae3e['length'];_0x54f5b0++){if(0x0==_0x42ae3e[_0x54f5b0]['length'])continue;const _0x2ccbf8=[];for(let _0x16c97e=_0x54f5b0+0x1;_0x16c97e<_0x42ae3e['length'];_0x16c97e++)0x0!=_0x42ae3e[_0x16c97e]['length']&&_0x196694(_0x42ae3e[_0x54f5b0],_0x42ae3e[_0x16c97e])&&_0x2ccbf8['push'](_0x16c97e);for(const _0x266e62 of _0x2ccbf8)_0x42ae3e[_0x54f5b0]=_0x42ae3e[_0x54f5b0]['concat'](_0x42ae3e[_0x266e62]),_0x42ae3e[_0x266e62]=[];}for(const _0x52a154 of _0x42ae3e)for(let _0x2a38b0=0x0;_0x2a38b0<_0x52a154['length'];_0x2a38b0++){const _0x442a66=_0x52a154[_0x2a38b0+0x1]||null;_0x52a154[_0x2a38b0]['next']!==_0x442a66&&(_0x52a154[_0x2a38b0]['next']=_0x442a66);}for(const _0x4486bd of _0x42ae3e)for(let _0x3a1099=0x0;_0x3a1099<_0x4486bd['length'];_0x3a1099++){const _0x128fc3=_0x4486bd[_0x3a1099-0x1]||null;_0x4486bd[_0x3a1099]['previous']!==_0x128fc3&&(_0x4486bd[_0x3a1099]['previous']=_0x128fc3);}function _0x196694(_0x2c8cfb,_0x3773a7){if(_0x2c8cfb[0x0]['attributes']['groupId']!==_0x3773a7[0x0]['attributes']['groupId']&&_0x2c8cfb[0x0]['author']!==_0x3773a7[0x0]['author'])return!0x1;if(!function(_0x3c1989,_0x144d09){if(!_0x3c1989['hasComments']&&!_0x144d09['hasComments'])return!0x0;if(_0x3c1989['hasComments']&&_0x144d09['hasComments'])return!0x1;if(_0x3c1989['hasComments']&&_0x144d09['createdAt']<_0x3c1989['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x144d09['hasComments']&&_0x3c1989['createdAt']<_0x144d09['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c8cfb[0x0],_0x3773a7[0x0]))return!0x1;const _0x2e040e=Kt(_0x2c8cfb[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c9f65=Kt(_0x3773a7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5578d7(_0x2e040e,_0x3c9f65))return!0x1;if(_0x2c8cfb[0x0]['attributes']['groupId']==_0x3773a7[0x0]['attributes']['groupId'])return!0x0;if(_0x2c8cfb[0x0]['attributes']['trackingSessionId']!==_0x3773a7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c8cfb['every'](_0x37c341=>_0x3773a7['some'](_0x5ef3cd=>_0x37c341['getFirstRange']()['isEqual'](_0x5ef3cd['getFirstRange']())))&&_0x3773a7['every'](_0x2e6d79=>_0x2c8cfb['some'](_0x23b841=>_0x2e6d79['getFirstRange']()['isEqual'](_0x23b841['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fc384){const _0x426f55=Array['from'](_0x1fc384),_0x2f470c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x24ba9d=_0x2f470c['filter'](_0x4ddb0e=>!_0x1fc384['has'](_0x4ddb0e)),_0x502e82=new Map(_0x426f55['map'](_0xb1b2b1=>[_0xb1b2b1,this['_suggestionFactory']['getSuggestionCallback'](_0xb1b2b1['type'],_0xb1b2b1['subType'],'join')])),_0x57e7ae=new Map(_0x2f470c['map'](_0x4e9be6=>[_0x4e9be6,_0x4e9be6['getRanges']()]));for(let _0x3f91e4=0x0;_0x3f91e4<_0x426f55['length'];_0x3f91e4++){if(_0x1bd0dc(this,_0x426f55[_0x3f91e4],_0x426f55,_0x3f91e4+0x1))return!0x0;}for(let _0x3fb03f=0x0;_0x3fb03f<_0x426f55['length'];_0x3fb03f++){if(_0x1bd0dc(this,_0x426f55[_0x3fb03f],_0x24ba9d,0x0))return!0x0;}return!0x1;function _0x1bd0dc(_0x388919,_0x450d6b,_0x421142,_0x2502ca){for(let _0xbe6a53=_0x2502ca;_0xbe6a53<_0x421142['length'];_0xbe6a53++){const _0x4c831a=_0x421142[_0xbe6a53];if(_0x4c831a['type']!==_0x450d6b['type']||_0x4c831a['author']['id']!==_0x450d6b['author']['id']||_0x4c831a['subType']!==_0x450d6b['subType'])continue;if(!se(_0x450d6b,_0x4c831a))continue;if('attribute'==_0x450d6b['type']&&_0x450d6b['data']['oldValue']!=_0x4c831a['data']['oldValue'])continue;if('attribute'==_0x450d6b['type']&&_0x388919['_isBlockAttribute'](_0x450d6b['data']['key']))continue;if('formatBlock'==_0x450d6b['type']){const _0x3a0d38=_0x388919['editor']['model'],_0x26f725=_0x450d6b['getContainedElement']();if(_0x26f725&&(_0x3a0d38['schema']['isObject'](_0x26f725)||_0x3a0d38['schema']['isLimit'](_0x26f725)))continue;}const _0x36039b=_0x502e82['get'](_0x450d6b),_0x3f8814=_0x57e7ae['get'](_0x450d6b),_0x5aec5a=_0x57e7ae['get'](_0x4c831a),_0x31251d=_0x450d6b['commentThread']&&_0x450d6b['commentThread']['length'],_0x445a0f=_0x4c831a['commentThread']&&_0x4c831a['commentThread']['length'];if(!_0x31251d&&_0x36039b(_0x5aec5a,_0x3f8814))return _0x388919['_joinSuggestions'](_0x4c831a,_0x450d6b),_0x57e7ae['delete'](_0x450d6b),!0x0;if(!_0x445a0f&&_0x36039b(_0x3f8814,_0x5aec5a))return _0x388919['_joinSuggestions'](_0x450d6b,_0x4c831a),_0x57e7ae['delete'](_0x4c831a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x388003,_0x202248){if(_0x388003['isMultiRange']){for(const _0x4de867 of _0x202248['getRanges']())_0x388003['addRange'](_0x4de867);}else{const _0x3f1af0=_0x202248['getFirstRange']()['end'];this['_setSuggestionRange'](_0x388003,this['_model']['createRange'](_0x388003['getFirstRange']()['start'],_0x3f1af0));}_0x202248['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c20b5,_0x125cf8,_0x590cfc){const _0xd9eaa8=_0x1c20b5['startsWith']('format')||_0x1c20b5['startsWith']('attribute')?'FORMATTING':_0x1c20b5['toUpperCase']();return o(this['editor']['locale'],_0x125cf8+'_'+_0xd9eaa8+'_SUGGESTION_ANNOUNCEMENT',_0x590cfc);}['_initAriaMarkerChangeAnnouncements'](){const _0x1528f2=this['editor'];if(!_0x1528f2['ui'])return;const {ariaLiveAnnouncer:_0x1ad0d1}=_0x1528f2['ui'];_0x21fdb7(this['_model'],({left:_0x5d6792,entered:_0x2bfdf2})=>{for(const _0x5163a5 of _0x5d6792){const {group:_0x122ae9,type:_0x5899ab}=this['_splitMarkerName'](_0x5163a5['name']);if('suggestion'===_0x122ae9){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x5899ab,'LEAVE'));break;}}for(const _0x203f9f of _0x2bfdf2){const {group:_0x29d6cb,type:_0x501595}=this['_splitMarkerName'](_0x203f9f['name']);if('suggestion'===_0x29d6cb){_0x1ad0d1['announce'](this['_getMarkerAnnouncementText'](_0x501595,'ENTER',_0x5e22ae(_0x47d113)));break;}}});}['_processAttributeChanges'](_0x5bc5d3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24e3cd=this['editor'],_0x456561=_0x24e3cd['model']['document']['differ']['getChanges']();if(0x0==_0x456561['length'])return!0x1;const _0x3da029=[],_0x360b77=_0x456561['filter'](_0x2b7ceb=>'attribute'==_0x2b7ceb['type']),_0x7b11b3=_0x456561['filter'](_0x562052=>'insert'==_0x562052['type']&&'$text'!=_0x562052['name']),_0x3506c3=_0x456561['filter'](_0x49b43d=>'remove'==_0x49b43d['type']&&'$text'!=_0x49b43d['name']);for(const _0x153a6e of _0x360b77)_0x3da029['push']({'key':_0x153a6e['attributeKey'],'newValue':_0x153a6e['attributeNewValue'],'oldValue':_0x153a6e['attributeOldValue'],'range':ee(_0x153a6e['range'],_0x24e3cd['model'])});for(const _0x935139 of _0x7b11b3){const _0x39d62d=_0x3506c3['find'](_0x120be3=>_0x120be3['position']['isEqual'](_0x935139['position']));_0x39d62d&&_0x3da029['push']({'key':m,'newValue':_0x935139['name'],'oldValue':_0x39d62d['name'],'range':_0x24e3cd['model']['createRangeOn'](_0x935139['position']['nodeAfter'])});}return 0x0!=_0x3da029['length']&&this['_reduceExistingSuggestions'](_0x5bc5d3,_0x3da029);}['_processAttributeSuggestions'](_0x29833b){let _0x3bee12=!0x1;const _0x599ee0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16dbfc=>_0x16dbfc['data']['newRange']&&_0x16dbfc['name']['startsWith']('suggestion:attribute:'));for(const _0x2d17f2 of _0x599ee0){const {subType:_0x1de084,id:_0x38cc0a}=this['_splitMarkerName'](_0x2d17f2['name']),_0x9d215e=_0x1de084['split']('|')[0x0];for(const _0x65093e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x65093e['id']!=_0x38cc0a&&'attribute'==_0x65093e['type']&&_0x65093e['data']&&_0x65093e['data']['key']==_0x9d215e&&_0x65093e['getFirstRange']()['isIntersecting'](_0x2d17f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x65093e,_0x2d17f2['data']['newRange'],_0x29833b),_0x3bee12=!0x0);}return _0x3bee12;}['recordAttributeChanges'](_0xe7a3e5){this['_recordAttributeSuggestions']=!0x0,_0xe7a3e5();}['_isRegisteredAttribute'](_0x45c559){const _0x248c72=this['_isBlockAttribute'](_0x45c559),_0x5287e3=this['_isInlineAttribute'](_0x45c559);return _0x248c72||_0x5287e3;}['_reduceExistingSuggestions'](_0x4d7ce9,_0x50b2a2){if(0x0==_0x50b2a2['length'])return!0x1;let _0x2b3389=!0x1;for(const _0x38559a of _0x50b2a2){const _0x5438a6=this['_findSuggestions'](_0x38559a['range'],'attribute')['filter'](_0x22ac02=>!_0x22ac02['meta']['isNextTo'])['map'](_0x661c22=>_0x661c22['suggestion']),_0x1863da=_0x5e961d({'newValue':_0x38559a['newValue']});_0x5438a6['filter'](_0x3954ca=>{const [_0x1b3144,_0x4bba2e]=_0x3954ca['subType']['split']('|');return _0x1b3144==_0x38559a['key']&&_0x4bba2e!=_0x1863da;})['forEach'](_0x1f70c7=>{this['_reduceSuggestionAttributeRange'](_0x1f70c7,_0x38559a['range'],_0x4d7ce9),_0x2b3389=!0x0;});}return _0x2b3389;}['_reduceSuggestionAttributeRange'](_0x1b0acc,_0x330ceb,_0x3c67be){const _0x114d87=_0x1b0acc['getFirstRange']()['getDifference'](_0x330ceb);0x0!==_0x114d87['length']?0x1!==_0x114d87['length']?this['_breakSuggestionMarker'](_0x1b0acc,_0x330ceb['start'],_0x330ceb['end']):this['_setSuggestionRange'](_0x1b0acc,_0x114d87[0x0]):_0x3c67be['removeMarker'](_0x1b0acc['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a424d){this['_editor']=_0x4a424d,this['_model']=_0x4a424d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58c36e,_0x5b0f08,_0x1519eb,_0x260a67,_0x122b6a,_0x505a1f,_0x213694){return new R(this['_model'],{'type':_0x58c36e,'subType':_0x5b0f08,'id':_0x1519eb,'originalSuggestionId':_0x213694,'author':_0x260a67,'creator':_0x260a67,'attributes':_0x122b6a,'onAttributesChange':_0x505a1f,'onAccept':(..._0x1c0e74)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'accept')(..._0x1c0e74),'onDiscard':(..._0x323820)=>this['getSuggestionCallback'](_0x58c36e,_0x5b0f08,'discard')(..._0x323820)});}['registerCustomCallback'](_0x3462b5,_0x39aeef,_0x5d2bd6,_0xcfe5c6){const _0x18cc91=_0x3462b5+':'+_0x39aeef+':'+_0x5d2bd6;this['_customCallbacks']['set'](_0x18cc91,_0xcfe5c6);}['getSuggestionCallback'](_0x400352,_0x363a57,_0x4bad5f){const _0x5339ea=_0x400352+':'+_0x363a57+':'+_0x4bad5f;return this['_customCallbacks']['get'](_0x5339ea)||this['_defaultCallbacks']['get'](_0x400352+':'+_0x4bad5f);}['_registerDefaultCallbacks'](){const _0x187d07=()=>!0x1,_0x552ab5=_0x44de4e=>{_0x44de4e['sort']((_0x3ff49b,_0x1346af)=>_0x3ff49b['start']['isBefore'](_0x1346af['start'])?0x1:-0x1),this['_model']['change'](_0x1c1955=>{for(const _0x50dea2 of _0x44de4e){let _0x40ff19;_0x40ff19=_0x50dea2['end']['isAtEnd']&&_0x50dea2['end']['parent']==_0x50dea2['start']['nodeAfter']?_0x1c1955['createSelection'](_0x50dea2['start']['nodeAfter'],'on'):_0x1c1955['createSelection'](_0x50dea2),this['_model']['deleteContent'](_0x40ff19,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4c0ead=(_0x3cafa9,_0x279545)=>{_0x279545&&this['_model']['change'](_0x295749=>{const {commandName:_0x37b494,commandParams:_0x29e08b=[]}=_0x279545,_0x39191c=_0x3cafa9['map'](_0x51cf7d=>(Wt(_0x51cf7d)&&(_0x51cf7d=this['_model']['createRange'](_0x51cf7d['end'])),_0x51cf7d))['filter'](_0x47e9dd=>'$graveyard'!==_0x47e9dd['root']['rootName']);if(_0x39191c['length']<0x1)return;const _0x3c1844=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xc4055d=>_0x3d40b9['fromRange'](_0xc4055d));_0x295749['setSelection'](_0x39191c);for(const _0xe466da of this['_editor']['commands']['commands']())_0xe466da['refresh']();_0x29e08b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x37b494,..._0x29e08b);const _0x1fb4f8=_0x3c1844['filter'](_0xc95579=>'$graveyard'!=_0xc95579['root']['rootName']);_0x1fb4f8['length']>0x0&&_0x295749['setSelection'](_0x1fb4f8);for(const _0xface6f of _0x3c1844)_0xface6f['detach']();});},_0x12e4bd=(_0x29ddb0,_0x16bbdd)=>0x1==_0x29ddb0['length']&&0x1==_0x16bbdd['length']&&_0x29ddb0[0x0]['end']['isEqual'](_0x16bbdd[0x0]['start']),_0x3db565=(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)=>ne(_0x28ba69,_0x3064b2,_0x5075fc,_0x548c56)?[_0x28ba69,_0x3064b2]:ne(_0x3064b2,_0x28ba69,_0x548c56,_0x5075fc)?[_0x3064b2,_0x28ba69]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x187d07),this['_defaultCallbacks']['set']('insertion:discard',_0x552ab5),this['_defaultCallbacks']['set']('insertion:join',_0x12e4bd),this['_defaultCallbacks']['set']('insertion:chain',_0x3db565),this['_defaultCallbacks']['set']('deletion:accept',_0x552ab5),this['_defaultCallbacks']['set']('deletion:discard',_0x187d07),this['_defaultCallbacks']['set']('deletion:join',_0x12e4bd),this['_defaultCallbacks']['set']('deletion:chain',_0x3db565),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatInline:discard',_0x187d07),this['_defaultCallbacks']['set']('formatInline:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatInline:chain',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c0ead),this['_defaultCallbacks']['set']('formatBlock:discard',_0x187d07),this['_defaultCallbacks']['set']('formatBlock:join',_0x12e4bd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x187d07),this['_defaultCallbacks']['set']('attribute:accept',_0x187d07),this['_defaultCallbacks']['set']('attribute:discard',(_0x56c218,_0x43b451)=>{if(!_0x43b451)return;const _0x5ef8e6=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x167d14=>{if(_0x43b451['key']==m)for(const _0x17efc9 of _0x56c218){const _0x5b9e42=_0x17efc9['start']['nodeAfter'],_0x12a5f6=_0x43b451['oldValue'];_0x167d14['rename'](_0x5b9e42,_0x12a5f6);}else{if(_0x5ef8e6['_isBlockAttribute'](_0x43b451['key'])){for(const _0xd5fa0e of _0x56c218)void 0x0!==_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0xd5fa0e['start']['nodeAfter']):_0x167d14['removeAttribute'](_0x43b451['key'],_0xd5fa0e['start']['nodeAfter']);}else{for(const _0x3cb319 of _0x56c218)_0x43b451['oldValue']?_0x167d14['setAttribute'](_0x43b451['key'],_0x43b451['oldValue'],_0x3cb319):_0x167d14['removeAttribute'](_0x43b451['key'],_0x3cb319);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12e4bd);}}function Ht(_0x2fb46a,_0x12f6ff,_0x2824a0){for(const _0x1bac6f of _0x12f6ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1bac6f['root']==_0x1bac6f)return!0x1;if(!_0x2824a0['containsItem'](_0x1bac6f))return!0x1;if(_0x2fb46a['isObject'](_0x1bac6f)||_0x2fb46a['isLimit'](_0x1bac6f))return!0x0;}return!0x1;}function Wt(_0x40eb34){return _0x40eb34['end']['parent']==_0x40eb34['start']['nodeAfter']&&_0x40eb34['end']['isAtStart'];}function zt(_0x527819,_0x5c0b4a,_0xd5f8ac,_0x5c2c4e){const _0x2697c5=_0x407bbd=>!_0x407bbd['item']['is']('$textProxy')&&!_0x5c2c4e['isObject'](_0x407bbd['item']),_0x4dbbe7=_0x527819['start']['getLastMatchingPosition'](_0x2697c5),_0x35e5df=_0x527819['end']['getLastMatchingPosition'](_0x2697c5,{'direction':'backward'});return(!_0x527819['start']['isEqual'](_0x4dbbe7)||!_0x527819['end']['isEqual'](_0x35e5df))&&(_0x4dbbe7['isBefore'](_0x35e5df)?_0xd5f8ac['updateMarker'](_0x5c0b4a,{'range':_0xd5f8ac['createRange'](_0x4dbbe7,_0x35e5df)}):_0xd5f8ac['removeMarker'](_0x5c0b4a),!0x0);}function Qt(_0x398713){return _0x5e961d(_0x398713);}function Xt(_0x3d0035){const _0x4e4c39=_0x3d0035['start']['nodeAfter'];return _0x4e4c39&&_0x4e4c39['is']('element');}function Yt(_0x43249b){return Wt(_0x43249b)||function(_0x43191b){return _0x43191b['start']['parent']==_0x43191b['end']['nodeBefore']&&_0x43191b['start']['isAtEnd'];}(_0x43249b);}function Zt(_0x118c0e,_0x47e951){try{const _0x400072=_0x118c0e['getRange']();for(const _0x4eb99e of _0x47e951)if(_0x118c0e!==_0x4eb99e&&_0x400072&&_0x400072['isIntersecting'](_0x4eb99e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function te(_0x5ed350,_0x3cfe07){const _0x1ef272=_0x5ed350['end']['nodeBefore'];if(_0x1ef272&&_0x1ef272['is']('element')&&_0x3cfe07['schema']['isBlock'](_0x1ef272)&&!_0x3cfe07['schema']['isObject'](_0x1ef272)){const _0x2b37b9=_0x3cfe07['createPositionAt'](_0x1ef272,'end');return _0x3cfe07['createRange'](_0x5ed350['start'],_0x2b37b9);}return _0x5ed350;}function ee(_0x1d30e7,_0x58b5d4){return null==_0x1d30e7['end']['nodeBefore']&&_0x1d30e7['end']['parent']==_0x1d30e7['start']['nodeAfter']?ie(_0x1d30e7['start']['nodeAfter'],_0x58b5d4):_0x1d30e7;}function ie(_0x2e33d2,_0x46a82d){const _0x440267=_0x46a82d['schema']['isObject'](_0x2e33d2)||_0x46a82d['schema']['isSelectable'](_0x2e33d2);return _0x46a82d['createRange'](_0x46a82d['createPositionAt'](_0x2e33d2,'before'),_0x440267?_0x46a82d['createPositionAfter'](_0x2e33d2):_0x46a82d['createPositionAt'](_0x2e33d2,'end'));}function ne(_0x3e5dff,_0x2e4af5,_0x254c0a,_0x94641f){return!!se(_0x3e5dff,_0x2e4af5)&&_0x254c0a['end']['isEqual'](_0x94641f['start']);}function se(_0x424485,_0x120f5e){if(!_0x424485['_isDataLoaded']||!_0x120f5e['_isDataLoaded'])return!0x1;const _0x51ecf4=new Set(Object['keys'](_0x424485['attributes'])),_0xeb0016=new Set(Object['keys'](_0x120f5e['attributes']));if(_0x51ecf4['delete']('groupId'),_0xeb0016['delete']('groupId'),0x0==_0x51ecf4['size']&&0x0==_0xeb0016['size'])return!0x0;if(_0x51ecf4['size']!=_0xeb0016['size'])return!0x1;const _0x34eaa1={..._0x424485['attributes']},_0x4e29ac={..._0x120f5e['attributes']};return delete _0x34eaa1['groupId'],delete _0x4e29ac['groupId'],JSON['stringify'](_0x34eaa1)==JSON['stringify'](_0x4e29ac);}function oe(_0x5763a4,_0x240d7f){const _0x1d698f=re(_0x5763a4['attributes']),_0x5507ee=re(_0x240d7f);if(!_0x5763a4['_isDataLoaded'])return!0x1;for(const _0x5e61fd of Object['keys'](_0x5507ee))if(!_0x5578d7(_0x1d698f[_0x5e61fd],_0x5507ee[_0x5e61fd]))return!0x1;return!0x0;}function re(_0x382b02){const _0x153fc6=Object['assign']({},_0x382b02);return delete _0x153fc6['skipNestingCheck'],delete _0x153fc6['tablePasteChainId'],_0x153fc6;}function ae(_0x57ccbb){return _0x57ccbb['split']('|')[0x0];}function ce(_0xf40a7f,_0x1273d2){for(const [_0x1deef0,_0x29f497]of _0xf40a7f['markers']){const _0x49df39=_0x4e5d4b['_createFromRanges'](_0x29f497['getTransformedByOperation'](_0x1273d2));_0xf40a7f['markers']['set'](_0x1deef0,_0x49df39);}}class xe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x2def01(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x220d88,_0x3592fa,_0x4614ba,_0x3218ed){super(),this['model']=_0x3592fa,this['view']=_0x4614ba,this['commentThreadController']=_0x3218ed,this['_editor']=_0x220d88,this['_acceptCommand']=_0x220d88['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x220d88['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1cf08f,_0x16bd0c)=>_0x1cf08f||_0x16bd0c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aead9=>_0x5aead9&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x125f8e=>_0x125f8e&&this['_editor']['model']['canEditAt'](_0x3592fa['getRanges']())),this['_pendingAction']=null,_0x4614ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4614ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4614ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4614ba,'change:isDirty',()=>{_0x4614ba['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 _0x25b53f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25b53f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x16d85e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1ca254,_0x1d991b,_0x32ff53,_0x5306a6){super(_0x1ca254),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa7cd6f(_0x1ca254,o(_0x1ca254,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1d991b['authoredAt']),this['bind']('authoredAt')['to'](_0x1d991b),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',_0x1d991b,'authoredAt',this,'descriptionParts',(_0x3a362e,_0x41c9d9,_0x2ecc48)=>{const _0x7f156f=_0x2ecc48['map'](_0x4ef08f=>ls(_0x4ef08f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a362e-0x1,_0x1d991b['author']['name'],_0x41c9d9?_0x5306a6['formatDateTime'](_0x41c9d9):'',new DOMParser()['parseFromString'](_0x7f156f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x406985(),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25f077=>_0x25f077['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1d991b,this['_localUser']=_0x32ff53,this['_config']=_0x5306a6,_0x5306a6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d33c9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xcb655f}=this['_config'];this['commentsListView']=new _0xcb655f(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',_0x90c62b=>_0x90c62b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x42fff8,_0x3d572a)=>_0x42fff8||!!_0x3d572a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43105a}=this['_config'],_0x30e49f=new _0x43105a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c6e50=_0x30e49f['commentInputView'];return _0x30e49f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c6e50,'value',(_0x32b231,_0x59c73e,_0xa27bd9)=>!!_0xa27bd9||_0x32b231&&!_0x59c73e),_0x3c6e50['on']('submit',(_0x3c1c68,_0x12eef3)=>{this['fire']('addComment',_0x12eef3),_0x3c6e50['editor']['setData']('');}),_0x3c6e50['on']('cancel',()=>this['focus']()),_0x3c6e50['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30e49f;}}class Ae extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x355971,_0x490962,_0x39a3d4,_0x546b4c){super(_0x355971,_0x490962,_0x39a3d4,_0x546b4c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x590463=>_0x590463&&_0x590463[0x0]?_0x590463[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2832d6,_0x23c85a)=>{let _0x1dd45e='';for(const _0x3d761b of _0x2832d6)_0x1dd45e+='<p>'+ls(_0x3d761b['content'],_0x3d761b['color'])+'</p>';return _0x23c85a?_0x1dd45e:_0x1a9b5a(_0x1dd45e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x546b4c['SuggestionView'](_0x355971,_0x490962,{'formatDateTime':_0x546b4c['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 _0x4cf78f=this['bindTemplate'],_0x4d8a0e=[this['suggestionView']];return this['commentsListView']&&_0x4d8a0e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d8a0e['push'](this['commentThreadInputView']),_0x4d8a0e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4cf78f['if']('isActive','ck-suggestion-wrapper--active'),_0x4cf78f['to']('type',_0x23f608=>'ck-suggestion-'+_0x23f608),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':_0x4cf78f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d8a0e};}['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 Ee extends _0x16d85e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17e7e7,_0xb17ea8,_0x3fc200){super(_0x17e7e7),this['_model']=_0xb17ea8,this['_config']=_0x3fc200,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb17ea8),this['acceptButton']=this['_createButton'](o(_0x17e7e7,'Accept\x20suggestion'),_0x461762,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x17e7e7,'Discard\x20suggestion'),_0x53f153,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cfc9e(_0x17e7e7,_0xb17ea8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x406985([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc435d8(),this['keystrokes']=new _0x5dc328(),this['focusCycler']=new _0x580b2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x322247=>_0x322247['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x55ee2d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x55ee2d['innerHTML']=this['description'],this['on']('change:description',(_0x5d0f11,_0x237ddc,_0x2e0810)=>{_0x55ee2d['innerHTML']=_0x2e0810;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x488f3c=this['bindTemplate'],_0xc64fd9=[{'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':_0x488f3c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x488f3c['to']('authoredAt',_0x3412af=>this['_config']['formatDateTime'](_0x3412af))}]}]},{'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']&&_0xc64fd9['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':_0xc64fd9}]};}['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'](_0x2273ad,_0x4d8637,_0x29cc7c,_0x5eea44,_0x5f826e){const _0x41a94c=new _0x8c1f8b(this['locale']);return _0x41a94c['set']({'label':_0x2273ad,'icon':_0x4d8637,'tooltip':!0x0,'tooltipPosition':_0x5f826e}),_0x41a94c['extendTemplate']({'attributes':{'class':_0x29cc7c}}),_0x41a94c['on']('execute',()=>{this['fire'](_0x5eea44,this['_model']['id']);}),_0x41a94c;}['_setupKeyboardNavigation'](){const _0x8bf54e=this['element'];this['keystrokes']['listenTo'](_0x8bf54e);for(const _0x2fc473 of this['focusables'])this['focusTracker']['add'](_0x2fc473['element']),this['keystrokes']['listenTo'](_0x2fc473['element']);this['keystrokes']['set']('enter',(_0x2a0e64,_0x44ed8a)=>{_0x8bf54e===_0x2a0e64['target']&&(this['focusCycler']['focusFirst'](),_0x44ed8a());}),this['keystrokes']['set']('esc',(_0x5b18f8,_0x4b7864)=>{_0x8bf54e!==_0x5b18f8['target']&&(this['focus'](),_0x4b7864());});}}class u extends _0x4e7f5a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x57807f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cd2ce){super(_0x5cd2ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x15e9e8=this['editor']['config'];_0x15e9e8['define']('trackChanges.SuggestionThreadView',Ae),_0x15e9e8['define']('trackChanges.SuggestionView',Ee),_0x15e9e8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x15e9e8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54b254,_0x20b3a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2a8fee,_0x4c29a9]of this['_handleControllerBuffer']){const _0x4ef269=this['_suggestionToController']['has'](_0x2a8fee);_0x4ef269||_0x4c29a9?_0x4ef269&&_0x4c29a9&&this['_destroyController'](_0x2a8fee):this['_initializeController'](_0x2a8fee);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54b254,_0x20b3a9);}['init'](){const _0x242141=this['editor'],_0x30c0b2=_0x242141['plugins']['get']('TrackChangesEditing'),_0x38194d=_0x242141['plugins']['get']('Annotations'),_0x5ca0ca=_0x242141['plugins']['get']('EditorAnnotations'),_0x38619f=_0x242141['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ca0ca['addSourceCollector'](()=>{const _0x44595e=[];for(const [_0x2bf56a,_0x4a75bf]of Array['from'](this['_suggestionToController'])){const _0x2ebd74=_0x2bf56a['getAllAdjacentSuggestions'](),_0x39a4a2=[];for(const _0x27c56f of _0x2ebd74){if(!_0x27c56f['isInContent'])continue;if(_0x27c56f['isMultiRange']){_0x39a4a2['push'](..._0x27c56f['getRanges']());continue;}const _0x468887=_0x27c56f['getFirstRange']();if(_0x39a4a2['length']>0x0){const _0x2e369c=_0x39a4a2[0x0]['getJoined'](_0x468887);if(_0x2e369c){_0x39a4a2[0x0]=_0x2e369c;continue;}}_0x39a4a2['push'](_0x468887);}_0x44595e['push']([_0x4a75bf['view'],_0x39a4a2]);}return _0x44595e;}),this['listenTo'](_0x30c0b2,'suggestionLoaded',(_0x4dc551,_0x5a1323)=>{this['listenTo'](_0x5a1323,'change:previous',(_0x1e5e82,_0x4dbb1a,_0x338fa2,_0x59307a)=>{_0x5a1323['isInContent']&&(null==_0x338fa2?(this['_updateController'](_0x59307a['head']),this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1)):(this['_updateController'](_0x338fa2['head']),null==_0x59307a&&this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x0)));}),null!==_0x5a1323['previous']?this['_updateController'](_0x5a1323['head']):this['_handleSuggestionControllerDelayed'](_0x5a1323,!0x1);}),this['listenTo'](_0x30c0b2,'suggestionUnloaded',(_0xdc9dcf,_0x2f1dfc,_0x3ff59a)=>{this['stopListening'](_0x2f1dfc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2f1dfc),this['_suggestionToController']['has'](_0x2f1dfc)&&this['_destroyController'](_0x2f1dfc),_0x3ff59a&&this['_updateController'](_0x3ff59a['head']);}),this['listenTo'](_0x30c0b2,'suggestionChanged',(_0x217ab3,_0x30d822)=>{this['_updateController'](_0x30d822);}),this['listenTo'](_0x38194d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38619f,'addComment',(_0x445093,{threadId:_0x251531,isFromAdapter:_0x432567})=>{if(_0x432567||!_0x30c0b2['hasSuggestion'](_0x251531))return;const _0x6c7c1b=_0x30c0b2['getSuggestion'](_0x251531);this['_suggestionToController']['get'](_0x6c7c1b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4fa3f9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe7fd;for(const _0x362b5c in _0x4fa3f9){const _0x5a2568=_0x362b5c,_0x39525b=_0x4fa3f9[_0x5a2568];if('trackChangesLicenseKeyValid'==_0x39525b||'trackChangesLicenseKeyInvalid'==_0x39525b||'trackChangesLicenseKeyExpired'==_0x39525b||'trackChangesLicenseKeyDomainLimit'==_0x39525b||'trackChangesLicenseKeyNotAllowed'==_0x39525b||'trackChangesLicenseKeyEvaluationLimit'==_0x39525b||'trackChangesLicenseKeyTrialLimit'==_0x39525b||'trackChangesLicenseKeyUsageLimit'==_0x39525b){delete _0x4fa3f9[_0x5a2568],_0xe7fd=_0x39525b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe7fd&&_0x4fa3f9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xc65c82){const _0x3d52ed=this['_suggestionToController']['get'](_0xc65c82);if(!_0x3d52ed)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3d52ed['view'])||null;}['getSuggestionForAnnotation'](_0x168b95){const _0x2d01ed=this['_viewToController']['get'](_0x168b95['innerView']);return _0x2d01ed?_0x2d01ed['model']:null;}['_refreshActiveMarkers'](){const _0x453cd0=this['editor']['plugins']['get']('Annotations'),_0x4f674e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e9678=Array['from'](_0x453cd0['activeAnnotations'],_0x19d9cc=>_0x19d9cc['innerView'])['filter'](_0x4f1041=>this['_viewToController']['has'](_0x4f1041)),_0x1f18e1=[];for(const _0x60bc5 of _0x4e9678){const _0x5a6545=this['_viewToController']['get'](_0x60bc5)['model']['getAllAdjacentSuggestions']();_0x1f18e1['push'](..._0x5a6545['reduce']((_0x2cebf6,_0x5d474b)=>[..._0x2cebf6,..._0x5d474b['getMarkerNames']()],[]));}_0x4f674e['activeMarkers']=_0x1f18e1;}['_addUIComponentsToFactory'](){const _0x176aa3=this['editor'],_0x2311b4=_0x176aa3['locale'],_0x288050=o(_0x2311b4,'Track\x20changes'),_0x23555f=new _0x3edcbf([{'type':'switchbutton','model':new _0x20f578({'withText':!0x0,'isToggleable':!0x0,'label':_0x288050,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x176aa3['plugins']['has']('TrackChangesPreview')&&_0x23555f['addMany']([{'type':'separator'},{'type':'button','model':new _0x20f578({'withText':!0x0,'label':o(_0x2311b4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b9839 of _0x23555f)if(Ke(_0x2b9839)){const _0x432ab6=_0x176aa3['commands']['get'](_0x2b9839['model']['commandName']);_0x2b9839['model']['bind']('isOn','isEnabled')['to'](_0x432ab6,'value','isEnabled');}_0x176aa3['ui']['componentFactory']['add']('trackChanges',_0x337c2c=>this['_createToolbarButton'](_0x337c2c,_0x23555f,_0x288050)),_0x176aa3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40cf03=>this['_createMenuBarMenu'](_0x40cf03,_0x23555f,_0x288050));}['_createToolbarButton'](_0xa6d15f,_0x5d9923,_0x5ba354){const _0x454355=_0x4f4152(_0xa6d15f,_0x11da7c),_0x5b861b=this['editor']['commands']['get']('trackChanges');_0x454355['buttonView']['set']({'tooltip':_0x5ba354,'label':_0x5ba354,'icon':_0x2784bc}),_0x454355['buttonView']['bind']('isOn')['to'](_0x5b861b,'value'),_0x454355['buttonView']['on']('execute',()=>{_0x5b861b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2241b4(_0x454355,_0x5d9923,{'role':'menu'});const _0x51b18b=[];for(const _0x3ad346 of _0x5d9923)Ke(_0x3ad346)&&_0x51b18b['push'](this['editor']['commands']['get'](_0x3ad346['model']['commandName']));const _0x4930f1=_0x454355['buttonView'];return _0x4930f1['actionView']['unbind']('isEnabled'),_0x4930f1['arrowView']['unbind']('isEnabled'),_0x4930f1['actionView']['bind']('isEnabled')['to'](_0x5b861b,'isEnabled'),_0x4930f1['arrowView']['bind']('isEnabled')['toMany'](_0x51b18b,'isEnabled',(..._0x49d95c)=>_0x49d95c['some'](_0x34c66b=>_0x34c66b)),_0x454355['on']('execute',_0x226076=>{this['editor']['execute'](_0x226076['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x454355;}['_createMenuBarMenu'](_0x4e0922,_0x304ea6,_0x2ab8e7){const _0x3eab4a=new _0x17af2b(_0x4e0922),_0x2b2314=this['editor']['commands']['get']('trackChanges');_0x3eab4a['buttonView']['set']({'label':_0x2ab8e7,'icon':_0x2784bc});const _0x5bcc58=new _0x74cb29(_0x4e0922);for(const _0x46f129 of _0x304ea6){if('separator'==_0x46f129['type']){_0x5bcc58['items']['add'](new _0x2d6e36(_0x4e0922));continue;}const _0x402dad=new _0xa48ed1(_0x4e0922,_0x3eab4a),_0x4da2dc=new _0x23adcf(_0x4e0922),_0x3a735f=_0x46f129['model'];_0x4da2dc['bind'](...Object['keys'](_0x3a735f))['to'](_0x3a735f),_0x4da2dc['delegate']('execute')['to'](_0x3eab4a),_0x4da2dc['on']('execute',()=>{this['editor']['execute'](_0x3a735f['commandName']),this['editor']['editing']['view']['focus']();}),_0x402dad['children']['add'](_0x4da2dc),_0x5bcc58['items']['add'](_0x402dad);}return _0x3eab4a['bind']('isEnabled')['to'](_0x2b2314,'isEnabled'),_0x3eab4a['panelView']['children']['add'](_0x5bcc58),_0x3eab4a;}['_initializeController'](_0x8d17e3){const _0x536adc=this['editor'],_0x22ede9=_0x536adc['config'],_0x3219d4=_0x536adc['plugins']['get']('Annotations'),_0x5ef0c3=_0x536adc['plugins']['get']('CommentsRepository'),_0x6a5d=_0x536adc['plugins']['get']('EditorAnnotations'),_0x18a331=_0x536adc['plugins']['get'](_0x57807f)['me'],_0xdf03fd=_0x22ede9['get']('trackChanges')['SuggestionThreadView'],_0x234959=_0x22ede9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34684a,CommentThreadInputView:_0x258a08}=_0x536adc['plugins']['get']('CommentsUI');let _0xd05b15,_0x3a326e,_0x1545ea;this['_annotationViews']['has'](_0x8d17e3['id'])?(_0x3a326e=this['_annotationViews']['get'](_0x8d17e3['id']),_0xd05b15=_0x3a326e['mainView']):(_0xd05b15=new _0xdf03fd(_0x536adc['locale'],_0x8d17e3,_0x18a331,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22ede9['get']('comments.editorConfig'),'licenseKey':_0x22ede9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22ede9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22ede9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22ede9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x128e55(_0x22ede9['get']('locale'),_0x536adc['locale']),'CommentView':_0x22ede9['get']('comments')['CommentView'],'CommentsListView':_0x34684a,'CommentThreadInputView':_0x258a08,'SuggestionView':_0x234959}),_0xd05b15['suggestionView']['acceptButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0xd05b15['suggestionView']['discardButton']['on']('execute',()=>{_0x536adc['editing']['view']['focus']();}),_0x3a326e=_0x3219d4['createAnnotationView'](this['editor']['locale'],_0xd05b15),_0x3a326e['bind']('isDirty')['to'](_0xd05b15,'isDirty'),_0x3a326e['bind']('length')['to'](_0xd05b15),_0x3a326e['bind']('type')['to'](_0xd05b15,'type',_0x377468=>'suggestion-'+_0x377468),_0xd05b15['on']('escape',()=>{_0x1545ea['fire']('escape');}),this['_annotationViews']['set'](_0x8d17e3['id'],_0x3a326e));const _0x39c011=_0x5ef0c3['createCommentThreadController'](_0x8d17e3['commentThread'],_0xd05b15),_0x1622ac=new xe(_0x536adc,_0x8d17e3,_0xd05b15,_0x39c011),_0xb1648c=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0xda5b7f=>_0xda5b7f['isInContent']);_0xd05b15['descriptionParts']=_0x536adc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xb1648c),this['_suggestionToController']['set'](_0x8d17e3,_0x1622ac),this['_viewToController']['set'](_0xd05b15,_0x1622ac);const _0x3be56d=()=>{const _0x5e8761=[],_0x543667=_0x8d17e3['getAllAdjacentSuggestions']()['filter'](_0x5967e8=>_0x5967e8['isInContent']);for(const _0x17c1db of _0x543667)_0x5e8761['push'](..._0x17c1db['getMarkers']());return _0x4c9d1b(_0x536adc['editing'],_0x5e8761);};_0x1545ea=_0x3219d4['createAnnotation']({'view':_0x3a326e,'target':_0x3be56d,'type':()=>'suggestion-'+_0x1622ac['view']['type'],'isVisible':!!_0x3be56d()}),_0x5ef0c3['_bindAnnotationToEditors'](_0xd05b15,_0x1545ea),_0x3219d4['add'](_0x1545ea),_0x6a5d['registerAnnotation'](_0x1545ea);}['_destroyController'](_0x4f3c3c){const _0xefb75d=this['editor']['plugins']['get']('CommentsRepository'),_0x575c77=this['editor']['plugins']['get']('Annotations'),_0x496641=this['_suggestionToController']['get'](_0x4f3c3c),_0x51bdda=_0x496641['view'],_0x272300=_0x575c77['getByInnerView'](_0x51bdda);_0xefb75d['_unbindEditors'](_0x51bdda),_0x272300&&_0x575c77['remove'](_0x272300),this['_suggestionToController']['delete'](_0x4f3c3c),this['_viewToController']['delete'](_0x51bdda),_0x496641['destroy']();}['_updateController'](_0x50039f){if(!_0x50039f['isInContent']||!this['_suggestionToController']['has'](_0x50039f))return;const _0x59fe00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22aa08=this['_suggestionToController']['get'](_0x50039f),_0x15120e=_0x50039f['getAllAdjacentSuggestions']();_0x22aa08['view']['descriptionParts']=_0x59fe00['descriptionFactory']['getDescriptions'](_0x15120e);}['destroy'](){for(const _0x2e2c86 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2e2c86);for(const _0x3bbb32 of this['_annotationViews']['values']())_0x3bbb32['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ke(_0x39c2b0){return'model'in _0x39c2b0;}class Xe extends _0x4e7f5a{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4694ea){this['editor']['plugins']['get'](d)['adapter']=_0x4694ea;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x39788e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x39788e);}['getSuggestions']({skipNotAttached:_0x369b5d=!0x1,toJSON:_0x4b78b0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x369b5d,'toJSON':_0x4b78b0});}['getSuggestion'](_0x1527ee){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1527ee);}}const p=['Pagination'];class ue extends _0x4e7f5a{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xfc40a6=this['editor'];if(_0xfc40a6['config']['define']('trackChangesData.editorCreator',_0x5f3c2e=>{const _0x3aa845=_0xfc40a6['model']['document']['getRootNames']()['reduce']((_0x2a929e,_0x2e3609)=>(_0x2a929e[_0x2e3609]='',_0x2a929e),{});return _0xfc40a6['constructor']['create'](_0x3aa845,_0x5f3c2e);}),'function'!=typeof _0xfc40a6['config']['get']('trackChangesData')['editorCreator'])throw new _0x5a4829('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x394151){return P(this['editor'],!0x0,_0x394151);}['getDataWithDiscardedSuggestions'](_0x225d24){return P(this['editor'],!0x1,_0x225d24);}}class Ye extends _0x4e7f5a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f06df){function _0x20c372(_0x53dce5){return _0x53dce5['map'](_0x7aba07=>String['fromCharCode'](_0x7aba07))['join']('');}super(_0x2f06df),this['result']='end',_0x2f06df[_0x20c372([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c372([0x76,0x69,0x65,0x77])][_0x20c372([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c372([0x61,0x75,0x74,0x6f]),_0x2f06df[_0x20c372([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20c372([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c372([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20c372([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20c372([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 Qe(_0x297d30){return void 0x0!==_0x297d30['getRootsAttributes'];}async function P(_0x11f0fe,_0x9122f8,_0x67c3fd){const _0x111ce7=_0x3e3c2c(_0x11f0fe,p);_0x111ce7['plugins']['push'](d,Ye),_0x111ce7['rootsAttributes']=Qe(_0x11f0fe)?_0x11f0fe['getRootsAttributes']():void 0x0;const _0x5ca5ec=document['createDocumentFragment'](),_0x46b093=_0x11f0fe['config']['get']('trackChangesData')['editorCreator'],_0x2a1461=await _0x46b093(_0x111ce7,()=>function(_0x3955ef){const _0xb9febf=document['createElement']('div');return _0x3955ef['appendChild'](_0xb9febf),_0xb9febf;}(_0x5ca5ec));!function(_0x2f8b9b,_0x78ae92){const _0x125853=_0x2f8b9b['model']['document']['getRootNames']()['reduce']((_0x457d4a,_0x5b1779)=>(_0x457d4a[_0x5b1779]=_0x2f8b9b['data']['get']({'rootName':_0x5b1779}),_0x457d4a),{}),_0x216e61=_0x2f8b9b['plugins']['get']('Users')['users']['map'](_0x3428ef=>({'id':_0x3428ef['id'],'name':_0x3428ef['name']})),_0x378938=_0x2f8b9b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54e2b4=_0x2f8b9b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x351743=_0x78ae92['plugins']['get']('Users'),_0x5b1a5d=_0x78ae92['plugins']['get']('TrackChangesEditing'),_0x3e11db=_0x78ae92['plugins']['get']('CommentsRepository');for(const _0x12a3e4 of _0x3e11db['getCommentThreads']())_0x12a3e4['remove']();for(const _0x217572 of _0x216e61)_0x351743['getUser'](_0x217572['id'])||_0x351743['addUser'](_0x217572);_0x351743['me']||_0x351743['useAnonymousUser']();for(const _0x30bd9d of _0x54e2b4)_0x3e11db['addCommentThread'](_0x30bd9d);for(const _0x451a5e of _0x378938)_0x5b1a5d['addSuggestionData'](_0x451a5e);_0x78ae92['data']['set'](_0x125853);}(_0x11f0fe,_0x2a1461),_0x2a1461['execute'](_0x9122f8?'acceptAllSuggestions':'discardAllSuggestions');const _0x5018f3=Qe(_0x2a1461)?_0x2a1461['getFullData'](_0x67c3fd):_0x2a1461['data']['get'](_0x67c3fd);return await _0x2a1461['destroy'](),_0x5018f3;}class _e extends _0x16d85e{['options'];constructor(_0x4db2dd,_0x234bc0){super(_0x4db2dd),this['options']=_0x234bc0,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'](_0x28c19d,_0x14d03b){if(!this['element'])return;const _0x59567f=[];for(const [_0x32c02e,_0x3565e8]of _0x28c19d){const _0xe23359=document['createElement']('div');_0xe23359['setAttribute']('data-ck-root-name',_0x32c02e),_0xe23359['className']=_0x3565e8['classes']+'\x20ck-track-changes-preview__root-container',_0xe23359['innerHTML']=_0x3565e8['content'],_0x59567f['push'](_0xe23359);}_0x14d03b(this['element'],_0x59567f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ge extends _0x30f11b{constructor(_0x22c16f){super(_0x22c16f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x207ffd=this['editor'],_0x562ac7=_0x207ffd['locale'],_0x11dab3=_0x207ffd['plugins']['get']('Dialog');let _0x3a5c1e;const _0x18f16d=function(_0x2bfa5b){const _0x354de3={};if('editables'in _0x2bfa5b['ui']['view']){for(const [_0xdf34f9,_0x136495]of Object['entries'](_0x2bfa5b['ui']['view']['editables']))_0x354de3[_0xdf34f9]=_0x136495['element'];}else _0x354de3[_0x2bfa5b['model']['document']['getRootNames']()[0x0]]=_0x2bfa5b['ui']['view']['editable']['element'];return _0x354de3;}(_0x207ffd),_0x17f996=function(_0x1e83d0){let _0x787d54=0x0;for(const _0x4d7eb7 of Object['values'](_0x1e83d0))_0x787d54=Math['max'](_0x787d54,_0x4d7eb7['getBoundingClientRect']()['width']);let _0x2987a7=0x0;for(const _0x2697d8 of Object['values'](_0x1e83d0))_0x2987a7+=_0x2697d8['getBoundingClientRect']()['height'];const _0x442e52=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x53116c=Math['min'](_0x2987a7,_0x442e52);return{'width':_0x787d54,'height':_0x53116c};}(_0x18f16d);_0x11dab3['show']({'id':'finalContentPreview','title':o(_0x562ac7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x562ac7,{'dialogRects':_0x17f996}),'onHide':()=>{_0x3a5c1e['detachFromDom']();},'onShow':()=>{_0x207ffd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41559d=>{const _0x4a6b9e=this['_standarizeRootsData'](_0x41559d,_0x207ffd,_0x18f16d);_0x11dab3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4a6b9e,_0x207ffd['config']['get']('trackChanges.preview.renderFunction'));}),_0x3a5c1e=new _0x2dfe06(_0x562ac7,[_0x11dab3['view']]),_0x3a5c1e['attachToDom'](),_0x3a5c1e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x207ffd['once']('destroy',()=>{_0x3a5c1e['detachFromDom']();});const _0x19325c=_0x11dab3['view']['headerView']['class'];_0x11dab3['view']['headerView']['class']=_0x19325c?_0x19325c+'\x20ck-reset_all':'ck-reset_all',_0x11dab3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x11dab3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2a2070=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4f3a02=_0x2a2070['previewMode'],_0x2c6a2e={};if('$labels'===_0x4f3a02){for(const _0x32fee2 of _0x2a2070['getMergeFieldsIds']())_0x2c6a2e[_0x32fee2]=_0x2a2070['getLabel'](_0x32fee2)||_0x32fee2;}else{const _0x339ee0='$defaultValues'===_0x4f3a02?_0x2a2070['getDefaultValues']():_0x2a2070['getDataSetValues'](_0x4f3a02,!0x0);for(const _0xb2a632 of Object['entries'](_0x339ee0)){const [_0x4b9607,_0x1e36c6]=_0xb2a632;_0x2c6a2e[_0x4b9607]=null!==_0x1e36c6?_0x1e36c6:_0x2a2070['getLabel'](_0x4b9607)||_0x4b9607;}}return{'mergeFieldsData':_0x2c6a2e};}['_standarizeRootsData'](_0x3b31e2,_0x2358ab,_0x204f68){let _0x3db349;if('string'==typeof _0x3b31e2){const _0x1b7914=_0x2358ab['model']['document']['getRootNames']()[0x0];_0x3db349={[_0x1b7914]:_0x3b31e2};}else _0x3db349=_0x3b31e2;const _0x16e968=this['_fixMediaEmbeds'](_0x3db349,_0x2358ab),_0x1bc2c6=function(_0x3574fb,_0x1148c7){for(const [_0x3b6ca1,_0x19d06a]of _0x3574fb)_0x19d06a['classes']=_0x1148c7[_0x3b6ca1]['classList']['value']['replace']('ck-focused','');return _0x3574fb;}(this['_sortRoots'](_0x2358ab)['reduce']((_0x58d7d3,_0x57a573)=>(_0x58d7d3['push']([_0x57a573,{'content':_0x16e968[_0x57a573],'classes':''}]),_0x58d7d3),[]),_0x204f68);return _0x1bc2c6;}['_fixMediaEmbeds'](_0x3d9e47,_0x39a1dd){if(!_0x39a1dd['plugins']['has']('MediaEmbedEditing'))return _0x3d9e47;const _0x88acb7=_0x39a1dd['plugins']['get']('MediaEmbedEditing');for(const [_0x4a1208,_0x3b5252]of Object['entries'](_0x3d9e47)){const _0x14eaf3=document['createElement']('div');_0x14eaf3['innerHTML']=_0x3b5252,(_0x14eaf3['querySelectorAll']('figure.media')['forEach'](_0x40d3e2=>{const _0x3981a6=_0x40d3e2['querySelector']('oembed');if(_0x3981a6){const _0x2037c5=_0x3981a6['getAttribute']('url');if(_0x2037c5){const _0x1f29f1=_0x88acb7['registry']['getMediaViewElement'](new _0x2ef6b6(_0x39a1dd['editing']['view']['document']),_0x2037c5,{'elementName':'','renderForEditingView':!0x0}),_0x59db8d=document['createElement']('div');_0x59db8d['classList']['add']('ck-media__wrapper'),_0x1f29f1['render'](_0x59db8d,_0x39a1dd['editing']['view']['domConverter']),_0x3981a6['replaceWith'](_0x59db8d);}}}),_0x3d9e47[_0x4a1208]=_0x14eaf3['innerHTML']);}return _0x3d9e47;}['_sortRoots'](_0x1645ec){if(!function(_0x4fbf49){return void 0x0!==_0x4fbf49['getRootsAttributes'];}(_0x1645ec))return _0x1645ec['model']['document']['getRootNames']();const _0x552cbb=[],_0x129385=new Map();for(const _0x1579ac of _0x1645ec['model']['document']['getRootNames']()){const _0x5e3aba=_0x1645ec['editing']['view']['getDomRoot'](_0x1579ac)['getClientRects']()['item'](0x0);_0x552cbb['push'](_0x1579ac),_0x129385['set'](_0x1579ac,_0x5e3aba);}return _0x552cbb['sort']((_0x19f498,_0x4c43b6)=>{const _0x4a6879=_0x129385['get'](_0x19f498),_0x115624=_0x129385['get'](_0x4c43b6);return _0x4a6879['y']-_0x115624['y']||_0x4a6879['x']-_0x115624['x'];}),_0x552cbb;}}class Ze extends _0x4e7f5a{static get['requires'](){return[ue,_0x540b17];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36db03){super(_0x36db03),_0x36db03['commands']['add']('previewFinalContent',new ge(this['editor'])),_0x36db03['config']['define']('trackChanges.preview.renderFunction',(_0x59a632,_0x346756)=>{for(const _0x9c381c of _0x346756)_0x59a632['appendChild'](_0x9c381c);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ge as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Ae as SuggestionThreadView,Ee as SuggestionView,Xe as TrackChanges,B as TrackChangesCommand,ue as TrackChangesData,Ye as TrackChangesDataGetter,d as TrackChangesEditing,Ze as TrackChangesPreview,u as TrackChangesUI};
|