@ckeditor/ckeditor5-track-changes 43.3.0-alpha.1 → 43.3.0-alpha.12
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 +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- 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/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/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/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/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x4f9031(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x140448,_0x29e9d5){super(),this['id']=_0x29e9d5['id'],this['type']=_0x29e9d5['type'],this['subType']=_0x29e9d5['subType']||null,this['author']=_0x29e9d5['author'],this['creator']=_0x29e9d5['creator']||_0x29e9d5['author'],this['isExternal']=Boolean(_0x29e9d5['attributes']&&_0x29e9d5['attributes']['@external']),this['data']=null,this['_model']=_0x140448,this['_onAccept']=_0x29e9d5['onAccept'],this['_onDiscard']=_0x29e9d5['onDiscard'],this['_onAttributesChange']=_0x29e9d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e9d5['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 _0x4f27ee=this;for(;_0x4f27ee['previous'];)_0x4f27ee=_0x4f27ee['previous'];return _0x4f27ee;}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'](_0x53e8cd){this['_markerNames']['add'](_0x53e8cd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x42add3=>this['_model']['markers']['get'](_0x42add3))['filter'](_0x4fac7b=>_0x4fac7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29d642=>{for(const _0x2ff0bc of this['getMarkers']())_0x29d642['removeMarker'](_0x2ff0bc);}),this['_markerNames']['clear']();}['removeMarker'](_0x29dc32){this['_model']['change'](_0x2f0f90=>{_0x2f0f90['removeMarker'](_0x29dc32);}),this['_markerNames']['delete'](_0x29dc32);}['addRange'](_0x4822c4){const _0x51429b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x51429b),this['_model']['change'](_0x41d51e=>{_0x41d51e['addMarker'](_0x51429b,{'range':_0x4822c4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x8669f2){for(const _0x579013 of this['getRanges']())if(_0x579013['isIntersecting'](_0x8669f2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x582f56=>_0x582f56['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x195262,_0x4df04f)=>[..._0x195262,..._0x4df04f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x42c171=this['getRanges']();if(0x1!=_0x42c171['length'])return null;const _0x18ed40=_0x42c171[0x0],_0x9b9941=_0x18ed40['start']['nodeAfter'],_0x2e4109=_0x18ed40['end']['nodeBefore'];return _0x9b9941 instanceof _0x367a8a?_0x9b9941!=_0x2e4109?null:_0x9b9941: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 _0xe01a0c=[];let _0x11e55c=this['head'];for(;_0x11e55c;)_0xe01a0c['push'](_0x11e55c),_0x11e55c=_0x11e55c['next'];return _0xe01a0c;}['setAttribute'](_0x1157dc,_0x3c4536){const _0x248620=_0x45a778(this['attributes']);_0x54e2f9(_0x248620,_0x1157dc,_0x3c4536),_0x10d9b1(_0x248620,this['attributes'])||(this['attributes']=_0x248620,this['_onAttributesChange'](_0x248620));}['removeAttribute'](_0x4ea4ef){const _0x197ed4=_0x45a778(this['attributes']);_0x24aeb4(_0x197ed4,_0x4ea4ef),_0x10d9b1(_0x197ed4,this['attributes'])||(this['attributes']=_0x197ed4,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 _0x31d1bc()['substr'](0x1,0x5);}}function o(_0x3a643a,_0x48c03c,_0x564575){const _0x501a8d=_0x3a643a['t'],t=_0x3a643a['t'];switch(_0x48c03c){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'*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',_0x564575);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x564575);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x564575);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x564575);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x564575);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',_0x564575);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x564575);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x564575);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x564575);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x564575);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x564575);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x564575);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x564575);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x564575);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x564575);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x564575);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x564575);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x564575);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x564575);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x564575);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x564575);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x564575);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x564575);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'},_0x564575);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x564575);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x564575);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x564575);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x564575);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x564575);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'},_0x564575);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x564575);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x564575);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x564575);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x564575);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'},_0x564575);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x564575);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'},_0x564575);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x564575);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x564575);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'},_0x564575);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x564575);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x564575);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'},_0x564575);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 _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x564575);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x501a8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x564575);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x564575);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'},_0x564575);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'},_0x564575);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'},_0x564575);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48c03c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d7259,_0x4fbf39){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d7259,this['_locale']=_0x4fbf39;}['getDescriptions'](_0x4b60a9){const _0x3ebd3f=[],_0x499342=new Set(),_0x40c875=new Set();for(let _0x561a43=0x0;_0x561a43<_0x4b60a9['length'];_0x561a43++){const _0x448cdc=_0x4b60a9[_0x561a43];if(!_0x448cdc['isInContent'])continue;const _0x376893=this['_handleCustomCallbackDescription'](_0x448cdc);if(_0x376893){if(null!=_0x448cdc['subType']){if(_0x499342['has'](_0x448cdc['subType']))continue;_0x499342['add'](_0x448cdc['subType']);}_0x3ebd3f['push'](_0x376893);}else{if('attribute'!=_0x448cdc['type'])'insertion'!=_0x448cdc['type']&&'deletion'!=_0x448cdc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ebd3f,_0x448cdc,_0x4b60a9[_0x561a43+0x1]);else{const _0x178f5e=_0x448cdc['data']['key'];if(_0x40c875['has'](_0x178f5e))continue;_0x40c875['add'](_0x448cdc['data']['key']),_0x178f5e==m?this['_handleRenameSuggestionDescription'](_0x3ebd3f,_0x448cdc):this['_handleAttributeSuggestionDescription'](_0x3ebd3f,_0x448cdc);}}}return this['_resolveDescriptionItems'](_0x3ebd3f);}['registerDescriptionCallback'](_0x34c67a){this['_customCallbacks']['push'](_0x34c67a);}['registerElementLabel'](_0x49a99c,_0x882ed3,_0x52e8c0=_0x3a7800['normal']){'function'==typeof _0x49a99c?_0x972427(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49a99c,'label':_0x882ed3,'priority':_0x52e8c0}):this['_itemLabels']['set'](_0x49a99c,_0x882ed3);}['registerAttributeLabel'](_0x5d5eee,_0x16e205){this['_attributeLabels']['set'](_0x5d5eee,_0x16e205);}['getItemLabel'](_0x16d4ac,_0x5f3cd4=0x1){let _0x1327fe;for(const _0xa198c0 of this['_itemLabelsCallbacks'])if(_0xa198c0['matchingCallback'](_0x16d4ac)){_0x1327fe=_0xa198c0['label'];break;}return _0x1327fe||(_0x1327fe=this['_itemLabels']['get'](_0x16d4ac['name'])),_0x1327fe?_0x1327fe(_0x5f3cd4):0x1!==_0x5f3cd4?_0x5f3cd4+'\x20'+_0x16d4ac['name']+'s':''+_0x16d4ac['name'];}['_addDescriptionItems'](_0x150606,_0x2894bc){const _0x250851=_0x2894bc['getFirstRange']()['getWalker'](),_0x48f0a0='insertion'==_0x2894bc['type']?'add':'remove';for(const _0x525bdb of _0x250851){const _0x222f37=_0x525bdb['item'],_0x32c832=_0x150606[_0x150606['length']-0x1];if(_0x222f37['is']('$textProxy'))_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),_0x32c832&&'text'==_0x32c832['type']?_0x32c832[_0x48f0a0]+=_0x222f37['data']:_0x150606['push']({'type':'text','add':'add'==_0x48f0a0?_0x222f37['data']:'','remove':'remove'==_0x48f0a0?_0x222f37['data']:''});else{if(this['_schema']['isObject'](_0x222f37)){const _0x30c6b0=_0x222f37;if(_0x32c832&&_0x32c832['type']['indexOf']('Container')>-0x1&&_0x150606['pop'](),'elementEnd'==_0x525bdb['type'])continue;_0x32c832&&_0x32c832['type']==_0x48f0a0+'Object'&&_0x32c832['element']['name']==_0x30c6b0['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'Object','element':_0x30c6b0,'quantity':0x1}),_0x250851['skip'](_0x308a96=>!('elementEnd'==_0x308a96['type']&&_0x308a96['item']==_0x222f37));}else{if(this['_schema']['checkChild'](_0x222f37,'$text')||_0x222f37['is']('element','softBreak')){const _0xe57d1=_0x222f37;if('add'==_0x48f0a0&&'elementStart'==_0x525bdb['type']||'remove'==_0x48f0a0&&'elementEnd'==_0x525bdb['type'])continue;if(_0x32c832&&-0x1==_0x32c832['type']['indexOf']('Container')){'text'==_0x32c832['type']&&(_0x32c832[_0x48f0a0]+='\x0a');continue;}let _0x3f945c;if(_0x3f945c='add'==_0x48f0a0?_0xe57d1['nextSibling']&&!this['_schema']['isObject'](_0xe57d1['nextSibling'])?_0xe57d1['nextSibling']:null:_0xe57d1['previousSibling']&&!this['_schema']['isObject'](_0xe57d1['previousSibling'])?_0xe57d1['previousSibling']:null,_0xe57d1['isEmpty']||_0x3f945c&&_0x3f945c['isEmpty']){const _0x3ae0a6=_0x3f945c&&_0x3f945c['isEmpty']?_0x3f945c:_0xe57d1;_0x32c832&&_0x32c832['type']==_0x48f0a0+'EmptyContainer'&&_0x32c832['element']['name']==_0x3ae0a6['name']?_0x32c832['quantity']++:_0x150606['push']({'type':_0x48f0a0+'EmptyContainer','element':_0x3ae0a6,'quantity':0x1});}else _0x150606['push']({'type':_0x48f0a0+'Container','element':_0xe57d1});}}}}}['_resolveDescriptionItems'](_0x31bf15){const _0x3f748a=this['_locale'],_0x450dff=[],_0x166dde=[],_0x241ecb=[];for(const _0x31e445 of _0x31bf15)switch(_0x31e445['type']){case'text':if(_0x31e445['add']=_0x31e445['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x31e445['remove']=_0x31e445['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x31e445['add']&&''!=_0x31e445['remove']){_0x450dff['push']({'type':'replace','content':o(_0x3f748a,'REPLACE_TEXT',['\x22'+_0x31e445['remove']+'\x22','\x22'+_0x31e445['add']+'\x22'])});continue;}if(null!=_0x31e445['add']['match'](/^ +$/)){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['add']['length']))});continue;}if(null!=_0x31e445['remove']['match'](/^ +$/)){_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',o(_0x3f748a,'ELEMENT_SPACE',_0x31e445['remove']['length']))});continue;}if(''!=_0x31e445['add']){_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0','\x22'+_0x31e445['add']+'\x22')});continue;}_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0','\x22'+_0x31e445['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Insert:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Remove:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addContainer':_0x450dff['push']({'type':'insertion','content':o(_0x3f748a,'*Split:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'removeContainer':_0x450dff['push']({'type':'deletion','content':o(_0x3f748a,'*Merge:*\x20%0',this['getItemLabel'](_0x31e445['element'],_0x31e445['quantity']))});continue;case'addFormat':_0x166dde['push'](_0x31e445['key']);continue;case'removeFormat':_0x241ecb['push'](_0x31e445['key']);continue;default:_0x450dff['push'](_0x31e445);}if(_0x166dde['length']){const _0x22f88d=_0x166dde['map'](_0xa717eb=>this['_attributeLabels']['has'](_0xa717eb)?this['_attributeLabels']['get'](_0xa717eb):_0xa717eb)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x22f88d)});}if(_0x241ecb['length']){const _0x599e11=_0x241ecb['map'](_0x186a12=>this['_attributeLabels']['has'](_0x186a12)?this['_attributeLabels']['get'](_0x186a12):_0x186a12)['join'](',\x20');_0x450dff['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x599e11)});}return _0x450dff;}['_handleCustomCallbackDescription'](_0xe378ee){for(const _0x129c5d of this['_customCallbacks']){const _0xb8c34f=_0x129c5d(_0xe378ee);if(_0xb8c34f&&'type'in _0xb8c34f)return _0xb8c34f;}}['_handleAttributeSuggestionDescription'](_0x2c324c,_0x520c99){const _0x554a2b=_0x520c99['data'],_0x66956e=void 0x0===_0x554a2b['newValue']?'removeFormat':'addFormat';_0x2c324c['push']({'type':_0x66956e,'key':_0x554a2b['key']});}['_handleRenameSuggestionDescription'](_0x474738,_0x3a5b90){_0x474738['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3a5b90['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xea921,_0x4fcea7,_0x430fad){if(this['_addDescriptionItems'](_0xea921,_0x4fcea7),_0x430fad&&_0x430fad['getFirstRange']()&&!_0x4fcea7['getFirstRange']()['end']['isEqual'](_0x430fad['getFirstRange']()['start'])){const _0x1ac367=_0xea921[_0xea921['length']-0x1],_0x480b3f='insertion'==_0x4fcea7['type']?'add':'remove';_0x1ac367&&'text'==_0x1ac367['type']&&(_0x1ac367[_0x480b3f]+='\x0a');}}}class V extends _0x16a2ad{['afterInit'](){const _0x3c404e=this['editor'],_0x49c022=_0x3c404e['plugins']['get']('TrackChangesEditing');_0x3c404e['commands']['get']('showAIAssistant')&&_0x49c022['enableCommand']('showAIAssistant');}}class U extends _0x16a2ad{['afterInit'](){const _0x580d82=this['editor'],_0x46d6b8=_0x580d82['locale'];if(!_0x580d82['plugins']['has']('AlignmentEditing'))return;const _0x1e10d3=_0x580d82['plugins']['get']('TrackChangesEditing');_0x1e10d3['enableDefaultAttributesIntegration']('alignment'),_0x1e10d3['registerBlockAttribute']('alignment'),_0x1e10d3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46d6b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34865e=this['editor'],_0x4250dc=_0x34865e['locale'];_0x34865e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3966a3=>{if('formatBlock'!=_0x3966a3['type'])return;const {data:_0x2192c5}=_0x3966a3;if(_0x2192c5&&'alignment'==_0x2192c5['commandName']){const _0x2a57b9=_0x2192c5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4250dc,'*Format:*\x20%0',function(_0x56e6b6){switch(_0x56e6b6){case'left':return o(_0x4250dc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4250dc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4250dc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4250dc,'FORMAT_JUSTIFY_TEXT');}}(_0x2a57b9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x16a2ad{['afterInit'](){const _0x13134=this['editor'],_0x484795=_0x13134['plugins']['get']('TrackChangesEditing'),_0xfbbc0e=_0x13134['locale'];for(const _0x2bfe14 of ti){if(!_0x13134['plugins']['has'](_0x2bfe14))continue;const _0x576569=_0x2bfe14['slice'](0x0,-0x7)['toLowerCase'](),_0x47244b='FORMAT_'+_0x576569['toUpperCase']();_0x484795['enableDefaultAttributesIntegration'](_0x576569),_0x484795['registerInlineAttribute'](_0x576569),_0x484795['descriptionFactory']['registerAttributeLabel'](_0x576569,o(_0xfbbc0e,_0x47244b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1380b6=this['editor'],_0x74974b=_0x1380b6['locale'],_0x2a813c=_0x1380b6['plugins']['get']('TrackChangesEditing');function _0x3cf2bd(_0x89b9d9,_0x2c2b51){_0x2a813c['descriptionFactory']['registerDescriptionCallback'](_0x26ab13=>{if('formatInline'!=_0x26ab13['type'])return;const {data:_0x161094}=_0x26ab13;return _0x161094&&_0x161094['commandName']===_0x89b9d9?_0x161094['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x74974b,'*Format:*\x20%0',_0x2c2b51)}:{'type':'format','content':o(_0x74974b,'*Remove\x20format:*\x20%0',_0x2c2b51)}:void 0x0;});}_0x3cf2bd('bold',o(_0x74974b,'FORMAT_BOLD')),_0x3cf2bd('italic',o(_0x74974b,'FORMAT_ITALIC')),_0x3cf2bd('underline',o(_0x74974b,'FORMAT_UNDERLINE')),_0x3cf2bd('code',o(_0x74974b,'FORMAT_CODE')),_0x3cf2bd('strikethrough',o(_0x74974b,'FORMAT_STRIKETHROUGH')),_0x3cf2bd('subscript',o(_0x74974b,'FORMAT_SUBSCRIPT')),_0x3cf2bd('superscript',o(_0x74974b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x16a2ad{['afterInit'](){const _0x231134=this['editor'],_0x5d8cfd=_0x231134['locale'];if(!_0x231134['plugins']['has']('BlockQuoteEditing'))return;const _0x1c1982=_0x231134['plugins']['get']('TrackChangesEditing'),_0x1d81c1=this['editor']['commands']['get']('blockQuote');_0x1c1982['enableCommand']('blockQuote',(_0x199b51,_0x325c73={})=>{const _0x503061=this['editor']['model']['document']['selection'],_0x5b6171=_0x325c73&&void 0x0!==_0x325c73['forceValue']?_0x325c73['forceValue']:!_0x1d81c1['value'];let _0x2db3f9=[];if(_0x5b6171){const _0xc1d935=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x31b8cd=>oo(_0x31b8cd)||function(_0x3e7840,_0x4b3a8a){const _0x1fb688=_0x4b3a8a['checkChild'](_0x3e7840['parent'],'blockQuote'),_0x4f529b=_0x4b3a8a['checkChild'](['$root','blockQuote'],_0x3e7840);return _0x1fb688&&_0x4f529b;}(_0x31b8cd,this['editor']['model']['schema']));_0x2db3f9=to(_0xc1d935,_0x231134['model']);}else{const _0x1c1c8d=Array['from'](_0x503061['getSelectedBlocks']())['filter'](_0x342793=>oo(_0x342793));_0x2db3f9=to(_0x1c1c8d,_0x231134['model']);}_0x231134['model']['change'](()=>{for(const _0x24dd38 of _0x2db3f9)_0x1c1982['markBlockFormat'](_0x24dd38,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b6171}]});});}),_0x1c1982['descriptionFactory']['registerDescriptionCallback'](_0x3df2fb=>{const {data:_0x200d4d}=_0x3df2fb;if(_0x200d4d&&'blockQuote'==_0x200d4d['commandName']){const _0x8a6990=o(_0x5d8cfd,'ELEMENT_BLOCK_QUOTE');return _0x200d4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d8cfd,'*Set\x20format:*\x20%0',_0x8a6990)}:{'type':'format','content':o(_0x5d8cfd,'*Remove\x20format:*\x20%0',_0x8a6990)};}});}}function oo(_0x25cf25){return'blockQuote'==_0x25cf25['parent']['name'];}class L extends _0x16a2ad{['afterInit'](){const _0x506377=this['editor'];_0x506377['plugins']['has']('CaseChange')&&(_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x506377['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x16a2ad{['afterInit'](){const _0x319277=this['editor'];_0x319277['commands']['get']('ckbox')&&_0x319277['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x16a2ad{['afterInit'](){const _0x252f67=this['editor'];if(!_0x252f67['plugins']['has']('CodeBlock'))return;const _0x222280=_0x252f67['plugins']['get']('TrackChangesEditing'),_0x4355aa=_0x252f67['locale'],_0xe2d650=_0x252f67['config']['get']('codeBlock')['languages'],_0x88d22=_0x252f67['commands']['get']('codeBlock');_0x222280['enableCommand']('indentCodeBlock'),_0x222280['enableCommand']('outdentCodeBlock'),_0x222280['enableCommand']('codeBlock',(_0x36ca9f,_0x2e41e3={})=>{const _0x30f604=_0x252f67['model'],_0x2b4c63=_0x252f67['model']['document']['selection'],_0xf4b5db=_0x2e41e3&&void 0x0!==_0x2e41e3['forceValue']?_0x2e41e3['forceValue']:!_0x88d22['value'];let _0x6fc561;_0x2e41e3['language']||(_0x2e41e3['language']=_0xe2d650[0x0]['language']),_0x6fc561=_0xf4b5db?Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x7064c7=>eo(_0x7064c7)||function(_0x26df80,_0x292c83){if(_0x26df80['is']('rootElement')||_0x292c83['isLimit'](_0x26df80))return!0x1;return _0x292c83['checkChild'](_0x26df80['parent'],'codeBlock');}(_0x7064c7,_0x30f604['schema'])):Array['from'](_0x2b4c63['getSelectedBlocks']())['filter'](_0x23b7d2=>eo(_0x23b7d2));const _0x453e1c=to(_0x6fc561,_0x30f604);_0x30f604['change'](()=>{for(const _0x5f559c of _0x453e1c)_0x222280['markBlockFormat'](_0x5f559c,{'commandName':'codeBlock','commandParams':[{..._0x2e41e3,'forceValue':_0xf4b5db}],'formatGroupId':'blockName'});});}),(_0x222280['descriptionFactory']['registerElementLabel']('codeBlock',_0x141a4d=>o(_0x4355aa,'ELEMENT_CODE_BLOCK',_0x141a4d)),_0x222280['descriptionFactory']['registerDescriptionCallback'](_0x23a11e=>{if('formatBlock'!=_0x23a11e['type'])return;const _0x462f1b=_0x4355aa['t'],{data:_0x36f696}=_0x23a11e;if(!_0x36f696||'codeBlock'!=_0x36f696['commandName'])return;const _0x145141=_0x36f696['commandParams'][0x0]['language'],_0x1655d0=_0x462f1b(_0xe2d650['find'](_0x3d0f78=>_0x3d0f78['language']===_0x145141)['label'])['toLowerCase']();return _0x36f696['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4355aa,'*Set\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1655d0+')')}:{'type':'format','content':o(_0x4355aa,'*Remove\x20format:*\x20%0',o(_0x4355aa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x12a62d){return'codeBlock'==_0x12a62d['name'];}class q extends _0x16a2ad{['afterInit'](){const _0x39746e=this['editor'];if(!_0x39746e['plugins']['has']('CommentsEditing'))return;_0x39746e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb9923,_0x5527be,_0x1e3fae){const _0x36f868=[];for(const _0x49cae1 of _0x5527be['getItems']())_0x49cae1['hasAttribute'](_0xb9923)&&_0x36f868['push'](_0x1e3fae['createRangeOn'](_0x49cae1));return _0x36f868;}function _e(_0x273c82,_0x271a41,{showActiveMarker:_0x10e538=!0x0}={}){const _0x42c443=_0x273c82['plugins']['get']('TrackChangesEditing');return(_0x132e72,_0x39b99c,_0x4889de)=>{if(!_0x4889de['consumable']['test'](_0x39b99c['markerRange'],_0x132e72['name']))return;const _0x66559e=_0x39b99c['markerRange']['getWalker'](),_0x55a4e1=_0x39b99c['markerRange']['start'],_0x42e783=_0x273c82['model']['schema'];let _0x443d6e=null,_0x29278c=null,_0x2b5d17=!0x1,_0x1f8ddd=!0x1;for(const _0x2884e3 of _0x66559e){const _0x180afd=_0x2884e3['item'];_0x2b5d17=_0x2b5d17||_0x42e783['isContent'](_0x180afd);const _0x578a35=_0x4889de['mapper']['toViewElement'](_0x180afd);if(_0x578a35&&_0x578a35['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2884e3['type']&&(_0x42e783['isBlock'](_0x180afd)&&!_0x42e783['isLimit'](_0x180afd)&&(_0x180afd['nextSibling']||_0x55a4e1['isAtEnd']?_0x443d6e&&_0x443d6e['parent']==_0x180afd||(_0x443d6e=_0x180afd,_0x2a53ae(_0x2884e3['previousPosition']),_0x1f8ddd=!0x0):_0x29278c=_0x29278c||_0x2884e3['previousPosition']));}function _0x2a53ae(_0xb26f9c){const {authorId:_0x557dfc}=_0x42c443['_splitMarkerName'](_0x39b99c['markerName']),_0x30ddbc=_0x4889de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x271a41,'data-author-id':_0x557dfc}),_0x4c7e97=_0x4889de['mapper']['toViewPosition'](_0xb26f9c);_0x10e538&&_0x42c443['activeMarkers']['includes'](_0x39b99c['markerName'])&&_0x4889de['writer']['addClass']('ck-suggestion-marker--active',_0x30ddbc),_0x4889de['writer']['insert'](_0x4c7e97,_0x30ddbc),_0x4889de['mapper']['bindElementToMarker'](_0x30ddbc,_0x39b99c['markerName']);}_0x2b5d17||_0x1f8ddd||!_0x29278c||_0x2a53ae(_0x29278c);};}class z extends _0x16a2ad{static get['requires'](){return[_0x292bc5];}['init'](){const _0x543ad5=this['editor'],_0xd09f9f=_0x543ad5['plugins']['get']('TrackChangesEditing');_0xd09f9f['enableCommand']('delete');const _0x1ebb3c=_0x543ad5['commands']['get']('deleteForward');_0xd09f9f['enableCommand']('deleteForward',(_0x492618,_0x246d01={})=>{const _0x2875ad=_0x543ad5['model']['createSelection'](_0x543ad5['model']['document']['selection']);_0x2875ad['isCollapsed']&&_0x543ad5['model']['modifySelection'](_0x2875ad,{'direction':'forward','unit':_0x246d01['unit']});const _0x402beb=_0x2875ad['getFirstRange'](),_0xc6ffe=_0x1eeee4['fromRange'](_0x402beb);let _0x595259;_0x492618(_0x246d01),_0x595259='$graveyard'==_0xc6ffe['root']['rootName']?_0x543ad5['model']['createRange'](_0x402beb['start']):_0x543ad5['model']['createRange'](_0xc6ffe['start'],_0xc6ffe['end']),_0xc6ffe['detach'](),_0x543ad5['model']['enqueueChange'](_0x1ebb3c['buffer']['batch'],_0x472477=>{_0x1ebb3c['buffer']['lock'](),_0x472477['setSelection'](_0x472477['createRange'](_0x595259['end'])),_0x1ebb3c['buffer']['unlock']();});}),_0x543ad5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x543ad5,'merge'),{'priority':'high'}),_0x543ad5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2612fa,_0x431273,_0x540cde)=>{_0x540cde['options']['showSuggestionHighlights']&&_e(_0x543ad5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2612fa,_0x431273,_0x540cde);},{'priority':'high'}),_0x543ad5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3f2ed6,_0x1e27a3,_0xdb928b)=>{const _0x2772ec=_0xdb928b['mapper']['markerNameToElements'](_0x1e27a3['markerName']);if(_0x2772ec){for(const _0x254c5b of _0x2772ec)_0x254c5b['is']('uiElement')&&(_0xdb928b['mapper']['unbindElementFromMarkerName'](_0x254c5b,_0x1e27a3['markerName']),_0xdb928b['writer']['remove'](_0x254c5b));}},{'priority':'high'});}}class K extends _0x16a2ad{['afterInit'](){const _0x2a531d=this['editor'];if(!_0x2a531d['plugins']['has']('ListEditing'))return;const _0x52c04c=_0x2a531d['locale'],_0x3697b8=_0x2a531d['plugins']['get']('TrackChangesEditing'),_0x2a854b=_0x2a531d['plugins']['has']('TodoListEditing'),_0xeb0773=!!_0x2a531d['config']['get']('list.multiBlock');function _0x207074(_0x30c078){return{'type':'format','content':''+o(_0x52c04c,'*Set\x20format:*\x20%0',_0x30c078)};}function _0x39252b(_0x4af901){return{'type':'format','content':''+o(_0x52c04c,'*Remove\x20format:*\x20%0',_0x4af901)};}_0x3697b8['enableDefaultAttributesIntegration']('numberedList'),_0x3697b8['enableDefaultAttributesIntegration']('bulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('customNumberedList'),_0x3697b8['enableDefaultAttributesIntegration']('customBulletedList'),_0x3697b8['enableDefaultAttributesIntegration']('indentList'),_0x3697b8['enableDefaultAttributesIntegration']('outdentList'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3697b8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3697b8['registerBlockAttribute']('listItemId'),_0x3697b8['registerBlockAttribute']('listType'),_0x3697b8['registerBlockAttribute']('listIndent'),_0xeb0773&&(_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3697b8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a854b&&(_0x3697b8['enableDefaultAttributesIntegration']('todoList'),_0x3697b8['enableDefaultAttributesIntegration']('checkTodoList'),_0x3697b8['registerBlockAttribute']('todoListChecked'),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x4e125e=>{const {data:_0x16790c}=_0x4e125e;if(_0x16790c&&'todoListChecked'==_0x16790c['key'])return{'type':'format','content':_0x16790c['newValue']?o(_0x52c04c,'*Check\x20item*'):o(_0x52c04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ad49f=>{if(_0x2ad49f['batch']['isUndo'])return!0x1;let _0x36b7f5=!0x1;const _0xae856=_0x3697b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b4e06=>'todoListChecked'===_0x3697b8['_getAttributeKey'](_0x2b4e06));for(const _0xee6ad5 of _0xae856){'todo'!=_0xee6ad5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3697b8['_findSuggestions'](_0xee6ad5['getFirstRange'](),'attribute')['find'](_0x59147f=>'listType'===_0x3697b8['_getAttributeKey'](_0x59147f['suggestion']))||(_0x2ad49f['removeMarker'](_0xee6ad5['getFirstMarker']()),_0x36b7f5=!0x0));}return _0x36b7f5;})),_0x3697b8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x52c04c,'FORMAT_INDENT'));const _0x5d890e={'type':'format','content':''};_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x365c47=>{const {data:_0x3c3c69}=_0x365c47;if(!_0x3c3c69||'listType'!=_0x3c3c69['key'])return;let _0x3c37c4=_0x365c47['head'];for(;_0x3c37c4;){if(_0x3c37c4['data']&&(('listStyle'==_0x3c37c4['data']['key']||'listMarkerStyle'==_0x3c37c4['data']['key'])&&(_0x3c37c4['data']['newValue']&&'default'!=_0x3c37c4['data']['newValue']||'default'!=_0x3c37c4['data']['oldValue']&&!_0x3c3c69['newValue'])||!_0xeb0773&&_0x3c37c4['data']['key']==m))return _0x5d890e;_0x3c37c4=_0x3c37c4['next'];}if(null==_0x3c3c69['newValue'])switch(_0x3c3c69['oldValue']){case'bulleted':return _0x39252b(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39252b(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39252b(o(_0x52c04c,'ELEMENT_TODO_LIST'));}switch(_0x3c3c69['newValue']){case'bulleted':return _0x207074(o(_0x52c04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x207074(o(_0x52c04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x207074(o(_0x52c04c,'ELEMENT_TODO_LIST'));}}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x461c9e=>{const {data:_0x4ec145}=_0x461c9e;if(_0x4ec145&&'listIndent'==_0x4ec145['key'])return null==_0x4ec145['newValue']||null==_0x4ec145['oldValue']&&0x0==_0x4ec145['newValue']?_0x5d890e:void 0x0;}),_0x3697b8['descriptionFactory']['registerDescriptionCallback'](_0x2923a=>{if('attribute'!=_0x2923a['type'])return;const {data:_0x5cb0d3}=_0x2923a;if(!_0x5cb0d3||'listItemId'!=_0x5cb0d3['key'])return;const _0x3d9c97=Ee(_0x2923a);return'newValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9c97?{'type':'format','content':o(_0x52c04c,'*Split:*\x20list\x20item')}:_0x5d890e;}),_0x2a531d['model']['document']['registerPostFixer'](_0x89298b=>this['listItemIdFixer'](_0x89298b)),_0x2a531d['model']['document']['registerPostFixer'](_0x356fdb=>this['noTrackChangesFixer'](_0x356fdb)),_0x2a531d['model']['document']['on']('change:data',(_0x2dd647,_0x1f7412)=>{if(_0x1f7412['isUndo']||!_0x1f7412['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdb2648){if(_0xdb2648['batch']['isUndo']||!_0xdb2648['batch']['isLocal'])return!0x1;let _0x162ca2=!0x1;const _0xd98ca3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1eda89=>_0x1eda89['data']&&'listItemId'==_0x1eda89['data']['key'])['filter'](_0x1e4416=>_0x1e4416['data']['newValue']&&_0x1e4416['data']['oldValue']);for(const _0x4d68dd of _0xd98ca3)Ee(_0x4d68dd)||(_0xdb2648['removeMarker'](_0x4d68dd['getFirstMarker']()),_0x162ca2=!0x0);return _0x162ca2;}['noTrackChangesFixer'](_0x40473c){if(_0x40473c['batch']['isUndo']||!_0x40473c['batch']['isLocal'])return!0x1;const _0x5c4284=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c4284['trackChangesCommand']['value'])return!0x1;let _0x20f2eb=!0x1;const _0x2fed19=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x341fec=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe504ea=>'attribute'==_0xe504ea['type'])['filter'](_0x5eeeda=>_0x2fed19['includes'](_0x5eeeda['attributeKey']));if(0x0==_0x341fec['length'])return _0x20f2eb;for(const _0x337d5f of _0x341fec){const _0x520f7e=_0x5c4284['_findSuggestions'](_0x337d5f['range'],'attribute')['filter'](_0x1f1c07=>!_0x1f1c07['meta']['isNextTo'])['map'](_0x28d276=>_0x28d276['suggestion'])['filter'](_0x5906d0=>{const _0x1fa236=_0x5c4284['_getAttributeKey'](_0x5906d0);return _0x2fed19['includes'](_0x1fa236);});if(_0x520f7e['length']){for(const _0x1488b6 of _0x520f7e)_0x40473c['removeMarker'](_0x1488b6['getFirstMarker']());_0x20f2eb=!0x0;}}return _0x20f2eb;}['assureChains'](){const _0x743c78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d281b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x169e66;const _0x3601f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x497e5c=>{if(_0x497e5c['data']['oldRange']||!_0x497e5c['data']['newRange'])return null;if(!_0x497e5c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f9455}=_0x743c78['_splitMarkerName'](_0x497e5c['name']);if(!_0x743c78['hasSuggestion'](_0x4f9455))return null;const _0x31295d=_0x743c78['getSuggestion'](_0x4f9455);return _0x4d281b['includes'](_0x31295d['data']['key']);})['map'](_0x467f56=>{const {id:_0x222436}=_0x743c78['_splitMarkerName'](_0x467f56['name']),_0x479d53=_0x743c78['getSuggestion'](_0x222436);return _0x169e66=_0x479d53['attributes']['groupId'],_0x479d53['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3601f3['size'])return;const _0x59dcfc=_0x743c78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x418b3a=>'attribute'==_0x418b3a['type']&&_0x418b3a['data']&&_0x4d281b['includes'](_0x418b3a['data']['key'])&&_0x418b3a['attributes']['groupId']!=_0x169e66)['map'](_0x401632=>({'listItem':_0x401632['getFirstRange']()['start']['nodeAfter'],'groupId':_0x401632['attributes']['groupId']})),_0x42d24b=new Set();for(const {groupId:_0x120293,listItem:_0x109bb2}of _0x59dcfc)_0x3601f3['has'](_0x109bb2)&&_0x42d24b['add'](_0x120293);for(const _0x11595c of _0x743c78['getSuggestions']())_0x42d24b['has'](_0x11595c['attributes']['groupId'])&&_0x11595c['setAttribute']('groupId',_0x169e66);}['_supportLegacySuggestions'](){const _0x4cb801=this['editor'],_0x5575e6=_0x4cb801['locale'],_0x2daa21=_0x4cb801['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2daa21['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x532c68,_0x1b5a03){const _0x557dc7=[];for(let _0x311f7b of _0x532c68)_0x311f7b['start']['nodeAfter']===_0x311f7b['end']['parent']&&(_0x311f7b=_0x4cb801['model']['createRange'](_0x4cb801['model']['createPositionAt'](_0x311f7b['start']['nodeAfter'],0x0))),_0x557dc7['push'](_0x311f7b);_0x4cb801['model']['change'](_0x5a5c19=>{const _0x335d3d=_0x4cb801['model']['document']['selection'],_0x54478f=Array['from'](_0x335d3d['getRanges']())['map'](_0x54c24e=>_0x1eeee4['fromRange'](_0x54c24e));_0x5a5c19['setSelection'](_0x557dc7),_0x4cb801['commands']['get'](_0x1b5a03['commandName'])['refresh'](),_0x1b5a03['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cb801['execute'](_0x1b5a03['commandName'],..._0x1b5a03['commandParams']),_0x5a5c19['setSelection'](_0x54478f);for(const _0x4127c9 of _0x54478f)_0x4127c9['detach']();});}),_0x2daa21['descriptionFactory']['registerElementLabel'](function(_0x3d6222){const _0x2c6df3=!_0x4cb801['model']['schema']['isObject'](_0x3d6222),_0x5eb61d=_0x3d6222['previousSibling'],_0x2b8308=_0x3d6222['nextSibling'],_0x2b7983=_0x3d6222['getAttribute']('listItemId'),_0x27cb55=!_0x5eb61d||_0x5eb61d['getAttribute']('listItemId')!==_0x2b7983,_0x480adc=!_0x2b8308||_0x2b8308['getAttribute']('listItemId')!==_0x2b7983;return _0x2c6df3&&Boolean(_0x2b7983)&&_0x27cb55&&_0x480adc;},_0x2f934e=>o(_0x5575e6,'ELEMENT_LIST_ITEM',_0x2f934e));}['_registerLegacyDescription'](){const _0x2f3ce9=this['editor'],_0x5db3d5=_0x2f3ce9['locale'];function _0x13609d(_0x6c9a8b){const _0x2b50d1=_0x2f3ce9['commands']['get']('bulletedList')['value'],_0x5b20aa=_0x2f3ce9['commands']['get']('numberedList')['value'];return'numberedList'===_0x6c9a8b?_0x2b50d1:_0x5b20aa;}_0x2f3ce9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x17ceb7){if('formatBlock'!=_0x17ceb7['type'])return;const {data:_0x2ef00a}=_0x17ceb7;if(!_0x2ef00a)return;let _0x44b8df,_0x4e79e3,_0x29f72d,_0x136f6a;switch(_0x2ef00a['commandName']){case'bulletedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x29f72d=_0x2ef00a['commandParams'][0x0]['forceValue'],_0x136f6a=_0x13609d(_0x2ef00a['commandName']),_0x44b8df=_0x29f72d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136f6a&&_0x2f3ce9['config']['get']('list.multiBlock')||(_0x44b8df='*Change\x20to:*\x20%0'),_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44b8df='*Indent:*\x20%0',_0x4e79e3={'type':'format','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44b8df=function(_0x3006d9){const _0x350b9b=_0x3006d9['getFirstRange']();let _0x16a73f=_0x350b9b['start']['nodeAfter'];for(;_0x16a73f&&_0x350b9b['containsItem'](_0x16a73f);){if(_0x16a73f['getAttribute']('listIndent')>0x0)return!0x1;_0x16a73f=_0x16a73f['nextSibling'];}return!0x0;}(_0x17ceb7)?o(_0x5db3d5,'*Format:*\x20remove\x20from\x20%0',o(_0x5db3d5,function(_0x36e85f){return'ELEMENT_'+_0x36e85f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x17ceb7))):o(_0x5db3d5,'*Outdent:*\x20%0',o(_0x5db3d5,'ELEMENT_LIST_ITEM')),_0x4e79e3={'type':'format','content':_0x44b8df};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ef00a['multipleBlocks']&&(_0x44b8df='*Merge:*\x20%0',_0x4e79e3={'type':'deletion','content':o(_0x5db3d5,_0x44b8df,o(_0x5db3d5,'ELEMENT_LIST_ITEM'))});}return _0x4e79e3;});}}function Ee(_0x490f76){let _0x3261bc=_0x490f76['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3261bc;){const _0x203342=_0x3261bc['getAttribute']('listItemId');if(!_0x203342)return!0x1;if(_0x203342==_0x490f76['data']['newValue'])return'newValue';if(_0x203342==_0x490f76['data']['oldValue'])return'oldValue';_0x3261bc=_0x3261bc['previousSibling'];}return!0x1;}class pe extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4e1b2f=this['editor']['config']['get']('list.properties'),_0x72597d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1b2f['styles']&&(_0x72597d['enableDefaultAttributesIntegration']('listStyle'),_0x72597d['registerBlockAttribute']('listStyle')),_0x4e1b2f['reversed']&&(_0x72597d['enableDefaultAttributesIntegration']('listReversed'),_0x72597d['registerBlockAttribute']('listReversed')),_0x4e1b2f['startIndex']&&(_0x72597d['enableDefaultAttributesIntegration']('listStart'),_0x72597d['registerBlockAttribute']('listStart'));const _0x51e11b={'type':'format','content':''};_0x72597d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x43bf7c=this['editor']['locale'];_0x72597d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x43bf7c,'FORMAT_LIST_REVERSED')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x415c98=>{const {data:_0x5f0250}=_0x415c98;if(_0x5f0250&&'listReversed'==_0x5f0250['key'])return null==_0x5f0250['newValue']||0x0==_0x5f0250['newValue']&&null==_0x5f0250['oldValue']?_0x51e11b:void 0x0;}),_0x72597d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x43bf7c,'FORMAT_LIST_START')),_0x72597d['descriptionFactory']['registerDescriptionCallback'](_0x1b99f9=>{const {data:_0x4b7d2a}=_0x1b99f9;if(_0x4b7d2a&&'listStart'==_0x4b7d2a['key'])return null==_0x4b7d2a['newValue']||0x1==_0x4b7d2a['newValue']&&null==_0x4b7d2a['oldValue']?_0x51e11b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4acb1c=>{if(_0x4acb1c['batch']['isUndo'])return!0x1;let _0x2c06ca=!0x1;const _0x43f287=_0x72597d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c2ddf=>{const _0x3b8138=_0x72597d['_getAttributeKey'](_0x2c2ddf);return'listStart'==_0x3b8138||'listReversed'==_0x3b8138;});for(const _0x27d4a3 of _0x43f287){const _0x11110b=_0x27d4a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11110b||'customNumbered'==_0x11110b)continue;_0x72597d['_findSuggestions'](_0x27d4a3['getFirstRange'](),'attribute')['find'](_0xcb96a5=>'listType'==_0x72597d['_getAttributeKey'](_0xcb96a5['suggestion']))||(_0x4acb1c['removeMarker'](_0x27d4a3['getFirstMarker']()),_0x2c06ca=!0x0);}return _0x2c06ca;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42c306){const _0x51432d=this['editor']['locale'],{data:_0x33aa05}=_0x42c306,_0xdf3cf5={'type':'format','content':''};if(!_0x33aa05||'listStyle'!=_0x33aa05['key'])return;if(!_0x33aa05['oldValue'])return'default'==_0x33aa05['newValue']?_0xdf3cf5:{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};if(!_0x33aa05['newValue']){if('default'==_0x33aa05['oldValue'])return _0xdf3cf5;let _0x3db120=_0x42c306['head'];for(;_0x3db120;){if(_0x3db120['data']&&'listType'==_0x3db120['data']['key']&&_0x3db120['data']['newValue'])return _0xdf3cf5;_0x3db120=_0x3db120['next'];}return{'type':'format','content':''+o(_0x51432d,'*Remove\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['oldValue'])))};}if('default'!=_0x33aa05['newValue'])return{'type':'format','content':''+o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,this['_getTranslationKeyForListStyle'](_0x33aa05['newValue'])))};let _0x4ce259=_0x42c306['head'];for(;_0x4ce259;){if(_0x4ce259['data']&&'listType'==_0x4ce259['data']['key']&&_0x4ce259['data']['newValue']&&_0x4ce259['data']['oldValue'])return _0xdf3cf5;_0x4ce259=_0x4ce259['next'];}return{'type':'format','content':o(_0x51432d,'*Set\x20format:*\x20%0',o(_0x51432d,'ELEMENT_'+_0x42c306['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e3b1c=this['editor'],_0x1e858e=_0x5e3b1c['locale'];_0x5e3b1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf9d66=>{if('formatBlock'!=_0xcf9d66['type'])return;const {data:_0x2b66a8}=_0xcf9d66;if(!_0x2b66a8)return;let _0x8ff632,_0x269ddc;switch(_0x2b66a8['commandName']){case'listStyle':_0x8ff632='*Change\x20to:*\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,o(_0x1e858e,this['_getTranslationKeyForListStyle'](_0x2b66a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8ff632=_0x2b66a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632)};break;case'listStart':_0x8ff632='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x269ddc={'type':'format','content':o(_0x1e858e,_0x8ff632,_0x2b66a8['commandParams'][0x0]['startIndex'])};}return _0x269ddc;});}['_getTranslationKeyForListStyle'](_0x1a683a){return'ELEMENT_'+function(_0x120f5d){if(ye['includes'](_0x120f5d))return'bulleted';if(Se['includes'](_0x120f5d))return'numbered';return null;}(_0x1a683a)['toUpperCase']()+'_LIST_'+_0x1a683a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x16a2ad{static get['requires'](){return[_0x1e43b9];}['init'](){const _0x5abc20=this['editor'],_0x4f8897=_0x5abc20['plugins']['get']('TrackChangesEditing'),_0x8edb1d=_0x5abc20['commands']['get']('enter');_0x4f8897['enableCommand']('enter',()=>{_0x5abc20['model']['change'](_0x5abdec=>{const _0x347ee4=_0x5abc20['model']['document']['selection'],_0xd51df7=_0x347ee4['getFirstPosition'](),_0x58ce09=_0x1eeee4['fromRange'](_0x347ee4['getFirstRange']());if(_0x8edb1d['enterBlock'](_0x5abdec)){const _0x45f4da=_0x5abc20['model']['createPositionAt'](_0xd51df7['parent']['nextSibling'],0x0),_0x5854b0=_0x5abdec['createRange'](_0xd51df7,_0x45f4da);_0x4f8897['markInsertion'](_0x5854b0);}else _0x5abdec['setSelection'](_0x5abdec['createRange'](_0x58ce09['end']));_0x58ce09['detach'](),_0x8edb1d['fire']('afterExecute',{'writer':_0x5abdec});});}),_0x5abc20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5abc20,'split'),{'priority':'high'}),_0x5abc20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c2485,_0x3f9b52,_0x56d9d1)=>{const _0x1e88c1=_0x56d9d1['mapper']['markerNameToElements'](_0x3f9b52['markerName']);if(_0x1e88c1){for(const _0x4d9554 of _0x1e88c1)_0x4d9554['hasClass']('ck-suggestion-marker-split')&&(_0x56d9d1['mapper']['unbindElementFromMarkerName'](_0x4d9554,_0x3f9b52['markerName']),_0x56d9d1['writer']['remove'](_0x4d9554));}},{'priority':'high'}),_0x5abc20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25546d,_0x253e03,_0x1fa7be)=>{_0x1fa7be['options']['showSuggestionHighlights']&&_e(_0x5abc20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25546d,_0x253e03,_0x1fa7be);},{'priority':'high'});}}class X extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55a244=this['editor']['plugins']['get']('TrackChangesEditing');_0x55a244['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55a244['enableCommand']('findNext'),_0x55a244['enableCommand']('findPrevious'),_0x55a244['enableCommand']('replace'),_0x55a244['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c568a,_0x8ee1f,_0x4fb420={}){const _0x5d6e8f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c568a(_0x4aea57=>{let _0x3535d9=('string'==typeof _0x8ee1f?_0x5d6e8f['findByTextCallback'](_0x8ee1f,_0x4fb420):_0x8ee1f)(_0x4aea57);Array['isArray'](_0x3535d9)&&(_0x3535d9={'results':_0x3535d9,'searchText':'string'==typeof _0x8ee1f?_0x8ee1f:''});const _0x30fe45=_0x3535d9['results']['filter'](_0x14277d=>!0x1===this['_isInDeletionRange'](_0x14277d,_0x4aea57['item']));return{..._0x3535d9,'results':_0x30fe45};},_0x4fb420);}['_isInDeletionRange'](_0x48a3fd,_0x447549){const _0x3b72a0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['start']),this['editor']['model']['createPositionAt'](_0x447549,_0x48a3fd['end']));for(const _0x5a52b1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3b72a0['getIntersection'](_0x5a52b1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x16a2ad{['afterInit'](){const _0x2b7fa8=this['editor']['locale'],_0x1e0974=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ed0c2,commandName:_0x43be71}of ro)this['editor']['plugins']['has'](_0x1ed0c2)&&(_0x1e0974['enableDefaultAttributesIntegration'](_0x43be71),_0x1e0974['registerInlineAttribute'](_0x43be71));_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b7fa8,'FORMAT_FONT_SIZE')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b7fa8,'FORMAT_FONT_FAMILY')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b7fa8,'FORMAT_FONT_COLOR')),_0x1e0974['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b7fa8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353109=this['editor'],_0x5461ad=_0x353109['locale'];_0x353109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4173d0=>{const _0x4b6780=_0x5461ad['t'];if('formatInline'!=_0x4173d0['type'])return;const {data:_0x51c2c9}=_0x4173d0;if(null!=_0x51c2c9){if('fontSize'==_0x51c2c9['commandName']){const _0x2be9d1=_0x51c2c9['commandParams'][0x0]['value'];if(_0x2be9d1){const _0x4eb93e=_0x4b6780(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x172a4d=>_0x172a4d['model']==_0x2be9d1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20size:*\x20%0',_0x4eb93e)};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x51c2c9['commandName']){const _0x2ba441=_0x51c2c9['commandParams'][0x0]['value'];return _0x2ba441?{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20family:*\x20%0',_0x2ba441)}:{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20family*')};}if('fontColor'==_0x51c2c9['commandName']){const _0x1b5237=_0x51c2c9['commandParams'][0x0]['value'];if(_0x1b5237){const _0x28fd42=_0x1dc0d1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5296d1=>_0x5296d1['model']==_0x1b5237);let _0x4bbaa7=_0x1b5237,_0x46858b='';return _0x28fd42&&(_0x4bbaa7=_0x28fd42['label'],_0x46858b=_0x4b6780(_0x4bbaa7)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20color:*\x20%0',_0x46858b)['trim'](),'color':{'value':_0x1b5237,'title':_0x46858b||_0x4bbaa7}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x51c2c9['commandName']){const _0x3f33c0=_0x51c2c9['commandParams'][0x0]['value'];if(_0x3f33c0){const _0x1deaeb=_0x1dc0d1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x44d7f9=>_0x44d7f9['model']==_0x3f33c0);let _0x4c6b17=_0x3f33c0,_0x472739='';return _0x1deaeb&&(_0x4c6b17=_0x1deaeb['label'],_0x472739=_0x4b6780(_0x4c6b17)['toLowerCase']()),{'type':'format','content':o(_0x5461ad,'*Set\x20font\x20background\x20color:*\x20%0',_0x472739)['trim'](),'color':{'value':_0x3f33c0,'title':_0x472739||_0x4c6b17}};}return{'type':'format','content':o(_0x5461ad,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x16a2ad{['afterInit'](){const _0x4edb34=this['editor'],_0x30ee5f=_0x4edb34['plugins']['get']('TrackChangesEditing'),_0xe91cb1=_0x4edb34['commands']['get']('copyFormat'),_0x487ae5=_0x4edb34['commands']['get']('pasteFormat');_0xe91cb1&&_0x487ae5&&(_0x30ee5f['enableDefaultAttributesIntegration']('pasteFormat'),_0x30ee5f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18adcc=this['editor'],_0x5b1a98=_0x18adcc['locale'];_0x18adcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d75d=>{if('formatBlock'!=_0x51d75d['type']&&'formatInline'!=_0x51d75d['type'])return;const {data:_0xee4560}=_0x51d75d;if(_0xee4560&&'pasteFormat'===_0xee4560['commandName']){const _0x5613da=[],_0x3eb284=_0xee4560['commandParams'][0x0];for(const [_0x357f4d,_0x3cc20c]of Object['entries'](_0x3eb284))_0x5613da['push'](so(_0x18adcc,_0x357f4d,_0x3cc20c));return _0x5613da['length']?{'type':'format','content':o(_0x5b1a98,'*Set\x20format\x20to:*\x20%0',_0x5613da['join'](',\x20'))}:{'type':'format','content':o(_0x5b1a98,'*Remove\x20all\x20formatting*')};}});}}function so(_0x32f051,_0x5f5909,_0xe09c0f){const _0x3e0b17=_0x32f051['locale']['t'],_0x3b92c7=_0x5f5909['split'](/(?=[A-Z])/)['join']('\x20'),_0x3ddefd=_0x3e0b17(_0x3b92c7['charAt'](0x0)['toUpperCase']()+_0x3b92c7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe09c0f)return _0x3ddefd;if('fontColor'===_0x5f5909||'fontBackgroundColor'===_0x5f5909){const _0x1d3797=_0x1dc0d1(_0x32f051['config']['get']('fontColor.colors'))['find'](_0xe8a471=>_0xe8a471['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1d3797?_0x3e0b17(_0x1d3797['label'])['toLowerCase']():_0xe09c0f)+')';}if('fontSize'===_0x5f5909&&isNaN(parseFloat(_0xe09c0f))){const _0x1f33c2=_0x32f051['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x32f051['config']['get']('fontSize.options'))['find'](_0x291447=>_0x291447['model']==_0xe09c0f);return _0x3ddefd+'\x20('+(_0x1f33c2?_0x3e0b17(_0x1f33c2['title'])['toLowerCase']():_0xe09c0f)+')';}return _0x3ddefd+'\x20('+_0xe09c0f+')';}class tt extends _0x16a2ad{['_headingOptions'];['afterInit'](){const _0x1fdded=this['editor'];if(!_0x1fdded['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1fdded['config']['get']('heading.options');const _0x3a5ec6=_0x1fdded['locale'],_0x1a8e8c=_0x1fdded['plugins']['get']('TrackChangesEditing');_0x1a8e8c['enableDefaultAttributesIntegration']('heading');for(const _0x3e083d of this['_headingOptions'])'paragraph'!=_0x3e083d['model']&&_0x1a8e8c['descriptionFactory']['registerElementLabel'](_0x3e083d['model'],_0x53656a=>{const _0x2bd038=this['_getHeadingLevel'](_0x3e083d['model']);return null!==_0x2bd038?_0x1112b7(_0x53656a,_0x2bd038):_0x4d8199(_0x53656a,_0x3e083d['title']);});function _0x1112b7(_0x114948,_0x2027e9){return o(_0x3a5ec6,'ELEMENT_HEADING',[_0x114948,_0x2027e9]);}function _0x4d8199(_0x44776d,_0x186719){return o(_0x3a5ec6,'ELEMENT_HEADING_CUSTOM',[_0x44776d,_0x186719]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50d6d8=this['editor'],_0x4b9564=_0x50d6d8['locale'];function _0x3a118b(_0x1e1dab,_0x1f223b){return o(_0x4b9564,'ELEMENT_HEADING_CUSTOM',[_0x1e1dab,_0x1f223b]);}_0x50d6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3d4a=>{if('formatBlock'!=_0x3f3d4a['type'])return;const {data:_0xf531d8}=_0x3f3d4a;if(_0xf531d8&&'heading'==_0xf531d8['commandName']){const _0x48160e=_0xf531d8['commandParams'][0x0]['value'],_0x98cff5=this['_getHeadingLevel'](_0x48160e);if(null!==_0x98cff5)return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',(_0x21f734=0x1,_0x2f92e6=_0x98cff5,o(_0x4b9564,'ELEMENT_HEADING',[_0x21f734,_0x2f92e6])))};const _0x5c568a=this['_headingOptions']['find'](_0xf0b1c0=>_0xf0b1c0['model']===_0x48160e)['title'];return{'type':'format','content':o(_0x4b9564,'*Change\x20to:*\x20%0',_0x3a118b(0x1,_0x5c568a))};}var _0x21f734,_0x2f92e6;});}['_getHeadingLevel'](_0x41e361){const _0x5ed710=_0x41e361['match'](/^heading(\d+)/);if(_0x5ed710)return _0x5ed710[0x1];const _0x2e38d7=this['_headingOptions']?.['find'](_0x595a00=>_0x595a00['model']==_0x41e361);if(_0x2e38d7&&_0x2e38d7['view']){const _0x17690e=_0x2e38d7['view'],_0x32755b=(_0x17690e['name']??_0x17690e)['match'](/^h(\d+)/);if(_0x32755b)return _0x32755b[0x1];}return null;}}class et extends _0x16a2ad{['afterInit'](){const _0x4ec50e=this['editor'];if(!_0x4ec50e['plugins']['has']('HighlightEditing'))return;const _0x33a78d=_0x4ec50e['plugins']['get']('TrackChangesEditing'),_0x2314d5=_0x4ec50e['locale'];_0x33a78d['enableDefaultAttributesIntegration']('highlight'),_0x33a78d['registerInlineAttribute']('highlight'),_0x33a78d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2314d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8077=this['editor'],_0x5b44a3=_0x4b8077['locale'];_0x4b8077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x596292=>{if('formatInline'!=_0x596292['type'])return;const {data:_0x4be782}=_0x596292;if(_0x4be782&&'highlight'==_0x4be782['commandName']){const _0x253ffd=_0x5b44a3['t'],_0x2472e2=_0x4be782['commandParams'][0x0]['value'];if(_0x2472e2){const _0x2629fd=_0x4b8077['config']['get']('highlight.options')['find'](_0x3ca4c6=>_0x3ca4c6['model']==_0x2472e2),_0x2257bb=_0x253ffd(_0x2629fd['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b44a3,'*Set\x20highlight:*\x20%0',_0x2257bb),'color':{'value':_0x2629fd['color'],'title':_0x2629fd['title']}};}return{'type':'format','content':o(_0x5b44a3,'*Remove\x20highlight*',o(_0x5b44a3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x16a2ad{['afterInit'](){const _0x5c6abb=this['editor'];if(!_0x5c6abb['plugins']['has']('HorizontalLineEditing'))return;_0x5c6abb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xde68bd=_0x5c6abb['plugins']['get']('TrackChangesEditing'),_0x120685=_0x5c6abb['locale'];_0xde68bd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4f2d45=>o(_0x120685,'ELEMENT_HORIZONTAL_LINE',_0x4f2d45)),_0x5c6abb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x541b99,{writer:_0x42a7b2,options:_0x3b07bd})=>{if(!_0x3b07bd['showSuggestionHighlights'])return null;const _0x1f4c8c=_0x42a7b2['createContainerElement']('div'),_0x166328=_0x42a7b2['createEmptyElement']('hr');return _0x42a7b2['addClass']('ck-horizontal-line',_0x1f4c8c),_0x42a7b2['insert'](_0x42a7b2['createPositionAt'](_0x1f4c8c,0x0),_0x166328),_0x1f4c8c;},'converterPriority':'high'});}}class st extends _0x16a2ad{['afterInit'](){const _0x4faa9c=this['editor'];if(!_0x4faa9c['plugins']['has']('HtmlEmbed'))return;const _0x180aee=_0x4faa9c['plugins']['get']('TrackChangesEditing'),_0x238e17=_0x4faa9c['locale'];_0x180aee['descriptionFactory']['registerElementLabel']('rawHtml',_0x294bbc=>o(_0x238e17,'ELEMENT_HTML_EMBED',_0x294bbc)),_0x180aee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x180aee['registerBlockAttribute']('value'),_0x180aee['descriptionFactory']['registerDescriptionCallback'](_0x3c1490=>{if('attribute'!=_0x3c1490['type'])return;const {data:_0x5785b9}=_0x3c1490;if(_0x5785b9&&'value'==_0x5785b9['key']&&_0x3c1490['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b1ccb=o(_0x238e17,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x238e17,'*Change\x20%0\x20content*',_0x2b1ccb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e0093=this['editor'],_0x4cc50b=_0x3e0093['locale'];_0x3e0093['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2af5=>{if('formatBlock'!=_0xd2af5['type'])return;const {data:_0x46d2cf}=_0xd2af5;if(_0x46d2cf&&'htmlEmbed'==_0x46d2cf['commandName']){const _0x3dcb9b=o(_0x4cc50b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cc50b,'*Change\x20%0\x20content*',_0x3dcb9b)};}});}}class nt extends _0x16a2ad{['afterInit'](){const _0x1d37b7=this['editor'];if(!_0x1d37b7['plugins']['has']('ImageEditing'))return;const _0x11b19f=_0x1d37b7['plugins']['get']('TrackChangesEditing'),_0x54c197=_0x1d37b7['plugins']['get']('ImageUtils'),_0x2b96fc=_0x1d37b7['locale'];_0x11b19f['enableCommand']('insertImage'),_0x11b19f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3fd046=>o(_0x2b96fc,'ELEMENT_IMAGE',_0x3fd046)),_0x11b19f['descriptionFactory']['registerElementLabel']('imageInline',_0x36f2b5=>o(_0x2b96fc,'ELEMENT_INLINE_IMAGE',_0x36f2b5)),_0x11b19f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2b96fc,'ELEMENT_CAPTION')),_0x1d37b7['plugins']['has']('ImageUploadEditing')&&_0x11b19f['enableCommand']('uploadImage'),_0x1d37b7['plugins']['has']('ImageBlockEditing')&&_0x1d37b7['plugins']['has']('ImageInlineEditing')&&(_0x11b19f['enableCommand']('imageTypeInline',(_0x33adcb,_0xcd588c)=>{const _0x43ca56=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']);_0x1d37b7['model']['change'](()=>{_0x11b19f['markBlockFormat'](_0x43ca56,{'commandName':'imageTypeInline','commandParams':[_0xcd588c]},[],'convertBlockImageToInline');});}),_0x11b19f['enableCommand']('imageTypeBlock',(_0x369c8e,_0x57fb6c)=>{_0x1d37b7['model']['change'](_0x563151=>{let _0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x434a7d=_0x10cc9c['fromPosition'](_0x58d60c['start'],'toPrevious'),_0x8e543f=_0x10cc9c['fromPosition'](_0x58d60c['end'],'toNext');_0x11b19f['forceDefaultExecution'](()=>_0x369c8e(_0x57fb6c)),_0x1e9c44=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x58d60c=_0x563151['createRangeOn'](_0x1e9c44);const _0x34eae9=_0x563151['createRange'](_0x434a7d,_0x8e543f);_0x434a7d['detach'](),_0x8e543f['detach'](),_0x11b19f['markBlockFormat'](_0x1e9c44,{'commandName':'imageTypeInline','commandParams':[_0x57fb6c]},[],'convertInlineImageToBlock'),_0x34eae9['start']['isBefore'](_0x58d60c['start'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x34eae9['start'],_0x58d60c['start']),'convertInlineImageToBlock'),_0x58d60c['end']['isBefore'](_0x34eae9['end'])&&_0x11b19f['markInsertion'](_0x563151['createRange'](_0x58d60c['end'],_0x34eae9['end']),'convertInlineImageToBlock');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11b19f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46e348])=>{const _0x4d4708=_0x11b19f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3d87d6=_0x46e348['start'],_0x56d38d=_0x46e348['end'];const _0xc9b6df=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x3d87d6,'backward'),_0xa7c55b=_0x1d37b7['model']['schema']['getNearestSelectionRange'](_0x56d38d,'forward');_0xc9b6df['isCollapsed']&&(_0x3d87d6=_0xc9b6df['start']),_0xa7c55b['isCollapsed']&&(_0x56d38d=_0xa7c55b['end']),_0x4d4708([_0x1d37b7['model']['createRange'](_0x3d87d6,_0x56d38d)]);}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39a112),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39a112)),_0x1d37b7['plugins']['has']('ImageCaptionEditing')&&(_0x11b19f['enableCommand']('toggleImageCaption',(_0x133a8e,_0x4fae0a)=>{const _0x54fc7d=_0x1d37b7['plugins']['get']('ImageCaptionUtils');let _0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a);_0x1d37b7['model']['change'](()=>{if(_0x45418e)return void _0x11b19f['markDeletion'](_0x1d37b7['model']['createRangeOn'](_0x45418e));const _0x58d12f=_0x54c197['isBlockImage'](_0x190b1a);_0x133a8e(_0x4fae0a),_0x190b1a=_0x54c197['getClosestSelectedImageElement'](_0x1d37b7['model']['document']['selection']),_0x45418e=_0x54fc7d['getCaptionFromImageModelElement'](_0x190b1a),_0x11b19f['markInsertion'](_0x1d37b7['model']['createRangeOn'](_0x45418e),_0x58d12f?null:'imageCaption');});}),_0x11b19f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39a112));const _0x479d5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ecca3(_0x524203,_0x43497b){const _0x55f889=_0x479d5d['findIndex'](({type:_0x34756f,subType:_0x8ef564})=>_0x524203['type']==_0x34756f&&_0x524203['subType']==_0x8ef564),_0x29af3d=_0x479d5d['findIndex'](({type:_0x25c3a7,subType:_0x4ca356})=>_0x43497b['type']==_0x25c3a7&&_0x43497b['subType']==_0x4ca356);if(_0x55f889<0x0||_0x29af3d<0x0)return!0x1;const _0x32c052=_0x524203['getFirstRange'](),_0x50928e=_0x43497b['getFirstRange']();if((0x0==_0x55f889||0x1==_0x55f889)&&0x2==_0x29af3d&&_0x32c052['isIntersecting'](_0x50928e))return!0x0;if(0x2==_0x55f889&&0x3==_0x29af3d){const _0x5b4eb4=_0x11b19f['_findSuggestions'](_0x32c052,'insertion')['filter'](({suggestion:_0x19c499,meta:_0x8aa3db})=>_0x8aa3db['isOwn']&&'convertInlineImageToBlock'==_0x19c499['subType']);if(_0x5b4eb4['length']>0x1&&_0x50928e['end']['isEqual'](_0x32c052['start']))return!0x0;if(0x1==_0x5b4eb4['length']&&(_0x32c052['start']['isEqual'](_0x50928e['end'])||_0x32c052['end']['isEqual'](_0x50928e['start'])))return!0x0;}if(0x3==_0x55f889&&0x3==_0x29af3d&&_0x32c052['start']['isBefore'](_0x50928e['start'])){const _0x124ca8=_0x32c052['end']['nodeAfter'],_0xe6a82a=_0x50928e['start']['nodeBefore'];return _0x54c197['isBlockImage'](_0x124ca8)&&_0x124ca8===_0xe6a82a;}return!0x1;}function _0x39a112(_0x2d6949,_0x14cd9c){return _0x1ecca3(_0x2d6949,_0x14cd9c)?[_0x2d6949,_0x14cd9c]:_0x1ecca3(_0x14cd9c,_0x2d6949)?[_0x14cd9c,_0x2d6949]:null;}_0x1d37b7['plugins']['has']('ImageResize')&&(_0x11b19f['enableDefaultAttributesIntegration']('resizeImage'),_0x11b19f['registerBlockAttribute']('resizedWidth'),_0x11b19f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2b96fc,'FORMAT_IMAGE_SIZE'))),_0x1d37b7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11b19f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11b19f['registerBlockAttribute']('alt')),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x2250a9=>{if(!!_0x479d5d['find'](({type:_0x2581fd,subType:_0x42f994})=>_0x2250a9['type']==_0x2581fd&&_0x2250a9['subType']==_0x42f994))return _0x2250a9['previous']?{}:void 0x0;}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x4439d5=>{if('insertion'==_0x4439d5['type']||'deletion'==_0x4439d5['type']){const _0x173ff5=_0x4439d5['getContainedElement']();if(_0x173ff5&&_0x173ff5['is']('element','caption'))return{'type':'insertion'==_0x4439d5['type']?'addObject':'removeObject','element':_0x173ff5,'quantity':0x1};}}),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x5364e7=>'formatBlock'==_0x5364e7['type']&&'convertInlineImageToBlock'==_0x5364e7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5364e7['type']&&'convertBlockImageToInline'==_0x5364e7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11b19f['descriptionFactory']['registerDescriptionCallback'](_0x30426d=>{if('attribute'!=_0x30426d['type'])return;const {data:_0x1da8b5}=_0x30426d;if(!_0x1da8b5||'alt'!=_0x1da8b5['key'])return;const _0x2d5698=_0x1da8b5['newValue'];return _0x2d5698?{'type':'format','content':o(_0x2b96fc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5698+'\x22')}:{'type':'format','content':o(_0x2b96fc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447c2d=this['editor'],_0x4042f6=_0x447c2d['locale'];_0x447c2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432f10=>{if('formatBlock'!=_0x432f10['type']&&'formatInline'!=_0x432f10['type'])return;const {data:_0x166ad8}=_0x432f10;if(_0x166ad8){if('imageTextAlternative'==_0x166ad8['commandName']){const _0xcba5d7=_0x166ad8['commandParams'][0x0]['newValue'];return _0xcba5d7?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xcba5d7+'\x22')}:{'type':'format','content':o(_0x4042f6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x166ad8['commandName']){const _0x3743a5=_0x166ad8['commandParams'][0x0]['width'];return _0x3743a5?{'type':'format','content':o(_0x4042f6,'*Set\x20image\x20width:*\x20%0',_0x3743a5)}:{'type':'format','content':o(_0x4042f6,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x23621b=this['editor']['locale'],_0x3c6fa9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6fa9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c6fa9['registerBlockAttribute']('src'),_0x3c6fa9['descriptionFactory']['registerDescriptionCallback'](_0x44f64c=>{if('attribute'!=_0x44f64c['type'])return;const {data:_0x10ace0}=_0x44f64c;return _0x10ace0&&'src'==_0x10ace0['key']?_0x10ace0['newValue']&&_0x10ace0['oldValue']?{'type':'format','content':o(_0x23621b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x31cbc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cbc9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x31cbc9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10da4a=this['editor'],_0x54f33c=_0x10da4a['locale'];_0x10da4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b849=>{if('formatBlock'!=_0x34b849['type']&&'formatInline'!=_0x34b849['type'])return;const {data:_0x456eef}=_0x34b849;if(!_0x456eef||'replaceImageSource'!=_0x456eef['commandName'])return;return{'type':'format','content':o(_0x54f33c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x16a2ad{['afterInit'](){const _0x511d18=this['editor'];if(!_0x511d18['plugins']['has']('ImageStyleEditing'))return;const _0x289caf=_0x511d18['plugins']['get']('TrackChangesEditing'),_0x597397=_0x511d18['plugins']['get']('ImageUtils'),_0x456e8b={};_0x289caf['enableCommand']('imageStyle',(_0x1b2ac5,_0x1ce4e0)=>{const _0x4e6e77=_0x511d18['plugins']['get']('Users')['me'],_0x5b60be=_0x511d18['commands']['get']('imageStyle');let _0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x427cb5=_0x5b60be['value'];if(_0x427cb5==_0x1ce4e0['value'])return;const _0x4865de={'commandName':'imageStyle','commandParams':[_0x1ce4e0],'formatGroupId':_0x31d1bc()};_0x511d18['model']['change'](()=>{if(_0x289caf['getSuggestions']()['filter'](_0x27aebf=>_0x27aebf['isInContent']&&_0x4e6e77==_0x27aebf['author']&&('formatBlock'==_0x27aebf['type']||'formatInline'==_0x27aebf['type'])&&('imageStylePreApply'==_0x27aebf['subType']||'imageStylePostApply'==_0x27aebf['subType'])&&_0x27aebf['getFirstRange']()['isEqual'](_0x2c276d))['forEach'](_0x5e1f53=>_0x289caf['discardSuggestion'](_0x5e1f53['head'])),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),_0x2c276d=_0x511d18['model']['createRangeOn'](_0x5ceb79),_0x5b60be['refresh'](),_0x511d18['commands']['get']('imageTypeInline')['refresh'](),_0x511d18['commands']['get']('imageTypeBlock')['refresh'](),_0x427cb5=_0x5b60be['value'],_0x427cb5!=_0x1ce4e0['value'])return _0x597397['isInlineImage'](_0x5ceb79)&&_0x5b60be['shouldConvertImageType'](_0x1ce4e0['value'],_0x5ceb79)?(_0x1b2ac5({..._0x1ce4e0,'setImageSizes':!0x1}),_0x5ceb79=_0x597397['getClosestSelectedImageElement'](_0x511d18['model']['document']['selection']),void _0x289caf['markBlockFormat'](_0x5ceb79,{..._0x4865de,'commandReversedParams':[{'value':_0x427cb5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x597397['isBlockImage'](_0x5ceb79)?_0x289caf['markBlockFormat'](_0x5ceb79,_0x4865de,[],'imageStylePostApply'):_0x289caf['markInlineFormat'](_0x2c276d,_0x4865de,'imageStylePostApply'));});});for(const _0x4462b8 of _0x511d18['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x456e8b[_0x4462b8['name']]=_0x4462b8['title']['toLowerCase']();_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x221213])=>{_0x597397['setImageNaturalSizeAttributes'](_0x221213['getContainedElement']());}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa7434d,_0x1821e3)=>{_0x289caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa7434d,{'commandName':_0x1821e3['commandName'],'commandParams':_0x1821e3['commandReversedParams']});}),_0x289caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d03e4,_0x144cce){if(_0x1ee099(_0x2d03e4,_0x144cce))return[_0x2d03e4,_0x144cce];if(_0x1ee099(_0x144cce,_0x2d03e4))return[_0x144cce,_0x2d03e4];return null;});const _0x3c7da0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ee099(_0x41ada0,_0x103621){const _0x435d73=_0x3c7da0['findIndex'](({type:_0x18752b,subType:_0x57fdb3})=>_0x41ada0['type']==_0x18752b&&_0x41ada0['subType']==_0x57fdb3),_0x557666=_0x3c7da0['findIndex'](({type:_0x1a88b2,subType:_0x4fbcec})=>_0x103621['type']==_0x1a88b2&&_0x103621['subType']==_0x4fbcec);if(_0x435d73<0x0||_0x557666<0x0)return!0x1;const _0x25e8ca=_0x41ada0['getFirstRange'](),_0xbc9d2b=_0x103621['getFirstRange']();if((0x0==_0x435d73||0x1==_0x435d73)&&0x2==_0x557666&&_0x25e8ca['isIntersecting'](_0xbc9d2b))return!0x0;if(0x2==_0x435d73&&0x3==_0x557666){const _0x50074c=_0x289caf['_findSuggestions'](_0x25e8ca,'insertion')['filter'](({suggestion:_0x36683f,meta:_0x2439c5})=>_0x2439c5['isOwn']&&'convertInlineImageToBlock'==_0x36683f['subType']);if(_0x50074c['length']>0x1&&_0xbc9d2b['end']['isEqual'](_0x25e8ca['start']))return!0x0;if(0x1==_0x50074c['length']&&(_0x25e8ca['start']['isEqual'](_0xbc9d2b['end'])||_0x25e8ca['end']['isEqual'](_0xbc9d2b['start'])))return!0x0;}if(0x3==_0x435d73&&0x3==_0x557666&&_0x25e8ca['start']['isBefore'](_0xbc9d2b['start'])){const _0x684923=_0x25e8ca['end']['nodeAfter'],_0x63c7b9=_0xbc9d2b['start']['nodeBefore'];return _0x597397['isBlockImage'](_0x684923)&&_0x684923===_0x63c7b9;}return!0x1;}_0x511d18['model']['document']['registerPostFixer'](()=>{let _0x44d23c=!0x1;const _0x1bc03a=Array['from'](_0x511d18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499e08,data:_0xbf613d}of _0x1bc03a){const {group:_0x3a7ef2,type:_0x3fb111,subType:_0x5068b2,id:_0x5017ae}=_0x289caf['_splitMarkerName'](_0x499e08);if('suggestion'==_0x3a7ef2&&_0x289caf['hasSuggestion'](_0x5017ae)){if('formatBlock'==_0x3fb111&&('imageStylePreApply'==_0x5068b2||'imageStylePostApply'==_0x5068b2)){const _0x489745=_0x289caf['getSuggestion'](_0x5017ae);if(_0xbf613d['newRange']){const _0xd83fbd=_0x489745['getFirstRange']()['getContainedElement']();if(_0x597397['isBlockImage'](_0xd83fbd))continue;_0x289caf['discardSuggestion'](_0x489745),_0x44d23c=!0x0;}}if('insertion'==_0x3fb111&&'imageCaption'==_0x5068b2&&!_0xbf613d['newRange']){const _0x4d221b=_0x289caf['getSuggestion'](_0x5017ae);_0x4d221b['next']&&_0x4d221b['next']['isInContent']&&(_0x289caf['discardSuggestion'](_0x4d221b['next']),_0x44d23c=!0x0);}}}return _0x44d23c;}),this['_registerLegacyDescription'](_0x456e8b);}['_registerLegacyDescription'](_0x520f97){const _0x3562e0=this['editor'],_0x30d7b0=_0x3562e0['locale'];_0x3562e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8e28=>{if('formatBlock'!=_0x2c8e28['type']&&'formatInline'!=_0x2c8e28['type'])return;const {data:_0x39b308}=_0x2c8e28;if(!_0x39b308||'imageStyle'!=_0x39b308['commandName'])return;const _0x362ddc=_0x39b308['commandParams'][0x0]['value'];return _0x4c9041('side'===_0x362ddc?o(_0x30d7b0,'FORMAT_SIDE_IMAGE'):_0x520f97[_0x362ddc]||_0x362ddc);function _0x4c9041(_0x34f6ce){return{'type':'format','content':o(_0x30d7b0,'*Format:*\x20%0',_0x34f6ce)};}});}}class at extends _0x16a2ad{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1405b8){super(_0x1405b8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x315be0=this['editor'],_0x32a908=_0x315be0['commands']['get']('importWord'),_0x2c2476=_0x315be0['commands']['get']('trackChanges');_0x32a908&&(_0x32a908['on']('execute',(_0x29638b,[,_0x4b1d71])=>{this['_trackChangesValueDuringImport']=_0x2c2476['value'],_0x4b1d71['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x32a908,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x32a908,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c2476['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x315be0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x212f21,_0x7898aa){const {suggestions:_0xd54fc8}=_0x7898aa,_0x3bf4be=this['editor']['commands']['get']('trackChanges'),_0x36629e=_0x3bf4be['value'];this['_trackChangesValueDuringImport']!==_0x36629e&&(_0x3bf4be['execute'](),this['_trackChangesExecuted']=!0x0),_0xd54fc8&&_0xd54fc8['forEach'](({id:_0x12b59e,type:_0x54207b,author:_0x46ab48,created_at:_0x53f5ed})=>{const _0x5b3424={'id':_0x12b59e,'type':_0x54207b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46ab48,'createdAt':_0x53f5ed?new Date(_0x53f5ed):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5b3424);});}}class ct extends _0x16a2ad{['afterInit'](){const _0x347bfd=this['editor'],_0x15ac16=_0x347bfd['plugins']['get']('TrackChangesEditing');if(_0x347bfd['plugins']['has']('IndentEditing')&&(_0x15ac16['enableCommand']('indent'),_0x15ac16['enableCommand']('outdent')),_0x347bfd['plugins']['has']('IndentBlock')){for(const _0x2c26ba of['indentBlock','outdentBlock'])_0x15ac16['enableDefaultAttributesIntegration'](_0x2c26ba);}const _0x118f0d=_0x347bfd['locale'];_0x15ac16['registerBlockAttribute']('blockIndent'),_0x15ac16['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x118f0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57f75c=this['editor'],_0x5b838c=_0x57f75c['locale'],_0x5d074c=_0x57f75c['plugins']['get']('TrackChangesEditing');_0x5d074c['descriptionFactory']['registerDescriptionCallback'](_0x52cc43=>{if('formatBlock'!=_0x52cc43['type'])return;const {data:_0x30b396}=_0x52cc43;if(!_0x30b396)return;if('indentBlock'!=_0x30b396['commandName']&&'outdentBlock'!=_0x30b396['commandName'])return;const _0x2e9e85=_0x52cc43['getItems']()[0x0],_0x1e2629=_0x5d074c['descriptionFactory']['getItemLabel'](_0x2e9e85);return'indentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Indent:*\x20%0',_0x1e2629)}:'outdentBlock'==_0x30b396['commandName']?{'type':'format','content':o(_0x5b838c,'*Outdent:*\x20%0',_0x1e2629)}:void 0x0;});}}class ut extends _0x16a2ad{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x16a2ad{['afterInit'](){const _0x2f60f3=this['editor'];if(!_0x2f60f3['plugins']['has']('LinkEditing'))return;const _0x2fe860=_0x2f60f3['plugins']['get']('TrackChangesEditing'),_0x525a9b=_0x2f60f3['commands']['get']('link');_0x2fe860['enableDefaultAttributesIntegration']('link'),_0x2fe860['enableDefaultAttributesIntegration']('unlink'),_0x2fe860['registerInlineAttribute']('linkHref');for(const _0x25ec2a of _0x525a9b['manualDecorators'])_0x2fe860['registerInlineAttribute'](_0x25ec2a['id']),_0x2fe860['descriptionFactory']['registerAttributeLabel'](_0x25ec2a['id'],'link\x20('+_0x25ec2a['label']['toLowerCase']()+')');_0x2fe860['descriptionFactory']['registerDescriptionCallback'](_0x221f9c=>{if('attribute'!=_0x221f9c['type'])return;const {data:_0x5efef4}=_0x221f9c;if(!_0x5efef4||'linkHref'!=_0x5efef4['key'])return;const _0x52f6fc=_0x5efef4['newValue'],_0x503842=_0x2f60f3['locale'];return{'type':'format','content':null==_0x52f6fc?o(_0x503842,'*Remove\x20link*'):o(_0x503842,'*Set\x20link:*\x20%0','\x22'+_0x52f6fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d6d50=this['editor'],_0x68596a=_0x3d6d50['locale'];_0x3d6d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47af01=>{if('formatInline'!=_0x47af01['type'])return;const {data:_0x121f62}=_0x47af01;if(_0x121f62){if('link'==_0x121f62['commandName']){const _0x1f827c=_0x121f62['commandParams'][0x0];return{'type':'format','content':o(_0x68596a,'*Set\x20link:*\x20%0','\x22'+_0x1f827c+'\x22')};}return'unlink'==_0x121f62['commandName']?{'type':'format','content':o(_0x68596a,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x16a2ad{['afterInit'](){const _0x31911e=this['editor'],_0x5834d2=_0x31911e['locale'];if(!_0x31911e['plugins']['has']('LegacyListEditing'))return;const _0x13f63c=_0x31911e['plugins']['get']('TrackChangesEditing'),_0x57f1a3=_0x31911e['plugins']['has']('LegacyTodoListEditing');function _0x45e8ed(_0x5c243e){return()=>{const _0x3420a5=_0x31911e['model']['document']['selection'],_0x2eb20b=_0x31911e['commands']['get'](_0x5c243e);if(_0x2eb20b['value'])return void _0x31911e['execute']('paragraph',{});const _0x25b1b5=_0x5c243e['slice'](0x0,-0x4),_0x51ac23=function(_0x2f7148,_0x4acc7c,_0x4a3835){let _0x288677=Array['from'](_0x2f7148)['filter'](_0x5eb67b=>function(_0x352dcb,_0x5b51aa){return _0x5b51aa['checkChild'](_0x352dcb['parent'],'listItem')&&!_0x5b51aa['isObject'](_0x352dcb);}(_0x5eb67b,_0x4a3835));_0x288677=_0x288677['filter'](_0x219dad=>!_0x219dad['is']('element','listItem')||_0x219dad['getAttribute']('listType')!=_0x4acc7c);const _0x2b6f34=new Set();for(const _0x5248e7 of _0x288677)_0x5248e7['is']('element','listItem')?_0x2b6f34['add'](fe(_0x5248e7)):_0x2b6f34['add'](_0x5248e7);return Array['from'](_0x2b6f34);}(_0x3420a5['getSelectedBlocks'](),_0x25b1b5,_0x31911e['model']['schema']);_0x31911e['model']['change'](()=>{for(const _0x5596d5 of _0x51ac23)_0x13f63c['markBlockFormat'](_0x5596d5,{'commandName':_0x5c243e,'commandParams':[{'forceValue':!_0x2eb20b['value']}],'formatGroupId':'blockName'},ue(_0x5596d5));});};}function _0x5eac82(_0x2c2b1d){return()=>{const _0x5843f2=function(_0x8e72f1){let _0x4b776c=Array['from'](_0x8e72f1);const _0x1925ae=_0x4b776c['findIndex'](_0x3793a2=>'listItem'!=_0x3793a2['name']);return _0x1925ae>-0x1&&(_0x4b776c=_0x4b776c['slice'](0x0,_0x1925ae)),_0x4b776c;}(_0x31911e['model']['document']['selection']['getSelectedBlocks']()),_0x2fceb6=_0x31911e['model']['createRange'](_0x31911e['model']['createPositionAt'](_0x5843f2[0x0],'before'),_0x31911e['model']['createPositionAt'](_0x5843f2[_0x5843f2['length']-0x1],'end'));_0x31911e['model']['change'](()=>{_0x13f63c['markBlockFormat'](_0x2fceb6,{'commandName':_0x2c2b1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x588b1f){const _0x72958c=new Set();for(const _0x2fe062 of _0x588b1f){let _0x4250c5=_0x2fe062['nextSibling'];for(;_0x4250c5&&_0x4250c5['getAttribute']('listIndent')>_0x2fe062['getAttribute']('listIndent');)_0x72958c['add'](_0x4250c5),_0x4250c5=_0x4250c5['nextSibling'];}return Array['from'](_0x72958c);}(_0x5843f2));});};}_0x13f63c['enableCommand']('numberedList',_0x45e8ed('numberedList')),_0x13f63c['enableCommand']('bulletedList',_0x45e8ed('bulletedList')),_0x57f1a3&&_0x13f63c['enableCommand']('todoList',_0x45e8ed('todoList')),_0x13f63c['enableCommand']('indentList',_0x5eac82('indentList')),_0x13f63c['enableCommand']('outdentList',_0x5eac82('outdentList')),_0x57f1a3&&_0x13f63c['enableCommand']('checkTodoList',()=>{const _0x19c98b=_0x31911e['commands']['get']('checkTodoList'),_0x588819=Array['from'](_0x19c98b['_selectedElements']);_0x588819['filter'](_0x8ec86=>_0x8ec86['getAttribute']('todoListChecked')!=_0x19c98b['value']),_0x31911e['model']['change'](()=>{for(const _0x15ddef of _0x588819)_0x13f63c['markBlockFormat'](_0x15ddef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19c98b['value']}]});});}),_0x13f63c['descriptionFactory']['registerElementLabel']('listItem',_0x2a00f5=>o(_0x5834d2,'ELEMENT_LIST_ITEM',_0x2a00f5)),_0x13f63c['descriptionFactory']['registerDescriptionCallback'](_0x325adf=>{if('formatBlock'!=_0x325adf['type']&&'formatInline'!=_0x325adf['type'])return;const {data:_0x158538}=_0x325adf;if(_0x158538){if('numberedList'==_0x158538['commandName']||'bulletedList'==_0x158538['commandName']||'todoList'==_0x158538['commandName'])switch(_0x158538['commandName']['replace']('List','')){case'bulleted':return _0x49853d(o(_0x5834d2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49853d(o(_0x5834d2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49853d(o(_0x5834d2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Indent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x158538['commandName'])return{'type':'format','content':o(_0x5834d2,'*Outdent:*\x20%0',o(_0x5834d2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x158538['commandName'])return _0x158538['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5834d2,'*Check\x20item*')}:{'type':'format','content':o(_0x5834d2,'*Uncheck\x20item*')};}function _0x49853d(_0x2b833e){return{'type':'format','content':o(_0x5834d2,'*Change\x20to:*\x20%0',_0x2b833e)};}});}}function fe(_0x44fecd){const _0xb09392=_0x44fecd['getAttribute']('listIndent');if(0x0==_0xb09392)return _0x44fecd;let _0x577ba0=_0x44fecd;for(;_0x44fecd['previousSibling']&&_0x44fecd['previousSibling']['is']('element','listItem');){const _0x44aaa5=_0x44fecd['previousSibling']['getAttribute']('listIndent');if(_0x44aaa5==_0xb09392)_0x577ba0=_0x44fecd['previousSibling'];else{if(_0x44aaa5<_0xb09392)break;}_0x44fecd=_0x44fecd['previousSibling'];}return _0x577ba0;}function ue(_0x2eaef8){const _0x193cfd=[];if(_0x2eaef8['is']('element','listItem')&&_0x2eaef8['getAttribute']('listIndent')>0x0){let _0x33b322=_0x2eaef8['nextSibling'];for(;_0x33b322&&'listItem'==_0x33b322['name']&&_0x33b322['getAttribute']('listIndent')==_0x2eaef8['getAttribute']('listIndent');)_0x193cfd['push'](_0x33b322),_0x33b322=_0x33b322['nextSibling'];}return _0x193cfd;}class W extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x403206=this['editor']['config']['get']('list.properties'),_0x507a92=this['editor']['plugins']['get']('TrackChangesEditing');_0x403206['styles']&&_0x507a92['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x403206['reversed']&&_0x507a92['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x403206['startIndex']&&_0x507a92['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x507a92['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3b08b4,_0x3d3707={}){const _0x47a226=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e44a1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a226['markMultiRangeBlockFormat'](_0x2e44a1,{'commandName':'listStyle','commandParams':[{'type':_0x3d3707['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x31ede1,_0x30a363={}){const _0x4f021b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44bbea=this['_getSuggestionBlocks'](_0x976aa0=>_0x976aa0['is']('element','listItem')&&'numbered'===_0x976aa0['getAttribute']('listType'));if(_0x44bbea['length']<0x1)return;const _0x955b23=_0x44bbea['map'](_0x113cf6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x113cf6,'before'),this['editor']['model']['createPositionAt'](_0x113cf6,0x0)));this['editor']['model']['change'](()=>{_0x4f021b['markMultiRangeBlockFormat'](_0x955b23,{'commandName':'listReversed','commandParams':[{'reversed':_0x30a363['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x37a996,_0x13988a={}){const _0x1d53ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5209=this['_getSuggestionBlocks'](_0x2a606c=>_0x2a606c['is']('element','listItem')&&'numbered'===_0x2a606c['getAttribute']('listType'));if(_0x2c5209['length']<0x1)return;const _0x1d465b=_0x2c5209['map'](_0xf609a9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf609a9,'before'),this['editor']['model']['createPositionAt'](_0xf609a9,0x0)));this['editor']['model']['change'](()=>{_0x1d53ad['markMultiRangeBlockFormat'](_0x1d465b,{'commandName':'listStart','commandParams':[{'startIndex':_0x13988a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2d4b81){if('formatBlock'!=_0x2d4b81['type']&&'formatInline'!=_0x2d4b81['type'])return;const _0x38bd28=this['editor']['locale'],{data:_0x28e397}=_0x2d4b81;if(!_0x28e397)return;let _0x2031e7,_0x2a08a0;switch(_0x28e397['commandName']){case'listStyle':_0x2031e7='*Change\x20to:*\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,o(_0x38bd28,this['_getTranslationKeyForListStyle'](_0x28e397['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2031e7=_0x28e397['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7)};break;case'listStart':_0x2031e7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a08a0={'type':'format','content':o(_0x38bd28,_0x2031e7,_0x28e397['commandParams'][0x0]['startIndex'])};}return _0x2a08a0;}['_getSuggestionBlocksForListStyle'](){const _0x56fc6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x7e9ddb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x7e9ddb[0x0]?.['is']('element','listItem')&&_0x7e9ddb['unshift'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x7e9ddb[_0x7e9ddb['length']-0x1]?.['is']('element','listItem')&&_0x7e9ddb['push'](..._0x56fc6e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x7e9ddb=[...new Set(_0x7e9ddb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x7e9ddb=_0x7e9ddb['filter'](_0x44502b=>_0x44502b['is']('element','listItem'))),_0x7e9ddb;}['_getSuggestionBlocks'](_0x1958f6){const _0x46e3eb=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e4f2d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1958f6)['map'](_0x285078=>{const _0x17b716=this['editor']['model']['createPositionAt'](_0x285078,0x0);return[..._0x46e3eb['getSiblingNodes'](_0x17b716,'backward'),..._0x46e3eb['getSiblingNodes'](_0x17b716,'forward')];})['flat']();return _0x5e4f2d=[...new Set(_0x5e4f2d)],_0x5e4f2d;}['_getTranslationKeyForListStyle'](_0x47e726){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x47e726)||'default')['toUpperCase']()+'_LIST_'+_0x47e726['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x16a2ad{['afterInit'](){const _0x5d5e6d=this['editor'];if(!_0x5d5e6d['plugins']['has']('MediaEmbedEditing'))return;const _0x2281a4=_0x5d5e6d['plugins']['get']('TrackChangesEditing'),_0xef94df=_0x5d5e6d['locale'];_0x2281a4['enableCommand']('mediaEmbed'),_0x2281a4['descriptionFactory']['registerElementLabel']('media',_0x3ae1f9=>o(_0xef94df,'ELEMENT_MEDIA',_0x3ae1f9)),_0x5d5e6d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x575d50,{writer:_0x49f015,options:_0x2dbd47})=>{if(_0x2dbd47['showSuggestionHighlights'])return _0x49f015['createEmptyElement']('div');},'converterPriority':'high'}),_0x5d5e6d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ea00f,_0x24a460,_0x5eee1e)=>{_0x5eee1e['options']['showSuggestionHighlights']&&_0x1ea00f['stop']();},{'priority':'high'});}}class mt extends _0x16a2ad{['afterInit'](){const _0x34d7f5=this['editor'];_0x34d7f5['plugins']['has']('MentionEditing')&&_0x34d7f5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x16a2ad{['afterInit'](){const _0x122545=this['editor'];if(!_0x122545['plugins']['has']('MergeFieldsEditing'))return;_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x122545['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2d70ef=_0x122545['plugins']['get']('TrackChangesEditing'),_0x54cdaf=_0x122545['locale'];_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeField',_0x444cbc=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x444cbc)),_0x2d70ef['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x55ef42=>o(_0x54cdaf,'ELEMENT_MERGE_FIELD',_0x55ef42)),_0x2d70ef['descriptionFactory']['registerDescriptionCallback'](_0xbdd563=>{if('insertion'!=_0xbdd563['type']&&'deletion'!=_0xbdd563['type'])return;const _0x3d84fb=_0xbdd563['getContainedElement']();if(null==_0x3d84fb)return;if(!_0x3d84fb['is']('element','mergeField')&&!_0x3d84fb['is']('element','mergeFieldBlock'))return;const _0x19ae73=_0x122545['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3d84fb['getAttribute']('id'));return'insertion'==_0xbdd563['type']?{'type':'insertion','content':o(_0x54cdaf,'*Insert:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x54cdaf,'*Remove:*\x20%0','\x22'+_0x19ae73+'\x22\x20'+o(_0x54cdaf,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x16a2ad{['afterInit'](){const _0xa66258=this['editor'],_0x54173a=_0xa66258['plugins']['get']('TrackChangesEditing');_0xa66258['plugins']['has']('MultiLevelList')&&(_0x54173a['enableDefaultAttributesIntegration']('multiLevelList'),_0x54173a['registerBlockAttribute']('listMarkerStyle'),_0x54173a['descriptionFactory']['registerDescriptionCallback'](_0x42d9e2=>this['handleDescriptions'](_0x42d9e2)));}['handleDescriptions'](_0x16a34e){const _0x118daa=this['editor']['locale'],{data:_0x314cd2}=_0x16a34e,_0x311ed1={'type':'format','content':''};if(_0x314cd2&&'listMarkerStyle'==_0x314cd2['key']){if(!_0x314cd2['oldValue'])return{'type':'format','content':o(_0x118daa,'*Set\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['newValue']+')'};if(!_0x314cd2['newValue']){let _0xc7de0a=_0x16a34e['head'];for(;_0xc7de0a;){if(_0xc7de0a['data']&&'listType'==_0xc7de0a['data']['key']&&_0xc7de0a['data']['newValue'])return _0x311ed1;_0xc7de0a=_0xc7de0a['next'];}return{'type':'format','content':o(_0x118daa,'*Remove\x20format:*\x20%0',o(_0x118daa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x314cd2['oldValue']+')'};}}}}class kt extends _0x16a2ad{['afterInit'](){const _0x2e1ef9=this['editor'];if(!_0x2e1ef9['plugins']['has']('PageBreakEditing'))return;_0x2e1ef9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x147c91=_0x2e1ef9['plugins']['get']('TrackChangesEditing'),_0x6d413b=_0x2e1ef9['locale'];_0x147c91['descriptionFactory']['registerElementLabel']('pageBreak',_0x454e53=>o(_0x6d413b,'ELEMENT_PAGE_BREAK',_0x454e53));}}class bt extends _0x16a2ad{['afterInit'](){const _0xcb8ca0=this['editor'];if(!_0xcb8ca0['plugins']['has']('Paragraph'))return;const _0x49a106=_0xcb8ca0['locale'],_0x5497fd=_0xcb8ca0['plugins']['get']('TrackChangesEditing');_0x5497fd['descriptionFactory']['registerElementLabel']('paragraph',_0x302694=>o(_0x49a106,'ELEMENT_PARAGRAPH',_0x302694)),_0x5497fd['enableDefaultAttributesIntegration']('paragraph'),_0x5497fd['enableCommand']('insertParagraph'),_0xcb8ca0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xcb8ca0),{'priority':'highest'}),_0xcb8ca0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e359a,_0x153cad,_0x216c0e)=>{_0x216c0e['options']['showSuggestionHighlights']&&nr(_0xcb8ca0,{'showActiveMarker':!0x1})(_0x4e359a,_0x153cad,_0x216c0e);},{'priority':'highest'});const _0x1a7e65=_0x5497fd['descriptionFactory'];_0x1a7e65['registerDescriptionCallback'](_0x2322dc=>{if('insertion'!==_0x2322dc['type'])return;const {start:_0x10bfec,end:_0x2e0ed0}=_0x2322dc['getFirstRange']();if(!_0x10bfec['isTouching'](_0x2e0ed0)||!_0x10bfec['nodeAfter'])return;const _0x30faaa=_0xcb8ca0['model']['schema'],_0x2a2176=_0x10bfec['nodeAfter'];return _0x30faaa['isBlock'](_0x2a2176)&&!_0x30faaa['isLimit'](_0x2a2176)&&_0x30faaa['checkChild'](_0x2a2176,'$text')?{'type':'insertion','content':o(_0x49a106,'*Insert:*\x20%0',_0x1a7e65['getItemLabel'](_0x2a2176,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42a4c9=this['editor'],_0x3362c9=_0x42a4c9['locale'];_0x42a4c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5df486=>{if('formatBlock'!=_0x5df486['type'])return;const {data:_0x2a2f50}=_0x5df486;return _0x2a2f50&&'paragraph'==_0x2a2f50['commandName']?{'type':'format','content':o(_0x3362c9,'*Change\x20to:*\x20%0',o(_0x3362c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x386f76,{showActiveMarker:_0x52cf42=!0x0}={}){return(_0x27ad06,_0x250326,_0x1c581f)=>{const _0x2865a9=_0x386f76['plugins']['get']('TrackChangesEditing'),_0x3bbe24=_0x250326['markerRange']['start'],_0x354d97=_0x250326['markerRange']['end'],_0x192e4a=_0x386f76['model']['schema'];if(!_0x3bbe24['isTouching'](_0x354d97)||!_0x3bbe24['nodeAfter'])return;const _0x4b30f9=_0x3bbe24['nodeAfter'];if(_0x192e4a['isBlock'](_0x4b30f9)&&!_0x192e4a['isLimit'](_0x4b30f9)&&_0x192e4a['checkChild'](_0x4b30f9,'$text')){if(!_0x1c581f['consumable']['consume'](_0x250326['markerRange'],_0x27ad06['name']))return;const {authorId:_0x764827}=_0x2865a9['_splitMarkerName'](_0x250326['markerName']),_0x408eb4=_0x1c581f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x764827}),_0x3eb108=_0x1c581f['mapper']['toViewPosition'](_0x354d97);_0x52cf42&&_0x2865a9['activeMarkers']['includes'](_0x250326['markerName'])&&_0x1c581f['writer']['addClass']('ck-suggestion-marker--active',_0x408eb4),_0x1c581f['writer']['insert'](_0x3eb108,_0x408eb4),_0x1c581f['mapper']['bindElementToMarker'](_0x408eb4,_0x250326['markerName']);}};}class wt extends _0x16a2ad{['afterInit'](){const _0x46b383=this['editor'];if(!_0x46b383['plugins']['has']('RemoveFormatEditing'))return;_0x46b383['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0860=this['editor'];_0x4d0860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43425e=>{if('formatBlock'!=_0x43425e['type']&&'formatInline'!=_0x43425e['type'])return;const {data:_0x35c1e2}=_0x43425e;return _0x35c1e2&&'removeFormat'==_0x35c1e2['commandName']?{'type':'format','content':o(_0x4d0860['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x16a2ad{['afterInit'](){const _0x3126bb=this['editor'];if(!_0x3126bb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4397e6=_0x3126bb['plugins']['get']('TrackChangesEditing');_0x4397e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x4397e6['enableCommand']('goToNextRestrictedEditingException');const _0x26ef28=_0x3126bb['plugins']['get']('RestrictedEditingModeEditing');_0x26ef28['enableCommand']('trackChanges'),_0x26ef28['enableCommand']('acceptSuggestion'),_0x26ef28['enableCommand']('discardSuggestion'),_0x26ef28['enableCommand']('acceptAllSuggestions'),_0x26ef28['enableCommand']('discardAllSuggestions'),_0x26ef28['enableCommand']('acceptSelectedSuggestions'),_0x26ef28['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x16a2ad{static get['requires'](){return[_0x3bdf00];}['init'](){const _0x190535=this['editor'],_0x55f8d6=_0x190535['plugins']['get']('TrackChangesEditing');_0x55f8d6['enableCommand']('shiftEnter'),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x190535),{'priority':'high'}),_0x190535['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x190535),{'priority':'high'}),_0x190535['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22f352,_0x5effca,_0x4de0aa)=>{_0x4de0aa['options']['showSuggestionHighlights']&&ge(_0x190535,{'showActiveMarker':!0x1})(_0x22f352,_0x5effca,_0x4de0aa);}),_0x55f8d6['descriptionFactory']['registerElementLabel']('softBreak',_0x4e476a=>o(_0x190535['locale'],'ELEMENT_LINE_BREAK',_0x4e476a));}}function ge(_0xc40bf2,{showActiveMarker:_0x4ea7ec=!0x0}={}){return(_0x329006,_0x4c13b1,_0x32750a)=>{const _0x5280ad=_0xc40bf2['plugins']['get']('TrackChangesEditing');if(!_0x32750a['consumable']['test'](_0x4c13b1['markerRange'],_0x329006['name']))return;const _0x340923=_0xc40bf2['model'];for(const _0x2ffa9e of _0x4c13b1['markerRange']['getItems']()){if(!_0x2ffa9e['is']('element','softBreak'))continue;const _0x4dbfac='deletion'==_0x4c13b1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x580350}=_0x5280ad['_splitMarkerName'](_0x4c13b1['markerName']),_0x3d10ff=_0x32750a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dbfac,'data-author-id':_0x580350}),_0x5ada6c=_0x32750a['mapper']['toViewPosition'](_0x340923['createPositionBefore'](_0x2ffa9e));_0x4ea7ec&&_0x5280ad['activeMarkers']['includes'](_0x4c13b1['markerName'])&&_0x32750a['writer']['addClass']('ck-suggestion-marker--active',_0x3d10ff),_0x32750a['writer']['insert'](_0x5ada6c,_0x3d10ff),_0x32750a['mapper']['bindElementToMarker'](_0x3d10ff,_0x4c13b1['markerName']);}};}class St extends _0x16a2ad{['afterInit'](){const _0x1640a3=this['editor'],_0x4028dc=_0x1640a3['model'],_0x326bc5=_0x1640a3['locale'];if(!_0x1640a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x5b4ca9=_0x1640a3['plugins']['get']('TrackChangesEditing'),_0x18c793='restrictedEditingException',_0x5b2daf=_0x1640a3['commands']['get'](_0x18c793);_0x5b4ca9['enableCommand'](_0x18c793,(_0x280e28,_0x5d0aba={})=>{const _0xc2de4a=_0x4028dc['document']['selection'];if(_0xc2de4a['isCollapsed'])return void _0x280e28(_0x5d0aba);const _0x38088b=void 0x0!==_0x5d0aba['forceValue']?_0x5d0aba['forceValue']:!_0x5b2daf['value'];_0x4028dc['change'](()=>{const _0x4b04c2=Array['from'](_0xc2de4a['getRanges']());for(const _0x384a72 of _0x4b04c2){const _0x1f3e50=_0x38088b?[_0x384a72]:io(_0x18c793,_0x384a72,_0x4028dc);for(const _0x4fa827 of _0x1f3e50)_0x5b4ca9['markInlineFormat'](_0x4fa827,{'commandName':_0x18c793,'commandParams':[{'forceValue':_0x38088b}]});}});}),_0x5b4ca9['descriptionFactory']['registerDescriptionCallback'](_0xe38330=>{if('formatBlock'!=_0xe38330['type']&&'formatInline'!=_0xe38330['type'])return;const {data:_0xf46020}=_0xe38330;return _0xf46020&&_0xf46020['commandName']==_0x18c793?_0xf46020['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x326bc5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x16a2ad{['afterInit'](){const _0xc45c6a=this['editor'];if(!_0xc45c6a['plugins']['has']('Style')||!_0xc45c6a['plugins']['has']('DataSchema'))return;const _0x274f64=_0xc45c6a['plugins']['get']('TrackChangesEditing'),_0x3bdbc2=_0xc45c6a['locale'],_0x2a63ad=_0xc45c6a['config']['get']('style')||{},_0x4add59=_0xc45c6a['plugins']['get']('GeneralHtmlSupport'),_0x3ad2cb=_0xc45c6a['plugins']['get']('StyleUtils')['normalizeConfig'](_0xc45c6a['plugins']['get']('DataSchema'),_0x2a63ad['definitions']);_0x274f64['enableDefaultAttributesIntegration']('style');const _0x503036=new Set();for(const _0x3d831c of _0x3ad2cb['block']){const _0x22182e=_0x4add59['getGhsAttributeNameForElement'](_0x3d831c['element']);_0x503036['add'](_0x22182e);}const _0x396bfe=new Set();for(const _0x5877e9 of _0x3ad2cb['inline']){const _0x34fd8e=_0x4add59['getGhsAttributeNameForElement'](_0x5877e9['element']);_0x396bfe['add'](_0x34fd8e);for(const _0x11fa40 of _0x5877e9['ghsAttributes'])_0x396bfe['add'](_0x11fa40);}for(const _0x232f6e of _0x503036)_0x274f64['registerBlockAttribute'](_0x232f6e),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x232f6e,o(_0x3bdbc2,'FORMAT_STYLE'));for(const _0x3409e9 of _0x396bfe)_0x274f64['registerInlineAttribute'](_0x3409e9),_0x274f64['descriptionFactory']['registerAttributeLabel'](_0x3409e9,o(_0x3bdbc2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55a6ab=this['editor'],_0x20e509=_0x55a6ab['locale'];_0x55a6ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c5988=>{if('formatBlock'!=_0x5c5988['type']&&'formatInline'!=_0x5c5988['type'])return;const {data:_0xb44c6d}=_0x5c5988;return _0xb44c6d&&'style'===_0xb44c6d['commandName']?_0xb44c6d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e509,'*Set\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e509,'*Remove\x20format:*\x20%0',_0xb44c6d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x16a2ad{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ec689){super(_0x2ec689),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x451c67=this['editor'],_0x8627f=_0x451c67['model']['document']['selection'];if(!_0x451c67['plugins']['has']('TableEditing'))return;const _0x1e6ef2=_0x451c67['locale'],_0x7421a1=_0x451c67['plugins']['get']('TrackChangesEditing'),_0x23db14=_0x451c67['plugins']['get']('TableUtils');_0x7421a1['descriptionFactory']['registerElementLabel']('table',_0x44efe8=>o(_0x1e6ef2,'ELEMENT_TABLE',_0x44efe8)),this['_setupColumnsRowsFixing'](),_0x7421a1['enableCommand']('insertTable'),_0x7421a1['enableCommand']('selectTableRow'),_0x7421a1['enableCommand']('selectTableColumn');for(const _0x54ca80 of['insertTableRowAbove','insertTableRowBelow']){const _0x1a0db7=_0x451c67['commands']['get'](_0x54ca80);_0x7421a1['enableCommand'](_0x54ca80,_0x1527d4=>{_0x451c67['model']['change'](_0x340960=>{_0x1527d4();const _0xb7aae7='above'===_0x1a0db7['order'],_0x58d17d=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0x17142f=_0x23db14['getRowIndexes'](_0x58d17d),_0x4cef31=_0xb7aae7?_0x17142f['first']-0x1:_0x17142f['last']+0x1,_0x370d52=_0x58d17d[0x0]['findAncestor']('table'),_0x576a6d=_0x23db14['createTableWalker'](_0x370d52,{'startRow':_0x4cef31,'endRow':_0x4cef31}),_0x19ebeb=Array['from'](_0x576a6d)['map'](_0x160fbc=>_0x340960['createRangeOn'](_0x160fbc['cell']));_0x7421a1['markMultiRangeInsertion'](_0x19ebeb,'tableRow');});});}for(const _0x11b7a8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x124867=_0x451c67['commands']['get'](_0x11b7a8);_0x7421a1['enableCommand'](_0x11b7a8,_0x331a98=>{_0x451c67['model']['change'](_0x453bd6=>{_0x331a98();const _0x2c2aed='left'===_0x124867['order'],_0x1b130b=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xe5bfe2=_0x23db14['getColumnIndexes'](_0x1b130b),_0x2e2e98=_0x2c2aed?_0xe5bfe2['first']-0x1:_0xe5bfe2['last']+0x1,_0x4edbf0=_0x1b130b[0x0]['findAncestor']('table'),_0x18bc61=_0x23db14['createTableWalker'](_0x4edbf0,{'startRow':0x0,'column':_0x2e2e98,'includeAllSlots':!0x1}),_0x5cf5d6=Array['from'](_0x18bc61)['map'](_0x5d9a3b=>_0x453bd6['createRangeOn'](_0x5d9a3b['cell']));_0x7421a1['markMultiRangeInsertion'](_0x5cf5d6,'tableColumn');});});}for(const _0x58cf19 of['removeTableRow','removeTableColumn']){const _0x497572=_0x58cf19['substr'](0xb),_0xe60f63=_0x497572['toLowerCase'](),_0xb98c2c=_0xe60f63['substr'](0x0,0x3)+'span',_0x12143e='table'+_0x497572,_0x2cd0df='min'+_0x497572,_0x55e2a5='max'+_0x497572;_0x7421a1['enableCommand'](_0x58cf19,()=>{_0x451c67['model']['change'](_0x24574b=>{const _0x5de8cb=_0x23db14['getSelectionAffectedTableCells'](_0x8627f),_0xd1e093=_0x5de8cb[0x0]['findAncestor']('table');let _0x4c9124;if('removeTableRow'==_0x58cf19){const _0x2d7489=_0x23db14['getRowIndexes'](_0x5de8cb);_0x4c9124={'startRow':_0x2d7489['first'],'endRow':_0x2d7489['last'],'includeAllSlots':!0x0};}else{const _0xcea990=_0x23db14['getColumnIndexes'](_0x5de8cb);_0x4c9124={'startColumn':_0xcea990['first'],'endColumn':_0xcea990['last'],'includeAllSlots':!0x0};}const _0xa8091e=_0x23db14['createTableWalker'](_0xd1e093,_0x4c9124),_0x561cb7=Array['from'](_0xa8091e)['map'](({cell:_0x178fab})=>_0x178fab),_0xffd878=be(_0x561cb7['filter'](_0x25c887=>_0x25c887['hasAttribute'](_0xb98c2c))),_0x3c741e=be(_0x561cb7['filter'](_0x331d84=>!_0x331d84['hasAttribute'](_0xb98c2c)))['map'](_0x4232bc=>_0x24574b['createRangeOn'](_0x4232bc)),_0x1a5ec4=_0x7421a1['markMultiRangeDeletion'](_0x3c741e,_0x12143e);if(_0x1a5ec4&&('tableRow'==_0x1a5ec4['subType']||'tableColumn'==_0x1a5ec4['subType'])){const _0x4c4343=this['_getSuggestionCoords'](_0x1a5ec4);for(const _0x2a17b2 of _0xffd878){const _0x2dffc9=_0x24574b['createRangeOn'](_0x2a17b2),_0x5ca5ef=_0x23db14['getCellLocation'](_0x2a17b2),_0x4ef0bf=_0x2a17b2['getAttribute'](_0xb98c2c)-0x1,_0x26447c=_0x4c4343[_0x2cd0df],_0x35f38f=_0x4c4343[_0x55e2a5];_0x26447c<=_0x5ca5ef[_0xe60f63]&&_0x5ca5ef[_0xe60f63]+_0x4ef0bf<=_0x35f38f&&_0x1a5ec4['addRange'](_0x2dffc9);}}});});}function _0x17994c(_0x29449d){const _0x3069c3=Array['from'](_0x8627f['getRanges']())['map'](_0x315416=>_0x1eeee4['fromRange'](_0x315416));_0x451c67['model']['change'](_0x30a853=>{const _0x47d62e=_0x30a853['batch'];_0x29449d=_0x29449d['filter'](_0x57707b=>'$graveyard'!=_0x57707b['root']['rootName']),_0x30a853['setSelection'](_0x29449d),_0x451c67['commands']['get']('removeTableRow')['refresh'](),_0x451c67['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x451c67['model']['enqueueChange'](()=>{_0x451c67['model']['enqueueChange'](_0x47d62e,_0x19cb15=>{const _0x1d1b98=_0x3069c3['filter'](_0x228ffb=>'$graveyard'!=_0x228ffb['root']['rootName']);_0x1d1b98['length']>0x0&&_0x19cb15['setSelection'](_0x1d1b98);for(const _0x17f1ba of _0x3069c3)_0x17f1ba['detach']();});});});}function _0x3d60a5(_0x220885){_0x451c67['model']['change'](_0x155ef2=>{const _0x2c693c=Array['from'](_0x8627f['getRanges']())['map'](_0x45c992=>_0x1eeee4['fromRange'](_0x45c992)),_0x61e152=[];for(const _0x1a4bf3 of _0x220885)for(const _0x2c5a39 of _0x1a4bf3['getItems']({'shallow':!0x0}))_0x61e152['push'](_0x2c5a39);for(const _0x3fbd1c of _0x61e152)'$graveyard'!=_0x3fbd1c['root']['rootName']&&(_0x155ef2['setSelection'](_0x155ef2['createPositionAt'](_0x3fbd1c,0x0)),_0x451c67['commands']['get']('removeTableColumn')['refresh'](),_0x451c67['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42bd75=_0x2c693c['filter'](_0x4b34cc=>'$graveyard'!=_0x4b34cc['root']['rootName']);_0x42bd75['length']>0x0&&_0x155ef2['setSelection'](_0x42bd75);for(const _0x1719e7 of _0x2c693c)_0x1719e7['detach']();});}function _0x37fc7a(_0x4d3335,_0x4cd307){return _0x4cd307['every'](_0x5ba02a=>_0x4d3335['some'](_0x14238d=>_0x14238d['end']['isEqual'](_0x5ba02a['start'])||_0x5ba02a['end']['isEqual'](_0x14238d['start'])));}function _0x5f5676(_0xf77252,_0x4ae753){return!_0xf77252['some'](_0x4ae92f=>_0x4ae753['some'](_0x4d9970=>_0x4ae92f['isIntersecting'](_0x4d9970)))&&_0xf77252['some'](_0x59d969=>_0x4ae753['some'](_0x41f6e1=>_0x59d969['end']['isTouching'](_0x41f6e1['start'])));}_0x451c67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x172338,_0x233ee9,_0x52f475)=>{if(!_0x52f475['options']['showSuggestionHighlights'])return;const _0x2ea4a6=_0x233ee9['item'];if(!_0x2ea4a6)return;const _0x2178c9=_0x52f475['mapper']['toViewElement'](_0x2ea4a6);function _0x3d619c(_0x2544fa){return Array['isArray'](_0x2544fa)?_0x2544fa:[_0x2544fa];}_0x2178c9&&'tableCell'===_0x2ea4a6['name']&&_0x2d4906(_0x2178c9,_0x52f475['writer'],(_0x48c946,_0x197dbd,_0x1c0878)=>_0x1c0878['addClass'](_0x3d619c(_0x197dbd['classes']),_0x48c946),(_0x114fd4,_0x545103,_0x1a6f9c)=>_0x1a6f9c['removeClass'](_0x3d619c(_0x545103['classes']),_0x114fd4));},{'priority':'highest'}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x552ec2=>{if('insertion'!=_0x552ec2['type']&&'deletion'!=_0x552ec2['type'])return;const _0x567cbe=_0x552ec2['getContainedElement']();if(null!=_0x567cbe&&_0x567cbe['is']('element','table')){if('insertion'==_0x552ec2['type']){const _0x1e31b0=_0x552ec2['getItems']()['filter'](_0x390bfa=>_0x390bfa['is']('$textProxy'))['map'](_0x1e3c03=>_0x1e3c03['data']);if(_0x1e31b0['length'])return{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e31b0['join']('\x20')+'\x22'))};}if('deletion'==_0x552ec2['type']){const _0x185afc=_0x552ec2['getItems']()['filter'](_0x101a10=>_0x101a10['is']('$textProxy'))['map'](_0x520d9c=>_0x520d9c['data']);if(_0x185afc['length'])return{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x185afc['join']('\x20')+'\x22'))};}}}),_0x7421a1['descriptionFactory']['registerDescriptionCallback'](_0x5103ee=>{if('tableRow'==_0x5103ee['subType']){const _0x43be9d=_0x5103ee['getItems']()['filter'](_0x52d203=>_0x52d203['is']('$textProxy'))['map'](_0x446282=>_0x446282['data']),_0x972492=this['_getSuggestionCoords'](_0x5103ee),_0x471c07=_0x972492['maxRow']-_0x972492['minRow']+0x1;if('insertion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};if('deletion'==_0x5103ee['type'])return _0x43be9d['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x471c07,'\x22'+_0x43be9d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_ROW',_0x471c07))};}if('tableColumn'==_0x5103ee['subType']){const _0x6fff98=_0x5103ee['getItems']()['filter'](_0x493122=>_0x493122['is']('$textProxy'))['map'](_0x2c1be4=>_0x2c1be4['data']),_0x5c618a=this['_getSuggestionCoords'](_0x5103ee),_0x367218=_0x5c618a['maxColumn']-_0x5c618a['minColumn']+0x1;if('insertion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e6ef2,'*Insert:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};if('deletion'==_0x5103ee['type'])return _0x6fff98['length']?{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x367218,'\x22'+_0x6fff98['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e6ef2,'*Remove:*\x20%0',o(_0x1e6ef2,'ELEMENT_TABLE_COLUMN',_0x367218))};}}),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17994c),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d60a5),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fc7a),_0x7421a1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5f5676),_0x7421a1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5f5676);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2168d7=this['editor'],_0x3ae119=_0x2168d7['model']['document']['selection'];return(_0xe995bf,_0x24aa31)=>{_0x2168d7['model']['change'](_0x56d36f=>{const {commandName:_0x5212d0,commandParams:_0x5db319}=_0x24aa31;let _0x22902a=_0xe995bf[0x0]['end']['nodeBefore'];_0x5db319&&_0x5db319[0x0]&&!0x1===_0x5db319[0x0]['forceValue']&&(_0x22902a=_0xe995bf[0x0]['start']['nodeAfter']);const _0x41ce86=_0x56d36f['createRangeIn'](_0x22902a);if('$graveyard'==_0x41ce86['root']['rootName'])return;const _0x1e58aa=Array['from'](_0x3ae119['getRanges']())['map'](_0x42d7ac=>_0x1eeee4['fromRange'](_0x42d7ac));_0x56d36f['setSelection'](_0x41ce86),_0x2168d7['commands']['get'](_0x5212d0)['refresh'](),_0x5db319['push']({'forceDefaultExecution':!0x0}),_0x2168d7['execute'](_0x5212d0,..._0x5db319);const _0x3feb96=_0x1e58aa['filter'](_0x46c5b5=>'$graveyard'!=_0x46c5b5['root']['rootName']);_0x3feb96['length']>0x0&&_0x56d36f['setSelection'](_0x3feb96);for(const _0x3c8642 of _0x1e58aa)_0x3c8642['detach']();});};}['_getCoordsForCells'](_0x1cf57f){const _0x1a09ca=this['editor']['plugins']['get']('TableUtils');let _0x495543=Number['MAX_SAFE_INTEGER'],_0x5c9c55=Number['MIN_SAFE_INTEGER'],_0x3ca27f=Number['MAX_SAFE_INTEGER'],_0x22665b=Number['MIN_SAFE_INTEGER'];for(const _0x13c8fd of _0x1cf57f){if('$graveyard'==_0x13c8fd['root']['rootName'])continue;const {row:_0x5bc172,column:_0x179e0f}=_0x1a09ca['getCellLocation'](_0x13c8fd),_0x6aabe=_0x13c8fd['hasAttribute']('rowspan')?_0x13c8fd['getAttribute']('rowspan')-0x1:0x0,_0x189062=_0x13c8fd['hasAttribute']('colspan')?_0x13c8fd['getAttribute']('colspan')-0x1:0x0;_0x495543=_0x5bc172<_0x495543?_0x5bc172:_0x495543,_0x5c9c55=_0x5bc172+_0x6aabe>_0x5c9c55?_0x5bc172+_0x6aabe:_0x5c9c55,_0x3ca27f=_0x179e0f<_0x3ca27f?_0x179e0f:_0x3ca27f,_0x22665b=_0x179e0f+_0x189062>_0x22665b?_0x179e0f+_0x189062:_0x22665b;}return{'minRow':_0x495543,'maxRow':_0x5c9c55,'minColumn':_0x3ca27f,'maxColumn':_0x22665b};}['_setupColumnsRowsFixing'](){const _0x108318=this['editor'],_0x5a2464=_0x108318['plugins']['get']('TrackChangesEditing'),_0x3a9772=_0x108318['plugins']['get']('TableUtils');_0x108318['model']['document']['on']('change:data',()=>{const _0x366b8d=Array['from'](_0x108318['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bfeeb,data:_0x3c6ca4}of _0x366b8d){const {group:_0x207604,id:_0x3b3528,subType:_0x53068e}=_0x5a2464['_splitMarkerName'](_0x2bfeeb);if('suggestion'!=_0x207604)continue;if(null!=_0x3c6ca4['oldRange'])continue;const _0x26d036=_0x5a2464['getSuggestion'](_0x3b3528);this['_tablePostFixingSubtypes']['includes'](_0x53068e)&&this['_tableSuggestions']['add'](_0x26d036);}},{'priority':'low'});const _0x2f029d=(_0x1565bd,_0x38ec46)=>{let _0x50e48c=!0x1;const _0x22d9db=_0x38ec46['createRangeOn'](_0x1565bd),_0x3f45d6=_0x1565bd['findAncestor']('table'),_0x379be=_0x3a9772['getCellLocation'](_0x1565bd);for(const _0x19dd07 of this['_tableSuggestions']){const _0x2cef55=_0x19dd07['subType'],_0x4a9e1d=_0x2cef55['startsWith']('tablePaste'),_0x22bf39=_0x2cef55['substr'](_0x4a9e1d?0xa:0x5),_0xd74921=_0x22bf39['toLowerCase'](),_0x40932d=_0xd74921['substr'](0x0,0x3)+'span',_0x5e896f='min'+_0x22bf39,_0xbd1480='max'+_0x22bf39;if(!_0x19dd07['isInContent'])continue;if(_0x3f45d6!=_0x19dd07['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x19dd07['isIntersectingWithRange'](_0x22d9db))continue;const _0x238c3f=_0x1565bd['hasAttribute'](_0x40932d)?_0x1565bd['getAttribute'](_0x40932d)-0x1:0x0,_0x2a9c4d=this['_getSuggestionCoords'](_0x19dd07),_0x3d3eb7=_0x2a9c4d[_0x5e896f],_0x3bdb6d=_0x2a9c4d[_0xbd1480];_0x3d3eb7<=_0x379be[_0xd74921]&&_0x379be[_0xd74921]+_0x238c3f<=_0x3bdb6d&&(_0x19dd07['addRange'](_0x22d9db),_0x50e48c=!0x0);}return _0x50e48c;};_0x108318['model']['document']['registerPostFixer'](_0x1d4400=>{let _0x5c5ad5=!0x1;for(const _0x26b137 of _0x108318['model']['document']['differ']['getChanges']())if('insert'==_0x26b137['type']){if('tableRow'==_0x26b137['name']){for(const _0x1974a8 of _0x26b137['position']['nodeAfter']['getChildren']())_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x1974a8,_0x1d4400);}else'tableCell'==_0x26b137['name']&&(_0x5c5ad5=_0x5c5ad5||_0x2f029d(_0x26b137['position']['nodeAfter'],_0x1d4400));}return _0x5c5ad5;});}['_getSuggestionCoords'](_0x4d2e07){return this['_getCoordsForCells'](_0x4d2e07['getRanges']()['map'](_0x3c44f0=>_0x3c44f0['start']['nodeAfter']));}}function be(_0x1327bb){return Array['from'](new Set(_0x1327bb)['values']());}class vt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x5bff96=this['editor'],_0x59c459=_0x5bff96['model']['document']['selection'],_0x47e8a0=_0x5bff96['locale'];if(!_0x5bff96['plugins']['has']('TableEditing'))return;const _0x282a95=_0x5bff96['plugins']['get']('TrackChangesEditing'),_0x37a265=_0x5bff96['plugins']['get']('TableUtils'),_0x4e4697=_0x5bff96['plugins']['get'](It);_0x4e4697['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x282a95['enableCommand']('mergeTableCells',()=>{const _0xe335af=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection']);_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat'](_0xe335af,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bff96['commands']['get']('mergeTableCells')['on']('execute',(_0x2f1d2c,_0xe5b16b)=>{_0x5bff96['commands']['get']('trackChanges')['value']&&(_0xe5b16b['length']>0x0&&_0xe5b16b[_0xe5b16b['length']-0x1]&&_0xe5b16b[_0xe5b16b['length']-0x1]['forceDefaultExecution']||_0x282a95['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f1d2c['stop']());},{'priority':'highest'});for(const _0x139518 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4bb0a3=_0x5bff96['commands']['get'](_0x139518);_0x282a95['enableCommand'](_0x139518,()=>{const _0x3da3c7=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x8ed2d=>_0x8ed2d['is']('element','tableCell')),_0x5707b0=_0x4bb0a3['value'];_0x5bff96['model']['change'](()=>{_0x282a95['markMultiRangeBlockFormat']([_0x3da3c7,_0x5707b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4d34a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x254ed2=_0x5bff96['commands']['get'](_0x4d34a8);_0x282a95['enableCommand'](_0x4d34a8,()=>{const _0x36de33=_0x37a265['getSelectionAffectedTableCells'](_0x5bff96['model']['document']['selection'])[0x0],_0xc77cf7=_0x36de33['findAncestor']('table'),{column:_0x496cef,row:_0x2d2470}=_0x37a265['getCellLocation'](_0x36de33);let _0x2b4042=[];if('horizontally'==_0x254ed2['direction']){const _0x464620=_0x37a265['createTableWalker'](_0xc77cf7,{'startRow':_0x2d2470,'endRow':_0x2d2470,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x464620)['map'](_0x7e5028=>_0x7e5028['cell']);}else{const _0x31e5ab=_0x37a265['createTableWalker'](_0xc77cf7,{'column':_0x496cef,'includeAllSlots':!0x0});_0x2b4042=Array['from'](_0x31e5ab)['map'](_0x3a28a6=>_0x3a28a6['cell']);}_0x5bff96['model']['change'](_0x71d847=>{_0x282a95['markBlockFormat'](_0x71d847['createRangeOn'](_0x36de33),{'commandName':_0x4d34a8,'commandParams':[]},_0x2b4042,_0x4d34a8);});});}_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x5ea3eb=>{if('formatBlock'!=_0x5ea3eb['type']&&'formatInline'!=_0x5ea3eb['type'])return;const {data:_0x454d2f}=_0x5ea3eb;return _0x454d2f&&'mergeTableCells'==_0x454d2f['commandName']?{'type':'format','content':o(_0x47e8a0,'*Merge\x20cells*')}:void 0x0;}),_0x282a95['descriptionFactory']['registerDescriptionCallback'](_0x301db7=>{if('formatBlock'!=_0x301db7['type']&&'formatInline'!=_0x301db7['type'])return;const {data:_0x14d925}=_0x301db7;return _0x14d925?'splitTableCellVertically'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14d925['commandName']?{'type':'format','content':o(_0x47e8a0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3ca692=_0x4e4697['_acceptFormatSuggestionCallbackFactory']();for(const _0x3adfe7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3adfe7,'accept',_0x3ca692);for(const _0x21cdf7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21cdf7,'accept',_0x3ca692);_0x282a95['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21f20d=>{_0x5bff96['model']['change'](_0x4db9d7=>{const _0x5422e2=Array['from'](_0x59c459['getRanges']())['map'](_0x5476f9=>_0x1eeee4['fromRange'](_0x5476f9));_0x4db9d7['setSelection'](_0x21f20d),_0x5bff96['commands']['get']('mergeTableCells')['refresh'](),_0x5bff96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e92f6=_0x5422e2['filter'](_0x2b1be6=>'$graveyard'!=_0x2b1be6['root']['rootName']);_0x4e92f6['length']>0x0&&_0x4db9d7['setSelection'](_0x4e92f6);for(const _0x192327 of _0x5422e2)_0x192327['detach']();});});for(const _0x477915 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ce58a=_0x5bff96['commands']['get'](_0x477915);_0x4ce58a['on']('set:isEnabled',(_0x3be318,_0x2dbb6e,_0x53cb74)=>{if(_0x53cb74){const _0x413948=_0x5bff96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x387025=>_0x387025['is']('element','tableCell'));this['_areMergableCells'](_0x4ce58a['value'],_0x413948)||(_0x3be318['return']=!0x1,_0x3be318['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x505a93=this['editor']['commands']['get']('mergeTableCells'),_0xa26e8=this['editor']['plugins']['get']('TableUtils');if(!_0x505a93['isEnabled'])return!0x1;const _0x4ce69c=_0xa26e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x696d9 of _0x4ce69c)for(const _0x141712 of _0x4ce69c)if(_0x696d9!=_0x141712&&!this['_areMergableCells'](_0x696d9,_0x141712))return!0x1;return!0x0;}['_areMergableCells'](_0x1da1ee,_0x1785d7){const _0x36beb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ea713=this['editor']['model']['createRangeOn'](_0x1da1ee),_0x5b3a76=this['editor']['model']['createRangeOn'](_0x1785d7),_0x585c43=new Set(),_0x311656=new Set();for(const _0x2af95c of _0x36beb4['getSuggestions']())if(('insertion'==_0x2af95c['type']||'deletion'==_0x2af95c['type']||'mergeTableCells'==_0x2af95c['subType'])&&_0x2af95c['isInContent']){for(const _0x2612ee of _0x2af95c['getRanges']())_0x2612ee['containsRange'](_0x4ea713,!0x0)&&_0x585c43['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']),_0x2612ee['containsRange'](_0x5b3a76,!0x0)&&_0x311656['add'](_0x2af95c['type']+':'+_0x2af95c['author']['id']);}if(_0x585c43['size']!=_0x311656['size'])return!0x1;for(const _0x43fc7a of _0x585c43)if(!_0x311656['has'](_0x43fc7a))return!0x1;return!0x0;}}class Ct extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x416fac=this['editor'];if(!_0x416fac['plugins']['has']('TableEditing'))return;const _0x372d6d=_0x416fac['locale'],_0x80e7b7=_0x416fac['plugins']['get']('TrackChangesEditing');_0x80e7b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x80e7b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x80e7b7['registerBlockAttribute']('headingRows'),_0x80e7b7['registerBlockAttribute']('headingColumns'),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x372d6d,'FORMAT_HEADER_ROW')),_0x80e7b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x372d6d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x35b2dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e6cd2=this['editor']['plugins']['get']('TableUtils'),_0x15d239=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x459af1({showActiveMarker:_0x499279=!0x0,setDataAttribute:_0x52c55c=!0x0}={}){return(_0x55283,_0x31433c,_0x3119d2)=>{const {type:_0x5bd329,id:_0x529a3c}=_0x35b2dc['_splitMarkerName'](_0x31433c['markerName']),_0x40688f=_0x35b2dc['getSuggestion'](_0x529a3c),_0x5f3b05=_0x40688f['data'];if('formatBlock'!=_0x40688f['type']||!_0x5f3b05||'setTableColumnHeader'!=_0x5f3b05['commandName'])return;if(_0x31433c['item'])return void _0x55283['stop']();if(!_0x3119d2['consumable']['consume'](_0x31433c['markerRange'],_0x55283['name']))return;const _0x3b4dae=_0x31433c['markerRange']['start']['nodeAfter'],_0x4c853c=_0x31433c['markerRange']['end']['nodeBefore'],_0x1e300f=_0x3b4dae['parent']['parent'],{column:_0x50eed7}=_0x3e6cd2['getCellLocation'](_0x3b4dae),{column:_0x15b55c}=_0x3e6cd2['getCellLocation'](_0x4c853c);for(let _0xa6552c=_0x50eed7;_0xa6552c<=_0x15b55c;_0xa6552c++){const _0x2c6eb5=_0x3e6cd2['createTableWalker'](_0x1e300f,{'column':_0xa6552c,'includeAllSlots':!0x1});for(const _0x3daec9 of _0x2c6eb5){const _0x5517e3=_0x3daec9['cell'],_0x652a5b=_0x3119d2['mapper']['toViewElement'](_0x5517e3);_0x3119d2['writer']['addClass']('ck-suggestion-marker-'+_0x5bd329,_0x652a5b),_0x52c55c&&_0x3119d2['writer']['setAttribute']('data-suggestion',_0x529a3c,_0x652a5b),_0x3119d2['mapper']['bindElementToMarker'](_0x652a5b,_0x31433c['markerName']),_0x499279&&(_0x35b2dc['activeMarkers']['includes'](_0x31433c['markerName'])?_0x3119d2['writer']['addClass']('ck-suggestion-marker--active',_0x652a5b):_0x3119d2['writer']['removeClass']('ck-suggestion-marker--active',_0x652a5b));}}};}_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15d239),_0x35b2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15d239),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x459af1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x58a094,_0x20a761,_0x3277b8)=>{_0x3277b8['options']['showSuggestionHighlights']&&_0x459af1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x58a094,_0x20a761,_0x3277b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3776b3,_0x3965e5,_0xc1b946)=>{const {type:_0x4fa1df,id:_0x5b1c0a}=_0x35b2dc['_splitMarkerName'](_0x3965e5['markerName']),_0x588b27=_0x35b2dc['getSuggestion'](_0x5b1c0a),_0x595ebc=_0x588b27['data'];if('formatBlock'!=_0x588b27['type']||!_0x595ebc||'setTableColumnHeader'!=_0x595ebc['commandName'])return;const _0x33e688=_0xc1b946['mapper']['markerNameToElements'](_0x3965e5['markerName']);if(_0x33e688){for(const _0x3321bd of _0x33e688)_0xc1b946['writer']['removeClass']('ck-suggestion-marker-'+_0x4fa1df,_0x3321bd),_0xc1b946['writer']['removeClass']('ck-suggestion-marker--active',_0x3321bd),_0xc1b946['writer']['removeAttribute']('data-suggestion',_0x3321bd),_0xc1b946['mapper']['unbindElementFromMarkerName'](_0x3321bd,_0x3965e5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289a67=this['editor'],_0x10e088=_0x289a67['locale'];function _0x29ab9b(_0x4a92aa){return{'type':'format','content':o(_0x10e088,'*Format:*\x20%0',_0x4a92aa)};}_0x289a67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a103d=>{if('formatBlock'!=_0x4a103d['type'])return;const {data:_0x32d719}=_0x4a103d;if(_0x32d719){if('setTableRowHeader'==_0x32d719['commandName']){const _0x3470fe=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x3470fe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32d719['commandName']){const _0x293756=_0x32d719['commandParams'][0x0]['forceValue'];return _0x29ab9b(o(_0x10e088,_0x293756?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x42e5d5=>[_0x42e5d5,null]));class _t extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0xecd6ca=this['editor'];if(!_0xecd6ca['plugins']['has']('TableClipboard'))return;const _0x4eae74=_0xecd6ca['plugins']['get']('TrackChangesEditing'),_0x10e791=_0xecd6ca['plugins']['get']('TableUtils'),_0x80031a=_0xecd6ca['plugins']['get'](It),_0x2c51a5=_0xecd6ca['plugins']['get']('TableClipboard');_0x80031a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xecd6ca['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xecd6ca['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd11a0=null;_0xecd6ca['model']['on']('insertContent',(_0x35f1f0,_0x5e2b30)=>{const [_0x42a0fb,_0x2f7f88]=_0x5e2b30,_0x53f3d9=_0x5e2b30[_0x5e2b30['length']-0x1];_0x53f3d9&&_0x53f3d9['forceDefaultExecution']||_0x4eae74['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14ef17,_0x5e6168,_0x446239,_0x327947,_0x2da079){if(_0x5e6168&&!_0x5e6168['is']('documentSelection'))return!0x1;const _0x332da7=_0x2da079['getTableIfOnlyTableInContent'](_0x14ef17,_0x446239);if(!_0x332da7||!Re(_0x332da7,void 0x0,_0x327947))return!0x1;const _0x376f5d=_0x327947['getSelectionAffectedTableCells'](_0x446239['document']['selection']);if(!_0x376f5d['length'])return!0x1;const _0x5c3ef3=_0x376f5d[0x0]['findAncestor']('table'),_0x550f3d=_0x327947['getRowIndexes'](_0x376f5d),_0x55a16c=_0x327947['getColumnIndexes'](_0x376f5d),_0x3d3e54={'startRow':_0x550f3d['first'],'endRow':_0x550f3d['last'],'startColumn':_0x55a16c['first'],'endColumn':_0x55a16c['last']};return 0x1==_0x376f5d['length']&&(_0x3d3e54['endRow']+=_0x327947['getRows'](_0x332da7)-0x1,_0x3d3e54['endColumn']+=_0x327947['getColumns'](_0x332da7)-0x1),Re(_0x5c3ef3,_0x3d3e54,_0x327947);}(_0x42a0fb,_0x2f7f88,_0xecd6ca['model'],_0x10e791,_0x2c51a5)&&(_0x35f1f0['stop'](),_0xd11a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xecd6ca['model']['change'](()=>{_0xecd6ca['model']['insertContent'](_0x5e2b30[0x0],_0x5e2b30[0x1],_0x5e2b30[0x2],{'forceDefaultExecution':!0x0});const _0x2c3dd1=_0x31d1bc(),{rowInsertionRanges:_0x5ebd02,columnInsertionRanges:_0x712b8a,insertionRanges:_0x3bb202,deletionRanges:_0x53e62b,cells:_0x1e07ee}=_0xd11a0;_0x5ebd02['length']&&_0x4eae74['markMultiRangeInsertion'](_0x5ebd02,'tablePasteRow',{'tablePasteChainId':_0x2c3dd1}),_0x712b8a['length']&&_0x4eae74['markMultiRangeInsertion'](_0x712b8a,'tablePasteColumn',{'tablePasteChainId':_0x2c3dd1}),_0x3bb202['length']&&(_0x4eae74['markMultiRangeInsertion'](_0x3bb202,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x3bb202['forEach'](_0x216335=>_0x216335['detach']?.())),_0x53e62b['length']&&(_0x4eae74['markMultiRangeDeletion'](_0x53e62b,'tablePaste',{'tablePasteChainId':_0x2c3dd1,'skipNestingCheck':!0x0}),_0x53e62b['forEach'](_0x3057d1=>_0x3057d1['detach']?.()));const _0xa25d66=_0x4eae74['markMultiRangeBlockFormat'](_0x1e07ee['map'](({element:_0x314f30})=>_0x314f30),{'formatGroupId':_0x31d1bc()},[],'tablePasteCell',{'tablePasteChainId':_0x2c3dd1});if(_0xa25d66){const _0x48d8e7=_0xa25d66['getMarkers'](),_0x196f0d=[];for(const {element:_0x5189cb,attributes:_0x2a25c1}of _0x1e07ee){if(!_0x2a25c1)continue;const _0x4096e6=_0xecd6ca['model']['createRangeOn'](_0x5189cb),_0x3c1f09=_0x48d8e7['find'](_0x4193a3=>_0x4193a3['getRange']()['isEqual'](_0x4096e6));_0x3c1f09&&_0x196f0d['push']([_0x3c1f09['name'],_0x2a25c1]);}_0x196f0d['length']&&_0xa25d66['setAttribute']('markerAttributes',Object['fromEntries'](_0x196f0d));}_0xd11a0=null;}));},{'priority':_0x3a7800['high']+0xa}),_0xecd6ca['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c5097,_0x53879b)=>{const [_0x2f8bf5,_0xd39981,,_0x4cfc1f]=_0x53879b;if(!_0xd11a0)return;_0x4c5097['stop']();const _0x4c2833=_0x2f8bf5['cell'],_0x2c61f7=_0xd39981,_0x3a9e20=ke(_0x4c2833),_0x645d78=ke(_0x2c61f7);_0x4c5097['return']=_0x4c2833;let _0x2f0397=null,_0x337fae=null;if(_0x645d78||_0x3a9e20){if(_0x3a9e20&&!_0x645d78){_0x4cfc1f['remove'](_0x4c2833['getChild'](0x0));for(const _0x33669c of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x33669c,_0x4c2833,'end');const _0x293fcd=_0xd11a0['rowInsertionIndexes']['includes'](_0x2f8bf5['row']),_0xb47819=_0xd11a0['columnInsertionIndexes']['includes'](_0x2f8bf5['column']);_0x293fcd||_0xb47819||(_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeIn'](_0x4c2833)));}else _0x645d78&&!_0x3a9e20&&(_0x337fae=_0x4cfc1f['createRangeIn'](_0x4c2833));}else{const _0x4dc9c2=_0x4cfc1f['createElement']('tableCellSuggestion'),_0x111c93=_0x4cfc1f['createElement']('tableCellSuggestion');_0x4cfc1f['wrap'](_0x4cfc1f['createRangeIn'](_0x4c2833),_0x111c93),_0x4cfc1f['insert'](_0x4dc9c2,_0x4c2833,0x0);for(const _0x1d2fef of Array['from'](_0x2c61f7['getChildren']()))_0x4cfc1f['insert'](_0x1d2fef,_0x4dc9c2,'end');_0x2f0397=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x4dc9c2)),_0x337fae=_0x1eeee4['fromRange'](_0x4cfc1f['createRangeOn'](_0x111c93));}const _0x508397=Array['from'](_0x2c61f7['getAttributes']())['filter'](([_0x5d4589])=>Pe['includes'](_0x5d4589));_0xd11a0['cells']['push']({'element':_0x4c2833,'attributes':_0x508397['length']?Object['fromEntries'](_0x508397):null}),_0x2f0397&&_0xd11a0['insertionRanges']['push'](_0x2f0397),_0x337fae&&_0xd11a0['deletionRanges']['push'](_0x337fae);},{'priority':'high'}),_0x10e791['on']('insertColumns',(_0x4a3827,_0x331e48)=>{const [_0x42e7b9,_0x53acb2={}]=_0x331e48;if(!_0xd11a0)return;const _0xbe1b49=_0x53acb2['at']||0x0,_0x2e33b5=_0x53acb2['columns']||0x1;_0xd11a0['columnInsertionIndexes']=new Array(_0x2e33b5)['fill'](_0xbe1b49)['map']((_0x26d9a8,_0x50e943)=>_0x26d9a8+_0x50e943);for(const {cell:_0x1dca57}of _0x10e791['createTableWalker'](_0x42e7b9,{'startColumn':_0xbe1b49,'endColumn':_0xbe1b49+_0x2e33b5-0x1}))_0xd11a0['columnInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x1dca57));},{'priority':'low'}),_0x10e791['on']('insertRows',(_0xfe6e2d,_0x3ac944)=>{const [_0x5040c9,_0x1f99a9={}]=_0x3ac944;if(!_0xd11a0)return;const _0x14ff6d=_0x1f99a9['at']||0x0,_0x246d09=_0x1f99a9['rows']||0x1;_0xd11a0['rowInsertionIndexes']=new Array(_0x246d09)['fill'](_0x14ff6d)['map']((_0x9f8d0,_0xc1bceb)=>_0x9f8d0+_0xc1bceb);for(const {cell:_0x153be7}of _0x10e791['createTableWalker'](_0x5040c9,{'startRow':_0x14ff6d,'endRow':_0x14ff6d+_0x246d09-0x1}))_0xd11a0['rowInsertionRanges']['push'](_0xecd6ca['model']['createRangeOn'](_0x153be7));},{'priority':'low'}),_0x4eae74['descriptionFactory']['registerDescriptionCallback'](_0x45a792=>{if(_0x45a792['subType']&&_0x45a792['subType']['startsWith']('tablePaste'))return _0x45a792['previous']?{}:{'type':'insertion','content':o(_0xecd6ca['locale'],'*Replace\x20table\x20cells*')};});const _0x6c4c9=()=>!0x1;for(const _0x263e14 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('deletion',_0x263e14,'join',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x263e14,'join',_0x6c4c9);_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x6c4c9),_0x4eae74['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b5c5a,_0x4cf7bd,_0x4a07fc)=>{const _0x2f7e6f=_0x4b5c5a['map'](_0x5d5085=>_0x5d5085['getContainedElement']())['filter'](_0x37a577=>_0x37a577),_0x354c92=new Map(_0x2f7e6f['map'](_0x4648ab=>[_0x4648ab,null]));if(_0xd11a0){for(const {element:_0x2965b2,attributes:_0x4f19c1}of _0xd11a0['cells'])_0x4f19c1&&_0x354c92['set'](_0x2965b2,_0x4f19c1);}else{if(_0x4a07fc&&_0x4a07fc['markerAttributes'])for(const [_0xa8c85f,_0x480d6e]of Object['entries'](_0x4a07fc['markerAttributes'])){const _0x5985ac=_0xecd6ca['model']['markers']['get'](_0xa8c85f),_0x5d61ef=_0x5985ac?_0x5985ac['getRange']()['getContainedElement']():null;_0x5d61ef&&_0x354c92['set'](_0x5d61ef,_0x480d6e);}}_0xecd6ca['model']['change'](_0x395aab=>{for(const [_0x2690fd,_0x3e6f43]of _0x354c92)_0x395aab['setAttributes']({...we,..._0x3e6f43},_0x2690fd);});});const _0x46ef7a=(_0x2f56c7,_0x233c88)=>{_0x4eae74['_suggestionFactory']['registerCustomCallback'](_0x2f56c7,'tablePaste',_0x233c88,(_0x2a3520,_0x955132,_0x6f471c)=>{_0xecd6ca['model']['change'](_0x18ee49=>{const _0x21e2ef=[];for(const _0x392bf3 of _0x2a3520){const _0x53004b=_0x392bf3['start']['nodeAfter'];_0x53004b['is']('element','tableCellSuggestion')&&_0x21e2ef['push'](_0x53004b);}_0x4eae74['_suggestionFactory']['getSuggestionCallback'](_0x2f56c7,null,_0x233c88)(_0x2a3520,_0x955132,_0x6f471c);for(const _0x1b3c1f of _0x21e2ef)'$graveyard'!=_0x1b3c1f['root']['rootName']&&_0x18ee49['unwrap'](_0x1b3c1f);});});};_0x46ef7a('insertion','accept'),_0x46ef7a('insertion','discard'),_0x46ef7a('deletion','accept'),_0x46ef7a('deletion','discard'),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37cba4=>{const _0x57af80=_0x37cba4['map'](_0x252c21=>_0x252c21['getContainedElement']()),_0x1ee771=_0x57af80[0x0]['findAncestor']('table'),{minRow:_0x430276,maxRow:_0x232208}=_0x80031a['_getCoordsForCells'](_0x57af80);_0x10e791['removeRows'](_0x1ee771,{'at':_0x430276,'rows':_0x232208-_0x430276+0x1});}),_0x4eae74['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x8aa277=>{const _0x5f5a73=_0x8aa277['map'](_0x5f2196=>_0x5f2196['getContainedElement']()),_0xd8ee99=_0x5f5a73[0x0]['findAncestor']('table'),{minColumn:_0x55f948,maxColumn:_0x19bbf1}=_0x80031a['_getCoordsForCells'](_0x5f5a73);_0x10e791['removeColumns'](_0xd8ee99,{'at':_0x55f948,'columns':_0x19bbf1-_0x55f948+0x1});});const _0x2ecd7d=(_0x9db23b,_0x39e5c6)=>{if(!_0x39e5c6['subType']||!_0x39e5c6['subType']['startsWith']('tablePaste'))return;const _0x339464=_0x39e5c6['attributes']['tablePasteChainId'],_0x29a3f9=_0x4eae74['getSuggestions']()['filter'](_0x24eee3=>_0x24eee3['isInContent']&&_0x24eee3['attributes']&&_0x24eee3['attributes']['tablePasteChainId']==_0x339464);_0x29a3f9['length']&&_0x39e5c6['getAllAdjacentSuggestions']()['length']!=_0x29a3f9['length']&&_0x29a3f9['reduce']((_0x3d959f,_0x2399d0)=>(_0x3d959f['next']=_0x2399d0,_0x2399d0['previous']=_0x3d959f,_0x2399d0));};function _0x3c8d0f(_0x5b7064,_0x39ff60=!0x0){const {id:_0x5e20ea,authorId:_0x22335d}=_0x4eae74['_splitMarkerName'](_0x5b7064['markerName']),_0x1dc15f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe0e9c2=_0x4eae74['activeMarkers']['includes'](_0x5b7064['markerName']);return _0xe0e9c2&&_0x1dc15f['push']('ck-suggestion-marker--active'),{'classes':_0x1dc15f,'attributes':{'data-suggestion':_0x5e20ea,'data-author-id':_0x22335d},'priority':_0xe0e9c2&&_0x39ff60?0xbc2:0xbb8};}_0x4eae74['on']('suggestionLoaded',_0x2ecd7d,{'priority':'high'}),_0x4eae74['on']('suggestionUnloaded',_0x2ecd7d,{'priority':'high'}),_0xecd6ca['model']['document']['registerPostFixer'](()=>{let _0x3e3a5e=!0x1;const _0x154965=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a5670,data:_0x155d06}of _0x154965){const {group:_0x4c9e5e,type:_0x2138c4,id:_0x36b6d6}=_0x4eae74['_splitMarkerName'](_0x1a5670);if('suggestion'!=_0x4c9e5e||'deletion'!=_0x2138c4||_0x155d06['oldRange'])continue;if(!_0x4eae74['hasSuggestion'](_0x36b6d6))continue;const _0x351685=_0x4eae74['getSuggestion'](_0x36b6d6)['getRanges'](),_0x4b7d94=_0xecd6ca['plugins']['get']('Users')['me'];for(const _0x26eecd of _0x4eae74['getSuggestions']()){if(!_0x26eecd['isInContent']||_0x26eecd['author']!=_0x4b7d94)continue;if('formatBlock'!=_0x26eecd['type']||'tablePasteCell'!=_0x26eecd['subType'])continue;if(_0x26eecd['getRanges']()['every'](_0x2492b1=>_0x351685['some'](_0x361267=>_0x361267['containsRange'](_0x2492b1,!0x0)))){for(const _0x37da4f of _0x26eecd['getAllAdjacentSuggestions']())_0x37da4f['isInContent']&&(_0x37da4f['discard'](),_0x3e3a5e=!0x0);}}}return _0x3e3a5e;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x51ff3e=>{const _0x1d597f=_0xecd6ca['commands']['get']('redo');if(!_0x1d597f||!_0x1d597f['_createdBatches']['has'](_0x51ff3e['batch']))return!0x1;let _0x1f18a3=!0x1;const _0x554712=_0xecd6ca['plugins']['get']('Users')['me'],_0x52b2d1=_0xecd6ca['model']['document']['differ']['getChanges'](),_0x487355=Array['from'](_0xecd6ca['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xa414e5,data:_0x56b1f7})=>{const {group:_0x582948,subType:_0x1db1b1,authorId:_0x2f8e9}=_0x4eae74['_splitMarkerName'](_0xa414e5);return'suggestion'==_0x582948&&'tablePaste'==_0x1db1b1&&_0x2f8e9==_0x554712['id']&&!_0x56b1f7['oldRange'];});for(const _0x17dfc3 of _0x52b2d1){if('insert'!=_0x17dfc3['type']||'tableCellSuggestion'!=_0x17dfc3['name']||0x1!=_0x17dfc3['length'])continue;const _0xf6b0c6=_0x51ff3e['createRange'](_0x17dfc3['position'],_0x17dfc3['position']['getShiftedBy'](0x1));if(!_0x487355['find'](({data:_0x19915a})=>_0x19915a['newRange']['isEqual'](_0xf6b0c6))){for(const {name:_0x584760,data:_0x19fc97}of _0x487355)if(_0xf6b0c6['containsRange'](_0x19fc97['newRange'])){_0x51ff3e['updateMarker'](_0x584760,{'range':_0xf6b0c6}),_0x1f18a3=!0x0;break;}}}return _0x1f18a3;}),_0xecd6ca['model']['document']['registerPostFixer'](_0x2798da=>{let _0x462293=!0x1;const _0x1214ec=_0xecd6ca['plugins']['get']('Users')['me'],_0x194bc6=_0x4eae74['getSuggestions']()['filter'](_0x2a83cc=>_0x2a83cc['isInContent']&&_0x2a83cc['author']==_0x1214ec),_0x3af201=new Set(),_0x22b255=new Set();for(const _0x1ce888 of _0x194bc6)if('tablePaste'==_0x1ce888['subType'])for(const _0x12cd1b of _0x1ce888['getMarkers']()){const _0x1599a1=_0x12cd1b['getRange']()['getContainedElement']();if(_0x1599a1){if(_0x1599a1['is']('element','tableCellSuggestion')&&ke(_0x1599a1)){_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x3af201['add'](_0x1599a1),_0x462293=!0x0;const _0xabda9e=_0x1599a1['nextSibling'],_0x2a370f=_0x1599a1['previousSibling'],_0x413615=_0xabda9e&&_0xabda9e['is']('element','tableCellSuggestion'),_0x3d1095=_0x2a370f&&_0x2a370f['is']('element','tableCellSuggestion');_0x413615&&!_0x3af201['has'](_0xabda9e)&&_0x22b255['add'](_0xabda9e),_0x3d1095&&!_0x3af201['has'](_0x2a370f)&&_0x22b255['add'](_0x2a370f);}else _0x1599a1['is']('element','paragraph')&&_0x1599a1['isEmpty']&&(_0x1ce888['removeMarker'](_0x12cd1b['name']),_0x462293=!0x0);}}else{if('tablePasteCell'==_0x1ce888['subType']){if(!_0x1ce888['attributes']||!_0x1ce888['attributes']['tablePasteChainId'])continue;const _0x582491=_0x1ce888['attributes']['markerAttributes'];if(_0x582491&&Object['keys'](_0x582491)['length'])continue;const _0x55d0e4=_0x1ce888['attributes']['tablePasteChainId'];let _0x3824bf=!0x0,_0x3ebf7e=!0x0;for(const _0x78b63e of _0x194bc6)if(_0x78b63e['subType']&&_0x78b63e['subType']['startsWith']('tablePaste')){if(!_0x78b63e['attributes']['tablePasteChainId']){_0x3ebf7e=!0x1;break;}if(_0x78b63e['id']!=_0x1ce888['id']&&_0x78b63e['attributes']['tablePasteChainId']==_0x55d0e4){_0x3824bf=!0x1;break;}}_0x3ebf7e&&_0x3824bf&&(_0x1ce888['removeMarkers'](),_0x462293=!0x0);}}for(const _0x1b80dc of _0x3af201)_0x2798da['remove'](_0x1b80dc);for(const _0xa44caa of _0x22b255)_0x2798da['unwrap'](_0xa44caa);return _0x462293;}),_0xecd6ca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ffb84=>_0x3c8d0f(_0x2ffb84),'converterPriority':'high'}),_0xecd6ca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x342c85,_0x2f11c9)=>_0x2f11c9['options']['showSuggestionHighlights']?_0x3c8d0f(_0x342c85,!0x1):null,'converterPriority':'high'});const _0x358d26=_0xecd6ca['editing']['view'];this['listenTo'](_0x358d26['document'],'clipboardOutput',(_0x48ecc4,_0x2c4312)=>{const _0x8649bb=[];for(const _0x2674e7 of _0x358d26['createRangeIn'](_0x2c4312['content'])['getItems']())_0x2674e7['is']('element','suggestion-td')&&_0x8649bb['push'](_0x2674e7);_0x358d26['change'](_0x2b0871=>{for(const _0x996702 of _0x8649bb)_0x2b0871['move'](_0x2b0871['createRangeIn'](_0x996702),_0x2b0871['createPositionBefore'](_0x996702)),_0x2b0871['remove'](_0x996702);});});}}function ke(_0x29f047){if(_0x29f047['isEmpty'])return!0x0;const _0x2a2f18=_0x29f047['getChild'](0x0);return _0x2a2f18['is']('element','paragraph')&&_0x2a2f18['isEmpty'];}function Re(_0x4b31aa,_0x1bbae8={},_0x227fe9){for(const {isAnchor:_0x4c6aaf,cellHeight:_0x41e6ac,cellWidth:_0x45b809}of _0x227fe9['createTableWalker'](_0x4b31aa,{'includeAllSlots':!0x0,..._0x1bbae8}))if(!_0x4c6aaf||0x1!=_0x41e6ac||0x1!=_0x45b809)return!0x1;return!0x0;}class Nt extends _0x16a2ad{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cf54e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cf54e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cf54e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cf54e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cf54e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x444dd4,_0x451af7){const _0x2a4068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27bc1a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x138c0f=_0x451af7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9f392b=_0x27bc1a['getColumnGroupElement'](_0x138c0f);let _0x1ebe2d=_0x9f392b?_0x27bc1a['getTableColumnsWidths'](_0x9f392b):null,_0x434ebf=_0x138c0f['getAttribute']('tableWidth')||null;const _0xa17716=_0x451af7['tableWidth']||_0x434ebf,_0x3a5b35=_0x451af7['columnWidths']||_0x1ebe2d,_0x290107=this['editor']['plugins']['get']('Users')['me'];for(const _0x45f9a6 of _0x2a4068['getSuggestions']()){const _0x568289=_0x45f9a6['getContainedElement']();if('resizeTable'===_0x45f9a6['subType']&&_0x568289===_0x138c0f){_0x45f9a6['author']!==_0x290107&&_0x45f9a6['discard']();const _0x5b129a=_0x45f9a6['data']['commandParams'];_0x434ebf=_0x5b129a[0x0]['tableWidth'],_0x1ebe2d=_0x5b129a[0x0]['columnWidths'];break;}}_0x444dd4({'table':_0x138c0f,'tableWidth':_0xa17716,'columnWidths':_0x3a5b35}),_0x2a4068['markBlockFormat'](_0x138c0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x434ebf,'columnWidths':_0x1ebe2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32a18a){if('formatBlock'!=_0x32a18a['type']&&'formatInline'!=_0x32a18a['type'])return;const {data:_0x2dafdc}=_0x32a18a;if(_0x2dafdc&&'resizeTable'===_0x2dafdc['formatGroupId']){const _0x268fe1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x268fe1)};}}}class Dt extends _0x16a2ad{['afterInit'](){const _0x38779b=this['editor'];_0x38779b['plugins']['has']('Template')&&_0x38779b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x16a2ad{['afterInit'](){const _0x1c8fa9=this['editor'];if(!_0x1c8fa9['commands']['get']('insertTableOfContents'))return;_0x1c8fa9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5856a5=_0x1c8fa9['plugins']['get']('TrackChangesEditing'),_0x5463e6=_0x1c8fa9['locale'];_0x5856a5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3060ed=>o(_0x5463e6,'ELEMENT_TABLE_OF_CONTENTS',_0x3060ed));}}class $t extends _0x16a2ad{['afterInit'](){const _0x53103d=this['editor'];if(!_0x53103d['plugins']['has']('Title'))return;const _0x4b7ac5=_0x53103d['plugins']['get']('TrackChangesEditing');_0x4b7ac5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53103d['locale'],'ELEMENT_TITLE')),_0x53103d['model']['document']['registerPostFixer'](_0x2ccc87=>{let _0x3bbb22=!0x1;const _0x7f53c0=Array['from'](_0x53103d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d44b,data:_0x1d990a}of _0x7f53c0){const {group:_0x350714}=_0x4b7ac5['_splitMarkerName'](_0x39d44b);if('suggestion'!==_0x350714||!_0x1d990a['newRange'])continue;const _0x1eb46e=_0x1d990a['newRange'],_0xb2a84b=_0x1eb46e['end']['nodeBefore'];if(!_0xb2a84b||!_0xb2a84b['is']('element','title-content'))continue;if(!_0x1eb46e['start']['isTouching'](_0x1eb46e['end']))continue;const _0x2a9662=_0x53103d['model']['schema']['getNearestSelectionRange'](_0x1eb46e['end'],'forward');if(_0x2a9662&&_0x2a9662['isCollapsed']){const _0x128625=_0x2ccc87['createRange'](_0x1eb46e['start'],_0x2a9662['start']);_0x128625['isEqual'](_0x1eb46e)||(_0x2ccc87['updateMarker'](_0x39d44b,{'range':_0x128625}),_0x3bbb22=!0x0);}_0x3bbb22||(_0x2ccc87['removeMarker'](_0x39d44b),_0x3bbb22=!0x0);}return _0x3bbb22;});}}class Bt extends _0x16a2ad{['afterInit'](){const _0x3c5506=this['editor'],_0x2ba949=_0x3c5506['plugins']['get']('TrackChangesEditing');_0x3c5506['plugins']['has']('UndoEditing')&&(_0x2ba949['enableCommand']('undo'),_0x2ba949['enableCommand']('redo'));}}class xt extends _0x16a2ad{static get['requires'](){return[It];}['afterInit'](){const _0x4fee00=this['editor'];if(!_0x4fee00['plugins']['has']('TableCaptionEditing'))return;_0x4fee00['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x16a2ad{['tableProperties'];['tableCellProperties'];constructor(_0x1d87b1){super(_0x1d87b1),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 _0x28b2e9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x443f3b of this['tableProperties'])_0x28b2e9['enableCommand'](_0x443f3b,(_0x3762bf,_0x8bec59)=>{const _0x408b5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x443f3b,[_0x408b5a],this['tableProperties'],'tableProperties',_0x3762bf,_0x8bec59);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x26273a,_0x54b8e5)=>this['handleDiscardAction'](this['tableProperties'],_0x26273a,_0x54b8e5)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b8a15 of this['tableCellProperties'])_0x28b2e9['enableCommand'](_0x4b8a15,(_0x145cb1,_0x13f92b)=>{const _0x14507f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b8a15,_0x14507f,this['tableCellProperties'],'tableCellProperties',_0x145cb1,_0x13f92b);});_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x28b2e9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x427d4e,_0x3f49a0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x427d4e,_0x3f49a0)),_0x28b2e9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x28b2e9['descriptionFactory']['registerDescriptionCallback'](_0x5ab412=>this['handleSuggestionDescription'](_0x5ab412));}['_handlePropertyChange'](_0x1223c2,_0x599812,_0x209f8d,_0x613e28,_0xe1ce6f,_0x424cb2){const _0x5c88b9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x424cb2['batch'],()=>{for(const _0x235af8 of _0x599812){if(this['_getSuggestion'](_0x235af8,_0x613e28))_0xe1ce6f(_0x424cb2);else{const _0x3c2919={};for(const _0x430525 of _0x209f8d){const _0x32e679=_0x235af8['getAttribute'](_0x430525);void 0x0!==_0x32e679&&(_0x3c2919[_0x430525]=_0x32e679);}_0xe1ce6f(_0x424cb2),_0x5c88b9['markBlockFormat'](_0x235af8,{'commandParams':[_0x3c2919]},[],_0x613e28);}}});}['handleDiscardAction'](_0x3cf29e,_0xfa6a29,_0x408911){const _0x257a89=_0xfa6a29[0x0]['start']['nodeAfter'],_0x55494d=_0x408911['commandParams'][0x0];this['editor']['model']['change'](_0x33e183=>{for(const _0x4d8a79 of _0x3cf29e)void 0x0!==_0x55494d[_0x4d8a79]?_0x33e183['setAttribute'](_0x4d8a79,_0x55494d[_0x4d8a79],_0x257a89):_0x33e183['removeAttribute'](_0x4d8a79,_0x257a89);});}['handleSuggestionDescription'](_0x6058f4){if(_0x6058f4['data'])switch(_0x6058f4['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'](_0x5938fb,_0x4ebd37){const _0x1227d4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d5b41 of _0x1227d4['getSuggestions']({'skipNotAttached':!0x0})){const _0x55514f=_0x3d5b41['getContainedElement']();if(_0x3d5b41['subType']===_0x4ebd37&&_0x55514f===_0x5938fb)return _0x3d5b41;}return null;}}const m='$elementName';class p extends _0x16a2ad{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5680c5,_0x57b538,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d897c){function _0x311db0(_0x4e56c2){return _0x4e56c2['map'](_0x20ab6f=>String['fromCharCode'](_0x20ab6f))['join']('');}super(_0x1d897c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x856554,_0x2e1e75,_0x1bf750,_0x311222)=>{this['_model']['change'](()=>{for(const _0x379a2d of[..._0x311222,..._0x1bf750])this['_model']['markers']['has'](_0x379a2d)&&_0x1d897c['editing']['reconvertMarker'](_0x379a2d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1d897c['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(),_0x1d897c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d897c['config']['get']('trackChanges.trackFormatChanges'),_0x1d897c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d897c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d897c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x311db0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x311db0([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x30]);}['init'](){const _0x3332ae=this['editor'],_0x59f621=(_0x23aefe,_0x34c5e6)=>{if('attribute'!=_0x23aefe)return'ck-suggestion-marker-'+_0x23aefe;const _0x520915=_0x34c5e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x520915)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3332ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ff78a=>{const {id:_0x163081,authorId:_0x28a8f8,type:_0x28e0c1,subType:_0xae49a}=this['_splitMarkerName'](_0x3ff78a['markerName']),_0x244905=['ck-suggestion-marker',_0x59f621(_0x28e0c1,_0xae49a)];let _0x2e1df5=0xbb8;return this['activeMarkers']['includes'](_0x3ff78a['markerName'])&&(_0x244905['push']('ck-suggestion-marker--active'),_0x2e1df5=0xbc2),'deletion'==_0x28e0c1&&(_0x2e1df5+=0x5),{'classes':_0x244905,'attributes':{'data-suggestion':_0x163081,'data-author-id':_0x28a8f8},'priority':_0x2e1df5};}}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x123b9a=>{_0x123b9a['on']('addMarker:suggestion',(_0x694b5b,_0x5f5382,_0x5aa099)=>{if(!_0x5aa099['options']['showSuggestionHighlights'])return;const _0x51ecb6=_0x5f5382['item'];if(!_0x51ecb6)return;const _0x184fa1=_0x5aa099['mapper']['toViewElement'](_0x51ecb6);_0x3332ae['model']['schema']['isObject'](_0x51ecb6)&&_0x184fa1&&!_0x184fa1['getCustomProperty']('widget')&&_0x184fa1['is']('containerElement')&&_0x1dfbcb(_0x184fa1,_0x5aa099['writer']);},{'priority':'high'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x14ab44,_0xf1f3a6)=>{if(!_0xf1f3a6['options']['showSuggestionHighlights'])return null;const {type:_0x15083d,subType:_0x55de5c}=this['_splitMarkerName'](_0x14ab44['markerName']);return{'classes':['ck-suggestion-marker',_0x59f621(_0x15083d,_0x55de5c)],'priority':0xbb8};}});const _0x42c029=({showActiveMarkers:_0x78291=!0x0,isAttributeSuggestion:_0x49a1ae=!0x1}={})=>(_0x5639ec,_0x1c35ac,_0x1a3cb3)=>{if(!_0x1c35ac['item'])return;const {id:_0x21dbf4,authorId:_0x53c6be}=this['_splitMarkerName'](_0x1c35ac['markerName']);if(_0x49a1ae){const _0x170ed8=this['_suggestions']['get'](_0x21dbf4),_0x20d71f=this['_getAttributeKey'](_0x170ed8);if(!this['_isBlockAttribute'](_0x20d71f))return;}if(_0x1c35ac['item']['is']('selection'))return void _0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);const _0x22ae91=_0x1a3cb3['mapper']['toViewElement'](_0x1c35ac['item']);if(_0x1c35ac['item']['is']('element')&&_0x3332ae['model']['schema']['isBlock'](_0x1c35ac['item'])&&!_0x22ae91['getCustomProperty']('addHighlight')){_0x1a3cb3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-suggestion',_0x21dbf4,_0x22ae91),_0x1a3cb3['writer']['setAttribute']('data-author-id',_0x53c6be,_0x22ae91),_0x1a3cb3['mapper']['bindElementToMarker'](_0x22ae91,_0x1c35ac['markerName']),_0x78291&&(this['activeMarkers']['includes'](_0x1c35ac['markerName'])?_0x1a3cb3['writer']['addClass']('ck-suggestion-marker--active',_0x22ae91):_0x1a3cb3['writer']['removeClass']('ck-suggestion-marker--active',_0x22ae91));for(const _0x5f0435 of _0x3332ae['model']['createRangeIn'](_0x1c35ac['item'])['getItems']())_0x1a3cb3['consumable']['consume'](_0x5f0435,_0x5639ec['name']);_0x1a3cb3['consumable']['consume'](_0x1c35ac['item'],_0x5639ec['name']);}};_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x469ce8=>{_0x469ce8['on']('addMarker:suggestion:formatBlock',(_0x4634ca,_0x351681,_0x19c2c2)=>{_0x19c2c2['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1})(_0x4634ca,_0x351681,_0x19c2c2);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['add'](_0x2c762f=>{_0x2c762f['on']('addMarker:suggestion:attribute',(_0x38fa76,_0x1ee8f9,_0x5a3354)=>{_0x5a3354['options']['showSuggestionHighlights']&&_0x42c029({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38fa76,_0x1ee8f9,_0x5a3354);},{'priority':'highest'});}),_0x3332ae['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x214b44,_0x160cc4)=>_0x160cc4['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x214b44['substr'](0xb)}}),_0x3332ae['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x204293,{writer:_0x2ed46d})=>{let _0x352418='suggestion:'+_0x204293['getAttribute']('suggestion-type')+':'+_0x204293['getAttribute']('id');return _0x204293['getAttribute']('marker-count')&&(_0x352418+=':'+_0x204293['getAttribute']('marker-count')),_0x2ed46d['createElement']('$marker',{'data-name':_0x352418});}}),_0x3332ae['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x20d85d=>{_0x20d85d['on']('addMarker:suggestion:formatBlock',_0x42c029(),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x5f435b=>{_0x5f435b['on']('addMarker:suggestion:attribute',_0x42c029({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x168f14=>{_0x168f14['on']('removeMarker:suggestion:formatBlock',(_0x23ed0d,_0x45a7b4,_0x175113)=>{const _0x19e6e5=_0x175113['mapper']['markerNameToElements'](_0x45a7b4['markerName']);if(_0x19e6e5){for(const _0x55d163 of _0x19e6e5)_0x55d163['getCustomProperty']('addHighlight')||(_0x175113['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55d163),_0x175113['writer']['removeAttribute']('data-suggestion',_0x55d163),_0x175113['writer']['removeAttribute']('data-author-id',_0x55d163),_0x175113['mapper']['unbindElementFromMarkerName'](_0x55d163,_0x45a7b4['markerName']));}},{'priority':'high'});}),_0x3332ae['conversion']['for']('editingDowncast')['add'](_0x3b7ede=>{_0x3b7ede['on']('removeMarker:suggestion:attribute',(_0x19a5c5,_0x4b521c,_0x567610)=>{const _0x54a502=_0x567610['mapper']['markerNameToElements'](_0x4b521c['markerName']);if(!_0x54a502)return;const {id:_0x4164c6}=this['_splitMarkerName'](_0x4b521c['markerName']),_0x3959c8=this['_suggestions']['get'](_0x4164c6),_0x572c1f=this['_getAttributeKey'](_0x3959c8);if(this['_isBlockAttribute'](_0x572c1f)){for(const _0x37a0b9 of _0x54a502)_0x37a0b9['getCustomProperty']('addHighlight')||(_0x567610['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37a0b9),_0x567610['writer']['removeAttribute']('data-suggestion',_0x37a0b9),_0x567610['writer']['removeAttribute']('data-author-id',_0x37a0b9),_0x567610['mapper']['unbindElementFromMarkerName'](_0x37a0b9,_0x4b521c['markerName']));}},{'priority':'high'});}),_0x3332ae['model']['document']['registerPostFixer'](_0x456745=>{let _0x3bae6f=!0x1;const _0x334bfd=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']()),_0x32670d=new Set();for(const {name:_0x2d6ea4,data:_0x4f219d}of _0x334bfd){const {group:_0x32f57c,type:_0x5a934d,subType:_0x3de4b3,id:_0x38da2b}=this['_splitMarkerName'](_0x2d6ea4);if('suggestion'!==_0x32f57c)continue;const _0x1d24ff=this['_suggestions']['get'](_0x38da2b);if(null!=_0x4f219d['newRange']){'formatInline'==_0x5a934d&&(_0x3bae6f=_0x3bae6f||Ut(_0x4f219d['newRange'],_0x2d6ea4,_0x456745,_0x3332ae['model']['schema']));const _0x3081eb='attribute'==_0x5a934d&&this['_isBlockAttribute'](_0x3de4b3['split']('|')[0x0]);if(_0x4f219d['newRange']['isCollapsed']||'$graveyard'==_0x4f219d['newRange']['root']['rootName']||'formatBlock'==_0x5a934d&&!Gt(_0x4f219d['newRange'])||_0x3081eb&&!Gt(_0x4f219d['newRange'])||'deletion'==_0x5a934d&&!(!Vt(_0x1f66a5=_0x4f219d['newRange'])&&!function(_0x57c0f9){return _0x57c0f9['start']['parent']==_0x57c0f9['end']['nodeBefore']&&_0x57c0f9['start']['isAtEnd'];}(_0x1f66a5)))_0x456745['removeMarker'](_0x2d6ea4),_0x3bae6f=!0x0;else{if(!_0x1d24ff||!_0x1d24ff['isInContent'])continue;if(_0x4f219d['newRange']&&_0x4f219d['oldRange']&&_0x4f219d['newRange']['isEqual'](_0x4f219d['oldRange']))continue;_0x32670d['add'](_0x1d24ff);}}}var _0x1f66a5;return _0x32670d['size']>0x0&&(_0x3bae6f=!!this['_joinWithAdjacentSuggestions'](_0x32670d)||_0x3bae6f),_0x3bae6f;}),_0x3332ae['model']['document']['registerPostFixer'](_0x2aaf32=>{let _0x42bcb9=!0x1;for(const _0x139033 of _0x3332ae['model']['document']['differ']['getChanges']())if('insert'==_0x139033['type'])for(const _0x3d94f4 of this['_suggestions']['values']()){if(_0x3d94f4['isMultiRange']||!_0x3d94f4['isInContent'])continue;const _0x78a7d1='formatBlock'==_0x3d94f4['type'],_0x47c4c1=this['_getAttributeKey'](_0x3d94f4),_0x3f8839=_0x47c4c1&&this['_isBlockAttribute'](_0x47c4c1);if(!_0x78a7d1&&!_0x3f8839)continue;const _0x18152a=_0x3d94f4['getFirstRange']();if(_0x18152a['start']['parent']!=_0x18152a['end']['parent']&&!_0x18152a['end']['isAtEnd']){const _0x143df8=_0x3332ae['model']['createPositionAt'](_0x18152a['start']['nodeAfter'],'end'),_0x3e2292=_0x3332ae['model']['createRange'](_0x18152a['start'],_0x143df8);_0x2aaf32['updateMarker'](_0x3d94f4['getFirstMarker'](),{'range':_0x3e2292}),_0x42bcb9=!0x0;}}return _0x42bcb9;}),_0x3332ae['model']['document']['registerPostFixer'](_0x50672e=>this['_processAttributeChanges'](_0x50672e)),_0x3332ae['model']['document']['registerPostFixer'](_0x53a56c=>!_0x53a56c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53a56c)),_0x3332ae['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3332ae['model']['document']['on']('change:data',(_0x286401,_0x129f5d)=>{if(!_0x129f5d['isLocal']||_0x129f5d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a9428=_0x3332ae['model']['document']['differ']['getChanges']();if(0x0==_0x3a9428['length'])return;const _0x2fbcd0=[],_0x425146=_0x3a9428['filter'](_0x37315f=>'attribute'==_0x37315f['type']),_0x49115c=_0x3a9428['filter'](_0x86bed6=>'insert'==_0x86bed6['type']&&'$text'!=_0x86bed6['name']);for(const _0xaed322 of _0x425146)this['_isRegisteredAttribute'](_0xaed322['attributeKey'])&&_0x2fbcd0['push']({'key':_0xaed322['attributeKey'],'newValue':_0xaed322['attributeNewValue'],'oldValue':_0xaed322['attributeOldValue'],'range':Ft(_0xaed322['range'],_0x3332ae['model'])});for(const _0x22d472 of _0x49115c){if('rename'!=_0x22d472['action']&&'refresh'!=_0x22d472['action'])continue;const _0x59429a=Lt(_0x22d472['position']['nodeAfter'],_0x3332ae['model']),_0x36651e=_0x22d472['before'];'rename'==_0x22d472['action']&&_0x2fbcd0['push']({'key':m,'newValue':_0x22d472['name'],'oldValue':_0x36651e['name'],'range':_0x59429a});for(const [_0x47f146,_0x425377]of _0x36651e['attributes']){if(!this['_isRegisteredAttribute'](_0x47f146))continue;const _0x5acc1c=_0x22d472['attributes']['get'](_0x47f146);_0x425377!==_0x5acc1c&&_0x2fbcd0['push']({'key':_0x47f146,'newValue':_0x5acc1c,'oldValue':_0x425377,'range':_0x59429a});}for(const [_0x302999,_0x5d98ab]of _0x22d472['attributes'])this['_isRegisteredAttribute'](_0x302999)&&(_0x36651e['attributes']['has'](_0x302999)||_0x2fbcd0['push']({'key':_0x302999,'newValue':_0x5d98ab,'oldValue':null,'range':_0x59429a}));}0x0!=_0x2fbcd0['length']&&_0x3332ae['model']['enqueueChange'](_0x129f5d,_0x25aa39=>{const _0x29a462=_0x31d1bc();for(const {range:_0x6ba546,key:_0x322f6a,oldValue:_0x4245cb,newValue:_0x22a48b}of _0x2fbcd0)this['markAttributeChange'](_0x6ba546,_0x322f6a,_0x4245cb,_0x22a48b,{'groupId':_0x29a462});this['_reduceExistingSuggestions'](_0x25aa39,_0x2fbcd0);});},{'priority':'lowest'}),_0x3332ae['model']['markers']['on']('update:suggestion',(_0x432fc2,_0x3cfd40,_0x3c9edf)=>{if(null==_0x3c9edf){const {id:_0x43c7ef}=this['_splitMarkerName'](_0x3cfd40['name']),_0x541cd3=this['_suggestions']['get'](_0x43c7ef);_0x541cd3&&_0x541cd3['addMarkerName'](_0x3cfd40['name']);}}),_0x3332ae['model']['document']['on']('change:data',()=>{const _0x329206=Array['from'](_0x3332ae['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31f751=>'suggestion'===this['_splitMarkerName'](_0x31f751['name'])['group']);if(0x0===_0x329206['length'])return;_0x329206['sort']((_0x27f059,_0x3bee1d)=>{const _0x4d80aa=_0x27f059['data']['oldRange'],_0x1c878f=_0x3bee1d['data']['oldRange'];return null===_0x4d80aa&&null===_0x1c878f?0x0:null===_0x4d80aa&&null!==_0x1c878f?-0x1:null!==_0x4d80aa&&null===_0x1c878f?0x1:_0x4d80aa['start']['isBefore'](_0x1c878f['start'])?-0x1:0x1;});const _0x3ce501=new Set(),_0x2c2563=new Set();for(const {name:_0x494cad,data:_0x22c87d}of _0x329206){const {id:_0x47dd91}=this['_splitMarkerName'](_0x494cad);if(null===_0x22c87d['oldRange']){const _0x50fbd7=this['_handleNewSuggestionMarker'](_0x494cad);_0x2c2563['add'](_0x50fbd7);}else{const _0xb69be1=this['_suggestions']['get'](_0x47dd91);null!==_0x22c87d['newRange']||_0xb69be1['isInContent']?(_0x3ce501['add'](_0xb69be1['head']),_0x2c2563['add'](_0xb69be1)):this['_removeSuggestion'](_0xb69be1);}}_0x2c2563['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c2563);for(const _0x4c3648 of _0x3ce501)this['fire']('suggestionChanged',_0x4c3648);}),_0x3332ae['model']['on']('applyOperation',(_0xe4ab68,_0x1cb530)=>{const _0x58959d=_0x1cb530[0x0];if(!this['_suggestions']['size'])return;if(!_0x58959d['isDocumentOperation'])return;if(_0x58959d['batch']['isUndo']||!_0x58959d['batch']['isLocal'])return;let _0x41b883,_0x9816d6;switch(_0x58959d['type']){case'insert':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['position']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;case'split':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['splitPosition']),_0x9816d6=_0x3332ae['model']['createPositionAt'](_0x58959d['moveTargetPosition']);break;case'move':_0x41b883=_0x3332ae['model']['createPositionAt'](_0x58959d['targetPosition']),_0x9816d6=_0x41b883['getShiftedBy'](_0x58959d['howMany']);break;default:return;}const _0x2572d7=_0x3332ae['model']['createRange'](_0x41b883,_0x9816d6);_0x3332ae['model']['change'](()=>{for(const {suggestion:_0x555dd0,meta:_0x516c1c}of this['_findSuggestions'](_0x2572d7)){if(_0x555dd0['isMultiRange'])continue;if('formatInline'==_0x555dd0['type'])continue;const _0xc3365e=this['_getAttributeKey'](_0x555dd0);if(_0xc3365e&&this['_isBlockAttribute'](_0xc3365e)&&'split'!=_0x58959d['type'])continue;const _0x26ce18=_0x555dd0['data']&&_0x555dd0['data']['multipleBlocks'];('formatBlock'!=_0x555dd0['type']||'split'==_0x58959d['type']&&!_0x26ce18)&&(_0x516c1c['containsRangeInObject']||'insertion'==_0x555dd0['type']&&_0x516c1c['isOwn']||_0x555dd0['getFirstRange']()['containsRange'](_0x2572d7)&&this['_breakSuggestionMarker'](_0x555dd0,_0x41b883,_0x9816d6));}});},{'priority':'lowest'}),_0x3332ae['model']['on']('deleteContent',(_0x542637,_0x249bc6)=>{const _0x33d465=_0x249bc6[0x0],_0x32e37b=_0x249bc6[0x1];if(_0x32e37b&&_0x32e37b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33d465['isCollapsed'])return;const _0x58ec7a=_0x3332ae['model']['schema'],{start:_0x3d4318,end:_0x3c197d}=_0x33d465['getFirstRange'](),_0x3849fd=_0x3d4318['nodeAfter']&&_0x58ec7a['isLimit'](_0x3d4318['nodeAfter'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3d4318,'forward'),_0x497165=_0x3c197d['nodeBefore']&&_0x58ec7a['isLimit'](_0x3c197d['nodeBefore'])?null:_0x58ec7a['getNearestSelectionRange'](_0x3c197d,'backward'),_0x3a3c72=_0x3332ae['model']['createRange'](_0x3849fd?_0x3849fd['start']:_0x3d4318,_0x497165?_0x497165['end']:_0x3c197d);_0x3332ae['model']['change'](_0x2431de=>{this['markDeletion'](_0x3a3c72);const _0x4f48ec=_0x3332ae['model']['schema']['getNearestSelectionRange'](_0x3a3c72['start']);_0x33d465['is']('documentSelection')?_0x2431de['setSelection'](_0x4f48ec):_0x33d465['setTo'](_0x4f48ec);}),_0x542637['stop']();},{'priority':_0x3a7800['normal']+0xa}),_0x3332ae['model']['on']('insertContent',(_0x38f694,_0x48da9b)=>{const _0x34e028=_0x48da9b[_0x48da9b['length']-0x1];_0x34e028&&_0x34e028['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3332ae['model']['change'](()=>{let _0x584ae2=_0x3332ae['model']['insertContent'](_0x48da9b[0x0],_0x48da9b[0x1],_0x48da9b[0x2],{'forceDefaultExecution':!0x0});if(!_0x584ae2)return;_0x38f694['return']=_0x584ae2['clone']();const _0x1e2365=_0x584ae2['end']['nodeBefore'],_0x5789f0=_0x3332ae['model']['schema'];_0x1e2365&&_0x5789f0['isBlock'](_0x1e2365)&&!_0x5789f0['isObject'](_0x1e2365)&&(_0x584ae2=_0x3332ae['model']['createRange'](_0x584ae2['start'],_0x3332ae['model']['createPositionAt'](_0x1e2365,'end'))),this['markInsertion'](_0x584ae2);}),_0x38f694['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x199b83=new x(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('acceptSuggestion',_0x199b83),this['enableCommand']('acceptSuggestion');const _0x4e23b2=new O(_0x3332ae,this['_suggestions']);_0x3332ae['commands']['add']('discardSuggestion',_0x4e23b2),this['enableCommand']('discardSuggestion'),_0x3332ae['commands']['add']('acceptAllSuggestions',new R(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3332ae['commands']['add']('discardAllSuggestions',new R(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3332ae['commands']['add']('acceptSelectedSuggestions',new E(_0x3332ae,_0x199b83,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3332ae['commands']['add']('discardSelectedSuggestions',new E(_0x3332ae,_0x4e23b2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xb4f1eb=_0x3332ae['plugins']['get']('CommentsRepository');this['listenTo'](_0xb4f1eb,'addComment',(_0x23a961,{threadId:_0x557f48})=>{const _0x5c75dd=this['_suggestions']['get'](_0x557f48);_0x5c75dd&&_0x5c75dd['commentThread']&&0x1===_0x5c75dd['commentThread']['length']&&this['_updateSuggestionData'](_0x557f48,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xb4f1eb,'removeComment',(_0x2b5210,{threadId:_0x308150})=>{const _0x3fe383=this['_suggestions']['get'](_0x308150);_0x3fe383&&_0x3fe383['commentThread']&&!_0x3fe383['commentThread']['length']&&this['_updateSuggestionData'](_0x308150,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5dec36){if(this['_adapter'])throw new _0x2f735b('track-changes-adapter-already-set',this);this['_adapter']=_0x5dec36;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x263083=!0x1,toJSON:_0x284855=!0x1}={}){const _0x742040=[];for(const _0x27dbea of this['_suggestions']['values']())_0x263083&&!_0x27dbea['isInContent']||_0x742040['push'](_0x27dbea);return _0x284855?_0x742040['map'](_0x1f8c1d=>_0x1f8c1d['toJSON']()):_0x742040;}['getSuggestion'](_0x2d2e7a){const _0xa0f3f4=this['_suggestions']['get'](_0x2d2e7a);if(!_0xa0f3f4)throw new _0x2f735b('track-changes-suggestion-not-found',this);return _0xa0f3f4;}['hasSuggestion'](_0x6fbd1f){return this['_suggestions']['has'](_0x6fbd1f);}['addSuggestionData'](_0x1dca27){const {authorId:_0x394cb5,id:_0x11518b,attributes:_0x2c1065}=_0x1dca27,[_0x4ce7b1,_0x5b57da]=_0x1dca27['type']['split'](':'),_0x188806=this['_suggestions']['get'](_0x11518b)||this['_createSuggestion'](_0x4ce7b1,_0x5b57da,_0x11518b,_0x394cb5,_0x2c1065);if(this['_addThreadToSuggestion'](_0x188806),this['_checkSuggestionCorrectness'](_0x188806,_0x4ce7b1,_0x5b57da||null,_0x394cb5),_0x188806['createdAt']=_0x1dca27['createdAt'],_0x188806['_isDataLoaded']=!0x0,_0x2c1065&&_0x2c1065['@external']){const _0x918b0a=_0x2c1065['@external'],_0x4b0351=this['_getExternalAuthor'](_0x918b0a['authorName']);_0x188806['authoredAt']=_0x918b0a['createdAt'],_0x188806['author']=_0x4b0351,_0x188806['isExternal']=!0x0;}else _0x188806['authoredAt']=_0x1dca27['createdAt'];switch(_0x1dca27['data']&&(_0x188806['data']=_0x1dca27['data']),_0x1dca27['attributes']&&(_0x188806['attributes']=_0x1dca27['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x188806['_saved']=!0x0),this['_suggestionState']['get'](_0x188806)){case'notReady':this['_suggestionState']['set'](_0x188806,'dataReady');break;case'markerReady':_0x188806['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x188806])),this['_refreshSuggestionsChain'](new Set([_0x188806])),this['_suggestionState']['set'](_0x188806,'ready'),this['fire']('suggestionLoaded',_0x188806)):this['_suggestionState']['set'](_0x188806,'removed');}return _0x188806;}['acceptSuggestion'](_0x145b7e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46d27e of _0x145b7e['getAllAdjacentSuggestions']())_0x46d27e['accept']();});});}['discardSuggestion'](_0x4ce958){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2acb3d of _0x4ce958['getAllAdjacentSuggestions']())_0x2acb3d['discard']();});});}['enableCommand'](_0x2e1df9,_0x4a2240){const _0x13bbd3=this['editor']['commands']['get'](_0x2e1df9);if(!_0x13bbd3)throw new _0x2f735b('track-changes-command-not-found',this,{'commandName':_0x2e1df9});if(this['_enabledCommands']['has'](_0x13bbd3))throw new _0x2f735b('track-changes-enable-command-twice',this,{'commandName':_0x2e1df9});this['_enabledCommands']['add'](_0x13bbd3),_0x4a2240&&_0x13bbd3['on']('execute',(_0x5a0861,_0x19b1e9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x19b1e9['length']>0x0&&_0x19b1e9[_0x19b1e9['length']-0x1]&&_0x19b1e9[_0x19b1e9['length']-0x1]['forceDefaultExecution']?_0x19b1e9['pop']():(_0x5a0861['return']=_0x4a2240((..._0x11b696)=>_0x13bbd3['execute'](..._0x11b696,{'forceDefaultExecution':!0x0}),..._0x19b1e9),_0x5a0861['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5202b8){let _0x3e372f,_0x56a145;const _0x2d9a73=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e372f=_0x5202b8();}catch(_0x6dfd90){_0x56a145=_0x6dfd90;}return _0x2d9a73||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56a145&&_0x2f735b['rethrowUnexpectedError'](_0x56a145,this),_0x3e372f;}['markInsertion'](_0xac9b40,_0x6ca3e6=null,_0x4dd0b6={}){if(_0xac9b40['isCollapsed'])return null;const _0xd418af=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4b8be4,meta:_0x2ece7a}of this['_findSuggestions'](_0xac9b40,'insertion'))if(_0x2ece7a['isOwn']){if(!_0x2ece7a['isNextTo']){if(_0x2ece7a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4b8be4,_0x4dd0b6))continue;return _0x4b8be4;}if(qt(_0x4b8be4,_0x4dd0b6))return _0x4b8be4;this['_breakSuggestionMarker'](_0x4b8be4,_0xac9b40['start'],_0xac9b40['end']);break;}if(_0x6ca3e6==_0x4b8be4['subType']&&qt(_0x4b8be4,_0x4dd0b6)){const _0xb8f90e=_0x4b8be4['getFirstRange']();return _0xb8f90e['start']['isEqual'](_0xac9b40['end'])?this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xac9b40['start'],_0xb8f90e['end'])):this['_setSuggestionRange'](_0x4b8be4,this['_model']['createRange'](_0xb8f90e['start'],_0xac9b40['end'])),_0x4b8be4;}}const _0x3d1b35=_0x31d1bc(),_0x5b21af=_0xd418af['id'],_0x275e65=_0x6ca3e6?'insertion:'+_0x6ca3e6:'insertion',_0x1a13d3=this['_setSuggestionData']({'id':_0x3d1b35,'type':_0x275e65,'createdAt':new Date(),'authorId':_0x5b21af,'attributes':_0x4dd0b6});return this['_addSuggestionMarker'](_0x275e65,_0x3d1b35,_0x5b21af,_0xac9b40),_0x1a13d3;}['markMultiRangeInsertion'](_0x1d1059,_0xa32680='multi',_0x50d599={}){const _0x529c17=this['editor']['plugins']['get']('Users')['me'],_0x336c36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa32680,'join');for(const _0x40dfda of this['getSuggestions']())if(_0x40dfda['author']['id']==_0x529c17['id']&&'insertion'==_0x40dfda['type']&&_0x40dfda['subType']==_0xa32680&&qt(_0x40dfda,_0x50d599)&&(_0x336c36(_0x40dfda['getRanges'](),_0x1d1059)||_0x336c36(_0x1d1059,_0x40dfda['getRanges']()))){for(const _0x20bdf of _0x1d1059)_0x40dfda['addRange'](_0x20bdf);return _0x40dfda;}for(const {suggestion:_0x100d24,meta:_0xa923bb}of this['_findSuggestions'](_0x1d1059,'insertion')){if(!_0xa923bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa923bb['containsRangeInObject'])continue;if(!qt(_0x100d24,_0x50d599))continue;let _0x4336e8=!0x0;for(const _0xefdf64 of _0x100d24['getRanges']())for(const _0x406beb of _0x1d1059)if(!_0xefdf64['containsRange'](_0x406beb)){_0x4336e8=!0x1;break;}if(_0x4336e8)return _0x100d24;}const _0x13f186=_0x31d1bc(),_0x57b8bf=_0x529c17['id'],_0xb41011='insertion:'+_0xa32680,_0x4313f1=this['_setSuggestionData']({'id':_0x13f186,'type':_0xb41011,'createdAt':new Date(),'authorId':_0x57b8bf,'attributes':_0x50d599});for(const _0x4cb3c5 of _0x1d1059)this['_addSuggestionMarker'](_0xb41011,_0x13f186,_0x57b8bf,_0x4cb3c5,u['getMultiRangeId']());return _0x4313f1;}['markInlineFormat'](_0x3a3965,_0x86d1b7,_0x44cad4=null,_0xd20eb9={}){if(_0x44cad4=_0x44cad4||Pt(_0x86d1b7),_0x3a3965['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xf0a5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');return this['forceDefaultExecution'](()=>_0xf0a5c([_0x3a3965],_0x86d1b7,_0xd20eb9)),null;}const _0x3603b8=this['editor']['plugins']['get']('Users')['me'],_0x38a03e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f6173,meta:_0x172be8}of this['_findSuggestions'](_0x3a3965,'insertion'))_0x172be8['isOwn']&&!_0x172be8['isInsideObject']&&_0x38a03e['push'](..._0x3f6173['getRanges']());}const _0x5dc2c6=function(_0x4a2e6c,_0x3c43df){const _0x1dd9dd=[];for(const _0x64c80b of _0x3c43df){const _0xf62806=_0x4a2e6c['getIntersection'](_0x64c80b);_0xf62806&&_0x1dd9dd['push'](_0xf62806);}return _0x1dd9dd;}(_0x3a3965,_0x38a03e),_0x273da0=function(_0x2d9c5a,_0x5af88d){const _0x6017e5=[_0x2d9c5a];for(const _0x21b761 of _0x5af88d){let _0x54ebb2=0x0;for(;_0x54ebb2<_0x6017e5['length'];){const _0x22093b=_0x6017e5[_0x54ebb2]['getDifference'](_0x21b761);_0x6017e5['splice'](_0x54ebb2,0x1,..._0x22093b),_0x54ebb2+=_0x22093b['length'];}}return _0x6017e5;}(_0x3a3965,_0x38a03e);_0x5dc2c6['length']&&this['_model']['change'](()=>{for(const _0x211286 of _0x5dc2c6){const _0x2b37d3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x44cad4,'accept');this['forceDefaultExecution'](()=>_0x2b37d3([_0x211286],_0x86d1b7,_0xd20eb9));}});for(const _0x38428d of _0x273da0){let _0x50cc21=null,_0x10e9a8=_0x38428d['start'],_0x338b11=_0x38428d['end'];for(const {suggestion:_0x1143f6,meta:_0x1a3a6f}of this['_findSuggestions'](_0x38428d,'formatInline')){if(!_0x1a3a6f['isOwn'])continue;if(_0x1143f6['subType']!=_0x44cad4)continue;if(!qt(_0x1143f6,_0xd20eb9))continue;const _0x2edc28=_0x1143f6['getFirstRange']();if(_0x2edc28['containsRange'](_0x38428d,!0x0))return null;_0x10e9a8=_0x10e9a8['isBefore'](_0x2edc28['start'])?_0x10e9a8:_0x2edc28['start'],_0x338b11=_0x338b11['isAfter'](_0x2edc28['end'])?_0x338b11:_0x2edc28['end'],_0x50cc21?_0x2edc28['start']['isBefore'](_0x50cc21['getFirstRange']()['start'])?(_0x50cc21['removeMarkers'](),_0x50cc21=_0x1143f6):_0x1143f6['removeMarkers']():_0x50cc21=_0x1143f6;}const _0x2c5884=this['_model']['createRange'](_0x10e9a8,_0x338b11);if(_0x50cc21)this['_setSuggestionRange'](_0x50cc21,_0x2c5884);else{const _0x5f7326=_0x31d1bc(),_0x163dad=_0x3603b8['id'];this['_setSuggestionData']({'id':_0x5f7326,'type':'formatInline:'+_0x44cad4,'data':_0x86d1b7,'createdAt':new Date(),'authorId':_0x163dad,'attributes':_0xd20eb9}),this['_addSuggestionMarker']('formatInline:'+_0x44cad4,_0x5f7326,_0x163dad,_0x2c5884);}}return null;}['markBlockFormat'](_0x45b4df,_0xb5c856,_0x25bdb7=[],_0x80e741=null,_0x16a69f={}){_0xb5c856['formatGroupId']||(_0xb5c856['formatGroupId']=_0xb5c856['commandName']),_0xb5c856['multipleBlocks']=_0x45b4df['is']('range'),_0x80e741=_0x80e741||Pt(_0xb5c856);const _0x490fe9=_0x25bdb7['map'](_0x415fdf=>Lt(_0x415fdf,this['_model'])),_0x2f3cdd=_0x45b4df['is']('range')?_0x45b4df:Lt(_0x45b4df,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dd0aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x4dd0aa([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}_0x490fe9['push'](_0x2f3cdd);let _0x4e68b4=!0x0;for(const _0x18ee1b of _0x490fe9)if(!this['_rangeIsInLocalUserInsertion'](_0x18ee1b)){_0x4e68b4=!0x1;break;}if(_0x4e68b4&&'always'!==this['_trackFormatChanges']){const _0x1a4d10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80e741,'accept');return this['forceDefaultExecution'](()=>_0x1a4d10([_0x2f3cdd],_0xb5c856,_0x16a69f)),null;}let _0x19c74c=null,_0x271ea9=_0x2f3cdd['start'],_0x6447bb=_0x2f3cdd['end'];for(const {suggestion:_0x1a8426,meta:_0x32caf8}of this['_findSuggestions'](_0x2f3cdd,'formatBlock')){if(!_0x32caf8['isOwn'])continue;if(_0x32caf8['isNextTo']||_0x32caf8['containsRangeInObject']||_0x32caf8['isInsideObject'])continue;if(_0x1a8426['data']['formatGroupId']!=_0xb5c856['formatGroupId'])continue;if(!qt(_0x1a8426,_0x16a69f))continue;const _0x5a768f=_0x1a8426['getFirstRange']();if(_0x1a8426['subType']==_0x80e741){if(_0x5a768f['containsRange'](_0x2f3cdd,!0x0))return null;_0x271ea9=_0x271ea9['isBefore'](_0x5a768f['start'])?_0x271ea9:_0x5a768f['start'],_0x6447bb=_0x6447bb['isAfter'](_0x5a768f['end'])?_0x6447bb:_0x5a768f['end'],_0x19c74c?_0x5a768f['start']['isBefore'](_0x19c74c['getFirstRange']()['start'])?(_0x19c74c['removeMarkers'](),_0x19c74c=_0x1a8426):_0x1a8426['removeMarkers']():_0x19c74c=_0x1a8426;}else{const _0x3aaf9a=_0x2f3cdd['getIntersection'](_0x5a768f);this['_cutOutSuggestionMarker'](_0x1a8426,_0x3aaf9a);}}const _0x5e18d4=this['editor']['plugins']['get']('Users')['me'],_0x30acc5=_0x31d1bc(),_0x57399b=_0x5e18d4['id'];if(_0x19c74c)return this['_setSuggestionRange'](_0x19c74c,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x19c74c;{const _0x5505eb=this['_setSuggestionData']({'id':_0x30acc5,'type':'formatBlock:'+_0x80e741,'data':_0xb5c856,'createdAt':new Date(),'authorId':_0x57399b,'attributes':_0x16a69f});return this['_addSuggestionMarker']('formatBlock:'+_0x80e741,_0x30acc5,_0x57399b,this['_model']['createRange'](_0x271ea9,_0x6447bb)),_0x5505eb;}}['markMultiRangeBlockFormat'](_0x3a6fc5,_0x4b10cc,_0x5cfc34=[],_0x3408a0=null,_0x4ffb9a={}){_0x4b10cc['formatGroupId']||(_0x4b10cc['formatGroupId']=_0x4b10cc['commandName']);const _0x7322a0=_0x3a6fc5[0x0];_0x4b10cc['multipleBlocks']=_0x7322a0['is']('range'),_0x3408a0=_0x3408a0||Pt(_0x4b10cc);const _0x9d076d=_0x5cfc34['map'](_0x16f2da=>Lt(_0x16f2da,this['_model'])),_0x152c27=_0x7322a0['is']('range')?_0x3a6fc5:_0x3a6fc5['map'](_0x28c1cc=>Lt(_0x28c1cc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x48dcf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0x48dcf6(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}_0x9d076d['push'](..._0x152c27);let _0x2c308b=!0x0;for(const _0x406028 of _0x9d076d)if(!this['_rangeIsInLocalUserInsertion'](_0x406028)){_0x2c308b=!0x1;break;}if(_0x2c308b&&'always'!==this['_trackFormatChanges']){const _0xac4280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'accept');return this['forceDefaultExecution'](()=>_0xac4280(_0x152c27,_0x4b10cc,_0x4ffb9a)),null;}const _0x26e584=this['editor']['plugins']['get']('Users')['me'];for(const _0x554488 of this['getSuggestions']()){if(_0x554488['author']['id']!=_0x26e584['id'])continue;if('formatBlock'!=_0x554488['type']||_0x554488['data']['formatGroupId']!=_0x4b10cc['formatGroupId'])continue;if(!qt(_0x554488,_0x4ffb9a))continue;const _0x11d3ca=_0x554488['subType']==_0x3408a0;for(let _0xa4abac=0x0;_0xa4abac<_0x152c27['length'];_0xa4abac++){const _0x2d094c=_0x152c27[_0xa4abac];for(const _0x4cb651 of _0x554488['getMarkers']()){const _0x6fe6d0=_0x4cb651['getRange']();if(_0x2d094c['isEqual'](_0x6fe6d0)){_0x11d3ca?(_0x152c27['splice'](_0xa4abac,0x1),_0xa4abac--):_0x554488['removeMarker'](_0x4cb651['name']);break;}}}}if(0x0==_0x152c27['length'])return null;const _0x18bd42=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3408a0,'join');for(const _0x4e23a2 of this['getSuggestions']())if(_0x4e23a2['author']['id']==_0x26e584['id']&&'formatBlock'==_0x4e23a2['type']&&_0x4e23a2['data']['formatGroupId']==_0x4b10cc['formatGroupId']&&_0x4e23a2['subType']==_0x3408a0&&qt(_0x4e23a2,_0x4ffb9a)&&(_0x18bd42(_0x4e23a2['getRanges'](),_0x152c27)||_0x18bd42(_0x152c27,_0x4e23a2['getRanges']()))){for(const _0x53a32d of _0x152c27)_0x4e23a2['addRange'](_0x53a32d);return _0x4e23a2;}const _0x210e3a=_0x31d1bc(),_0x56cc2c=_0x26e584['id'],_0x2a026b='formatBlock:'+_0x3408a0,_0xf92b07=this['_setSuggestionData']({'id':_0x210e3a,'type':_0x2a026b,'data':_0x4b10cc,'createdAt':new Date(),'authorId':_0x56cc2c,'attributes':_0x4ffb9a});for(const _0x362ccd of _0x152c27)this['_addSuggestionMarker'](_0x2a026b,_0x210e3a,_0x56cc2c,_0x362ccd,u['getMultiRangeId']());return _0xf92b07;}['markDeletion'](_0x24f5ee,_0x1a0019=null,_0x2266ed={}){if(_0x24f5ee['isCollapsed'])return null;const _0x1f83f9=this['editor']['plugins']['get']('Users')['me'],_0x13abe3=new _0x1eeee4(_0x24f5ee['start'],_0x24f5ee['end']);for(const {suggestion:_0x4b76d9,meta:_0x5f5848}of this['_findSuggestions'](_0x13abe3,'insertion'))if(_0x5f5848['isOwn']&&!_0x5f5848['isNextTo']){if(_0x4b76d9['isMultiRange']){const _0x377a28=_0x4b76d9['getRanges']()['filter'](_0x52ee57=>'$graveyard'!=_0x52ee57['root']['rootName']);_0x377a28['every'](_0x1ee4f4=>_0x13abe3['containsRange'](_0x1ee4f4,!0x0))&&_0x4b76d9['discard']();if(_0x377a28['some'](_0x5ba360=>_0x5ba360['containsRange'](_0x13abe3,!0x0))){const _0x4fbff3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a0019,'accept');return this['forceDefaultExecution'](()=>_0x4fbff3([_0x13abe3],null,_0x2266ed)),null;}}else{const _0xf402b9=_0x13abe3['getIntersection'](_0x4b76d9['getFirstRange']());null!==_0xf402b9&&_0x4b76d9['_onDiscard']([_0xf402b9],null,_0x2266ed);}}if(_0x13abe3['detach'](),_0x13abe3['isCollapsed']||'$graveyard'==_0x13abe3['root']['rootName'])return null;let _0x50949c=null,_0x173a16=_0x13abe3['start'],_0x30aabe=_0x13abe3['end'];const _0x5254ed=this['_findSuggestions'](_0x13abe3,'deletion');for(const {suggestion:_0x1b5850,meta:_0x3f867c}of _0x5254ed){const _0x12efeb=this['_model']['createRange'](_0x173a16,_0x30aabe);if(_0x3f867c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f867c['containsRangeInObject']&&!_0x3f867c['isInsideObject'])){if(_0x1b5850['isMultiRange']){if(!qt(_0x1b5850,_0x2266ed))continue;let _0x1b721a=!0x0;for(const _0x1bf415 of _0x1b5850['getRanges']()){if(_0x1bf415['containsRange'](_0x12efeb,!0x0))return _0x1b5850;_0x12efeb['containsRange'](_0x1bf415)||(_0x1b721a=!0x1);}_0x1b721a&&_0x1b5850['discard']();}else{const _0x47a480=_0x1b5850['getFirstRange']();if(_0x47a480['containsRange'](_0x12efeb,!0x0))return _0x1b5850;if(!qt(_0x1b5850,_0x2266ed)){_0x12efeb['containsRange'](_0x47a480)?_0x1b5850['removeMarkers']():_0x47a480['containsPosition'](_0x173a16)?_0x173a16=_0x47a480['end']:_0x47a480['containsPosition'](_0x30aabe)&&(_0x30aabe=_0x47a480['start']);continue;}_0x173a16=_0x173a16['isBefore'](_0x47a480['start'])?_0x173a16:_0x47a480['start'],_0x30aabe=_0x30aabe['isAfter'](_0x47a480['end'])?_0x30aabe:_0x47a480['end'],_0x2266ed=Object['assign']({},_0x1b5850['attributes']),_0x50949c?_0x47a480['start']['isBefore'](_0x50949c['getFirstRange']()['start'])?(_0x50949c['removeMarkers'](),_0x50949c=_0x1b5850):_0x1b5850['removeMarkers']():_0x50949c=_0x1b5850;}}}if(_0x50949c)return this['_setSuggestionRange'](_0x50949c,this['_model']['createRange'](_0x173a16,_0x30aabe)),_0x50949c;{const _0x4bdef2=_0x31d1bc(),_0x30ddd7=this['_model']['createRange'](_0x173a16,_0x30aabe),_0x2b0076=_0x1f83f9['id'],_0x1daf36=_0x1a0019?'deletion:'+_0x1a0019:'deletion',_0xef01a8=this['_setSuggestionData']({'id':_0x4bdef2,'type':_0x1daf36,'createdAt':new Date(),'authorId':_0x2b0076,'attributes':_0x2266ed});return this['_addSuggestionMarker'](_0x1daf36,_0x4bdef2,_0x2b0076,_0x30ddd7),_0xef01a8;}}['markMultiRangeDeletion'](_0x502c08,_0x2484cc='multi',_0x37cd8b={}){const _0x1518d4=this['editor']['plugins']['get']('Users')['me'],_0x277d2f=_0x502c08['map'](_0x8a66a2=>new _0x1eeee4(_0x8a66a2['start'],_0x8a66a2['end'])),_0x4e7942=new Set();for(const {suggestion:_0xb60d40,meta:_0x3e8aeb}of this['_findSuggestions'](_0x277d2f,'insertion'))_0x3e8aeb['isOwn']&&!_0x3e8aeb['isNextTo']&&_0x4e7942['add'](_0xb60d40);for(const _0x2b573b of _0x4e7942)if(_0x2b573b['isMultiRange']){const _0x5a9bac=_0x2b573b['getRanges']();(!_0x2b573b['attributes']||!_0x2b573b['attributes']['skipNestingCheck'])&&(_0x5a9bac['every'](_0x3d27f0=>_0x277d2f['some'](_0xe324bb=>_0xe324bb['containsRange'](_0x3d27f0,!0x0)))&&_0x2b573b['discard']());if(_0x277d2f['every'](_0x258b0d=>_0x5a9bac['some'](_0x59726a=>_0x59726a['containsRange'](_0x258b0d,!0x0)))){const _0x44635e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x44635e(_0x502c08,null,_0x37cd8b)),null;}}else{const _0x128429=_0x2b573b['getFirstRange']();_0x277d2f['some'](_0x34e8fe=>_0x34e8fe['containsRange'](_0x128429,!0x0))&&_0x2b573b['discard']();if(_0x277d2f['every'](_0x247cb9=>_0x128429['containsRange'](_0x247cb9,!0x0))){const _0x2ed7ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'accept');return this['forceDefaultExecution'](()=>_0x2ed7ba(_0x277d2f,null,_0x37cd8b)),null;}}const _0x225ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2484cc,'join');let _0x4bfad0=null;for(const _0x3ecc2d of this['getSuggestions']())if(_0x3ecc2d['author']['id']==_0x1518d4['id']&&_0x3ecc2d['isInContent']&&'deletion'==_0x3ecc2d['type']&&_0x3ecc2d['subType']==_0x2484cc&&qt(_0x3ecc2d,_0x37cd8b)&&(_0x225ffb(_0x3ecc2d['getRanges'](),_0x277d2f)||_0x225ffb(_0x277d2f,_0x3ecc2d['getRanges']()))){if(_0x4bfad0){if(_0x3ecc2d['commentThread']&&_0x3ecc2d['commentThread']['length'])continue;for(const _0x11cd91 of _0x3ecc2d['getRanges']())_0x4bfad0['isIntersectingWithRange'](_0x11cd91)||_0x4bfad0['addRange'](_0x11cd91);_0x3ecc2d['removeMarkers']();}else{_0x4bfad0=_0x3ecc2d;for(const _0x3afdbb of _0x277d2f)_0x3ecc2d['isIntersectingWithRange'](_0x3afdbb)||_0x3ecc2d['addRange'](_0x3afdbb);}}if(_0x4bfad0)return _0x4bfad0;_0x4e7942['clear']();for(const {suggestion:_0x5e14f6,meta:_0x57e430}of this['_findSuggestions'](_0x277d2f,'deletion'))_0x57e430['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e430['containsRangeInObject']&&!_0x57e430['isInsideObject'])&&qt(_0x5e14f6,_0x37cd8b)&&_0x4e7942['add'](_0x5e14f6);for(const _0x52798d of _0x4e7942){const _0x5b72af=_0x52798d['getRanges']();if(!_0x37cd8b||!_0x37cd8b['skipNestingCheck']){if(_0x277d2f['every'](_0x261958=>_0x5b72af['some'](_0x2417d4=>_0x2417d4['containsRange'](_0x261958,!0x0))))return _0x52798d;}(!_0x52798d['attributes']||!_0x52798d['attributes']['skipNestingCheck'])&&(_0x5b72af['every'](_0x5bfe81=>_0x277d2f['some'](_0x391895=>_0x391895['containsRange'](_0x5bfe81,!0x0)))&&_0x52798d['discard']());}const _0x5acff9=_0x31d1bc(),_0x3e5683=_0x1518d4['id'],_0x3f89c2='deletion:'+_0x2484cc,_0x117309=this['_setSuggestionData']({'id':_0x5acff9,'type':_0x3f89c2,'createdAt':new Date(),'authorId':_0x3e5683,'attributes':_0x37cd8b});for(const _0x42489b of _0x277d2f)_0x42489b['detach'](),_0x42489b['isCollapsed']||'$graveyard'==_0x42489b['root']['rootName']||this['_addSuggestionMarker'](_0x3f89c2,_0x5acff9,_0x3e5683,_0x42489b,u['getMultiRangeId']());return _0x117309;}['markAttributeChange'](_0x32c21c,_0x350c64,_0x271dc3,_0x2f931d,_0x3cd2ad){if(_0x32c21c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd378b1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3498eb=Array['from'](this['_suggestions']['values']())['filter'](_0x239fad=>'attribute'==_0x239fad['type']&&_0x239fad['data']['key']==_0x350c64&&_0x239fad['isIntersectingWithRange'](_0x32c21c));if('default'===this['_trackFormatChanges']){const _0x2ada4d=this['_findSuggestions'](_0x32c21c,'insertion')['filter'](({meta:_0x248606})=>_0x248606['isOwn']&&!_0x248606['isInsideObject']&&!_0x248606['isNextTo'])['map'](({suggestion:_0x14e69a})=>_0x14e69a);_0x3498eb['unshift'](..._0x2ada4d);}const _0xe3edd9=new Map([[_0x32c21c,_0x271dc3]]);for(const _0x4ba0ce of _0x3498eb){const _0x56bc57='attribute'==_0x4ba0ce['type']?_0x4ba0ce['data']['oldValue']:void 0x0,_0x3dd742=_0x4ba0ce['getFirstRange'](),_0x3d6d86=Array['from'](_0xe3edd9['keys']())['find'](_0x450972=>_0x450972['isIntersecting'](_0x3dd742));if(!_0x3d6d86)continue;const _0x456ec2=_0x3d6d86['getDifference'](_0x3dd742);this['_isBlockAttribute'](_0x350c64)&&'insertion'==_0x4ba0ce['type']&&0x0!=_0x456ec2['length']||(_0xe3edd9['delete'](_0x3d6d86),_0x456ec2['forEach'](_0x2e3750=>{_0xe3edd9['set'](_0x2e3750,_0x271dc3);}),'insertion'!=_0x4ba0ce['type']&&_0x56bc57!=_0x2f931d&&_0xe3edd9['set'](_0x3d6d86['getIntersection'](_0x3dd742),_0x56bc57));}const _0x195e30=[];for(const [_0xf4911e,_0x545114]of _0xe3edd9){const _0x29e7bc=_0x31d1bc(),_0x3c2217={'key':_0x350c64,'oldValue':_0x545114,'newValue':_0x2f931d};_0x350c64['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':_0x350c64});const _0x1f0560=('attribute:'+(_0x350c64+'|'+Pt({'newValue':_0x2f931d})))['substring'](0x0,0x3c),_0x4e30af=this['_setSuggestionData']({'id':_0x29e7bc,'type':_0x1f0560,'data':_0x3c2217,'createdAt':new Date(),'authorId':_0xd378b1,'attributes':_0x3cd2ad});_0x195e30['push'](_0x4e30af),this['_addSuggestionMarker'](_0x1f0560,_0x29e7bc,_0xd378b1,_0xf4911e);}return _0x195e30;}['enableDefaultAttributesIntegration'](_0x167810){this['enableCommand'](_0x167810,(_0x5d05bf,..._0x1193fc)=>{this['_recordAttributeChanges'](()=>{_0x5d05bf(..._0x1193fc);});});}['registerBlockAttribute'](_0x5516ca){this['_blockAttributeKeys']['add'](_0x5516ca);}['registerInlineAttribute'](_0x25bef2){this['_inlineAttributeKeys']['add'](_0x25bef2);}['_getAttributeKey'](_0x20d5a8){return'attribute'==_0x20d5a8['type']?_0x20d5a8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d46c2,_0xc7116a){const _0x1ac15a=_0x5d46c2['getFirstMarker']();this['_model']['change'](_0x1ea5d5=>{_0x1ea5d5['updateMarker'](_0x1ac15a,{'range':_0xc7116a});});}['_addThreadToSuggestion'](_0x36ac16){const _0x140df6=_0x36ac16['id'],_0x17a6d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x140df6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x17a6d6,'threadId':_0x140df6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x123cf9=this['_commentsRepository']['getCommentThread'](_0x140df6);_0x123cf9['unbind']('isRemovable'),_0x123cf9['isRemovable']=!0x1,_0x36ac16['commentThread']=_0x123cf9;}['_checkSuggestionCorrectness'](_0x2ff4e9,_0x5c2a5d,_0x2d0d8b,_0x230611){if(_0x2ff4e9['type']!=_0x5c2a5d||_0x2ff4e9['subType']!=_0x2d0d8b||_0x2ff4e9['creator']['id']!=_0x230611)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f735b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x463335,_0x1a3c99){const _0x3d1e96=_0x463335['getFirstRange']();if(_0x1a3c99['isEqual'](_0x3d1e96))_0x463335['removeMarkers']();else{if(_0x3d1e96['containsRange'](_0x1a3c99)){const _0x2ab778=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x2ab778));const _0x57231c=_0x31d1bc(),_0x2e1055=_0x463335['creator']['id'],_0x384c65=_0x463335['type']+':'+_0x463335['subType'];this['_setSuggestionData']({'id':_0x57231c,'type':_0x384c65,'createdAt':new Date(),'authorId':_0x2e1055,'data':_0x463335['data'],'attributes':_0x463335['attributes']});const _0x259c0c=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after'),_0x46ad9d=this['_model']['createRange'](_0x259c0c,_0x3d1e96['end']);this['_addSuggestionMarker'](_0x384c65,_0x57231c,_0x2e1055,_0x46ad9d);}else{if(_0x3d1e96['containsPosition'](_0x1a3c99['start'])){const _0x26d3db=this['_model']['createPositionAt'](_0x1a3c99['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x3d1e96['start'],_0x26d3db));}else{const _0x2e12cd=this['_model']['createPositionAt'](_0x1a3c99['end']['parent'],'after');this['_setSuggestionRange'](_0x463335,this['_model']['createRange'](_0x2e12cd,_0x3d1e96['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fe1ad){for(const {suggestion:_0x1d45b5,meta:_0x1e2bdd}of this['_findSuggestions'](_0x2fe1ad,'insertion')){if(!_0x1e2bdd['isOwn'])continue;const _0xc2496d=_0x1d45b5['getRanges']();for(const _0x5bbee9 of _0xc2496d)if(!_0x2fe1ad['getDifference'](_0x5bbee9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf32c60){const _0x4dacdd=this['editor']['plugins']['get']('Users')['getUser'](_0xf32c60);if(!_0x4dacdd)throw new _0x2f735b('track-changes-user-not-found',this);return _0x4dacdd;}['_getExternalAuthor'](_0x552ed3){const _0x3c942d=this['editor']['plugins']['get']('Users'),_0x2523d4=_0x115a16('external:'+_0x552ed3),_0xe74f3e=_0x3c942d['getUser'](_0x2523d4);return _0xe74f3e||_0x3c942d['addUser']({'id':_0x2523d4,'name':_0x552ed3});}['_createSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0x18d568,_0x1c9bdf){const _0xc3ff18=this['_getAuthorFromId'](_0x18d568),_0x210013=this['_suggestionFactory']['buildSuggestion'](_0x103945,_0x3656e2,_0xaae70d,_0xc3ff18,_0x1c9bdf,_0x21e02f=>{this['_updateSuggestionData'](_0xaae70d,{'attributes':_0x21e02f});const _0xdd9ec2=this['getSuggestion'](_0xaae70d);this['_joinWithAdjacentSuggestions'](new Set([_0xdd9ec2])),this['_refreshSuggestionsChain'](new Set([_0xdd9ec2]));});return this['listenTo'](_0x210013,'accept',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x210013,'discard',()=>{this['_updateSuggestionData'](_0xaae70d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xaae70d,_0x210013),this['_suggestionState']['set'](_0x210013,'notReady'),_0x210013;}['_splitMarkerName'](_0x3aa8cb){const _0x13f105=_0x3aa8cb['split'](':');return{'group':_0x13f105[0x0],'type':_0x13f105[0x1],'subType':_0x13f105['length']>=0x5?_0x13f105[0x2]:null,'id':_0x13f105['length']<0x5?_0x13f105[0x2]:_0x13f105[0x3],'authorId':_0x13f105['length']<0x5?_0x13f105[0x3]:_0x13f105[0x4],'markerCount':0x6==_0x13f105['length']?_0x13f105[0x5]:null};}['_breakSuggestionMarker'](_0x49f27a,_0x5a87dc,_0x132780){const _0x1e6551=_0x49f27a['getFirstRange'](),_0x1d8409=_0x1e6551['start'],_0x599148=_0x1e6551['end'];this['_setSuggestionRange'](_0x49f27a,this['_model']['createRange'](_0x1d8409,_0x5a87dc));const _0x47604d=_0x31d1bc(),_0x486b6e=_0x49f27a['creator']['id'],_0x5be9ff=_0x49f27a['type']+(_0x49f27a['subType']?':'+_0x49f27a['subType']:'');this['_setSuggestionData']({'id':_0x47604d,'type':_0x5be9ff,'createdAt':new Date(),'authorId':_0x486b6e,'originalSuggestionId':_0x49f27a['id'],'attributes':_0x49f27a['attributes'],'data':_0x49f27a['data']});const _0x3c2f21=this['_getAttributeKey'](_0x49f27a);('formatBlock'==_0x49f27a['type']||_0x3c2f21&&this['_isBlockAttribute'](_0x3c2f21))&&(_0x132780=this['_model']['createPositionBefore'](_0x132780['parent'])),this['_addSuggestionMarker'](_0x5be9ff,_0x47604d,_0x486b6e,this['_model']['createRange'](_0x132780,_0x599148));}['_findSuggestions'](_0x21a470,_0x211696=null){const _0x1acf48=[],_0x2f44ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x21a470)||(_0x21a470=[_0x21a470]);for(const _0x118de8 of this['getSuggestions']()){if(!_0x118de8['isInContent'])continue;if(_0x211696&&_0x118de8['type']!=_0x211696)continue;let _0x5c04be=!0x1;for(const _0xc17bd6 of _0x118de8['getRanges']()){for(const _0x534f6b of _0x21a470){const _0x255485=_0x534f6b['start']['isEqual'](_0xc17bd6['end'])||_0x534f6b['end']['isEqual'](_0xc17bd6['start']);if(_0x255485||_0x534f6b['getIntersection'](_0xc17bd6)){const _0x4721a7=_0x534f6b['containsRange'](_0xc17bd6)&&Et(this['_model']['schema'],_0xc17bd6['start'],_0x534f6b),_0x2bd719=_0xc17bd6['containsRange'](_0x534f6b)&&Et(this['_model']['schema'],_0x534f6b['start'],_0xc17bd6);_0x1acf48['push']({'suggestion':_0x118de8,'meta':{'isOwn':_0x2f44ca==_0x118de8['author'],'isNextTo':_0x255485,'isInsideObject':_0x4721a7,'containsRangeInObject':_0x2bd719}}),_0x5c04be=!0x0;break;}}if(_0x5c04be)break;}}return _0x1acf48;}['_addSuggestionMarker'](_0x4ad5b4,_0x2304e3,_0x5a08a6,_0x1ec24a,_0x3e2236){this['_model']['change'](_0x4e1411=>{let _0x5de8f7='suggestion:'+_0x4ad5b4+':'+_0x2304e3+':'+_0x5a08a6;_0x3e2236&&(_0x5de8f7=_0x5de8f7+':'+_0x3e2236),_0x4e1411['addMarker'](_0x5de8f7,{'range':_0x1ec24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c0592){const _0x18772f=_0x4c0592['previous'],_0x9847a6=_0x4c0592['next'];_0x4c0592['previous']=null,_0x4c0592['next']=null,null!=_0x18772f&&_0x18772f['next']==_0x4c0592&&(_0x18772f['next']=_0x9847a6),null!=_0x9847a6&&_0x9847a6['previous']==_0x4c0592&&(_0x9847a6['previous']=_0x18772f),'ready'==this['_suggestionState']['get'](_0x4c0592)&&(this['_suggestionState']['set'](_0x4c0592,'removed'),this['fire']('suggestionUnloaded',_0x4c0592,_0x18772f,_0x9847a6));}['_setSuggestionData'](_0x129e35){const _0x2fe200=_0x129e35['id'],_0x58d039=this['addSuggestionData'](_0x129e35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48ecac=this['editor']['plugins']['get']('PendingActions'),_0x2ba415=_0x58d039['hasComments'],_0x35d937=_0x58d039['subType']?_0x58d039['type']+':'+_0x58d039['subType']:_0x58d039['type'],_0x2bfbdb=this['editor']['locale'],_0x1a0c90=_0x48ecac['add'](o(_0x2bfbdb,'PENDING_ACTION_SUGGESTION')),_0x586e17={'id':_0x2fe200,'type':_0x35d937,'hasComments':_0x2ba415,'data':_0x129e35['data']||null,'originalSuggestionId':_0x129e35['originalSuggestionId']||null,'attributes':_0x58d039['attributes']};this['_adapter']['addSuggestion'](_0x586e17)['then'](_0x3606ec=>{_0x58d039['_saved']=!0x0,_0x48ecac['remove'](_0x1a0c90),_0x3606ec&&_0x3606ec['createdAt']&&(this['_suggestions']['get'](_0x2fe200)['createdAt']=_0x3606ec['createdAt']);})['catch'](_0x4d4a4e=>{throw _0x1e894b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58d039['discard']();}),_0x58d039['stopListening'](),this['_suggestions']['delete'](_0x58d039['id']),this['_suggestionState']['delete'](_0x58d039),_0x4d4a4e;});}return _0x58d039;}['_isBlockAttribute'](_0x94488d){return this['_blockAttributeKeys']['has'](_0x94488d);}['_updateSuggestionData'](_0x4a0738,_0x5a85eb){const _0x53fde2=this['editor']['plugins']['get']('PendingActions'),_0x4104b2=this['getSuggestion'](_0x4a0738);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4104b2['_saved']){const _0x4b8138=_0x53fde2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4a0738,_0x5a85eb)['then'](()=>{_0x53fde2['remove'](_0x4b8138);});}else _0x4104b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4a0738,_0x5a85eb);});}}['_getSuggestionData'](_0x304dca){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f735b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x304dca);}['_handleNewSuggestionMarker'](_0x33b3a0){const {id:_0x3c23c8,type:_0x1b9811,subType:_0x13c817,authorId:_0x59f7e4}=this['_splitMarkerName'](_0x33b3a0),_0x2180cd=this['_suggestions']['get'](_0x3c23c8)||this['_createSuggestion'](_0x1b9811,_0x13c817,_0x3c23c8,_0x59f7e4,{});switch(this['_checkSuggestionCorrectness'](_0x2180cd,_0x1b9811,_0x13c817,_0x59f7e4),this['_suggestionState']['get'](_0x2180cd)){case'notReady':this['_getSuggestionData'](_0x3c23c8)['then'](_0x2cbe6a=>{let _0x5bb4d6=Promise['resolve']();_0x2cbe6a['hasComments']&&(_0x5bb4d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c23c8})),_0x5bb4d6['then'](()=>{this['addSuggestionData'](_0x2cbe6a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2180cd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c23c8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2180cd,'ready'),this['fire']('suggestionLoaded',_0x2180cd);break;case'ready':this['fire']('suggestionChanged',_0x2180cd);}return _0x2180cd['addMarkerName'](_0x33b3a0),_0x2180cd;}['_refreshSuggestionsChain'](_0x518bde){const _0xb6687f=Array['from'](_0x518bde),_0x4d1924=_0xb6687f['filter'](_0x18d708=>'attribute'==_0x18d708['type']);this['_refreshAttributeSuggestionsChain'](_0x4d1924);const _0x19cd71=_0xb6687f['filter'](_0x24f9ef=>!_0x24f9ef['isMultiRange']&&'attribute'!=_0x24f9ef['type']),_0x80018a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c9a2=>!_0x26c9a2['isMultiRange']&&'attribute'!=_0x26c9a2['type']),_0x3d33e4=_0x80018a['filter'](_0x3ce53b=>!_0x518bde['has'](_0x3ce53b)),_0x4de77c=new Map(_0x80018a['map'](_0x1be6d2=>[_0x1be6d2,this['_suggestionFactory']['getSuggestionCallback'](_0x1be6d2['type'],_0x1be6d2['subType'],'chain')])),_0x47fecd=new Map(_0x80018a['map'](_0x21cbab=>[_0x21cbab,_0x21cbab['getFirstRange']()])),_0x4e2db0=new Set(),_0x3738a4=new Set();for(let _0x34e187=0x0;_0x34e187<_0x19cd71['length'];_0x34e187++)_0x521248(_0x19cd71[_0x34e187],_0x19cd71,_0x34e187+0x1);for(let _0x55659d=0x0;_0x55659d<_0x19cd71['length'];_0x55659d++)_0x521248(_0x19cd71[_0x55659d],_0x3d33e4,0x0);const _0xf53c3d=new Set();for(let _0x1623b3=0x0;_0x1623b3<_0x19cd71['length'];_0x1623b3++){const _0x3d04ad=_0x19cd71[_0x1623b3];!_0x3738a4['has'](_0x3d04ad)&&_0x3d04ad['previous']&&(_0xf53c3d['add'](_0x3d04ad['previous']),_0x3d04ad['previous']['next']===_0x3d04ad&&(_0x3d04ad['previous']['next']=null),_0x3d04ad['previous']=null),!_0x4e2db0['has'](_0x3d04ad)&&_0x3d04ad['next']&&(_0xf53c3d['add'](_0x3d04ad['next']),_0x3d04ad['next']['previous']===_0x3d04ad&&(_0x3d04ad['next']['previous']=null),_0x3d04ad['next']=null);}function _0x521248(_0x51f155,_0x4f776b,_0x186e34){for(let _0x55bb52=_0x186e34;_0x55bb52<_0x4f776b['length'];_0x55bb52++){const _0x35a574=_0xab978a(_0x51f155,_0x4f776b[_0x55bb52]);_0x35a574&&(_0x35a574[0x0]['next']=_0x35a574[0x1],_0x35a574[0x1]['previous']=_0x35a574[0x0],_0x4e2db0['add'](_0x35a574[0x0]),_0x3738a4['add'](_0x35a574[0x1]));}}function _0xab978a(_0x5ddd08,_0x165840){if(_0x5ddd08['author']['id']!==_0x165840['author']['id'])return null;const _0x5d80c7=_0x4de77c['get'](_0x5ddd08)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840));if(!_0x5d80c7)return null;return _0x4de77c['get'](_0x165840)(_0x5ddd08,_0x165840,_0x47fecd['get'](_0x5ddd08),_0x47fecd['get'](_0x165840))?_0x5d80c7[0x1]['commentThread']&&_0x5d80c7[0x1]['commentThread']['length']?null:_0x5d80c7:null;}_0xf53c3d['size']&&this['_refreshSuggestionsChain'](_0xf53c3d);}['_refreshAttributeSuggestionsChain'](_0x27fe9b){if(0x0==_0x27fe9b['length'])return;const _0x6f69b8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5855ce=>'attribute'==_0x5855ce['type']&&_0x5855ce['_isDataLoaded']),_0x234a51=[],_0x1fe615=new Map();for(const _0x126632 of _0x6f69b8){const _0xd31696=_0x115a16(_0x126632['attributes']);_0x1fe615['has'](_0xd31696)||(_0x1fe615['set'](_0xd31696,_0x234a51['length']),_0x234a51['push']([]));const _0x3c41ad=_0x1fe615['get'](_0xd31696);_0x234a51[_0x3c41ad]['push'](_0x126632);}!(function(){_0x234a51['sort']((_0x14285f,_0xe72cc0)=>{const _0x51b856=_0x14285f[0x0]['createdAt'],_0x26ef0c=_0xe72cc0[0x0]['createdAt'];return _0x51b856==_0x26ef0c?_0x14285f[0x0]['attributes']['groupId']<_0xe72cc0[0x0]['attributes']['groupId']?-0x1:0x1:_0x51b856<_0x26ef0c?-0x1:0x1;});for(const _0x1c6e36 of _0x234a51)_0x1c6e36['sort']((_0x1bf53c,_0x4b2222)=>_0x1bf53c['id']<_0x4b2222['id']?-0x1:0x1);}());for(let _0x58306d=0x0;_0x58306d<_0x234a51['length'];_0x58306d++){if(0x0==_0x234a51[_0x58306d]['length'])continue;const _0x5022a9=[];for(let _0x4337ac=_0x58306d+0x1;_0x4337ac<_0x234a51['length'];_0x4337ac++)0x0!=_0x234a51[_0x4337ac]['length']&&_0x2c73e1(_0x234a51[_0x58306d],_0x234a51[_0x4337ac])&&_0x5022a9['push'](_0x4337ac);for(const _0x685ca2 of _0x5022a9)_0x234a51[_0x58306d]=_0x234a51[_0x58306d]['concat'](_0x234a51[_0x685ca2]),_0x234a51[_0x685ca2]=[];}for(const _0x1dca6d of _0x234a51)for(let _0x582dd5=0x0;_0x582dd5<_0x1dca6d['length'];_0x582dd5++){const _0x4d4dea=_0x1dca6d[_0x582dd5+0x1]||null;_0x1dca6d[_0x582dd5]['next']!==_0x4d4dea&&(_0x1dca6d[_0x582dd5]['next']=_0x4d4dea);}for(const _0x313d92 of _0x234a51)for(let _0x5c646f=0x0;_0x5c646f<_0x313d92['length'];_0x5c646f++){const _0x51b660=_0x313d92[_0x5c646f-0x1]||null;_0x313d92[_0x5c646f]['previous']!==_0x51b660&&(_0x313d92[_0x5c646f]['previous']=_0x51b660);}function _0x2c73e1(_0x5066a9,_0x21ef52){if(_0x5066a9[0x0]['attributes']['groupId']!==_0x21ef52[0x0]['attributes']['groupId']&&_0x5066a9[0x0]['author']!==_0x21ef52[0x0]['author'])return!0x1;if(!function(_0x598643,_0x2c777a){if(!_0x598643['hasComments']&&!_0x2c777a['hasComments'])return!0x0;if(_0x598643['hasComments']&&_0x2c777a['hasComments'])return!0x1;if(_0x598643['hasComments']&&_0x2c777a['createdAt']<_0x598643['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c777a['hasComments']&&_0x598643['createdAt']<_0x2c777a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5066a9[0x0],_0x21ef52[0x0]))return!0x1;const _0x306510=Rt(_0x5066a9[0x0]['attributes'],'groupId'),_0xe2b00b=Rt(_0x21ef52[0x0]['attributes'],'groupId');if(!_0x10d9b1(_0x306510,_0xe2b00b))return!0x1;return!!_0x5066a9['every'](_0x57f7a6=>_0x21ef52['some'](_0x5818f6=>_0x57f7a6['getFirstRange']()['isEqual'](_0x5818f6['getFirstRange']())))&&_0x21ef52['every'](_0x3119a7=>_0x5066a9['some'](_0x5ab076=>_0x3119a7['getFirstRange']()['isEqual'](_0x5ab076['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x283fca){const _0x2cfad5=Array['from'](_0x283fca),_0x32d1da=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b84c0=_0x32d1da['filter'](_0x44ffcf=>!_0x283fca['has'](_0x44ffcf)),_0x17be39=new Map(_0x2cfad5['map'](_0x2bcec9=>[_0x2bcec9,this['_suggestionFactory']['getSuggestionCallback'](_0x2bcec9['type'],_0x2bcec9['subType'],'join')])),_0x5ef1a7=new Map(_0x32d1da['map'](_0x5b5ce3=>[_0x5b5ce3,_0x5b5ce3['getRanges']()]));for(let _0x3624de=0x0;_0x3624de<_0x2cfad5['length'];_0x3624de++){if(_0x1c51b(this,_0x2cfad5[_0x3624de],_0x2cfad5,_0x3624de+0x1))return!0x0;}for(let _0x581632=0x0;_0x581632<_0x2cfad5['length'];_0x581632++){if(_0x1c51b(this,_0x2cfad5[_0x581632],_0x1b84c0,0x0))return!0x0;}return!0x1;function _0x1c51b(_0x384f08,_0x4d56d8,_0x53962a,_0x57561f){for(let _0x30f007=_0x57561f;_0x30f007<_0x53962a['length'];_0x30f007++){const _0x11270d=_0x53962a[_0x30f007];if(_0x11270d['type']!==_0x4d56d8['type']||_0x11270d['author']['id']!==_0x4d56d8['author']['id']||_0x11270d['subType']!==_0x4d56d8['subType'])continue;if(!Jt(_0x4d56d8,_0x11270d))continue;if('attribute'==_0x4d56d8['type']&&_0x4d56d8['data']['oldValue']!=_0x11270d['data']['oldValue'])continue;if('attribute'==_0x4d56d8['type']&&_0x384f08['_isBlockAttribute'](_0x4d56d8['data']['key']))continue;if('formatBlock'==_0x4d56d8['type']){const _0x5461a1=_0x384f08['editor']['model'],_0x459e60=_0x4d56d8['getContainedElement']();if(_0x459e60&&(_0x5461a1['schema']['isObject'](_0x459e60)||_0x5461a1['schema']['isLimit'](_0x459e60)))continue;}const _0x54d8f2=_0x17be39['get'](_0x4d56d8),_0x5df007=_0x5ef1a7['get'](_0x4d56d8),_0x54c1f6=_0x5ef1a7['get'](_0x11270d),_0x509ea0=_0x4d56d8['commentThread']&&_0x4d56d8['commentThread']['length'],_0x3241fa=_0x11270d['commentThread']&&_0x11270d['commentThread']['length'];if(!_0x509ea0&&_0x54d8f2(_0x54c1f6,_0x5df007))return _0x384f08['_joinSuggestions'](_0x11270d,_0x4d56d8),_0x5ef1a7['delete'](_0x4d56d8),!0x0;if(!_0x3241fa&&_0x54d8f2(_0x5df007,_0x54c1f6))return _0x384f08['_joinSuggestions'](_0x4d56d8,_0x11270d),_0x5ef1a7['delete'](_0x11270d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x52c3b4,_0x16db1d){if(_0x52c3b4['isMultiRange']){for(const _0xa0d98c of _0x16db1d['getRanges']())_0x52c3b4['addRange'](_0xa0d98c);}else{const _0x17acec=_0x16db1d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x52c3b4,this['_model']['createRange'](_0x52c3b4['getFirstRange']()['start'],_0x17acec));}_0x16db1d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2cd3c0,_0x326e54,_0x219846){const _0x279cdb=_0x2cd3c0['startsWith']('format')||_0x2cd3c0['startsWith']('attribute')?'FORMATTING':_0x2cd3c0['toUpperCase']();return o(this['editor']['locale'],_0x326e54+'_'+_0x279cdb+'_SUGGESTION_ANNOUNCEMENT',_0x219846);}['_initAriaMarkerChangeAnnouncements'](){const _0x3726aa=this['editor'];if(!_0x3726aa['ui'])return;const {ariaLiveAnnouncer:_0x39d527}=_0x3726aa['ui'];_0x31b647(this['_model'],({left:_0x5a090c,entered:_0x4aff72})=>{for(const _0x35f214 of _0x5a090c){const {group:_0x201467,type:_0x1a7ce1}=this['_splitMarkerName'](_0x35f214['name']);if('suggestion'===_0x201467){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x1a7ce1,'LEAVE'));break;}}for(const _0x567d11 of _0x4aff72){const {group:_0xb4e9b0,type:_0x5258e3}=this['_splitMarkerName'](_0x567d11['name']);if('suggestion'===_0xb4e9b0){_0x39d527['announce'](this['_getMarkerAnnouncementText'](_0x5258e3,'ENTER',_0x3a49cf(_0x2cdcf8)));break;}}});}['_processAttributeChanges'](_0x4d03df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x145db3=this['editor'],_0x55e2b3=_0x145db3['model']['document']['differ']['getChanges']();if(0x0==_0x55e2b3['length'])return!0x1;const _0x402fda=[],_0x1d3497=_0x55e2b3['filter'](_0x1fa47f=>'attribute'==_0x1fa47f['type']),_0x383689=_0x55e2b3['filter'](_0x354dc4=>'insert'==_0x354dc4['type']&&'$text'!=_0x354dc4['name']),_0x3bc74d=_0x55e2b3['filter'](_0x4fbaec=>'remove'==_0x4fbaec['type']&&'$text'!=_0x4fbaec['name']);for(const _0x1ad83a of _0x1d3497)_0x402fda['push']({'key':_0x1ad83a['attributeKey'],'newValue':_0x1ad83a['attributeNewValue'],'oldValue':_0x1ad83a['attributeOldValue'],'range':Ft(_0x1ad83a['range'],_0x145db3['model'])});for(const _0x2135af of _0x383689){const _0x17c306=_0x3bc74d['find'](_0x343b69=>_0x343b69['position']['isEqual'](_0x2135af['position']));_0x17c306&&_0x402fda['push']({'key':m,'newValue':_0x2135af['name'],'oldValue':_0x17c306['name'],'range':_0x145db3['model']['createRangeOn'](_0x2135af['position']['nodeAfter'])});}return 0x0!=_0x402fda['length']&&this['_reduceExistingSuggestions'](_0x4d03df,_0x402fda);}['_processAttributeSuggestions'](_0x196e39){let _0xf85936=!0x1;const _0x4bc796=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2a2330=>_0x2a2330['data']['newRange']&&_0x2a2330['name']['startsWith']('suggestion:attribute:'));for(const _0x13b50b of _0x4bc796){const {subType:_0x270b23,id:_0x8a73a7}=this['_splitMarkerName'](_0x13b50b['name']),_0x41978d=_0x270b23['split']('|')[0x0];for(const _0x40670d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x40670d['id']!=_0x8a73a7&&'attribute'==_0x40670d['type']&&_0x40670d['data']&&_0x40670d['data']['key']==_0x41978d&&_0x40670d['getFirstRange']()['isIntersecting'](_0x13b50b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x40670d,_0x13b50b['data']['newRange'],_0x196e39),_0xf85936=!0x0);}return _0xf85936;}['_recordAttributeChanges'](_0x3e7b39){this['_recordAttributeSuggestions']=!0x0,_0x3e7b39();}['_isRegisteredAttribute'](_0x58671e){const _0x48318d=this['_isBlockAttribute'](_0x58671e),_0xa35f1d=this['_inlineAttributeKeys']['has'](_0x58671e);return _0x48318d||_0xa35f1d;}['_reduceExistingSuggestions'](_0x16b8b5,_0x18ad44){if(0x0==_0x18ad44['length'])return!0x1;let _0x5d89e7=!0x1;for(const _0x277a66 of _0x18ad44){const _0x1369d8=this['_findSuggestions'](_0x277a66['range'],'attribute')['filter'](_0x3ea100=>!_0x3ea100['meta']['isNextTo'])['map'](_0x4ab620=>_0x4ab620['suggestion']),_0x10f5a7=_0x115a16({'newValue':_0x277a66['newValue']});_0x1369d8['filter'](_0x422b87=>{const [_0x5265ef,_0x50c3e3]=_0x422b87['subType']['split']('|');return _0x5265ef==_0x277a66['key']&&_0x50c3e3!=_0x10f5a7;})['forEach'](_0x8cbbf=>{this['_reduceSuggestionAttributeRange'](_0x8cbbf,_0x277a66['range'],_0x16b8b5),_0x5d89e7=!0x0;});}return _0x5d89e7;}['_reduceSuggestionAttributeRange'](_0x3aa8d5,_0x1899a9,_0x131358){const _0x293507=_0x3aa8d5['getFirstRange']()['getDifference'](_0x1899a9);0x0!==_0x293507['length']?0x1!==_0x293507['length']?this['_breakSuggestionMarker'](_0x3aa8d5,_0x1899a9['start'],_0x1899a9['end']):this['_setSuggestionRange'](_0x3aa8d5,_0x293507[0x0]):_0x131358['removeMarker'](_0x3aa8d5['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x27eac1){this['_editor']=_0x27eac1,this['_model']=_0x27eac1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5815c4,_0xe2be85,_0x4c8b1b,_0x20f171,_0x3b28ee,_0x3fdff9){return new u(this['_model'],{'type':_0x5815c4,'subType':_0xe2be85,'id':_0x4c8b1b,'author':_0x20f171,'creator':_0x20f171,'attributes':_0x3b28ee,'onAttributesChange':_0x3fdff9,'onAccept':(..._0x5a9fdb)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'accept')(..._0x5a9fdb),'onDiscard':(..._0x1db212)=>this['getSuggestionCallback'](_0x5815c4,_0xe2be85,'discard')(..._0x1db212)});}['registerCustomCallback'](_0x3db6f7,_0x95d219,_0x3b118b,_0x2af30b){const _0x4a507a=_0x3db6f7+':'+_0x95d219+':'+_0x3b118b;this['_customCallbacks']['set'](_0x4a507a,_0x2af30b);}['getSuggestionCallback'](_0x2eb015,_0x328ee0,_0x23508d){const _0xf37a45=_0x2eb015+':'+_0x328ee0+':'+_0x23508d;return this['_customCallbacks']['get'](_0xf37a45)||this['_defaultCallbacks']['get'](_0x2eb015+':'+_0x23508d);}['_registerDefaultCallbacks'](){const _0x3d0373=()=>!0x1,_0x4ccbb1=_0x3e315c=>{_0x3e315c['sort']((_0x3ce410,_0x5daf06)=>_0x3ce410['start']['isBefore'](_0x5daf06['start'])?0x1:-0x1),this['_model']['change'](_0x26b933=>{for(const _0x3207f7 of _0x3e315c){let _0xdc1b72;_0xdc1b72=_0x3207f7['end']['isAtEnd']&&_0x3207f7['end']['parent']==_0x3207f7['start']['nodeAfter']?_0x26b933['createSelection'](_0x3207f7['start']['nodeAfter'],'on'):_0x26b933['createSelection'](_0x3207f7),this['_model']['deleteContent'](_0xdc1b72,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x578739=(_0x3263b2,_0x4629f8)=>{_0x4629f8&&this['_model']['change'](_0x134d8d=>{const {commandName:_0x28ef5c,commandParams:_0x214112=[]}=_0x4629f8,_0x519863=_0x3263b2['map'](_0x29e6a2=>(Vt(_0x29e6a2)&&(_0x29e6a2=this['_model']['createRange'](_0x29e6a2['end'])),_0x29e6a2))['filter'](_0x276520=>'$graveyard'!==_0x276520['root']['rootName']);if(_0x519863['length']<0x1)return;const _0x44013f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x527217=>_0x1eeee4['fromRange'](_0x527217));_0x134d8d['setSelection'](_0x519863);for(const _0x539004 of this['_editor']['commands']['commands']())_0x539004['refresh']();_0x214112['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x28ef5c,..._0x214112);const _0x37e6e3=_0x44013f['filter'](_0x5077cd=>'$graveyard'!=_0x5077cd['root']['rootName']);_0x37e6e3['length']>0x0&&_0x134d8d['setSelection'](_0x37e6e3);for(const _0xf65362 of _0x44013f)_0xf65362['detach']();});},_0x1d4bb6=(_0xcfe454,_0x2495d2)=>0x1==_0xcfe454['length']&&0x1==_0x2495d2['length']&&_0xcfe454[0x0]['end']['isEqual'](_0x2495d2[0x0]['start']),_0x3ced21=(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a)=>Ht(_0x44d637,_0x43a655,_0x5a0f61,_0x23ba6a,this['_model'])?[_0x44d637,_0x43a655]:Ht(_0x43a655,_0x44d637,_0x23ba6a,_0x5a0f61,this['_model'])?[_0x43a655,_0x44d637]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3d0373),this['_defaultCallbacks']['set']('insertion:discard',_0x4ccbb1),this['_defaultCallbacks']['set']('insertion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('insertion:chain',_0x3ced21),this['_defaultCallbacks']['set']('deletion:accept',_0x4ccbb1),this['_defaultCallbacks']['set']('deletion:discard',_0x3d0373),this['_defaultCallbacks']['set']('deletion:join',_0x1d4bb6),this['_defaultCallbacks']['set']('deletion:chain',_0x3ced21),this['_defaultCallbacks']['set']('formatInline:accept',_0x578739),this['_defaultCallbacks']['set']('formatInline:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatInline:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatInline:chain',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:accept',_0x578739),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3d0373),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d4bb6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3d0373),this['_defaultCallbacks']['set']('attribute:accept',_0x3d0373),this['_defaultCallbacks']['set']('attribute:discard',(_0x138fee,_0xb61517)=>{if(!_0xb61517)return;const _0x14128f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9029=>{if(_0xb61517['key']==m)for(const _0x4746ac of _0x138fee){const _0x3ed69e=_0x4746ac['start']['nodeAfter'],_0x2d05e5=_0xb61517['oldValue'];_0x2c9029['rename'](_0x3ed69e,_0x2d05e5);}else{if(_0x14128f['_isBlockAttribute'](_0xb61517['key'])){for(const _0x43bd6a of _0x138fee)void 0x0!==_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x43bd6a['start']['nodeAfter']):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x43bd6a['start']['nodeAfter']);}else{for(const _0x161e1c of _0x138fee)_0xb61517['oldValue']?_0x2c9029['setAttribute'](_0xb61517['key'],_0xb61517['oldValue'],_0x161e1c):_0x2c9029['removeAttribute'](_0xb61517['key'],_0x161e1c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d4bb6);}}function Et(_0x4c988c,_0xcd5190,_0x248b82){for(const _0x3fef16 of _0xcd5190['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fef16['root']==_0x3fef16)return!0x1;if(!_0x248b82['containsItem'](_0x3fef16))return!0x1;if(_0x4c988c['isObject'](_0x3fef16)||_0x4c988c['isLimit'](_0x3fef16))return!0x0;}return!0x1;}function Vt(_0x1961ed){return _0x1961ed['end']['parent']==_0x1961ed['start']['nodeAfter']&&_0x1961ed['end']['isAtStart'];}function Ut(_0x5c8e98,_0x11ff07,_0x45f137,_0x4b8648){const _0xee42ef=_0x340d03=>!_0x340d03['item']['is']('$textProxy')&&!_0x4b8648['isObject'](_0x340d03['item']),_0x40709e=_0x5c8e98['start']['getLastMatchingPosition'](_0xee42ef),_0x227d3b=_0x5c8e98['end']['getLastMatchingPosition'](_0xee42ef,{'direction':'backward'});return(!_0x5c8e98['start']['isEqual'](_0x40709e)||!_0x5c8e98['end']['isEqual'](_0x227d3b))&&(_0x40709e['isBefore'](_0x227d3b)?_0x45f137['updateMarker'](_0x11ff07,{'range':_0x45f137['createRange'](_0x40709e,_0x227d3b)}):_0x45f137['removeMarker'](_0x11ff07),!0x0);}function Pt(_0x2920b4){return _0x115a16(_0x2920b4);}function Gt(_0x28cc7e){const _0x5abd0d=_0x28cc7e['start']['nodeAfter'];return _0x5abd0d&&_0x5abd0d['is']('element');}function Ft(_0x3f0d1c,_0x2876e1){return null==_0x3f0d1c['end']['nodeBefore']&&_0x3f0d1c['end']['parent']==_0x3f0d1c['start']['nodeAfter']?Lt(_0x3f0d1c['start']['nodeAfter'],_0x2876e1):_0x3f0d1c;}function Lt(_0x25fea0,_0x198a83){const _0x52cdb2=_0x198a83['schema']['isObject'](_0x25fea0)||_0x198a83['schema']['isSelectable'](_0x25fea0);return _0x198a83['createRange'](_0x198a83['createPositionAt'](_0x25fea0,'before'),_0x52cdb2?_0x198a83['createPositionAfter'](_0x25fea0):_0x198a83['createPositionAt'](_0x25fea0,'end'));}function Ht(_0x4a7864,_0x4e0e96,_0x2167fd,_0xca527c,_0x236f5e){if(_0x4a7864['next'])return!0x1;if(!Jt(_0x4a7864,_0x4e0e96))return!0x1;if(_0x2167fd['end']['isEqual'](_0xca527c['start']))return!0x0;if(_0x4a7864['type']!=_0x4e0e96['type'])return!0x1;if(!_0x2167fd['end']['isTouching'](_0xca527c['start']))return!0x1;const _0x2f0c22=_0x236f5e['createRange'](_0x2167fd['end'],_0xca527c['start'])['getWalker']();for(const _0x423ad7 of _0x2f0c22)if(['elementStart','elementEnd']['includes'](_0x423ad7['type'])&&_0x236f5e['schema']['isLimit'](_0x423ad7['item']))return!0x1;return!0x0;}function Jt(_0x55de90,_0x1e7e09){if(!_0x55de90['_isDataLoaded']||!_0x1e7e09['_isDataLoaded'])return!0x1;const _0x36fcca=new Set(Object['keys'](_0x55de90['attributes'])),_0x7dcbf5=new Set(Object['keys'](_0x1e7e09['attributes']));if(_0x36fcca['delete']('groupId'),_0x7dcbf5['delete']('groupId'),0x0==_0x36fcca['size']&&0x0==_0x7dcbf5['size'])return!0x0;if(_0x36fcca['size']!=_0x7dcbf5['size'])return!0x1;const _0x555401={..._0x55de90['attributes']},_0x330205={..._0x1e7e09['attributes']};return delete _0x555401['groupId'],delete _0x330205['groupId'],JSON['stringify'](_0x555401)==JSON['stringify'](_0x330205);}function qt(_0x22b5a7,_0x1af863){const _0x5a331e=zt(_0x22b5a7['attributes']),_0x23157f=zt(_0x1af863);if(!_0x22b5a7['_isDataLoaded'])return!0x1;for(const _0x58dde1 of Object['keys'](_0x23157f))if(!_0x10d9b1(_0x5a331e[_0x58dde1],_0x23157f[_0x58dde1]))return!0x1;return!0x0;}function zt(_0x1998d8){const _0x17a956=Object['assign']({},_0x1998d8);return delete _0x17a956['skipNestingCheck'],delete _0x17a956['tablePasteChainId'],_0x17a956;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4f9031(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4da596,_0x5337cd,_0x27292d,_0x4edbc9){super(),this['model']=_0x5337cd,this['view']=_0x27292d,this['commentThreadController']=_0x4edbc9,this['_editor']=_0x4da596,this['_acceptCommand']=_0x4da596['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4da596['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xe4a638,_0x3a2209)=>_0xe4a638||_0x3a2209),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5515f6=>_0x5515f6&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ed547=>_0x2ed547&&this['_editor']['model']['canEditAt'](_0x5337cd['getRanges']())),this['_pendingAction']=null,_0x27292d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x27292d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x27292d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x27292d,'change:isDirty',()=>{_0x27292d['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 _0x4d275d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4d275d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5c48ce{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de915,_0x38f93a,_0x289c8d,_0x283225){super(_0x4de915),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e2267(_0x4de915,o(_0x4de915,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38f93a['authoredAt']),this['bind']('authoredAt')['to'](_0x38f93a),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',_0x38f93a,'authoredAt',this,'descriptionParts',(_0xe23af6,_0x3164a8,_0x3ffa8b)=>{const _0x4ef3f7=_0x3ffa8b['map'](_0x444163=>ls(_0x444163['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xe23af6-0x1,_0x38f93a['author']['name'],_0x3164a8?_0x283225['formatDateTime'](_0x3164a8):'',new DOMParser()['parseFromString'](_0x4ef3f7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11e3bc(),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x138f59=>_0x138f59['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38f93a,this['_localUser']=_0x289c8d,this['_config']=_0x283225,_0x283225['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3cb939(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ad8}=this['_config'];this['commentsListView']=new _0x4f5ad8(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',_0x2c6805=>_0x2c6805+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28945a,_0x45519f)=>_0x28945a||!!_0x45519f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587785}=this['_config'],_0x4676d2=new _0x587785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x341148=_0x4676d2['commentInputView'];return _0x4676d2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x341148,'value',(_0x31d152,_0x210269,_0x561a88)=>!!_0x561a88||_0x31d152&&!_0x210269),_0x341148['on']('submit',(_0x23de98,_0x4f96b5)=>{this['fire']('addComment',_0x4f96b5),_0x341148['editor']['setData']('');}),_0x341148['on']('cancel',()=>this['focus']()),_0x341148['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4676d2;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x326b97,_0x47706e,_0x13297f,_0x37cac8){super(_0x326b97,_0x47706e,_0x13297f,_0x37cac8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1db1ae=>_0x1db1ae&&_0x1db1ae[0x0]?_0x1db1ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4772ad,_0x2d53e8)=>{let _0xc6296f='';for(const _0x8bfc9b of _0x4772ad)_0xc6296f+='<p>'+ls(_0x8bfc9b['content'],_0x8bfc9b['color'])+'</p>';return _0x2d53e8?_0xc6296f:_0x189d33(_0xc6296f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x37cac8['SuggestionView'](_0x326b97,_0x47706e,{'formatDateTime':_0x37cac8['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 _0x3feebc=this['bindTemplate'],_0xe85350=[this['suggestionView']];return this['commentsListView']&&_0xe85350['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe85350['push'](this['commentThreadInputView']),_0xe85350['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3feebc['if']('isActive','ck-suggestion-wrapper--active'),_0x3feebc['to']('type',_0xf6a757=>'ck-suggestion-'+_0xf6a757),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':_0x3feebc['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe85350};}['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 ce extends _0x5c48ce{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x38e132,_0x422372,_0x5e6f12){super(_0x38e132),this['_model']=_0x422372,this['_config']=_0x5e6f12,this['set']('description',''),this['bind']('authoredAt')['to'](_0x422372),this['acceptButton']=this['_createButton'](o(_0x38e132,'Accept\x20suggestion'),_0x129e38['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x38e132,'Discard\x20suggestion'),_0x129e38['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25caa3(_0x38e132,_0x422372['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11e3bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x328256(),this['keystrokes']=new _0x3f0bfa(),this['focusCycler']=new _0x594f2e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a240e=>_0x1a240e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe50baa=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe50baa['innerHTML']=this['description'],this['on']('change:description',(_0x2d937c,_0x200f0c,_0x3ec1df)=>{_0xe50baa['innerHTML']=_0x3ec1df;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fe16f=this['bindTemplate'],_0x308a85=[{'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']}},{'tag':'time','attributes':{'datetime':_0x3fe16f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fe16f['to']('authoredAt',_0x569457=>this['_config']['formatDateTime'](_0x569457))}]}]},{'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']&&_0x308a85['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':_0x308a85}]};}['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'](_0x313349,_0x1e9414,_0x56c8cf,_0x4dfd9e,_0x42a865){const _0x14ab74=new _0x388278(this['locale']);return _0x14ab74['set']({'label':_0x313349,'icon':_0x1e9414,'tooltip':!0x0,'tooltipPosition':_0x42a865}),_0x14ab74['extendTemplate']({'attributes':{'class':_0x56c8cf}}),_0x14ab74['on']('execute',()=>{this['fire'](_0x4dfd9e,this['_model']['id']);}),_0x14ab74;}['_setupKeyboardNavigation'](){const _0x4358ec=this['element'];this['keystrokes']['listenTo'](_0x4358ec);for(const _0x320c69 of this['focusables'])this['focusTracker']['add'](_0x320c69['element']),this['keystrokes']['listenTo'](_0x320c69['element']);this['keystrokes']['set']('enter',(_0x919a8a,_0x52f317)=>{_0x4358ec===_0x919a8a['target']&&(this['focusCycler']['focusFirst'](),_0x52f317());}),this['keystrokes']['set']('esc',(_0x211dd2,_0x10d6ef)=>{_0x4358ec!==_0x211dd2['target']&&(this['focus'](),_0x10d6ef());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x16a2ad{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5680c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372f5a){super(_0x372f5a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x19ed8e=this['editor']['config'];_0x19ed8e['define']('trackChanges.SuggestionThreadView',re),_0x19ed8e['define']('trackChanges.SuggestionView',ce),_0x19ed8e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x19ed8e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c6bce,_0xdddd07){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x517aff,_0x30ce37]of this['_handleControllerBuffer']){const _0x3615dd=this['_suggestionToController']['has'](_0x517aff);_0x3615dd||_0x30ce37?_0x3615dd&&_0x30ce37&&this['_destroyController'](_0x517aff):this['_initializeController'](_0x517aff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c6bce,_0xdddd07);}['init'](){const _0x5ea4a8=this['editor'],_0x15a2ab=_0x5ea4a8['plugins']['get']('TrackChangesEditing'),_0x239e8b=_0x5ea4a8['plugins']['get']('Annotations'),_0x55b2dc=_0x5ea4a8['plugins']['get']('EditorAnnotations'),_0x23f9bc=_0x5ea4a8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x55b2dc['addSourceCollector'](()=>{const _0x559bba=[];for(const [_0x599a2f,_0x2af9c8]of Array['from'](this['_suggestionToController'])){const _0x146191=_0x599a2f['getAllAdjacentSuggestions'](),_0x4c02c8=[];for(const _0x3e9daf of _0x146191){if(!_0x3e9daf['isInContent'])continue;if(_0x3e9daf['isMultiRange']){_0x4c02c8['push'](..._0x3e9daf['getRanges']());continue;}const _0x3b6dd1=_0x3e9daf['getFirstRange']();if(_0x4c02c8['length']>0x0){const _0x1b3a42=_0x4c02c8[0x0]['getJoined'](_0x3b6dd1);if(_0x1b3a42){_0x4c02c8[0x0]=_0x1b3a42;continue;}}_0x4c02c8['push'](_0x3b6dd1);}_0x559bba['push']([_0x2af9c8['view'],_0x4c02c8]);}return _0x559bba;}),this['listenTo'](_0x15a2ab,'suggestionLoaded',(_0x43a95d,_0x31415b)=>{this['listenTo'](_0x31415b,'change:previous',(_0x574ba7,_0x4cf6ae,_0x21ff20,_0x4f257f)=>{_0x31415b['isInContent']&&(null==_0x21ff20?(this['_updateController'](_0x4f257f['head']),this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1)):(this['_updateController'](_0x21ff20['head']),null==_0x4f257f&&this['_handleSuggestionControllerDelayed'](_0x31415b,!0x0)));}),null!==_0x31415b['previous']?this['_updateController'](_0x31415b['head']):this['_handleSuggestionControllerDelayed'](_0x31415b,!0x1);}),this['listenTo'](_0x15a2ab,'suggestionUnloaded',(_0x33c3c7,_0x3d81f2,_0x577aa7)=>{this['stopListening'](_0x3d81f2,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d81f2),this['_suggestionToController']['has'](_0x3d81f2)&&this['_destroyController'](_0x3d81f2),_0x577aa7&&this['_updateController'](_0x577aa7['head']);}),this['listenTo'](_0x15a2ab,'suggestionChanged',(_0x2881,_0x31a187)=>{this['_updateController'](_0x31a187);}),this['listenTo'](_0x239e8b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x23f9bc,'addComment',(_0x5b0f90,{threadId:_0x1b495e,isFromAdapter:_0x444e80})=>{if(_0x444e80||!_0x15a2ab['hasSuggestion'](_0x1b495e))return;const _0x5525f2=_0x15a2ab['getSuggestion'](_0x1b495e);this['_suggestionToController']['get'](_0x5525f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x227c9d=this['editor']['plugins']['get']('Annotations'),_0x49cd74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa9d8=Array['from'](_0x227c9d['activeAnnotations'],_0xda591c=>_0xda591c['innerView'])['filter'](_0x2ba5d9=>this['_viewToController']['has'](_0x2ba5d9)),_0xcf13ea=[];for(const _0x22d2e6 of _0x1fa9d8){const _0x59bcf0=this['_viewToController']['get'](_0x22d2e6)['model']['getAllAdjacentSuggestions']();_0xcf13ea['push'](..._0x59bcf0['reduce']((_0x2ce8ac,_0x43b001)=>[..._0x2ce8ac,..._0x43b001['getMarkerNames']()],[]));}_0x49cd74['activeMarkers']=_0xcf13ea;}['_addUIComponentsToFactory'](){const _0x14b216=this['editor'],_0x247595=_0x14b216['locale'],_0x95ccfe=o(_0x247595,'Track\x20changes'),_0x3dcf1a=new Wt([{'type':'switchbutton','model':new _0x1596b5({'withText':!0x0,'isToggleable':!0x0,'label':_0x95ccfe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1596b5({'withText':!0x0,'label':o(_0x247595,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xd3c1af of _0x3dcf1a)if(me(_0xd3c1af)){const _0x3b5307=_0x14b216['commands']['get'](_0xd3c1af['model']['commandName']);_0xd3c1af['model']['bind']('isOn','isEnabled')['to'](_0x3b5307,'value','isEnabled');}_0x14b216['ui']['componentFactory']['add']('trackChanges',_0x14c117=>this['_createToolbarButton'](_0x14c117,_0x3dcf1a,_0x95ccfe)),_0x14b216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x18c914=>this['_createMenuBarMenu'](_0x18c914,_0x3dcf1a,_0x95ccfe));}['_createToolbarButton'](_0x2d7189,_0x1a02e7,_0x570df3){const _0x1bdb4e=Qt(_0x2d7189,_0x646426),_0x49fa3f=this['editor']['commands']['get']('trackChanges');_0x1bdb4e['buttonView']['set']({'tooltip':_0x570df3,'label':_0x570df3,'icon':he}),_0x1bdb4e['buttonView']['bind']('isOn')['to'](_0x49fa3f,'value'),_0x1bdb4e['buttonView']['on']('execute',()=>{_0x49fa3f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1bdb4e,_0x1a02e7,{'role':'menu'});const _0xc2a35c=[];for(const _0x1a78de of _0x1a02e7)me(_0x1a78de)&&_0xc2a35c['push'](this['editor']['commands']['get'](_0x1a78de['model']['commandName']));const _0x5c1731=_0x1bdb4e['buttonView'];return _0x5c1731['actionView']['unbind']('isEnabled'),_0x5c1731['arrowView']['unbind']('isEnabled'),_0x5c1731['actionView']['bind']('isEnabled')['to'](_0x49fa3f,'isEnabled'),_0x5c1731['arrowView']['bind']('isEnabled')['toMany'](_0xc2a35c,'isEnabled',(..._0x1f44e3)=>_0x1f44e3['some'](_0x46473e=>_0x46473e)),_0x1bdb4e['on']('execute',_0x1b8559=>{this['editor']['execute'](_0x1b8559['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bdb4e;}['_createMenuBarMenu'](_0x37f98b,_0x57d835,_0x218001){const _0x2cf741=new Yt(_0x37f98b),_0x22b24e=this['editor']['commands']['get']('trackChanges');_0x2cf741['buttonView']['set']({'label':_0x218001,'icon':he});const _0x2f5ce2=new Zt(_0x37f98b);for(const _0x399505 of _0x57d835){if('separator'==_0x399505['type']){_0x2f5ce2['items']['add'](new Xt(_0x37f98b));continue;}const _0x22ed8b=new te(_0x37f98b,_0x2cf741),_0x300865=new _0x5c4ce3(_0x37f98b),_0x5b3857=_0x399505['model'];_0x300865['bind'](...Object['keys'](_0x5b3857))['to'](_0x5b3857),_0x300865['delegate']('execute')['to'](_0x2cf741),_0x300865['on']('execute',()=>{this['editor']['execute'](_0x5b3857['commandName']),this['editor']['editing']['view']['focus']();}),_0x22ed8b['children']['add'](_0x300865),_0x2f5ce2['items']['add'](_0x22ed8b);}return _0x2cf741['bind']('isEnabled')['to'](_0x22b24e,'isEnabled'),_0x2cf741['panelView']['children']['add'](_0x2f5ce2),_0x2cf741;}['_initializeController'](_0x468315){const _0xe80444=this['editor'],_0x58ae59=_0xe80444['config'],_0x419898=_0xe80444['plugins']['get']('Annotations'),_0x5a1d32=_0xe80444['plugins']['get']('CommentsRepository'),_0x32e6f6=_0xe80444['plugins']['get']('EditorAnnotations'),_0x5b3214=_0xe80444['plugins']['get'](_0x5680c5)['me'],_0x514eb4=_0x58ae59['get']('trackChanges')['SuggestionThreadView'],_0xa25f88=_0x58ae59['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x37a5f9,CommentThreadInputView:_0x5243b1}=_0xe80444['plugins']['get']('CommentsUI');let _0x68acf5,_0x56ead3,_0x1f9d74;this['_annotationViews']['has'](_0x468315['id'])?(_0x56ead3=this['_annotationViews']['get'](_0x468315['id']),_0x68acf5=_0x56ead3['mainView']):(_0x68acf5=new _0x514eb4(_0xe80444['locale'],_0x468315,_0x5b3214,{'disableComments':this['_disableComments'],'editorConfig':_0x58ae59['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x58ae59['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58ae59['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58ae59['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1661b2(_0x58ae59['get']('locale')),'CommentView':_0x58ae59['get']('comments')['CommentView'],'CommentsListView':_0x37a5f9,'CommentThreadInputView':_0x5243b1,'SuggestionView':_0xa25f88}),_0x68acf5['suggestionView']['acceptButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x68acf5['suggestionView']['discardButton']['on']('execute',()=>{_0xe80444['editing']['view']['focus']();}),_0x56ead3=_0x419898['createAnnotationView'](this['editor']['locale'],_0x68acf5),_0x56ead3['bind']('isDirty')['to'](_0x68acf5,'isDirty'),_0x56ead3['bind']('length')['to'](_0x68acf5),_0x56ead3['bind']('type')['to'](_0x68acf5,'type',_0x1db4f2=>'suggestion-'+_0x1db4f2),_0x68acf5['on']('escape',()=>{_0x1f9d74['fire']('escape');}),this['_annotationViews']['set'](_0x468315['id'],_0x56ead3));const _0x4ea89e=_0x5a1d32['createCommentThreadController'](_0x468315['commentThread'],_0x68acf5),_0x5e4214=new ae(_0xe80444,_0x468315,_0x68acf5,_0x4ea89e),_0x99ab1e=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x8469e3=>_0x8469e3['isInContent']);_0x68acf5['descriptionParts']=_0xe80444['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x99ab1e),this['_suggestionToController']['set'](_0x468315,_0x5e4214),this['_viewToController']['set'](_0x68acf5,_0x5e4214),_0x1f9d74=_0x419898['createAnnotation']({'view':_0x56ead3,'target':()=>{const _0x40f5d0=[],_0x48566c=_0x468315['getAllAdjacentSuggestions']()['filter'](_0x9b6cca=>_0x9b6cca['isInContent']);for(const _0x1017ff of _0x48566c)_0x40f5d0['push'](..._0x1017ff['getMarkers']());return _0x39b097(_0xe80444['editing'],_0x40f5d0);},'type':()=>'suggestion-'+_0x5e4214['view']['type']}),_0x5a1d32['_bindAnnotationToEditors'](_0x68acf5,_0x1f9d74),_0x419898['add'](_0x1f9d74),_0x32e6f6['registerAnnotation'](_0x1f9d74);}['_destroyController'](_0x4303a1){const _0x46ec7e=this['editor']['plugins']['get']('CommentsRepository'),_0x8ca332=this['editor']['plugins']['get']('Annotations'),_0x3ef3bc=this['_suggestionToController']['get'](_0x4303a1),_0x25ef55=_0x3ef3bc['view'],_0x57c1f0=_0x8ca332['getByInnerView'](_0x25ef55);_0x46ec7e['_unbindEditors'](_0x25ef55),_0x57c1f0&&_0x8ca332['remove'](_0x57c1f0),this['_suggestionToController']['delete'](_0x4303a1),this['_viewToController']['delete'](_0x25ef55),_0x3ef3bc['destroy']();}['_updateController'](_0x2836c6){if(!_0x2836c6['isInContent']||!this['_suggestionToController']['has'](_0x2836c6))return;const _0x9b015d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4593f1=this['_suggestionToController']['get'](_0x2836c6),_0x502532=_0x2836c6['getAllAdjacentSuggestions']();_0x4593f1['view']['descriptionParts']=_0x9b015d['descriptionFactory']['getDescriptions'](_0x502532);}['destroy'](){for(const _0x5f4384 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f4384);for(const _0x20a5ba of this['_annotationViews']['values']())_0x20a5ba['mainView']['destroy']();super['destroy']();}}function me(_0x2e8946){return'model'in _0x2e8946;}class k extends _0x16a2ad{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2f6505){this['editor']['plugins']['get'](p)['adapter']=_0x2f6505;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x41b57b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x41b57b);}['getSuggestions']({skipNotAttached:_0x5dddfe=!0x1,toJSON:_0x32f33e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5dddfe,'toJSON':_0x32f33e});}['getSuggestion'](_0x256bb0){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x256bb0);}}const w=['Pagination'];class T extends _0x16a2ad{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4513ec=this['editor'];if(_0x4513ec['config']['define']('trackChangesData.editorCreator',_0x3018ac=>{const _0x37598a=_0x4513ec['model']['document']['getRootNames']()['reduce']((_0x30beb3,_0x232801)=>(_0x30beb3[_0x232801]='',_0x30beb3),{});return _0x4513ec['constructor']['create'](_0x37598a,_0x3018ac);}),'function'!=typeof _0x4513ec['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f735b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ed58b){return N(this['editor'],!0x0,_0x2ed58b);}['getDataWithDiscardedSuggestions'](_0x36b153){return N(this['editor'],!0x1,_0x36b153);}}class D extends _0x16a2ad{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5192aa){super(_0x5192aa),this['result']='end';}['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 v(_0x7008a8){return void 0x0!==_0x7008a8['getRootsAttributes'];}async function N(_0x178906,_0x55b589,_0x40087f){const _0x1af51a=_0x1c6eb1(_0x178906,w);_0x1af51a['plugins']['push'](p,D),_0x1af51a['rootsAttributes']=v(_0x178906)?_0x178906['getRootsAttributes']():void 0x0;const _0x1b3d27=document['createDocumentFragment'](),_0x5e0ddf=_0x178906['config']['get']('trackChangesData')['editorCreator'],_0x345de3=await _0x5e0ddf(_0x1af51a,()=>function(_0x5c46fa){const _0x5c0710=document['createElement']('div');return _0x5c46fa['appendChild'](_0x5c0710),_0x5c0710;}(_0x1b3d27));!function(_0x25bc16,_0x40ac72){const _0xc74e74=_0x25bc16['model']['document']['getRootNames']()['reduce']((_0x27a9ac,_0x216f71)=>(_0x27a9ac[_0x216f71]=_0x25bc16['data']['get']({'rootName':_0x216f71}),_0x27a9ac),{}),_0x165272=_0x25bc16['plugins']['get']('Users')['users']['map'](_0x132df7=>({'id':_0x132df7['id'],'name':_0x132df7['name']})),_0x5a45f6=_0x25bc16['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x11c8fa=_0x25bc16['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45d9e6=_0x40ac72['plugins']['get']('Users'),_0x5259b7=_0x40ac72['plugins']['get']('TrackChangesEditing'),_0x1577dd=_0x40ac72['plugins']['get']('CommentsRepository');for(const _0x4921d9 of _0x1577dd['getCommentThreads']())_0x4921d9['remove']();for(const _0x5b9bf3 of _0x165272)_0x45d9e6['getUser'](_0x5b9bf3['id'])||_0x45d9e6['addUser'](_0x5b9bf3);_0x45d9e6['me']||_0x45d9e6['useAnonymousUser']();for(const _0x1f5841 of _0x11c8fa)_0x1577dd['addCommentThread'](_0x1f5841);for(const _0xde9429 of _0x5a45f6)_0x5259b7['addSuggestionData'](_0xde9429);_0x40ac72['data']['set'](_0xc74e74);}(_0x178906,_0x345de3),_0x345de3['execute'](_0x55b589?'acceptAllSuggestions':'discardAllSuggestions');const _0x50e155=v(_0x345de3)?_0x345de3['getFullData'](_0x40087f):_0x345de3['data']['get'](_0x40087f);return await _0x345de3['destroy'](),_0x50e155;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x535470,PendingActions as _0x454fa6,icons as _0xa0990f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xe104bf,ObservableMixin as _0x333747,uid as _0x140993,insertToPriorityArray as _0x5e5655,priorities as _0x2fcfc6,logWarning as _0x53f0d5,getEnvKeystrokeText as _0x52725a,FocusTracker as _0x357953,KeystrokeHandler as _0x30b4b5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x36d69f,View as _0x170fca,ViewCollection as _0x4a78a2,FocusCycler as _0x7da2f7,ViewModel as _0x245822,createDropdown as Qt,SplitButtonView as _0x15ac32,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x20ba33}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x13c229,hashObject as _0x51e538,surroundingMarkersDetector as _0x57b3ea,FOCUS_ANNOTATION_KEYSTROKE as _0x1a37b5,AriaDescriptionView as _0x20f6b5,setupThreadKeyboardNavigation as _0x2df9fb,trimHtml as _0x14c4ab,UserView as _0x450a88,LateFocusButtonView as _0x51906b,getDateTimeFormatter as _0xac8d35,getAllMarkersDomElementsSorted as _0x474272,sanitizeEditorConfig as _0x536824}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x386cec,LiveRange as _0x1ac0e2,LivePosition as _0x392ddf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x12edc0,toWidget as _0x47816f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a1bdd,set as _0xf2c2ea,isEqual as _0x4fc24e,unset as _0x54bb7a,omit as Rt}from'lodash-es';import{Delete as _0x4f34cc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ccbb9,ShiftEnter as _0x427e21}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4de42c,_0x437996){super(_0x4de42c),this['_enabledCommands']=_0x437996,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 _0x559bc7 of this['editor']['commands']['commands']())_0x559bc7['affectsData']&&!this['_enabledCommands']['has'](_0x559bc7)&&_0x559bc7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f9aa1 of this['editor']['commands']['commands']())_0x4f9aa1['affectsData']&&!this['_enabledCommands']['has'](_0x4f9aa1)&&_0x4f9aa1['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x2c7706,_0x180484){super(_0x2c7706),this['_suggestions']=_0x180484,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x272f49){const _0x324646=this['_suggestions']['get'](_0x272f49);if(!_0x324646)throw new _0xe104bf('track-changes-accept-suggestion-not-found',this);const _0x57b5bf=_0x324646['getRanges']();this['editor']['model']['canEditAt'](_0x57b5bf)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x324646);}}class O extends ts{['_suggestions'];constructor(_0x16a814,_0x31b8d6){super(_0x16a814),this['_suggestions']=_0x31b8d6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3c38a1){const _0x47f455=this['_suggestions']['get'](_0x3c38a1);if(!_0x47f455)throw new _0xe104bf('track-changes-discard-suggestion-not-found',this);const _0x585792=_0x47f455['getRanges']();this['editor']['model']['canEditAt'](_0x585792)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x47f455);}}function ls(_0xdb94c7,_0x4cf982){let _0xf70832='';return _0xf70832+=_0xdb94c7['split']('*')['map']((_0x56181d,_0x227755)=>_0x227755%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x56181d)+'</span>':nn(_0x56181d))['join'](''),_0x4cf982&&(_0xf70832+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4cf982['value']+'\x22\x20title=\x22'+_0x4cf982['title']+'\x22></span>'),_0xf70832;}function nn(_0x42b28a){const _0x52d541=document['createElement']('span');return _0x52d541['innerText']=_0x42b28a,_0x52d541['innerHTML'];}function ss(_0x45f5fb){return _0x45f5fb['sort']((_0x4f84d3,_0x48b169)=>'deletion'==_0x4f84d3['type']&&'deletion'!=_0x48b169['type']?-0x1:'deletion'!=_0x4f84d3['type']&&'deletion'==_0x48b169['type']?0x1:0x0);}function to(_0x44f7f4,_0x5a78b5){let _0x34158a,_0x9d7fde=0x0;const _0x1729f3=[],_0x1fd0c9=_0x5a78b5['schema'];for(;_0x9d7fde<_0x44f7f4['length'];){const _0xd6727d=_0x44f7f4[_0x9d7fde],_0x321709=_0x44f7f4[_0x9d7fde+0x1];_0x34158a||(_0x34158a=_0x5a78b5['createPositionBefore'](_0xd6727d)),on(_0x5a78b5,_0xd6727d,_0x321709)||(_0x1729f3['push'](_0x5a78b5['createRange'](_0x34158a,_0x1fd0c9['isObject'](_0xd6727d)?_0x5a78b5['createPositionAfter'](_0xd6727d):_0x5a78b5['createPositionAt'](_0xd6727d,'end'))),_0x34158a=null),_0x9d7fde++;}return _0x1729f3;}function on(_0x2a52bd,_0x24582e,_0x1b6e3f){if(!_0x1b6e3f)return!0x1;const _0x5d2661=_0x2a52bd['createPositionAfter'](_0x24582e),_0xb3d31f=_0x2a52bd['createPositionBefore'](_0x1b6e3f);return _0x5d2661['isTouching'](_0xb3d31f);}function rs(_0x17e36a,_0x5e3c34,_0x1243c6){for(;_0x1243c6['length'];){const _0x31b3c4=_0x1243c6['splice'](0x0,0x64);_0x17e36a['change'](()=>{for(const _0x16aa7d of _0x31b3c4)_0x16aa7d['isInContent']&&_0x5e3c34['execute'](_0x16aa7d['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0xc01e85,_0x17e5cb,_0x1e74b4){super(_0xc01e85),this['_command']=_0x17e5cb,this['_suggestions']=_0x1e74b4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x26a6db=Array['from'](this['_suggestions']['values']())['some'](_0x352437=>_0x352437['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x26a6db;}['execute'](){const _0x5822a4=ss(Array['from'](this['_suggestions']['values']()));for(const _0x370622 of _0x5822a4){const _0x170b60=_0x370622['getRanges']();if(!this['editor']['model']['canEditAt'](_0x170b60))return;}rs(this['editor']['model'],this['_command'],_0x5822a4);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x284c3a,_0x4a4bd9,_0x12e0a4){super(_0x284c3a),this['_command']=_0x4a4bd9,this['_suggestions']=_0x12e0a4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x45c842=this['editor']['model']['document']['selection'],_0x834c1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xcc19c,_0x20bf4d){const _0x1e2d0e=Array['from'](_0xcc19c['getRanges']()),_0x52ecad=new Set();for(const _0x474366 of _0x20bf4d)if(_0x474366['isInContent']){for(const _0x154855 of _0x1e2d0e)for(const _0x4f4879 of _0x474366['getRanges']())(_0x154855['isIntersecting'](_0x4f4879)||_0xcc19c['isCollapsed']&&!_0x474366['isMultiRange']&&_0x474366['next']&&_0x4f4879['end']['isTouching'](_0x154855['start']))&&_0x52ecad['add'](_0x474366);}return _0x52ecad;}(_0x45c842,_0x834c1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x382aaa=ss(Array['from'](this['_selectedSuggestions']));for(const _0x59ba12 of _0x382aaa){const _0x521660=_0x59ba12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x521660))return;}rs(this['editor']['model'],this['_command'],_0x382aaa);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x333747(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x360237,_0x5b3961){super(),this['id']=_0x5b3961['id'],this['type']=_0x5b3961['type'],this['subType']=_0x5b3961['subType']||null,this['author']=_0x5b3961['author'],this['creator']=_0x5b3961['creator']||_0x5b3961['author'],this['isExternal']=Boolean(_0x5b3961['attributes']&&_0x5b3961['attributes']['@external']),this['data']=null,this['_model']=_0x360237,this['_onAccept']=_0x5b3961['onAccept'],this['_onDiscard']=_0x5b3961['onDiscard'],this['_onAttributesChange']=_0x5b3961['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b3961['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 _0x56404e=this;for(;_0x56404e['previous'];)_0x56404e=_0x56404e['previous'];return _0x56404e;}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'](_0x406188){this['_markerNames']['add'](_0x406188);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a2ca1=>this['_model']['markers']['get'](_0x5a2ca1))['filter'](_0xcaf11e=>_0xcaf11e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c428c=>{for(const _0x3de9d8 of this['getMarkers']())_0x3c428c['removeMarker'](_0x3de9d8);}),this['_markerNames']['clear']();}['removeMarker'](_0x5b4a6e){this['_model']['change'](_0x2d21cf=>{_0x2d21cf['removeMarker'](_0x5b4a6e);}),this['_markerNames']['delete'](_0x5b4a6e);}['addRange'](_0x2b8c1f){const _0x2511ab='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2511ab),this['_model']['change'](_0x709e55=>{_0x709e55['addMarker'](_0x2511ab,{'range':_0x2b8c1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x432cb1){for(const _0x35b76b of this['getRanges']())if(_0x35b76b['isIntersecting'](_0x432cb1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4404dc=>_0x4404dc['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1aa8ba,_0x3f4847)=>[..._0x1aa8ba,..._0x3f4847['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x10a265=this['getRanges']();if(0x1!=_0x10a265['length'])return null;const _0x3e4625=_0x10a265[0x0],_0x4a5e76=_0x3e4625['start']['nodeAfter'],_0xa0207e=_0x3e4625['end']['nodeBefore'];return _0x4a5e76 instanceof _0x386cec?_0x4a5e76!=_0xa0207e?null:_0x4a5e76: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 _0x2ad53e=[];let _0x1dc765=this['head'];for(;_0x1dc765;)_0x2ad53e['push'](_0x1dc765),_0x1dc765=_0x1dc765['next'];return _0x2ad53e;}['setAttribute'](_0x23e37b,_0x4db4f5){const _0x537d9a=_0x4a1bdd(this['attributes']);_0xf2c2ea(_0x537d9a,_0x23e37b,_0x4db4f5),_0x4fc24e(_0x537d9a,this['attributes'])||(this['attributes']=_0x537d9a,this['_onAttributesChange'](_0x537d9a));}['removeAttribute'](_0x43bb28){const _0x17dff5=_0x4a1bdd(this['attributes']);_0x54bb7a(_0x17dff5,_0x43bb28),_0x4fc24e(_0x17dff5,this['attributes'])||(this['attributes']=_0x17dff5,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 _0x140993()['substr'](0x1,0x5);}}function o(_0x112557,_0xe25298,_0x557699){const _0x1c5785=_0x112557['t'],t=_0x112557['t'];switch(_0xe25298){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'*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',_0x557699);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x557699);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x557699);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x557699);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x557699);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',_0x557699);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x557699);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x557699);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x557699);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x557699);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x557699);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x557699);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x557699);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x557699);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x557699);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x557699);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x557699);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x557699);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x557699);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x557699);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x557699);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x557699);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x557699);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'},_0x557699);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x557699);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x557699);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x557699);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x557699);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x557699);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'},_0x557699);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x557699);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x557699);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x557699);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x557699);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'},_0x557699);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x557699);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'},_0x557699);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x557699);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x557699);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'},_0x557699);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x557699);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'},_0x557699);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x557699);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x557699);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'},_0x557699);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 _0x1c5785({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x557699);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c5785({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x557699);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x557699);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'},_0x557699);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'},_0x557699);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'},_0x557699);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xe25298;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x154b44,_0x5001d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x154b44,this['_locale']=_0x5001d2;}['getDescriptions'](_0x378f67){const _0x300dc0=[],_0x30d276=new Set(),_0x24a2ad=new Set();for(let _0x46b445=0x0;_0x46b445<_0x378f67['length'];_0x46b445++){const _0x1cf451=_0x378f67[_0x46b445];if(!_0x1cf451['isInContent'])continue;const _0x47efbb=this['_handleCustomCallbackDescription'](_0x1cf451);if(_0x47efbb){if(null!=_0x1cf451['subType']){if(_0x30d276['has'](_0x1cf451['subType']))continue;_0x30d276['add'](_0x1cf451['subType']);}_0x300dc0['push'](_0x47efbb);}else{if('attribute'!=_0x1cf451['type'])'insertion'!=_0x1cf451['type']&&'deletion'!=_0x1cf451['type']||this['_handleInsertRemoveSuggestionDescription'](_0x300dc0,_0x1cf451,_0x378f67[_0x46b445+0x1]);else{const _0x1cc9b8=_0x1cf451['data']['key'];if(_0x24a2ad['has'](_0x1cc9b8))continue;_0x24a2ad['add'](_0x1cf451['data']['key']),_0x1cc9b8==m?this['_handleRenameSuggestionDescription'](_0x300dc0,_0x1cf451):this['_handleAttributeSuggestionDescription'](_0x300dc0,_0x1cf451);}}}return this['_resolveDescriptionItems'](_0x300dc0);}['registerDescriptionCallback'](_0x1ecba8){this['_customCallbacks']['push'](_0x1ecba8);}['registerElementLabel'](_0x1828d0,_0x1a0800,_0x1d999a=_0x2fcfc6['normal']){'function'==typeof _0x1828d0?_0x5e5655(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1828d0,'label':_0x1a0800,'priority':_0x1d999a}):this['_itemLabels']['set'](_0x1828d0,_0x1a0800);}['registerAttributeLabel'](_0x44598a,_0x30bb32){this['_attributeLabels']['set'](_0x44598a,_0x30bb32);}['getItemLabel'](_0x29cfd0,_0x29e57a=0x1){let _0x34beb1;for(const _0x27551a of this['_itemLabelsCallbacks'])if(_0x27551a['matchingCallback'](_0x29cfd0)){_0x34beb1=_0x27551a['label'];break;}return _0x34beb1||(_0x34beb1=this['_itemLabels']['get'](_0x29cfd0['name'])),_0x34beb1?_0x34beb1(_0x29e57a):0x1!==_0x29e57a?_0x29e57a+'\x20'+_0x29cfd0['name']+'s':''+_0x29cfd0['name'];}['_addDescriptionItems'](_0x1229ff,_0x23a58f){const _0x3a81be=_0x23a58f['getFirstRange']()['getWalker'](),_0x35093b='insertion'==_0x23a58f['type']?'add':'remove';for(const _0x860def of _0x3a81be){const _0x1a4044=_0x860def['item'],_0x5745e9=_0x1229ff[_0x1229ff['length']-0x1];if(_0x1a4044['is']('$textProxy'))_0x5745e9&&_0x5745e9['type']['indexOf']('Container')>-0x1&&_0x1229ff['pop'](),_0x5745e9&&'text'==_0x5745e9['type']?_0x5745e9[_0x35093b]+=_0x1a4044['data']:_0x1229ff['push']({'type':'text','add':'add'==_0x35093b?_0x1a4044['data']:'','remove':'remove'==_0x35093b?_0x1a4044['data']:''});else{if(this['_schema']['isObject'](_0x1a4044)){const _0xb62937=_0x1a4044;if(_0x5745e9&&_0x5745e9['type']['indexOf']('Container')>-0x1&&_0x1229ff['pop'](),'elementEnd'==_0x860def['type'])continue;_0x5745e9&&_0x5745e9['type']==_0x35093b+'Object'&&_0x5745e9['element']['name']==_0xb62937['name']?_0x5745e9['quantity']++:_0x1229ff['push']({'type':_0x35093b+'Object','element':_0xb62937,'quantity':0x1}),_0x3a81be['skip'](_0x404953=>!('elementEnd'==_0x404953['type']&&_0x404953['item']==_0x1a4044));}else{if(this['_schema']['checkChild'](_0x1a4044,'$text')||_0x1a4044['is']('element','softBreak')){const _0x265181=_0x1a4044;if('add'==_0x35093b&&'elementStart'==_0x860def['type']||'remove'==_0x35093b&&'elementEnd'==_0x860def['type'])continue;if(_0x5745e9&&-0x1==_0x5745e9['type']['indexOf']('Container')){'text'==_0x5745e9['type']&&(_0x5745e9[_0x35093b]+='\x0a');continue;}let _0x22eb1a;if(_0x22eb1a='add'==_0x35093b?_0x265181['nextSibling']&&!this['_schema']['isObject'](_0x265181['nextSibling'])?_0x265181['nextSibling']:null:_0x265181['previousSibling']&&!this['_schema']['isObject'](_0x265181['previousSibling'])?_0x265181['previousSibling']:null,_0x265181['isEmpty']||_0x22eb1a&&_0x22eb1a['isEmpty']){const _0x11e53a=_0x22eb1a&&_0x22eb1a['isEmpty']?_0x22eb1a:_0x265181;_0x5745e9&&_0x5745e9['type']==_0x35093b+'EmptyContainer'&&_0x5745e9['element']['name']==_0x11e53a['name']?_0x5745e9['quantity']++:_0x1229ff['push']({'type':_0x35093b+'EmptyContainer','element':_0x11e53a,'quantity':0x1});}else _0x1229ff['push']({'type':_0x35093b+'Container','element':_0x265181});}}}}}['_resolveDescriptionItems'](_0x39583c){const _0x23c67d=this['_locale'],_0x5010f3=[],_0x34858c=[],_0x46dd67=[];for(const _0x4f3fcf of _0x39583c)switch(_0x4f3fcf['type']){case'text':if(_0x4f3fcf['add']=_0x4f3fcf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f3fcf['remove']=_0x4f3fcf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f3fcf['add']&&''!=_0x4f3fcf['remove']){_0x5010f3['push']({'type':'replace','content':o(_0x23c67d,'REPLACE_TEXT',['\x22'+_0x4f3fcf['remove']+'\x22','\x22'+_0x4f3fcf['add']+'\x22'])});continue;}if(null!=_0x4f3fcf['add']['match'](/^ +$/)){_0x5010f3['push']({'type':'insertion','content':o(_0x23c67d,'*Insert:*\x20%0',o(_0x23c67d,'ELEMENT_SPACE',_0x4f3fcf['add']['length']))});continue;}if(null!=_0x4f3fcf['remove']['match'](/^ +$/)){_0x5010f3['push']({'type':'deletion','content':o(_0x23c67d,'*Remove:*\x20%0',o(_0x23c67d,'ELEMENT_SPACE',_0x4f3fcf['remove']['length']))});continue;}if(''!=_0x4f3fcf['add']){_0x5010f3['push']({'type':'insertion','content':o(_0x23c67d,'*Insert:*\x20%0','\x22'+_0x4f3fcf['add']+'\x22')});continue;}_0x5010f3['push']({'type':'deletion','content':o(_0x23c67d,'*Remove:*\x20%0','\x22'+_0x4f3fcf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5010f3['push']({'type':'insertion','content':o(_0x23c67d,'*Insert:*\x20%0',this['getItemLabel'](_0x4f3fcf['element'],_0x4f3fcf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5010f3['push']({'type':'deletion','content':o(_0x23c67d,'*Remove:*\x20%0',this['getItemLabel'](_0x4f3fcf['element'],_0x4f3fcf['quantity']))});continue;case'addContainer':_0x5010f3['push']({'type':'insertion','content':o(_0x23c67d,'*Split:*\x20%0',this['getItemLabel'](_0x4f3fcf['element'],_0x4f3fcf['quantity']))});continue;case'removeContainer':_0x5010f3['push']({'type':'deletion','content':o(_0x23c67d,'*Merge:*\x20%0',this['getItemLabel'](_0x4f3fcf['element'],_0x4f3fcf['quantity']))});continue;case'addFormat':_0x34858c['push'](_0x4f3fcf['key']);continue;case'removeFormat':_0x46dd67['push'](_0x4f3fcf['key']);continue;default:_0x5010f3['push'](_0x4f3fcf);}if(_0x34858c['length']){const _0x1b217a=_0x34858c['map'](_0x2c0b90=>this['_attributeLabels']['has'](_0x2c0b90)?this['_attributeLabels']['get'](_0x2c0b90):_0x2c0b90)['join'](',\x20');_0x5010f3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b217a)});}if(_0x46dd67['length']){const _0x180c35=_0x46dd67['map'](_0x4f084e=>this['_attributeLabels']['has'](_0x4f084e)?this['_attributeLabels']['get'](_0x4f084e):_0x4f084e)['join'](',\x20');_0x5010f3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x180c35)});}return _0x5010f3;}['_handleCustomCallbackDescription'](_0x1f2de1){for(const _0x22da71 of this['_customCallbacks']){const _0x59f50e=_0x22da71(_0x1f2de1);if(_0x59f50e&&'type'in _0x59f50e)return _0x59f50e;}}['_handleAttributeSuggestionDescription'](_0x7954b0,_0x4662c7){const _0x1f6a51=_0x4662c7['data'],_0x4757e7=void 0x0===_0x1f6a51['newValue']?'removeFormat':'addFormat';_0x7954b0['push']({'type':_0x4757e7,'key':_0x1f6a51['key']});}['_handleRenameSuggestionDescription'](_0x364f08,_0x9e14a3){_0x364f08['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x9e14a3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12d8c3,_0x4e8009,_0x558241){if(this['_addDescriptionItems'](_0x12d8c3,_0x4e8009),_0x558241&&_0x558241['getFirstRange']()&&!_0x4e8009['getFirstRange']()['end']['isEqual'](_0x558241['getFirstRange']()['start'])){const _0x2a7797=_0x12d8c3[_0x12d8c3['length']-0x1],_0x4b2c16='insertion'==_0x4e8009['type']?'add':'remove';_0x2a7797&&'text'==_0x2a7797['type']&&(_0x2a7797[_0x4b2c16]+='\x0a');}}}class V extends _0x535470{['afterInit'](){const _0x4faf0c=this['editor'],_0x5b9de0=_0x4faf0c['plugins']['get']('TrackChangesEditing');_0x4faf0c['commands']['get']('showAIAssistant')&&_0x5b9de0['enableCommand']('showAIAssistant');}}class U extends _0x535470{['afterInit'](){const _0x4a4f37=this['editor'],_0x19b692=_0x4a4f37['locale'];if(!_0x4a4f37['plugins']['has']('AlignmentEditing'))return;const _0x2ee100=_0x4a4f37['plugins']['get']('TrackChangesEditing');_0x2ee100['enableDefaultAttributesIntegration']('alignment'),_0x2ee100['registerBlockAttribute']('alignment'),_0x2ee100['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x19b692,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf97b=this['editor'],_0x5dd2b6=_0x3cf97b['locale'];_0x3cf97b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a488e=>{if('formatBlock'!=_0x2a488e['type'])return;const {data:_0x53f4c0}=_0x2a488e;if(_0x53f4c0&&'alignment'==_0x53f4c0['commandName']){const _0x37f899=_0x53f4c0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5dd2b6,'*Format:*\x20%0',function(_0xe03789){switch(_0xe03789){case'left':return o(_0x5dd2b6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5dd2b6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5dd2b6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5dd2b6,'FORMAT_JUSTIFY_TEXT');}}(_0x37f899))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x535470{['afterInit'](){const _0x21dccb=this['editor'],_0x5652ba=_0x21dccb['plugins']['get']('TrackChangesEditing'),_0x508132=_0x21dccb['locale'];for(const _0x5aba07 of ti){if(!_0x21dccb['plugins']['has'](_0x5aba07))continue;const _0x31fe89=_0x5aba07['slice'](0x0,-0x7)['toLowerCase'](),_0x567042='FORMAT_'+_0x31fe89['toUpperCase']();_0x5652ba['enableDefaultAttributesIntegration'](_0x31fe89),_0x5652ba['registerInlineAttribute'](_0x31fe89),_0x5652ba['descriptionFactory']['registerAttributeLabel'](_0x31fe89,o(_0x508132,_0x567042));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381425=this['editor'],_0x40326b=_0x381425['locale'],_0x176ce4=_0x381425['plugins']['get']('TrackChangesEditing');function _0x5becd9(_0x4e9106,_0x5f06a8){_0x176ce4['descriptionFactory']['registerDescriptionCallback'](_0xa4e456=>{if('formatInline'!=_0xa4e456['type'])return;const {data:_0x23cddf}=_0xa4e456;return _0x23cddf&&_0x23cddf['commandName']===_0x4e9106?_0x23cddf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40326b,'*Format:*\x20%0',_0x5f06a8)}:{'type':'format','content':o(_0x40326b,'*Remove\x20format:*\x20%0',_0x5f06a8)}:void 0x0;});}_0x5becd9('bold',o(_0x40326b,'FORMAT_BOLD')),_0x5becd9('italic',o(_0x40326b,'FORMAT_ITALIC')),_0x5becd9('underline',o(_0x40326b,'FORMAT_UNDERLINE')),_0x5becd9('code',o(_0x40326b,'FORMAT_CODE')),_0x5becd9('strikethrough',o(_0x40326b,'FORMAT_STRIKETHROUGH')),_0x5becd9('subscript',o(_0x40326b,'FORMAT_SUBSCRIPT')),_0x5becd9('superscript',o(_0x40326b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x535470{['afterInit'](){const _0x3bd47a=this['editor'],_0x3bf679=_0x3bd47a['locale'];if(!_0x3bd47a['plugins']['has']('BlockQuoteEditing'))return;const _0x2114ec=_0x3bd47a['plugins']['get']('TrackChangesEditing'),_0x419644=this['editor']['commands']['get']('blockQuote');_0x2114ec['enableCommand']('blockQuote',(_0x5b3dc6,_0x431eb4={})=>{const _0x3e8c79=this['editor']['model']['document']['selection'],_0x148725=_0x431eb4&&void 0x0!==_0x431eb4['forceValue']?_0x431eb4['forceValue']:!_0x419644['value'];let _0x25ff32=[];if(_0x148725){const _0x17828c=Array['from'](_0x3e8c79['getSelectedBlocks']())['filter'](_0x17bc2f=>oo(_0x17bc2f)||function(_0x23d370,_0x22aaf8){const _0x2bfd54=_0x22aaf8['checkChild'](_0x23d370['parent'],'blockQuote'),_0x3da61c=_0x22aaf8['checkChild'](['$root','blockQuote'],_0x23d370);return _0x2bfd54&&_0x3da61c;}(_0x17bc2f,this['editor']['model']['schema']));_0x25ff32=to(_0x17828c,_0x3bd47a['model']);}else{const _0x14ebd3=Array['from'](_0x3e8c79['getSelectedBlocks']())['filter'](_0x4a4040=>oo(_0x4a4040));_0x25ff32=to(_0x14ebd3,_0x3bd47a['model']);}_0x3bd47a['model']['change'](()=>{for(const _0x1f83bd of _0x25ff32)_0x2114ec['markBlockFormat'](_0x1f83bd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x148725}]});});}),_0x2114ec['descriptionFactory']['registerDescriptionCallback'](_0xc4b03=>{const {data:_0x9f246}=_0xc4b03;if(_0x9f246&&'blockQuote'==_0x9f246['commandName']){const _0x59a8fc=o(_0x3bf679,'ELEMENT_BLOCK_QUOTE');return _0x9f246['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bf679,'*Set\x20format:*\x20%0',_0x59a8fc)}:{'type':'format','content':o(_0x3bf679,'*Remove\x20format:*\x20%0',_0x59a8fc)};}});}}function oo(_0x147726){return'blockQuote'==_0x147726['parent']['name'];}class L extends _0x535470{['afterInit'](){const _0xa24081=this['editor'];_0xa24081['plugins']['has']('CaseChange')&&(_0xa24081['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa24081['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa24081['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x535470{['afterInit'](){const _0x469b43=this['editor'];_0x469b43['commands']['get']('ckbox')&&_0x469b43['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x535470{['afterInit'](){const _0x36ecd7=this['editor'];if(!_0x36ecd7['plugins']['has']('CodeBlock'))return;const _0x476229=_0x36ecd7['plugins']['get']('TrackChangesEditing'),_0x4774ef=_0x36ecd7['locale'],_0x553c13=_0x36ecd7['config']['get']('codeBlock')['languages'],_0x5923e4=_0x36ecd7['commands']['get']('codeBlock');_0x476229['enableCommand']('indentCodeBlock'),_0x476229['enableCommand']('outdentCodeBlock'),_0x476229['enableCommand']('codeBlock',(_0x43de35,_0x1c018c={})=>{const _0x5aa966=_0x36ecd7['model'],_0x446669=_0x36ecd7['model']['document']['selection'],_0x164e07=_0x1c018c&&void 0x0!==_0x1c018c['forceValue']?_0x1c018c['forceValue']:!_0x5923e4['value'];let _0x1d8443;_0x1c018c['language']||(_0x1c018c['language']=_0x553c13[0x0]['language']),_0x1d8443=_0x164e07?Array['from'](_0x446669['getSelectedBlocks']())['filter'](_0x4bd92d=>eo(_0x4bd92d)||function(_0x5b6614,_0x5e4e18){if(_0x5b6614['is']('rootElement')||_0x5e4e18['isLimit'](_0x5b6614))return!0x1;return _0x5e4e18['checkChild'](_0x5b6614['parent'],'codeBlock');}(_0x4bd92d,_0x5aa966['schema'])):Array['from'](_0x446669['getSelectedBlocks']())['filter'](_0x145e0f=>eo(_0x145e0f));const _0x5e4b92=to(_0x1d8443,_0x5aa966);_0x5aa966['change'](()=>{for(const _0x42b57c of _0x5e4b92)_0x476229['markBlockFormat'](_0x42b57c,{'commandName':'codeBlock','commandParams':[{..._0x1c018c,'forceValue':_0x164e07}],'formatGroupId':'blockName'});});}),(_0x476229['descriptionFactory']['registerElementLabel']('codeBlock',_0xed3bb=>o(_0x4774ef,'ELEMENT_CODE_BLOCK',_0xed3bb)),_0x476229['descriptionFactory']['registerDescriptionCallback'](_0x467c4c=>{if('formatBlock'!=_0x467c4c['type'])return;const _0x30baaf=_0x4774ef['t'],{data:_0x5840ed}=_0x467c4c;if(!_0x5840ed||'codeBlock'!=_0x5840ed['commandName'])return;const _0x4548e7=_0x5840ed['commandParams'][0x0]['language'],_0x52c411=_0x30baaf(_0x553c13['find'](_0x36c46a=>_0x36c46a['language']===_0x4548e7)['label'])['toLowerCase']();return _0x5840ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4774ef,'*Set\x20format:*\x20%0',o(_0x4774ef,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52c411+')')}:{'type':'format','content':o(_0x4774ef,'*Remove\x20format:*\x20%0',o(_0x4774ef,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e4dc7){return'codeBlock'==_0x2e4dc7['name'];}class q extends _0x535470{['afterInit'](){const _0x50f9dc=this['editor'];if(!_0x50f9dc['plugins']['has']('CommentsEditing'))return;_0x50f9dc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2fb906,_0x191bf6,_0x16178f){const _0x2d70b1=[];for(const _0x2fd0d of _0x191bf6['getItems']())_0x2fd0d['hasAttribute'](_0x2fb906)&&_0x2d70b1['push'](_0x16178f['createRangeOn'](_0x2fd0d));return _0x2d70b1;}function _e(_0x5f33ad,_0x52ff84,{showActiveMarker:_0x4aa22b=!0x0}={}){const _0x335dfb=_0x5f33ad['plugins']['get']('TrackChangesEditing');return(_0x42094d,_0x292146,_0x4fdd9d)=>{if(!_0x4fdd9d['consumable']['test'](_0x292146['markerRange'],_0x42094d['name']))return;const _0xbc8515=_0x292146['markerRange']['getWalker'](),_0x2fe982=_0x292146['markerRange']['start'],_0x65b1df=_0x5f33ad['model']['schema'];let _0x2a0daa=null,_0xfad673=null,_0x1c5c44=!0x1,_0x1a012d=!0x1;for(const _0x4f1cf1 of _0xbc8515){const _0x49a257=_0x4f1cf1['item'];_0x1c5c44=_0x1c5c44||_0x65b1df['isContent'](_0x49a257);const _0x2b8f83=_0x4fdd9d['mapper']['toViewElement'](_0x49a257);if(_0x2b8f83&&_0x2b8f83['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f1cf1['type']&&(_0x65b1df['isBlock'](_0x49a257)&&!_0x65b1df['isLimit'](_0x49a257)&&(_0x49a257['nextSibling']||_0x2fe982['isAtEnd']?_0x2a0daa&&_0x2a0daa['parent']==_0x49a257||(_0x2a0daa=_0x49a257,_0x47a90b(_0x4f1cf1['previousPosition']),_0x1a012d=!0x0):_0xfad673=_0xfad673||_0x4f1cf1['previousPosition']));}function _0x47a90b(_0x139c11){const {authorId:_0x3b0ea7}=_0x335dfb['_splitMarkerName'](_0x292146['markerName']),_0x18b434=_0x4fdd9d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52ff84,'data-author-id':_0x3b0ea7}),_0x547f39=_0x4fdd9d['mapper']['toViewPosition'](_0x139c11);_0x4aa22b&&_0x335dfb['activeMarkers']['includes'](_0x292146['markerName'])&&_0x4fdd9d['writer']['addClass']('ck-suggestion-marker--active',_0x18b434),_0x4fdd9d['writer']['insert'](_0x547f39,_0x18b434),_0x4fdd9d['mapper']['bindElementToMarker'](_0x18b434,_0x292146['markerName']);}_0x1c5c44||_0x1a012d||!_0xfad673||_0x47a90b(_0xfad673);};}class z extends _0x535470{static get['requires'](){return[_0x4f34cc];}['init'](){const _0x4ffe19=this['editor'],_0x51cb3d=_0x4ffe19['plugins']['get']('TrackChangesEditing');_0x51cb3d['enableCommand']('delete');const _0xc31b53=_0x4ffe19['commands']['get']('deleteForward');_0x51cb3d['enableCommand']('deleteForward',(_0x528f2a,_0x4883a0={})=>{const _0xd4f71a=_0x4ffe19['model']['createSelection'](_0x4ffe19['model']['document']['selection']);_0xd4f71a['isCollapsed']&&_0x4ffe19['model']['modifySelection'](_0xd4f71a,{'direction':'forward','unit':_0x4883a0['unit']});const _0x5e717c=_0xd4f71a['getFirstRange'](),_0x48bd3a=_0x1ac0e2['fromRange'](_0x5e717c);let _0x11886d;_0x528f2a(_0x4883a0),_0x11886d='$graveyard'==_0x48bd3a['root']['rootName']?_0x4ffe19['model']['createRange'](_0x5e717c['start']):_0x4ffe19['model']['createRange'](_0x48bd3a['start'],_0x48bd3a['end']),_0x48bd3a['detach'](),_0x4ffe19['model']['enqueueChange'](_0xc31b53['buffer']['batch'],_0x5b332b=>{_0xc31b53['buffer']['lock'](),_0x5b332b['setSelection'](_0x5b332b['createRange'](_0x11886d['end'])),_0xc31b53['buffer']['unlock']();});}),_0x4ffe19['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4ffe19,'merge'),{'priority':'high'}),_0x4ffe19['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x54ed83,_0x29b2d4,_0x1921bd)=>{_0x1921bd['options']['showSuggestionHighlights']&&_e(_0x4ffe19,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x54ed83,_0x29b2d4,_0x1921bd);},{'priority':'high'}),_0x4ffe19['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x14ef7b,_0x14b301,_0x29f3bb)=>{const _0xc8b11c=_0x29f3bb['mapper']['markerNameToElements'](_0x14b301['markerName']);if(_0xc8b11c){for(const _0x546501 of _0xc8b11c)_0x546501['is']('uiElement')&&(_0x29f3bb['mapper']['unbindElementFromMarkerName'](_0x546501,_0x14b301['markerName']),_0x29f3bb['writer']['remove'](_0x546501));}},{'priority':'high'});}}class K extends _0x535470{['afterInit'](){const _0x16cfd0=this['editor'];if(!_0x16cfd0['plugins']['has']('ListEditing'))return;const _0x55be81=_0x16cfd0['locale'],_0x2f676=_0x16cfd0['plugins']['get']('TrackChangesEditing'),_0x43055c=_0x16cfd0['plugins']['has']('TodoListEditing'),_0x59b0ed=!!_0x16cfd0['config']['get']('list.multiBlock');function _0x18a05c(_0x2a4c4c){return{'type':'format','content':''+o(_0x55be81,'*Set\x20format:*\x20%0',_0x2a4c4c)};}function _0x4a54d6(_0x46b7e0){return{'type':'format','content':''+o(_0x55be81,'*Remove\x20format:*\x20%0',_0x46b7e0)};}_0x2f676['enableDefaultAttributesIntegration']('numberedList'),_0x2f676['enableDefaultAttributesIntegration']('bulletedList'),_0x2f676['enableDefaultAttributesIntegration']('customNumberedList'),_0x2f676['enableDefaultAttributesIntegration']('customBulletedList'),_0x2f676['enableDefaultAttributesIntegration']('indentList'),_0x2f676['enableDefaultAttributesIntegration']('outdentList'),_0x2f676['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2f676['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2f676['registerBlockAttribute']('listItemId'),_0x2f676['registerBlockAttribute']('listType'),_0x2f676['registerBlockAttribute']('listIndent'),_0x59b0ed&&(_0x2f676['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2f676['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x43055c&&(_0x2f676['enableDefaultAttributesIntegration']('todoList'),_0x2f676['enableDefaultAttributesIntegration']('checkTodoList'),_0x2f676['registerBlockAttribute']('todoListChecked'),_0x2f676['descriptionFactory']['registerDescriptionCallback'](_0x4860a0=>{const {data:_0x5130c8}=_0x4860a0;if(_0x5130c8&&'todoListChecked'==_0x5130c8['key'])return{'type':'format','content':_0x5130c8['newValue']?o(_0x55be81,'*Check\x20item*'):o(_0x55be81,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc3ef24=>{if(_0xc3ef24['batch']['isUndo'])return!0x1;let _0x42f9cb=!0x1;const _0x5706b8=_0x2f676['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35fee8=>'todoListChecked'===_0x2f676['_getAttributeKey'](_0x35fee8));for(const _0x3facc8 of _0x5706b8){'todo'!=_0x3facc8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2f676['_findSuggestions'](_0x3facc8['getFirstRange'](),'attribute')['find'](_0x598985=>'listType'===_0x2f676['_getAttributeKey'](_0x598985['suggestion']))||(_0xc3ef24['removeMarker'](_0x3facc8['getFirstMarker']()),_0x42f9cb=!0x0));}return _0x42f9cb;})),_0x2f676['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x55be81,'FORMAT_INDENT'));const _0x3be022={'type':'format','content':''};_0x2f676['descriptionFactory']['registerDescriptionCallback'](_0x591e2a=>{const {data:_0x146e73}=_0x591e2a;if(!_0x146e73||'listType'!=_0x146e73['key'])return;let _0x43b754=_0x591e2a['head'];for(;_0x43b754;){if(_0x43b754['data']&&(('listStyle'==_0x43b754['data']['key']||'listMarkerStyle'==_0x43b754['data']['key'])&&(_0x43b754['data']['newValue']&&'default'!=_0x43b754['data']['newValue']||'default'!=_0x43b754['data']['oldValue']&&!_0x146e73['newValue'])||!_0x59b0ed&&_0x43b754['data']['key']==m))return _0x3be022;_0x43b754=_0x43b754['next'];}if(null==_0x146e73['newValue'])switch(_0x146e73['oldValue']){case'bulleted':return _0x4a54d6(o(_0x55be81,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a54d6(o(_0x55be81,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a54d6(o(_0x55be81,'ELEMENT_TODO_LIST'));}switch(_0x146e73['newValue']){case'bulleted':return _0x18a05c(o(_0x55be81,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18a05c(o(_0x55be81,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18a05c(o(_0x55be81,'ELEMENT_TODO_LIST'));}}),_0x2f676['descriptionFactory']['registerDescriptionCallback'](_0x54f4fe=>{const {data:_0x3a052c}=_0x54f4fe;if(_0x3a052c&&'listIndent'==_0x3a052c['key'])return null==_0x3a052c['newValue']||null==_0x3a052c['oldValue']&&0x0==_0x3a052c['newValue']?_0x3be022:void 0x0;}),_0x2f676['descriptionFactory']['registerDescriptionCallback'](_0x399281=>{if('attribute'!=_0x399281['type'])return;const {data:_0x56226d}=_0x399281;if(!_0x56226d||'listItemId'!=_0x56226d['key'])return;const _0x51efdb=Ee(_0x399281);return'newValue'==_0x51efdb?{'type':'format','content':o(_0x55be81,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51efdb?{'type':'format','content':o(_0x55be81,'*Split:*\x20list\x20item')}:_0x3be022;}),_0x16cfd0['model']['document']['registerPostFixer'](_0x36a1b9=>this['listItemIdFixer'](_0x36a1b9)),_0x16cfd0['model']['document']['registerPostFixer'](_0x418e58=>this['noTrackChangesFixer'](_0x418e58)),_0x16cfd0['model']['document']['on']('change:data',(_0x289b2d,_0x592461)=>{if(_0x592461['isUndo']||!_0x592461['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x43bdd2){if(_0x43bdd2['batch']['isUndo']||!_0x43bdd2['batch']['isLocal'])return!0x1;let _0x51a0ef=!0x1;const _0x111f47=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf57827=>_0xf57827['data']&&'listItemId'==_0xf57827['data']['key'])['filter'](_0x979ffe=>_0x979ffe['data']['newValue']&&_0x979ffe['data']['oldValue']);for(const _0x5ee957 of _0x111f47)Ee(_0x5ee957)||(_0x43bdd2['removeMarker'](_0x5ee957['getFirstMarker']()),_0x51a0ef=!0x0);return _0x51a0ef;}['noTrackChangesFixer'](_0x35ab67){if(_0x35ab67['batch']['isUndo']||!_0x35ab67['batch']['isLocal'])return!0x1;const _0x506dcf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x506dcf['trackChangesCommand']['value'])return!0x1;let _0x14e857=!0x1;const _0x3d5ab2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x55412a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x35b0e3=>'attribute'==_0x35b0e3['type'])['filter'](_0x45aa3e=>_0x3d5ab2['includes'](_0x45aa3e['attributeKey']));if(0x0==_0x55412a['length'])return _0x14e857;for(const _0x2cbd0b of _0x55412a){const _0x3b049e=_0x506dcf['_findSuggestions'](_0x2cbd0b['range'],'attribute')['filter'](_0x2bc896=>!_0x2bc896['meta']['isNextTo'])['map'](_0x199ec2=>_0x199ec2['suggestion'])['filter'](_0x35b2a1=>{const _0x5b5f3d=_0x506dcf['_getAttributeKey'](_0x35b2a1);return _0x3d5ab2['includes'](_0x5b5f3d);});if(_0x3b049e['length']){for(const _0x36f7c0 of _0x3b049e)_0x35ab67['removeMarker'](_0x36f7c0['getFirstMarker']());_0x14e857=!0x0;}}return _0x14e857;}['assureChains'](){const _0x460faa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31a9f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a0542;const _0x18adad=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1acff6=>{if(_0x1acff6['data']['oldRange']||!_0x1acff6['data']['newRange'])return null;if(!_0x1acff6['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2be143}=_0x460faa['_splitMarkerName'](_0x1acff6['name']);if(!_0x460faa['hasSuggestion'](_0x2be143))return null;const _0x252605=_0x460faa['getSuggestion'](_0x2be143);return _0x31a9f2['includes'](_0x252605['data']['key']);})['map'](_0x4b3898=>{const {id:_0x8e33fa}=_0x460faa['_splitMarkerName'](_0x4b3898['name']),_0x222592=_0x460faa['getSuggestion'](_0x8e33fa);return _0x5a0542=_0x222592['attributes']['groupId'],_0x222592['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x18adad['size'])return;const _0x31c5ad=_0x460faa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7df602=>'attribute'==_0x7df602['type']&&_0x7df602['data']&&_0x31a9f2['includes'](_0x7df602['data']['key'])&&_0x7df602['attributes']['groupId']!=_0x5a0542)['map'](_0x218370=>({'listItem':_0x218370['getFirstRange']()['start']['nodeAfter'],'groupId':_0x218370['attributes']['groupId']})),_0x7cdb9f=new Set();for(const {groupId:_0x12270e,listItem:_0x522382}of _0x31c5ad)_0x18adad['has'](_0x522382)&&_0x7cdb9f['add'](_0x12270e);for(const _0x17426a of _0x460faa['getSuggestions']())_0x7cdb9f['has'](_0x17426a['attributes']['groupId'])&&_0x17426a['setAttribute']('groupId',_0x5a0542);}['_supportLegacySuggestions'](){const _0x1809d6=this['editor'],_0xc3f277=_0x1809d6['locale'],_0x331bbc=_0x1809d6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x331bbc['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x452e61,_0xf7b79f){const _0x3f9952=[];for(let _0x2953d4 of _0x452e61)_0x2953d4['start']['nodeAfter']===_0x2953d4['end']['parent']&&(_0x2953d4=_0x1809d6['model']['createRange'](_0x1809d6['model']['createPositionAt'](_0x2953d4['start']['nodeAfter'],0x0))),_0x3f9952['push'](_0x2953d4);_0x1809d6['model']['change'](_0x53f7e4=>{const _0x406e49=_0x1809d6['model']['document']['selection'],_0x430452=Array['from'](_0x406e49['getRanges']())['map'](_0x547708=>_0x1ac0e2['fromRange'](_0x547708));_0x53f7e4['setSelection'](_0x3f9952),_0x1809d6['commands']['get'](_0xf7b79f['commandName'])['refresh'](),_0xf7b79f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1809d6['execute'](_0xf7b79f['commandName'],..._0xf7b79f['commandParams']),_0x53f7e4['setSelection'](_0x430452);for(const _0x28fd7e of _0x430452)_0x28fd7e['detach']();});}),_0x331bbc['descriptionFactory']['registerElementLabel'](function(_0x4aaf5b){const _0xbdf846=!_0x1809d6['model']['schema']['isObject'](_0x4aaf5b),_0x50d0eb=_0x4aaf5b['previousSibling'],_0x58f43d=_0x4aaf5b['nextSibling'],_0x5261a7=_0x4aaf5b['getAttribute']('listItemId'),_0x404a45=!_0x50d0eb||_0x50d0eb['getAttribute']('listItemId')!==_0x5261a7,_0x124687=!_0x58f43d||_0x58f43d['getAttribute']('listItemId')!==_0x5261a7;return _0xbdf846&&Boolean(_0x5261a7)&&_0x404a45&&_0x124687;},_0x414aca=>o(_0xc3f277,'ELEMENT_LIST_ITEM',_0x414aca));}['_registerLegacyDescription'](){const _0x51f177=this['editor'],_0x40fbe0=_0x51f177['locale'];function _0xfc37b1(_0x4562a9){const _0x1cbb2a=_0x51f177['commands']['get']('bulletedList')['value'],_0x5f338b=_0x51f177['commands']['get']('numberedList')['value'];return'numberedList'===_0x4562a9?_0x1cbb2a:_0x5f338b;}_0x51f177['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3331af){if('formatBlock'!=_0x3331af['type'])return;const {data:_0xa521f6}=_0x3331af;if(!_0xa521f6)return;let _0x414c73,_0x2d79bc,_0x411926,_0x33137b;switch(_0xa521f6['commandName']){case'bulletedList':_0x411926=_0xa521f6['commandParams'][0x0]['forceValue'],_0x33137b=_0xfc37b1(_0xa521f6['commandName']),_0x414c73=_0x411926?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33137b&&_0x51f177['config']['get']('list.multiBlock')||(_0x414c73='*Change\x20to:*\x20%0'),_0x2d79bc={'type':'format','content':o(_0x40fbe0,_0x414c73,o(_0x40fbe0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x411926=_0xa521f6['commandParams'][0x0]['forceValue'],_0x33137b=_0xfc37b1(_0xa521f6['commandName']),_0x414c73=_0x411926?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x33137b&&_0x51f177['config']['get']('list.multiBlock')||(_0x414c73='*Change\x20to:*\x20%0'),_0x2d79bc={'type':'format','content':o(_0x40fbe0,_0x414c73,o(_0x40fbe0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x414c73='*Indent:*\x20%0',_0x2d79bc={'type':'format','content':o(_0x40fbe0,_0x414c73,o(_0x40fbe0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x414c73=function(_0x143250){const _0x1b11de=_0x143250['getFirstRange']();let _0x5c43a0=_0x1b11de['start']['nodeAfter'];for(;_0x5c43a0&&_0x1b11de['containsItem'](_0x5c43a0);){if(_0x5c43a0['getAttribute']('listIndent')>0x0)return!0x1;_0x5c43a0=_0x5c43a0['nextSibling'];}return!0x0;}(_0x3331af)?o(_0x40fbe0,'*Format:*\x20remove\x20from\x20%0',o(_0x40fbe0,function(_0x13014a){return'ELEMENT_'+_0x13014a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3331af))):o(_0x40fbe0,'*Outdent:*\x20%0',o(_0x40fbe0,'ELEMENT_LIST_ITEM')),_0x2d79bc={'type':'format','content':_0x414c73};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xa521f6['multipleBlocks']&&(_0x414c73='*Merge:*\x20%0',_0x2d79bc={'type':'deletion','content':o(_0x40fbe0,_0x414c73,o(_0x40fbe0,'ELEMENT_LIST_ITEM'))});}return _0x2d79bc;});}}function Ee(_0x417812){let _0x2354a7=_0x417812['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2354a7;){const _0x2704a5=_0x2354a7['getAttribute']('listItemId');if(!_0x2704a5)return!0x1;if(_0x2704a5==_0x417812['data']['newValue'])return'newValue';if(_0x2704a5==_0x417812['data']['oldValue'])return'oldValue';_0x2354a7=_0x2354a7['previousSibling'];}return!0x1;}class pe extends _0x535470{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x36bc7f=this['editor']['config']['get']('list.properties'),_0xc650b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x36bc7f['styles']&&(_0xc650b3['enableDefaultAttributesIntegration']('listStyle'),_0xc650b3['registerBlockAttribute']('listStyle')),_0x36bc7f['reversed']&&(_0xc650b3['enableDefaultAttributesIntegration']('listReversed'),_0xc650b3['registerBlockAttribute']('listReversed')),_0x36bc7f['startIndex']&&(_0xc650b3['enableDefaultAttributesIntegration']('listStart'),_0xc650b3['registerBlockAttribute']('listStart'));const _0x1b71f9={'type':'format','content':''};_0xc650b3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x365aae=this['editor']['locale'];_0xc650b3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x365aae,'FORMAT_LIST_REVERSED')),_0xc650b3['descriptionFactory']['registerDescriptionCallback'](_0xe59fe=>{const {data:_0xa5617d}=_0xe59fe;if(_0xa5617d&&'listReversed'==_0xa5617d['key'])return null==_0xa5617d['newValue']||0x0==_0xa5617d['newValue']&&null==_0xa5617d['oldValue']?_0x1b71f9:void 0x0;}),_0xc650b3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x365aae,'FORMAT_LIST_START')),_0xc650b3['descriptionFactory']['registerDescriptionCallback'](_0x543952=>{const {data:_0x23f811}=_0x543952;if(_0x23f811&&'listStart'==_0x23f811['key'])return null==_0x23f811['newValue']||0x1==_0x23f811['newValue']&&null==_0x23f811['oldValue']?_0x1b71f9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ebf5c=>{if(_0x3ebf5c['batch']['isUndo'])return!0x1;let _0x5705a2=!0x1;const _0x3395bd=_0xc650b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a14b9=>{const _0x263756=_0xc650b3['_getAttributeKey'](_0x1a14b9);return'listStart'==_0x263756||'listReversed'==_0x263756;});for(const _0x5c04b9 of _0x3395bd){const _0x3b595c=_0x5c04b9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3b595c||'customNumbered'==_0x3b595c)continue;_0xc650b3['_findSuggestions'](_0x5c04b9['getFirstRange'](),'attribute')['find'](_0x2cd8a8=>'listType'==_0xc650b3['_getAttributeKey'](_0x2cd8a8['suggestion']))||(_0x3ebf5c['removeMarker'](_0x5c04b9['getFirstMarker']()),_0x5705a2=!0x0);}return _0x5705a2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x193790){const _0x35dff3=this['editor']['locale'],{data:_0x144578}=_0x193790,_0x5a7362={'type':'format','content':''};if(!_0x144578||'listStyle'!=_0x144578['key'])return;if(!_0x144578['oldValue'])return'default'==_0x144578['newValue']?_0x5a7362:{'type':'format','content':''+o(_0x35dff3,'*Set\x20format:*\x20%0',o(_0x35dff3,this['_getTranslationKeyForListStyle'](_0x144578['newValue'])))};if(!_0x144578['newValue']){if('default'==_0x144578['oldValue'])return _0x5a7362;let _0x572205=_0x193790['head'];for(;_0x572205;){if(_0x572205['data']&&'listType'==_0x572205['data']['key']&&_0x572205['data']['newValue'])return _0x5a7362;_0x572205=_0x572205['next'];}return{'type':'format','content':''+o(_0x35dff3,'*Remove\x20format:*\x20%0',o(_0x35dff3,this['_getTranslationKeyForListStyle'](_0x144578['oldValue'])))};}if('default'!=_0x144578['newValue'])return{'type':'format','content':''+o(_0x35dff3,'*Set\x20format:*\x20%0',o(_0x35dff3,this['_getTranslationKeyForListStyle'](_0x144578['newValue'])))};let _0x569e08=_0x193790['head'];for(;_0x569e08;){if(_0x569e08['data']&&'listType'==_0x569e08['data']['key']&&_0x569e08['data']['newValue']&&_0x569e08['data']['oldValue'])return _0x5a7362;_0x569e08=_0x569e08['next'];}return{'type':'format','content':o(_0x35dff3,'*Set\x20format:*\x20%0',o(_0x35dff3,'ELEMENT_'+_0x193790['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5f1395=this['editor'],_0x40106e=_0x5f1395['locale'];_0x5f1395['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b1ad=>{if('formatBlock'!=_0x36b1ad['type'])return;const {data:_0x52528d}=_0x36b1ad;if(!_0x52528d)return;let _0x51f74b,_0x57e6b7;switch(_0x52528d['commandName']){case'listStyle':_0x51f74b='*Change\x20to:*\x20%0',_0x57e6b7={'type':'format','content':o(_0x40106e,_0x51f74b,o(_0x40106e,this['_getTranslationKeyForListStyle'](_0x52528d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51f74b=_0x52528d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57e6b7={'type':'format','content':o(_0x40106e,_0x51f74b)};break;case'listStart':_0x51f74b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57e6b7={'type':'format','content':o(_0x40106e,_0x51f74b,_0x52528d['commandParams'][0x0]['startIndex'])};}return _0x57e6b7;});}['_getTranslationKeyForListStyle'](_0x38e2c6){return'ELEMENT_'+function(_0x493c54){if(ye['includes'](_0x493c54))return'bulleted';if(Se['includes'](_0x493c54))return'numbered';return null;}(_0x38e2c6)['toUpperCase']()+'_LIST_'+_0x38e2c6['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x535470{static get['requires'](){return[_0x1ccbb9];}['init'](){const _0x165b65=this['editor'],_0x32d4c6=_0x165b65['plugins']['get']('TrackChangesEditing'),_0xfecec9=_0x165b65['commands']['get']('enter');_0x32d4c6['enableCommand']('enter',()=>{_0x165b65['model']['change'](_0x32bd51=>{const _0x4a57ed=_0x165b65['model']['document']['selection'],_0x165927=_0x4a57ed['getFirstPosition'](),_0x3dc401=_0x1ac0e2['fromRange'](_0x4a57ed['getFirstRange']());if(_0xfecec9['enterBlock'](_0x32bd51)){const _0x211211=_0x165b65['model']['createPositionAt'](_0x165927['parent']['nextSibling'],0x0),_0x405f16=_0x32bd51['createRange'](_0x165927,_0x211211);_0x32d4c6['markInsertion'](_0x405f16);}else _0x32bd51['setSelection'](_0x32bd51['createRange'](_0x3dc401['end']));_0x3dc401['detach'](),_0xfecec9['fire']('afterExecute',{'writer':_0x32bd51});});}),_0x165b65['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x165b65,'split'),{'priority':'high'}),_0x165b65['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x46dd75,_0x338442,_0x2c9494)=>{const _0xca25dd=_0x2c9494['mapper']['markerNameToElements'](_0x338442['markerName']);if(_0xca25dd){for(const _0x23e81e of _0xca25dd)_0x23e81e['hasClass']('ck-suggestion-marker-split')&&(_0x2c9494['mapper']['unbindElementFromMarkerName'](_0x23e81e,_0x338442['markerName']),_0x2c9494['writer']['remove'](_0x23e81e));}},{'priority':'high'}),_0x165b65['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b6ba0,_0x3b4994,_0x219256)=>{_0x219256['options']['showSuggestionHighlights']&&_e(_0x165b65,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3b6ba0,_0x3b4994,_0x219256);},{'priority':'high'});}}class X extends _0x535470{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5c931a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c931a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5c931a['enableCommand']('findNext'),_0x5c931a['enableCommand']('findPrevious'),_0x5c931a['enableCommand']('replace'),_0x5c931a['enableCommand']('replaceAll');}['handleFindCommand'](_0x48f1bc,_0x53e0bd,_0x126237={}){const _0x2e2fe9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48f1bc(_0x53c0ec=>{let _0x335089=('string'==typeof _0x53e0bd?_0x2e2fe9['findByTextCallback'](_0x53e0bd,_0x126237):_0x53e0bd)(_0x53c0ec);Array['isArray'](_0x335089)&&(_0x335089={'results':_0x335089,'searchText':'string'==typeof _0x53e0bd?_0x53e0bd:''});const _0x1af007=_0x335089['results']['filter'](_0x76e62=>!0x1===this['_isInDeletionRange'](_0x76e62,_0x53c0ec['item']));return{..._0x335089,'results':_0x1af007};},_0x126237);}['_isInDeletionRange'](_0x3fcb1d,_0x191ed0){const _0x663c25=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x191ed0,_0x3fcb1d['start']),this['editor']['model']['createPositionAt'](_0x191ed0,_0x3fcb1d['end']));for(const _0x506425 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x663c25['getIntersection'](_0x506425['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x535470{['afterInit'](){const _0x1c178f=this['editor']['locale'],_0x593f84=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x29bae7,commandName:_0x10433c}of ro)this['editor']['plugins']['has'](_0x29bae7)&&(_0x593f84['enableDefaultAttributesIntegration'](_0x10433c),_0x593f84['registerInlineAttribute'](_0x10433c));_0x593f84['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c178f,'FORMAT_FONT_SIZE')),_0x593f84['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c178f,'FORMAT_FONT_FAMILY')),_0x593f84['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c178f,'FORMAT_FONT_COLOR')),_0x593f84['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c178f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bac2c=this['editor'],_0x6faba6=_0x1bac2c['locale'];_0x1bac2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340a96=>{const _0x10f2b3=_0x6faba6['t'];if('formatInline'!=_0x340a96['type'])return;const {data:_0x10c48a}=_0x340a96;if(null!=_0x10c48a){if('fontSize'==_0x10c48a['commandName']){const _0x57e725=_0x10c48a['commandParams'][0x0]['value'];if(_0x57e725){const _0x112af6=_0x10f2b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x147469=>_0x147469['model']==_0x57e725)['title'])['toLowerCase']();return{'type':'format','content':o(_0x6faba6,'*Set\x20font\x20size:*\x20%0',_0x112af6)};}return{'type':'format','content':o(_0x6faba6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10c48a['commandName']){const _0x525785=_0x10c48a['commandParams'][0x0]['value'];return _0x525785?{'type':'format','content':o(_0x6faba6,'*Set\x20font\x20family:*\x20%0',_0x525785)}:{'type':'format','content':o(_0x6faba6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10c48a['commandName']){const _0x118bac=_0x10c48a['commandParams'][0x0]['value'];if(_0x118bac){const _0x33ec8d=_0x36d69f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21d420=>_0x21d420['model']==_0x118bac);let _0x24cfe4=_0x118bac,_0x5f4d22='';return _0x33ec8d&&(_0x24cfe4=_0x33ec8d['label'],_0x5f4d22=_0x10f2b3(_0x24cfe4)['toLowerCase']()),{'type':'format','content':o(_0x6faba6,'*Set\x20font\x20color:*\x20%0',_0x5f4d22)['trim'](),'color':{'value':_0x118bac,'title':_0x5f4d22||_0x24cfe4}};}return{'type':'format','content':o(_0x6faba6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10c48a['commandName']){const _0x5ee4cb=_0x10c48a['commandParams'][0x0]['value'];if(_0x5ee4cb){const _0x5eabd8=_0x36d69f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4b43df=>_0x4b43df['model']==_0x5ee4cb);let _0x2af8f8=_0x5ee4cb,_0x5bff6b='';return _0x5eabd8&&(_0x2af8f8=_0x5eabd8['label'],_0x5bff6b=_0x10f2b3(_0x2af8f8)['toLowerCase']()),{'type':'format','content':o(_0x6faba6,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bff6b)['trim'](),'color':{'value':_0x5ee4cb,'title':_0x5bff6b||_0x2af8f8}};}return{'type':'format','content':o(_0x6faba6,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x535470{['afterInit'](){const _0x415d78=this['editor'],_0x2aabf9=_0x415d78['plugins']['get']('TrackChangesEditing'),_0x7adfdc=_0x415d78['commands']['get']('copyFormat'),_0x8f8e5=_0x415d78['commands']['get']('pasteFormat');_0x7adfdc&&_0x8f8e5&&(_0x2aabf9['enableDefaultAttributesIntegration']('pasteFormat'),_0x2aabf9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1ec1c0=this['editor'],_0x59f531=_0x1ec1c0['locale'];_0x1ec1c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1481fc=>{if('formatBlock'!=_0x1481fc['type']&&'formatInline'!=_0x1481fc['type'])return;const {data:_0x3e651d}=_0x1481fc;if(_0x3e651d&&'pasteFormat'===_0x3e651d['commandName']){const _0x4bd494=[],_0x3e260f=_0x3e651d['commandParams'][0x0];for(const [_0x2aeeac,_0x55232c]of Object['entries'](_0x3e260f))_0x4bd494['push'](so(_0x1ec1c0,_0x2aeeac,_0x55232c));return _0x4bd494['length']?{'type':'format','content':o(_0x59f531,'*Set\x20format\x20to:*\x20%0',_0x4bd494['join'](',\x20'))}:{'type':'format','content':o(_0x59f531,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59c5f4,_0x1d16dc,_0x428bb9){const _0x514e0f=_0x59c5f4['locale']['t'],_0x3670ce=_0x1d16dc['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e196a=_0x514e0f(_0x3670ce['charAt'](0x0)['toUpperCase']()+_0x3670ce['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x428bb9)return _0x5e196a;if('fontColor'===_0x1d16dc||'fontBackgroundColor'===_0x1d16dc){const _0x1cad3c=_0x36d69f(_0x59c5f4['config']['get']('fontColor.colors'))['find'](_0x1b33b6=>_0x1b33b6['model']==_0x428bb9);return _0x5e196a+'\x20('+(_0x1cad3c?_0x514e0f(_0x1cad3c['label'])['toLowerCase']():_0x428bb9)+')';}if('fontSize'===_0x1d16dc&&isNaN(parseFloat(_0x428bb9))){const _0x85d341=_0x59c5f4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59c5f4['config']['get']('fontSize.options'))['find'](_0x472cb5=>_0x472cb5['model']==_0x428bb9);return _0x5e196a+'\x20('+(_0x85d341?_0x514e0f(_0x85d341['title'])['toLowerCase']():_0x428bb9)+')';}return _0x5e196a+'\x20('+_0x428bb9+')';}class tt extends _0x535470{['_headingOptions'];['afterInit'](){const _0x20578f=this['editor'];if(!_0x20578f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x20578f['config']['get']('heading.options');const _0x5aff6e=_0x20578f['locale'],_0x4105d1=_0x20578f['plugins']['get']('TrackChangesEditing');_0x4105d1['enableDefaultAttributesIntegration']('heading');for(const _0x230401 of this['_headingOptions'])'paragraph'!=_0x230401['model']&&_0x4105d1['descriptionFactory']['registerElementLabel'](_0x230401['model'],_0xd7e47c=>{const _0x387510=this['_getHeadingLevel'](_0x230401['model']);return null!==_0x387510?_0x530ec6(_0xd7e47c,_0x387510):_0x21b155(_0xd7e47c,_0x230401['title']);});function _0x530ec6(_0x2f0107,_0x23cb50){return o(_0x5aff6e,'ELEMENT_HEADING',[_0x2f0107,_0x23cb50]);}function _0x21b155(_0x1bdcbf,_0x442df3){return o(_0x5aff6e,'ELEMENT_HEADING_CUSTOM',[_0x1bdcbf,_0x442df3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x218e06=this['editor'],_0x425a06=_0x218e06['locale'];function _0x4863e1(_0x45d821,_0x38e566){return o(_0x425a06,'ELEMENT_HEADING_CUSTOM',[_0x45d821,_0x38e566]);}_0x218e06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48de43=>{if('formatBlock'!=_0x48de43['type'])return;const {data:_0x29913f}=_0x48de43;if(_0x29913f&&'heading'==_0x29913f['commandName']){const _0x4f7e6f=_0x29913f['commandParams'][0x0]['value'],_0x5957ea=this['_getHeadingLevel'](_0x4f7e6f);if(null!==_0x5957ea)return{'type':'format','content':o(_0x425a06,'*Change\x20to:*\x20%0',(_0xf34a3=0x1,_0x4c6d05=_0x5957ea,o(_0x425a06,'ELEMENT_HEADING',[_0xf34a3,_0x4c6d05])))};const _0x156785=this['_headingOptions']['find'](_0x10297e=>_0x10297e['model']===_0x4f7e6f)['title'];return{'type':'format','content':o(_0x425a06,'*Change\x20to:*\x20%0',_0x4863e1(0x1,_0x156785))};}var _0xf34a3,_0x4c6d05;});}['_getHeadingLevel'](_0x35e33e){const _0x966dd7=_0x35e33e['match'](/^heading(\d+)/);if(_0x966dd7)return _0x966dd7[0x1];const _0x4c91d2=this['_headingOptions']?.['find'](_0x54a57e=>_0x54a57e['model']==_0x35e33e);if(_0x4c91d2&&_0x4c91d2['view']){const _0x1af6ce=_0x4c91d2['view'],_0x50fb18=(_0x1af6ce['name']??_0x1af6ce)['match'](/^h(\d+)/);if(_0x50fb18)return _0x50fb18[0x1];}return null;}}class et extends _0x535470{['afterInit'](){const _0x3abfcc=this['editor'];if(!_0x3abfcc['plugins']['has']('HighlightEditing'))return;const _0x175e00=_0x3abfcc['plugins']['get']('TrackChangesEditing'),_0x1c17e0=_0x3abfcc['locale'];_0x175e00['enableDefaultAttributesIntegration']('highlight'),_0x175e00['registerInlineAttribute']('highlight'),_0x175e00['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1c17e0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd6f3=this['editor'],_0x4f58a9=_0x4bd6f3['locale'];_0x4bd6f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ceb45=>{if('formatInline'!=_0x2ceb45['type'])return;const {data:_0x689d76}=_0x2ceb45;if(_0x689d76&&'highlight'==_0x689d76['commandName']){const _0x283506=_0x4f58a9['t'],_0x1a25d2=_0x689d76['commandParams'][0x0]['value'];if(_0x1a25d2){const _0x268b56=_0x4bd6f3['config']['get']('highlight.options')['find'](_0x32a950=>_0x32a950['model']==_0x1a25d2),_0xa42e75=_0x283506(_0x268b56['title'])['toLowerCase']();return{'type':'format','content':o(_0x4f58a9,'*Set\x20highlight:*\x20%0',_0xa42e75),'color':{'value':_0x268b56['color'],'title':_0x268b56['title']}};}return{'type':'format','content':o(_0x4f58a9,'*Remove\x20highlight*',o(_0x4f58a9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x535470{['afterInit'](){const _0x332c4e=this['editor'];if(!_0x332c4e['plugins']['has']('HorizontalLineEditing'))return;_0x332c4e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5f0e0a=_0x332c4e['plugins']['get']('TrackChangesEditing'),_0x3de372=_0x332c4e['locale'];_0x5f0e0a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x48f6c1=>o(_0x3de372,'ELEMENT_HORIZONTAL_LINE',_0x48f6c1)),_0x332c4e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fae8d,{writer:_0x40c474,options:_0x26152d})=>{if(!_0x26152d['showSuggestionHighlights'])return null;const _0x1e132b=_0x40c474['createContainerElement']('div'),_0x46e90c=_0x40c474['createEmptyElement']('hr');return _0x40c474['addClass']('ck-horizontal-line',_0x1e132b),_0x40c474['insert'](_0x40c474['createPositionAt'](_0x1e132b,0x0),_0x46e90c),_0x1e132b;},'converterPriority':'high'});}}class st extends _0x535470{['afterInit'](){const _0x1423c2=this['editor'];if(!_0x1423c2['plugins']['has']('HtmlEmbed'))return;const _0x4bec59=_0x1423c2['plugins']['get']('TrackChangesEditing'),_0x225b7f=_0x1423c2['locale'];_0x4bec59['descriptionFactory']['registerElementLabel']('rawHtml',_0x413cfe=>o(_0x225b7f,'ELEMENT_HTML_EMBED',_0x413cfe)),_0x4bec59['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4bec59['registerBlockAttribute']('value'),_0x4bec59['descriptionFactory']['registerDescriptionCallback'](_0x4f10ae=>{if('attribute'!=_0x4f10ae['type'])return;const {data:_0x58a636}=_0x4f10ae;if(_0x58a636&&'value'==_0x58a636['key']&&_0x4f10ae['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x39be82=o(_0x225b7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x225b7f,'*Change\x20%0\x20content*',_0x39be82)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205507=this['editor'],_0x16c4fc=_0x205507['locale'];_0x205507['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8e31be=>{if('formatBlock'!=_0x8e31be['type'])return;const {data:_0x36185e}=_0x8e31be;if(_0x36185e&&'htmlEmbed'==_0x36185e['commandName']){const _0x39a2f8=o(_0x16c4fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16c4fc,'*Change\x20%0\x20content*',_0x39a2f8)};}});}}class nt extends _0x535470{['afterInit'](){const _0x7b1262=this['editor'];if(!_0x7b1262['plugins']['has']('ImageEditing'))return;const _0x3ef645=_0x7b1262['plugins']['get']('TrackChangesEditing'),_0x4c5cdd=_0x7b1262['plugins']['get']('ImageUtils'),_0x7cc6f=_0x7b1262['locale'];_0x3ef645['enableCommand']('insertImage'),_0x3ef645['descriptionFactory']['registerElementLabel']('imageBlock',_0x2feea9=>o(_0x7cc6f,'ELEMENT_IMAGE',_0x2feea9)),_0x3ef645['descriptionFactory']['registerElementLabel']('imageInline',_0x97a898=>o(_0x7cc6f,'ELEMENT_INLINE_IMAGE',_0x97a898)),_0x3ef645['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7cc6f,'ELEMENT_CAPTION')),_0x7b1262['plugins']['has']('ImageUploadEditing')&&_0x3ef645['enableCommand']('uploadImage'),_0x7b1262['plugins']['has']('ImageBlockEditing')&&_0x7b1262['plugins']['has']('ImageInlineEditing')&&(_0x3ef645['enableCommand']('imageTypeInline',(_0x355209,_0x28fe81)=>{const _0x43ba42=_0x4c5cdd['getClosestSelectedImageElement'](_0x7b1262['model']['document']['selection']);_0x7b1262['model']['change'](()=>{_0x3ef645['markBlockFormat'](_0x43ba42,{'commandName':'imageTypeInline','commandParams':[_0x28fe81]},[],'convertBlockImageToInline');});}),_0x3ef645['enableCommand']('imageTypeBlock',(_0x303580,_0x5b1b0c)=>{_0x7b1262['model']['change'](_0x22fbfe=>{let _0x4310d4=_0x4c5cdd['getClosestSelectedImageElement'](_0x7b1262['model']['document']['selection']),_0x75db32=_0x22fbfe['createRangeOn'](_0x4310d4);const _0x1e13bc=_0x392ddf['fromPosition'](_0x75db32['start'],'toPrevious'),_0x1aa692=_0x392ddf['fromPosition'](_0x75db32['end'],'toNext');_0x3ef645['forceDefaultExecution'](()=>_0x303580(_0x5b1b0c)),_0x4310d4=_0x4c5cdd['getClosestSelectedImageElement'](_0x7b1262['model']['document']['selection']),_0x75db32=_0x22fbfe['createRangeOn'](_0x4310d4);const _0x590a07=_0x22fbfe['createRange'](_0x1e13bc,_0x1aa692);_0x1e13bc['detach'](),_0x1aa692['detach'](),_0x3ef645['markBlockFormat'](_0x4310d4,{'commandName':'imageTypeInline','commandParams':[_0x5b1b0c]},[],'convertInlineImageToBlock'),_0x590a07['start']['isBefore'](_0x75db32['start'])&&_0x3ef645['markInsertion'](_0x22fbfe['createRange'](_0x590a07['start'],_0x75db32['start']),'convertInlineImageToBlock'),_0x75db32['end']['isBefore'](_0x590a07['end'])&&_0x3ef645['markInsertion'](_0x22fbfe['createRange'](_0x75db32['end'],_0x590a07['end']),'convertInlineImageToBlock');});}),_0x3ef645['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ef645['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ef645['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ef645['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ef645['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ef645['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23e6a4])=>{const _0x314afd=_0x3ef645['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x8e47c3=_0x23e6a4['start'],_0x13e2af=_0x23e6a4['end'];const _0x3e5f7f=_0x7b1262['model']['schema']['getNearestSelectionRange'](_0x8e47c3,'backward'),_0x54d45d=_0x7b1262['model']['schema']['getNearestSelectionRange'](_0x13e2af,'forward');_0x3e5f7f['isCollapsed']&&(_0x8e47c3=_0x3e5f7f['start']),_0x54d45d['isCollapsed']&&(_0x13e2af=_0x54d45d['end']),_0x314afd([_0x7b1262['model']['createRange'](_0x8e47c3,_0x13e2af)]);}),_0x3ef645['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e336b),_0x3ef645['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e336b)),_0x7b1262['plugins']['has']('ImageCaptionEditing')&&(_0x3ef645['enableCommand']('toggleImageCaption',(_0x61aef,_0x4390cd)=>{const _0x422f18=_0x7b1262['plugins']['get']('ImageCaptionUtils');let _0x1b826c=_0x4c5cdd['getClosestSelectedImageElement'](_0x7b1262['model']['document']['selection']),_0x29bd97=_0x422f18['getCaptionFromImageModelElement'](_0x1b826c);_0x7b1262['model']['change'](()=>{if(_0x29bd97)return void _0x3ef645['markDeletion'](_0x7b1262['model']['createRangeOn'](_0x29bd97));const _0x2dd43a=_0x4c5cdd['isBlockImage'](_0x1b826c);_0x61aef(_0x4390cd),_0x1b826c=_0x4c5cdd['getClosestSelectedImageElement'](_0x7b1262['model']['document']['selection']),_0x29bd97=_0x422f18['getCaptionFromImageModelElement'](_0x1b826c),_0x3ef645['markInsertion'](_0x7b1262['model']['createRangeOn'](_0x29bd97),_0x2dd43a?null:'imageCaption');});}),_0x3ef645['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e336b));const _0x31841d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xf3de35(_0x3739bb,_0x98c8c2){const _0xa62d48=_0x31841d['findIndex'](({type:_0x116063,subType:_0x25487e})=>_0x3739bb['type']==_0x116063&&_0x3739bb['subType']==_0x25487e),_0x27dec9=_0x31841d['findIndex'](({type:_0x3f5813,subType:_0x458fa4})=>_0x98c8c2['type']==_0x3f5813&&_0x98c8c2['subType']==_0x458fa4);if(_0xa62d48<0x0||_0x27dec9<0x0)return!0x1;const _0x3a0e5b=_0x3739bb['getFirstRange'](),_0x10600d=_0x98c8c2['getFirstRange']();if((0x0==_0xa62d48||0x1==_0xa62d48)&&0x2==_0x27dec9&&_0x3a0e5b['isIntersecting'](_0x10600d))return!0x0;if(0x2==_0xa62d48&&0x3==_0x27dec9){const _0x31089e=_0x3ef645['_findSuggestions'](_0x3a0e5b,'insertion')['filter'](({suggestion:_0xb66451,meta:_0x4e3f11})=>_0x4e3f11['isOwn']&&'convertInlineImageToBlock'==_0xb66451['subType']);if(_0x31089e['length']>0x1&&_0x10600d['end']['isEqual'](_0x3a0e5b['start']))return!0x0;if(0x1==_0x31089e['length']&&(_0x3a0e5b['start']['isEqual'](_0x10600d['end'])||_0x3a0e5b['end']['isEqual'](_0x10600d['start'])))return!0x0;}if(0x3==_0xa62d48&&0x3==_0x27dec9&&_0x3a0e5b['start']['isBefore'](_0x10600d['start'])){const _0x3437f9=_0x3a0e5b['end']['nodeAfter'],_0x535a38=_0x10600d['start']['nodeBefore'];return _0x4c5cdd['isBlockImage'](_0x3437f9)&&_0x3437f9===_0x535a38;}return!0x1;}function _0x3e336b(_0x408f09,_0x140354){return _0xf3de35(_0x408f09,_0x140354)?[_0x408f09,_0x140354]:_0xf3de35(_0x140354,_0x408f09)?[_0x140354,_0x408f09]:null;}_0x7b1262['plugins']['has']('ImageResize')&&(_0x3ef645['enableDefaultAttributesIntegration']('resizeImage'),_0x3ef645['registerBlockAttribute']('resizedWidth'),_0x3ef645['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7cc6f,'FORMAT_IMAGE_SIZE'))),_0x7b1262['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ef645['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ef645['registerBlockAttribute']('alt')),_0x3ef645['descriptionFactory']['registerDescriptionCallback'](_0x281666=>{if(!!_0x31841d['find'](({type:_0x4648b2,subType:_0x41b4ab})=>_0x281666['type']==_0x4648b2&&_0x281666['subType']==_0x41b4ab))return _0x281666['previous']?{}:void 0x0;}),_0x3ef645['descriptionFactory']['registerDescriptionCallback'](_0x16b740=>{if('insertion'==_0x16b740['type']||'deletion'==_0x16b740['type']){const _0x2a473b=_0x16b740['getContainedElement']();if(_0x2a473b&&_0x2a473b['is']('element','caption'))return{'type':'insertion'==_0x16b740['type']?'addObject':'removeObject','element':_0x2a473b,'quantity':0x1};}}),_0x3ef645['descriptionFactory']['registerDescriptionCallback'](_0x5ce1e1=>'formatBlock'==_0x5ce1e1['type']&&'convertInlineImageToBlock'==_0x5ce1e1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ce1e1['type']&&'convertBlockImageToInline'==_0x5ce1e1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ef645['descriptionFactory']['registerDescriptionCallback'](_0x18f885=>{if('attribute'!=_0x18f885['type'])return;const {data:_0x2f05d0}=_0x18f885;if(!_0x2f05d0||'alt'!=_0x2f05d0['key'])return;const _0x538350=_0x2f05d0['newValue'];return _0x538350?{'type':'format','content':o(_0x7cc6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x538350+'\x22')}:{'type':'format','content':o(_0x7cc6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d3625=this['editor'],_0x4a2fc8=_0x3d3625['locale'];_0x3d3625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401109=>{if('formatBlock'!=_0x401109['type']&&'formatInline'!=_0x401109['type'])return;const {data:_0x5e8fb2}=_0x401109;if(_0x5e8fb2){if('imageTextAlternative'==_0x5e8fb2['commandName']){const _0x5405b7=_0x5e8fb2['commandParams'][0x0]['newValue'];return _0x5405b7?{'type':'format','content':o(_0x4a2fc8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5405b7+'\x22')}:{'type':'format','content':o(_0x4a2fc8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e8fb2['commandName']){const _0x371417=_0x5e8fb2['commandParams'][0x0]['width'];return _0x371417?{'type':'format','content':o(_0x4a2fc8,'*Set\x20image\x20width:*\x20%0',_0x371417)}:{'type':'format','content':o(_0x4a2fc8,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x535470{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x9a7a9d=this['editor']['locale'],_0xd078da=this['editor']['plugins']['get']('TrackChangesEditing');_0xd078da['enableDefaultAttributesIntegration']('replaceImageSource'),_0xd078da['registerBlockAttribute']('src'),_0xd078da['descriptionFactory']['registerDescriptionCallback'](_0x34238c=>{if('attribute'!=_0x34238c['type'])return;const {data:_0x58c552}=_0x34238c;return _0x58c552&&'src'==_0x58c552['key']?_0x58c552['newValue']&&_0x58c552['oldValue']?{'type':'format','content':o(_0x9a7a9d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18434b=this['editor']['plugins']['get']('TrackChangesEditing');_0x18434b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x18434b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18434b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x18434b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16094d=this['editor'],_0xd8a76d=_0x16094d['locale'];_0x16094d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xabae9=>{if('formatBlock'!=_0xabae9['type']&&'formatInline'!=_0xabae9['type'])return;const {data:_0x1a5289}=_0xabae9;if(!_0x1a5289||'replaceImageSource'!=_0x1a5289['commandName'])return;return{'type':'format','content':o(_0xd8a76d,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x535470{['afterInit'](){const _0x909597=this['editor'];if(!_0x909597['plugins']['has']('ImageStyleEditing'))return;const _0x154a02=_0x909597['plugins']['get']('TrackChangesEditing'),_0x3f53da=_0x909597['plugins']['get']('ImageUtils'),_0x19dbe6={};_0x154a02['enableCommand']('imageStyle',(_0x2758a7,_0x3c3954)=>{const _0xec263a=_0x909597['plugins']['get']('Users')['me'],_0x49d973=_0x909597['commands']['get']('imageStyle');let _0xcbf675=_0x3f53da['getClosestSelectedImageElement'](_0x909597['model']['document']['selection']),_0x53e181=_0x909597['model']['createRangeOn'](_0xcbf675),_0x2d7031=_0x49d973['value'];if(_0x2d7031==_0x3c3954['value'])return;const _0x31b00c={'commandName':'imageStyle','commandParams':[_0x3c3954],'formatGroupId':_0x140993()};_0x909597['model']['change'](()=>{if(_0x154a02['getSuggestions']()['filter'](_0x4bc5c9=>_0x4bc5c9['isInContent']&&_0xec263a==_0x4bc5c9['author']&&('formatBlock'==_0x4bc5c9['type']||'formatInline'==_0x4bc5c9['type'])&&('imageStylePreApply'==_0x4bc5c9['subType']||'imageStylePostApply'==_0x4bc5c9['subType'])&&_0x4bc5c9['getFirstRange']()['isEqual'](_0x53e181))['forEach'](_0x29bd5b=>_0x154a02['discardSuggestion'](_0x29bd5b['head'])),_0xcbf675=_0x3f53da['getClosestSelectedImageElement'](_0x909597['model']['document']['selection']),_0x53e181=_0x909597['model']['createRangeOn'](_0xcbf675),_0x49d973['refresh'](),_0x909597['commands']['get']('imageTypeInline')['refresh'](),_0x909597['commands']['get']('imageTypeBlock')['refresh'](),_0x2d7031=_0x49d973['value'],_0x2d7031!=_0x3c3954['value'])return _0x3f53da['isInlineImage'](_0xcbf675)&&_0x49d973['shouldConvertImageType'](_0x3c3954['value'],_0xcbf675)?(_0x2758a7({..._0x3c3954,'setImageSizes':!0x1}),_0xcbf675=_0x3f53da['getClosestSelectedImageElement'](_0x909597['model']['document']['selection']),void _0x154a02['markBlockFormat'](_0xcbf675,{..._0x31b00c,'commandReversedParams':[{'value':_0x2d7031||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f53da['isBlockImage'](_0xcbf675)?_0x154a02['markBlockFormat'](_0xcbf675,_0x31b00c,[],'imageStylePostApply'):_0x154a02['markInlineFormat'](_0x53e181,_0x31b00c,'imageStylePostApply'));});});for(const _0x8c8342 of _0x909597['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x19dbe6[_0x8c8342['name']]=_0x8c8342['title']['toLowerCase']();_0x154a02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x154a02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x154a02['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x154a02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1d3c51])=>{_0x3f53da['setImageNaturalSizeAttributes'](_0x1d3c51['getContainedElement']());}),_0x154a02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x14af9a,_0x35902c)=>{_0x154a02['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x14af9a,{'commandName':_0x35902c['commandName'],'commandParams':_0x35902c['commandReversedParams']});}),_0x154a02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x165060,_0x5066bb){if(_0x48a83d(_0x165060,_0x5066bb))return[_0x165060,_0x5066bb];if(_0x48a83d(_0x5066bb,_0x165060))return[_0x5066bb,_0x165060];return null;});const _0x1d7bba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48a83d(_0x176e4d,_0x43c27e){const _0x1a1af6=_0x1d7bba['findIndex'](({type:_0x447576,subType:_0x4b9248})=>_0x176e4d['type']==_0x447576&&_0x176e4d['subType']==_0x4b9248),_0x5d0a1e=_0x1d7bba['findIndex'](({type:_0x59231f,subType:_0x297fed})=>_0x43c27e['type']==_0x59231f&&_0x43c27e['subType']==_0x297fed);if(_0x1a1af6<0x0||_0x5d0a1e<0x0)return!0x1;const _0x28b0f2=_0x176e4d['getFirstRange'](),_0x55416d=_0x43c27e['getFirstRange']();if((0x0==_0x1a1af6||0x1==_0x1a1af6)&&0x2==_0x5d0a1e&&_0x28b0f2['isIntersecting'](_0x55416d))return!0x0;if(0x2==_0x1a1af6&&0x3==_0x5d0a1e){const _0x159cd6=_0x154a02['_findSuggestions'](_0x28b0f2,'insertion')['filter'](({suggestion:_0x52a259,meta:_0x506c7c})=>_0x506c7c['isOwn']&&'convertInlineImageToBlock'==_0x52a259['subType']);if(_0x159cd6['length']>0x1&&_0x55416d['end']['isEqual'](_0x28b0f2['start']))return!0x0;if(0x1==_0x159cd6['length']&&(_0x28b0f2['start']['isEqual'](_0x55416d['end'])||_0x28b0f2['end']['isEqual'](_0x55416d['start'])))return!0x0;}if(0x3==_0x1a1af6&&0x3==_0x5d0a1e&&_0x28b0f2['start']['isBefore'](_0x55416d['start'])){const _0x284b2f=_0x28b0f2['end']['nodeAfter'],_0x1abdaa=_0x55416d['start']['nodeBefore'];return _0x3f53da['isBlockImage'](_0x284b2f)&&_0x284b2f===_0x1abdaa;}return!0x1;}_0x909597['model']['document']['registerPostFixer'](()=>{let _0x2ededd=!0x1;const _0x5942c4=Array['from'](_0x909597['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d85b5,data:_0x43fee1}of _0x5942c4){const {group:_0x313f7d,type:_0x122333,subType:_0x54307f,id:_0xd5e999}=_0x154a02['_splitMarkerName'](_0x3d85b5);if('suggestion'==_0x313f7d&&_0x154a02['hasSuggestion'](_0xd5e999)){if('formatBlock'==_0x122333&&('imageStylePreApply'==_0x54307f||'imageStylePostApply'==_0x54307f)){const _0x45c3b4=_0x154a02['getSuggestion'](_0xd5e999);if(_0x43fee1['newRange']){const _0x2f7f55=_0x45c3b4['getFirstRange']()['getContainedElement']();if(_0x3f53da['isBlockImage'](_0x2f7f55))continue;_0x154a02['discardSuggestion'](_0x45c3b4),_0x2ededd=!0x0;}}if('insertion'==_0x122333&&'imageCaption'==_0x54307f&&!_0x43fee1['newRange']){const _0x9517b0=_0x154a02['getSuggestion'](_0xd5e999);_0x9517b0['next']&&_0x9517b0['next']['isInContent']&&(_0x154a02['discardSuggestion'](_0x9517b0['next']),_0x2ededd=!0x0);}}}return _0x2ededd;}),this['_registerLegacyDescription'](_0x19dbe6);}['_registerLegacyDescription'](_0x709e36){const _0x599922=this['editor'],_0x41fdf3=_0x599922['locale'];_0x599922['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281e16=>{if('formatBlock'!=_0x281e16['type']&&'formatInline'!=_0x281e16['type'])return;const {data:_0x1c38a7}=_0x281e16;if(!_0x1c38a7||'imageStyle'!=_0x1c38a7['commandName'])return;const _0xcd0ab5=_0x1c38a7['commandParams'][0x0]['value'];return _0x2091f0('side'===_0xcd0ab5?o(_0x41fdf3,'FORMAT_SIDE_IMAGE'):_0x709e36[_0xcd0ab5]||_0xcd0ab5);function _0x2091f0(_0x4f5048){return{'type':'format','content':o(_0x41fdf3,'*Format:*\x20%0',_0x4f5048)};}});}}class at extends _0x535470{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xd8e6e6){super(_0xd8e6e6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a411e=this['editor'],_0x423558=_0x4a411e['commands']['get']('importWord'),_0x1f07d7=_0x4a411e['commands']['get']('trackChanges');_0x423558&&(_0x423558['on']('execute',(_0x6f1843,[,_0x37d484])=>{this['_trackChangesValueDuringImport']=_0x1f07d7['value'],_0x37d484['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x423558,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x423558,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1f07d7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a411e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x474c41,_0x39bbe1){const {suggestions:_0x385c35}=_0x39bbe1,_0xd4abe=this['editor']['commands']['get']('trackChanges'),_0x3095f2=_0xd4abe['value'];this['_trackChangesValueDuringImport']!==_0x3095f2&&(_0xd4abe['execute'](),this['_trackChangesExecuted']=!0x0),_0x385c35&&_0x385c35['forEach'](({id:_0x49c1a5,type:_0x55c193,author:_0x3e8c2d,created_at:_0x562604})=>{const _0x235427={'id':_0x49c1a5,'type':_0x55c193,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3e8c2d,'createdAt':_0x562604?new Date(_0x562604):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x235427);});}}class ct extends _0x535470{['afterInit'](){const _0x316215=this['editor'],_0x9c7e26=_0x316215['plugins']['get']('TrackChangesEditing');if(_0x316215['plugins']['has']('IndentEditing')&&(_0x9c7e26['enableCommand']('indent'),_0x9c7e26['enableCommand']('outdent')),_0x316215['plugins']['has']('IndentBlock')){for(const _0x51e190 of['indentBlock','outdentBlock'])_0x9c7e26['enableDefaultAttributesIntegration'](_0x51e190);}const _0x359c5b=_0x316215['locale'];_0x9c7e26['registerBlockAttribute']('blockIndent'),_0x9c7e26['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x359c5b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26582d=this['editor'],_0x3f3705=_0x26582d['locale'],_0x22984b=_0x26582d['plugins']['get']('TrackChangesEditing');_0x22984b['descriptionFactory']['registerDescriptionCallback'](_0x4715ae=>{if('formatBlock'!=_0x4715ae['type'])return;const {data:_0x7ff2e2}=_0x4715ae;if(!_0x7ff2e2)return;if('indentBlock'!=_0x7ff2e2['commandName']&&'outdentBlock'!=_0x7ff2e2['commandName'])return;const _0x1ed60b=_0x4715ae['getItems']()[0x0],_0x356b19=_0x22984b['descriptionFactory']['getItemLabel'](_0x1ed60b);return'indentBlock'==_0x7ff2e2['commandName']?{'type':'format','content':o(_0x3f3705,'*Indent:*\x20%0',_0x356b19)}:'outdentBlock'==_0x7ff2e2['commandName']?{'type':'format','content':o(_0x3f3705,'*Outdent:*\x20%0',_0x356b19)}:void 0x0;});}}class ut extends _0x535470{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x535470{['afterInit'](){const _0x39123d=this['editor'];if(!_0x39123d['plugins']['has']('LinkEditing'))return;const _0x170370=_0x39123d['plugins']['get']('TrackChangesEditing'),_0x221a2f=_0x39123d['commands']['get']('link');_0x170370['enableDefaultAttributesIntegration']('link'),_0x170370['enableDefaultAttributesIntegration']('unlink'),_0x170370['registerInlineAttribute']('linkHref');for(const _0xd2f2f6 of _0x221a2f['manualDecorators'])_0x170370['registerInlineAttribute'](_0xd2f2f6['id']),_0x170370['descriptionFactory']['registerAttributeLabel'](_0xd2f2f6['id'],'link\x20('+_0xd2f2f6['label']['toLowerCase']()+')');_0x170370['descriptionFactory']['registerDescriptionCallback'](_0x4d16a9=>{if('attribute'!=_0x4d16a9['type'])return;const {data:_0x15af21}=_0x4d16a9;if(!_0x15af21||'linkHref'!=_0x15af21['key'])return;const _0x1d8e18=_0x15af21['newValue'],_0x25c615=_0x39123d['locale'];return{'type':'format','content':null==_0x1d8e18?o(_0x25c615,'*Remove\x20link*'):o(_0x25c615,'*Set\x20link:*\x20%0','\x22'+_0x1d8e18+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c018b=this['editor'],_0x52d471=_0x5c018b['locale'];_0x5c018b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52f489=>{if('formatInline'!=_0x52f489['type'])return;const {data:_0x2f4f94}=_0x52f489;if(_0x2f4f94){if('link'==_0x2f4f94['commandName']){const _0x45444c=_0x2f4f94['commandParams'][0x0];return{'type':'format','content':o(_0x52d471,'*Set\x20link:*\x20%0','\x22'+_0x45444c+'\x22')};}return'unlink'==_0x2f4f94['commandName']?{'type':'format','content':o(_0x52d471,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x535470{['afterInit'](){const _0x33d0fe=this['editor'],_0x470d00=_0x33d0fe['locale'];if(!_0x33d0fe['plugins']['has']('LegacyListEditing'))return;const _0x4effcf=_0x33d0fe['plugins']['get']('TrackChangesEditing'),_0x3bfbcd=_0x33d0fe['plugins']['has']('LegacyTodoListEditing');function _0x588524(_0x1f998b){return()=>{const _0x35a67f=_0x33d0fe['model']['document']['selection'],_0x56b9fe=_0x33d0fe['commands']['get'](_0x1f998b);if(_0x56b9fe['value'])return void _0x33d0fe['execute']('paragraph',{});const _0x3351ec=_0x1f998b['slice'](0x0,-0x4),_0x5e263b=function(_0xb83449,_0x48fb5b,_0x2bea74){let _0x503fdb=Array['from'](_0xb83449)['filter'](_0x3ca6cd=>function(_0x4a182c,_0x2432d4){return _0x2432d4['checkChild'](_0x4a182c['parent'],'listItem')&&!_0x2432d4['isObject'](_0x4a182c);}(_0x3ca6cd,_0x2bea74));_0x503fdb=_0x503fdb['filter'](_0x4c5555=>!_0x4c5555['is']('element','listItem')||_0x4c5555['getAttribute']('listType')!=_0x48fb5b);const _0x1d5210=new Set();for(const _0x3f1edc of _0x503fdb)_0x3f1edc['is']('element','listItem')?_0x1d5210['add'](fe(_0x3f1edc)):_0x1d5210['add'](_0x3f1edc);return Array['from'](_0x1d5210);}(_0x35a67f['getSelectedBlocks'](),_0x3351ec,_0x33d0fe['model']['schema']);_0x33d0fe['model']['change'](()=>{for(const _0x579bc9 of _0x5e263b)_0x4effcf['markBlockFormat'](_0x579bc9,{'commandName':_0x1f998b,'commandParams':[{'forceValue':!_0x56b9fe['value']}],'formatGroupId':'blockName'},ue(_0x579bc9));});};}function _0x29cde4(_0x538454){return()=>{const _0x12664f=function(_0x13d8e7){let _0x5961f7=Array['from'](_0x13d8e7);const _0x1034ef=_0x5961f7['findIndex'](_0x2dec89=>'listItem'!=_0x2dec89['name']);return _0x1034ef>-0x1&&(_0x5961f7=_0x5961f7['slice'](0x0,_0x1034ef)),_0x5961f7;}(_0x33d0fe['model']['document']['selection']['getSelectedBlocks']()),_0x1c63fe=_0x33d0fe['model']['createRange'](_0x33d0fe['model']['createPositionAt'](_0x12664f[0x0],'before'),_0x33d0fe['model']['createPositionAt'](_0x12664f[_0x12664f['length']-0x1],'end'));_0x33d0fe['model']['change'](()=>{_0x4effcf['markBlockFormat'](_0x1c63fe,{'commandName':_0x538454,'commandParams':[],'formatGroupId':'listIndent'},function(_0x273885){const _0x20df05=new Set();for(const _0x2e43e3 of _0x273885){let _0x2de7cb=_0x2e43e3['nextSibling'];for(;_0x2de7cb&&_0x2de7cb['getAttribute']('listIndent')>_0x2e43e3['getAttribute']('listIndent');)_0x20df05['add'](_0x2de7cb),_0x2de7cb=_0x2de7cb['nextSibling'];}return Array['from'](_0x20df05);}(_0x12664f));});};}_0x4effcf['enableCommand']('numberedList',_0x588524('numberedList')),_0x4effcf['enableCommand']('bulletedList',_0x588524('bulletedList')),_0x3bfbcd&&_0x4effcf['enableCommand']('todoList',_0x588524('todoList')),_0x4effcf['enableCommand']('indentList',_0x29cde4('indentList')),_0x4effcf['enableCommand']('outdentList',_0x29cde4('outdentList')),_0x3bfbcd&&_0x4effcf['enableCommand']('checkTodoList',()=>{const _0x453bee=_0x33d0fe['commands']['get']('checkTodoList'),_0x5b8892=Array['from'](_0x453bee['_selectedElements']);_0x5b8892['filter'](_0x2cca3b=>_0x2cca3b['getAttribute']('todoListChecked')!=_0x453bee['value']),_0x33d0fe['model']['change'](()=>{for(const _0x4f1201 of _0x5b8892)_0x4effcf['markBlockFormat'](_0x4f1201,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x453bee['value']}]});});}),_0x4effcf['descriptionFactory']['registerElementLabel']('listItem',_0x1f8108=>o(_0x470d00,'ELEMENT_LIST_ITEM',_0x1f8108)),_0x4effcf['descriptionFactory']['registerDescriptionCallback'](_0x44cf77=>{if('formatBlock'!=_0x44cf77['type']&&'formatInline'!=_0x44cf77['type'])return;const {data:_0x394bb9}=_0x44cf77;if(_0x394bb9){if('numberedList'==_0x394bb9['commandName']||'bulletedList'==_0x394bb9['commandName']||'todoList'==_0x394bb9['commandName'])switch(_0x394bb9['commandName']['replace']('List','')){case'bulleted':return _0x4dbd77(o(_0x470d00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4dbd77(o(_0x470d00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4dbd77(o(_0x470d00,'ELEMENT_TODO_LIST'));}if('indentList'==_0x394bb9['commandName'])return{'type':'format','content':o(_0x470d00,'*Indent:*\x20%0',o(_0x470d00,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x394bb9['commandName'])return{'type':'format','content':o(_0x470d00,'*Outdent:*\x20%0',o(_0x470d00,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x394bb9['commandName'])return _0x394bb9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x470d00,'*Check\x20item*')}:{'type':'format','content':o(_0x470d00,'*Uncheck\x20item*')};}function _0x4dbd77(_0x371c71){return{'type':'format','content':o(_0x470d00,'*Change\x20to:*\x20%0',_0x371c71)};}});}}function fe(_0x336947){const _0x5a582e=_0x336947['getAttribute']('listIndent');if(0x0==_0x5a582e)return _0x336947;let _0x494054=_0x336947;for(;_0x336947['previousSibling']&&_0x336947['previousSibling']['is']('element','listItem');){const _0x5840f4=_0x336947['previousSibling']['getAttribute']('listIndent');if(_0x5840f4==_0x5a582e)_0x494054=_0x336947['previousSibling'];else{if(_0x5840f4<_0x5a582e)break;}_0x336947=_0x336947['previousSibling'];}return _0x494054;}function ue(_0x2e180f){const _0x349797=[];if(_0x2e180f['is']('element','listItem')&&_0x2e180f['getAttribute']('listIndent')>0x0){let _0x548784=_0x2e180f['nextSibling'];for(;_0x548784&&'listItem'==_0x548784['name']&&_0x548784['getAttribute']('listIndent')==_0x2e180f['getAttribute']('listIndent');)_0x349797['push'](_0x548784),_0x548784=_0x548784['nextSibling'];}return _0x349797;}class W extends _0x535470{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x316afe=this['editor']['config']['get']('list.properties'),_0xb5e4c0=this['editor']['plugins']['get']('TrackChangesEditing');_0x316afe['styles']&&_0xb5e4c0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x316afe['reversed']&&_0xb5e4c0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x316afe['startIndex']&&_0xb5e4c0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xb5e4c0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x47385e,_0x130e83={}){const _0x44be9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5822dd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x44be9a['markMultiRangeBlockFormat'](_0x5822dd,{'commandName':'listStyle','commandParams':[{'type':_0x130e83['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x78b2f8,_0xd32b0b={}){const _0x5405cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x178a3f=this['_getSuggestionBlocks'](_0x3c63d9=>_0x3c63d9['is']('element','listItem')&&'numbered'===_0x3c63d9['getAttribute']('listType'));if(_0x178a3f['length']<0x1)return;const _0xad349=_0x178a3f['map'](_0x360bf5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360bf5,'before'),this['editor']['model']['createPositionAt'](_0x360bf5,0x0)));this['editor']['model']['change'](()=>{_0x5405cb['markMultiRangeBlockFormat'](_0xad349,{'commandName':'listReversed','commandParams':[{'reversed':_0xd32b0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40635d,_0x51e6c2={}){const _0x3ce244=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ab52a=this['_getSuggestionBlocks'](_0x4a483e=>_0x4a483e['is']('element','listItem')&&'numbered'===_0x4a483e['getAttribute']('listType'));if(_0x1ab52a['length']<0x1)return;const _0x226802=_0x1ab52a['map'](_0x4446af=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4446af,'before'),this['editor']['model']['createPositionAt'](_0x4446af,0x0)));this['editor']['model']['change'](()=>{_0x3ce244['markMultiRangeBlockFormat'](_0x226802,{'commandName':'listStart','commandParams':[{'startIndex':_0x51e6c2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56db0e){if('formatBlock'!=_0x56db0e['type']&&'formatInline'!=_0x56db0e['type'])return;const _0xed9d2c=this['editor']['locale'],{data:_0x5ee7eb}=_0x56db0e;if(!_0x5ee7eb)return;let _0x39138f,_0x382447;switch(_0x5ee7eb['commandName']){case'listStyle':_0x39138f='*Change\x20to:*\x20%0',_0x382447={'type':'format','content':o(_0xed9d2c,_0x39138f,o(_0xed9d2c,this['_getTranslationKeyForListStyle'](_0x5ee7eb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39138f=_0x5ee7eb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x382447={'type':'format','content':o(_0xed9d2c,_0x39138f)};break;case'listStart':_0x39138f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x382447={'type':'format','content':o(_0xed9d2c,_0x39138f,_0x5ee7eb['commandParams'][0x0]['startIndex'])};}return _0x382447;}['_getSuggestionBlocksForListStyle'](){const _0x3eefee=this['editor']['plugins']['get']('LegacyListUtils');let _0x24861f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24861f[0x0]?.['is']('element','listItem')&&_0x24861f['unshift'](..._0x3eefee['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24861f[_0x24861f['length']-0x1]?.['is']('element','listItem')&&_0x24861f['push'](..._0x3eefee['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24861f=[...new Set(_0x24861f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24861f=_0x24861f['filter'](_0x5e447c=>_0x5e447c['is']('element','listItem'))),_0x24861f;}['_getSuggestionBlocks'](_0xd726d2){const _0x26357a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1b01ca=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd726d2)['map'](_0x573874=>{const _0x319f36=this['editor']['model']['createPositionAt'](_0x573874,0x0);return[..._0x26357a['getSiblingNodes'](_0x319f36,'backward'),..._0x26357a['getSiblingNodes'](_0x319f36,'forward')];})['flat']();return _0x1b01ca=[...new Set(_0x1b01ca)],_0x1b01ca;}['_getTranslationKeyForListStyle'](_0x1bd9d5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bd9d5)||'default')['toUpperCase']()+'_LIST_'+_0x1bd9d5['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x535470{['afterInit'](){const _0x413775=this['editor'];if(!_0x413775['plugins']['has']('MediaEmbedEditing'))return;const _0x57a0e=_0x413775['plugins']['get']('TrackChangesEditing'),_0x53cc71=_0x413775['locale'];_0x57a0e['enableCommand']('mediaEmbed'),_0x57a0e['descriptionFactory']['registerElementLabel']('media',_0x2ec4b9=>o(_0x53cc71,'ELEMENT_MEDIA',_0x2ec4b9)),_0x413775['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x9c071c,{writer:_0x479324,options:_0x3b0692})=>{if(_0x3b0692['showSuggestionHighlights'])return _0x479324['createEmptyElement']('div');},'converterPriority':'high'}),_0x413775['data']['downcastDispatcher']['on']('attribute:url:media',(_0x631c4e,_0x1c5fb8,_0x1682c2)=>{_0x1682c2['options']['showSuggestionHighlights']&&_0x631c4e['stop']();},{'priority':'high'});}}class mt extends _0x535470{['afterInit'](){const _0xf5a407=this['editor'];_0xf5a407['plugins']['has']('MentionEditing')&&_0xf5a407['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x535470{['afterInit'](){const _0x5a6bba=this['editor'];if(!_0x5a6bba['plugins']['has']('MergeFieldsEditing'))return;_0x5a6bba['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5a6bba['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x317b0e=_0x5a6bba['plugins']['get']('TrackChangesEditing'),_0x318bb1=_0x5a6bba['locale'];_0x317b0e['descriptionFactory']['registerElementLabel']('mergeField',_0x52acab=>o(_0x318bb1,'ELEMENT_MERGE_FIELD',_0x52acab)),_0x317b0e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f38fb=>o(_0x318bb1,'ELEMENT_MERGE_FIELD',_0x1f38fb)),_0x317b0e['descriptionFactory']['registerDescriptionCallback'](_0x10adda=>{if('insertion'!=_0x10adda['type']&&'deletion'!=_0x10adda['type'])return;const _0x48c0db=_0x10adda['getContainedElement']();if(null==_0x48c0db)return;if(!_0x48c0db['is']('element','mergeField')&&!_0x48c0db['is']('element','mergeFieldBlock'))return;const _0x4dda97=_0x5a6bba['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x48c0db['getAttribute']('id'));return'insertion'==_0x10adda['type']?{'type':'insertion','content':o(_0x318bb1,'*Insert:*\x20%0','\x22'+_0x4dda97+'\x22\x20'+o(_0x318bb1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x318bb1,'*Remove:*\x20%0','\x22'+_0x4dda97+'\x22\x20'+o(_0x318bb1,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x535470{['afterInit'](){const _0x16a3d5=this['editor'],_0x4ed68f=_0x16a3d5['plugins']['get']('TrackChangesEditing');_0x16a3d5['plugins']['has']('MultiLevelList')&&(_0x4ed68f['enableDefaultAttributesIntegration']('multiLevelList'),_0x4ed68f['registerBlockAttribute']('listMarkerStyle'),_0x4ed68f['descriptionFactory']['registerDescriptionCallback'](_0x13627d=>this['handleDescriptions'](_0x13627d)));}['handleDescriptions'](_0x1a679e){const _0x13dc1b=this['editor']['locale'],{data:_0x29723a}=_0x1a679e,_0x49f769={'type':'format','content':''};if(_0x29723a&&'listMarkerStyle'==_0x29723a['key']){if(!_0x29723a['oldValue'])return{'type':'format','content':o(_0x13dc1b,'*Set\x20format:*\x20%0',o(_0x13dc1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29723a['newValue']+')'};if(!_0x29723a['newValue']){let _0x532ac6=_0x1a679e['head'];for(;_0x532ac6;){if(_0x532ac6['data']&&'listType'==_0x532ac6['data']['key']&&_0x532ac6['data']['newValue'])return _0x49f769;_0x532ac6=_0x532ac6['next'];}return{'type':'format','content':o(_0x13dc1b,'*Remove\x20format:*\x20%0',o(_0x13dc1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29723a['oldValue']+')'};}}}}class kt extends _0x535470{['afterInit'](){const _0x17e204=this['editor'];if(!_0x17e204['plugins']['has']('PageBreakEditing'))return;_0x17e204['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b65da=_0x17e204['plugins']['get']('TrackChangesEditing'),_0x5ed34d=_0x17e204['locale'];_0x4b65da['descriptionFactory']['registerElementLabel']('pageBreak',_0x45da25=>o(_0x5ed34d,'ELEMENT_PAGE_BREAK',_0x45da25));}}class bt extends _0x535470{['afterInit'](){const _0x3d887e=this['editor'];if(!_0x3d887e['plugins']['has']('Paragraph'))return;const _0x3ee3c9=_0x3d887e['locale'],_0x4fcb1b=_0x3d887e['plugins']['get']('TrackChangesEditing');_0x4fcb1b['descriptionFactory']['registerElementLabel']('paragraph',_0x3e42e5=>o(_0x3ee3c9,'ELEMENT_PARAGRAPH',_0x3e42e5)),_0x4fcb1b['enableDefaultAttributesIntegration']('paragraph'),_0x4fcb1b['enableCommand']('insertParagraph'),_0x3d887e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3d887e),{'priority':'highest'}),_0x3d887e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5121b,_0x570f69,_0x20662d)=>{_0x20662d['options']['showSuggestionHighlights']&&nr(_0x3d887e,{'showActiveMarker':!0x1})(_0x5121b,_0x570f69,_0x20662d);},{'priority':'highest'});const _0x10b3df=_0x4fcb1b['descriptionFactory'];_0x10b3df['registerDescriptionCallback'](_0xb77e9b=>{if('insertion'!==_0xb77e9b['type'])return;const {start:_0x316ccc,end:_0x300fe0}=_0xb77e9b['getFirstRange']();if(!_0x316ccc['isTouching'](_0x300fe0)||!_0x316ccc['nodeAfter'])return;const _0x47e26c=_0x3d887e['model']['schema'],_0x413c7f=_0x316ccc['nodeAfter'];return _0x47e26c['isBlock'](_0x413c7f)&&!_0x47e26c['isLimit'](_0x413c7f)&&_0x47e26c['checkChild'](_0x413c7f,'$text')?{'type':'insertion','content':o(_0x3ee3c9,'*Insert:*\x20%0',_0x10b3df['getItemLabel'](_0x413c7f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59be94=this['editor'],_0xd0766d=_0x59be94['locale'];_0x59be94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43acef=>{if('formatBlock'!=_0x43acef['type'])return;const {data:_0x1fe5d1}=_0x43acef;return _0x1fe5d1&&'paragraph'==_0x1fe5d1['commandName']?{'type':'format','content':o(_0xd0766d,'*Change\x20to:*\x20%0',o(_0xd0766d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x402b46,{showActiveMarker:_0x44cc61=!0x0}={}){return(_0x2dc2b5,_0x1331f5,_0x2e7514)=>{const _0x458718=_0x402b46['plugins']['get']('TrackChangesEditing'),_0x58c241=_0x1331f5['markerRange']['start'],_0x3be1b0=_0x1331f5['markerRange']['end'],_0x5c949c=_0x402b46['model']['schema'];if(!_0x58c241['isTouching'](_0x3be1b0)||!_0x58c241['nodeAfter'])return;const _0x59f010=_0x58c241['nodeAfter'];if(_0x5c949c['isBlock'](_0x59f010)&&!_0x5c949c['isLimit'](_0x59f010)&&_0x5c949c['checkChild'](_0x59f010,'$text')){if(!_0x2e7514['consumable']['consume'](_0x1331f5['markerRange'],_0x2dc2b5['name']))return;const {authorId:_0x5e34e7}=_0x458718['_splitMarkerName'](_0x1331f5['markerName']),_0x12150b=_0x2e7514['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5e34e7}),_0x49b6cd=_0x2e7514['mapper']['toViewPosition'](_0x3be1b0);_0x44cc61&&_0x458718['activeMarkers']['includes'](_0x1331f5['markerName'])&&_0x2e7514['writer']['addClass']('ck-suggestion-marker--active',_0x12150b),_0x2e7514['writer']['insert'](_0x49b6cd,_0x12150b),_0x2e7514['mapper']['bindElementToMarker'](_0x12150b,_0x1331f5['markerName']);}};}class wt extends _0x535470{['afterInit'](){const _0x2053a0=this['editor'];if(!_0x2053a0['plugins']['has']('RemoveFormatEditing'))return;_0x2053a0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d3aea=this['editor'];_0x4d3aea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb4b26=>{if('formatBlock'!=_0xeb4b26['type']&&'formatInline'!=_0xeb4b26['type'])return;const {data:_0x27a87a}=_0xeb4b26;return _0x27a87a&&'removeFormat'==_0x27a87a['commandName']?{'type':'format','content':o(_0x4d3aea['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x535470{['afterInit'](){const _0x130c36=this['editor'];if(!_0x130c36['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8b8d43=_0x130c36['plugins']['get']('TrackChangesEditing');_0x8b8d43['enableCommand']('goToPreviousRestrictedEditingException'),_0x8b8d43['enableCommand']('goToNextRestrictedEditingException');const _0x5311d1=_0x130c36['plugins']['get']('RestrictedEditingModeEditing');_0x5311d1['enableCommand']('trackChanges'),_0x5311d1['enableCommand']('acceptSuggestion'),_0x5311d1['enableCommand']('discardSuggestion'),_0x5311d1['enableCommand']('acceptAllSuggestions'),_0x5311d1['enableCommand']('discardAllSuggestions'),_0x5311d1['enableCommand']('acceptSelectedSuggestions'),_0x5311d1['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x535470{static get['requires'](){return[_0x427e21];}['init'](){const _0x24c455=this['editor'],_0x2b04ea=_0x24c455['plugins']['get']('TrackChangesEditing');_0x2b04ea['enableCommand']('shiftEnter'),_0x24c455['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x24c455),{'priority':'high'}),_0x24c455['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x24c455),{'priority':'high'}),_0x24c455['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265a66,_0xfce197,_0xd31f9)=>{_0xd31f9['options']['showSuggestionHighlights']&&ge(_0x24c455,{'showActiveMarker':!0x1})(_0x265a66,_0xfce197,_0xd31f9);}),_0x2b04ea['descriptionFactory']['registerElementLabel']('softBreak',_0x364d80=>o(_0x24c455['locale'],'ELEMENT_LINE_BREAK',_0x364d80));}}function ge(_0x5426e9,{showActiveMarker:_0x128f55=!0x0}={}){return(_0x3500bd,_0x348f31,_0x316479)=>{const _0x5c35b7=_0x5426e9['plugins']['get']('TrackChangesEditing');if(!_0x316479['consumable']['test'](_0x348f31['markerRange'],_0x3500bd['name']))return;const _0x77a34c=_0x5426e9['model'];for(const _0x48aa75 of _0x348f31['markerRange']['getItems']()){if(!_0x48aa75['is']('element','softBreak'))continue;const _0x33f3fc='deletion'==_0x348f31['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3f868f}=_0x5c35b7['_splitMarkerName'](_0x348f31['markerName']),_0x3ad344=_0x316479['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33f3fc,'data-author-id':_0x3f868f}),_0x5df558=_0x316479['mapper']['toViewPosition'](_0x77a34c['createPositionBefore'](_0x48aa75));_0x128f55&&_0x5c35b7['activeMarkers']['includes'](_0x348f31['markerName'])&&_0x316479['writer']['addClass']('ck-suggestion-marker--active',_0x3ad344),_0x316479['writer']['insert'](_0x5df558,_0x3ad344),_0x316479['mapper']['bindElementToMarker'](_0x3ad344,_0x348f31['markerName']);}};}class St extends _0x535470{['afterInit'](){const _0x288116=this['editor'],_0x3a7376=_0x288116['model'],_0x4a9f10=_0x288116['locale'];if(!_0x288116['plugins']['has']('StandardEditingModeEditing'))return;const _0x42f2e2=_0x288116['plugins']['get']('TrackChangesEditing'),_0xa1a30c='restrictedEditingException',_0x1a7dc6=_0x288116['commands']['get'](_0xa1a30c);_0x42f2e2['enableCommand'](_0xa1a30c,(_0xbfcb3d,_0x468cbf={})=>{const _0x392676=_0x3a7376['document']['selection'];if(_0x392676['isCollapsed'])return void _0xbfcb3d(_0x468cbf);const _0x35ad93=void 0x0!==_0x468cbf['forceValue']?_0x468cbf['forceValue']:!_0x1a7dc6['value'];_0x3a7376['change'](()=>{const _0x41d59d=Array['from'](_0x392676['getRanges']());for(const _0x87503d of _0x41d59d){const _0x5be047=_0x35ad93?[_0x87503d]:io(_0xa1a30c,_0x87503d,_0x3a7376);for(const _0x69b19 of _0x5be047)_0x42f2e2['markInlineFormat'](_0x69b19,{'commandName':_0xa1a30c,'commandParams':[{'forceValue':_0x35ad93}]});}});}),_0x42f2e2['descriptionFactory']['registerDescriptionCallback'](_0x2d47da=>{if('formatBlock'!=_0x2d47da['type']&&'formatInline'!=_0x2d47da['type'])return;const {data:_0x216eeb}=_0x2d47da;return _0x216eeb&&_0x216eeb['commandName']==_0xa1a30c?_0x216eeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a9f10,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a9f10,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x535470{['afterInit'](){const _0x1792e9=this['editor'];if(!_0x1792e9['plugins']['has']('Style')||!_0x1792e9['plugins']['has']('DataSchema'))return;const _0x34ece6=_0x1792e9['plugins']['get']('TrackChangesEditing'),_0x2e2c03=_0x1792e9['locale'],_0x3066f5=_0x1792e9['config']['get']('style')||{},_0x591040=_0x1792e9['plugins']['get']('GeneralHtmlSupport'),_0xb44114=_0x1792e9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1792e9['plugins']['get']('DataSchema'),_0x3066f5['definitions']);_0x34ece6['enableDefaultAttributesIntegration']('style');const _0x393321=new Set();for(const _0x11cb4b of _0xb44114['block']){const _0x23a58b=_0x591040['getGhsAttributeNameForElement'](_0x11cb4b['element']);_0x393321['add'](_0x23a58b);}const _0x2339d1=new Set();for(const _0x4089b9 of _0xb44114['inline']){const _0x34e634=_0x591040['getGhsAttributeNameForElement'](_0x4089b9['element']);_0x2339d1['add'](_0x34e634);for(const _0x4d6c60 of _0x4089b9['ghsAttributes'])_0x2339d1['add'](_0x4d6c60);}for(const _0x5ec3ff of _0x393321)_0x34ece6['registerBlockAttribute'](_0x5ec3ff),_0x34ece6['descriptionFactory']['registerAttributeLabel'](_0x5ec3ff,o(_0x2e2c03,'FORMAT_STYLE'));for(const _0x4e85b7 of _0x2339d1)_0x34ece6['registerInlineAttribute'](_0x4e85b7),_0x34ece6['descriptionFactory']['registerAttributeLabel'](_0x4e85b7,o(_0x2e2c03,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x546292=this['editor'],_0x353f95=_0x546292['locale'];_0x546292['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4152e2=>{if('formatBlock'!=_0x4152e2['type']&&'formatInline'!=_0x4152e2['type'])return;const {data:_0x3b79a9}=_0x4152e2;return _0x3b79a9&&'style'===_0x3b79a9['commandName']?_0x3b79a9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x353f95,'*Set\x20format:*\x20%0',_0x3b79a9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x353f95,'*Remove\x20format:*\x20%0',_0x3b79a9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x535470{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23e42a){super(_0x23e42a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x560179=this['editor'],_0x23c2ef=_0x560179['model']['document']['selection'];if(!_0x560179['plugins']['has']('TableEditing'))return;const _0x427a1f=_0x560179['locale'],_0xd57886=_0x560179['plugins']['get']('TrackChangesEditing'),_0x4ee5e0=_0x560179['plugins']['get']('TableUtils');_0xd57886['descriptionFactory']['registerElementLabel']('table',_0x2b14d0=>o(_0x427a1f,'ELEMENT_TABLE',_0x2b14d0)),this['_setupColumnsRowsFixing'](),_0xd57886['enableCommand']('insertTable'),_0xd57886['enableCommand']('selectTableRow'),_0xd57886['enableCommand']('selectTableColumn');for(const _0x241859 of['insertTableRowAbove','insertTableRowBelow']){const _0xe875de=_0x560179['commands']['get'](_0x241859);_0xd57886['enableCommand'](_0x241859,_0x5c7e2d=>{_0x560179['model']['change'](_0xb24353=>{_0x5c7e2d();const _0x579e06='above'===_0xe875de['order'],_0x52b3b6=_0x4ee5e0['getSelectionAffectedTableCells'](_0x23c2ef),_0x1ab4a8=_0x4ee5e0['getRowIndexes'](_0x52b3b6),_0x48bc01=_0x579e06?_0x1ab4a8['first']-0x1:_0x1ab4a8['last']+0x1,_0x413e92=_0x52b3b6[0x0]['findAncestor']('table'),_0x41882e=_0x4ee5e0['createTableWalker'](_0x413e92,{'startRow':_0x48bc01,'endRow':_0x48bc01}),_0x40a19b=Array['from'](_0x41882e)['map'](_0x5e93d5=>_0xb24353['createRangeOn'](_0x5e93d5['cell']));_0xd57886['markMultiRangeInsertion'](_0x40a19b,'tableRow');});});}for(const _0x31ebc0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2534a0=_0x560179['commands']['get'](_0x31ebc0);_0xd57886['enableCommand'](_0x31ebc0,_0x52b77f=>{_0x560179['model']['change'](_0x26b6be=>{_0x52b77f();const _0x1d4c58='left'===_0x2534a0['order'],_0xa8d487=_0x4ee5e0['getSelectionAffectedTableCells'](_0x23c2ef),_0xc6f960=_0x4ee5e0['getColumnIndexes'](_0xa8d487),_0x1742bc=_0x1d4c58?_0xc6f960['first']-0x1:_0xc6f960['last']+0x1,_0x2770f1=_0xa8d487[0x0]['findAncestor']('table'),_0xc9449d=_0x4ee5e0['createTableWalker'](_0x2770f1,{'startRow':0x0,'column':_0x1742bc,'includeAllSlots':!0x1}),_0x39bb4e=Array['from'](_0xc9449d)['map'](_0xa2e540=>_0x26b6be['createRangeOn'](_0xa2e540['cell']));_0xd57886['markMultiRangeInsertion'](_0x39bb4e,'tableColumn');});});}for(const _0x2fd039 of['removeTableRow','removeTableColumn']){const _0x31c359=_0x2fd039['substr'](0xb),_0x8e04ad=_0x31c359['toLowerCase'](),_0x1f1b33=_0x8e04ad['substr'](0x0,0x3)+'span',_0x40cf2f='table'+_0x31c359,_0x34bf3d='min'+_0x31c359,_0x3eba89='max'+_0x31c359;_0xd57886['enableCommand'](_0x2fd039,()=>{_0x560179['model']['change'](_0x4bb5ac=>{const _0x3298c1=_0x4ee5e0['getSelectionAffectedTableCells'](_0x23c2ef),_0x8cdea1=_0x3298c1[0x0]['findAncestor']('table');let _0x5263fb;if('removeTableRow'==_0x2fd039){const _0x8d79c1=_0x4ee5e0['getRowIndexes'](_0x3298c1);_0x5263fb={'startRow':_0x8d79c1['first'],'endRow':_0x8d79c1['last'],'includeAllSlots':!0x0};}else{const _0x97b24e=_0x4ee5e0['getColumnIndexes'](_0x3298c1);_0x5263fb={'startColumn':_0x97b24e['first'],'endColumn':_0x97b24e['last'],'includeAllSlots':!0x0};}const _0x53c4ff=_0x4ee5e0['createTableWalker'](_0x8cdea1,_0x5263fb),_0x1de249=Array['from'](_0x53c4ff)['map'](({cell:_0x14a7b8})=>_0x14a7b8),_0x25d7af=be(_0x1de249['filter'](_0x1b58e6=>_0x1b58e6['hasAttribute'](_0x1f1b33))),_0x58402c=be(_0x1de249['filter'](_0x27c290=>!_0x27c290['hasAttribute'](_0x1f1b33)))['map'](_0x59b5cb=>_0x4bb5ac['createRangeOn'](_0x59b5cb)),_0x648e69=_0xd57886['markMultiRangeDeletion'](_0x58402c,_0x40cf2f);if(_0x648e69&&('tableRow'==_0x648e69['subType']||'tableColumn'==_0x648e69['subType'])){const _0x229bf2=this['_getSuggestionCoords'](_0x648e69);for(const _0xaa3cf4 of _0x25d7af){const _0x1b70a0=_0x4bb5ac['createRangeOn'](_0xaa3cf4),_0xd8f468=_0x4ee5e0['getCellLocation'](_0xaa3cf4),_0x12acaf=_0xaa3cf4['getAttribute'](_0x1f1b33)-0x1,_0x5bde28=_0x229bf2[_0x34bf3d],_0x1377e4=_0x229bf2[_0x3eba89];_0x5bde28<=_0xd8f468[_0x8e04ad]&&_0xd8f468[_0x8e04ad]+_0x12acaf<=_0x1377e4&&_0x648e69['addRange'](_0x1b70a0);}}});});}function _0x52f63c(_0x1f4f76){const _0x18afaa=Array['from'](_0x23c2ef['getRanges']())['map'](_0x43de09=>_0x1ac0e2['fromRange'](_0x43de09));_0x560179['model']['change'](_0x45f7ee=>{const _0xb5ed87=_0x45f7ee['batch'];_0x1f4f76=_0x1f4f76['filter'](_0x5dbb8d=>'$graveyard'!=_0x5dbb8d['root']['rootName']),_0x45f7ee['setSelection'](_0x1f4f76),_0x560179['commands']['get']('removeTableRow')['refresh'](),_0x560179['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x560179['model']['enqueueChange'](()=>{_0x560179['model']['enqueueChange'](_0xb5ed87,_0x384efe=>{const _0x187a0e=_0x18afaa['filter'](_0xe19128=>'$graveyard'!=_0xe19128['root']['rootName']);_0x187a0e['length']>0x0&&_0x384efe['setSelection'](_0x187a0e);for(const _0x18293a of _0x18afaa)_0x18293a['detach']();});});});}function _0x484def(_0x350fca){_0x560179['model']['change'](_0x1d95eb=>{const _0x2fc3b2=Array['from'](_0x23c2ef['getRanges']())['map'](_0xa63457=>_0x1ac0e2['fromRange'](_0xa63457)),_0xcfa0d9=[];for(const _0x4b39e0 of _0x350fca)for(const _0x1002eb of _0x4b39e0['getItems']({'shallow':!0x0}))_0xcfa0d9['push'](_0x1002eb);for(const _0x24bfcc of _0xcfa0d9)'$graveyard'!=_0x24bfcc['root']['rootName']&&(_0x1d95eb['setSelection'](_0x1d95eb['createPositionAt'](_0x24bfcc,0x0)),_0x560179['commands']['get']('removeTableColumn')['refresh'](),_0x560179['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ba288=_0x2fc3b2['filter'](_0x404ade=>'$graveyard'!=_0x404ade['root']['rootName']);_0x5ba288['length']>0x0&&_0x1d95eb['setSelection'](_0x5ba288);for(const _0x27972d of _0x2fc3b2)_0x27972d['detach']();});}function _0x392237(_0x546629,_0x1e8611){return _0x1e8611['every'](_0x598574=>_0x546629['some'](_0x47632d=>_0x47632d['end']['isEqual'](_0x598574['start'])||_0x598574['end']['isEqual'](_0x47632d['start'])));}function _0x28bd6e(_0xc97f00,_0x55cdd2){return!_0xc97f00['some'](_0x51b915=>_0x55cdd2['some'](_0x2ba4c0=>_0x51b915['isIntersecting'](_0x2ba4c0)))&&_0xc97f00['some'](_0x5bfbb0=>_0x55cdd2['some'](_0x22f6b8=>_0x5bfbb0['end']['isTouching'](_0x22f6b8['start'])));}_0x560179['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12a156,_0x4d7454,_0x21f2c2)=>{if(!_0x21f2c2['options']['showSuggestionHighlights'])return;const _0x546ab4=_0x4d7454['item'];if(!_0x546ab4)return;const _0x37984a=_0x21f2c2['mapper']['toViewElement'](_0x546ab4);function _0x58d3c7(_0x4b3da6){return Array['isArray'](_0x4b3da6)?_0x4b3da6:[_0x4b3da6];}_0x37984a&&'tableCell'===_0x546ab4['name']&&_0x12edc0(_0x37984a,_0x21f2c2['writer'],(_0x1c6eae,_0x1b0058,_0x42eca4)=>_0x42eca4['addClass'](_0x58d3c7(_0x1b0058['classes']),_0x1c6eae),(_0x4df06e,_0x3a3117,_0x1284a5)=>_0x1284a5['removeClass'](_0x58d3c7(_0x3a3117['classes']),_0x4df06e));},{'priority':'highest'}),_0xd57886['descriptionFactory']['registerDescriptionCallback'](_0x5cf2de=>{if('insertion'!=_0x5cf2de['type']&&'deletion'!=_0x5cf2de['type'])return;const _0x239d75=_0x5cf2de['getContainedElement']();if(null!=_0x239d75&&_0x239d75['is']('element','table')){if('insertion'==_0x5cf2de['type']){const _0x1c9b7e=_0x5cf2de['getItems']()['filter'](_0xf78022=>_0xf78022['is']('$textProxy'))['map'](_0x329ae3=>_0x329ae3['data']);if(_0x1c9b7e['length'])return{'type':'insertion','content':o(_0x427a1f,'*Insert:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1c9b7e['join']('\x20')+'\x22'))};}if('deletion'==_0x5cf2de['type']){const _0x35e6db=_0x5cf2de['getItems']()['filter'](_0x303aae=>_0x303aae['is']('$textProxy'))['map'](_0x161613=>_0x161613['data']);if(_0x35e6db['length'])return{'type':'deletion','content':o(_0x427a1f,'*Remove:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x35e6db['join']('\x20')+'\x22'))};}}}),_0xd57886['descriptionFactory']['registerDescriptionCallback'](_0x1dae31=>{if('tableRow'==_0x1dae31['subType']){const _0x22fc23=_0x1dae31['getItems']()['filter'](_0x5973a4=>_0x5973a4['is']('$textProxy'))['map'](_0x39da76=>_0x39da76['data']),_0x35a5a5=this['_getSuggestionCoords'](_0x1dae31),_0x3d0f57=_0x35a5a5['maxRow']-_0x35a5a5['minRow']+0x1;if('insertion'==_0x1dae31['type'])return _0x22fc23['length']?{'type':'insertion','content':o(_0x427a1f,'*Insert:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3d0f57,'\x22'+_0x22fc23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x427a1f,'*Insert:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_ROW',_0x3d0f57))};if('deletion'==_0x1dae31['type'])return _0x22fc23['length']?{'type':'deletion','content':o(_0x427a1f,'*Remove:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3d0f57,'\x22'+_0x22fc23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x427a1f,'*Remove:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_ROW',_0x3d0f57))};}if('tableColumn'==_0x1dae31['subType']){const _0x4f6a1b=_0x1dae31['getItems']()['filter'](_0x1e7a7c=>_0x1e7a7c['is']('$textProxy'))['map'](_0x114675=>_0x114675['data']),_0x2b5ad6=this['_getSuggestionCoords'](_0x1dae31),_0xcf807=_0x2b5ad6['maxColumn']-_0x2b5ad6['minColumn']+0x1;if('insertion'==_0x1dae31['type'])return _0x4f6a1b['length']?{'type':'insertion','content':o(_0x427a1f,'*Insert:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xcf807,'\x22'+_0x4f6a1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x427a1f,'*Insert:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_COLUMN',_0xcf807))};if('deletion'==_0x1dae31['type'])return _0x4f6a1b['length']?{'type':'deletion','content':o(_0x427a1f,'*Remove:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xcf807,'\x22'+_0x4f6a1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x427a1f,'*Remove:*\x20%0',o(_0x427a1f,'ELEMENT_TABLE_COLUMN',_0xcf807))};}}),_0xd57886['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x52f63c),_0xd57886['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x52f63c),_0xd57886['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x484def),_0xd57886['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x484def),_0xd57886['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x392237),_0xd57886['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x392237),_0xd57886['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x28bd6e),_0xd57886['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x28bd6e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3aec04=this['editor'],_0x2ae4d3=_0x3aec04['model']['document']['selection'];return(_0x333c5a,_0x5edb45)=>{_0x3aec04['model']['change'](_0x72781e=>{const {commandName:_0xfe78e5,commandParams:_0x8c8a66}=_0x5edb45;let _0x4da590=_0x333c5a[0x0]['end']['nodeBefore'];_0x8c8a66&&_0x8c8a66[0x0]&&!0x1===_0x8c8a66[0x0]['forceValue']&&(_0x4da590=_0x333c5a[0x0]['start']['nodeAfter']);const _0x6440df=_0x72781e['createRangeIn'](_0x4da590);if('$graveyard'==_0x6440df['root']['rootName'])return;const _0x3d7568=Array['from'](_0x2ae4d3['getRanges']())['map'](_0x46f62d=>_0x1ac0e2['fromRange'](_0x46f62d));_0x72781e['setSelection'](_0x6440df),_0x3aec04['commands']['get'](_0xfe78e5)['refresh'](),_0x8c8a66['push']({'forceDefaultExecution':!0x0}),_0x3aec04['execute'](_0xfe78e5,..._0x8c8a66);const _0x803972=_0x3d7568['filter'](_0x43b47f=>'$graveyard'!=_0x43b47f['root']['rootName']);_0x803972['length']>0x0&&_0x72781e['setSelection'](_0x803972);for(const _0x20bb11 of _0x3d7568)_0x20bb11['detach']();});};}['_getCoordsForCells'](_0xeb47f1){const _0xdfe3aa=this['editor']['plugins']['get']('TableUtils');let _0x15f0cf=Number['MAX_SAFE_INTEGER'],_0x33e382=Number['MIN_SAFE_INTEGER'],_0x14984e=Number['MAX_SAFE_INTEGER'],_0x5726ed=Number['MIN_SAFE_INTEGER'];for(const _0x26c27b of _0xeb47f1){if('$graveyard'==_0x26c27b['root']['rootName'])continue;const {row:_0x28a436,column:_0x483de3}=_0xdfe3aa['getCellLocation'](_0x26c27b),_0x392d09=_0x26c27b['hasAttribute']('rowspan')?_0x26c27b['getAttribute']('rowspan')-0x1:0x0,_0x39ee5d=_0x26c27b['hasAttribute']('colspan')?_0x26c27b['getAttribute']('colspan')-0x1:0x0;_0x15f0cf=_0x28a436<_0x15f0cf?_0x28a436:_0x15f0cf,_0x33e382=_0x28a436+_0x392d09>_0x33e382?_0x28a436+_0x392d09:_0x33e382,_0x14984e=_0x483de3<_0x14984e?_0x483de3:_0x14984e,_0x5726ed=_0x483de3+_0x39ee5d>_0x5726ed?_0x483de3+_0x39ee5d:_0x5726ed;}return{'minRow':_0x15f0cf,'maxRow':_0x33e382,'minColumn':_0x14984e,'maxColumn':_0x5726ed};}['_setupColumnsRowsFixing'](){const _0x14e0a9=this['editor'],_0x349dda=_0x14e0a9['plugins']['get']('TrackChangesEditing'),_0x465af8=_0x14e0a9['plugins']['get']('TableUtils');_0x14e0a9['model']['document']['on']('change:data',()=>{const _0x206974=Array['from'](_0x14e0a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d5fbe,data:_0x160515}of _0x206974){const {group:_0x3fde56,id:_0x2f2a3e,subType:_0x1a234a}=_0x349dda['_splitMarkerName'](_0x4d5fbe);if('suggestion'!=_0x3fde56)continue;if(null!=_0x160515['oldRange'])continue;const _0x2e9de7=_0x349dda['getSuggestion'](_0x2f2a3e);this['_tablePostFixingSubtypes']['includes'](_0x1a234a)&&this['_tableSuggestions']['add'](_0x2e9de7);}},{'priority':'low'});const _0x2b5195=(_0x4e7c52,_0x46f668)=>{let _0x364c60=!0x1;const _0x1ce1eb=_0x46f668['createRangeOn'](_0x4e7c52),_0x5e0f2f=_0x4e7c52['findAncestor']('table'),_0x10213b=_0x465af8['getCellLocation'](_0x4e7c52);for(const _0x1ddecb of this['_tableSuggestions']){const _0x5683ce=_0x1ddecb['subType'],_0x4dcd11=_0x5683ce['startsWith']('tablePaste'),_0x3ce8d7=_0x5683ce['substr'](_0x4dcd11?0xa:0x5),_0x271f64=_0x3ce8d7['toLowerCase'](),_0x296267=_0x271f64['substr'](0x0,0x3)+'span',_0x56092c='min'+_0x3ce8d7,_0x1521b3='max'+_0x3ce8d7;if(!_0x1ddecb['isInContent'])continue;if(_0x5e0f2f!=_0x1ddecb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1ddecb['isIntersectingWithRange'](_0x1ce1eb))continue;const _0x495e34=_0x4e7c52['hasAttribute'](_0x296267)?_0x4e7c52['getAttribute'](_0x296267)-0x1:0x0,_0x2d6e78=this['_getSuggestionCoords'](_0x1ddecb),_0x118d3c=_0x2d6e78[_0x56092c],_0x3d2c18=_0x2d6e78[_0x1521b3];_0x118d3c<=_0x10213b[_0x271f64]&&_0x10213b[_0x271f64]+_0x495e34<=_0x3d2c18&&(_0x1ddecb['addRange'](_0x1ce1eb),_0x364c60=!0x0);}return _0x364c60;};_0x14e0a9['model']['document']['registerPostFixer'](_0x3be000=>{let _0x1376df=!0x1;for(const _0x291534 of _0x14e0a9['model']['document']['differ']['getChanges']())if('insert'==_0x291534['type']){if('tableRow'==_0x291534['name']){for(const _0x5455e7 of _0x291534['position']['nodeAfter']['getChildren']())_0x1376df=_0x1376df||_0x2b5195(_0x5455e7,_0x3be000);}else'tableCell'==_0x291534['name']&&(_0x1376df=_0x1376df||_0x2b5195(_0x291534['position']['nodeAfter'],_0x3be000));}return _0x1376df;});}['_getSuggestionCoords'](_0x234c95){return this['_getCoordsForCells'](_0x234c95['getRanges']()['map'](_0x55bd5c=>_0x55bd5c['start']['nodeAfter']));}}function be(_0x2b7bbb){return Array['from'](new Set(_0x2b7bbb)['values']());}class vt extends _0x535470{static get['requires'](){return[It];}['afterInit'](){const _0xdbfbc7=this['editor'],_0x55b2d8=_0xdbfbc7['model']['document']['selection'],_0x4dbdb9=_0xdbfbc7['locale'];if(!_0xdbfbc7['plugins']['has']('TableEditing'))return;const _0x502078=_0xdbfbc7['plugins']['get']('TrackChangesEditing'),_0xe7e5e6=_0xdbfbc7['plugins']['get']('TableUtils'),_0x52c156=_0xdbfbc7['plugins']['get'](It);_0x52c156['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x502078['enableCommand']('mergeTableCells',()=>{const _0x48d6e7=_0xe7e5e6['getSelectionAffectedTableCells'](_0xdbfbc7['model']['document']['selection']);_0xdbfbc7['model']['change'](()=>{_0x502078['markMultiRangeBlockFormat'](_0x48d6e7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xdbfbc7['commands']['get']('mergeTableCells')['on']('execute',(_0x561589,_0x296596)=>{_0xdbfbc7['commands']['get']('trackChanges')['value']&&(_0x296596['length']>0x0&&_0x296596[_0x296596['length']-0x1]&&_0x296596[_0x296596['length']-0x1]['forceDefaultExecution']||_0x502078['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x561589['stop']());},{'priority':'highest'});for(const _0x3375dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x22576c=_0xdbfbc7['commands']['get'](_0x3375dc);_0x502078['enableCommand'](_0x3375dc,()=>{const _0x499d02=_0xdbfbc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb70d66=>_0xb70d66['is']('element','tableCell')),_0x5e919a=_0x22576c['value'];_0xdbfbc7['model']['change'](()=>{_0x502078['markMultiRangeBlockFormat']([_0x499d02,_0x5e919a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4bc22b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1db894=_0xdbfbc7['commands']['get'](_0x4bc22b);_0x502078['enableCommand'](_0x4bc22b,()=>{const _0xa0376c=_0xe7e5e6['getSelectionAffectedTableCells'](_0xdbfbc7['model']['document']['selection'])[0x0],_0x4986d6=_0xa0376c['findAncestor']('table'),{column:_0x31ea86,row:_0x43deda}=_0xe7e5e6['getCellLocation'](_0xa0376c);let _0x5cba0d=[];if('horizontally'==_0x1db894['direction']){const _0x14e70f=_0xe7e5e6['createTableWalker'](_0x4986d6,{'startRow':_0x43deda,'endRow':_0x43deda,'includeAllSlots':!0x0});_0x5cba0d=Array['from'](_0x14e70f)['map'](_0x404e08=>_0x404e08['cell']);}else{const _0x398f4e=_0xe7e5e6['createTableWalker'](_0x4986d6,{'column':_0x31ea86,'includeAllSlots':!0x0});_0x5cba0d=Array['from'](_0x398f4e)['map'](_0x1fae53=>_0x1fae53['cell']);}_0xdbfbc7['model']['change'](_0x3abe79=>{_0x502078['markBlockFormat'](_0x3abe79['createRangeOn'](_0xa0376c),{'commandName':_0x4bc22b,'commandParams':[]},_0x5cba0d,_0x4bc22b);});});}_0x502078['descriptionFactory']['registerDescriptionCallback'](_0x15d19c=>{if('formatBlock'!=_0x15d19c['type']&&'formatInline'!=_0x15d19c['type'])return;const {data:_0x3a0c2c}=_0x15d19c;return _0x3a0c2c&&'mergeTableCells'==_0x3a0c2c['commandName']?{'type':'format','content':o(_0x4dbdb9,'*Merge\x20cells*')}:void 0x0;}),_0x502078['descriptionFactory']['registerDescriptionCallback'](_0x182c97=>{if('formatBlock'!=_0x182c97['type']&&'formatInline'!=_0x182c97['type'])return;const {data:_0x13392a}=_0x182c97;return _0x13392a?'splitTableCellVertically'==_0x13392a['commandName']?{'type':'format','content':o(_0x4dbdb9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x13392a['commandName']?{'type':'format','content':o(_0x4dbdb9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28f4ee=_0x52c156['_acceptFormatSuggestionCallbackFactory']();for(const _0x508296 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x502078['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x508296,'accept',_0x28f4ee);for(const _0x5e900a of['splitTableCellVertically','splitTableCellHorizontally'])_0x502078['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e900a,'accept',_0x28f4ee);_0x502078['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b9b47=>{_0xdbfbc7['model']['change'](_0x2bcaea=>{const _0x9b53f7=Array['from'](_0x55b2d8['getRanges']())['map'](_0x24520c=>_0x1ac0e2['fromRange'](_0x24520c));_0x2bcaea['setSelection'](_0x2b9b47),_0xdbfbc7['commands']['get']('mergeTableCells')['refresh'](),_0xdbfbc7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ccaaa=_0x9b53f7['filter'](_0x441477=>'$graveyard'!=_0x441477['root']['rootName']);_0x1ccaaa['length']>0x0&&_0x2bcaea['setSelection'](_0x1ccaaa);for(const _0x3d241c of _0x9b53f7)_0x3d241c['detach']();});});for(const _0x298b16 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3fefc9=_0xdbfbc7['commands']['get'](_0x298b16);_0x3fefc9['on']('set:isEnabled',(_0x4e64cc,_0x557b72,_0x9dba70)=>{if(_0x9dba70){const _0x5d76ad=_0xdbfbc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5dbec4=>_0x5dbec4['is']('element','tableCell'));this['_areMergableCells'](_0x3fefc9['value'],_0x5d76ad)||(_0x4e64cc['return']=!0x1,_0x4e64cc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x43a75b=this['editor']['commands']['get']('mergeTableCells'),_0x5bc257=this['editor']['plugins']['get']('TableUtils');if(!_0x43a75b['isEnabled'])return!0x1;const _0x4aa21c=_0x5bc257['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15a45c of _0x4aa21c)for(const _0x5e1ac0 of _0x4aa21c)if(_0x15a45c!=_0x5e1ac0&&!this['_areMergableCells'](_0x15a45c,_0x5e1ac0))return!0x1;return!0x0;}['_areMergableCells'](_0x164e45,_0x4219ed){const _0xb76650=this['editor']['plugins']['get']('TrackChangesEditing'),_0x509cae=this['editor']['model']['createRangeOn'](_0x164e45),_0x5d3f14=this['editor']['model']['createRangeOn'](_0x4219ed),_0x1cc982=new Set(),_0x33c7d0=new Set();for(const _0xeebf42 of _0xb76650['getSuggestions']())if(('insertion'==_0xeebf42['type']||'deletion'==_0xeebf42['type']||'mergeTableCells'==_0xeebf42['subType'])&&_0xeebf42['isInContent']){for(const _0x24cc3d of _0xeebf42['getRanges']())_0x24cc3d['containsRange'](_0x509cae,!0x0)&&_0x1cc982['add'](_0xeebf42['type']+':'+_0xeebf42['author']['id']),_0x24cc3d['containsRange'](_0x5d3f14,!0x0)&&_0x33c7d0['add'](_0xeebf42['type']+':'+_0xeebf42['author']['id']);}if(_0x1cc982['size']!=_0x33c7d0['size'])return!0x1;for(const _0x24d428 of _0x1cc982)if(!_0x33c7d0['has'](_0x24d428))return!0x1;return!0x0;}}class Ct extends _0x535470{static get['requires'](){return[It];}['afterInit'](){const _0x4693f3=this['editor'];if(!_0x4693f3['plugins']['has']('TableEditing'))return;const _0x2ff86f=_0x4693f3['locale'],_0x277e7c=_0x4693f3['plugins']['get']('TrackChangesEditing');_0x277e7c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x277e7c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x277e7c['registerBlockAttribute']('headingRows'),_0x277e7c['registerBlockAttribute']('headingColumns'),_0x277e7c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2ff86f,'FORMAT_HEADER_ROW')),_0x277e7c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2ff86f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x312814=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28f892=this['editor']['plugins']['get']('TableUtils'),_0x2c6f27=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xa0c590({showActiveMarker:_0x2dbcf8=!0x0,setDataAttribute:_0x177884=!0x0}={}){return(_0x3403de,_0x16e30b,_0x1ca298)=>{const {type:_0x33d6c3,id:_0x1cc593}=_0x312814['_splitMarkerName'](_0x16e30b['markerName']),_0x200feb=_0x312814['getSuggestion'](_0x1cc593),_0x3678d0=_0x200feb['data'];if('formatBlock'!=_0x200feb['type']||!_0x3678d0||'setTableColumnHeader'!=_0x3678d0['commandName'])return;if(_0x16e30b['item'])return void _0x3403de['stop']();if(!_0x1ca298['consumable']['consume'](_0x16e30b['markerRange'],_0x3403de['name']))return;const _0x2c4444=_0x16e30b['markerRange']['start']['nodeAfter'],_0x3b0795=_0x16e30b['markerRange']['end']['nodeBefore'],_0x5e1fb5=_0x2c4444['parent']['parent'],{column:_0x369bee}=_0x28f892['getCellLocation'](_0x2c4444),{column:_0x5a0366}=_0x28f892['getCellLocation'](_0x3b0795);for(let _0x433d37=_0x369bee;_0x433d37<=_0x5a0366;_0x433d37++){const _0x1b1bbf=_0x28f892['createTableWalker'](_0x5e1fb5,{'column':_0x433d37,'includeAllSlots':!0x1});for(const _0x1c40d8 of _0x1b1bbf){const _0x31ce19=_0x1c40d8['cell'],_0xafb5ae=_0x1ca298['mapper']['toViewElement'](_0x31ce19);_0x1ca298['writer']['addClass']('ck-suggestion-marker-'+_0x33d6c3,_0xafb5ae),_0x177884&&_0x1ca298['writer']['setAttribute']('data-suggestion',_0x1cc593,_0xafb5ae),_0x1ca298['mapper']['bindElementToMarker'](_0xafb5ae,_0x16e30b['markerName']),_0x2dbcf8&&(_0x312814['activeMarkers']['includes'](_0x16e30b['markerName'])?_0x1ca298['writer']['addClass']('ck-suggestion-marker--active',_0xafb5ae):_0x1ca298['writer']['removeClass']('ck-suggestion-marker--active',_0xafb5ae));}}};}_0x312814['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2c6f27),_0x312814['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2c6f27),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa0c590(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1761cd,_0x2b488e,_0x17e6dd)=>{_0x17e6dd['options']['showSuggestionHighlights']&&_0xa0c590({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1761cd,_0x2b488e,_0x17e6dd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3db066,_0x4ccbdc,_0x56aa11)=>{const {type:_0x1c5fa4,id:_0x2b389f}=_0x312814['_splitMarkerName'](_0x4ccbdc['markerName']),_0x269cf2=_0x312814['getSuggestion'](_0x2b389f),_0x13c372=_0x269cf2['data'];if('formatBlock'!=_0x269cf2['type']||!_0x13c372||'setTableColumnHeader'!=_0x13c372['commandName'])return;const _0x2c1bfa=_0x56aa11['mapper']['markerNameToElements'](_0x4ccbdc['markerName']);if(_0x2c1bfa){for(const _0x54e40f of _0x2c1bfa)_0x56aa11['writer']['removeClass']('ck-suggestion-marker-'+_0x1c5fa4,_0x54e40f),_0x56aa11['writer']['removeClass']('ck-suggestion-marker--active',_0x54e40f),_0x56aa11['writer']['removeAttribute']('data-suggestion',_0x54e40f),_0x56aa11['mapper']['unbindElementFromMarkerName'](_0x54e40f,_0x4ccbdc['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8bc301=this['editor'],_0xa790fa=_0x8bc301['locale'];function _0x71821e(_0xf68652){return{'type':'format','content':o(_0xa790fa,'*Format:*\x20%0',_0xf68652)};}_0x8bc301['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa78a2b=>{if('formatBlock'!=_0xa78a2b['type'])return;const {data:_0x50d630}=_0xa78a2b;if(_0x50d630){if('setTableRowHeader'==_0x50d630['commandName']){const _0x229cec=_0x50d630['commandParams'][0x0]['forceValue'];return _0x71821e(o(_0xa790fa,_0x229cec?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50d630['commandName']){const _0x51d27e=_0x50d630['commandParams'][0x0]['forceValue'];return _0x71821e(o(_0xa790fa,_0x51d27e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3036e9=>[_0x3036e9,null]));class _t extends _0x535470{static get['requires'](){return[It];}['afterInit'](){const _0x4ee86d=this['editor'];if(!_0x4ee86d['plugins']['has']('TableClipboard'))return;const _0x1f7935=_0x4ee86d['plugins']['get']('TrackChangesEditing'),_0x26f9fe=_0x4ee86d['plugins']['get']('TableUtils'),_0x5738eb=_0x4ee86d['plugins']['get'](It),_0x2ab467=_0x4ee86d['plugins']['get']('TableClipboard');_0x5738eb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4ee86d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4ee86d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe85aa8=null;_0x4ee86d['model']['on']('insertContent',(_0x21c963,_0x1a6e50)=>{const [_0x46d424,_0x378989]=_0x1a6e50,_0x11de56=_0x1a6e50[_0x1a6e50['length']-0x1];_0x11de56&&_0x11de56['forceDefaultExecution']||_0x1f7935['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6d48bf,_0x183ac8,_0x3a9608,_0x4c19f3,_0x5f218f){if(_0x183ac8&&!_0x183ac8['is']('documentSelection'))return!0x1;const _0xd4409b=_0x5f218f['getTableIfOnlyTableInContent'](_0x6d48bf,_0x3a9608);if(!_0xd4409b||!Re(_0xd4409b,void 0x0,_0x4c19f3))return!0x1;const _0x88ed3b=_0x4c19f3['getSelectionAffectedTableCells'](_0x3a9608['document']['selection']);if(!_0x88ed3b['length'])return!0x1;const _0x533df7=_0x88ed3b[0x0]['findAncestor']('table'),_0x335669=_0x4c19f3['getRowIndexes'](_0x88ed3b),_0x51c49b=_0x4c19f3['getColumnIndexes'](_0x88ed3b),_0x4b6d00={'startRow':_0x335669['first'],'endRow':_0x335669['last'],'startColumn':_0x51c49b['first'],'endColumn':_0x51c49b['last']};return 0x1==_0x88ed3b['length']&&(_0x4b6d00['endRow']+=_0x4c19f3['getRows'](_0xd4409b)-0x1,_0x4b6d00['endColumn']+=_0x4c19f3['getColumns'](_0xd4409b)-0x1),Re(_0x533df7,_0x4b6d00,_0x4c19f3);}(_0x46d424,_0x378989,_0x4ee86d['model'],_0x26f9fe,_0x2ab467)&&(_0x21c963['stop'](),_0xe85aa8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4ee86d['model']['change'](()=>{_0x4ee86d['model']['insertContent'](_0x1a6e50[0x0],_0x1a6e50[0x1],_0x1a6e50[0x2],{'forceDefaultExecution':!0x0});const _0x23972e=_0x140993(),{rowInsertionRanges:_0x1579da,columnInsertionRanges:_0x12d2ce,insertionRanges:_0x30fa83,deletionRanges:_0x317bac,cells:_0x4214c2}=_0xe85aa8;_0x1579da['length']&&_0x1f7935['markMultiRangeInsertion'](_0x1579da,'tablePasteRow',{'tablePasteChainId':_0x23972e}),_0x12d2ce['length']&&_0x1f7935['markMultiRangeInsertion'](_0x12d2ce,'tablePasteColumn',{'tablePasteChainId':_0x23972e}),_0x30fa83['length']&&(_0x1f7935['markMultiRangeInsertion'](_0x30fa83,'tablePaste',{'tablePasteChainId':_0x23972e,'skipNestingCheck':!0x0}),_0x30fa83['forEach'](_0x3c0d0d=>_0x3c0d0d['detach']?.())),_0x317bac['length']&&(_0x1f7935['markMultiRangeDeletion'](_0x317bac,'tablePaste',{'tablePasteChainId':_0x23972e,'skipNestingCheck':!0x0}),_0x317bac['forEach'](_0x59d9a8=>_0x59d9a8['detach']?.()));const _0x842145=_0x1f7935['markMultiRangeBlockFormat'](_0x4214c2['map'](({element:_0x13c61f})=>_0x13c61f),{'formatGroupId':_0x140993()},[],'tablePasteCell',{'tablePasteChainId':_0x23972e});if(_0x842145){const _0x4bcb17=_0x842145['getMarkers'](),_0x44f465=[];for(const {element:_0x1bdadd,attributes:_0x28fe00}of _0x4214c2){if(!_0x28fe00)continue;const _0x156733=_0x4ee86d['model']['createRangeOn'](_0x1bdadd),_0x32a89a=_0x4bcb17['find'](_0x1df361=>_0x1df361['getRange']()['isEqual'](_0x156733));_0x32a89a&&_0x44f465['push']([_0x32a89a['name'],_0x28fe00]);}_0x44f465['length']&&_0x842145['setAttribute']('markerAttributes',Object['fromEntries'](_0x44f465));}_0xe85aa8=null;}));},{'priority':_0x2fcfc6['high']+0xa}),_0x4ee86d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a4c96,_0x11310f)=>{const [_0x60e929,_0x174c46,,_0x2e1f8b]=_0x11310f;if(!_0xe85aa8)return;_0x5a4c96['stop']();const _0x2200b5=_0x60e929['cell'],_0x24b46d=_0x174c46,_0x4e4735=ke(_0x2200b5),_0x371a34=ke(_0x24b46d);_0x5a4c96['return']=_0x2200b5;let _0x5dd952=null,_0x11ad0e=null;if(_0x371a34||_0x4e4735){if(_0x4e4735&&!_0x371a34){_0x2e1f8b['remove'](_0x2200b5['getChild'](0x0));for(const _0x5c03c5 of Array['from'](_0x24b46d['getChildren']()))_0x2e1f8b['insert'](_0x5c03c5,_0x2200b5,'end');const _0x3605b9=_0xe85aa8['rowInsertionIndexes']['includes'](_0x60e929['row']),_0x3b2a0b=_0xe85aa8['columnInsertionIndexes']['includes'](_0x60e929['column']);_0x3605b9||_0x3b2a0b||(_0x5dd952=_0x1ac0e2['fromRange'](_0x2e1f8b['createRangeIn'](_0x2200b5)));}else _0x371a34&&!_0x4e4735&&(_0x11ad0e=_0x2e1f8b['createRangeIn'](_0x2200b5));}else{const _0x22f0a0=_0x2e1f8b['createElement']('tableCellSuggestion'),_0x59f36f=_0x2e1f8b['createElement']('tableCellSuggestion');_0x2e1f8b['wrap'](_0x2e1f8b['createRangeIn'](_0x2200b5),_0x59f36f),_0x2e1f8b['insert'](_0x22f0a0,_0x2200b5,0x0);for(const _0xe649b5 of Array['from'](_0x24b46d['getChildren']()))_0x2e1f8b['insert'](_0xe649b5,_0x22f0a0,'end');_0x5dd952=_0x1ac0e2['fromRange'](_0x2e1f8b['createRangeOn'](_0x22f0a0)),_0x11ad0e=_0x1ac0e2['fromRange'](_0x2e1f8b['createRangeOn'](_0x59f36f));}const _0x5c6457=Array['from'](_0x24b46d['getAttributes']())['filter'](([_0x259128])=>Pe['includes'](_0x259128));_0xe85aa8['cells']['push']({'element':_0x2200b5,'attributes':_0x5c6457['length']?Object['fromEntries'](_0x5c6457):null}),_0x5dd952&&_0xe85aa8['insertionRanges']['push'](_0x5dd952),_0x11ad0e&&_0xe85aa8['deletionRanges']['push'](_0x11ad0e);},{'priority':'high'}),_0x26f9fe['on']('insertColumns',(_0x52d83a,_0x2fe788)=>{const [_0x54abca,_0x4958b6={}]=_0x2fe788;if(!_0xe85aa8)return;const _0x2c357e=_0x4958b6['at']||0x0,_0x321bd0=_0x4958b6['columns']||0x1;_0xe85aa8['columnInsertionIndexes']=new Array(_0x321bd0)['fill'](_0x2c357e)['map']((_0xa6b8f3,_0x3d0fe1)=>_0xa6b8f3+_0x3d0fe1);for(const {cell:_0x6190b5}of _0x26f9fe['createTableWalker'](_0x54abca,{'startColumn':_0x2c357e,'endColumn':_0x2c357e+_0x321bd0-0x1}))_0xe85aa8['columnInsertionRanges']['push'](_0x4ee86d['model']['createRangeOn'](_0x6190b5));},{'priority':'low'}),_0x26f9fe['on']('insertRows',(_0x4ea6f0,_0x51d09c)=>{const [_0x64be84,_0x49d98a={}]=_0x51d09c;if(!_0xe85aa8)return;const _0x5c684e=_0x49d98a['at']||0x0,_0x22c0c9=_0x49d98a['rows']||0x1;_0xe85aa8['rowInsertionIndexes']=new Array(_0x22c0c9)['fill'](_0x5c684e)['map']((_0xb26cdb,_0x43efe8)=>_0xb26cdb+_0x43efe8);for(const {cell:_0x6df9b3}of _0x26f9fe['createTableWalker'](_0x64be84,{'startRow':_0x5c684e,'endRow':_0x5c684e+_0x22c0c9-0x1}))_0xe85aa8['rowInsertionRanges']['push'](_0x4ee86d['model']['createRangeOn'](_0x6df9b3));},{'priority':'low'}),_0x1f7935['descriptionFactory']['registerDescriptionCallback'](_0x1926cc=>{if(_0x1926cc['subType']&&_0x1926cc['subType']['startsWith']('tablePaste'))return _0x1926cc['previous']?{}:{'type':'insertion','content':o(_0x4ee86d['locale'],'*Replace\x20table\x20cells*')};});const _0x55ba1b=()=>!0x1;for(const _0x1c4537 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f7935['_suggestionFactory']['registerCustomCallback']('insertion',_0x1c4537,'join',_0x55ba1b),_0x1f7935['_suggestionFactory']['registerCustomCallback']('deletion',_0x1c4537,'join',_0x55ba1b),_0x1f7935['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c4537,'join',_0x55ba1b);_0x1f7935['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x55ba1b),_0x1f7935['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18203a,_0x54e4ba,_0x330160)=>{const _0x54afd8=_0x18203a['map'](_0x31b59c=>_0x31b59c['getContainedElement']())['filter'](_0x36c275=>_0x36c275),_0x5d5e54=new Map(_0x54afd8['map'](_0x3a3fde=>[_0x3a3fde,null]));if(_0xe85aa8){for(const {element:_0x2278c0,attributes:_0x48ea0f}of _0xe85aa8['cells'])_0x48ea0f&&_0x5d5e54['set'](_0x2278c0,_0x48ea0f);}else{if(_0x330160&&_0x330160['markerAttributes'])for(const [_0x78945f,_0x937a05]of Object['entries'](_0x330160['markerAttributes'])){const _0xf16cf=_0x4ee86d['model']['markers']['get'](_0x78945f),_0x5f08e5=_0xf16cf?_0xf16cf['getRange']()['getContainedElement']():null;_0x5f08e5&&_0x5d5e54['set'](_0x5f08e5,_0x937a05);}}_0x4ee86d['model']['change'](_0x29c1bc=>{for(const [_0x529371,_0x50b214]of _0x5d5e54)_0x29c1bc['setAttributes']({...we,..._0x50b214},_0x529371);});});const _0x4f99e4=(_0x55fa49,_0x532c37)=>{_0x1f7935['_suggestionFactory']['registerCustomCallback'](_0x55fa49,'tablePaste',_0x532c37,(_0x1e8d83,_0x654693,_0x35e374)=>{_0x4ee86d['model']['change'](_0x513310=>{const _0x36289b=[];for(const _0xde341f of _0x1e8d83){const _0xbfe7a=_0xde341f['start']['nodeAfter'];_0xbfe7a['is']('element','tableCellSuggestion')&&_0x36289b['push'](_0xbfe7a);}_0x1f7935['_suggestionFactory']['getSuggestionCallback'](_0x55fa49,null,_0x532c37)(_0x1e8d83,_0x654693,_0x35e374);for(const _0x453750 of _0x36289b)'$graveyard'!=_0x453750['root']['rootName']&&_0x513310['unwrap'](_0x453750);});});};_0x4f99e4('insertion','accept'),_0x4f99e4('insertion','discard'),_0x4f99e4('deletion','accept'),_0x4f99e4('deletion','discard'),_0x1f7935['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4b4294=>{const _0x2cf49c=_0x4b4294['map'](_0x4b5ef4=>_0x4b5ef4['getContainedElement']()),_0x3b61cd=_0x2cf49c[0x0]['findAncestor']('table'),{minRow:_0x37fb0a,maxRow:_0x1accae}=_0x5738eb['_getCoordsForCells'](_0x2cf49c);_0x26f9fe['removeRows'](_0x3b61cd,{'at':_0x37fb0a,'rows':_0x1accae-_0x37fb0a+0x1});}),_0x1f7935['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x565ff2=>{const _0x53058c=_0x565ff2['map'](_0x55fa0e=>_0x55fa0e['getContainedElement']()),_0x3ac7f9=_0x53058c[0x0]['findAncestor']('table'),{minColumn:_0x129b90,maxColumn:_0x48dc74}=_0x5738eb['_getCoordsForCells'](_0x53058c);_0x26f9fe['removeColumns'](_0x3ac7f9,{'at':_0x129b90,'columns':_0x48dc74-_0x129b90+0x1});});const _0x6ba50f=(_0x2ad700,_0xb038e)=>{if(!_0xb038e['subType']||!_0xb038e['subType']['startsWith']('tablePaste'))return;const _0x497a34=_0xb038e['attributes']['tablePasteChainId'],_0x4b0cd3=_0x1f7935['getSuggestions']()['filter'](_0x77833f=>_0x77833f['isInContent']&&_0x77833f['attributes']&&_0x77833f['attributes']['tablePasteChainId']==_0x497a34);_0x4b0cd3['length']&&_0xb038e['getAllAdjacentSuggestions']()['length']!=_0x4b0cd3['length']&&_0x4b0cd3['reduce']((_0x1a59b4,_0x2ae51f)=>(_0x1a59b4['next']=_0x2ae51f,_0x2ae51f['previous']=_0x1a59b4,_0x2ae51f));};function _0x57f773(_0x4ad28b,_0x230e0d=!0x0){const {id:_0x5594a6,authorId:_0xed9af9}=_0x1f7935['_splitMarkerName'](_0x4ad28b['markerName']),_0x1e46dd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2063a6=_0x1f7935['activeMarkers']['includes'](_0x4ad28b['markerName']);return _0x2063a6&&_0x1e46dd['push']('ck-suggestion-marker--active'),{'classes':_0x1e46dd,'attributes':{'data-suggestion':_0x5594a6,'data-author-id':_0xed9af9},'priority':_0x2063a6&&_0x230e0d?0xbc2:0xbb8};}_0x1f7935['on']('suggestionLoaded',_0x6ba50f,{'priority':'high'}),_0x1f7935['on']('suggestionUnloaded',_0x6ba50f,{'priority':'high'}),_0x4ee86d['model']['document']['registerPostFixer'](()=>{let _0x200ac0=!0x1;const _0x292281=Array['from'](_0x4ee86d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4612cf,data:_0x4f9ef6}of _0x292281){const {group:_0x2e8412,type:_0x46e2db,id:_0x339008}=_0x1f7935['_splitMarkerName'](_0x4612cf);if('suggestion'!=_0x2e8412||'deletion'!=_0x46e2db||_0x4f9ef6['oldRange'])continue;if(!_0x1f7935['hasSuggestion'](_0x339008))continue;const _0x5f2787=_0x1f7935['getSuggestion'](_0x339008)['getRanges'](),_0x50dddd=_0x4ee86d['plugins']['get']('Users')['me'];for(const _0x4e0104 of _0x1f7935['getSuggestions']()){if(!_0x4e0104['isInContent']||_0x4e0104['author']!=_0x50dddd)continue;if('formatBlock'!=_0x4e0104['type']||'tablePasteCell'!=_0x4e0104['subType'])continue;if(_0x4e0104['getRanges']()['every'](_0x5c0874=>_0x5f2787['some'](_0x3700a0=>_0x3700a0['containsRange'](_0x5c0874,!0x0)))){for(const _0x2980b8 of _0x4e0104['getAllAdjacentSuggestions']())_0x2980b8['isInContent']&&(_0x2980b8['discard'](),_0x200ac0=!0x0);}}}return _0x200ac0;}),_0x4ee86d['model']['document']['registerPostFixer'](_0x5cc9bd=>{const _0x1b7845=_0x4ee86d['commands']['get']('redo');if(!_0x1b7845||!_0x1b7845['_createdBatches']['has'](_0x5cc9bd['batch']))return!0x1;let _0x5bed7f=!0x1;const _0x929fc7=_0x4ee86d['plugins']['get']('Users')['me'],_0x377a20=_0x4ee86d['model']['document']['differ']['getChanges'](),_0x3174fe=Array['from'](_0x4ee86d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2386b8,data:_0x5941c7})=>{const {group:_0x152493,subType:_0x354940,authorId:_0x5634ec}=_0x1f7935['_splitMarkerName'](_0x2386b8);return'suggestion'==_0x152493&&'tablePaste'==_0x354940&&_0x5634ec==_0x929fc7['id']&&!_0x5941c7['oldRange'];});for(const _0x21cf34 of _0x377a20){if('insert'!=_0x21cf34['type']||'tableCellSuggestion'!=_0x21cf34['name']||0x1!=_0x21cf34['length'])continue;const _0x2a2eb8=_0x5cc9bd['createRange'](_0x21cf34['position'],_0x21cf34['position']['getShiftedBy'](0x1));if(!_0x3174fe['find'](({data:_0x29ff4b})=>_0x29ff4b['newRange']['isEqual'](_0x2a2eb8))){for(const {name:_0x4554bd,data:_0x2ab98c}of _0x3174fe)if(_0x2a2eb8['containsRange'](_0x2ab98c['newRange'])){_0x5cc9bd['updateMarker'](_0x4554bd,{'range':_0x2a2eb8}),_0x5bed7f=!0x0;break;}}}return _0x5bed7f;}),_0x4ee86d['model']['document']['registerPostFixer'](_0x5a119a=>{let _0x4aeb55=!0x1;const _0x1d9272=_0x4ee86d['plugins']['get']('Users')['me'],_0x2056c8=_0x1f7935['getSuggestions']()['filter'](_0x26d5e1=>_0x26d5e1['isInContent']&&_0x26d5e1['author']==_0x1d9272),_0x5be269=new Set(),_0x2ccbf9=new Set();for(const _0x5580d1 of _0x2056c8)if('tablePaste'==_0x5580d1['subType'])for(const _0x4c372b of _0x5580d1['getMarkers']()){const _0x3a5eb8=_0x4c372b['getRange']()['getContainedElement']();if(_0x3a5eb8){if(_0x3a5eb8['is']('element','tableCellSuggestion')&&ke(_0x3a5eb8)){_0x5580d1['removeMarker'](_0x4c372b['name']),_0x5be269['add'](_0x3a5eb8),_0x4aeb55=!0x0;const _0xc3921b=_0x3a5eb8['nextSibling'],_0x19b1cf=_0x3a5eb8['previousSibling'],_0x3f5f1a=_0xc3921b&&_0xc3921b['is']('element','tableCellSuggestion'),_0xf041a9=_0x19b1cf&&_0x19b1cf['is']('element','tableCellSuggestion');_0x3f5f1a&&!_0x5be269['has'](_0xc3921b)&&_0x2ccbf9['add'](_0xc3921b),_0xf041a9&&!_0x5be269['has'](_0x19b1cf)&&_0x2ccbf9['add'](_0x19b1cf);}else _0x3a5eb8['is']('element','paragraph')&&_0x3a5eb8['isEmpty']&&(_0x5580d1['removeMarker'](_0x4c372b['name']),_0x4aeb55=!0x0);}}else{if('tablePasteCell'==_0x5580d1['subType']){if(!_0x5580d1['attributes']||!_0x5580d1['attributes']['tablePasteChainId'])continue;const _0x30239a=_0x5580d1['attributes']['markerAttributes'];if(_0x30239a&&Object['keys'](_0x30239a)['length'])continue;const _0x26b630=_0x5580d1['attributes']['tablePasteChainId'];let _0x42ba5c=!0x0,_0x1a1bfe=!0x0;for(const _0x29c7df of _0x2056c8)if(_0x29c7df['subType']&&_0x29c7df['subType']['startsWith']('tablePaste')){if(!_0x29c7df['attributes']['tablePasteChainId']){_0x1a1bfe=!0x1;break;}if(_0x29c7df['id']!=_0x5580d1['id']&&_0x29c7df['attributes']['tablePasteChainId']==_0x26b630){_0x42ba5c=!0x1;break;}}_0x1a1bfe&&_0x42ba5c&&(_0x5580d1['removeMarkers'](),_0x4aeb55=!0x0);}}for(const _0x309735 of _0x5be269)_0x5a119a['remove'](_0x309735);for(const _0x3c9122 of _0x2ccbf9)_0x5a119a['unwrap'](_0x3c9122);return _0x4aeb55;}),_0x4ee86d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d9317=>_0x57f773(_0x2d9317),'converterPriority':'high'}),_0x4ee86d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x176b45,_0x3cb912)=>_0x3cb912['options']['showSuggestionHighlights']?_0x57f773(_0x176b45,!0x1):null,'converterPriority':'high'});const _0x3add5c=_0x4ee86d['editing']['view'];this['listenTo'](_0x3add5c['document'],'clipboardOutput',(_0x236865,_0x5bcb26)=>{const _0x5948d2=[];for(const _0x51eb26 of _0x3add5c['createRangeIn'](_0x5bcb26['content'])['getItems']())_0x51eb26['is']('element','suggestion-td')&&_0x5948d2['push'](_0x51eb26);_0x3add5c['change'](_0x52102a=>{for(const _0x2b3a8f of _0x5948d2)_0x52102a['move'](_0x52102a['createRangeIn'](_0x2b3a8f),_0x52102a['createPositionBefore'](_0x2b3a8f)),_0x52102a['remove'](_0x2b3a8f);});});}}function ke(_0x2d13e6){if(_0x2d13e6['isEmpty'])return!0x0;const _0xb95271=_0x2d13e6['getChild'](0x0);return _0xb95271['is']('element','paragraph')&&_0xb95271['isEmpty'];}function Re(_0x249c4f,_0x46d551={},_0x388416){for(const {isAnchor:_0x39aa2f,cellHeight:_0x5a3e28,cellWidth:_0x349012}of _0x388416['createTableWalker'](_0x249c4f,{'includeAllSlots':!0x0,..._0x46d551}))if(!_0x39aa2f||0x1!=_0x5a3e28||0x1!=_0x349012)return!0x1;return!0x0;}class Nt extends _0x535470{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x532381=this['editor']['plugins']['get']('TrackChangesEditing');_0x532381['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x532381['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x532381['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532381['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x532381['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x532381['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1047c3,_0x1ebd69){const _0x4adca5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52b6ee=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x540738=_0x1ebd69['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2bfd47=_0x52b6ee['getColumnGroupElement'](_0x540738);let _0x1c20c2=_0x2bfd47?_0x52b6ee['getTableColumnsWidths'](_0x2bfd47):null,_0x40bfd7=_0x540738['getAttribute']('tableWidth')||null;const _0x35d9a8=_0x1ebd69['tableWidth']||_0x40bfd7,_0x3902ee=_0x1ebd69['columnWidths']||_0x1c20c2,_0x5a251a=this['editor']['plugins']['get']('Users')['me'];for(const _0x118436 of _0x4adca5['getSuggestions']()){const _0x18524b=_0x118436['getContainedElement']();if('resizeTable'===_0x118436['subType']&&_0x18524b===_0x540738){_0x118436['author']!==_0x5a251a&&_0x118436['discard']();const _0x3012a7=_0x118436['data']['commandParams'];_0x40bfd7=_0x3012a7[0x0]['tableWidth'],_0x1c20c2=_0x3012a7[0x0]['columnWidths'];break;}}_0x1047c3({'table':_0x540738,'tableWidth':_0x35d9a8,'columnWidths':_0x3902ee}),_0x4adca5['markBlockFormat'](_0x540738,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x40bfd7,'columnWidths':_0x1c20c2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17345f){if('formatBlock'!=_0x17345f['type']&&'formatInline'!=_0x17345f['type'])return;const {data:_0x200638}=_0x17345f;if(_0x200638&&'resizeTable'===_0x200638['formatGroupId']){const _0x301dbc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x301dbc)};}}}class Dt extends _0x535470{['afterInit'](){const _0x51e8f0=this['editor'];_0x51e8f0['plugins']['has']('Template')&&_0x51e8f0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x535470{['afterInit'](){const _0x3ae941=this['editor'];if(!_0x3ae941['commands']['get']('insertTableOfContents'))return;_0x3ae941['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4486de=_0x3ae941['plugins']['get']('TrackChangesEditing'),_0x585dcc=_0x3ae941['locale'];_0x4486de['descriptionFactory']['registerElementLabel']('tableOfContents',_0x479fa2=>o(_0x585dcc,'ELEMENT_TABLE_OF_CONTENTS',_0x479fa2));}}class $t extends _0x535470{['afterInit'](){const _0x1af655=this['editor'];if(!_0x1af655['plugins']['has']('Title'))return;const _0x736a46=_0x1af655['plugins']['get']('TrackChangesEditing');_0x736a46['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1af655['locale'],'ELEMENT_TITLE')),_0x1af655['model']['document']['registerPostFixer'](_0x55c24f=>{let _0x2de6ec=!0x1;const _0xbed0ec=Array['from'](_0x1af655['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43520d,data:_0x24dbd0}of _0xbed0ec){const {group:_0x561243}=_0x736a46['_splitMarkerName'](_0x43520d);if('suggestion'!==_0x561243||!_0x24dbd0['newRange'])continue;const _0x26c912=_0x24dbd0['newRange'],_0x36f26d=_0x26c912['end']['nodeBefore'];if(!_0x36f26d||!_0x36f26d['is']('element','title-content'))continue;if(!_0x26c912['start']['isTouching'](_0x26c912['end']))continue;const _0x480019=_0x1af655['model']['schema']['getNearestSelectionRange'](_0x26c912['end'],'forward');if(_0x480019&&_0x480019['isCollapsed']){const _0x5dee49=_0x55c24f['createRange'](_0x26c912['start'],_0x480019['start']);_0x5dee49['isEqual'](_0x26c912)||(_0x55c24f['updateMarker'](_0x43520d,{'range':_0x5dee49}),_0x2de6ec=!0x0);}_0x2de6ec||(_0x55c24f['removeMarker'](_0x43520d),_0x2de6ec=!0x0);}return _0x2de6ec;});}}class Bt extends _0x535470{['afterInit'](){const _0x5a4af8=this['editor'],_0x386c74=_0x5a4af8['plugins']['get']('TrackChangesEditing');_0x5a4af8['plugins']['has']('UndoEditing')&&(_0x386c74['enableCommand']('undo'),_0x386c74['enableCommand']('redo'));}}class xt extends _0x535470{static get['requires'](){return[It];}['afterInit'](){const _0x1fbfdf=this['editor'];if(!_0x1fbfdf['plugins']['has']('TableCaptionEditing'))return;_0x1fbfdf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x535470{['tableProperties'];['tableCellProperties'];constructor(_0x43110c){super(_0x43110c),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 _0x385115=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x7fdfd6 of this['tableProperties'])_0x385115['enableCommand'](_0x7fdfd6,(_0x3cf15a,_0x31e08d)=>{const _0x2eba8a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x7fdfd6,[_0x2eba8a],this['tableProperties'],'tableProperties',_0x3cf15a,_0x31e08d);});_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x385115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x561578,_0x54a84b)=>this['handleDiscardAction'](this['tableProperties'],_0x561578,_0x54a84b)),_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x16467f of this['tableCellProperties'])_0x385115['enableCommand'](_0x16467f,(_0x8373e6,_0x1aa3b9)=>{const _0x310a6e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x16467f,_0x310a6e,this['tableCellProperties'],'tableCellProperties',_0x8373e6,_0x1aa3b9);});_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x385115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43cc0e,_0x500735)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43cc0e,_0x500735)),_0x385115['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x385115['descriptionFactory']['registerDescriptionCallback'](_0x44ea1e=>this['handleSuggestionDescription'](_0x44ea1e));}['_handlePropertyChange'](_0x103b3e,_0x53fc66,_0x4da410,_0x30010e,_0xe2a287,_0x26df42){const _0x403966=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x26df42['batch'],()=>{for(const _0x3c871c of _0x53fc66){if(this['_getSuggestion'](_0x3c871c,_0x30010e))_0xe2a287(_0x26df42);else{const _0xce1eda={};for(const _0x434851 of _0x4da410){const _0x534a4c=_0x3c871c['getAttribute'](_0x434851);void 0x0!==_0x534a4c&&(_0xce1eda[_0x434851]=_0x534a4c);}_0xe2a287(_0x26df42),_0x403966['markBlockFormat'](_0x3c871c,{'commandParams':[_0xce1eda]},[],_0x30010e);}}});}['handleDiscardAction'](_0x2d6b01,_0x2baafe,_0x295f7a){const _0x51ec12=_0x2baafe[0x0]['start']['nodeAfter'],_0x25f5d1=_0x295f7a['commandParams'][0x0];this['editor']['model']['change'](_0x211041=>{for(const _0x1f888f of _0x2d6b01)void 0x0!==_0x25f5d1[_0x1f888f]?_0x211041['setAttribute'](_0x1f888f,_0x25f5d1[_0x1f888f],_0x51ec12):_0x211041['removeAttribute'](_0x1f888f,_0x51ec12);});}['handleSuggestionDescription'](_0x4e8dbb){if(_0x4e8dbb['data'])switch(_0x4e8dbb['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'](_0x1e1345,_0x5157e0){const _0xef2410=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58d1d0 of _0xef2410['getSuggestions']({'skipNotAttached':!0x0})){const _0x54c004=_0x58d1d0['getContainedElement']();if(_0x58d1d0['subType']===_0x5157e0&&_0x54c004===_0x1e1345)return _0x58d1d0;}return null;}}const m='$elementName';class p extends _0x535470{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x13c229,_0x454fa6,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x282657){function _0x55d0e2(_0x1f7cb3){return _0x1f7cb3['map'](_0x19fc4e=>String['fromCharCode'](_0x19fc4e))['join']('');}super(_0x282657),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46a331,_0x4b4378,_0x5b6f62,_0x548d20)=>{this['_model']['change'](()=>{for(const _0x52411c of[..._0x548d20,..._0x5b6f62])this['_model']['markers']['has'](_0x52411c)&&_0x282657['editing']['reconvertMarker'](_0x52411c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x282657['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(),_0x282657['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x282657['config']['get']('trackChanges.trackFormatChanges'),_0x282657['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x282657['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x282657,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x55d0e2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55d0e2([0x34,0x30,0x34,0x38,0x32,0x30,0x35,0x38]);}['init'](){const _0x23a661=this['editor'],_0x1389b4=(_0x5932fc,_0x2727c8)=>{if('attribute'!=_0x5932fc)return'ck-suggestion-marker-'+_0x5932fc;const _0x1e0ad8=_0x2727c8['split']('|')[0x0];return this['_isBlockAttribute'](_0x1e0ad8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x23a661['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1b3a79=>{const {id:_0x3d4c55,authorId:_0x303b5a,type:_0x292a09,subType:_0x46e70d}=this['_splitMarkerName'](_0x1b3a79['markerName']),_0x1c6c95=['ck-suggestion-marker',_0x1389b4(_0x292a09,_0x46e70d)];let _0x5da428=0xbb8;return this['activeMarkers']['includes'](_0x1b3a79['markerName'])&&(_0x1c6c95['push']('ck-suggestion-marker--active'),_0x5da428=0xbc2),'deletion'==_0x292a09&&(_0x5da428+=0x5),{'classes':_0x1c6c95,'attributes':{'data-suggestion':_0x3d4c55,'data-author-id':_0x303b5a},'priority':_0x5da428};}}),_0x23a661['conversion']['for']('dataDowncast')['add'](_0x380ab8=>{_0x380ab8['on']('addMarker:suggestion',(_0x257022,_0x14d453,_0x43ea07)=>{if(!_0x43ea07['options']['showSuggestionHighlights'])return;const _0x4deece=_0x14d453['item'];if(!_0x4deece)return;const _0x18fd65=_0x43ea07['mapper']['toViewElement'](_0x4deece);_0x23a661['model']['schema']['isObject'](_0x4deece)&&_0x18fd65&&!_0x18fd65['getCustomProperty']('widget')&&_0x18fd65['is']('containerElement')&&_0x47816f(_0x18fd65,_0x43ea07['writer']);},{'priority':'high'});}),_0x23a661['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x35ea2e,_0x401a93)=>{if(!_0x401a93['options']['showSuggestionHighlights'])return null;const {type:_0x2e26e5,subType:_0x29c7b0}=this['_splitMarkerName'](_0x35ea2e['markerName']);return{'classes':['ck-suggestion-marker',_0x1389b4(_0x2e26e5,_0x29c7b0)],'priority':0xbb8};}});const _0x5ddd07=({showActiveMarkers:_0x42c285=!0x0,isAttributeSuggestion:_0x10d351=!0x1}={})=>(_0x4c7f7f,_0x417e9b,_0xeb6395)=>{if(!_0x417e9b['item'])return;const {id:_0x243996,authorId:_0x565fa0}=this['_splitMarkerName'](_0x417e9b['markerName']);if(_0x10d351){const _0x4b4a95=this['_suggestions']['get'](_0x243996),_0x5cc579=this['_getAttributeKey'](_0x4b4a95);if(!this['_isBlockAttribute'](_0x5cc579))return;}if(_0x417e9b['item']['is']('selection'))return void _0xeb6395['consumable']['consume'](_0x417e9b['item'],_0x4c7f7f['name']);const _0x3aec57=_0xeb6395['mapper']['toViewElement'](_0x417e9b['item']);if(_0x417e9b['item']['is']('element')&&_0x23a661['model']['schema']['isBlock'](_0x417e9b['item'])&&!_0x3aec57['getCustomProperty']('addHighlight')){_0xeb6395['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3aec57),_0xeb6395['writer']['setAttribute']('data-suggestion',_0x243996,_0x3aec57),_0xeb6395['writer']['setAttribute']('data-author-id',_0x565fa0,_0x3aec57),_0xeb6395['mapper']['bindElementToMarker'](_0x3aec57,_0x417e9b['markerName']),_0x42c285&&(this['activeMarkers']['includes'](_0x417e9b['markerName'])?_0xeb6395['writer']['addClass']('ck-suggestion-marker--active',_0x3aec57):_0xeb6395['writer']['removeClass']('ck-suggestion-marker--active',_0x3aec57));for(const _0x56e438 of _0x23a661['model']['createRangeIn'](_0x417e9b['item'])['getItems']())_0xeb6395['consumable']['consume'](_0x56e438,_0x4c7f7f['name']);_0xeb6395['consumable']['consume'](_0x417e9b['item'],_0x4c7f7f['name']);}};_0x23a661['conversion']['for']('dataDowncast')['add'](_0x34f996=>{_0x34f996['on']('addMarker:suggestion:formatBlock',(_0x579e9f,_0x1e92c8,_0x587b01)=>{_0x587b01['options']['showSuggestionHighlights']&&_0x5ddd07({'showActiveMarkers':!0x1})(_0x579e9f,_0x1e92c8,_0x587b01);},{'priority':'highest'});}),_0x23a661['conversion']['for']('dataDowncast')['add'](_0x135718=>{_0x135718['on']('addMarker:suggestion:attribute',(_0x5e3206,_0x48c6bb,_0x4e8cd5)=>{_0x4e8cd5['options']['showSuggestionHighlights']&&_0x5ddd07({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e3206,_0x48c6bb,_0x4e8cd5);},{'priority':'highest'});}),_0x23a661['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x47a504,_0x2b977e)=>_0x2b977e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x47a504['substr'](0xb)}}),_0x23a661['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2cf35d,{writer:_0xf38f4})=>{let _0xc07fb='suggestion:'+_0x2cf35d['getAttribute']('suggestion-type')+':'+_0x2cf35d['getAttribute']('id');return _0x2cf35d['getAttribute']('marker-count')&&(_0xc07fb+=':'+_0x2cf35d['getAttribute']('marker-count')),_0xf38f4['createElement']('$marker',{'data-name':_0xc07fb});}}),_0x23a661['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x23a661['conversion']['for']('editingDowncast')['add'](_0x3eb09e=>{_0x3eb09e['on']('addMarker:suggestion:formatBlock',_0x5ddd07(),{'priority':'high'});}),_0x23a661['conversion']['for']('editingDowncast')['add'](_0x11b9ff=>{_0x11b9ff['on']('addMarker:suggestion:attribute',_0x5ddd07({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x23a661['conversion']['for']('editingDowncast')['add'](_0x33ac25=>{_0x33ac25['on']('removeMarker:suggestion:formatBlock',(_0x316400,_0x3b5b17,_0x4ae2b1)=>{const _0x47f49f=_0x4ae2b1['mapper']['markerNameToElements'](_0x3b5b17['markerName']);if(_0x47f49f){for(const _0x595712 of _0x47f49f)_0x595712['getCustomProperty']('addHighlight')||(_0x4ae2b1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x595712),_0x4ae2b1['writer']['removeAttribute']('data-suggestion',_0x595712),_0x4ae2b1['writer']['removeAttribute']('data-author-id',_0x595712),_0x4ae2b1['mapper']['unbindElementFromMarkerName'](_0x595712,_0x3b5b17['markerName']));}},{'priority':'high'});}),_0x23a661['conversion']['for']('editingDowncast')['add'](_0x179f85=>{_0x179f85['on']('removeMarker:suggestion:attribute',(_0x1da613,_0x59ac43,_0x1a5351)=>{const _0xe046d6=_0x1a5351['mapper']['markerNameToElements'](_0x59ac43['markerName']);if(!_0xe046d6)return;const {id:_0x1f80a6}=this['_splitMarkerName'](_0x59ac43['markerName']),_0x40890b=this['_suggestions']['get'](_0x1f80a6),_0x142341=this['_getAttributeKey'](_0x40890b);if(this['_isBlockAttribute'](_0x142341)){for(const _0x97581 of _0xe046d6)_0x97581['getCustomProperty']('addHighlight')||(_0x1a5351['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x97581),_0x1a5351['writer']['removeAttribute']('data-suggestion',_0x97581),_0x1a5351['writer']['removeAttribute']('data-author-id',_0x97581),_0x1a5351['mapper']['unbindElementFromMarkerName'](_0x97581,_0x59ac43['markerName']));}},{'priority':'high'});}),_0x23a661['model']['document']['registerPostFixer'](_0xc336ac=>{let _0x5bc252=!0x1;const _0x557242=Array['from'](_0x23a661['model']['document']['differ']['getChangedMarkers']()),_0x3690d0=new Set();for(const {name:_0x49819c,data:_0x3ecaa4}of _0x557242){const {group:_0x34301e,type:_0x3081e9,subType:_0x31ea3a,id:_0x21dffa}=this['_splitMarkerName'](_0x49819c);if('suggestion'!==_0x34301e)continue;const _0x1bf4e6=this['_suggestions']['get'](_0x21dffa);if(null!=_0x3ecaa4['newRange']){'formatInline'==_0x3081e9&&(_0x5bc252=_0x5bc252||Ut(_0x3ecaa4['newRange'],_0x49819c,_0xc336ac,_0x23a661['model']['schema']));const _0x1848ad='attribute'==_0x3081e9&&this['_isBlockAttribute'](_0x31ea3a['split']('|')[0x0]);if(_0x3ecaa4['newRange']['isCollapsed']||'$graveyard'==_0x3ecaa4['newRange']['root']['rootName']||'formatBlock'==_0x3081e9&&!Gt(_0x3ecaa4['newRange'])||_0x1848ad&&!Gt(_0x3ecaa4['newRange'])||'deletion'==_0x3081e9&&!(!Vt(_0x199194=_0x3ecaa4['newRange'])&&!function(_0x3acb20){return _0x3acb20['start']['parent']==_0x3acb20['end']['nodeBefore']&&_0x3acb20['start']['isAtEnd'];}(_0x199194)))_0xc336ac['removeMarker'](_0x49819c),_0x5bc252=!0x0;else{if(!_0x1bf4e6||!_0x1bf4e6['isInContent'])continue;if(_0x3ecaa4['newRange']&&_0x3ecaa4['oldRange']&&_0x3ecaa4['newRange']['isEqual'](_0x3ecaa4['oldRange']))continue;_0x3690d0['add'](_0x1bf4e6);}}}var _0x199194;return _0x3690d0['size']>0x0&&(_0x5bc252=!!this['_joinWithAdjacentSuggestions'](_0x3690d0)||_0x5bc252),_0x5bc252;}),_0x23a661['model']['document']['registerPostFixer'](_0x2eb289=>{let _0xa58449=!0x1;for(const _0x1f9845 of _0x23a661['model']['document']['differ']['getChanges']())if('insert'==_0x1f9845['type'])for(const _0x5e7a8f of this['_suggestions']['values']()){if(_0x5e7a8f['isMultiRange']||!_0x5e7a8f['isInContent'])continue;const _0x103356='formatBlock'==_0x5e7a8f['type'],_0x29d656=this['_getAttributeKey'](_0x5e7a8f),_0x2b22aa=_0x29d656&&this['_isBlockAttribute'](_0x29d656);if(!_0x103356&&!_0x2b22aa)continue;const _0x311fea=_0x5e7a8f['getFirstRange']();if(_0x311fea['start']['parent']!=_0x311fea['end']['parent']&&!_0x311fea['end']['isAtEnd']){const _0x292329=_0x23a661['model']['createPositionAt'](_0x311fea['start']['nodeAfter'],'end'),_0x24a538=_0x23a661['model']['createRange'](_0x311fea['start'],_0x292329);_0x2eb289['updateMarker'](_0x5e7a8f['getFirstMarker'](),{'range':_0x24a538}),_0xa58449=!0x0;}}return _0xa58449;}),_0x23a661['model']['document']['registerPostFixer'](_0x42b684=>this['_processAttributeChanges'](_0x42b684)),_0x23a661['model']['document']['registerPostFixer'](_0x34acdb=>!_0x34acdb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34acdb)),_0x23a661['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x23a661['model']['document']['on']('change:data',(_0x191755,_0x14f82e)=>{if(!_0x14f82e['isLocal']||_0x14f82e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x30cfa5=_0x23a661['model']['document']['differ']['getChanges']();if(0x0==_0x30cfa5['length'])return;const _0x3fa989=[],_0xa1b140=_0x30cfa5['filter'](_0x21b198=>'attribute'==_0x21b198['type']),_0x22a748=_0x30cfa5['filter'](_0x3046dd=>'insert'==_0x3046dd['type']&&'$text'!=_0x3046dd['name']);for(const _0x462756 of _0xa1b140)this['_isRegisteredAttribute'](_0x462756['attributeKey'])&&_0x3fa989['push']({'key':_0x462756['attributeKey'],'newValue':_0x462756['attributeNewValue'],'oldValue':_0x462756['attributeOldValue'],'range':Ft(_0x462756['range'],_0x23a661['model'])});for(const _0x22f668 of _0x22a748){if('rename'!=_0x22f668['action']&&'refresh'!=_0x22f668['action'])continue;const _0xfc992c=Lt(_0x22f668['position']['nodeAfter'],_0x23a661['model']),_0x2b5bb2=_0x22f668['before'];'rename'==_0x22f668['action']&&_0x3fa989['push']({'key':m,'newValue':_0x22f668['name'],'oldValue':_0x2b5bb2['name'],'range':_0xfc992c});for(const [_0x3c5cf1,_0x39c66c]of _0x2b5bb2['attributes']){if(!this['_isRegisteredAttribute'](_0x3c5cf1))continue;const _0x489d04=_0x22f668['attributes']['get'](_0x3c5cf1);_0x39c66c!==_0x489d04&&_0x3fa989['push']({'key':_0x3c5cf1,'newValue':_0x489d04,'oldValue':_0x39c66c,'range':_0xfc992c});}for(const [_0x436054,_0x433bb5]of _0x22f668['attributes'])this['_isRegisteredAttribute'](_0x436054)&&(_0x2b5bb2['attributes']['has'](_0x436054)||_0x3fa989['push']({'key':_0x436054,'newValue':_0x433bb5,'oldValue':null,'range':_0xfc992c}));}0x0!=_0x3fa989['length']&&_0x23a661['model']['enqueueChange'](_0x14f82e,_0x4d9dd0=>{const _0x56fbfe=_0x140993();for(const {range:_0x89a3d,key:_0x53f229,oldValue:_0x1a8ff6,newValue:_0x3ab2e2}of _0x3fa989)this['markAttributeChange'](_0x89a3d,_0x53f229,_0x1a8ff6,_0x3ab2e2,{'groupId':_0x56fbfe});this['_reduceExistingSuggestions'](_0x4d9dd0,_0x3fa989);});},{'priority':'lowest'}),_0x23a661['model']['markers']['on']('update:suggestion',(_0x4e7a64,_0x335049,_0x55c81e)=>{if(null==_0x55c81e){const {id:_0x3e8392}=this['_splitMarkerName'](_0x335049['name']),_0x438f9d=this['_suggestions']['get'](_0x3e8392);_0x438f9d&&_0x438f9d['addMarkerName'](_0x335049['name']);}}),_0x23a661['model']['document']['on']('change:data',()=>{const _0x4ddbe8=Array['from'](_0x23a661['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ba135=>'suggestion'===this['_splitMarkerName'](_0x3ba135['name'])['group']);if(0x0===_0x4ddbe8['length'])return;_0x4ddbe8['sort']((_0x76818a,_0x2a0b77)=>{const _0x4abf4c=_0x76818a['data']['oldRange'],_0x184d27=_0x2a0b77['data']['oldRange'];return null===_0x4abf4c&&null===_0x184d27?0x0:null===_0x4abf4c&&null!==_0x184d27?-0x1:null!==_0x4abf4c&&null===_0x184d27?0x1:_0x4abf4c['start']['isBefore'](_0x184d27['start'])?-0x1:0x1;});const _0x1b4d76=new Set(),_0x14098f=new Set();for(const {name:_0x296a6c,data:_0x456171}of _0x4ddbe8){const {id:_0x1e2299}=this['_splitMarkerName'](_0x296a6c);if(null===_0x456171['oldRange']){const _0x593186=this['_handleNewSuggestionMarker'](_0x296a6c);_0x14098f['add'](_0x593186);}else{const _0x5d1453=this['_suggestions']['get'](_0x1e2299);null!==_0x456171['newRange']||_0x5d1453['isInContent']?(_0x1b4d76['add'](_0x5d1453['head']),_0x14098f['add'](_0x5d1453)):this['_removeSuggestion'](_0x5d1453);}}_0x14098f['size']>0x0&&this['_refreshSuggestionsChain'](_0x14098f);for(const _0x7482fb of _0x1b4d76)this['fire']('suggestionChanged',_0x7482fb);}),_0x23a661['model']['on']('applyOperation',(_0x2fa6ca,_0x22d17c)=>{const _0x5a4b4b=_0x22d17c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5a4b4b['isDocumentOperation'])return;if(_0x5a4b4b['batch']['isUndo']||!_0x5a4b4b['batch']['isLocal'])return;let _0x481677,_0x2696c1;switch(_0x5a4b4b['type']){case'insert':_0x481677=_0x23a661['model']['createPositionAt'](_0x5a4b4b['position']),_0x2696c1=_0x481677['getShiftedBy'](_0x5a4b4b['howMany']);break;case'split':_0x481677=_0x23a661['model']['createPositionAt'](_0x5a4b4b['splitPosition']),_0x2696c1=_0x23a661['model']['createPositionAt'](_0x5a4b4b['moveTargetPosition']);break;case'move':_0x481677=_0x23a661['model']['createPositionAt'](_0x5a4b4b['targetPosition']),_0x2696c1=_0x481677['getShiftedBy'](_0x5a4b4b['howMany']);break;default:return;}const _0x1063d6=_0x23a661['model']['createRange'](_0x481677,_0x2696c1);_0x23a661['model']['change'](()=>{for(const {suggestion:_0x318d32,meta:_0x567038}of this['_findSuggestions'](_0x1063d6)){if(_0x318d32['isMultiRange'])continue;if('formatInline'==_0x318d32['type'])continue;const _0x369586=this['_getAttributeKey'](_0x318d32);if(_0x369586&&this['_isBlockAttribute'](_0x369586)&&'split'!=_0x5a4b4b['type'])continue;const _0x55cc4a=_0x318d32['data']&&_0x318d32['data']['multipleBlocks'];('formatBlock'!=_0x318d32['type']||'split'==_0x5a4b4b['type']&&!_0x55cc4a)&&(_0x567038['containsRangeInObject']||'insertion'==_0x318d32['type']&&_0x567038['isOwn']||_0x318d32['getFirstRange']()['containsRange'](_0x1063d6)&&this['_breakSuggestionMarker'](_0x318d32,_0x481677,_0x2696c1));}});},{'priority':'lowest'}),_0x23a661['model']['on']('deleteContent',(_0x8e01e3,_0x56b025)=>{const _0x3bb7a2=_0x56b025[0x0],_0x5bff5e=_0x56b025[0x1];if(_0x5bff5e&&_0x5bff5e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3bb7a2['isCollapsed'])return;const _0x21555c=_0x23a661['model']['schema'],{start:_0x5dca08,end:_0x867d5e}=_0x3bb7a2['getFirstRange'](),_0x348e28=_0x5dca08['nodeAfter']&&_0x21555c['isLimit'](_0x5dca08['nodeAfter'])?null:_0x21555c['getNearestSelectionRange'](_0x5dca08,'forward'),_0x15844c=_0x867d5e['nodeBefore']&&_0x21555c['isLimit'](_0x867d5e['nodeBefore'])?null:_0x21555c['getNearestSelectionRange'](_0x867d5e,'backward'),_0x21eb03=_0x23a661['model']['createRange'](_0x348e28?_0x348e28['start']:_0x5dca08,_0x15844c?_0x15844c['end']:_0x867d5e);_0x23a661['model']['change'](_0x50fd47=>{this['markDeletion'](_0x21eb03);const _0x48150d=_0x23a661['model']['schema']['getNearestSelectionRange'](_0x21eb03['start']);_0x3bb7a2['is']('documentSelection')?_0x50fd47['setSelection'](_0x48150d):_0x3bb7a2['setTo'](_0x48150d);}),_0x8e01e3['stop']();},{'priority':_0x2fcfc6['normal']+0xa}),_0x23a661['model']['on']('insertContent',(_0x152940,_0x4f6d1c)=>{const _0x4c978b=_0x4f6d1c[_0x4f6d1c['length']-0x1];_0x4c978b&&_0x4c978b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x23a661['model']['change'](()=>{let _0x531708=_0x23a661['model']['insertContent'](_0x4f6d1c[0x0],_0x4f6d1c[0x1],_0x4f6d1c[0x2],{'forceDefaultExecution':!0x0});if(!_0x531708)return;_0x152940['return']=_0x531708['clone']();const _0x1aaab1=_0x531708['end']['nodeBefore'],_0x58da7e=_0x23a661['model']['schema'];_0x1aaab1&&_0x58da7e['isBlock'](_0x1aaab1)&&!_0x58da7e['isObject'](_0x1aaab1)&&(_0x531708=_0x23a661['model']['createRange'](_0x531708['start'],_0x23a661['model']['createPositionAt'](_0x1aaab1,'end'))),this['markInsertion'](_0x531708);}),_0x152940['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56e873=new x(_0x23a661,this['_suggestions']);_0x23a661['commands']['add']('acceptSuggestion',_0x56e873),this['enableCommand']('acceptSuggestion');const _0xb92f02=new O(_0x23a661,this['_suggestions']);_0x23a661['commands']['add']('discardSuggestion',_0xb92f02),this['enableCommand']('discardSuggestion'),_0x23a661['commands']['add']('acceptAllSuggestions',new R(_0x23a661,_0x56e873,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x23a661['commands']['add']('discardAllSuggestions',new R(_0x23a661,_0xb92f02,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x23a661['commands']['add']('acceptSelectedSuggestions',new E(_0x23a661,_0x56e873,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x23a661['commands']['add']('discardSelectedSuggestions',new E(_0x23a661,_0xb92f02,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29b90b=_0x23a661['plugins']['get']('CommentsRepository');this['listenTo'](_0x29b90b,'addComment',(_0x1dbc02,{threadId:_0x381117})=>{const _0x201782=this['_suggestions']['get'](_0x381117);_0x201782&&_0x201782['commentThread']&&0x1===_0x201782['commentThread']['length']&&this['_updateSuggestionData'](_0x381117,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29b90b,'removeComment',(_0xc59e99,{threadId:_0x436d5b})=>{const _0x3ef5f5=this['_suggestions']['get'](_0x436d5b);_0x3ef5f5&&_0x3ef5f5['commentThread']&&!_0x3ef5f5['commentThread']['length']&&this['_updateSuggestionData'](_0x436d5b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4a3fea){if(this['_adapter'])throw new _0xe104bf('track-changes-adapter-already-set',this);this['_adapter']=_0x4a3fea;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa55001=!0x1,toJSON:_0x2e46ff=!0x1}={}){const _0x18f36d=[];for(const _0x352b87 of this['_suggestions']['values']())_0xa55001&&!_0x352b87['isInContent']||_0x18f36d['push'](_0x352b87);return _0x2e46ff?_0x18f36d['map'](_0x1d4a91=>_0x1d4a91['toJSON']()):_0x18f36d;}['getSuggestion'](_0x396807){const _0x1f82a2=this['_suggestions']['get'](_0x396807);if(!_0x1f82a2)throw new _0xe104bf('track-changes-suggestion-not-found',this);return _0x1f82a2;}['hasSuggestion'](_0xf902cd){return this['_suggestions']['has'](_0xf902cd);}['addSuggestionData'](_0x18a959){const {authorId:_0x51ef97,id:_0xdc04db,attributes:_0x22cc64}=_0x18a959,[_0x43234c,_0x11c972]=_0x18a959['type']['split'](':'),_0x334956=this['_suggestions']['get'](_0xdc04db)||this['_createSuggestion'](_0x43234c,_0x11c972,_0xdc04db,_0x51ef97,_0x22cc64);if(this['_addThreadToSuggestion'](_0x334956),this['_checkSuggestionCorrectness'](_0x334956,_0x43234c,_0x11c972||null,_0x51ef97),_0x334956['createdAt']=_0x18a959['createdAt'],_0x334956['_isDataLoaded']=!0x0,_0x22cc64&&_0x22cc64['@external']){const _0x413279=_0x22cc64['@external'],_0x2bb5d4=this['_getExternalAuthor'](_0x413279['authorName']);_0x334956['authoredAt']=_0x413279['createdAt'],_0x334956['author']=_0x2bb5d4,_0x334956['isExternal']=!0x0;}else _0x334956['authoredAt']=_0x18a959['createdAt'];switch(_0x18a959['data']&&(_0x334956['data']=_0x18a959['data']),_0x18a959['attributes']&&(_0x334956['attributes']=_0x18a959['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x334956['_saved']=!0x0),this['_suggestionState']['get'](_0x334956)){case'notReady':this['_suggestionState']['set'](_0x334956,'dataReady');break;case'markerReady':_0x334956['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x334956])),this['_refreshSuggestionsChain'](new Set([_0x334956])),this['_suggestionState']['set'](_0x334956,'ready'),this['fire']('suggestionLoaded',_0x334956)):this['_suggestionState']['set'](_0x334956,'removed');}return _0x334956;}['acceptSuggestion'](_0x4ef40d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7784e9 of _0x4ef40d['getAllAdjacentSuggestions']())_0x7784e9['accept']();});});}['discardSuggestion'](_0x5865ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16c4c5 of _0x5865ea['getAllAdjacentSuggestions']())_0x16c4c5['discard']();});});}['enableCommand'](_0x126078,_0x150f52){const _0x197860=this['editor']['commands']['get'](_0x126078);if(!_0x197860)throw new _0xe104bf('track-changes-command-not-found',this,{'commandName':_0x126078});if(this['_enabledCommands']['has'](_0x197860))throw new _0xe104bf('track-changes-enable-command-twice',this,{'commandName':_0x126078});this['_enabledCommands']['add'](_0x197860),_0x150f52&&_0x197860['on']('execute',(_0x3178e8,_0x2bc38f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2bc38f['length']>0x0&&_0x2bc38f[_0x2bc38f['length']-0x1]&&_0x2bc38f[_0x2bc38f['length']-0x1]['forceDefaultExecution']?_0x2bc38f['pop']():(_0x3178e8['return']=_0x150f52((..._0xa4e2c1)=>_0x197860['execute'](..._0xa4e2c1,{'forceDefaultExecution':!0x0}),..._0x2bc38f),_0x3178e8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x24d8a2){let _0xf0cec2,_0x5430d4;const _0x339678=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xf0cec2=_0x24d8a2();}catch(_0x5016cd){_0x5430d4=_0x5016cd;}return _0x339678||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5430d4&&_0xe104bf['rethrowUnexpectedError'](_0x5430d4,this),_0xf0cec2;}['markInsertion'](_0x3137ac,_0x50babd=null,_0x2295be={}){if(_0x3137ac['isCollapsed'])return null;const _0x547501=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xcf9ead,meta:_0x5ec120}of this['_findSuggestions'](_0x3137ac,'insertion'))if(_0x5ec120['isOwn']){if(!_0x5ec120['isNextTo']){if(_0x5ec120['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xcf9ead,_0x2295be))continue;return _0xcf9ead;}if(qt(_0xcf9ead,_0x2295be))return _0xcf9ead;this['_breakSuggestionMarker'](_0xcf9ead,_0x3137ac['start'],_0x3137ac['end']);break;}if(_0x50babd==_0xcf9ead['subType']&&qt(_0xcf9ead,_0x2295be)){const _0x1005c5=_0xcf9ead['getFirstRange']();return _0x1005c5['start']['isEqual'](_0x3137ac['end'])?this['_setSuggestionRange'](_0xcf9ead,this['_model']['createRange'](_0x3137ac['start'],_0x1005c5['end'])):this['_setSuggestionRange'](_0xcf9ead,this['_model']['createRange'](_0x1005c5['start'],_0x3137ac['end'])),_0xcf9ead;}}const _0xa14d3e=_0x140993(),_0x17013f=_0x547501['id'],_0x26f9b0=_0x50babd?'insertion:'+_0x50babd:'insertion',_0x457212=this['_setSuggestionData']({'id':_0xa14d3e,'type':_0x26f9b0,'createdAt':new Date(),'authorId':_0x17013f,'attributes':_0x2295be});return this['_addSuggestionMarker'](_0x26f9b0,_0xa14d3e,_0x17013f,_0x3137ac),_0x457212;}['markMultiRangeInsertion'](_0x3a2e9d,_0x43c75c='multi',_0x3d8de0={}){const _0xf4c4aa=this['editor']['plugins']['get']('Users')['me'],_0x3ce53d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x43c75c,'join');for(const _0x302828 of this['getSuggestions']())if(_0x302828['author']['id']==_0xf4c4aa['id']&&'insertion'==_0x302828['type']&&_0x302828['subType']==_0x43c75c&&qt(_0x302828,_0x3d8de0)&&(_0x3ce53d(_0x302828['getRanges'](),_0x3a2e9d)||_0x3ce53d(_0x3a2e9d,_0x302828['getRanges']()))){for(const _0x522d44 of _0x3a2e9d)_0x302828['addRange'](_0x522d44);return _0x302828;}for(const {suggestion:_0x248a3e,meta:_0x3495a}of this['_findSuggestions'](_0x3a2e9d,'insertion')){if(!_0x3495a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3495a['containsRangeInObject'])continue;if(!qt(_0x248a3e,_0x3d8de0))continue;let _0x2a3799=!0x0;for(const _0x63edf2 of _0x248a3e['getRanges']())for(const _0x3e7290 of _0x3a2e9d)if(!_0x63edf2['containsRange'](_0x3e7290)){_0x2a3799=!0x1;break;}if(_0x2a3799)return _0x248a3e;}const _0x39bcdb=_0x140993(),_0x1b7c8c=_0xf4c4aa['id'],_0x23bc79='insertion:'+_0x43c75c,_0x442547=this['_setSuggestionData']({'id':_0x39bcdb,'type':_0x23bc79,'createdAt':new Date(),'authorId':_0x1b7c8c,'attributes':_0x3d8de0});for(const _0x4fc3ad of _0x3a2e9d)this['_addSuggestionMarker'](_0x23bc79,_0x39bcdb,_0x1b7c8c,_0x4fc3ad,u['getMultiRangeId']());return _0x442547;}['markInlineFormat'](_0x3e0ae2,_0x5e82cb,_0x53c08c=null,_0x258fcb={}){if(_0x53c08c=_0x53c08c||Pt(_0x5e82cb),_0x3e0ae2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x40f637=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53c08c,'accept');return this['forceDefaultExecution'](()=>_0x40f637([_0x3e0ae2],_0x5e82cb,_0x258fcb)),null;}const _0x29f5fc=this['editor']['plugins']['get']('Users')['me'],_0x3d83af=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x247bd0,meta:_0x4b847e}of this['_findSuggestions'](_0x3e0ae2,'insertion'))_0x4b847e['isOwn']&&!_0x4b847e['isInsideObject']&&_0x3d83af['push'](..._0x247bd0['getRanges']());}const _0x53de9c=function(_0x3e287c,_0x4e5677){const _0x590018=[];for(const _0x47f8f1 of _0x4e5677){const _0x1289c0=_0x3e287c['getIntersection'](_0x47f8f1);_0x1289c0&&_0x590018['push'](_0x1289c0);}return _0x590018;}(_0x3e0ae2,_0x3d83af),_0x41b623=function(_0x458064,_0x4725d9){const _0x11625a=[_0x458064];for(const _0x108b43 of _0x4725d9){let _0x497fd3=0x0;for(;_0x497fd3<_0x11625a['length'];){const _0x2f925c=_0x11625a[_0x497fd3]['getDifference'](_0x108b43);_0x11625a['splice'](_0x497fd3,0x1,..._0x2f925c),_0x497fd3+=_0x2f925c['length'];}}return _0x11625a;}(_0x3e0ae2,_0x3d83af);_0x53de9c['length']&&this['_model']['change'](()=>{for(const _0x38d8eb of _0x53de9c){const _0x33b01f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53c08c,'accept');this['forceDefaultExecution'](()=>_0x33b01f([_0x38d8eb],_0x5e82cb,_0x258fcb));}});for(const _0x3b70fa of _0x41b623){let _0x527cf5=null,_0x19e3bc=_0x3b70fa['start'],_0x350b58=_0x3b70fa['end'];for(const {suggestion:_0x1bc4b1,meta:_0x20a4e5}of this['_findSuggestions'](_0x3b70fa,'formatInline')){if(!_0x20a4e5['isOwn'])continue;if(_0x1bc4b1['subType']!=_0x53c08c)continue;if(!qt(_0x1bc4b1,_0x258fcb))continue;const _0x2c9327=_0x1bc4b1['getFirstRange']();if(_0x2c9327['containsRange'](_0x3b70fa,!0x0))return null;_0x19e3bc=_0x19e3bc['isBefore'](_0x2c9327['start'])?_0x19e3bc:_0x2c9327['start'],_0x350b58=_0x350b58['isAfter'](_0x2c9327['end'])?_0x350b58:_0x2c9327['end'],_0x527cf5?_0x2c9327['start']['isBefore'](_0x527cf5['getFirstRange']()['start'])?(_0x527cf5['removeMarkers'](),_0x527cf5=_0x1bc4b1):_0x1bc4b1['removeMarkers']():_0x527cf5=_0x1bc4b1;}const _0x371380=this['_model']['createRange'](_0x19e3bc,_0x350b58);if(_0x527cf5)this['_setSuggestionRange'](_0x527cf5,_0x371380);else{const _0x50aaa1=_0x140993(),_0x3f6ea3=_0x29f5fc['id'];this['_setSuggestionData']({'id':_0x50aaa1,'type':'formatInline:'+_0x53c08c,'data':_0x5e82cb,'createdAt':new Date(),'authorId':_0x3f6ea3,'attributes':_0x258fcb}),this['_addSuggestionMarker']('formatInline:'+_0x53c08c,_0x50aaa1,_0x3f6ea3,_0x371380);}}return null;}['markBlockFormat'](_0x13751a,_0x2251be,_0x2e23be=[],_0x222983=null,_0x2ef97b={}){_0x2251be['formatGroupId']||(_0x2251be['formatGroupId']=_0x2251be['commandName']),_0x2251be['multipleBlocks']=_0x13751a['is']('range'),_0x222983=_0x222983||Pt(_0x2251be);const _0xf69725=_0x2e23be['map'](_0x325e66=>Lt(_0x325e66,this['_model'])),_0x452ffd=_0x13751a['is']('range')?_0x13751a:Lt(_0x13751a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1fe3c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x222983,'accept');return this['forceDefaultExecution'](()=>_0x1fe3c5([_0x452ffd],_0x2251be,_0x2ef97b)),null;}_0xf69725['push'](_0x452ffd);let _0x4fb4f0=!0x0;for(const _0x4958c4 of _0xf69725)if(!this['_rangeIsInLocalUserInsertion'](_0x4958c4)){_0x4fb4f0=!0x1;break;}if(_0x4fb4f0&&'always'!==this['_trackFormatChanges']){const _0x54f63b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x222983,'accept');return this['forceDefaultExecution'](()=>_0x54f63b([_0x452ffd],_0x2251be,_0x2ef97b)),null;}let _0x3f3c8c=null,_0x4713fb=_0x452ffd['start'],_0x474e08=_0x452ffd['end'];for(const {suggestion:_0x3f28c7,meta:_0x31e5e4}of this['_findSuggestions'](_0x452ffd,'formatBlock')){if(!_0x31e5e4['isOwn'])continue;if(_0x31e5e4['isNextTo']||_0x31e5e4['containsRangeInObject']||_0x31e5e4['isInsideObject'])continue;if(_0x3f28c7['data']['formatGroupId']!=_0x2251be['formatGroupId'])continue;if(!qt(_0x3f28c7,_0x2ef97b))continue;const _0x79e5a5=_0x3f28c7['getFirstRange']();if(_0x3f28c7['subType']==_0x222983){if(_0x79e5a5['containsRange'](_0x452ffd,!0x0))return null;_0x4713fb=_0x4713fb['isBefore'](_0x79e5a5['start'])?_0x4713fb:_0x79e5a5['start'],_0x474e08=_0x474e08['isAfter'](_0x79e5a5['end'])?_0x474e08:_0x79e5a5['end'],_0x3f3c8c?_0x79e5a5['start']['isBefore'](_0x3f3c8c['getFirstRange']()['start'])?(_0x3f3c8c['removeMarkers'](),_0x3f3c8c=_0x3f28c7):_0x3f28c7['removeMarkers']():_0x3f3c8c=_0x3f28c7;}else{const _0x476c04=_0x452ffd['getIntersection'](_0x79e5a5);this['_cutOutSuggestionMarker'](_0x3f28c7,_0x476c04);}}const _0x1bf84b=this['editor']['plugins']['get']('Users')['me'],_0x285d75=_0x140993(),_0x27a66d=_0x1bf84b['id'];if(_0x3f3c8c)return this['_setSuggestionRange'](_0x3f3c8c,this['_model']['createRange'](_0x4713fb,_0x474e08)),_0x3f3c8c;{const _0x38e1d8=this['_setSuggestionData']({'id':_0x285d75,'type':'formatBlock:'+_0x222983,'data':_0x2251be,'createdAt':new Date(),'authorId':_0x27a66d,'attributes':_0x2ef97b});return this['_addSuggestionMarker']('formatBlock:'+_0x222983,_0x285d75,_0x27a66d,this['_model']['createRange'](_0x4713fb,_0x474e08)),_0x38e1d8;}}['markMultiRangeBlockFormat'](_0x152436,_0x2e129f,_0x5c42bd=[],_0x3715de=null,_0x4fedff={}){_0x2e129f['formatGroupId']||(_0x2e129f['formatGroupId']=_0x2e129f['commandName']);const _0x103e06=_0x152436[0x0];_0x2e129f['multipleBlocks']=_0x103e06['is']('range'),_0x3715de=_0x3715de||Pt(_0x2e129f);const _0x43335d=_0x5c42bd['map'](_0x51be02=>Lt(_0x51be02,this['_model'])),_0x16d7a4=_0x103e06['is']('range')?_0x152436:_0x152436['map'](_0x3f7c2d=>Lt(_0x3f7c2d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b339d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3715de,'accept');return this['forceDefaultExecution'](()=>_0x2b339d(_0x16d7a4,_0x2e129f,_0x4fedff)),null;}_0x43335d['push'](..._0x16d7a4);let _0x37f3c5=!0x0;for(const _0x4e831f of _0x43335d)if(!this['_rangeIsInLocalUserInsertion'](_0x4e831f)){_0x37f3c5=!0x1;break;}if(_0x37f3c5&&'always'!==this['_trackFormatChanges']){const _0x2a7751=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3715de,'accept');return this['forceDefaultExecution'](()=>_0x2a7751(_0x16d7a4,_0x2e129f,_0x4fedff)),null;}const _0x4c13eb=this['editor']['plugins']['get']('Users')['me'];for(const _0x397fde of this['getSuggestions']()){if(_0x397fde['author']['id']!=_0x4c13eb['id'])continue;if('formatBlock'!=_0x397fde['type']||_0x397fde['data']['formatGroupId']!=_0x2e129f['formatGroupId'])continue;if(!qt(_0x397fde,_0x4fedff))continue;const _0x2f7c7b=_0x397fde['subType']==_0x3715de;for(let _0x3ac351=0x0;_0x3ac351<_0x16d7a4['length'];_0x3ac351++){const _0x75f539=_0x16d7a4[_0x3ac351];for(const _0x38b18f of _0x397fde['getMarkers']()){const _0x17281e=_0x38b18f['getRange']();if(_0x75f539['isEqual'](_0x17281e)){_0x2f7c7b?(_0x16d7a4['splice'](_0x3ac351,0x1),_0x3ac351--):_0x397fde['removeMarker'](_0x38b18f['name']);break;}}}}if(0x0==_0x16d7a4['length'])return null;const _0x51cb4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3715de,'join');for(const _0x374a8a of this['getSuggestions']())if(_0x374a8a['author']['id']==_0x4c13eb['id']&&'formatBlock'==_0x374a8a['type']&&_0x374a8a['data']['formatGroupId']==_0x2e129f['formatGroupId']&&_0x374a8a['subType']==_0x3715de&&qt(_0x374a8a,_0x4fedff)&&(_0x51cb4d(_0x374a8a['getRanges'](),_0x16d7a4)||_0x51cb4d(_0x16d7a4,_0x374a8a['getRanges']()))){for(const _0x383941 of _0x16d7a4)_0x374a8a['addRange'](_0x383941);return _0x374a8a;}const _0x5c7540=_0x140993(),_0x111a93=_0x4c13eb['id'],_0x20e882='formatBlock:'+_0x3715de,_0x39b2a8=this['_setSuggestionData']({'id':_0x5c7540,'type':_0x20e882,'data':_0x2e129f,'createdAt':new Date(),'authorId':_0x111a93,'attributes':_0x4fedff});for(const _0x323c33 of _0x16d7a4)this['_addSuggestionMarker'](_0x20e882,_0x5c7540,_0x111a93,_0x323c33,u['getMultiRangeId']());return _0x39b2a8;}['markDeletion'](_0xd7fe,_0x1a48cb=null,_0x14d972={}){if(_0xd7fe['isCollapsed'])return null;const _0x3427df=this['editor']['plugins']['get']('Users')['me'],_0x6ae27b=new _0x1ac0e2(_0xd7fe['start'],_0xd7fe['end']);for(const {suggestion:_0x3bde5a,meta:_0x20eabe}of this['_findSuggestions'](_0x6ae27b,'insertion'))if(_0x20eabe['isOwn']&&!_0x20eabe['isNextTo']){if(_0x3bde5a['isMultiRange']){const _0x38cd1c=_0x3bde5a['getRanges']()['filter'](_0x5226d4=>'$graveyard'!=_0x5226d4['root']['rootName']);_0x38cd1c['every'](_0x5da81d=>_0x6ae27b['containsRange'](_0x5da81d,!0x0))&&_0x3bde5a['discard']();if(_0x38cd1c['some'](_0x316c25=>_0x316c25['containsRange'](_0x6ae27b,!0x0))){const _0x5b0ac2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a48cb,'accept');return this['forceDefaultExecution'](()=>_0x5b0ac2([_0x6ae27b],null,_0x14d972)),null;}}else{const _0x3882e2=_0x6ae27b['getIntersection'](_0x3bde5a['getFirstRange']());null!==_0x3882e2&&_0x3bde5a['_onDiscard']([_0x3882e2],null,_0x14d972);}}if(_0x6ae27b['detach'](),_0x6ae27b['isCollapsed']||'$graveyard'==_0x6ae27b['root']['rootName'])return null;let _0x5f2b91=null,_0x32804b=_0x6ae27b['start'],_0x528cc2=_0x6ae27b['end'];const _0x544a44=this['_findSuggestions'](_0x6ae27b,'deletion');for(const {suggestion:_0x2e1670,meta:_0x1f1f4a}of _0x544a44){const _0x1bd14a=this['_model']['createRange'](_0x32804b,_0x528cc2);if(_0x1f1f4a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f1f4a['containsRangeInObject']&&!_0x1f1f4a['isInsideObject'])){if(_0x2e1670['isMultiRange']){if(!qt(_0x2e1670,_0x14d972))continue;let _0x49877=!0x0;for(const _0x5c256a of _0x2e1670['getRanges']()){if(_0x5c256a['containsRange'](_0x1bd14a,!0x0))return _0x2e1670;_0x1bd14a['containsRange'](_0x5c256a)||(_0x49877=!0x1);}_0x49877&&_0x2e1670['discard']();}else{const _0x3298b8=_0x2e1670['getFirstRange']();if(_0x3298b8['containsRange'](_0x1bd14a,!0x0))return _0x2e1670;if(!qt(_0x2e1670,_0x14d972)){_0x1bd14a['containsRange'](_0x3298b8)?_0x2e1670['removeMarkers']():_0x3298b8['containsPosition'](_0x32804b)?_0x32804b=_0x3298b8['end']:_0x3298b8['containsPosition'](_0x528cc2)&&(_0x528cc2=_0x3298b8['start']);continue;}_0x32804b=_0x32804b['isBefore'](_0x3298b8['start'])?_0x32804b:_0x3298b8['start'],_0x528cc2=_0x528cc2['isAfter'](_0x3298b8['end'])?_0x528cc2:_0x3298b8['end'],_0x14d972=Object['assign']({},_0x2e1670['attributes']),_0x5f2b91?_0x3298b8['start']['isBefore'](_0x5f2b91['getFirstRange']()['start'])?(_0x5f2b91['removeMarkers'](),_0x5f2b91=_0x2e1670):_0x2e1670['removeMarkers']():_0x5f2b91=_0x2e1670;}}}if(_0x5f2b91)return this['_setSuggestionRange'](_0x5f2b91,this['_model']['createRange'](_0x32804b,_0x528cc2)),_0x5f2b91;{const _0x89721a=_0x140993(),_0x5cff50=this['_model']['createRange'](_0x32804b,_0x528cc2),_0x25d191=_0x3427df['id'],_0x40d481=_0x1a48cb?'deletion:'+_0x1a48cb:'deletion',_0x90d4d9=this['_setSuggestionData']({'id':_0x89721a,'type':_0x40d481,'createdAt':new Date(),'authorId':_0x25d191,'attributes':_0x14d972});return this['_addSuggestionMarker'](_0x40d481,_0x89721a,_0x25d191,_0x5cff50),_0x90d4d9;}}['markMultiRangeDeletion'](_0x3a70e2,_0x4bbb3b='multi',_0x392a59={}){const _0x26cf17=this['editor']['plugins']['get']('Users')['me'],_0x1c6e29=_0x3a70e2['map'](_0x18c38e=>new _0x1ac0e2(_0x18c38e['start'],_0x18c38e['end'])),_0x2e2947=new Set();for(const {suggestion:_0x3e280e,meta:_0x164ccd}of this['_findSuggestions'](_0x1c6e29,'insertion'))_0x164ccd['isOwn']&&!_0x164ccd['isNextTo']&&_0x2e2947['add'](_0x3e280e);for(const _0x5dc4ec of _0x2e2947)if(_0x5dc4ec['isMultiRange']){const _0x25f537=_0x5dc4ec['getRanges']();(!_0x5dc4ec['attributes']||!_0x5dc4ec['attributes']['skipNestingCheck'])&&(_0x25f537['every'](_0x454aec=>_0x1c6e29['some'](_0x61b544=>_0x61b544['containsRange'](_0x454aec,!0x0)))&&_0x5dc4ec['discard']());if(_0x1c6e29['every'](_0x8bca35=>_0x25f537['some'](_0x320c43=>_0x320c43['containsRange'](_0x8bca35,!0x0)))){const _0x465710=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bbb3b,'accept');return this['forceDefaultExecution'](()=>_0x465710(_0x3a70e2,null,_0x392a59)),null;}}else{const _0x3d5211=_0x5dc4ec['getFirstRange']();_0x1c6e29['some'](_0x4bb04c=>_0x4bb04c['containsRange'](_0x3d5211,!0x0))&&_0x5dc4ec['discard']();if(_0x1c6e29['every'](_0x26b5e7=>_0x3d5211['containsRange'](_0x26b5e7,!0x0))){const _0x5a422b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bbb3b,'accept');return this['forceDefaultExecution'](()=>_0x5a422b(_0x1c6e29,null,_0x392a59)),null;}}const _0x35f095=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bbb3b,'join');let _0x588be9=null;for(const _0x2a6972 of this['getSuggestions']())if(_0x2a6972['author']['id']==_0x26cf17['id']&&_0x2a6972['isInContent']&&'deletion'==_0x2a6972['type']&&_0x2a6972['subType']==_0x4bbb3b&&qt(_0x2a6972,_0x392a59)&&(_0x35f095(_0x2a6972['getRanges'](),_0x1c6e29)||_0x35f095(_0x1c6e29,_0x2a6972['getRanges']()))){if(_0x588be9){if(_0x2a6972['commentThread']&&_0x2a6972['commentThread']['length'])continue;for(const _0x1bf4c3 of _0x2a6972['getRanges']())_0x588be9['isIntersectingWithRange'](_0x1bf4c3)||_0x588be9['addRange'](_0x1bf4c3);_0x2a6972['removeMarkers']();}else{_0x588be9=_0x2a6972;for(const _0x4be4db of _0x1c6e29)_0x2a6972['isIntersectingWithRange'](_0x4be4db)||_0x2a6972['addRange'](_0x4be4db);}}if(_0x588be9)return _0x588be9;_0x2e2947['clear']();for(const {suggestion:_0xa98293,meta:_0x25249e}of this['_findSuggestions'](_0x1c6e29,'deletion'))_0x25249e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25249e['containsRangeInObject']&&!_0x25249e['isInsideObject'])&&qt(_0xa98293,_0x392a59)&&_0x2e2947['add'](_0xa98293);for(const _0x22f84d of _0x2e2947){const _0x3520c8=_0x22f84d['getRanges']();if(!_0x392a59||!_0x392a59['skipNestingCheck']){if(_0x1c6e29['every'](_0x528eb9=>_0x3520c8['some'](_0x46be53=>_0x46be53['containsRange'](_0x528eb9,!0x0))))return _0x22f84d;}(!_0x22f84d['attributes']||!_0x22f84d['attributes']['skipNestingCheck'])&&(_0x3520c8['every'](_0x9b12d0=>_0x1c6e29['some'](_0x517db1=>_0x517db1['containsRange'](_0x9b12d0,!0x0)))&&_0x22f84d['discard']());}const _0x40ce36=_0x140993(),_0x215612=_0x26cf17['id'],_0x20120e='deletion:'+_0x4bbb3b,_0x4eee23=this['_setSuggestionData']({'id':_0x40ce36,'type':_0x20120e,'createdAt':new Date(),'authorId':_0x215612,'attributes':_0x392a59});for(const _0x3dc6aa of _0x1c6e29)_0x3dc6aa['detach'](),_0x3dc6aa['isCollapsed']||'$graveyard'==_0x3dc6aa['root']['rootName']||this['_addSuggestionMarker'](_0x20120e,_0x40ce36,_0x215612,_0x3dc6aa,u['getMultiRangeId']());return _0x4eee23;}['markAttributeChange'](_0x4f2403,_0x19e9c9,_0x5370a6,_0x14ff54,_0x34ebff){if(_0x4f2403['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x15c84e=this['editor']['plugins']['get']('Users')['me']['id'],_0x35aace=Array['from'](this['_suggestions']['values']())['filter'](_0x28e8ba=>'attribute'==_0x28e8ba['type']&&_0x28e8ba['data']['key']==_0x19e9c9&&_0x28e8ba['isIntersectingWithRange'](_0x4f2403));if('default'===this['_trackFormatChanges']){const _0x46adf5=this['_findSuggestions'](_0x4f2403,'insertion')['filter'](({meta:_0x290f78})=>_0x290f78['isOwn']&&!_0x290f78['isInsideObject']&&!_0x290f78['isNextTo'])['map'](({suggestion:_0x1670ed})=>_0x1670ed);_0x35aace['unshift'](..._0x46adf5);}const _0x4a06bd=new Map([[_0x4f2403,_0x5370a6]]);for(const _0x4cb03e of _0x35aace){const _0x36220d='attribute'==_0x4cb03e['type']?_0x4cb03e['data']['oldValue']:void 0x0,_0x31767e=_0x4cb03e['getFirstRange'](),_0xef963f=Array['from'](_0x4a06bd['keys']())['find'](_0x47e07b=>_0x47e07b['isIntersecting'](_0x31767e));if(!_0xef963f)continue;const _0x5be916=_0xef963f['getDifference'](_0x31767e);this['_isBlockAttribute'](_0x19e9c9)&&'insertion'==_0x4cb03e['type']&&0x0!=_0x5be916['length']||(_0x4a06bd['delete'](_0xef963f),_0x5be916['forEach'](_0x2afae6=>{_0x4a06bd['set'](_0x2afae6,_0x5370a6);}),'insertion'!=_0x4cb03e['type']&&_0x36220d!=_0x14ff54&&_0x4a06bd['set'](_0xef963f['getIntersection'](_0x31767e),_0x36220d));}const _0x3afb41=[];for(const [_0xacc1dd,_0x426594]of _0x4a06bd){const _0x33de04=_0x140993(),_0x5dba56={'key':_0x19e9c9,'oldValue':_0x426594,'newValue':_0x14ff54};_0x19e9c9['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':_0x19e9c9});const _0x12b97f=('attribute:'+(_0x19e9c9+'|'+Pt({'newValue':_0x14ff54})))['substring'](0x0,0x3c),_0x223eb4=this['_setSuggestionData']({'id':_0x33de04,'type':_0x12b97f,'data':_0x5dba56,'createdAt':new Date(),'authorId':_0x15c84e,'attributes':_0x34ebff});_0x3afb41['push'](_0x223eb4),this['_addSuggestionMarker'](_0x12b97f,_0x33de04,_0x15c84e,_0xacc1dd);}return _0x3afb41;}['enableDefaultAttributesIntegration'](_0x472ded){this['enableCommand'](_0x472ded,(_0xe0d6ac,..._0x57e1d7)=>{this['_recordAttributeChanges'](()=>{_0xe0d6ac(..._0x57e1d7);});});}['registerBlockAttribute'](_0x35454d){this['_blockAttributeKeys']['add'](_0x35454d);}['registerInlineAttribute'](_0x327e5d){this['_inlineAttributeKeys']['add'](_0x327e5d);}['_getAttributeKey'](_0x5a9053){return'attribute'==_0x5a9053['type']?_0x5a9053['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x227508,_0x39f6e5){const _0x26005c=_0x227508['getFirstMarker']();this['_model']['change'](_0x99d257=>{_0x99d257['updateMarker'](_0x26005c,{'range':_0x39f6e5});});}['_addThreadToSuggestion'](_0x4f9efe){const _0x1c20c0=_0x4f9efe['id'],_0x49b51c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c20c0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x49b51c,'threadId':_0x1c20c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x830654=this['_commentsRepository']['getCommentThread'](_0x1c20c0);_0x830654['unbind']('isRemovable'),_0x830654['isRemovable']=!0x1,_0x4f9efe['commentThread']=_0x830654;}['_checkSuggestionCorrectness'](_0x250471,_0x1c2e51,_0x488165,_0x23b78d){if(_0x250471['type']!=_0x1c2e51||_0x250471['subType']!=_0x488165||_0x250471['creator']['id']!=_0x23b78d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xe104bf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b28d6,_0x55b520){const _0x1a63ac=_0x4b28d6['getFirstRange']();if(_0x55b520['isEqual'](_0x1a63ac))_0x4b28d6['removeMarkers']();else{if(_0x1a63ac['containsRange'](_0x55b520)){const _0x23b1e7=this['_model']['createPositionAt'](_0x55b520['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b28d6,this['_model']['createRange'](_0x1a63ac['start'],_0x23b1e7));const _0x5e2866=_0x140993(),_0x55fd2b=_0x4b28d6['creator']['id'],_0x46692e=_0x4b28d6['type']+':'+_0x4b28d6['subType'];this['_setSuggestionData']({'id':_0x5e2866,'type':_0x46692e,'createdAt':new Date(),'authorId':_0x55fd2b,'data':_0x4b28d6['data'],'attributes':_0x4b28d6['attributes']});const _0x3ccc6b=this['_model']['createPositionAt'](_0x55b520['end']['parent'],'after'),_0x5e4f70=this['_model']['createRange'](_0x3ccc6b,_0x1a63ac['end']);this['_addSuggestionMarker'](_0x46692e,_0x5e2866,_0x55fd2b,_0x5e4f70);}else{if(_0x1a63ac['containsPosition'](_0x55b520['start'])){const _0x268da4=this['_model']['createPositionAt'](_0x55b520['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b28d6,this['_model']['createRange'](_0x1a63ac['start'],_0x268da4));}else{const _0x98a99d=this['_model']['createPositionAt'](_0x55b520['end']['parent'],'after');this['_setSuggestionRange'](_0x4b28d6,this['_model']['createRange'](_0x98a99d,_0x1a63ac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4dcdc4){for(const {suggestion:_0xd9913a,meta:_0xfe32a3}of this['_findSuggestions'](_0x4dcdc4,'insertion')){if(!_0xfe32a3['isOwn'])continue;const _0x118f8c=_0xd9913a['getRanges']();for(const _0x239e8e of _0x118f8c)if(!_0x4dcdc4['getDifference'](_0x239e8e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b24f4){const _0xeeeb74=this['editor']['plugins']['get']('Users')['getUser'](_0x1b24f4);if(!_0xeeeb74)throw new _0xe104bf('track-changes-user-not-found',this);return _0xeeeb74;}['_getExternalAuthor'](_0x490245){const _0x53df48=this['editor']['plugins']['get']('Users'),_0x3c0f14=_0x51e538('external:'+_0x490245),_0x36c3d9=_0x53df48['getUser'](_0x3c0f14);return _0x36c3d9||_0x53df48['addUser']({'id':_0x3c0f14,'name':_0x490245});}['_createSuggestion'](_0x514526,_0x105adf,_0x3b28be,_0x4b2841,_0x2d441e){const _0x41a7cd=this['_getAuthorFromId'](_0x4b2841),_0x1440b5=this['_suggestionFactory']['buildSuggestion'](_0x514526,_0x105adf,_0x3b28be,_0x41a7cd,_0x2d441e,_0x47214d=>{this['_updateSuggestionData'](_0x3b28be,{'attributes':_0x47214d});const _0x5aa8c2=this['getSuggestion'](_0x3b28be);this['_joinWithAdjacentSuggestions'](new Set([_0x5aa8c2])),this['_refreshSuggestionsChain'](new Set([_0x5aa8c2]));});return this['listenTo'](_0x1440b5,'accept',()=>{this['_updateSuggestionData'](_0x3b28be,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1440b5,'discard',()=>{this['_updateSuggestionData'](_0x3b28be,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b28be,_0x1440b5),this['_suggestionState']['set'](_0x1440b5,'notReady'),_0x1440b5;}['_splitMarkerName'](_0x3c1ccf){const _0x2d8b6b=_0x3c1ccf['split'](':');return{'group':_0x2d8b6b[0x0],'type':_0x2d8b6b[0x1],'subType':_0x2d8b6b['length']>=0x5?_0x2d8b6b[0x2]:null,'id':_0x2d8b6b['length']<0x5?_0x2d8b6b[0x2]:_0x2d8b6b[0x3],'authorId':_0x2d8b6b['length']<0x5?_0x2d8b6b[0x3]:_0x2d8b6b[0x4],'markerCount':0x6==_0x2d8b6b['length']?_0x2d8b6b[0x5]:null};}['_breakSuggestionMarker'](_0x5e3c18,_0x149dad,_0x819e1e){const _0x3db3ae=_0x5e3c18['getFirstRange'](),_0x22131c=_0x3db3ae['start'],_0x54878e=_0x3db3ae['end'];this['_setSuggestionRange'](_0x5e3c18,this['_model']['createRange'](_0x22131c,_0x149dad));const _0x420be1=_0x140993(),_0x2a2bbf=_0x5e3c18['creator']['id'],_0x39ded9=_0x5e3c18['type']+(_0x5e3c18['subType']?':'+_0x5e3c18['subType']:'');this['_setSuggestionData']({'id':_0x420be1,'type':_0x39ded9,'createdAt':new Date(),'authorId':_0x2a2bbf,'originalSuggestionId':_0x5e3c18['id'],'attributes':_0x5e3c18['attributes'],'data':_0x5e3c18['data']});const _0x311f2b=this['_getAttributeKey'](_0x5e3c18);('formatBlock'==_0x5e3c18['type']||_0x311f2b&&this['_isBlockAttribute'](_0x311f2b))&&(_0x819e1e=this['_model']['createPositionBefore'](_0x819e1e['parent'])),this['_addSuggestionMarker'](_0x39ded9,_0x420be1,_0x2a2bbf,this['_model']['createRange'](_0x819e1e,_0x54878e));}['_findSuggestions'](_0x249194,_0x1a0710=null){const _0x4d8542=[],_0x58fa00=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x249194)||(_0x249194=[_0x249194]);for(const _0x6222f7 of this['getSuggestions']()){if(!_0x6222f7['isInContent'])continue;if(_0x1a0710&&_0x6222f7['type']!=_0x1a0710)continue;let _0x53c2c8=!0x1;for(const _0x37b47a of _0x6222f7['getRanges']()){for(const _0x1a6742 of _0x249194){const _0x14e44f=_0x1a6742['start']['isEqual'](_0x37b47a['end'])||_0x1a6742['end']['isEqual'](_0x37b47a['start']);if(_0x14e44f||_0x1a6742['getIntersection'](_0x37b47a)){const _0x587af1=_0x1a6742['containsRange'](_0x37b47a)&&Et(this['_model']['schema'],_0x37b47a['start'],_0x1a6742),_0x9f2135=_0x37b47a['containsRange'](_0x1a6742)&&Et(this['_model']['schema'],_0x1a6742['start'],_0x37b47a);_0x4d8542['push']({'suggestion':_0x6222f7,'meta':{'isOwn':_0x58fa00==_0x6222f7['author'],'isNextTo':_0x14e44f,'isInsideObject':_0x587af1,'containsRangeInObject':_0x9f2135}}),_0x53c2c8=!0x0;break;}}if(_0x53c2c8)break;}}return _0x4d8542;}['_addSuggestionMarker'](_0x7cbc14,_0x3c2709,_0x5ee911,_0x521508,_0x5b60d3){this['_model']['change'](_0x103373=>{let _0x3923b3='suggestion:'+_0x7cbc14+':'+_0x3c2709+':'+_0x5ee911;_0x5b60d3&&(_0x3923b3=_0x3923b3+':'+_0x5b60d3),_0x103373['addMarker'](_0x3923b3,{'range':_0x521508,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x49a86e){const _0x19ee8e=_0x49a86e['previous'],_0x355a3b=_0x49a86e['next'];_0x49a86e['previous']=null,_0x49a86e['next']=null,null!=_0x19ee8e&&_0x19ee8e['next']==_0x49a86e&&(_0x19ee8e['next']=_0x355a3b),null!=_0x355a3b&&_0x355a3b['previous']==_0x49a86e&&(_0x355a3b['previous']=_0x19ee8e),'ready'==this['_suggestionState']['get'](_0x49a86e)&&(this['_suggestionState']['set'](_0x49a86e,'removed'),this['fire']('suggestionUnloaded',_0x49a86e,_0x19ee8e,_0x355a3b));}['_setSuggestionData'](_0x1fedd3){const _0x47429b=_0x1fedd3['id'],_0x1870ea=this['addSuggestionData'](_0x1fedd3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x516f58=this['editor']['plugins']['get']('PendingActions'),_0x237fc1=_0x1870ea['hasComments'],_0x225a31=_0x1870ea['subType']?_0x1870ea['type']+':'+_0x1870ea['subType']:_0x1870ea['type'],_0x4a02e1=this['editor']['locale'],_0x5b08ec=_0x516f58['add'](o(_0x4a02e1,'PENDING_ACTION_SUGGESTION')),_0x6d5aad={'id':_0x47429b,'type':_0x225a31,'hasComments':_0x237fc1,'data':_0x1fedd3['data']||null,'originalSuggestionId':_0x1fedd3['originalSuggestionId']||null,'attributes':_0x1870ea['attributes']};this['_adapter']['addSuggestion'](_0x6d5aad)['then'](_0x542de5=>{_0x1870ea['_saved']=!0x0,_0x516f58['remove'](_0x5b08ec),_0x542de5&&_0x542de5['createdAt']&&(this['_suggestions']['get'](_0x47429b)['createdAt']=_0x542de5['createdAt']);})['catch'](_0xc9ce8c=>{throw _0x53f0d5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1870ea['discard']();}),_0x1870ea['stopListening'](),this['_suggestions']['delete'](_0x1870ea['id']),this['_suggestionState']['delete'](_0x1870ea),_0xc9ce8c;});}return _0x1870ea;}['_isBlockAttribute'](_0x14fb80){return this['_blockAttributeKeys']['has'](_0x14fb80);}['_updateSuggestionData'](_0x3a5e06,_0x5a1df1){const _0x4ab539=this['editor']['plugins']['get']('PendingActions'),_0x31d0b5=this['getSuggestion'](_0x3a5e06);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x31d0b5['_saved']){const _0x4732c4=_0x4ab539['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a5e06,_0x5a1df1)['then'](()=>{_0x4ab539['remove'](_0x4732c4);});}else _0x31d0b5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a5e06,_0x5a1df1);});}}['_getSuggestionData'](_0x20caa2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xe104bf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20caa2);}['_handleNewSuggestionMarker'](_0x336c2e){const {id:_0x41c495,type:_0x32d338,subType:_0x424bbb,authorId:_0x555a97}=this['_splitMarkerName'](_0x336c2e),_0x5152a8=this['_suggestions']['get'](_0x41c495)||this['_createSuggestion'](_0x32d338,_0x424bbb,_0x41c495,_0x555a97,{});switch(this['_checkSuggestionCorrectness'](_0x5152a8,_0x32d338,_0x424bbb,_0x555a97),this['_suggestionState']['get'](_0x5152a8)){case'notReady':this['_getSuggestionData'](_0x41c495)['then'](_0x3d64c3=>{let _0x4fb783=Promise['resolve']();_0x3d64c3['hasComments']&&(_0x4fb783=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41c495})),_0x4fb783['then'](()=>{this['addSuggestionData'](_0x3d64c3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5152a8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41c495,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5152a8,'ready'),this['fire']('suggestionLoaded',_0x5152a8);break;case'ready':this['fire']('suggestionChanged',_0x5152a8);}return _0x5152a8['addMarkerName'](_0x336c2e),_0x5152a8;}['_refreshSuggestionsChain'](_0x19b1cd){const _0x3360b5=Array['from'](_0x19b1cd),_0x26e244=_0x3360b5['filter'](_0x582902=>'attribute'==_0x582902['type']);this['_refreshAttributeSuggestionsChain'](_0x26e244);const _0x18e8b9=_0x3360b5['filter'](_0x3d0003=>!_0x3d0003['isMultiRange']&&'attribute'!=_0x3d0003['type']),_0x2f4ff0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51019e=>!_0x51019e['isMultiRange']&&'attribute'!=_0x51019e['type']),_0x2e2fa8=_0x2f4ff0['filter'](_0x3c2af1=>!_0x19b1cd['has'](_0x3c2af1)),_0x2ede93=new Map(_0x2f4ff0['map'](_0x4d2bcc=>[_0x4d2bcc,this['_suggestionFactory']['getSuggestionCallback'](_0x4d2bcc['type'],_0x4d2bcc['subType'],'chain')])),_0x23d776=new Map(_0x2f4ff0['map'](_0x3aa60d=>[_0x3aa60d,_0x3aa60d['getFirstRange']()])),_0x42c479=new Set(),_0x2c663e=new Set();for(let _0x35d410=0x0;_0x35d410<_0x18e8b9['length'];_0x35d410++)_0x4aa52e(_0x18e8b9[_0x35d410],_0x18e8b9,_0x35d410+0x1);for(let _0x4ae008=0x0;_0x4ae008<_0x18e8b9['length'];_0x4ae008++)_0x4aa52e(_0x18e8b9[_0x4ae008],_0x2e2fa8,0x0);const _0x2d0b01=new Set();for(let _0x3d2f41=0x0;_0x3d2f41<_0x18e8b9['length'];_0x3d2f41++){const _0x5f612c=_0x18e8b9[_0x3d2f41];!_0x2c663e['has'](_0x5f612c)&&_0x5f612c['previous']&&(_0x2d0b01['add'](_0x5f612c['previous']),_0x5f612c['previous']['next']===_0x5f612c&&(_0x5f612c['previous']['next']=null),_0x5f612c['previous']=null),!_0x42c479['has'](_0x5f612c)&&_0x5f612c['next']&&(_0x2d0b01['add'](_0x5f612c['next']),_0x5f612c['next']['previous']===_0x5f612c&&(_0x5f612c['next']['previous']=null),_0x5f612c['next']=null);}function _0x4aa52e(_0x17e7a5,_0x4383d5,_0x543e19){for(let _0x16299a=_0x543e19;_0x16299a<_0x4383d5['length'];_0x16299a++){const _0x117f57=_0x22cefd(_0x17e7a5,_0x4383d5[_0x16299a]);_0x117f57&&(_0x117f57[0x0]['next']=_0x117f57[0x1],_0x117f57[0x1]['previous']=_0x117f57[0x0],_0x42c479['add'](_0x117f57[0x0]),_0x2c663e['add'](_0x117f57[0x1]));}}function _0x22cefd(_0x3df6ae,_0x5dcd66){if(_0x3df6ae['author']['id']!==_0x5dcd66['author']['id'])return null;const _0x2f7519=_0x2ede93['get'](_0x3df6ae)(_0x3df6ae,_0x5dcd66,_0x23d776['get'](_0x3df6ae),_0x23d776['get'](_0x5dcd66));if(!_0x2f7519)return null;return _0x2ede93['get'](_0x5dcd66)(_0x3df6ae,_0x5dcd66,_0x23d776['get'](_0x3df6ae),_0x23d776['get'](_0x5dcd66))?_0x2f7519[0x1]['commentThread']&&_0x2f7519[0x1]['commentThread']['length']?null:_0x2f7519:null;}_0x2d0b01['size']&&this['_refreshSuggestionsChain'](_0x2d0b01);}['_refreshAttributeSuggestionsChain'](_0x433dc1){if(0x0==_0x433dc1['length'])return;const _0x245bf7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33f940=>'attribute'==_0x33f940['type']&&_0x33f940['_isDataLoaded']),_0x4fd844=[],_0x47e9ce=new Map();for(const _0x1f9dee of _0x245bf7){const _0x356f7b=_0x51e538(_0x1f9dee['attributes']);_0x47e9ce['has'](_0x356f7b)||(_0x47e9ce['set'](_0x356f7b,_0x4fd844['length']),_0x4fd844['push']([]));const _0x19f901=_0x47e9ce['get'](_0x356f7b);_0x4fd844[_0x19f901]['push'](_0x1f9dee);}!(function(){_0x4fd844['sort']((_0x4809ff,_0x2e3d00)=>{const _0x43794c=_0x4809ff[0x0]['createdAt'],_0xd72052=_0x2e3d00[0x0]['createdAt'];return _0x43794c==_0xd72052?_0x4809ff[0x0]['attributes']['groupId']<_0x2e3d00[0x0]['attributes']['groupId']?-0x1:0x1:_0x43794c<_0xd72052?-0x1:0x1;});for(const _0x5cca88 of _0x4fd844)_0x5cca88['sort']((_0x59a244,_0x575764)=>_0x59a244['id']<_0x575764['id']?-0x1:0x1);}());for(let _0x1302ba=0x0;_0x1302ba<_0x4fd844['length'];_0x1302ba++){if(0x0==_0x4fd844[_0x1302ba]['length'])continue;const _0x4e6022=[];for(let _0x56fa10=_0x1302ba+0x1;_0x56fa10<_0x4fd844['length'];_0x56fa10++)0x0!=_0x4fd844[_0x56fa10]['length']&&_0xd220bb(_0x4fd844[_0x1302ba],_0x4fd844[_0x56fa10])&&_0x4e6022['push'](_0x56fa10);for(const _0x42d5cb of _0x4e6022)_0x4fd844[_0x1302ba]=_0x4fd844[_0x1302ba]['concat'](_0x4fd844[_0x42d5cb]),_0x4fd844[_0x42d5cb]=[];}for(const _0x13b056 of _0x4fd844)for(let _0x5a279d=0x0;_0x5a279d<_0x13b056['length'];_0x5a279d++){const _0x1ab35d=_0x13b056[_0x5a279d+0x1]||null;_0x13b056[_0x5a279d]['next']!==_0x1ab35d&&(_0x13b056[_0x5a279d]['next']=_0x1ab35d);}for(const _0x269944 of _0x4fd844)for(let _0x3a2426=0x0;_0x3a2426<_0x269944['length'];_0x3a2426++){const _0x4f709e=_0x269944[_0x3a2426-0x1]||null;_0x269944[_0x3a2426]['previous']!==_0x4f709e&&(_0x269944[_0x3a2426]['previous']=_0x4f709e);}function _0xd220bb(_0x572b7f,_0x52f668){if(_0x572b7f[0x0]['attributes']['groupId']!==_0x52f668[0x0]['attributes']['groupId']&&_0x572b7f[0x0]['author']!==_0x52f668[0x0]['author'])return!0x1;if(!function(_0x35d12b,_0x5027f5){if(!_0x35d12b['hasComments']&&!_0x5027f5['hasComments'])return!0x0;if(_0x35d12b['hasComments']&&_0x5027f5['hasComments'])return!0x1;if(_0x35d12b['hasComments']&&_0x5027f5['createdAt']<_0x35d12b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5027f5['hasComments']&&_0x35d12b['createdAt']<_0x5027f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x572b7f[0x0],_0x52f668[0x0]))return!0x1;const _0x9ba1c9=Rt(_0x572b7f[0x0]['attributes'],'groupId'),_0x156f1e=Rt(_0x52f668[0x0]['attributes'],'groupId');if(!_0x4fc24e(_0x9ba1c9,_0x156f1e))return!0x1;return!!_0x572b7f['every'](_0x502128=>_0x52f668['some'](_0x41e899=>_0x502128['getFirstRange']()['isEqual'](_0x41e899['getFirstRange']())))&&_0x52f668['every'](_0x1e4d4a=>_0x572b7f['some'](_0x162d56=>_0x1e4d4a['getFirstRange']()['isEqual'](_0x162d56['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2f72fc){const _0x417831=Array['from'](_0x2f72fc),_0x2d5490=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f5d80=_0x2d5490['filter'](_0x51f3f5=>!_0x2f72fc['has'](_0x51f3f5)),_0x287337=new Map(_0x417831['map'](_0x3b021f=>[_0x3b021f,this['_suggestionFactory']['getSuggestionCallback'](_0x3b021f['type'],_0x3b021f['subType'],'join')])),_0x143ddb=new Map(_0x2d5490['map'](_0x3c596f=>[_0x3c596f,_0x3c596f['getRanges']()]));for(let _0x3ad0e5=0x0;_0x3ad0e5<_0x417831['length'];_0x3ad0e5++){if(_0x2303b2(this,_0x417831[_0x3ad0e5],_0x417831,_0x3ad0e5+0x1))return!0x0;}for(let _0x44a8e9=0x0;_0x44a8e9<_0x417831['length'];_0x44a8e9++){if(_0x2303b2(this,_0x417831[_0x44a8e9],_0x4f5d80,0x0))return!0x0;}return!0x1;function _0x2303b2(_0x7b76b2,_0x5b48d0,_0x4cfed0,_0x1918d6){for(let _0x422bcd=_0x1918d6;_0x422bcd<_0x4cfed0['length'];_0x422bcd++){const _0x1f71c3=_0x4cfed0[_0x422bcd];if(_0x1f71c3['type']!==_0x5b48d0['type']||_0x1f71c3['author']['id']!==_0x5b48d0['author']['id']||_0x1f71c3['subType']!==_0x5b48d0['subType'])continue;if(!Jt(_0x5b48d0,_0x1f71c3))continue;if('attribute'==_0x5b48d0['type']&&_0x5b48d0['data']['oldValue']!=_0x1f71c3['data']['oldValue'])continue;if('attribute'==_0x5b48d0['type']&&_0x7b76b2['_isBlockAttribute'](_0x5b48d0['data']['key']))continue;if('formatBlock'==_0x5b48d0['type']){const _0x373e98=_0x7b76b2['editor']['model'],_0xf9938e=_0x5b48d0['getContainedElement']();if(_0xf9938e&&(_0x373e98['schema']['isObject'](_0xf9938e)||_0x373e98['schema']['isLimit'](_0xf9938e)))continue;}const _0x30c409=_0x287337['get'](_0x5b48d0),_0x47133c=_0x143ddb['get'](_0x5b48d0),_0x296c55=_0x143ddb['get'](_0x1f71c3),_0x1439fb=_0x5b48d0['commentThread']&&_0x5b48d0['commentThread']['length'],_0x72b953=_0x1f71c3['commentThread']&&_0x1f71c3['commentThread']['length'];if(!_0x1439fb&&_0x30c409(_0x296c55,_0x47133c))return _0x7b76b2['_joinSuggestions'](_0x1f71c3,_0x5b48d0),_0x143ddb['delete'](_0x5b48d0),!0x0;if(!_0x72b953&&_0x30c409(_0x47133c,_0x296c55))return _0x7b76b2['_joinSuggestions'](_0x5b48d0,_0x1f71c3),_0x143ddb['delete'](_0x1f71c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4db166,_0x10dcfc){if(_0x4db166['isMultiRange']){for(const _0xbc5524 of _0x10dcfc['getRanges']())_0x4db166['addRange'](_0xbc5524);}else{const _0x2b3b3a=_0x10dcfc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4db166,this['_model']['createRange'](_0x4db166['getFirstRange']()['start'],_0x2b3b3a));}_0x10dcfc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4e1f43,_0x50570e,_0x63844b){const _0x21c34c=_0x4e1f43['startsWith']('format')||_0x4e1f43['startsWith']('attribute')?'FORMATTING':_0x4e1f43['toUpperCase']();return o(this['editor']['locale'],_0x50570e+'_'+_0x21c34c+'_SUGGESTION_ANNOUNCEMENT',_0x63844b);}['_initAriaMarkerChangeAnnouncements'](){const _0x399d60=this['editor'];if(!_0x399d60['ui'])return;const {ariaLiveAnnouncer:_0x3e4b46}=_0x399d60['ui'];_0x57b3ea(this['_model'],({left:_0x2be4d7,entered:_0x4c8ed9})=>{for(const _0x576e86 of _0x2be4d7){const {group:_0x3705cb,type:_0x38c806}=this['_splitMarkerName'](_0x576e86['name']);if('suggestion'===_0x3705cb){_0x3e4b46['announce'](this['_getMarkerAnnouncementText'](_0x38c806,'LEAVE'));break;}}for(const _0x162cdf of _0x4c8ed9){const {group:_0x4695d3,type:_0x1678e8}=this['_splitMarkerName'](_0x162cdf['name']);if('suggestion'===_0x4695d3){_0x3e4b46['announce'](this['_getMarkerAnnouncementText'](_0x1678e8,'ENTER',_0x52725a(_0x1a37b5)));break;}}});}['_processAttributeChanges'](_0x3449e5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5f5f6d=this['editor'],_0x3155bb=_0x5f5f6d['model']['document']['differ']['getChanges']();if(0x0==_0x3155bb['length'])return!0x1;const _0x545ffd=[],_0x5e29b0=_0x3155bb['filter'](_0x2a455f=>'attribute'==_0x2a455f['type']),_0x4403bf=_0x3155bb['filter'](_0x2449e0=>'insert'==_0x2449e0['type']&&'$text'!=_0x2449e0['name']),_0x3fda24=_0x3155bb['filter'](_0x121def=>'remove'==_0x121def['type']&&'$text'!=_0x121def['name']);for(const _0x1452b0 of _0x5e29b0)_0x545ffd['push']({'key':_0x1452b0['attributeKey'],'newValue':_0x1452b0['attributeNewValue'],'oldValue':_0x1452b0['attributeOldValue'],'range':Ft(_0x1452b0['range'],_0x5f5f6d['model'])});for(const _0x1297d2 of _0x4403bf){const _0x310f98=_0x3fda24['find'](_0x355294=>_0x355294['position']['isEqual'](_0x1297d2['position']));_0x310f98&&_0x545ffd['push']({'key':m,'newValue':_0x1297d2['name'],'oldValue':_0x310f98['name'],'range':_0x5f5f6d['model']['createRangeOn'](_0x1297d2['position']['nodeAfter'])});}return 0x0!=_0x545ffd['length']&&this['_reduceExistingSuggestions'](_0x3449e5,_0x545ffd);}['_processAttributeSuggestions'](_0x455441){let _0xab25f8=!0x1;const _0x45b97d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x8f713=>_0x8f713['data']['newRange']&&_0x8f713['name']['startsWith']('suggestion:attribute:'));for(const _0xdfa2f2 of _0x45b97d){const {subType:_0x52204b,id:_0x379cd7}=this['_splitMarkerName'](_0xdfa2f2['name']),_0x546018=_0x52204b['split']('|')[0x0];for(const _0x726823 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x726823['id']!=_0x379cd7&&'attribute'==_0x726823['type']&&_0x726823['data']&&_0x726823['data']['key']==_0x546018&&_0x726823['getFirstRange']()['isIntersecting'](_0xdfa2f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x726823,_0xdfa2f2['data']['newRange'],_0x455441),_0xab25f8=!0x0);}return _0xab25f8;}['_recordAttributeChanges'](_0x5dc15e){this['_recordAttributeSuggestions']=!0x0,_0x5dc15e();}['_isRegisteredAttribute'](_0x1e566b){const _0x9abefd=this['_isBlockAttribute'](_0x1e566b),_0x2bb3d3=this['_inlineAttributeKeys']['has'](_0x1e566b);return _0x9abefd||_0x2bb3d3;}['_reduceExistingSuggestions'](_0x3817e7,_0x48ca47){if(0x0==_0x48ca47['length'])return!0x1;let _0xdc4910=!0x1;for(const _0x1af102 of _0x48ca47){const _0x164c66=this['_findSuggestions'](_0x1af102['range'],'attribute')['filter'](_0x384fb8=>!_0x384fb8['meta']['isNextTo'])['map'](_0x46a81e=>_0x46a81e['suggestion']),_0x31d484=_0x51e538({'newValue':_0x1af102['newValue']});_0x164c66['filter'](_0x518ee9=>{const [_0x435eee,_0x4acf7b]=_0x518ee9['subType']['split']('|');return _0x435eee==_0x1af102['key']&&_0x4acf7b!=_0x31d484;})['forEach'](_0x47b412=>{this['_reduceSuggestionAttributeRange'](_0x47b412,_0x1af102['range'],_0x3817e7),_0xdc4910=!0x0;});}return _0xdc4910;}['_reduceSuggestionAttributeRange'](_0x26207c,_0x46eaa0,_0xc5b393){const _0x1bed79=_0x26207c['getFirstRange']()['getDifference'](_0x46eaa0);0x0!==_0x1bed79['length']?0x1!==_0x1bed79['length']?this['_breakSuggestionMarker'](_0x26207c,_0x46eaa0['start'],_0x46eaa0['end']):this['_setSuggestionRange'](_0x26207c,_0x1bed79[0x0]):_0xc5b393['removeMarker'](_0x26207c['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x457e91){this['_editor']=_0x457e91,this['_model']=_0x457e91['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3922fd,_0x14f06c,_0x2fde67,_0x20f4d0,_0x1ec4e0,_0x558398){return new u(this['_model'],{'type':_0x3922fd,'subType':_0x14f06c,'id':_0x2fde67,'author':_0x20f4d0,'creator':_0x20f4d0,'attributes':_0x1ec4e0,'onAttributesChange':_0x558398,'onAccept':(..._0x8cb3b4)=>this['getSuggestionCallback'](_0x3922fd,_0x14f06c,'accept')(..._0x8cb3b4),'onDiscard':(..._0x59a5f6)=>this['getSuggestionCallback'](_0x3922fd,_0x14f06c,'discard')(..._0x59a5f6)});}['registerCustomCallback'](_0x10b2c6,_0x4d0d7a,_0x1aabf8,_0x3b8169){const _0x9ec33e=_0x10b2c6+':'+_0x4d0d7a+':'+_0x1aabf8;this['_customCallbacks']['set'](_0x9ec33e,_0x3b8169);}['getSuggestionCallback'](_0x29591d,_0x556cd6,_0x284976){const _0x1a3431=_0x29591d+':'+_0x556cd6+':'+_0x284976;return this['_customCallbacks']['get'](_0x1a3431)||this['_defaultCallbacks']['get'](_0x29591d+':'+_0x284976);}['_registerDefaultCallbacks'](){const _0x4a6071=()=>!0x1,_0x3ee337=_0xa43dc7=>{_0xa43dc7['sort']((_0x2f7fdc,_0x24fad5)=>_0x2f7fdc['start']['isBefore'](_0x24fad5['start'])?0x1:-0x1),this['_model']['change'](_0x3b0dab=>{for(const _0xfe0275 of _0xa43dc7){let _0x4b2134;_0x4b2134=_0xfe0275['end']['isAtEnd']&&_0xfe0275['end']['parent']==_0xfe0275['start']['nodeAfter']?_0x3b0dab['createSelection'](_0xfe0275['start']['nodeAfter'],'on'):_0x3b0dab['createSelection'](_0xfe0275),this['_model']['deleteContent'](_0x4b2134,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x340a7f=(_0x32adf4,_0x38be59)=>{_0x38be59&&this['_model']['change'](_0x3dcfa5=>{const {commandName:_0x16ba1b,commandParams:_0x301411=[]}=_0x38be59,_0x5476bc=_0x32adf4['map'](_0x5ba954=>(Vt(_0x5ba954)&&(_0x5ba954=this['_model']['createRange'](_0x5ba954['end'])),_0x5ba954))['filter'](_0x48ef00=>'$graveyard'!==_0x48ef00['root']['rootName']);if(_0x5476bc['length']<0x1)return;const _0x236e1f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x30a10b=>_0x1ac0e2['fromRange'](_0x30a10b));_0x3dcfa5['setSelection'](_0x5476bc);for(const _0x51a077 of this['_editor']['commands']['commands']())_0x51a077['refresh']();_0x301411['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16ba1b,..._0x301411);const _0x2ef691=_0x236e1f['filter'](_0x520202=>'$graveyard'!=_0x520202['root']['rootName']);_0x2ef691['length']>0x0&&_0x3dcfa5['setSelection'](_0x2ef691);for(const _0x39017e of _0x236e1f)_0x39017e['detach']();});},_0x4dc0a2=(_0x2d6ca2,_0x126aad)=>0x1==_0x2d6ca2['length']&&0x1==_0x126aad['length']&&_0x2d6ca2[0x0]['end']['isEqual'](_0x126aad[0x0]['start']),_0x3ead8b=(_0x2fac25,_0x117656,_0x568244,_0x594130)=>Ht(_0x2fac25,_0x117656,_0x568244,_0x594130,this['_model'])?[_0x2fac25,_0x117656]:Ht(_0x117656,_0x2fac25,_0x594130,_0x568244,this['_model'])?[_0x117656,_0x2fac25]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4a6071),this['_defaultCallbacks']['set']('insertion:discard',_0x3ee337),this['_defaultCallbacks']['set']('insertion:join',_0x4dc0a2),this['_defaultCallbacks']['set']('insertion:chain',_0x3ead8b),this['_defaultCallbacks']['set']('deletion:accept',_0x3ee337),this['_defaultCallbacks']['set']('deletion:discard',_0x4a6071),this['_defaultCallbacks']['set']('deletion:join',_0x4dc0a2),this['_defaultCallbacks']['set']('deletion:chain',_0x3ead8b),this['_defaultCallbacks']['set']('formatInline:accept',_0x340a7f),this['_defaultCallbacks']['set']('formatInline:discard',_0x4a6071),this['_defaultCallbacks']['set']('formatInline:join',_0x4dc0a2),this['_defaultCallbacks']['set']('formatInline:chain',_0x4a6071),this['_defaultCallbacks']['set']('formatBlock:accept',_0x340a7f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4a6071),this['_defaultCallbacks']['set']('formatBlock:join',_0x4dc0a2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4a6071),this['_defaultCallbacks']['set']('attribute:accept',_0x4a6071),this['_defaultCallbacks']['set']('attribute:discard',(_0x318d02,_0x3a1d41)=>{if(!_0x3a1d41)return;const _0x470ac2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1f2ce3=>{if(_0x3a1d41['key']==m)for(const _0x2b11ed of _0x318d02){const _0x1a7121=_0x2b11ed['start']['nodeAfter'],_0x36b51f=_0x3a1d41['oldValue'];_0x1f2ce3['rename'](_0x1a7121,_0x36b51f);}else{if(_0x470ac2['_isBlockAttribute'](_0x3a1d41['key'])){for(const _0x516873 of _0x318d02)void 0x0!==_0x3a1d41['oldValue']?_0x1f2ce3['setAttribute'](_0x3a1d41['key'],_0x3a1d41['oldValue'],_0x516873['start']['nodeAfter']):_0x1f2ce3['removeAttribute'](_0x3a1d41['key'],_0x516873['start']['nodeAfter']);}else{for(const _0x2a7209 of _0x318d02)_0x3a1d41['oldValue']?_0x1f2ce3['setAttribute'](_0x3a1d41['key'],_0x3a1d41['oldValue'],_0x2a7209):_0x1f2ce3['removeAttribute'](_0x3a1d41['key'],_0x2a7209);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4dc0a2);}}function Et(_0x1904e7,_0x250943,_0x56b139){for(const _0x41ed1c of _0x250943['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x41ed1c['root']==_0x41ed1c)return!0x1;if(!_0x56b139['containsItem'](_0x41ed1c))return!0x1;if(_0x1904e7['isObject'](_0x41ed1c)||_0x1904e7['isLimit'](_0x41ed1c))return!0x0;}return!0x1;}function Vt(_0x5c74de){return _0x5c74de['end']['parent']==_0x5c74de['start']['nodeAfter']&&_0x5c74de['end']['isAtStart'];}function Ut(_0x2ab2f2,_0x27fd0d,_0x4195c8,_0x1ffe02){const _0x5cd337=_0x3b59e7=>!_0x3b59e7['item']['is']('$textProxy')&&!_0x1ffe02['isObject'](_0x3b59e7['item']),_0x2ca18e=_0x2ab2f2['start']['getLastMatchingPosition'](_0x5cd337),_0x456331=_0x2ab2f2['end']['getLastMatchingPosition'](_0x5cd337,{'direction':'backward'});return(!_0x2ab2f2['start']['isEqual'](_0x2ca18e)||!_0x2ab2f2['end']['isEqual'](_0x456331))&&(_0x2ca18e['isBefore'](_0x456331)?_0x4195c8['updateMarker'](_0x27fd0d,{'range':_0x4195c8['createRange'](_0x2ca18e,_0x456331)}):_0x4195c8['removeMarker'](_0x27fd0d),!0x0);}function Pt(_0xe4858e){return _0x51e538(_0xe4858e);}function Gt(_0x53ec09){const _0x331d3d=_0x53ec09['start']['nodeAfter'];return _0x331d3d&&_0x331d3d['is']('element');}function Ft(_0x13654c,_0x17d872){return null==_0x13654c['end']['nodeBefore']&&_0x13654c['end']['parent']==_0x13654c['start']['nodeAfter']?Lt(_0x13654c['start']['nodeAfter'],_0x17d872):_0x13654c;}function Lt(_0xa9955a,_0x57cc81){const _0x5f068e=_0x57cc81['schema']['isObject'](_0xa9955a)||_0x57cc81['schema']['isSelectable'](_0xa9955a);return _0x57cc81['createRange'](_0x57cc81['createPositionAt'](_0xa9955a,'before'),_0x5f068e?_0x57cc81['createPositionAfter'](_0xa9955a):_0x57cc81['createPositionAt'](_0xa9955a,'end'));}function Ht(_0x333794,_0x20cb38,_0xbc3c85,_0x4d1c9d,_0x5a3029){if(_0x333794['next'])return!0x1;if(!Jt(_0x333794,_0x20cb38))return!0x1;if(_0xbc3c85['end']['isEqual'](_0x4d1c9d['start']))return!0x0;if(_0x333794['type']!=_0x20cb38['type'])return!0x1;if(!_0xbc3c85['end']['isTouching'](_0x4d1c9d['start']))return!0x1;const _0x3ff8c9=_0x5a3029['createRange'](_0xbc3c85['end'],_0x4d1c9d['start'])['getWalker']();for(const _0x1aef70 of _0x3ff8c9)if(['elementStart','elementEnd']['includes'](_0x1aef70['type'])&&_0x5a3029['schema']['isLimit'](_0x1aef70['item']))return!0x1;return!0x0;}function Jt(_0x3b7740,_0x3cf6ea){if(!_0x3b7740['_isDataLoaded']||!_0x3cf6ea['_isDataLoaded'])return!0x1;const _0x268116=new Set(Object['keys'](_0x3b7740['attributes'])),_0x561430=new Set(Object['keys'](_0x3cf6ea['attributes']));if(_0x268116['delete']('groupId'),_0x561430['delete']('groupId'),0x0==_0x268116['size']&&0x0==_0x561430['size'])return!0x0;if(_0x268116['size']!=_0x561430['size'])return!0x1;const _0x1fc8b1={..._0x3b7740['attributes']},_0x8f7c2={..._0x3cf6ea['attributes']};return delete _0x1fc8b1['groupId'],delete _0x8f7c2['groupId'],JSON['stringify'](_0x1fc8b1)==JSON['stringify'](_0x8f7c2);}function qt(_0x1354b0,_0x4cf8c4){const _0x4cf499=zt(_0x1354b0['attributes']),_0x33dde3=zt(_0x4cf8c4);if(!_0x1354b0['_isDataLoaded'])return!0x1;for(const _0x200ec4 of Object['keys'](_0x33dde3))if(!_0x4fc24e(_0x4cf499[_0x200ec4],_0x33dde3[_0x200ec4]))return!0x1;return!0x0;}function zt(_0x5f4a26){const _0x5983b5=Object['assign']({},_0x5f4a26);return delete _0x5983b5['skipNestingCheck'],delete _0x5983b5['tablePasteChainId'],_0x5983b5;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x333747(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4afac6,_0x44ffe0,_0x13f7a1,_0x1d71fc){super(),this['model']=_0x44ffe0,this['view']=_0x13f7a1,this['commentThreadController']=_0x1d71fc,this['_editor']=_0x4afac6,this['_acceptCommand']=_0x4afac6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4afac6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x76ba33,_0x50a74d)=>_0x76ba33||_0x50a74d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3c00d5=>_0x3c00d5&&this['_editor']['model']['canEditAt'](_0x44ffe0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cf491=>_0x1cf491&&this['_editor']['model']['canEditAt'](_0x44ffe0['getRanges']())),this['_pendingAction']=null,_0x13f7a1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x13f7a1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x13f7a1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x13f7a1,'change:isDirty',()=>{_0x13f7a1['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 _0x25efd3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25efd3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x170fca{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2748ec,_0x28823a,_0x4ff0c6,_0x352564){super(_0x2748ec),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x20f6b5(_0x2748ec,o(_0x2748ec,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28823a['authoredAt']),this['bind']('authoredAt')['to'](_0x28823a),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',_0x28823a,'authoredAt',this,'descriptionParts',(_0x2d47ab,_0x3ed6b4,_0x3e40fd)=>{const _0x33b631=_0x3e40fd['map'](_0x319c91=>ls(_0x319c91['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2d47ab-0x1,_0x28823a['author']['name'],_0x3ed6b4?_0x352564['formatDateTime'](_0x3ed6b4):'',new DOMParser()['parseFromString'](_0x33b631,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a78a2(),this['focusTracker']=new _0x357953(),this['keystrokes']=new _0x30b4b5(),this['focusCycler']=new _0x7da2f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x39460e=>_0x39460e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28823a,this['_localUser']=_0x4ff0c6,this['_config']=_0x352564,_0x352564['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2df9fb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f25c7}=this['_config'];this['commentsListView']=new _0x4f25c7(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',_0x248628=>_0x248628+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e1031,_0x40e07f)=>_0x4e1031||!!_0x40e07f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x155252}=this['_config'],_0x6095a7=new _0x155252(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44a94d=_0x6095a7['commentInputView'];return _0x6095a7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44a94d,'value',(_0x2335ec,_0x385078,_0x5e8b78)=>!!_0x5e8b78||_0x2335ec&&!_0x385078),_0x44a94d['on']('submit',(_0x25bc78,_0x26d390)=>{this['fire']('addComment',_0x26d390),_0x44a94d['editor']['setData']('');}),_0x44a94d['on']('cancel',()=>this['focus']()),_0x44a94d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x6095a7;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x12ced0,_0x4b2ea3,_0x2a003c,_0x3eb84a){super(_0x12ced0,_0x4b2ea3,_0x2a003c,_0x3eb84a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x53b0fa=>_0x53b0fa&&_0x53b0fa[0x0]?_0x53b0fa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x34f6be,_0x59d3bd)=>{let _0x347fcf='';for(const _0x4f235c of _0x34f6be)_0x347fcf+='<p>'+ls(_0x4f235c['content'],_0x4f235c['color'])+'</p>';return _0x59d3bd?_0x347fcf:_0x14c4ab(_0x347fcf,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3eb84a['SuggestionView'](_0x12ced0,_0x4b2ea3,{'formatDateTime':_0x3eb84a['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 _0x2ef458=this['bindTemplate'],_0x1874df=[this['suggestionView']];return this['commentsListView']&&_0x1874df['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1874df['push'](this['commentThreadInputView']),_0x1874df['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ef458['if']('isActive','ck-suggestion-wrapper--active'),_0x2ef458['to']('type',_0x5aa44e=>'ck-suggestion-'+_0x5aa44e),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':_0x2ef458['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1874df};}['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 ce extends _0x170fca{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1b3807,_0x52a341,_0x49a69f){super(_0x1b3807),this['_model']=_0x52a341,this['_config']=_0x49a69f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52a341),this['acceptButton']=this['_createButton'](o(_0x1b3807,'Accept\x20suggestion'),_0xa0990f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1b3807,'Discard\x20suggestion'),_0xa0990f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x450a88(_0x1b3807,_0x52a341['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a78a2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x357953(),this['keystrokes']=new _0x30b4b5(),this['focusCycler']=new _0x7da2f7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xc2af96=>_0xc2af96['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25cc62=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25cc62['innerHTML']=this['description'],this['on']('change:description',(_0x2c8676,_0x33665a,_0x3d47ac)=>{_0x25cc62['innerHTML']=_0x3d47ac;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x210159=this['bindTemplate'],_0x2f15cc=[{'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']}},{'tag':'time','attributes':{'datetime':_0x210159['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x210159['to']('authoredAt',_0x238ff9=>this['_config']['formatDateTime'](_0x238ff9))}]}]},{'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']&&_0x2f15cc['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':_0x2f15cc}]};}['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'](_0x23636f,_0x58fd16,_0x3e5a5b,_0x2a9247,_0x13fdf7){const _0x59a17c=new _0x51906b(this['locale']);return _0x59a17c['set']({'label':_0x23636f,'icon':_0x58fd16,'tooltip':!0x0,'tooltipPosition':_0x13fdf7}),_0x59a17c['extendTemplate']({'attributes':{'class':_0x3e5a5b}}),_0x59a17c['on']('execute',()=>{this['fire'](_0x2a9247,this['_model']['id']);}),_0x59a17c;}['_setupKeyboardNavigation'](){const _0x5c3716=this['element'];this['keystrokes']['listenTo'](_0x5c3716);for(const _0x5812c3 of this['focusables'])this['focusTracker']['add'](_0x5812c3['element']),this['keystrokes']['listenTo'](_0x5812c3['element']);this['keystrokes']['set']('enter',(_0x3288e5,_0x163a5e)=>{_0x5c3716===_0x3288e5['target']&&(this['focusCycler']['focusFirst'](),_0x163a5e());}),this['keystrokes']['set']('esc',(_0x4bebee,_0x6467b7)=>{_0x5c3716!==_0x4bebee['target']&&(this['focus'](),_0x6467b7());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x535470{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x13c229,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32aece){super(_0x32aece),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x541bd7=this['editor']['config'];_0x541bd7['define']('trackChanges.SuggestionThreadView',re),_0x541bd7['define']('trackChanges.SuggestionView',ce),_0x541bd7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x541bd7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2b1801,_0x290013){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x168ad1,_0x5979b8]of this['_handleControllerBuffer']){const _0x4c0786=this['_suggestionToController']['has'](_0x168ad1);_0x4c0786||_0x5979b8?_0x4c0786&&_0x5979b8&&this['_destroyController'](_0x168ad1):this['_initializeController'](_0x168ad1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2b1801,_0x290013);}['init'](){const _0x51f64f=this['editor'],_0x5bd584=_0x51f64f['plugins']['get']('TrackChangesEditing'),_0x4e7846=_0x51f64f['plugins']['get']('Annotations'),_0x3d22ba=_0x51f64f['plugins']['get']('EditorAnnotations'),_0x40047f=_0x51f64f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3d22ba['addSourceCollector'](()=>{const _0x59a3fa=[];for(const [_0x47508d,_0x3abf12]of Array['from'](this['_suggestionToController'])){const _0x16ec85=_0x47508d['getAllAdjacentSuggestions'](),_0x4171eb=[];for(const _0x32650c of _0x16ec85){if(!_0x32650c['isInContent'])continue;if(_0x32650c['isMultiRange']){_0x4171eb['push'](..._0x32650c['getRanges']());continue;}const _0x11a19a=_0x32650c['getFirstRange']();if(_0x4171eb['length']>0x0){const _0x1fc653=_0x4171eb[0x0]['getJoined'](_0x11a19a);if(_0x1fc653){_0x4171eb[0x0]=_0x1fc653;continue;}}_0x4171eb['push'](_0x11a19a);}_0x59a3fa['push']([_0x3abf12['view'],_0x4171eb]);}return _0x59a3fa;}),this['listenTo'](_0x5bd584,'suggestionLoaded',(_0x283884,_0x58477d)=>{this['listenTo'](_0x58477d,'change:previous',(_0x254539,_0x4d1168,_0x143de7,_0xbed9f6)=>{_0x58477d['isInContent']&&(null==_0x143de7?(this['_updateController'](_0xbed9f6['head']),this['_handleSuggestionControllerDelayed'](_0x58477d,!0x1)):(this['_updateController'](_0x143de7['head']),null==_0xbed9f6&&this['_handleSuggestionControllerDelayed'](_0x58477d,!0x0)));}),null!==_0x58477d['previous']?this['_updateController'](_0x58477d['head']):this['_handleSuggestionControllerDelayed'](_0x58477d,!0x1);}),this['listenTo'](_0x5bd584,'suggestionUnloaded',(_0x3099d6,_0x187ef8,_0x6cd712)=>{this['stopListening'](_0x187ef8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x187ef8),this['_suggestionToController']['has'](_0x187ef8)&&this['_destroyController'](_0x187ef8),_0x6cd712&&this['_updateController'](_0x6cd712['head']);}),this['listenTo'](_0x5bd584,'suggestionChanged',(_0x3aa20b,_0x4d8823)=>{this['_updateController'](_0x4d8823);}),this['listenTo'](_0x4e7846,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x40047f,'addComment',(_0x596328,{threadId:_0xec5feb,isFromAdapter:_0x56f54d})=>{if(_0x56f54d||!_0x5bd584['hasSuggestion'](_0xec5feb))return;const _0x347b13=_0x5bd584['getSuggestion'](_0xec5feb);this['_suggestionToController']['get'](_0x347b13)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5aa941=this['editor']['plugins']['get']('Annotations'),_0x15deff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aa1e0=Array['from'](_0x5aa941['activeAnnotations'],_0x349cd6=>_0x349cd6['innerView'])['filter'](_0x269e5a=>this['_viewToController']['has'](_0x269e5a)),_0x47b9f7=[];for(const _0x121241 of _0x4aa1e0){const _0x2e220c=this['_viewToController']['get'](_0x121241)['model']['getAllAdjacentSuggestions']();_0x47b9f7['push'](..._0x2e220c['reduce']((_0x1ac64f,_0x448864)=>[..._0x1ac64f,..._0x448864['getMarkerNames']()],[]));}_0x15deff['activeMarkers']=_0x47b9f7;}['_addUIComponentsToFactory'](){const _0xb76b84=this['editor'],_0x3a8fc5=_0xb76b84['locale'],_0x1bbe45=o(_0x3a8fc5,'Track\x20changes'),_0x468bf7=new Wt([{'type':'switchbutton','model':new _0x245822({'withText':!0x0,'isToggleable':!0x0,'label':_0x1bbe45,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x245822({'withText':!0x0,'label':o(_0x3a8fc5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x245822({'withText':!0x0,'label':o(_0x3a8fc5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x245822({'withText':!0x0,'label':o(_0x3a8fc5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x245822({'withText':!0x0,'label':o(_0x3a8fc5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2e84d2 of _0x468bf7)if(me(_0x2e84d2)){const _0x12f363=_0xb76b84['commands']['get'](_0x2e84d2['model']['commandName']);_0x2e84d2['model']['bind']('isOn','isEnabled')['to'](_0x12f363,'value','isEnabled');}_0xb76b84['ui']['componentFactory']['add']('trackChanges',_0x4c4a7e=>this['_createToolbarButton'](_0x4c4a7e,_0x468bf7,_0x1bbe45)),_0xb76b84['ui']['componentFactory']['add']('menuBar:trackChanges',_0x258e8e=>this['_createMenuBarMenu'](_0x258e8e,_0x468bf7,_0x1bbe45));}['_createToolbarButton'](_0x14f5bb,_0x2ba611,_0x4a99bf){const _0x3d97c8=Qt(_0x14f5bb,_0x15ac32),_0x53fc0f=this['editor']['commands']['get']('trackChanges');_0x3d97c8['buttonView']['set']({'tooltip':_0x4a99bf,'label':_0x4a99bf,'icon':he}),_0x3d97c8['buttonView']['bind']('isOn')['to'](_0x53fc0f,'value'),_0x3d97c8['buttonView']['on']('execute',()=>{_0x53fc0f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x3d97c8,_0x2ba611,{'role':'menu'});const _0x51b3ae=[];for(const _0x1d6799 of _0x2ba611)me(_0x1d6799)&&_0x51b3ae['push'](this['editor']['commands']['get'](_0x1d6799['model']['commandName']));const _0x2dd5db=_0x3d97c8['buttonView'];return _0x2dd5db['actionView']['unbind']('isEnabled'),_0x2dd5db['arrowView']['unbind']('isEnabled'),_0x2dd5db['actionView']['bind']('isEnabled')['to'](_0x53fc0f,'isEnabled'),_0x2dd5db['arrowView']['bind']('isEnabled')['toMany'](_0x51b3ae,'isEnabled',(..._0x20cd9d)=>_0x20cd9d['some'](_0x3e9a5f=>_0x3e9a5f)),_0x3d97c8['on']('execute',_0x446c8c=>{this['editor']['execute'](_0x446c8c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d97c8;}['_createMenuBarMenu'](_0x55e47f,_0x5a65ac,_0x121fe6){const _0x511194=new Yt(_0x55e47f),_0x15f6b2=this['editor']['commands']['get']('trackChanges');_0x511194['buttonView']['set']({'label':_0x121fe6,'icon':he});const _0x312c0e=new Zt(_0x55e47f);for(const _0x229e2d of _0x5a65ac){if('separator'==_0x229e2d['type']){_0x312c0e['items']['add'](new Xt(_0x55e47f));continue;}const _0x4fe596=new te(_0x55e47f,_0x511194),_0x165b1a=new _0x20ba33(_0x55e47f),_0x849886=_0x229e2d['model'];_0x165b1a['bind'](...Object['keys'](_0x849886))['to'](_0x849886),_0x165b1a['delegate']('execute')['to'](_0x511194),_0x165b1a['on']('execute',()=>{this['editor']['execute'](_0x849886['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fe596['children']['add'](_0x165b1a),_0x312c0e['items']['add'](_0x4fe596);}return _0x511194['bind']('isEnabled')['to'](_0x15f6b2,'isEnabled'),_0x511194['panelView']['children']['add'](_0x312c0e),_0x511194;}['_initializeController'](_0x23a7e1){const _0x53d487=this['editor'],_0x1b3b94=_0x53d487['config'],_0x63e2b8=_0x53d487['plugins']['get']('Annotations'),_0x315457=_0x53d487['plugins']['get']('CommentsRepository'),_0x32f2ab=_0x53d487['plugins']['get']('EditorAnnotations'),_0x5d2653=_0x53d487['plugins']['get'](_0x13c229)['me'],_0xd3d465=_0x1b3b94['get']('trackChanges')['SuggestionThreadView'],_0x114331=_0x1b3b94['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xe4f283,CommentThreadInputView:_0x10d457}=_0x53d487['plugins']['get']('CommentsUI');let _0x4d5266,_0x5742e2,_0x32b3d5;this['_annotationViews']['has'](_0x23a7e1['id'])?(_0x5742e2=this['_annotationViews']['get'](_0x23a7e1['id']),_0x4d5266=_0x5742e2['mainView']):(_0x4d5266=new _0xd3d465(_0x53d487['locale'],_0x23a7e1,_0x5d2653,{'disableComments':this['_disableComments'],'editorConfig':_0x1b3b94['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1b3b94['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1b3b94['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1b3b94['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xac8d35(_0x1b3b94['get']('locale')),'CommentView':_0x1b3b94['get']('comments')['CommentView'],'CommentsListView':_0xe4f283,'CommentThreadInputView':_0x10d457,'SuggestionView':_0x114331}),_0x4d5266['suggestionView']['acceptButton']['on']('execute',()=>{_0x53d487['editing']['view']['focus']();}),_0x4d5266['suggestionView']['discardButton']['on']('execute',()=>{_0x53d487['editing']['view']['focus']();}),_0x5742e2=_0x63e2b8['createAnnotationView'](this['editor']['locale'],_0x4d5266),_0x5742e2['bind']('isDirty')['to'](_0x4d5266,'isDirty'),_0x5742e2['bind']('length')['to'](_0x4d5266),_0x5742e2['bind']('type')['to'](_0x4d5266,'type',_0x86236e=>'suggestion-'+_0x86236e),_0x4d5266['on']('escape',()=>{_0x32b3d5['fire']('escape');}),this['_annotationViews']['set'](_0x23a7e1['id'],_0x5742e2));const _0x3f6422=_0x315457['createCommentThreadController'](_0x23a7e1['commentThread'],_0x4d5266),_0x13e73f=new ae(_0x53d487,_0x23a7e1,_0x4d5266,_0x3f6422),_0x5b084f=_0x23a7e1['getAllAdjacentSuggestions']()['filter'](_0x2e8fe7=>_0x2e8fe7['isInContent']);_0x4d5266['descriptionParts']=_0x53d487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5b084f),this['_suggestionToController']['set'](_0x23a7e1,_0x13e73f),this['_viewToController']['set'](_0x4d5266,_0x13e73f),_0x32b3d5=_0x63e2b8['createAnnotation']({'view':_0x5742e2,'target':()=>{const _0xb4f895=[],_0x230b6e=_0x23a7e1['getAllAdjacentSuggestions']()['filter'](_0x5cc55b=>_0x5cc55b['isInContent']);for(const _0xca6dfd of _0x230b6e)_0xb4f895['push'](..._0xca6dfd['getMarkers']());return _0x474272(_0x53d487['editing'],_0xb4f895);},'type':()=>'suggestion-'+_0x13e73f['view']['type']}),_0x315457['_bindAnnotationToEditors'](_0x4d5266,_0x32b3d5),_0x63e2b8['add'](_0x32b3d5),_0x32f2ab['registerAnnotation'](_0x32b3d5);}['_destroyController'](_0xaaaa19){const _0x20d1e5=this['editor']['plugins']['get']('CommentsRepository'),_0x386e76=this['editor']['plugins']['get']('Annotations'),_0x1de806=this['_suggestionToController']['get'](_0xaaaa19),_0x34a073=_0x1de806['view'],_0x3fddbb=_0x386e76['getByInnerView'](_0x34a073);_0x20d1e5['_unbindEditors'](_0x34a073),_0x3fddbb&&_0x386e76['remove'](_0x3fddbb),this['_suggestionToController']['delete'](_0xaaaa19),this['_viewToController']['delete'](_0x34a073),_0x1de806['destroy']();}['_updateController'](_0x21549d){if(!_0x21549d['isInContent']||!this['_suggestionToController']['has'](_0x21549d))return;const _0x15acf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cb05f=this['_suggestionToController']['get'](_0x21549d),_0x90f0a8=_0x21549d['getAllAdjacentSuggestions']();_0x1cb05f['view']['descriptionParts']=_0x15acf9['descriptionFactory']['getDescriptions'](_0x90f0a8);}['destroy'](){for(const _0x2cb63b of this['_suggestionToController']['keys']())this['_destroyController'](_0x2cb63b);for(const _0x3a3cff of this['_annotationViews']['values']())_0x3a3cff['mainView']['destroy']();super['destroy']();}}function me(_0x28cb11){return'model'in _0x28cb11;}class k extends _0x535470{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4089d8){this['editor']['plugins']['get'](p)['adapter']=_0x4089d8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x59cb71){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x59cb71);}['getSuggestions']({skipNotAttached:_0x5d8028=!0x1,toJSON:_0x2a96c6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d8028,'toJSON':_0x2a96c6});}['getSuggestion'](_0x41abf8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x41abf8);}}const w=['Pagination'];class T extends _0x535470{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2199f0=this['editor'];if(_0x2199f0['config']['define']('trackChangesData.editorCreator',_0x5cf236=>{const _0x24001e=_0x2199f0['model']['document']['getRootNames']()['reduce']((_0x6abfdd,_0x57b3f3)=>(_0x6abfdd[_0x57b3f3]='',_0x6abfdd),{});return _0x2199f0['constructor']['create'](_0x24001e,_0x5cf236);}),'function'!=typeof _0x2199f0['config']['get']('trackChangesData')['editorCreator'])throw new _0xe104bf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x55a95e){return N(this['editor'],!0x0,_0x55a95e);}['getDataWithDiscardedSuggestions'](_0x319341){return N(this['editor'],!0x1,_0x319341);}}class D extends _0x535470{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4820a3){super(_0x4820a3),this['result']='end';}['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 v(_0x5a11e7){return void 0x0!==_0x5a11e7['getRootsAttributes'];}async function N(_0x3dde33,_0x5235c9,_0x435293){const _0x43437e=_0x536824(_0x3dde33,w);_0x43437e['plugins']['push'](p,D),_0x43437e['rootsAttributes']=v(_0x3dde33)?_0x3dde33['getRootsAttributes']():void 0x0;const _0x3fd53a=document['createDocumentFragment'](),_0x4f1b2f=_0x3dde33['config']['get']('trackChangesData')['editorCreator'],_0xf42a13=await _0x4f1b2f(_0x43437e,()=>function(_0x30e484){const _0xd8665f=document['createElement']('div');return _0x30e484['appendChild'](_0xd8665f),_0xd8665f;}(_0x3fd53a));!function(_0x56bef6,_0x4f6e5e){const _0x442bb6=_0x56bef6['model']['document']['getRootNames']()['reduce']((_0x116457,_0x4bb72e)=>(_0x116457[_0x4bb72e]=_0x56bef6['data']['get']({'rootName':_0x4bb72e}),_0x116457),{}),_0x20a032=_0x56bef6['plugins']['get']('Users')['users']['map'](_0x3987e4=>({'id':_0x3987e4['id'],'name':_0x3987e4['name']})),_0x1e19cc=_0x56bef6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x211009=_0x56bef6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5afeb2=_0x4f6e5e['plugins']['get']('Users'),_0x56e9b4=_0x4f6e5e['plugins']['get']('TrackChangesEditing'),_0x5da6d1=_0x4f6e5e['plugins']['get']('CommentsRepository');for(const _0x160074 of _0x5da6d1['getCommentThreads']())_0x160074['remove']();for(const _0x5a6f14 of _0x20a032)_0x5afeb2['getUser'](_0x5a6f14['id'])||_0x5afeb2['addUser'](_0x5a6f14);_0x5afeb2['me']||_0x5afeb2['useAnonymousUser']();for(const _0x229e96 of _0x211009)_0x5da6d1['addCommentThread'](_0x229e96);for(const _0x14c2ca of _0x1e19cc)_0x56e9b4['addSuggestionData'](_0x14c2ca);_0x4f6e5e['data']['set'](_0x442bb6);}(_0x3dde33,_0xf42a13),_0xf42a13['execute'](_0x5235c9?'acceptAllSuggestions':'discardAllSuggestions');const _0x80f917=v(_0xf42a13)?_0xf42a13['getFullData'](_0x435293):_0xf42a13['data']['get'](_0x435293);return await _0xf42a13['destroy'](),_0x80f917;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|